<commit_before>'use strict';

/**
 * @ngdoc function
 * @name noonvaleApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the noonvaleApp
 */
angular.module('noonvaleApp')
    .controller('MainCtrl', ['$scope', 'TicTacFinger', function ($scope, TicTacFinger) {
        var freshArray, statusMessage;
        // cells begin as an array of 9 undefined values
        freshArray = [
            undefined,undefined,undefined,
            undefined,undefined,undefined,
            undefined,undefined,undefined
        ];
        // messages to be displayed for game status
        statusMessage = {
            'gameOn': 'Make a move!',
            'winnerX': 'Winner is X!',
            'winnerY': 'Winner is O!',
            'tieGame': 'Everyone loses!'
        };
        // scope for cells is undefined array length 9
        $scope.ticTac = freshArray;
        // Mark turns for the game
        $scope.turn = 0;
        // winner object returns 1 if X wins, 0 if O wins. False otherwise.
        // winner.winset is the the subset of the array of winning cells
        $scope.winner = {
            'identity': false,
            'winSet': []
        };
        // initial status is "Make a move"
        $scope.gameStatus = statusMessage.gameOn;
        // function for ngClass, mark classes for selected cells
        $scope.clickSelect = function(index) {
            var classString = '';
            if ($scope.ticTac[index] !== undefined) {
                if ($scope.ticTac[index] === 1) {
                    classString = classString + ' selected mark_x';
                }
                else {
                    classString = classString + ' selected mark_o';
                }
            }
            return classString;
        };
        // function for ngClass, will visibly show the winning cells
        $scope.markWinSet = function(index) {
            var _i;
            if ($scope.winner.identity !== false) {<commit_msg>uhhh code climate something<commit_after>'use strict';

/**
 * @ngdoc function
 * @name noonvaleApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the noonvaleApp
 */
angular.module('noonvaleApp')
    .controller('MainCtrl', ['$scope', 'TicTacFinger', function ($scope, TicTacFinger) {
        var freshArray, statusMessage;
        // cells begin as an array of 9 undefined values
        freshArray = [
            undefined,undefined,undefined,
            undefined,undefined,undefined,
            undefined,undefined,undefined
          ];
        // messages to be displayed for game status
        statusMessage = {
            'gameOn': 'Make a move!',
            'winnerX': 'Winner is X!',
            'winnerY': 'Winner is O!',
            'tieGame': 'Everyone loses!'
          };
        // scope for cells is undefined array length 9
        $scope.ticTac = freshArray;
        // Mark turns for the game
        $scope.turn = 0;
        // winner object returns 1 if X wins, 0 if O wins. False otherwise.
        // winner.winset is the the subset of the array of winning cells
        $scope.winner = {
            'identity': false,
            'winSet': []
          };
        // initial status is "Make a move"
        $scope.gameStatus = statusMessage.gameOn;
        // function for ngClass, mark classes for selected cells
        $scope.clickSelect = function(index) {
            var classString = '';
            if ($scope.ticTac[index] !== undefined) {
              if ($scope.ticTac[index] === 1) {
                  classString = classString + ' selected mark_x';
                }
                else {
                    classString = classString + ' selected mark_o';
              }
            }
            return classString;
      };
        // function for ngClass, will visibly show the winning cells
        $scope.markWinSet = function(index) {
            var _i;
            if ($scope.winner.identity !== false) {
{'fraction_non_alphanumeric': 0.10475708502024292, 'fraction_numerical': 0.003036437246963563, 'mean_word_length': 1.7527855153203342, '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': '2738847', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1018, 'n_words': 315}