<commit_before>function queryString (name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}

$("iframe").attr("src", queryString("site"));

$(".url-to-load").on("keyup", function (e) {
    if (e.keyCode === 13) {
        $("iframe").attr("src", $(this).val());
    }
});


$(document).ready(function() {

    $.fn.fullpage({
        "verticalCentered": false
      , "css3": true
      , "slidesColor": [
            "#123252"
          , "#fff"
          , "#fff"
          , "#fff"
        ]
      , "navigation": true
      , "navigationPosition": "right"
      , "navigationTooltips": [
            "Welcome"
          , "What is «IsRespo?»"
          , "Simple and Beautiful"
          , "Test it"
        ]
      , "fixedElements": "#demosMenu"
      , afterRender: function(){
            $("html").fadeIn(1000);
        }
    });<commit_msg>Moved code inside of ready handler<commit_after>$(document).ready(function() {

    function queryString (name) {
        name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
        var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
            results = regex.exec(location.search);
        return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
    }

    $("iframe").attr("src", queryString("site"));

    $(".url-to-load").on("keyup", function (e) {
        if (e.keyCode === 13) {
            $("iframe").attr("src", $(this).val());
        }
    });

    $.fn.fullpage({
        "verticalCentered": false
      , "css3": true
      , "slidesColor": [
            "#123252"
          , "#fff"
          , "#fff"
          , "#fff"
        ]
      , "navigation": true
      , "navigationPosition": "right"
      , "navigationTooltips": [
            "Welcome"
          , "What is «IsRespo?»"
          , "Simple and Beautiful"
          , "Test it"
        ]
      , "fixedElements": "#demosMenu"
      , afterRender: function(){
            $("html").fadeIn(1000);
        }
    });
{'fraction_non_alphanumeric': 0.22689844464775846, 'fraction_numerical': 0.012808783165599268, 'mean_word_length': 1.927710843373494, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, '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': '4961507', 'n_tokens_mistral': 725, 'n_tokens_neox': 694, 'n_words': 123}