public Set<Detector> getDetectors() { Set<Detector> detectors = Sets.newHashSet(); detectors.add(new EndWithDetector(0.95, '}', ';', '{')); detectors.add(new KeywordsDetector(0.7, "||", "&&")); detectors.add(new KeywordsDetector(0.3, CSharpKeyword.keywordValues())); detectors.add(new ContainsDetector(0.95, "++", "for(", "if(", "while(", "catch(", "switch(", "try{", "else{")); return detectors; }
public JavaFootprint() { detectors.add(new EndWithDetector(0.95, '}', ';', '{')); detectors.add(new KeywordsDetector(0.7, "||", "&&")); detectors.add(new KeywordsDetector(0.3, "public", "abstract", "class", "implements", "extends", "return", "throw", "private", "protected", "enum", "continue", "assert", "package", "synchronized", "boolean", "this", "double", "instanceof", "final", "interface", "static", "void", "long", "int", "float", "super", "true", "case:")); detectors.add(new ContainsDetector(0.95, "++", "for(", "if(", "while(", "catch(", "switch(", "try{", "else{")); detectors.add(new CamelCaseDetector(0.5)); }
@Override public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, PHPKeyword.getKeywordValues()), new ContainsDetector(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", "&=", "^=", "|="), new ContainsDetector(0.95, "!=", "!==")); }
@Override public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, PHPKeyword.getKeywordValues()), new ContainsDetector(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", "&=", "^=", "|="), new ContainsDetector(0.95, "!=", "!==")); }
@Override public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, PHPKeyword.getKeywordValues()), new ContainsDetector(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", "&=", "^=", "|="), new ContainsDetector(0.95, "!=", "!==")); }
@Override public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, EcmaScriptKeyword.keywordValues()), new ContainsDetectorJS(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|="), new ContainsDetectorJS(0.95, "!=", "!==")); }
@Override public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, FlexKeyword.keywordValues()), new ContainsDetector(0.95, "++", "--"), new ContainsDetector(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|="), new ContainsDetector(0.95, "==", "!=", "===", "!==")); }
public Set<Detector> getDetectors() { return ImmutableSet.of( new EndWithDetector(0.95, '}', ';', '{'), new KeywordsDetector(0.3, FlexKeyword.keywordValues()), new ContainsDetector(0.95, "++", "--"), new ContainsDetector(0.95, "*=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|="), new ContainsDetector(0.95, "==", "!=", "===", "!==")); }