<commit_before>var scApp = angular.module("scApp", ["ngRoute", "bravoUiAlert"]);

scApp.config(["$routeProvider", function($routeProvider){
    $routeProvider.otherwise({redirectTo:"/summaries"})
        .when("/summaries", {templateUrl:"views/summary.html", controller:"CSCSummary"});
}]);

scApp.controller("CSCMain", ["$scope", function($scope){
    $scope.logs = [];
}]);

scApp.controller("CSCSummary", ["$scope", function($scope){
}]);

scApp.filter("sc_filter_log_level", function(){
    return function(v) {
        return v == "warn"? "alert-warn":"alert-success";
    };
});
<commit_msg>directly use parent variables.<commit_after>var scApp = angular.module("scApp", ["ngRoute", "bravoUiAlert"]);

scApp.config(["$routeProvider", function($routeProvider){
    $routeProvider.otherwise({redirectTo:"/summaries"})
        .when("/summaries", {templateUrl:"views/summary.html", controller:"CSCSummary"});
}]);

scApp.controller("CSCMain", ["$scope", function($scope){
    $scope.logs = [];
}]);

scApp.controller("CSCSummary", ["$scope", function($scope){
    $scope.logs.push({code: 101, level:"warn", msg:"Summary fake error."});
}]);

scApp.filter("sc_filter_log_level", function(){
    return function(v) {
        return v == "warn"? "alert-warn":"alert-success";
    };
});

{'fraction_non_alphanumeric': 0.22144522144522144, 'fraction_numerical': 0.002331002331002331, 'mean_word_length': 5.778947368421052, 'pattern_counts': {'":': 2, '<': 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': '6806105', 'n_tokens_mistral': 420, 'n_tokens_neox': 410, 'n_words': 61}