<commit_before>/*global define */
define([
    'queue', 
    'splitiscope',
    'crossfilter',
    'data',
    'hbs!templates/splititem',
    'hbs!templates/totals',
    'hbs!templates/classList',
], function (queue, split_vis, crossfilter, warehouse, splitItemTemplate, totalsItemTemplate, classListTemplate) {
    'use strict';

    function errorMsg(msg) {
        console.error(msg);
    }

    var range = { 
                x : {
                    min : 0, 
                    max : 8
                },
                y : { 
                    min :-4, 
                    max : 4
                }
            },
        splits_range = { min : 20, max : 200},
        label_list = ['high', 'low'],
        test_data = {},
        num = 500,
        labels = {
                    x : 'Feature X',
                    y : 'Feature Y'
                };

    function numerical_data(axis) {
           return  _.map(_.range(num),function(value) {
               return (Math.random()*(range[axis].max - range[axis].min) + range[axis].min);
           });
    }

    function categorical_data(axis) {
           return _.map(_.range(num),function(value) {
                return ['A','B','C','D'][Math.round(Math.random()*3)];
            });
    }

   test_data.label = _.map(_.range(num),function(value) {
                return label_list[Math.round(Math.random() * (label_list.length-1))];
    });

   test_data.splits_on_x = _.map(_.range(num),function(value) {
                return Math.round(Math.random()*(splits_range.max - splits_range.min) + splits_range.min);
    });

   test_data.id = _.map(_.range(num),function(value) {
                return String.fromCharCode.apply(this, _.map(_.range(5),function()  { return Math.random()*26 + 65;}));
    });

 
    var test_split_x = {

                bins: _.map(_.range(1,9), function(value) {
                   return Math.pow(value+1,-1*Math.abs((value-5)/10))* num;
                }),
                low: range.x.min + 1,
                binsize: ((range.x.max -1) - (range.x.min +1)) / 10
    };

    var test_split_y = {

                bins: _.map(_.range(1,9), function(value) {
                   return Math.pow(value+1,-1*Math.abs((value-5)/10))* num;
                }),
                low: range.y.min + 1,
                binsize: ((range.y.max -1) - (range.y.min +1)) / 10
    };

    var Application = {
        initialize: function(){
            var split_list = '#split_list',
                split_item_class = 'split_item',
                disable_class = '_disabled',<commit_msg>cleaning up test code<commit_after>/*global define */
define([
    'queue', 
    'splitiscope',
    'crossfilter',
    'data',
    'hbs!templates/splititem',
    'hbs!templates/totals',
    'hbs!templates/classList',
], function (queue, split_vis, crossfilter, warehouse, splitItemTemplate, totalsItemTemplate, classListTemplate) {
    'use strict';

    function errorMsg(msg) {
        console.error(msg);
    }

    var Application = {
        initialize: function(){
            var split_list = '#split_list',
                split_item_class = 'split_item',
                disable_class = '_disabled',
{'fraction_non_alphanumeric': 0.15133437990580847, 'fraction_numerical': 0.013500784929356358, 'mean_word_length': 1.7394668959587274, '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': '1023505', 'n_tokens_mistral': 1026, 'n_tokens_neox': 945, 'n_words': 167}