<commit_before>'use strict';

angular.module('frontendApp')
.controller('ProjectCtrl', function($TestData, $scope){
    $TestData.Project.get(function(data){
    	$scope.projects = data;
    	$scope.result = data;
    });
    $scope.search = null;
    $scope.properties = [
        "name",
        "tags"
    ];

    $scope.getReach = function(){
    	$scope.result = [];

    	if($scope.search === null){
    		$scope.result = $scope.projets;
    		return;
    	}
        //$scope.result = _.where($scope.projects, function(row){return name.indexof($scope.search) > -1;});
        for (var i = $scope.projects.length - 1; i >= 0; i--) {
        	var field = (typeof $scope.projects[i][$scope.filter] === Array) ? $scope.projects[i][$scope.filter].join(',') :  $scope.projects[i][$scope.filter];
        	if(field.indexOf($scope.search)>-1){
        		$scope.result.push($scope.projects[i]);
        	}
        }
    };
});<commit_msg>debug tags reach but rest to debug reverse reach on tag<commit_after>'use strict';

angular.module('frontendApp')
.controller('ProjectCtrl', function($TestData, $scope){
    $TestData.Project.get(function(data){
    	$scope.projects = data;
    	$scope.result = data;
    });
    $scope.search = null;
    $scope.properties = [
        "name",
        "tags"
    ];

    $scope.getReach = function(){
    	$scope.result = [];

    	if($scope.search === null){
    		$scope.result = $scope.projects;
    		return;
    	}
        //$scope.result = _.where($scope.projects, function(row){return name.indexof($scope.search) > -1;});
        for (var i = $scope.projects.length - 1; i >= 0; i--) {
        	var field = (typeof $scope.projects[i][$scope.filter] === "object") ? $scope.projects[i][$scope.filter].join(',') :  $scope.projects[i][$scope.filter];;
        	console.log(field);
        	if(field.indexOf($scope.search)>-1){
        		$scope.result.push($scope.projects[i]);
        	}
        }
    };
});
{'fraction_non_alphanumeric': 0.19578622816032887, 'fraction_numerical': 0.0041109969167523125, 'mean_word_length': 2.6324626865671643, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6324901', 'n_tokens_mistral': 660, 'n_tokens_neox': 652, 'n_words': 103}