<commit_before>function setActiveMainNav(nav) {
    $('#mc-main-navs li').removeClass("active");
    $(nav).addClass("active");
}

function mcurl() {
    var apihost = mcglobals.apihost ? mcglobals.apihost : "https://api.materialscommons.org:5000/v1.0";

    if (arguments.length < 1) {
        throw "Invalid mcurl spec";
    }

    var s = arguments[0];

    for (var i = 1; i < arguments.length; i++) {
        s = s.replace('%', arguments[i]);
    }

    var url = apihost + s + "?apikey=" + mcglobals.apikey;
    return url;
}

function mcurljsonp() {
    return mcurl.apply(this, arguments) + "&callback=JSON_CALLBACK";
}

function get_utc_obj(utc_in_sec) {
    var d = new Date(utc_in_sec * 1000);
    return d;
}

function determineFileType(mediaType) {
    if (mediaType.indexOf('image') != -1) {
        return "image";
    } else {
        return "other";
    }
}

function _add_json_callback(url) {
    return url + "&callback=JSON_CALLBACK";
}

function filePath(fileType, mediaType, location, name) {
    var filePath = "assets/materialscommons/";
    if (fileType == "image" && mediaType == "image/tiff") {
        var newName = name.substr(0, name.lastIndexOf('.')) || name;<commit_msg>Remove unused function mcurljsonp().<commit_after>function setActiveMainNav(nav) {
    $('#mc-main-navs li').removeClass("active");
    $(nav).addClass("active");
}

function mcurl() {
    var apihost = mcglobals.apihost ? mcglobals.apihost : "https://api.materialscommons.org:5000/v1.0";

    if (arguments.length < 1) {
        throw "Invalid mcurl spec";
    }

    var s = arguments[0];

    for (var i = 1; i < arguments.length; i++) {
        s = s.replace('%', arguments[i]);
    }

    var url = apihost + s + "?apikey=" + mcglobals.apikey;
    return url;
}

function get_utc_obj(utc_in_sec) {
    var d = new Date(utc_in_sec * 1000);
    return d;
}

function determineFileType(mediaType) {
    if (mediaType.indexOf('image') != -1) {
        return "image";
    } else {
        return "other";
    }
}

function _add_json_callback(url) {
    return url + "&callback=JSON_CALLBACK";
}

function filePath(fileType, mediaType, location, name) {
    var filePath = "assets/materialscommons/";
    if (fileType == "image" && mediaType == "image/tiff") {
        var newName = name.substr(0, name.lastIndexOf('.')) || name;
{'fraction_non_alphanumeric': 0.16173316173316174, 'fraction_numerical': 0.01287001287001287, 'mean_word_length': 3.194244604316547, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4584415', 'n_tokens_mistral': 840, 'n_tokens_neox': 803, 'n_words': 172}