<commit_before><html>
  <head>
    <title></title>
    <script type="text/javascript">
    function dosort(form)
    {
    $('#progress') .html("Sorting. Please Wait..");
    $('#result').html("");
    var text= form.input_text.value;
    var jsonRequest = {
        "method" :  "modules.Sort.sort",
         "params" : [text], 
         "id" : ""
    };
    $.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "JSONRPC",
        data: $.toJSON(jsonRequest), 
        dataType: "json",
        success: function(msg) {
            var resultobj =  + msg.result;
            $('#progress').html("");
            $('#result').html("<table id='sortedtable' class='table1'><tr><th>UCA 5.2 Result</th><th>Modified UCA 5.2 Result</th></tr></table>");
            var silparesult = resultobj['SILPA'];
            var ucaresult = resultobj['UCA'];
            $.each(silparesult,function(index, item)
            {
               $('#sortedtable tr:last').after("<tr><td>" + ucaresult[index] +"</td><td>" + silparesult[index] +"</td></tr>" );
            });
        },
        error: function(msg) { alert(msg); }
    });
    return false;
    }
    </script>
  </head>
  <body>
        <h2>Sort</h2></hr>
        <p><a href="http://unicode.org/reports/tr10/"> Unicode Collation
         Algorithm(UCA)</a> 
        based sorting for all languages defined in Unicode. 
        The collation weights used in this application is a <commit_msg>Fixing a javascript error<commit_after><html>
  <head>
    <title></title>
    <script type="text/javascript">
    function dosort(form)
    {
    $('#progress') .html("Sorting. Please Wait..");
    $('#result').html("");
    var text= form.input_text.value;
    var jsonRequest = {
        "method" :  "modules.Sort.sort",
         "params" : [text], 
         "id" : ""
    };
    $.ajax({
        type: "POST",
        contentType: "application/json; charset=utf-8",
        url: "JSONRPC",
        data: $.toJSON(jsonRequest), 
        dataType: "json",
        success: function(msg) {
            var resultobj =  msg.result;
            $('#progress').html("");
            $('#result').html("<table id='sortedtable' class='table1'><tr><th>UCA 5.2 Result</th><th>Modified UCA 5.2 Result</th></tr></table>");
            var silparesult = resultobj['SILPA'];
            var ucaresult = resultobj['UCA'];
            $.each(silparesult,function(index, item)
            {
               $('#sortedtable tr:last').after("<tr><td>" + ucaresult[index] +"</td><td>" + silparesult[index] +"</td></tr>" );
            });
        },
        error: function(msg) { alert(msg); }
    });
    return false;
    }
    </script>
  </head>
  <body>
        <h2>Sort</h2></hr>
        <p><a href="http://unicode.org/reports/tr10/"> Unicode Collation
         Algorithm(UCA)</a> 
        based sorting for all languages defined in Unicode. 
        The collation weights used in this application is a 
{'fraction_non_alphanumeric': 0.18716397849462366, 'fraction_numerical': 0.006720430107526882, 'mean_word_length': 2.177161152614728, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, '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': '105164', 'n_tokens_mistral': 945, 'n_tokens_neox': 928, 'n_words': 189}