<commit_before>'use strict';

testRunner.controller('testRunnerController', [
    '$scope', '$compile',
    function ($scope, $compile) {
        $scope.concertoOptions = {};
        var RESPONSE_VIEW_TEMPLATE = 0;
        var RESPONSE_FINISHED = 1;
        var RESPONSE_SUBMIT = 2;
        var RESPONSE_VIEW_FINAL_TEMPLATE = 5;
        var RESPONSE_RESULTS = 7;
        var RESPONSE_AUTHENTICATION_FAILED = 8;
        var RESPONSE_STARTING = 9;
        var RESPONSE_KEEPALIVE_CHECKIN = 10;
        var RESPONSE_UNRESUMABLE = 11;
        var RESPONSE_ERROR = -1;
        $scope.init = function (node, directory, test, params, debug, keepAliveInterval) {
            var callback = function (response, hash) {
                testRunner.overridableCallback(response);
            };

            $scope.concertoOptions = angular.extend($scope.concertoOptions, {
                nodeId: node,
                directory: directory,
                testId: test,
                params: params,
                debug: debug,
                callback: callback,
                keepAliveInterval: keepAliveInterval
            });

            $scope.startTest();
        };

        $scope.startTest = function (hash) {
            var testElement = angular.element("<concerto-test concerto-options='concertoOptions' />");
            angular.element("#testContainer").html(testElement);
            $compile(testElement)($scope);
        };
    }
]);

testRunner.overridableCallback = function (response) {
};

testRunner.submitView = function (buttonName, timeout, passedValues) {
<commit_msg>cleaning<commit_after>'use strict';

testRunner.controller('testRunnerController', [
    '$scope', '$compile',
    function ($scope, $compile) {
        $scope.concertoOptions = {};
        var RESPONSE_VIEW_TEMPLATE = 0;
        var RESPONSE_FINISHED = 1;
        var RESPONSE_SUBMIT = 2;
        var RESPONSE_VIEW_FINAL_TEMPLATE = 5;
        var RESPONSE_RESULTS = 7;
        var RESPONSE_AUTHENTICATION_FAILED = 8;
        var RESPONSE_STARTING = 9;
        var RESPONSE_KEEPALIVE_CHECKIN = 10;
        var RESPONSE_UNRESUMABLE = 11;
        var RESPONSE_ERROR = -1;
        $scope.init = function (node, directory, test, params, debug, keepAliveInterval) {
            var callback = function (response, hash) {
                testRunner.overridableCallback(response);
                return true;
            };

            $scope.concertoOptions = angular.extend($scope.concertoOptions, {
                nodeId: node,
                directory: directory,
                testId: test,
                params: params,
                debug: debug,
                callback: callback,
                keepAliveInterval: keepAliveInterval
            });

            $scope.startTest();
        };

        $scope.startTest = function (hash) {
            var testElement = angular.element("<concerto-test concerto-options='concertoOptions' />");
            angular.element("#testContainer").html(testElement);
            $compile(testElement)($scope);
        };
    }
]);

testRunner.overridableCallback = function (response) {
};

testRunner.submitView = function (buttonName, timeout, passedValues) {

{'fraction_non_alphanumeric': 0.103243917654398, 'fraction_numerical': 0.007485963817841547, 'mean_word_length': 2.134897360703812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7064576', 'n_tokens_mistral': 956, 'n_tokens_neox': 904, 'n_words': 176}