Skip to content

Commit 39d7766

Browse files
committed
Add DL4J resource file
1 parent c142075 commit 39d7766

File tree

3 files changed

+326
-40
lines changed

3 files changed

+326
-40
lines changed

core/src/main/java/de/fraunhofer/iem/swan/features/doc/DocFeatureHandler.java

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -145,44 +145,6 @@ public void excludeFeatures() {
145145
// exclude.add("AuthNoChangeWordCountFeature");
146146

147147

148-
/*
149-
150-
@attribute LinkTagCountFeature numeric
151-
@attribute SanitizerWordCountFeature numeric
152-
@attribute AverageTokenLengthFeature numeric
153-
@attribute AdverbCountFeature numeric
154-
@attribute SqlInjectionCountFeature numeric
155-
@attribute AuthUnsafeWordCountFeature numeric
156-
@attribute TokenCountFeature numeric
157-
@attribute AuthenticationDataFlowFeature numeric
158-
@attribute UppercaseWordsCountFeature numeric
159-
@attribute PrepositionCountFeature numeric
160-
@attribute PronounCountFeature numeric
161-
@attribute AverageSentenceLengthFeature numeric
162-
@attribute CodeTagCountFeature numeric
163-
@attribute IncompleteCodeFeature numeric
164-
@attribute LemmaCountFeature numeric
165-
@attribute AuthSafeWordCountFeature numeric
166-
@attribute AuthNoChangeWordCountFeature numeric
167-
@attribute SentenceCountFeature numeric
168-
@attribute VerbCountFeature numeric
169-
@attribute StopWordCountFeature numeric
170-
@attribute SanitizerDataFlowFeature numeric
171-
@attribute SeeTagCountFeature numeric
172-
@attribute SinkWordCountFeature numeric
173-
@attribute PunctuationCountFeature numeric
174-
@attribute SourceDataFlowFeature numeric
175-
@attribute DeprecatedTagCountFeature numeric
176-
@attribute CharacterCountFeature numeric
177-
@attribute NounCountFeature numeric
178-
@attribute NumberCountFeature numeric
179-
@attribute SinkDataFlowFeature numeric
180-
@attribute AdjectiveCountFeature numeric
181-
@attribute SourceWordCountFeature numeric
182-
@attribute ConjunctionCountFeature numeric
183-
*/
184-
185-
186148
Set<Class<? extends IDocFeature>> features = new HashSet<>(manualFeatureSet);
187149

188150
for (Class<? extends IDocFeature> feature : features) {

core/src/main/java/de/fraunhofer/iem/swan/features/doc/nlp/DocCommentVector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void main(String[] args) {
4343
//Export method and class doc comments
4444

4545
Parser parser = new Parser();
46-
parser.parse("/Users/oshando/Projects/thesis/03-code/swan/swan_core/src/main/resources/data-set-with-doc-comments.json");
46+
parser.parse("/data-set-with-doc-comments.json");
4747

4848
// for(Method method: parser.getMethods()){
4949
// if(method.getJavadoc().getMethodComment().length()>0)
@@ -86,7 +86,7 @@ public void fitVectors() {
8686
List<String> stopWords = new ArrayList<>();
8787

8888
try {
89-
stopWords = FileUtils.readLines(new File("/Users/oshando/Projects/thesis/03-code/swan/swan_core/src/main/resources/stopwords-list.txt"), Charset.defaultCharset());
89+
stopWords = FileUtils.readLines(new File("../resources/stopwords-list.txt"), Charset.defaultCharset());
9090
} catch (IOException e) {
9191
e.printStackTrace();
9292
}

0 commit comments

Comments
 (0)