<commit_before>var user = '';
var url = '';
var token = '';
var tag = '';
var group = '';
var any = '';
var query = 'https://hypothes.is/api/search?limit=200&offset=__OFFSET__&_separate_replies=true';
var _query;
var displayed_in_thread = [];

function process(rows, replies) {
    var gathered = gather(rows);

    if ($('#format_html').is(":checked")) {
        process_urls_html('exported_html', gathered, replies);
        var html = '<html><head><meta charset="utf-8"><title>Hypothesis activity for the query group=' + group + '8gk9i7VV</title>';
        html += '<style>body { margin:.75in; font-family:verdana; word-break:break-word; } .url { font-family:italic; margin-bottom:6px; color:gray } a.toggle, a.visit { color: #151414 } img { width: 90%; margin: 8px } .user { font-weight:bold } .timestamp { font-style:italic; font-size:smaller } .annotation { display:none; border:thin solid lightgray;padding:10px;margin:10px; } .annotations { display:none; } .annotation-quote { color: #777; font-style: italic;padding: 0 .615em; border-left: 3px solid #d3d3d3; margin-top:12px; margin-bottom: 12px }  .tag-item { margin: 2px; text-decoration: none; border: 1px solid #BBB3B3; border-radius: 2px; padding: 3px; color: #4B4040; background: #f9f9f9; } a { text-decoration: none; color: brown } a.toggle {font-weight: bold; } .anno-count { } span.anno-count:before { content:"+" } .tags { line-height: 2 }</style>';
        html += '</head>';
        html += '<body>';
        html += '<h1>Hypothesis activity for ' + _query.match(/&([^&]+$)/)[1] + '</h1>';
        html += document.getElementById('exported_html').innerHTML + '<script>function toggle(dom_id) {	var element = document.getElementById(dom_id);	var display = element.style[\'display\']; var annos = document.getElementById(dom_id).querySelectorAll(\'.annotation\');	if (display == \'none\' || display == \'\' ) {		element.style[\'display\'] = \'block\'; for (var i=0; i<annos.length; i++) annos[i].style.display = \'block\';	}	else {		element.style[\'display\'] = \'none\';  for (var i=0; i<annos.length; i++)  annos[i].style.display = \'none\';	} }</script></body></html>';
        download(html, 'html');
        rows = [];
    }
    else if ($('#format_csv').is(":checked")) {
        to_csv(rows);
    }
    else if ($('#format_md').is(":checked")) {<commit_msg>match style in the export<commit_after>var user = '';
var url = '';
var token = '';
var tag = '';
var group = '';
var any = '';
var query = 'https://hypothes.is/api/search?limit=200&offset=__OFFSET__&_separate_replies=true';
var _query;
var displayed_in_thread = [];

function process(rows, replies) {
    var gathered = gather(rows);

    if ($('#format_html').is(":checked")) {
        process_urls_html('exported_html', gathered, replies);
        var html = '<html><head><meta charset="utf-8"><title>Hypothesis activity for the query group=' + group + '8gk9i7VV</title>';
        html += '<style>body { margin:.75in; font-family:verdana; word-break:break-word; } .url { font-family:italic; margin-bottom:6px; color:gray } a.visit { color: #151414 } img { width: 90%; margin: 8px } .user { font-weight:bold } .timestamp { font-style:italic; font-size:smaller } .annotation { display:none; border:thin solid lightgray;padding:10px;margin:10px; } .annotations { display:none; } .annotation-quote { color: #777; font-style: italic;padding: 0 .615em; border-left: 3px solid #d3d3d3; margin-top:12px; margin-bottom: 12px }  .tag-item { margin: 2px; text-decoration: none; border: 1px solid #BBB3B3; border-radius: 2px; padding: 3px; color: #4B4040; background: #f9f9f9; } a { text-decoration: none; color: brown } a.toggle {font-weight: bold; } .anno-count { } span.anno-count:before { content:"+" } .tags { line-height: 2 }</style>';
        html += '</head>';
        html += '<body>';
        html += '<h1>Hypothesis activity for ' + _query.match(/&([^&]+$)/)[1] + '</h1>';
        html += document.getElementById('exported_html').innerHTML + '<script>function toggle(dom_id) {	var element = document.getElementById(dom_id);	var display = element.style[\'display\']; var annos = document.getElementById(dom_id).querySelectorAll(\'.annotation\');	if (display == \'none\' || display == \'\' ) {		element.style[\'display\'] = \'block\'; for (var i=0; i<annos.length; i++) annos[i].style.display = \'block\';	}	else {		element.style[\'display\'] = \'none\';  for (var i=0; i<annos.length; i++)  annos[i].style.display = \'none\';	} }</script></body></html>';
        download(html, 'html');
        rows = [];
    }
    else if ($('#format_csv').is(":checked")) {
        to_csv(rows);
    }
    else if ($('#format_md').is(":checked")) {
{'fraction_non_alphanumeric': 0.20479862896315337, 'fraction_numerical': 0.024850042844901457, 'mean_word_length': 4.113910186199343, 'pattern_counts': {'":': 6, '<': 37, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2153886', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1566, 'n_words': 351}