<commit_before>var app = angular.module('product', ['ngRoute', 'ngResource', 'nh-common']);

app.config(['$routeProvider', function($routeProvider) {
    $routeProvider.
        when('/', {
            templateUrl: 'production/partials/index.html',
            controller: 'dashboardController',
            reloadOnSearch: true
        });
}]);

angular.bootstrap().invoke(bootstrap('product'));

app.controller('dashboardController', function($scope) {
    $scope.productions = 'production/partials/xt-tea.html';
});

app.controller('ProductionController', function($scope, Product) {
    $scope.dataLoaded = false;
    Product.getProduct().$promise.then(
        function(data) {
            $scope.dataLoaded = true;
            $scope.products = data;
            window.localStorage['productions'] = JSON.stringify(data);
        }
    );
});

app.directive('tiles',
    function() {
        return {
            restrict: 'E',
            transclude: true,<commit_msg>add for callback route; Wayde<commit_after>var app = angular.module('product', ['ngRoute', 'ngResource', 'nh-common']);

app.config(['$routeProvider', function($routeProvider) {
    $routeProvider.
        when('/', {
            templateUrl: 'production/partials/index.html',
            controller: 'dashboardController',
            reloadOnSearch: true
        }).
        when('/callback/:token/:username/:uid', {
            templateUrl: 'production/partials/index.html',
            controller: 'dashboardCallbackController',
            reloadOnSearch: true
        }).otherwise({redirectTo:'/'});
}]);

angular.bootstrap().invoke(bootstrap('product'));

app.controller('dashboardController', function($scope) {
    $scope.productions = 'production/partials/xt-tea.html';
});

app.controller('dashboardCallbackController', function($scope, $routeParams) {
    $scope.productions = 'production/partials/xt-tea.html';

    console.log($routeParams);
});

app.controller('ProductionController', function($scope, Product) {
    $scope.dataLoaded = false;
    Product.getProduct().$promise.then(
        function(data) {
            $scope.dataLoaded = true;
            $scope.products = data;
            window.localStorage['productions'] = JSON.stringify(data);
        }
    );
});

app.directive('tiles',
    function() {
        return {
            restrict: 'E',
            transclude: true,
{'fraction_non_alphanumeric': 0.15889029003783103, 'fraction_numerical': 0.0, 'mean_word_length': 2.953488372093023, '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': '7386579', 'n_tokens_mistral': 651, 'n_tokens_neox': 654, 'n_words': 99}