<commit_before>angular.module('codeine').filter('projectsFilter', [ '$log', function($log) {
    return function(projects, selectedTab) {
        var res = [];
        for(var i=0; i < projects.length; i++) {
            for(var j=0; j < selectedTab.exp.length; j++) {
                var patt = new RegExp(selectedTab.exp[j],"g");
                if (patt.test(projects[i].name)) {
                    res.push(projects[i]);
                }
            }
        }
        return res;<commit_msg>fix duplicate projects error<commit_after>angular.module('codeine').filter('projectsFilter', [ '$log', function($log) {
    return function(projects, selectedTab) {
        var res = [];
        for(var i=0; i < projects.length; i++) {
            for(var j=0; j < selectedTab.exp.length; j++) {
                var patt = new RegExp(selectedTab.exp[j],"g");
                if (patt.test(projects[i].name)) {
                    res.push(projects[i]);
                    break;
                }
            }
        }
        return res;
{'fraction_non_alphanumeric': 0.1548076923076923, 'fraction_numerical': 0.0038461538461538464, 'mean_word_length': 1.7467018469656992, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6811819', 'n_tokens_mistral': 307, 'n_tokens_neox': 296, 'n_words': 57}