<commit_before>package perf.parse.factory;


import org.json.JSONObject;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import perf.parse.CheatChars;
import perf.parse.Exp;
import perf.parse.JsonBuilder;
import perf.parse.Pattern;



import static org.junit.Assert.*;
/**
 * Created by wreicher on 3/30/15.
 */
public class JStackFactoryTest {

    private static JStackFactory f;


    @BeforeClass public static void staticInit(){
        f = new JStackFactory();

    }

    public void testPattternMatches(Pattern pattern,String matches[],String notMatches[]){
        for(String match : matches){
            assertNotNull(pattern.getName()+" should match: "+match,pattern.getMatch(new StringBuffer(match)));
        }
        for(String notMatch : notMatches){
            assertNull(pattern.getName()+" should not match "+notMatch,pattern.getMatch(new StringBuffer(notMatch)));
        }
    }


    @Before public void reset(){

    }<commit_msg>clean up default comments<commit_after>package perf.parse.factory;


import org.json.JSONObject;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import perf.parse.CheatChars;
import perf.parse.Exp;
import perf.parse.JsonBuilder;
import perf.parse.Pattern;



import static org.junit.Assert.*;
/**
 * 
 */
public class JStackFactoryTest {

    private static JStackFactory f;


    @BeforeClass public static void staticInit(){
        f = new JStackFactory();

    }

    public void testPattternMatches(Pattern pattern,String matches[],String notMatches[]){
        for(String match : matches){
            assertNotNull(pattern.getName()+" should match: "+match,pattern.getMatch(new StringBuffer(match)));
        }
        for(String notMatch : notMatches){
            assertNull(pattern.getName()+" should not match "+notMatch,pattern.getMatch(new StringBuffer(notMatch)));
        }
    }


    @Before public void reset(){

    }
{'fraction_non_alphanumeric': 0.11430035879036392, 'fraction_numerical': 0.0025627883136852894, 'mean_word_length': 3.55011655011655, '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': '6986010', 'n_tokens_mistral': 566, 'n_tokens_neox': 537, 'n_words': 134}