<commit_before>package com.android.component.explorer.scanner;

import com.google.common.io.Files;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;

/**
 * Created by parkjaesung on 2017. 4. 10..
 */
public class Filter implements DirExplorer.Filter {
    private ArrayList<String> extension_filter = new ArrayList<String>(Arrays.asList("java"));
    public boolean interested(int level, String path, File file) {
        // Get filter only java class files
        if(extension_filter.contains(Files.getFileExtension(file.getName()))){
            return true;
        }
        return false;
    }
}<commit_msg>Updated Filter class<commit_after>package com.android.component.explorer.scanner;

import com.google.common.io.Files;

import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;

/**
 * Created by parkjaesung on 2017. 4. 10..
 */
public class Filter implements DirExplorer.Filter {
    private ArrayList<String> extension_filter = new ArrayList<String>(Arrays.asList("java"));
    private ArrayList<String> filter_name = new ArrayList<String>(Arrays.asList("package-info.java"));
    public boolean interested(int level, String path, File file) {
        // Get filter only java class files
        //TODO Refactor
        if(!path.contains("package-info") &&extension_filter.contains(Files.getFileExtension(file.getName()))){
            return true;
        }
        return false;
    }
}
{'fraction_non_alphanumeric': 0.11626297577854672, 'fraction_numerical': 0.009688581314878892, 'mean_word_length': 3.5615141955835963, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5395596', 'n_tokens_mistral': 416, 'n_tokens_neox': 403, 'n_words': 102}