<commit_before>angular.module('main').controller('DisclosuresCtrl', ['$scope', '$route', '$backend', 'QueriesService', 'years', 'periods',
  function($scope, $route, $backend, QueriesService, years, periods) {
    $scope.service = (new QueriesService($backend.API_URL + '/_queries/public/api'));
    $scope.years = years;
	$scope.periods = periods;
    //focus automatically on last year and FY
    $scope.year = [ years[1] ];
    $scope.period = [ periods[0] ];


    $scope.db = [ 
        { Disclosure: "DocumentAndEntityInformation", FiscalYear: "2013", FiscalPeriod: "FY", Filings: 101 },
        { Disclosure: "DocumentAndEntityInformation", FiscalYear: "2012", FiscalPeriod: "FY", Filings: 102 },
        { Disclosure: "DocumentAndEntityInformation", FiscalYear: "2011", FiscalPeriod: "FY", Filings: 103 },
        { Disclosure: "DocumentAndEntityInformation", FiscalYear: "2010", FiscalPeriod: "FY", Filings: 104 },
        { Disclosure: "UncategorizedInformation", FiscalYear: "2013", FiscalPeriod: "Q1", Filings: 105 },
        { Disclosure: "UncategorizedInformation", FiscalYear: "2012", FiscalPeriod: "Q1", Filings: 106 },
        { Disclosure: "UncategorizedInformation", FiscalYear: "2011", FiscalPeriod: "Q1", Filings: 107 },
        { Disclosure: "UncategorizedInformation", FiscalYear: "2010", FiscalPeriod: "Q1", Filings: 108 }
    ];

    $scope.$watch(function() { return angular.toJson($scope.year) + angular.toJson($scope.period); }, 
        function (nv, ov) {
           $scope.data = [];
           $scope.db.forEach(function(item) { if ($scope.year.indexOf(parseInt(item.FiscalYear))>=0 && $scope.period.indexOf(item.FiscalPeriod)>=0) $scope.data.push(item); });
        }
    );
  }
]);<commit_msg>Fix warnings<commit_after>'use strict';

angular.module('main')
.controller('DisclosuresCtrl', function($scope, $route, $backend, QueriesService, years, periods) {
    $scope.service = (new QueriesService($backend.API_URL + '/_queries/public/api'));
    $scope.years = years;
	$scope.periods = periods;
    //focus automatically on last year and FY
    $scope.year = [ years[1] ];
    $scope.period = [ periods[0] ];


    $scope.db = [
        { Disclosure: 'DocumentAndEntityInformation', FiscalYear: '2013', FiscalPeriod: 'FY', Filings: 101 },
        { Disclosure: 'DocumentAndEntityInformation', FiscalYear: '2012', FiscalPeriod: 'FY', Filings: 102 },
        { Disclosure: 'DocumentAndEntityInformation', FiscalYear: '2011', FiscalPeriod: 'FY', Filings: 103 },
        { Disclosure: 'DocumentAndEntityInformation', FiscalYear: '2010', FiscalPeriod: 'FY', Filings: 104 },
        { Disclosure: 'UncategorizedInformation', FiscalYear: '2013', FiscalPeriod: 'Q1', Filings: 105 },
        { Disclosure: 'UncategorizedInformation', FiscalYear: '2012', FiscalPeriod: 'Q1', Filings: 106 },
        { Disclosure: 'UncategorizedInformation', FiscalYear: '2011', FiscalPeriod: 'Q1', Filings: 107 },
        { Disclosure: 'UncategorizedInformation', FiscalYear: '2010', FiscalPeriod: 'Q1', Filings: 108 }
    ];

    $scope.$watch(
        function() {
            return angular.toJson($scope.year) + angular.toJson($scope.period);
        },
        function () {
            $scope.data = [];
            $scope.db.forEach(function(item) {
                if ($scope.year.indexOf(parseInt(item.FiscalYear, 10))>=0 && $scope.period.indexOf(item.FiscalPeriod)>=0) {
                    $scope.data.push(item);
                }
            });
        }
    );
});
{'fraction_non_alphanumeric': 0.16518497275595068, 'fraction_numerical': 0.03728133065672498, 'mean_word_length': 3.6506666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4808269', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1073, 'n_words': 218}