<commit_before>class HomeController {
    constructor(scoreService, wordsService, $filter, $scope, $timeout) {
        
        'ngInject';

        this.$filter = $filter;
        this.userName = null;
        this.listOfWords = null;
        this.view = ['name-form','confirm-game','game','results'];
        this.actualView = this.view[0];  //1-insert-name, 2-confirm game and rules 3-game 4-results

        this.counter = 0;
        this.timer = null;
        this.limit  = 40;

        this.userWord = null;
        this.wordOrder = 0;
        this.totalPoints = 0;
        this.currentPoints = 0;
        this.scores = [];

        var self = this;

        /*-----START TIMING------*/
        this.stopCounter = function() {
            $timeout.cancel(self.timer);
            self.timer = null;
        };

        this.startCounter = function() {
            if (self.timer === null) {
                updateCounter();
            }
        };

        var updateCounter = function() {
            if(self.counter < (self.limit-1)){<commit_msg>counter reset before starting<commit_after>class HomeController {
    constructor(scoreService, wordsService, $filter, $scope, $timeout) {
        
        'ngInject';

        this.$filter = $filter;
        this.userName = null;
        this.listOfWords = null;
        this.view = ['name-form','confirm-game','game','results'];
        this.actualView = this.view[0];  //1-insert-name, 2-confirm game and rules 3-game 4-results

        this.counter = 0;
        this.timer = null;
        this.limit  = 40;

        this.userWord = null;
        this.wordOrder = 0;
        this.totalPoints = 0;
        this.currentPoints = 0;
        this.scores = [];

        var self = this;

        /*-----START TIMING------*/
        this.stopCounter = function() {
            $timeout.cancel(self.timer);
            self.timer = null;
        };

        this.startCounter = function() {
            self.counter = 0;
            if (self.timer === null) {
                updateCounter();
            }
        };

        var updateCounter = function() {
            if(self.counter < (self.limit-1)){
{'fraction_non_alphanumeric': 0.14053803339517626, 'fraction_numerical': 0.011595547309833023, 'mean_word_length': 1.6240875912408759, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3391365', 'n_tokens_mistral': 637, 'n_tokens_neox': 597, 'n_words': 126}