{"size": 1169, "ext": "js", "max_stars_repo_path": "js/media_upload.js", "max_stars_repo_name": "fukata/wp-flickr-press", "max_stars_repo_stars_event_min_datetime": "2015-01-02T02:09:25.000Z", "max_stars_repo_stars_event_max_datetime": "2020-02-15T08:04:58.000Z", "max_issues_repo_path": "js/media_upload.js", "max_issues_repo_name": "fukata/wp-flickr-press", "max_issues_repo_issues_event_min_datetime": "2015-02-03T22:17:01.000Z", "max_issues_repo_issues_event_max_datetime": "2018-01-02T07:43:07.000Z", "max_forks_repo_path": "js/media_upload.js", "max_forks_repo_name": "fukata/wp-flickr-press", "max_forks_repo_forks_event_min_datetime": "2016-03-08T10:23:40.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-15T12:15:00.000Z"}
{"max_stars_count": 10, "max_issues_count": 7, "max_forks_count": 5, "avg_line_length": 32.4722222222, "max_line_length": 99, "alphanum_fraction": 0.5517536356}
function fp_send_to_editor(h, close, editor) {
	close = close || false;
    var ed;

    if (editor) {
        window.wpActiveEditor = editor;
    }

    if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.activeEditor ) && !ed.isHidden() ) {
        ed.focus();
        if ( tinymce.isIE )
            ed.selection.moveToBookmark(tinymce.EditorManager.activeEditor.windowManager.bookmark);

        if ( h.indexOf('[caption') === 0 ) {
            if ( ed.plugins.wpeditimage )
                h = ed.plugins.wpeditimage._do_shcode(h);
        } else if ( h.indexOf('[gallery') === 0 ) {
            if ( ed.plugins.wpgallery )
                h = ed.plugins.wpgallery._do_gallery(h);
        } else if ( h.indexOf('[embed') === 0 ) {
            if ( ed.plugins.wordpress )
                h = ed.plugins.wordpress._setEmbed(h);
        }

        ed.execCommand('mceInsertContent', false, h);

    } else if ( typeof edInsertContent == 'function' ) {
        edInsertContent(edCanvas, h);
        jQuery('#' + window.wpActiveEditor).trigger("keyup");
    } else {
        jQuery( edCanvas ).val( jQuery( edCanvas ).val() + h );
    }

    if (close) tb_remove();
}
