<commit_before>test("select test", function(){
    var test_data = [1, 2, 3, 4, 5];
    var result = JSIQ.from(test_data).where(function(x){return x>2;}).select(function(x){return x*x}).all();
    deepEqual(result, [9,16,25], "Passed");
});

test("order test", function(){
    var test_data = [{"sid":6,"name":"zhao"},
                     {"sid":1,"name":"qian"},
                     {"sid":5,"name":"sun"},
                     {"sid":7,"name":"li"},
                     {"sid":3,"name":"go"}];
    var expected_data = [{"sid":1,"name":"qian"},
                         {"sid":3,"name":"go"},
                         {"sid":5,"name":"sun"},
                         {"sid":6,"name":"zhao"},
                         {"sid":7,"name":"li"}];

    var result = JSIQ.from(test_data).orderBy(function(i){return i.sid}).all();
    deepEqual(result, expected_data, "Passed");
});<commit_msg>add an arguement to orderBy test<commit_after>test("select test", function(){
    var test_data = [1, 2, 3, 4, 5];
    var result = jsiq.from(test_data).where(function(x){return x>2;}).select(function(x){return x*x}).all();
    deepEqual(result, [9,16,25], "Passed");
});

test("order test", function(){
    var test_data = [{"sid":6,"name":"zhao"},
                     {"sid":1,"name":"qian"},
                     {"sid":5,"name":"sun"},
                     {"sid":7,"name":"li"},
                     {"sid":3,"name":"go"}];
    var expected_data = [{"sid":1,"name":"qian"},
                         {"sid":3,"name":"go"},
                         {"sid":5,"name":"sun"},
                         {"sid":6,"name":"zhao"},
                         {"sid":7,"name":"li"}];

    var result = jsiq.from(test_data).orderBy(function(i){return i.sid}, jsiq.ascending).all();
    deepEqual(result, expected_data, "Passed");
});
{'fraction_non_alphanumeric': 0.23938223938223938, 'fraction_numerical': 0.023166023166023165, 'mean_word_length': 2.31021897810219, 'pattern_counts': {'":': 40, '<': 3, '<?xml version=': 0, '>': 5, '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': '3325656', 'n_tokens_mistral': 602, 'n_tokens_neox': 566, 'n_words': 90}