<commit_before>define([
    'aux/get-parameter-by-name'
], function (getParameterByName) {
    describe('getParameterByName', function () {
        var url;

        beforeEach(function () {
            url = 'http://www.rockabox.com?param1=value1&param2=value2';
        });

        it('should return the query paramater\'s value', function () {
            expect(getParameterByName(url, 'param1')).toContain('value1');
            expect(getParameterByName(url, 'param2')).toContain('value2');
        });

        it ('should return an empty string when query param doesn\'t exist', function () {
            expect(getParameterByName(url, 'param3')).toBe('');
        });<commit_msg>Enhance the get param by name tests<commit_after>define([
    'aux/get-parameter-by-name'
], function (getParameterByName) {
    describe('getParameterByName', function () {
        var url;

        beforeEach(function () {
            url = 'http://www.rockabox.com?param1=value1&param2=value2#somehashnotomitted';
        });

        it('should return the query paramater\'s value', function () {
            expect(getParameterByName(url, 'param1')).toBe('value1');
            expect(getParameterByName(url, 'param2')).toBe('value2');
        });

        it ('should return an empty string when query param doesn\'t exist', function () {
            expect(getParameterByName(url, 'param3')).toBe('');
        });
{'fraction_non_alphanumeric': 0.15259048970901348, 'fraction_numerical': 0.0127750177430802, 'mean_word_length': 2.9058171745152355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7132263', 'n_tokens_mistral': 393, 'n_tokens_neox': 402, 'n_words': 78}