<commit_before>var selected = '';
var target_html = {};
var aspect_ratio = 0.5625; /* 16:9 */
function with_json_request(url, fn) {
    $.ajax({
        url : url,
        type : 'GET',
        datatype : 'json',
        success : fn
    });
}
function with_metadata(pid, fn) {
    with_json_request(pid+'/head.json', fn);
}
function with_mosaic(pid, size, fn) {
    with_json_request(pid+'/mosaic/small.json',fn);
}
function describe_bin(pid, tag) {
    /* generate a short description of the bin */
    with_metadata(pid, function(bin) {
        var instrument = bin['instrument']; /* instrument number */
        var time = bin['time']; /* time */
	var dayhref = pid.replace(/(IFCB._\d+_\d+).*/,'$1.html');
	var time_href = time.replace(/(\d+-\d+-\d+)/,'<a href="'+dayhref+'">$1</a>');
	var time_href = time_href.replace(/(\d\d:\d\d:\d\d)/,'<a href="'+pid+'.html">$1</a>');
        var temp = Math.round(bin['temperature']) + '&deg;C'; /* temperature */
        $('#' + tag + 'd').html('<br>IFCB#' + instrument + ' ' + time_href + ' (<abbr class="timeago" title="' + time + '"></abbr>), ' + temp + ' (<a href="'+pid+'.csv">CSV</a> <a href="'+pid+'.xml">XML</a> <a href="'+pid+'.rdf">RDF</a>)').find('abbr').timeago();
        /* "timeago" converts absolute time to constantly updated relative time e.g., "about 5 minutes ago" */
    });<commit_msg>how did this even work when "datatype" was used instead of "dataType"?<commit_after>var selected = '';
var target_html = {};
var aspect_ratio = 0.5625; /* 16:9 */
function with_json_request(url, fn) {
    $.ajax({
        url : url,
        type : 'GET',
        dataType : 'json',
        success : fn
    });
}
function with_metadata(pid, fn) {
    with_json_request(pid+'/head.json', fn);
}
function with_mosaic(pid, size, fn) {
    with_json_request(pid+'/mosaic/small.json',fn);
}
function describe_bin(pid, tag) {
    /* generate a short description of the bin */
    with_metadata(pid, function(bin) {
        var instrument = bin['instrument']; /* instrument number */
        var time = bin['time']; /* time */
	var dayhref = pid.replace(/(IFCB._\d+_\d+).*/,'$1.html');
	var time_href = time.replace(/(\d+-\d+-\d+)/,'<a href="'+dayhref+'">$1</a>');
	var time_href = time_href.replace(/(\d\d:\d\d:\d\d)/,'<a href="'+pid+'.html">$1</a>');
        var temp = Math.round(bin['temperature']) + '&deg;C'; /* temperature */
        $('#' + tag + 'd').html('<br>IFCB#' + instrument + ' ' + time_href + ' (<abbr class="timeago" title="' + time + '"></abbr>), ' + temp + ' (<a href="'+pid+'.csv">CSV</a> <a href="'+pid+'.xml">XML</a> <a href="'+pid+'.rdf">RDF</a>)').find('abbr').timeago();
        /* "timeago" converts absolute time to constantly updated relative time e.g., "about 5 minutes ago" */
    });
{'fraction_non_alphanumeric': 0.23595505617977527, 'fraction_numerical': 0.008698803914461761, 'mean_word_length': 3.3260188087774294, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4009470', 'n_tokens_mistral': 1000, 'n_tokens_neox': 973, 'n_words': 205}