<commit_before>define(['plugins/http', 'durandal/app', 'knockout','jquery'], function (http, app, ko, $){
    return{
        groups: ko.observableArray([]),
        name: ko.observable("tetssdas"),

        activate :function(){

          var that = this;

          $.getJSON('app/dataModel/groups.json', function(datalocal){
            var group_suggestion = [];

            // random in range
            function randomRange(min,max)
            {
              return Math.random() * (max-min) + min;
            }

            // get random a number in range of group suggestion in json
            x = Math.round(randomRange(0, datalocal.groups.data.length-2));

            // get the random obj and next of its
            group_suggestion[0] = datalocal.groups.data[x];
            group_suggestion[1] = datalocal.groups.data[x+1];
            

            // set group_suggestion = observableArray groups
            that.groups(group_suggestion);

          }).error(function(jqXhr, textStatus, error) {
              alert("ERROR: " + textStatus + ", " + error);
          });
            this.name();
        }
    }
});
<commit_msg>delete script tag<commit_after>define(['plugins/http', 'durandal/app', 'knockout','jquery'], function (http, app, ko, $){
    return{
        groups: ko.observableArray([]),

        activate :function(){

          var that = this;

          $.getJSON('app/dataModel/groups.json', function(datalocal){
            var group_suggestion = [];

            // random in range
            function randomRange(min,max)
            {
              return Math.random() * (max-min) + min;
            }

            // get random a number in range of group suggestion in json
            x = Math.round(randomRange(0, datalocal.groups.data.length-2));

            // get the random obj and next of its
            group_suggestion[0] = datalocal.groups.data[x];
            group_suggestion[1] = datalocal.groups.data[x+1];
            

            // set group_suggestion = observableArray groups
            that.groups(group_suggestion);

          }).error(function(jqXhr, textStatus, error) {
              alert("ERROR: " + textStatus + ", " + error);
          });
        }
    }
});

{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.0044603033006244425, 'mean_word_length': 1.8107769423558897, 'pattern_counts': {'":': 0, '<': 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': '2867548', 'n_tokens_mistral': 645, 'n_tokens_neox': 611, 'n_words': 135}