<commit_before>/* global QUnit */

QUnit.module('franky');

test("test for x.constructURL", function () {

    equal(
        x.constructURL("http://www.yandex.ru", {
            "text": 1,
            "hello": "world"
        }),
        "http://www.yandex.ru?text=1&hello=world",
        "OK"
    );

    equal(
        x.constructURL("http://www.google.com?", {
            "search": "ololo",
            "test": "ok"
        }),
        "http://www.google.com?search=ololo&test=ok",
        "OK"
    );

    equal(
        x.constructURL("http://www.google.com?", {
            "text": ""
        }),
        "http://www.google.com?text=",
        "OK"
    );

    equal(
        x.constructURL("http://www.yandex.com/test/?vow=test", {
            "search": "ololo",
            "test": "ok"
        }),
        "http://www.yandex.com/test/?vow=test&search=ololo&test=ok",
        "OK"
    );

    equal(
        x.constructURL("http://www.yandex.com:5674/test/?vow=test", {
            "search": "ololo",
            "test": "ok"
        }),
        "http://www.yandex.com:5674/test/?vow=test&search=ololo&test=ok",
        "OK"
    );

    equal(
        x.constructURL("https://www.mail.ru?a=1#anchor", {
            "areurobot": "yes",
            "text": "blah"
        }),
        "https://www.mail.ru?a=1&areurobot=yes&text=blah#anchor",
        "OK"
    );

});<commit_msg>fix of test<commit_after>/* global x, equal, ok, QUnit */
/* jshint multistr: true */
(function() {
    "use strict";

    QUnit.module('franky');

    test("test for x.constructURL", function () {

        equal(
            x.constructURL("http://www.yandex.ru", {
                "text": 1,
                "hello": "world"
            }),
            "http://www.yandex.ru?text=1&hello=world",
            "OK"
        );

        equal(
            x.constructURL("http://www.google.com?", {
                "search": "ololo",
                "test": "ok"
            }),
            "http://www.google.com?search=ololo&test=ok",
            "OK"
        );

        equal(
            x.constructURL("http://www.google.com?", {
                "text": ""
            }),
            "http://www.google.com?text=",
            "OK"
        );

        equal(
            x.constructURL("http://www.yandex.com/test/?vow=test", {
                "search": "ololo",
                "test": "ok"
            }),
            "http://www.yandex.com/test/?vow=test&search=ololo&test=ok",
            "OK"
        );

        equal(
            x.constructURL("http://www.yandex.com:5674/test/?vow=test", {
                "search": "ololo",
                "test": "ok"
            }),
            "http://www.yandex.com:5674/test/?vow=test&search=ololo&test=ok",
            "OK"
        );

        equal(
            x.constructURL("https://www.mail.ru?a=1#anchor", {
                "areurobot": "yes",
                "text": "blah"
            }),
            "https://www.mail.ru?a=1&areurobot=yes&text=blah#anchor",
            "OK"
        );

    });

})();
{'fraction_non_alphanumeric': 0.19796787938380858, 'fraction_numerical': 0.007866273352999017, 'mean_word_length': 1.408839779005525, 'pattern_counts': {'":': 22, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 24, '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': '1152831', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1016, 'n_words': 117}