The following document contains the results of PMD 5.3.2.

Files

pikes-naflib - eu/fbk/dkm/pikes/naflib/Corpus.java

Violation Line
Possible God class (WMC=66, ATFD=18, TCC=0.02) 1344
The class 'Corpus' has a Cyclomatic Complexity of 3 (Highest = 10). 30344
The user-supplied array 'files' is stored directly. 81
The method 'get' has a Cyclomatic Complexity of 10. 131172
Avoid using redundant field initializer for 'index' 178
Avoid instantiating new objects inside loops 311

pikes-naflib - eu/fbk/dkm/pikes/naflib/CorpusStatistics.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 17113
The class 'CorpusStatistics' has a Cyclomatic Complexity of 16 (Highest = 15). 17113
The class 'CorpusStatistics' has a Modified Cyclomatic Complexity of 12 (Highest = 11). 17113
The class 'CorpusStatistics' has a Standard Cyclomatic Complexity of 12 (Highest = 11). 17113
When instantiating a SimpleDateFormat object, specify a Locale 20
Parameter 'args' is not assigned and could be declared final 22
The method main() has an NPath complexity of 202 22112
Consider using varargs for methods or constructors which take an array the last parameter. 22
The method 'main' has a Cyclomatic Complexity of 15. 22112
The method 'main' has a Standard Cyclomatic Complexity of 11. 22112
The method 'main' has a Modified Cyclomatic Complexity of 11. 22112
Local variable 'inputFolder' could be declared final 32
Local variable 'recursive' could be declared final 33
Local variable 'corpus' could be declared final 35
Local variable 'numDoc' could be declared final 47
Local variable 'lpName' could be declared final 63
Local variable 'linguisticProcessors' could be declared final 64
Local variable 'linguisticProcessor' could be declared final 65
Local variable 'diff' could be declared final 86
Deeply nested if..then statements are hard to read 8789

pikes-naflib - eu/fbk/dkm/pikes/naflib/NafOffsetReader.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 2055
Parameter 'args' is not assigned and could be declared final 24
Consider using varargs for methods or constructors which take an array the last parameter. 24
Local variable 'document' could be declared final 41
Local variable 'span' could be declared final 46
Local variable 'piece' could be declared final 47

pikes-naflib - eu/fbk/dkm/pikes/naflib/NafRenderUtils.java

Violation Line
Possible God class (WMC=134, ATFD=76, TCC=0.0) 1748
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 27748
The class 'NafRenderUtils' has a Modified Cyclomatic Complexity of 8 (Highest = 16). 27748
The class 'NafRenderUtils' has a Cyclomatic Complexity of 9 (Highest = 19). 27748
The class 'NafRenderUtils' has a Standard Cyclomatic Complexity of 8 (Highest = 16). 27748
The method renderText() has an NPath complexity of 3912 29110
The method 'renderText' has a Modified Cyclomatic Complexity of 16. 29110
The method 'renderText' has a Standard Cyclomatic Complexity of 16. 29110
The method 'renderText' has a Cyclomatic Complexity of 17. 29110
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
The method 'emitTermTooltip' has a Standard Cyclomatic Complexity of 15. 118192
The method 'emitTermTooltip' has a Modified Cyclomatic Complexity of 15. 118192
The method emitTermTooltip() has an NPath complexity of 3360 118192
The method 'emitTermTooltip' has a Cyclomatic Complexity of 19. 118192
Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). 147
Position literals first in String comparisons 219
Position literals first in String comparisons 219
Position literals first in String comparisons 219
The class 'ParsingRenderer' has a Standard Cyclomatic Complexity of 10 (Highest = 24). 225674
The class 'ParsingRenderer' has a Modified Cyclomatic Complexity of 10 (Highest = 24). 225674
The class 'ParsingRenderer' has a Cyclomatic Complexity of 10 (Highest = 26). 225674
The method 'renderDependencies' has a Standard Cyclomatic Complexity of 19. 271368
The method 'renderDependencies' has a Modified Cyclomatic Complexity of 19. 271368
The method renderDependencies() has an NPath complexity of 3570078 271368
The method 'renderDependencies' has a Cyclomatic Complexity of 19. 271368
Avoid instantiating new objects inside loops 298
The method 'computeDependencyRows' has a Cyclomatic Complexity of 10. 410468
The method 'renderSRL' has a Cyclomatic Complexity of 26. 503631
The method renderSRL() has an NPath complexity of 243458 503631
Avoid really long methods. 503631
The method 'renderSRL' has a Standard Cyclomatic Complexity of 24. 503631
The method 'renderSRL' has a Modified Cyclomatic Complexity of 24. 503631
Avoid instantiating new objects inside loops 512
Avoid instantiating new objects inside loops 528
Avoid instantiating new objects inside loops 530
Avoid instantiating new objects inside loops 543
Avoid instantiating new objects inside loops 544
Avoid instantiating new objects inside loops 561

pikes-naflib - eu/fbk/dkm/pikes/naflib/OpinionPrecisionRecall.java

Violation Line
Possible God class (WMC=71, ATFD=57, TCC=0.005263157894736842) 1426
StringBuffer constructor is initialized with size 16, but has at least 415 characters appended. 113
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 114115
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 116117
Avoid declaring a variable if it is unreferenced before a possible exit point. 237
Avoid declaring a variable if it is unreferenced before a possible exit point. 238
Avoid declaring a variable if it is unreferenced before a possible exit point. 239
Avoid declaring a variable if it is unreferenced before a possible exit point. 240
Avoid instantiation through private constructors from outside of the constructors class. 256
The class 'Evaluator' has a Cyclomatic Complexity of 4 (Highest = 10). 259424
The method 'add' has a Cyclomatic Complexity of 10. 292348
Use block level rather than method level synchronization 292348
Use block level rather than method level synchronization 378389
Use block level rather than method level synchronization 391404
Use block level rather than method level synchronization 406422

pikes-naflib - eu/fbk/dkm/pikes/naflib/StripNAF.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1593
The class 'StripNAF' has a Modified Cyclomatic Complexity of 11 (Highest = 10). 1593
The class 'StripNAF' has a Standard Cyclomatic Complexity of 11 (Highest = 10). 1593
The class 'StripNAF' has a Cyclomatic Complexity of 11 (Highest = 10). 1593
Avoid unused private fields such as 'LOGGER'. 17
Avoid unused private fields such as 'sdf'. 18
When instantiating a SimpleDateFormat object, specify a Locale 18
The method 'main' has a Modified Cyclomatic Complexity of 10. 2592
The method 'main' has a Cyclomatic Complexity of 10. 2592
The method 'main' has a Standard Cyclomatic Complexity of 10. 2592
Parameter 'args' is not assigned and could be declared final 25
Consider using varargs for methods or constructors which take an array the last parameter. 25
Local variable 'inputFolder' could be declared final 35
Local variable 'outputFolder' could be declared final 36
Local variable 'outputFile' could be declared final 51
Avoid instantiating new objects inside loops 51
Local variable 'document' could be declared final 60
Local variable 'layer' could be declared final 65
Avoid empty catch blocks 7981

pikes-naflib - eu/fbk/dkm/pikes/naflib/TxtToNaf.java

Violation Line
The class 'TxtToNaf' has a Modified Cyclomatic Complexity of 12 (Highest = 11). 16117
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 16117
The class 'TxtToNaf' has a Standard Cyclomatic Complexity of 13 (Highest = 12). 16117
The class 'TxtToNaf' has a Cyclomatic Complexity of 14 (Highest = 13). 16117
The method main() has an NPath complexity of 389 24116
Consider using varargs for methods or constructors which take an array the last parameter. 24
The method 'main' has a Standard Cyclomatic Complexity of 12. 24116
The method 'main' has a Cyclomatic Complexity of 13. 24116
Parameter 'args' is not assigned and could be declared final 24
The method 'main' has a Modified Cyclomatic Complexity of 11. 24116
Local variable 'inputFolder' could be declared final 42
Local variable 'outputFolder' could be declared final 43
Local variable 'prefix' could be declared final 44
Local variable 'trimText' could be declared final 46
Avoid instantiating new objects inside loops 8385
Local variable 'outputFile' could be declared final 8385
A switch with less than three branches is inefficient, use a if statement instead. 8997
Switch statements should have a default label 8997
Local variable 'parts' could be declared final 94
Local variable 'document' could be declared final 99
Avoid instantiating new objects inside loops 99
Local variable 'documentPublic' could be declared final 101
Do not add empty strings 103
Local variable 'documentFileDesc' could be declared final 105

pikes-naflib - ixa/kaflib/AnnotationContainer.java

Violation Line
Possible God class (WMC=216, ATFD=85, TCC=0.057971014492753624) 11137
The class 'AnnotationContainer' has a Modified Cyclomatic Complexity of 2 (Highest = 34). 111137
The class 'AnnotationContainer' has a Standard Cyclomatic Complexity of 2 (Highest = 34). 111137
Too many fields 111137
The class 'AnnotationContainer' has a Cyclomatic Complexity of 2 (Highest = 34). 111137
Private field 'text' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'nextOffset' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'terms' could be made final; it is only initialized in the declaration or constructor. 28
Private field 'marks' could be made final; it is only initialized in the declaration or constructor. 30
Private field 'deps' could be made final; it is only initialized in the declaration or constructor. 35
Private field 'chunks' could be made final; it is only initialized in the declaration or constructor. 40
Private field 'entities' could be made final; it is only initialized in the declaration or constructor. 45
Private field 'properties' could be made final; it is only initialized in the declaration or constructor. 50
Private field 'categories' could be made final; it is only initialized in the declaration or constructor. 55
Private field 'coreferences' could be made final; it is only initialized in the declaration or constructor. 60
Private field 'timeExpressions' could be made final; it is only initialized in the declaration or constructor. 65
Private field 'tLinks' could be made final; it is only initialized in the declaration or constructor. 68
Private field 'cLinks' could be made final; it is only initialized in the declaration or constructor. 71
Private field 'topics' could be made final; it is only initialized in the declaration or constructor. 76
Private field 'factualities' could be made final; it is only initialized in the declaration or constructor. 81
Private field 'linkedEntities' could be made final; it is only initialized in the declaration or constructor. 86
Private field 'sstSpans' could be made final; it is only initialized in the declaration or constructor. 91
Private field 'opinions' could be made final; it is only initialized in the declaration or constructor. 96
Private field 'relations' could be made final; it is only initialized in the declaration or constructor. 101
Private field 'predicates' could be made final; it is only initialized in the declaration or constructor. 106
Private field 'trees' could be made final; it is only initialized in the declaration or constructor. 111
Private field 'constituencyStrings' could be made final; it is only initialized in the declaration or constructor. 112
Private field 'unknownLayers' could be made final; it is only initialized in the declaration or constructor. 117
Private field 'termsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 122
Private field 'marksIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 123
Private field 'depsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 124
Private field 'chunksIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 125
Private field 'entitiesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 126
Private field 'corefsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 127
Private field 'timeExsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 128
Private field 'factsIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 129
Private field 'linkedEntitiesIndexedByWF' could be made final; it is only initialized in the declaration or constructor. 130
Private field 'sstSpansIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 131
Private field 'propertiesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 132
Private field 'categoriesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 133
Private field 'opinionsIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 134
Private field 'relationsIndexedByRelational' could be made final; it is only initialized in the declaration or constructor. 135
Private field 'predicatesIndexedByTerm' could be made final; it is only initialized in the declaration or constructor. 136
Avoid instantiating String objects; this is usually unnecessary. 162
Parameter 'sent' is not assigned and could be declared final 225
Parameter 'index' is not assigned and could be declared final 225
Parameter 'annotation' is not assigned and could be declared final 225
Parameter 'sent' is not assigned and could be declared final 234
Parameter 'source' is not assigned and could be declared final 234
Parameter 'mark' is not assigned and could be declared final 234
Parameter 'sent' is not assigned and could be declared final 246
Parameter 'para' is not assigned and could be declared final 246
Useless parentheses. 247
Useless parentheses. 247
Parameter 'para' is not assigned and could be declared final 255
Parameter 'index' is not assigned and could be declared final 259
Parameter 'para' is not assigned and could be declared final 259
Local variable 'layer' could be declared final 260
Local variable 'sent' could be declared final 261
Parameter 'source' is not assigned and could be declared final 293
Parameter 'str' is not assigned and could be declared final 413
Parameter 'wf' is not assigned and could be declared final 420
Parameter 'annotation' is not assigned and could be declared final 426
Parameter 'hashId' is not assigned and could be declared final 426
Parameter 'index' is not assigned and could be declared final 426
Parameter 'tid' is not assigned and could be declared final 433
Parameter 'source' is not assigned and could be declared final 433
Parameter 'mark' is not assigned and could be declared final 433
Parameter 'term' is not assigned and could be declared final 446
Parameter 'index' is not assigned and could be declared final 450
Parameter 'term' is not assigned and could be declared final 450
Local variable 'wf' could be declared final 452
Parameter 'term' is not assigned and could be declared final 460
Parameter 'source' is not assigned and could be declared final 464
Parameter 'mark' is not assigned and could be declared final 464
Local variable 'term' could be declared final 471
Parameter 'dep' is not assigned and could be declared final 480
Local variable 'tId' could be declared final 484
Local variable 'tId' could be declared final 488
Parameter 'chunk' is not assigned and could be declared final 497
Local variable 'term' could be declared final 500
Parameter 'entity' is not assigned and could be declared final 509
Local variable 'term' could be declared final 512
Parameter 'feature' is not assigned and could be declared final 521
Local variable 'term' could be declared final 525
Local variable 'term' could be declared final 533
Parameter 'coref' is not assigned and could be declared final 543
Local variable 'span' could be declared final 546
Local variable 'term' could be declared final 547
Parameter 'timex3' is not assigned and could be declared final 555
Local variable 'wf' could be declared final 559
Parameter 'tLink' is not assigned and could be declared final 566
Parameter 'cLink' is not assigned and could be declared final 572
Parameter 'factuality' is not assigned and could be declared final 580
Local variable 'wf' could be declared final 584
Parameter 'linkedEntity' is not assigned and could be declared final 593
Local variable 'wf' could be declared final 597
Parameter 'sst' is not assigned and could be declared final 606
Local variable 't' could be declared final 610
Parameter 't' is not assigned and could be declared final 619
Parameter 'opinion' is not assigned and could be declared final 626
Parameter 'relation' is not assigned and could be declared final 644
Local variable 'rId' could be declared final 648
Local variable 'rId' could be declared final 652
Parameter 'predicate' is not assigned and could be declared final 660
Local variable 'term' could be declared final 663
Parameter 'tree' is not assigned and could be declared final 672
Parameter 'tree' is not assigned and could be declared final 676
Avoid reassigning parameters such as 'sent' 676
Parameter 'constituencyString' is not assigned and could be declared final 700
Parameter 'sent' is not assigned and could be declared final 700
Parameter 'layer' is not assigned and could be declared final 707
Parameter 'sent' is not assigned and could be declared final 714
Parameter 'term' is not assigned and could be declared final 714
Local variable 'sentences' could be declared final 730
Local variable 'sentNumsSet' could be declared final 731
Local variable 'sentNumsList' could be declared final 732
Local variable 'i' could be declared final 734
Local variable 'wfs' could be declared final 735
Parameter 'term' is not assigned and could be declared final 741
Parameter 'sent' is not assigned and could be declared final 748
Parameter 'sent' is not assigned and could be declared final 755
Parameter 'wf' is not assigned and could be declared final 759
Local variable 'terms' could be declared final 760
Parameter 'wf' is not assigned and could be declared final 767
Local variable 'terms' could be declared final 768
Parameter 'wfs' is not assigned and could be declared final 778
Local variable 'terms' could be declared final 779
Local variable 'wf' could be declared final 780
Parameter 'source' is not assigned and could be declared final 786
Parameter 'term' is not assigned and could be declared final 786
Local variable 'marks' could be declared final 787
Local variable 'sourceMarks' could be declared final 791
Parameter 'term' is not assigned and could be declared final 795
Local variable 'deps' could be declared final 796
Parameter 'term' is not assigned and could be declared final 800
Local variable 'chunks' could be declared final 801
Parameter 'term' is not assigned and could be declared final 805
Avoid empty catch blocks 809810
Parameter 'term' is not assigned and could be declared final 814
Local variable 'corefs' could be declared final 815
Parameter 'wf' is not assigned and could be declared final 819
Local variable 'timeExs' could be declared final 820
Parameter 'term' is not assigned and could be declared final 824
Local variable 'properties' could be declared final 825
Parameter 'term' is not assigned and could be declared final 829
Local variable 'categories' could be declared final 830
Parameter 'term' is not assigned and could be declared final 834
Local variable 'opinions' could be declared final 835
Parameter 'relational' is not assigned and could be declared final 839
Local variable 'relations' could be declared final 840
Parameter 'term' is not assigned and could be declared final 844
Local variable 'predicates' could be declared final 845
Parameter 'terms' is not assigned and could be declared final 849
Local variable 'deps' could be declared final 850
Local variable 'term' could be declared final 851
Parameter 'terms' is not assigned and could be declared final 857
Local variable 'chunks' could be declared final 858
Local variable 'term' could be declared final 859
Parameter 'terms' is not assigned and could be declared final 865
Local variable 'entities' could be declared final 866
Local variable 'term' could be declared final 867
Parameter 'terms' is not assigned and could be declared final 873
Local variable 'corefs' could be declared final 874
Local variable 'term' could be declared final 875
Parameter 'wfs' is not assigned and could be declared final 881
Local variable 'timeExs' could be declared final 882
Local variable 'wf' could be declared final 883
Parameter 'terms' is not assigned and could be declared final 889
Local variable 'properties' could be declared final 890
Local variable 'term' could be declared final 891
Parameter 'terms' is not assigned and could be declared final 897
Local variable 'categories' could be declared final 898
Local variable 'term' could be declared final 899
Parameter 'terms' is not assigned and could be declared final 905
Local variable 'opinions' could be declared final 906
Local variable 'term' could be declared final 907
Parameter 'relationals' is not assigned and could be declared final 913
Local variable 'relations' could be declared final 914
Local variable 'relational' could be declared final 915
Parameter 'terms' is not assigned and could be declared final 921
Local variable 'predicates' could be declared final 922
Local variable 'term' could be declared final 923
Parameter 'wfIds' is not assigned and could be declared final 943
Local variable 'terms' could be declared final 944
Local variable 'wfId' could be declared final 945
The method 'removeLayer' has a Standard Cyclomatic Complexity of 16. 9511002
Parameter 'layer' is not assigned and could be declared final 951
The method 'removeLayer' has a Cyclomatic Complexity of 16. 9511002
Avoid really long methods. 10051113
The method 'removeAnnotation' has a Modified Cyclomatic Complexity of 34. 10051113
The method removeAnnotation() has an NCSS line count of 100 10051113
Parameter 'annotation' is not assigned and could be declared final 1005
The method 'removeAnnotation' has a Standard Cyclomatic Complexity of 34. 10051113
The method 'removeAnnotation' has a Cyclomatic Complexity of 34. 10051113
Local variable 'term' could be declared final 1007
Local variable 'wf' could be declared final 1009
Local variable 'dep' could be declared final 1019
Local variable 'entity' could be declared final 1033
Local variable 'term' could be declared final 1035
Local variable 'timex3' could be declared final 1045
Local variable 'wf' could be declared final 1048
Local variable 'coref' could be declared final 1055
Local variable 'span' could be declared final 1057
Local variable 'term' could be declared final 1058
Local variable 'factuality' could be declared final 1064
Local variable 'wf' could be declared final 1067
Local variable 'entity' could be declared final 1073
Local variable 'wf' could be declared final 1076
Local variable 'sst' could be declared final 1082
Local variable 't' could be declared final 1085
Local variable 'predicate' could be declared final 1100
Local variable 'term' could be declared final 1102
Parameter 'annotation' is not assigned and could be declared final 1115
Parameter 'hashId' is not assigned and could be declared final 1115
Parameter 'index' is not assigned and could be declared final 1115
Local variable 'list' could be declared final 1116
Parameter 'sent' is not assigned and could be declared final 1125
Parameter 'index' is not assigned and could be declared final 1125
Parameter 'annotation' is not assigned and could be declared final 1125
Local variable 'list' could be declared final 1127

pikes-naflib - ixa/kaflib/CLink.java

Violation Line
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 8
Parameter 'from' is not assigned and could be declared final 17
Parameter 'to' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 31
Parameter 'to' is not assigned and could be declared final 39
Parameter 'relType' is not assigned and could be declared final 51

pikes-naflib - ixa/kaflib/Chunk.java

Violation Line
Parameter 'span' is not assigned and could be declared final 24
Parameter 'cid' is not assigned and could be declared final 24
Parameter 'chunk' is not assigned and could be declared final 32
Parameter 'terms' is not assigned and could be declared final 32
Local variable 'id' could be declared final 37
Local variable 'span' could be declared final 38
Local variable 'targets' could be declared final 39
Local variable 'copiedTargets' could be declared final 40
Local variable 'term' could be declared final 41
Local variable 'copiedTerm' could be declared final 42
Local variable 'copiedHead' could be declared final 49
Parameter 'id' is not assigned and could be declared final 61
Useless parentheses. 66
Parameter 'phrase' is not assigned and could be declared final 81
Parameter 'chunkcase' is not assigned and could be declared final 93
Parameter 'term' is not assigned and could be declared final 101
Parameter 'isHead' is not assigned and could be declared final 105
Parameter 'term' is not assigned and could be declared final 105
Parameter 'span' is not assigned and could be declared final 113
Local variable 'term' could be declared final 119
Prefer StringBuffer over += for concatenating strings 121
Prefer StringBuffer over += for concatenating strings 123
Parameter 'term' is not assigned and could be declared final 129

pikes-naflib - ixa/kaflib/Comment.java

Violation Line
Avoid reassigning parameters such as 'text' 14
Avoid reassigning parameters such as 'text' 14
Avoid reassigning parameters such as 'text' 14

pikes-naflib - ixa/kaflib/Coref.java

Violation Line
Parameter 'cluster' is not assigned and could be declared final 21
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 31
Parameter 'mentions' is not assigned and could be declared final 34
Parameter 'coid' is not assigned and could be declared final 34
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 35
Parameter 'coref' is not assigned and could be declared final 46
Parameter 'terms' is not assigned and could be declared final 46
Local variable 'id' could be declared final 49
Local variable 'span' could be declared final 51
Local variable 'targets' could be declared final 53
Local variable 'copiedTargets' could be declared final 54
Avoid instantiating new objects inside loops 54
Local variable 'term' could be declared final 55
Local variable 'copiedTerm' could be declared final 56
Local variable 'copiedHead' could be declared final 63
Avoid instantiating new objects inside loops 64
Avoid instantiating new objects inside loops 67
Parameter 'id' is not assigned and could be declared final 76
Parameter 'type' is not assigned and could be declared final 92
Parameter 'externalRef' is not assigned and could be declared final 100
Parameter 'externalRefs' is not assigned and could be declared final 104
Parameter 'term' is not assigned and could be declared final 114
Parameter 'term' is not assigned and could be declared final 119
Parameter 'isHead' is not assigned and could be declared final 119
Parameter 'span' is not assigned and could be declared final 127
Parameter 'span' is not assigned and could be declared final 131
Local variable 'term' could be declared final 133
Prefer StringBuffer over += for concatenating strings 135
Prefer StringBuffer over += for concatenating strings 137
Local variable 'list' could be declared final 144
Local variable 'span' could be declared final 145
Parameter 'span' is not assigned and could be declared final 152

pikes-naflib - ixa/kaflib/Dep.java

Violation Line
Parameter 'from' is not assigned and could be declared final 22
Parameter 'to' is not assigned and could be declared final 22
Parameter 'rfunc' is not assigned and could be declared final 22
Parameter 'terms' is not assigned and could be declared final 28
Parameter 'dep' is not assigned and could be declared final 28
Parameter 'term' is not assigned and could be declared final 45
Parameter 'term' is not assigned and could be declared final 53
Parameter 'rfunc' is not assigned and could be declared final 61
Parameter 'depcase' is not assigned and could be declared final 73
Local variable 'idFrom' could be declared final 78
Local variable 'idTo' could be declared final 79
Local variable 'depList' could be declared final 104
Local variable 'deps' could be declared final 209

pikes-naflib - ixa/kaflib/Entity.java

Violation Line
Private field 'references' could be made final; it is only initialized in the declaration or constructor. 32
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 35
Parameter 'eid' is not assigned and could be declared final 37
Parameter 'references' is not assigned and could be declared final 37
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 38
Parameter 'entity' is not assigned and could be declared final 50
Parameter 'terms' is not assigned and could be declared final 50
Local variable 'id' could be declared final 54
Local variable 'span' could be declared final 56
Local variable 'targets' could be declared final 58
Local variable 'copiedTargets' could be declared final 59
Avoid instantiating new objects inside loops 59
Local variable 'term' could be declared final 60
Local variable 'copiedTerm' could be declared final 61
Local variable 'copiedHead' could be declared final 68
Avoid instantiating new objects inside loops 69
Avoid instantiating new objects inside loops 72
Local variable 'externalRef' could be declared final 77
Avoid instantiating new objects inside loops 78
Parameter 'id' is not assigned and could be declared final 87
Parameter 'type' is not assigned and could be declared final 99
Parameter 'named' is not assigned and could be declared final 107
Parameter 'term' is not assigned and could be declared final 117
Parameter 'isHead' is not assigned and could be declared final 122
Parameter 'term' is not assigned and could be declared final 122
Parameter 'span' is not assigned and could be declared final 130
Parameter 'resource' is not assigned and could be declared final 134
Local variable 'ref' could be declared final 135
Parameter 'externalRef' is not assigned and could be declared final 147
Parameter 'externalRefs' is not assigned and could be declared final 151
Parameter 'span' is not assigned and could be declared final 155
Local variable 'term' could be declared final 157
Prefer StringBuffer over += for concatenating strings 159
Prefer StringBuffer over += for concatenating strings 161
Local variable 'list' could be declared final 172
Local variable 'span' could be declared final 173
Parameter 'span' is not assigned and could be declared final 180

pikes-naflib - ixa/kaflib/ExternalRef.java

Violation Line
Avoid using redundant field initializer for 'source' 11
Parameter 'resource' is not assigned and could be declared final 14
Parameter 'reference' is not assigned and could be declared final 14
Parameter 'externalReference' is not assigned and could be declared final 19
Parameter 'source' is not assigned and could be declared final 33
Parameter 'val' is not assigned and could be declared final 41
Parameter 'val' is not assigned and could be declared final 49
Parameter 'val' is not assigned and could be declared final 61
Parameter 'externalRef' is not assigned and could be declared final 73
Parameter 'object' is not assigned and could be declared final 78
Local variable 'other' could be declared final 85

pikes-naflib - ixa/kaflib/Factuality.java

Violation Line
Parameter 'word' is not assigned and could be declared final 15
Parameter 'word' is not assigned and could be declared final 23
Parameter 'part' is not assigned and could be declared final 31
Parameter 'prediction' is not assigned and could be declared final 35
Parameter 'confidence' is not assigned and could be declared final 35
Local variable 'p' could be declared final 51
Parameter 'confidence' is not assigned and could be declared final 66
Parameter 'prediction' is not assigned and could be declared final 66
Parameter 'prediction' is not assigned and could be declared final 75
Parameter 'confidence' is not assigned and could be declared final 83

pikes-naflib - ixa/kaflib/Feature.java

Violation Line
Private field 'references' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'references' is not assigned and could be declared final 22
Parameter 'lemma' is not assigned and could be declared final 22
Parameter 'id' is not assigned and could be declared final 22
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 23
Parameter 'feature' is not assigned and could be declared final 35
Parameter 'terms' is not assigned and could be declared final 35
Local variable 'id' could be declared final 39
Local variable 'span' could be declared final 41
Local variable 'targets' could be declared final 43
Avoid instantiating new objects inside loops 44
Local variable 'copiedTargets' could be declared final 44
Local variable 'term' could be declared final 45
Local variable 'copiedTerm' could be declared final 46
Local variable 'copiedHead' could be declared final 53
Avoid instantiating new objects inside loops 54
Avoid instantiating new objects inside loops 57
Local variable 'externalRef' could be declared final 62
Avoid instantiating new objects inside loops 63
Parameter 'id' is not assigned and could be declared final 79
Parameter 'lemma' is not assigned and could be declared final 87
Parameter 'term' is not assigned and could be declared final 97
Parameter 'isHead' is not assigned and could be declared final 102
Parameter 'term' is not assigned and could be declared final 102
Parameter 'span' is not assigned and could be declared final 110
Parameter 'externalRef' is not assigned and could be declared final 118
Parameter 'externalRefs' is not assigned and could be declared final 122
Parameter 'span' is not assigned and could be declared final 126
Local variable 'term' could be declared final 128
Prefer StringBuffer over += for concatenating strings 130
Prefer StringBuffer over += for concatenating strings 132
Local variable 'list' could be declared final 144
Local variable 'span' could be declared final 145
Parameter 'span' is not assigned and could be declared final 152

pikes-naflib - ixa/kaflib/GenericId.java

Violation Line
Private field 'prefix' could be made final; it is only initialized in the declaration or constructor. 15
Avoid using redundant field initializer for 'counter' 16
Avoid using redundant field initializer for 'inconsistent' 17
Parameter 'id' is not assigned and could be declared final 26
Local variable 'idNum' could be declared final 28
Parameter 'prefix' is not assigned and could be declared final 37
Parameter 'id' is not assigned and could be declared final 41
Local variable 'matcher' could be declared final 42

pikes-naflib - ixa/kaflib/IReferable.java

Violation Line
Parameter 'o' is not assigned and could be declared final 7

pikes-naflib - ixa/kaflib/IdManager.java

Violation Line
Too many fields 1270
Private field 'componentCounter' could be made final; it is only initialized in the declaration or constructor. 37
Avoid using redundant field initializer for 'inconsistentIdComponent' 38
Parameter 'termId' is not assigned and could be declared final 41
Avoid declaring a variable if it is unreferenced before a possible exit point. 42
Avoid declaring a variable if it is unreferenced before a possible exit point. 43
Parameter 'id' is not assigned and could be declared final 59
Parameter 'termId' is not assigned and could be declared final 59
Avoid declaring a variable if it is unreferenced before a possible exit point. 60
Local variable 'matcher' could be declared final 61

pikes-naflib - ixa/kaflib/KAFDocument.java

Violation Line
Possible God class (WMC=329, ATFD=146, TCC=3.727518404622123E-4) 12168
The class 'KAFDocument' has a Modified Cyclomatic Complexity of 2 (Highest = 14). 212168
The class 'KAFDocument' has a Standard Cyclomatic Complexity of 2 (Highest = 14). 212168
The class 'KAFDocument' has a Cyclomatic Complexity of 2 (Highest = 14). 212168
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 67
Private field 'lps' could be made final; it is only initialized in the declaration or constructor. 72
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 76
Private field 'idManager' could be made final; it is only initialized in the declaration or constructor. 81
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 81
Private field 'annotationContainer' could be made final; it is only initialized in the declaration or constructor. 86
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
Parameter 'lang' is not assigned and could be declared final 91
Parameter 'version' is not assigned and could be declared final 91
Parameter 'file' is not assigned and could be declared final 104
Parameter 'stream' is not assigned and could be declared final 115
Parameter 'lang' is not assigned and could be declared final 128
Parameter 'version' is not assigned and could be declared final 142
Parameter 'layer' is not assigned and could be declared final 156
Parameter 'name' is not assigned and could be declared final 156
Local variable 'lp' could be declared final 157
Parameter 'linguisticProcessor' is not assigned and could be declared final 167
Parameter 'layer' is not assigned and could be declared final 167
Parameter 'lps' is not assigned and could be declared final 177
Local variable 'entry' could be declared final 178
Local variable 'layerLps' could be declared final 179
Local variable 'lp' could be declared final 180
Local variable 'newLp' could be declared final 181
Parameter 'layer' is not assigned and could be declared final 209
Parameter 'version' is not assigned and could be declared final 209
Parameter 'name' is not assigned and could be declared final 209
Local variable 'layerLPs' could be declared final 210
Local variable 'lp' could be declared final 214
Parameter 'layer' is not assigned and could be declared final 228
Parameter 'name' is not assigned and could be declared final 228
Local variable 'layerLPs' could be declared final 229
Local variable 'lp' could be declared final 233
Avoid instantiation through private constructors from outside of the constructors class. 245
Avoid instantiation through private constructors from outside of the constructors class. 254
Parameter 'rawText' is not assigned and could be declared final 272
Parameter 'sent' is not assigned and could be declared final 283
Parameter 'form' is not assigned and could be declared final 283
Parameter 'id' is not assigned and could be declared final 283
Local variable 'newWF' could be declared final 285
Parameter 'offset' is not assigned and could be declared final 297
Parameter 'form' is not assigned and could be declared final 297
Local variable 'newId' could be declared final 298
Local variable 'offsetVal' could be declared final 299
Local variable 'newWF' could be declared final 300
Parameter 'offset' is not assigned and could be declared final 313
Parameter 'form' is not assigned and could be declared final 313
Parameter 'sent' is not assigned and could be declared final 313
Local variable 'newId' could be declared final 314
Local variable 'newWF' could be declared final 315
Parameter 'id' is not assigned and could be declared final 332
Parameter 'span' is not assigned and could be declared final 332
Local variable 'newTerm' could be declared final 334
Parameter 'span' is not assigned and could be declared final 339
Parameter 'id' is not assigned and could be declared final 339
Parameter 'isComponent' is not assigned and could be declared final 339
Local variable 'newTerm' could be declared final 341
Parameter 'position' is not assigned and could be declared final 348
Parameter 'span' is not assigned and could be declared final 348
Parameter 'id' is not assigned and could be declared final 348
Local variable 'newTerm' could be declared final 350
Parameter 'span' is not assigned and could be declared final 364
Local variable 'newId' could be declared final 365
Local variable 'newTerm' could be declared final 366
Parameter 'span' is not assigned and could be declared final 380
Parameter 'morphofeat' is not assigned and could be declared final 380
Local variable 'newId' could be declared final 381
Local variable 'newTerm' could be declared final 382
Parameter 'lemma' is not assigned and could be declared final 388
Parameter 'terms' is not assigned and could be declared final 388
Local variable 'span' could be declared final 389
Local variable 'term' could be declared final 390
Local variable 'newId' could be declared final 393
Local variable 'compound' could be declared final 394
Local variable 'term' could be declared final 396
Local variable 'newSentiment' could be declared final 410
Consider simply returning the value vs storing it in local variable 'newSentiment' 411
Parameter 'id' is not assigned and could be declared final 414
Parameter 'source' is not assigned and could be declared final 414
Parameter 'span' is not assigned and could be declared final 414
Local variable 'newMark' could be declared final 416
Parameter 'span' is not assigned and could be declared final 421
Parameter 'source' is not assigned and could be declared final 421
Local variable 'newId' could be declared final 422
Local variable 'newMark' could be declared final 423
Parameter 'rfunc' is not assigned and could be declared final 436
Parameter 'from' is not assigned and could be declared final 436
Parameter 'to' is not assigned and could be declared final 436
Local variable 'newDep' could be declared final 437
Parameter 'phrase' is not assigned and could be declared final 451
Parameter 'id' is not assigned and could be declared final 451
Parameter 'span' is not assigned and could be declared final 451
Local variable 'newChunk' could be declared final 453
Parameter 'span' is not assigned and could be declared final 467
Parameter 'phrase' is not assigned and could be declared final 467
Local variable 'newId' could be declared final 468
Local variable 'newChunk' could be declared final 469
Parameter 'references' is not assigned and could be declared final 483
Parameter 'id' is not assigned and could be declared final 483
Local variable 'newEntity' could be declared final 485
Parameter 'references' is not assigned and could be declared final 497
Local variable 'newId' could be declared final 498
Local variable 'newEntity' could be declared final 499
Parameter 'mentions' is not assigned and could be declared final 511
Parameter 'id' is not assigned and could be declared final 511
Local variable 'newCoref' could be declared final 513
Parameter 'mentions' is not assigned and could be declared final 524
Local variable 'newId' could be declared final 525
Local variable 'newCoref' could be declared final 526
Parameter 'mentions' is not assigned and could be declared final 538
Parameter 'id' is not assigned and could be declared final 538
Parameter 'type' is not assigned and could be declared final 538
Local variable 'newTimex3' could be declared final 540
Parameter 'type' is not assigned and could be declared final 552
Parameter 'mentions' is not assigned and could be declared final 552
Local variable 'newId' could be declared final 553
Local variable 'newTimex3' could be declared final 554
Parameter 'type' is not assigned and could be declared final 565
Parameter 'id' is not assigned and could be declared final 565
Local variable 'newTimex3' could be declared final 567
Parameter 'type' is not assigned and could be declared final 576
Local variable 'newId' could be declared final 577
Local variable 'newTimex3' could be declared final 578
Parameter 'from' is not assigned and could be declared final 583
Parameter 'relType' is not assigned and could be declared final 583
Parameter 'id' is not assigned and could be declared final 583
Parameter 'to' is not assigned and could be declared final 583
Local variable 'newTLink' could be declared final 585
Parameter 'from' is not assigned and could be declared final 590
Parameter 'to' is not assigned and could be declared final 590
Parameter 'relType' is not assigned and could be declared final 590
Local variable 'newId' could be declared final 591
Local variable 'newTLink' could be declared final 592
Parameter 'id' is not assigned and could be declared final 597
Parameter 'to' is not assigned and could be declared final 597
Parameter 'from' is not assigned and could be declared final 597
Local variable 'newCLink' could be declared final 599
Parameter 'from' is not assigned and could be declared final 604
Parameter 'to' is not assigned and could be declared final 604
Local variable 'newId' could be declared final 605
Local variable 'newCLink' could be declared final 606
Parameter 'term' is not assigned and could be declared final 618
Local variable 'factuality' could be declared final 619
Parameter 'id' is not assigned and could be declared final 631
Parameter 'span' is not assigned and could be declared final 631
Local variable 'linkedEntity' could be declared final 632
Parameter 'span' is not assigned and could be declared final 643
Local variable 'newId' could be declared final 644
Local variable 'linkedEntity' could be declared final 645
Parameter 'span' is not assigned and could be declared final 656
Local variable 'newId' could be declared final 657
Local variable 'sst' could be declared final 658
Parameter 'type' is not assigned and could be declared final 663
Parameter 'span' is not assigned and could be declared final 663
Parameter 'label' is not assigned and could be declared final 663
Local variable 'newId' could be declared final 664
Local variable 'sst' could be declared final 665
Local variable 'newId' could be declared final 679
Local variable 't' could be declared final 680
Parameter 'probability' is not assigned and could be declared final 685
Parameter 'label' is not assigned and could be declared final 685
Local variable 'newId' could be declared final 686
Local variable 't' could be declared final 687
Parameter 'id' is not assigned and could be declared final 702
Parameter 'references' is not assigned and could be declared final 702
Parameter 'lemma' is not assigned and could be declared final 702
Local variable 'newProperty' could be declared final 704
Parameter 'lemma' is not assigned and could be declared final 716
Parameter 'references' is not assigned and could be declared final 716
Local variable 'newId' could be declared final 717
Local variable 'newProperty' could be declared final 718
Parameter 'lemma' is not assigned and could be declared final 731
Parameter 'references' is not assigned and could be declared final 731
Parameter 'id' is not assigned and could be declared final 731
Local variable 'newCategory' could be declared final 733
Parameter 'references' is not assigned and could be declared final 745
Parameter 'lemma' is not assigned and could be declared final 745
Local variable 'newId' could be declared final 746
Local variable 'newCategory' could be declared final 747
Local variable 'newId' could be declared final 758
Local variable 'newOpinion' could be declared final 759
Parameter 'id' is not assigned and could be declared final 769
Local variable 'newOpinion' could be declared final 771
Parameter 'to' is not assigned and could be declared final 783
Parameter 'from' is not assigned and could be declared final 783
Local variable 'newId' could be declared final 784
Local variable 'newRelation' could be declared final 785
Parameter 'id' is not assigned and could be declared final 798
Parameter 'to' is not assigned and could be declared final 798
Parameter 'from' is not assigned and could be declared final 798
Local variable 'newRelation' could be declared final 800
Parameter 'id' is not assigned and could be declared final 812
Parameter 'span' is not assigned and could be declared final 812
Local variable 'newPredicate' could be declared final 814
Parameter 'span' is not assigned and could be declared final 825
Local variable 'newId' could be declared final 826
Local variable 'newPredicate' could be declared final 827
Parameter 'predicate' is not assigned and could be declared final 841
Parameter 'span' is not assigned and could be declared final 841
Parameter 'semRole' is not assigned and could be declared final 841
Parameter 'id' is not assigned and could be declared final 841
Local variable 'newRole' could be declared final 843
Consider simply returning the value vs storing it in local variable 'newRole' 844
Parameter 'semRole' is not assigned and could be declared final 855
Parameter 'predicate' is not assigned and could be declared final 855
Parameter 'span' is not assigned and could be declared final 855
Local variable 'newId' could be declared final 856
Local variable 'newRole' could be declared final 857
Consider simply returning the value vs storing it in local variable 'newRole' 858
Parameter 'reference' is not assigned and could be declared final 868
Parameter 'resource' is not assigned and could be declared final 868
Parameter 'root' is not assigned and could be declared final 872
Parameter 'root' is not assigned and could be declared final 876
Parameter 'sentence' is not assigned and could be declared final 876
Local variable 'tree' could be declared final 877
Parameter 'constituencyString' is not assigned and could be declared final 882
Parameter 'sent' is not assigned and could be declared final 882
Parameter 'parseOut' is not assigned and could be declared final 886
Parameter 'sentence' is not assigned and could be declared final 890
Parameter 'parseOut' is not assigned and could be declared final 890
Parameter 'label' is not assigned and could be declared final 894
Parameter 'id' is not assigned and could be declared final 894
Local variable 'tn' could be declared final 895
Local variable 'newEdgeId' could be declared final 896
Parameter 'label' is not assigned and could be declared final 901
Local variable 'newId' could be declared final 902
Local variable 'newEdgeId' could be declared final 903
Local variable 'newNonterminal' could be declared final 904
Parameter 'id' is not assigned and could be declared final 909
Parameter 'span' is not assigned and could be declared final 909
Local variable 'tn' could be declared final 910
Local variable 'newEdgeId' could be declared final 911
Parameter 'span' is not assigned and could be declared final 916
Local variable 'newId' could be declared final 917
Local variable 'newEdgeId' could be declared final 918
Local variable 'tn' could be declared final 919
Parameter 'targets' is not assigned and could be declared final 928
Parameter 'targets' is not assigned and could be declared final 932
Parameter 'head' is not assigned and could be declared final 932
Parameter 'targets' is not assigned and could be declared final 940
Parameter 'head' is not assigned and could be declared final 944
Parameter 'targets' is not assigned and could be declared final 944
Parameter 'layer' is not assigned and could be declared final 948
Local variable 'wfs' could be declared final 978
Local variable 'firstSentence' could be declared final 979
Local variable 'lastSentence' could be declared final 980
Parameter 'para' is not assigned and could be declared final 984
Parameter 'wfs' is not assigned and could be declared final 1012
Parameter 'sent' is not assigned and could be declared final 1016
Parameter 'source' is not assigned and could be declared final 1024
Parameter 'label' is not assigned and could be declared final 1081
Parameter 'sent' is not assigned and could be declared final 1106
Local variable 'wfs' could be declared final 1107
Parameter 'para' is not assigned and could be declared final 1111
Parameter 'sent' is not assigned and could be declared final 1115
Local variable 'terms' could be declared final 1116
Parameter 'para' is not assigned and could be declared final 1120
Parameter 'sent' is not assigned and could be declared final 1124
Local variable 'entities' could be declared final 1125
Parameter 'para' is not assigned and could be declared final 1129
Parameter 'sent' is not assigned and could be declared final 1133
Parameter 'para' is not assigned and could be declared final 1137
Parameter 'sent' is not assigned and could be declared final 1141
Parameter 'para' is not assigned and could be declared final 1145
Parameter 'sent' is not assigned and could be declared final 1149
Local variable 'result' could be declared final 1150
Parameter 'para' is not assigned and could be declared final 1154
Parameter 'sent' is not assigned and could be declared final 1158
Local variable 'typeTreeIndex' could be declared final 1159
Local variable 'typeTrees' could be declared final 1163
Parameter 'kaf' is not assigned and could be declared final 1171
The method copyAnnotationsToKAF() has an NPath complexity of 1024 11711256
The method 'copyAnnotationsToKAF' has a Modified Cyclomatic Complexity of 11. 11711256
The method 'copyAnnotationsToKAF' has a Cyclomatic Complexity of 11. 11711256
Avoid long parameter lists. 11711184
The method 'copyAnnotationsToKAF' has a Standard Cyclomatic Complexity of 11. 11711256
Parameter 'wfs' is not assigned and could be declared final 1172
Parameter 'terms' is not assigned and could be declared final 1173
Parameter 'deps' is not assigned and could be declared final 1174
Parameter 'chunks' is not assigned and could be declared final 1175
Parameter 'entities' is not assigned and could be declared final 1176
Parameter 'corefs' is not assigned and could be declared final 1177
Parameter 'timeExs' is not assigned and could be declared final 1178
Avoid unused method parameters such as 'timeExs'. 1178
Parameter 'properties' is not assigned and could be declared final 1179
Parameter 'categories' is not assigned and could be declared final 1180
Parameter 'opinions' is not assigned and could be declared final 1181
Parameter 'relations' is not assigned and could be declared final 1182
Parameter 'predicates' is not assigned and could be declared final 1183
Avoid unused method parameters such as 'predicates'. 1183
Local variable 'copiedWFs' could be declared final 1185
Local variable 'copiedTerms' could be declared final 1186
Local variable 'copiedRelationals' could be declared final 1187
Local variable 'wf' could be declared final 1190
Avoid instantiating new objects inside loops 1191
Local variable 'wfCopy' could be declared final 1191
Local variable 'term' could be declared final 1196
Local variable 'termCopy' could be declared final 1197
Avoid instantiating new objects inside loops 1197
Local variable 'dep' could be declared final 1202
Local variable 'depCopy' could be declared final 1203
Avoid instantiating new objects inside loops 1203
Local variable 'chunk' could be declared final 1207
Local variable 'chunkCopy' could be declared final 1208
Avoid instantiating new objects inside loops 1208
Local variable 'entity' could be declared final 1212
Avoid instantiating new objects inside loops 1213
Local variable 'entityCopy' could be declared final 1213
Local variable 'coref' could be declared final 1218
Avoid instantiating new objects inside loops 1219
Local variable 'corefCopy' could be declared final 1219
Local variable 'property' could be declared final 1228
Avoid instantiating new objects inside loops 1229
Local variable 'propertyCopy' could be declared final 1229
Local variable 'category' could be declared final 1234
Avoid instantiating new objects inside loops 1235
Local variable 'categoryCopy' could be declared final 1235
Local variable 'opinion' could be declared final 1240
Local variable 'opinionCopy' could be declared final 1241
Avoid instantiating new objects inside loops 1241
Local variable 'relation' could be declared final 1245
Local variable 'relationCopy' could be declared final 1246
Avoid instantiating new objects inside loops 1246
Parameter 'wfs' is not assigned and could be declared final 1266
Local variable 'terms' could be declared final 1267
Local variable 'deps' could be declared final 1268
Local variable 'chunks' could be declared final 1269
Local variable 'entities' could be declared final 1270
Local variable 'corefs' could be declared final 1271
Local variable 'timeExs' could be declared final 1272
Local variable 'properties' could be declared final 1273
Local variable 'categories' could be declared final 1274
Local variable 'predicates' could be declared final 1276
Local variable 'relationals' could be declared final 1277
Local variable 'relations' could be declared final 1281
Local variable 'newKaf' could be declared final 1283
Parameter 'doc' is not assigned and could be declared final 1293
The method 'join' has a Cyclomatic Complexity of 14. 12931369
The method 'join' has a Standard Cyclomatic Complexity of 14. 12931369
The method join() has an NPath complexity of 4096 12931369
The method 'join' has a Modified Cyclomatic Complexity of 14. 12931369
Local variable 'copiedWFs' could be declared final 1294
Local variable 'copiedTerms' could be declared final 1295
Local variable 'copiedRelationals' could be declared final 1296
Local variable 'lps' could be declared final 1298
Local variable 'entry' could be declared final 1299
Local variable 'layer' could be declared final 1300
Local variable 'lpList' could be declared final 1301
Local variable 'lp' could be declared final 1302
Local variable 'wf' could be declared final 1310
Local variable 'wfCopy' could be declared final 1311
Avoid instantiating new objects inside loops 1311
Local variable 'term' could be declared final 1316
Local variable 'termCopy' could be declared final 1317
Avoid instantiating new objects inside loops 1317
Local variable 'dep' could be declared final 1322
Avoid instantiating new objects inside loops 1323
Local variable 'depCopy' could be declared final 1323
Local variable 'chunk' could be declared final 1327
Local variable 'chunkCopy' could be declared final 1328
Avoid instantiating new objects inside loops 1328
Local variable 'entity' could be declared final 1332
Avoid instantiating new objects inside loops 1333
Local variable 'entityCopy' could be declared final 1333
Local variable 'coref' could be declared final 1338
Avoid instantiating new objects inside loops 1339
Local variable 'corefCopy' could be declared final 1339
Local variable 'property' could be declared final 1348
Local variable 'propertyCopy' could be declared final 1349
Avoid instantiating new objects inside loops 1349
Local variable 'category' could be declared final 1354
Avoid instantiating new objects inside loops 1355
Local variable 'categoryCopy' could be declared final 1355
Local variable 'opinion' could be declared final 1360
Local variable 'opinionCopy' could be declared final 1361
Avoid instantiating new objects inside loops 1361
Local variable 'relation' could be declared final 1365
Avoid instantiating new objects inside loops 1366
Local variable 'relationCopy' could be declared final 1366
Parameter 'wf' is not assigned and could be declared final 1371
Local variable 'newId' could be declared final 1372
Parameter 'term' is not assigned and could be declared final 1378
Local variable 'newId' could be declared final 1379
Parameter 'dep' is not assigned and could be declared final 1385
Parameter 'chunk' is not assigned and could be declared final 1389
Local variable 'newId' could be declared final 1390
Parameter 'entity' is not assigned and could be declared final 1396
Local variable 'newId' could be declared final 1397
Parameter 'coref' is not assigned and could be declared final 1403
Local variable 'newId' could be declared final 1404
Parameter 'timex3' is not assigned and could be declared final 1410
Local variable 'newId' could be declared final 1411
Parameter 'property' is not assigned and could be declared final 1417
Local variable 'newId' could be declared final 1418
Parameter 'category' is not assigned and could be declared final 1424
Local variable 'newId' could be declared final 1425
Parameter 'opinion' is not assigned and could be declared final 1431
Local variable 'newId' could be declared final 1432
Parameter 'relation' is not assigned and could be declared final 1438
Local variable 'newId' could be declared final 1439
Parameter 'filename' is not assigned and could be declared final 1450
Parameter 'file' is not assigned and could be declared final 1459
Local variable 'gson' could be declared final 1467
Parameter 'name' is not assigned and could be declared final 1486
Parameter 'layer' is not assigned and could be declared final 1486
Parameter 'version' is not assigned and could be declared final 1486
Local variable 'lp' could be declared final 1487
Parameter 'timestamp' is not assigned and could be declared final 1495
Parameter 'version' is not assigned and could be declared final 1495
Parameter 'name' is not assigned and could be declared final 1495
Parameter 'layer' is not assigned and could be declared final 1495
Local variable 'lp' could be declared final 1496
Parameter 'id' is not assigned and could be declared final 1505
Parameter 'form' is not assigned and could be declared final 1505
Parameter 'form' is not assigned and could be declared final 1512
Parameter 'id' is not assigned and could be declared final 1519
Parameter 'form' is not assigned and could be declared final 1519
Parameter 'form' is not assigned and could be declared final 1526
Parameter 'offset' is not assigned and could be declared final 1533
Parameter 'form' is not assigned and could be declared final 1533
Parameter 'type' is not assigned and could be declared final 1540
Parameter 'id' is not assigned and could be declared final 1540
Parameter 'span' is not assigned and could be declared final 1540
Parameter 'lemma' is not assigned and could be declared final 1540
Parameter 'pos' is not assigned and could be declared final 1540
Local variable 'term' could be declared final 1541
Parameter 'lemma' is not assigned and could be declared final 1551
Parameter 'pos' is not assigned and could be declared final 1551
Parameter 'span' is not assigned and could be declared final 1551
Parameter 'type' is not assigned and could be declared final 1551
Local variable 'term' could be declared final 1552
Parameter 'type' is not assigned and could be declared final 1562
Parameter 'morphofeat' is not assigned and could be declared final 1562
Parameter 'pos' is not assigned and could be declared final 1562
Parameter 'span' is not assigned and could be declared final 1562
Parameter 'lemma' is not assigned and could be declared final 1562
Local variable 'newTerm' could be declared final 1563
Parameter 'id' is not assigned and could be declared final 1573
Parameter 'lemma' is not assigned and could be declared final 1573
Parameter 'wfs' is not assigned and could be declared final 1573
Parameter 'pos' is not assigned and could be declared final 1573
Parameter 'type' is not assigned and could be declared final 1573
Parameter 'wfs' is not assigned and could be declared final 1580
Parameter 'type' is not assigned and could be declared final 1580
Parameter 'pos' is not assigned and could be declared final 1580
Parameter 'lemma' is not assigned and could be declared final 1580
Parameter 'pos' is not assigned and could be declared final 1587
Parameter 'lemma' is not assigned and could be declared final 1587
Parameter 'morphofeat' is not assigned and could be declared final 1587
Parameter 'wfs' is not assigned and could be declared final 1587
Parameter 'type' is not assigned and could be declared final 1587
Parameter 'to' is not assigned and could be declared final 1636
Parameter 'from' is not assigned and could be declared final 1636
Parameter 'rfunc' is not assigned and could be declared final 1636
Parameter 'terms' is not assigned and could be declared final 1643
Parameter 'head' is not assigned and could be declared final 1643
Parameter 'id' is not assigned and could be declared final 1643
Parameter 'phrase' is not assigned and could be declared final 1643
Parameter 'phrase' is not assigned and could be declared final 1650
Parameter 'head' is not assigned and could be declared final 1650
Parameter 'terms' is not assigned and could be declared final 1650
Parameter 'references' is not assigned and could be declared final 1657
Parameter 'id' is not assigned and could be declared final 1657
Parameter 'type' is not assigned and could be declared final 1657
Local variable 'spanReferences' could be declared final 1658
Local variable 'list' could be declared final 1659
Local variable 'entity' could be declared final 1662
Parameter 'type' is not assigned and could be declared final 1670
Parameter 'references' is not assigned and could be declared final 1670
Local variable 'spanReferences' could be declared final 1671
Local variable 'list' could be declared final 1672
Local variable 'entity' could be declared final 1675
Parameter 'id' is not assigned and could be declared final 1683
Parameter 'references' is not assigned and could be declared final 1683
Local variable 'spanReferences' could be declared final 1684
Local variable 'list' could be declared final 1685
Parameter 'references' is not assigned and could be declared final 1694
Local variable 'spanReferences' could be declared final 1695
Local variable 'list' could be declared final 1696
Parameter 'lemma' is not assigned and could be declared final 1705
Parameter 'references' is not assigned and could be declared final 1705
Parameter 'id' is not assigned and could be declared final 1705
Local variable 'spanReferences' could be declared final 1706
Local variable 'list' could be declared final 1707
Parameter 'lemma' is not assigned and could be declared final 1716
Parameter 'references' is not assigned and could be declared final 1716
Local variable 'spanReferences' could be declared final 1717
Local variable 'list' could be declared final 1718
Parameter 'id' is not assigned and could be declared final 1727
Parameter 'references' is not assigned and could be declared final 1727
Parameter 'lemma' is not assigned and could be declared final 1727
Local variable 'spanReferences' could be declared final 1728
Local variable 'list' could be declared final 1729
Parameter 'references' is not assigned and could be declared final 1738
Parameter 'lemma' is not assigned and could be declared final 1738
Local variable 'spanReferences' could be declared final 1739
Local variable 'list' could be declared final 1740
Parameter 'id' is not assigned and could be declared final 1756
Parameter 'to' is not assigned and could be declared final 1763
Parameter 'from' is not assigned and could be declared final 1763
Parameter 'id' is not assigned and could be declared final 1770
Parameter 'from' is not assigned and could be declared final 1770
Parameter 'to' is not assigned and could be declared final 1770
Parameter 'resource' is not assigned and could be declared final 1777
Parameter 'reference' is not assigned and could be declared final 1777
Parameter 'term' is not assigned and could be declared final 1787
Parameter 'isHead' is not assigned and could be declared final 1798
Parameter 'term' is not assigned and could be declared final 1798
Parameter 'layer' is not assigned and could be declared final 1802
Parameter 'annotations' is not assigned and could be declared final 1806
Local variable 'annotation' could be declared final 1807
Parameter 'annotation' is not assigned and could be declared final 1812
Parameter 'list' is not assigned and could be declared final 1819
Local variable 'span' could be declared final 1820
Local variable 'elem' could be declared final 1821
Parameter 'head' is not assigned and could be declared final 1830
Parameter 'list' is not assigned and could be declared final 1830
Local variable 'span' could be declared final 1831
Local variable 'elem' could be declared final 1832
Parameter 'list' is not assigned and could be declared final 1846
Local variable 'span' could be declared final 1847
Local variable 'target' could be declared final 1848
Parameter 'span' is not assigned and could be declared final 1862
Local variable 'list' could be declared final 1863
Local variable 't' could be declared final 1864
Useless parentheses. 1865
Parameter 'wfIds' is not assigned and could be declared final 1876
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 1882
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 1884
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1887
Avoid appending characters as strings in StringBuffer.append. 1922
The method 'getDepPathRegex' has a Modified Cyclomatic Complexity of 10. 19271965
Parameter 'pattern' is not assigned and could be declared final 1927
The method 'getDepPathRegex' has a Cyclomatic Complexity of 11. 19271965
The method 'getDepPathRegex' has a Standard Cyclomatic Complexity of 10. 19271965
Local variable 'pattern2' could be declared final 1936
These nested if statements could be combined 20582060
Parameter 'descendents' is not assigned and could be declared final 2080
These nested if statements could be combined 20922094
Parameter 'pattern' is not assigned and could be declared final 2101
Parameter 'descendents' is not assigned and could be declared final 2101
Local variable 'result' could be declared final 2102
Parameter 'term' is not assigned and could be declared final 2114
Parameter 'term' is not assigned and could be declared final 2123
Parameter 'term' is not assigned and could be declared final 2127
Parameter 'sent' is not assigned and could be declared final 2131
Local variable 'timexs' could be declared final 2132
Parameter 'args' is not assigned and could be declared final 2159
Consider using varargs for methods or constructors which take an array the last parameter. 2159
Local variable 'file' could be declared final 2160
Avoid unused local variables such as 'document'. 2163
Local variable 'document' could be declared final 2163

pikes-naflib - ixa/kaflib/KAFNotValidException.java

Violation Line
Parameter 'msg' is not assigned and could be declared final 9

pikes-naflib - ixa/kaflib/LinguisticProcessor.java

Violation Line
Parameter 'layer' is not assigned and could be declared final 27
Local variable 'date' could be declared final 35
When instantiating a SimpleDateFormat object, specify a Locale 37
Local variable 'sdf' could be declared final 37
Local variable 'formattedDate' could be declared final 38
Consider simply returning the value vs storing it in local variable 'formattedDate' 39
Parameter 'name' is not assigned and could be declared final 42
Parameter 'layer' is not assigned and could be declared final 42
Parameter 'name' is not assigned and could be declared final 47
Parameter 'timestamp' is not assigned and could be declared final 59
Local variable 'timestamp' could be declared final 64
Parameter 'timestamp' is not assigned and could be declared final 76
Local variable 'timestamp' could be declared final 81
Parameter 'timestamp' is not assigned and could be declared final 93
Local variable 'timestamp' could be declared final 98
Parameter 'version' is not assigned and could be declared final 110

pikes-naflib - ixa/kaflib/LinkedEntity.java

Violation Line
Avoid unused imports such as 'org.eclipse.rdf4j.query.algebra.Str' 3
Avoid unused imports such as 'java.util.ArrayList' 5
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 32
Parameter 'linkedEntityId' is not assigned and could be declared final 34
Parameter 'linkedEntityId' is not assigned and could be declared final 39
Parameter 'mentions' is not assigned and could be declared final 39
Parameter 'linkedEntity' is not assigned and could be declared final 47
Avoid unused constructor parameters such as 'WFs'. 47
Parameter 'WFs' is not assigned and could be declared final 47
Avoid unused local variables such as 'id'. 53
Local variable 'id' could be declared final 53
Parameter 'resource' is not assigned and could be declared final 61
Parameter 'reference' is not assigned and could be declared final 69
Parameter 'confidence' is not assigned and could be declared final 77
Parameter 'id' is not assigned and could be declared final 85
Local variable 'wf' could be declared final 91
Prefer StringBuffer over += for concatenating strings 93
Prefer StringBuffer over += for concatenating strings 95
Parameter 'category' is not assigned and could be declared final 100
Parameter 'type' is not assigned and could be declared final 100
Parameter 'types' is not assigned and could be declared final 111
Parameter 'spotted' is not assigned and could be declared final 119

pikes-naflib - ixa/kaflib/Mark.java

Violation Line
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 35
Parameter 'id' is not assigned and could be declared final 38
Parameter 'span' is not assigned and could be declared final 38
Parameter 'id' is not assigned and could be declared final 53
Parameter 'type' is not assigned and could be declared final 65
Parameter 'lemma' is not assigned and could be declared final 77
Parameter 'pos' is not assigned and could be declared final 89
Parameter 'morphofeat' is not assigned and could be declared final 101
Parameter 'termcase' is not assigned and could be declared final 113
Local variable 'term' could be declared final 119
Prefer StringBuffer over += for concatenating strings 121
Prefer StringBuffer over += for concatenating strings 123
Parameter 'span' is not assigned and could be declared final 132
Parameter 'externalRef' is not assigned and could be declared final 140
Parameter 'externalRefs' is not assigned and could be declared final 144

pikes-naflib - ixa/kaflib/NonTerminal.java

Violation Line
Private field 'children' could be made final; it is only initialized in the declaration or constructor. 14
Parameter 'id' is not assigned and could be declared final 17
Parameter 'label' is not assigned and could be declared final 17
Parameter 'label' is not assigned and could be declared final 27
Parameter 'tn' is not assigned and could be declared final 31

pikes-naflib - ixa/kaflib/Opinion.java

Violation Line
Possible God class (WMC=144, ATFD=49, TCC=0.0) 1652
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 32
Avoid instantiating new objects inside loops 79
Avoid instantiating new objects inside loops 196
Avoid instantiating new objects inside loops 335
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 472
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 473
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 474
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 475
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 476
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 477
Avoid instantiating new objects inside loops 505
Prefer StringBuffer over += for concatenating strings 620
Prefer StringBuffer over += for concatenating strings 622

pikes-naflib - ixa/kaflib/Predicate.java

Violation Line
Possible God class (WMC=59, ATFD=10, TCC=0.013793103448275862) 1274
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 14
Private field 'flags' could be made final; it is only initialized in the declaration or constructor. 15
Parameter 'id' is not assigned and could be declared final 17
Parameter 'semRole' is not assigned and could be declared final 17
Parameter 'span' is not assigned and could be declared final 17
Parameter 'id' is not assigned and could be declared final 37
Parameter 'semRole' is not assigned and could be declared final 45
Parameter 'span' is not assigned and could be declared final 53
Parameter 'term' is not assigned and could be declared final 61
Parameter 'term' is not assigned and could be declared final 65
Parameter 'isHead' is not assigned and could be declared final 65
Local variable 'term' could be declared final 71
Prefer StringBuffer over += for concatenating strings 73
Prefer StringBuffer over += for concatenating strings 75
Parameter 'resource' is not assigned and could be declared final 80
Local variable 'ref' could be declared final 81
Parameter 'externalRef' is not assigned and could be declared final 93
Parameter 'externalRefs' is not assigned and could be declared final 97
Parameter 'flag' is not assigned and could be declared final 105
Parameter 'flag' is not assigned and could be declared final 111
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 117
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 118
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 119
Parameter 'source' is not assigned and could be declared final 125
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 133
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 134
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 135
Private field 'roles' could be made final; it is only initialized in the declaration or constructor. 135
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 136
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 136
Private field 'flags' could be made final; it is only initialized in the declaration or constructor. 137
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 137
Parameter 'id' is not assigned and could be declared final 139
Parameter 'span' is not assigned and could be declared final 139
Parameter 'id' is not assigned and could be declared final 152
Useless parentheses. 157
Parameter 'uri' is not assigned and could be declared final 164
Parameter 'confidence' is not assigned and could be declared final 176
Parameter 'span' is not assigned and could be declared final 184
Parameter 'term' is not assigned and could be declared final 192
Parameter 'isHead' is not assigned and could be declared final 196
Parameter 'term' is not assigned and could be declared final 196
Local variable 'target' could be declared final 203
Prefer StringBuffer over += for concatenating strings 204
Prefer StringBuffer over += for concatenating strings 206
Local variable 'role' could be declared final 207
Local variable 'roleTarget' could be declared final 209
Prefer StringBuffer over += for concatenating strings 210
Local variable 'term' could be declared final 218
Prefer StringBuffer over += for concatenating strings 220
Prefer StringBuffer over += for concatenating strings 222
Parameter 'resource' is not assigned and could be declared final 227
Local variable 'ref' could be declared final 228
Parameter 'externalRef' is not assigned and could be declared final 240
Parameter 'externalRefs' is not assigned and could be declared final 244
Parameter 'role' is not assigned and could be declared final 252
Parameter 'role' is not assigned and could be declared final 256
Parameter 'flag' is not assigned and could be declared final 264
Parameter 'flag' is not assigned and could be declared final 270

pikes-naflib - ixa/kaflib/ReadWriteManager.java

Violation Line
Possible God class (WMC=631, ATFD=720, TCC=0.0) 13124
The class 'ReadWriteManager' has a Cyclomatic Complexity of 22 (Highest = 204). 253124
The type has an NCSS line count of 2236 253124
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 253124
The class 'ReadWriteManager' has a Standard Cyclomatic Complexity of 22 (Highest = 202). 253124
The class 'ReadWriteManager' has a Modified Cyclomatic Complexity of 22 (Highest = 202). 253124
Parameter 'file' is not assigned and could be declared final 30
Local variable 'builder' could be declared final 31
Local variable 'document' could be declared final 32
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
Local variable 'rootElem' could be declared final 33
Avoid unused local variables such as 'rootElem'. 33
Parameter 'stream' is not assigned and could be declared final 40
Local variable 'builder' could be declared final 41
Local variable 'document' could be declared final 42
Local variable 'rootElem' could be declared final 43
Avoid declaring a variable if it is unreferenced before a possible exit point. 43
Avoid unused local variables such as 'rootElem'. 43
Parameter 'filename' is not assigned and could be declared final 50
Parameter 'kaf' is not assigned and could be declared final 50
Local variable 'file' could be declared final 51
Parameter 'file' is not assigned and could be declared final 58
Parameter 'kaf' is not assigned and could be declared final 58
Local variable 'out' could be declared final 60
Parameter 'kaf' is not assigned and could be declared final 72
Local variable 'out' could be declared final 74
Parameter 'kaf' is not assigned and could be declared final 85
Local variable 'out' could be declared final 86
Local variable 'jdom' could be declared final 88
The method 'DOMToKAF' has a Standard Cyclomatic Complexity of 202. 98997
The method DOMToKAF() has an NCSS line count of 730 98997
Parameter 'dom' is not assigned and could be declared final 98
Avoid really long methods. 98997
The method 'DOMToKAF' has a Cyclomatic Complexity of 204. 98997
The method DOMToKAF() has an NPath complexity of 628339 98997
The method 'DOMToKAF' has a Modified Cyclomatic Complexity of 202. 98997
Local variable 'wfIndex' could be declared final 99
Local variable 'termIndex' could be declared final 100
Local variable 'relationalIndex' could be declared final 101
Local variable 'timexIndex' could be declared final 102
Local variable 'predicateIndex' could be declared final 103
Local variable 'rootElem' could be declared final 105
Local variable 'lang' could be declared final 106
Local variable 'kafVersion' could be declared final 107
Local variable 'kaf' could be declared final 108
Local variable 'rootChildrenElems' could be declared final 110
Local variable 'elem' could be declared final 111
Local variable 'lpsElems' could be declared final 113
Local variable 'lpsElem' could be declared final 114
Local variable 'layer' could be declared final 115
Local variable 'lpElems' could be declared final 116
Local variable 'lpElem' could be declared final 117
Local variable 'name' could be declared final 118
Local variable 'newLp' could be declared final 119
Local variable 'timestamp' could be declared final 120
Local variable 'beginTimestamp' could be declared final 124
Local variable 'endTimestamp' could be declared final 128
Local variable 'version' could be declared final 132
Local variable 'fileDescElem' could be declared final 138
Local variable 'fd' could be declared final 140
Local variable 'author' could be declared final 141
Local variable 'title' could be declared final 145
Local variable 'filename' could be declared final 149
Local variable 'filetype' could be declared final 153
Local variable 'pages' could be declared final 157
Local variable 'creationtime' could be declared final 161
Local variable 'publicElem' could be declared final 166
Local variable 'pub' could be declared final 168
Local variable 'publicId' could be declared final 169
Local variable 'uri' could be declared final 173
Local variable 'wfElems' could be declared final 181
Local variable 'wfElem' could be declared final 182
Local variable 'wForm' could be declared final 189
Local variable 'wSent' could be declared final 190
Local variable 'newWf' could be declared final 191
Local variable 'wPara' could be declared final 192
Local variable 'wPage' could be declared final 196
Local variable 'wOffset' could be declared final 200
Local variable 'wLength' could be declared final 204
Local variable 'wXpath' could be declared final 208
Local variable 'termElems' could be declared final 215
Local variable 'termElem' could be declared final 216
Local variable 'source' could be declared final 220
Local variable 'markElems' could be declared final 221
Local variable 'markElem' could be declared final 222
Avoid declaring a variable if it is unreferenced before a possible exit point. 223
Local variable 'sid' could be declared final 223
Local variable 'spanElem' could be declared final 224
Local variable 'marksTermElems' could be declared final 228
Local variable 'span' could be declared final 229
Local variable 'marksTermElem' could be declared final 230
Local variable 'termId' could be declared final 231
Local variable 'isHead' could be declared final 232
Avoid declaring a variable if it is unreferenced before a possible exit point. 232
Local variable 'term' could be declared final 233
Local variable 'newMark' could be declared final 239
Local variable 'type' could be declared final 240
Local variable 'lemma' could be declared final 244
Local variable 'pos' could be declared final 248
Local variable 'tMorphofeat' could be declared final 252
Local variable 'markcase' could be declared final 256
Local variable 'externalReferencesElems' could be declared final 260
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 261
Local variable 'externalRefs' could be declared final 262
Local variable 'depElems' could be declared final 268
Local variable 'depElem' could be declared final 269
Local variable 'fromId' could be declared final 270
Local variable 'toId' could be declared final 271
Local variable 'from' could be declared final 272
Local variable 'to' could be declared final 277
Local variable 'rfunc' could be declared final 282
Local variable 'newDep' could be declared final 283
Local variable 'depcase' could be declared final 284
Local variable 'chunkElems' could be declared final 291
Local variable 'chunkElem' could be declared final 292
Local variable 'chunkId' could be declared final 293
Local variable 'headId' could be declared final 294
Local variable 'chunkHead' could be declared final 295
Local variable 'spanElem' could be declared final 300
Local variable 'chunksTermElems' could be declared final 304
Local variable 'span' could be declared final 305
Local variable 'chunksTermElem' could be declared final 306
Local variable 'termId' could be declared final 307
Local variable 'isHead' could be declared final 308
Avoid declaring a variable if it is unreferenced before a possible exit point. 308
Local variable 'targetTerm' could be declared final 309
Useless parentheses. 314
Useless parentheses. 314
Local variable 'newChunk' could be declared final 319
Local variable 'chunkPhrase' could be declared final 320
Local variable 'chunkCase' could be declared final 324
Local variable 'entityElems' could be declared final 330
Local variable 'entityElem' could be declared final 331
Avoid declaring a variable if it is unreferenced before a possible exit point. 332
Local variable 'entId' could be declared final 332
Local variable 'referencesElem' could be declared final 333
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 334
Local variable 'spanElems' could be declared final 337
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 338
Local variable 'references' could be declared final 342
Avoid instantiating new objects inside loops 342
Local variable 'spanElem' could be declared final 343
Local variable 'span' could be declared final 344
Avoid declaring a variable if it is unreferenced before a possible exit point. 344
Local variable 'targetElems' could be declared final 345
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 346
Local variable 'targetElem' could be declared final 350
Local variable 'targetTermId' could be declared final 351
Local variable 'targetTerm' could be declared final 352
Local variable 'isHead' could be declared final 357
Local variable 'newEntity' could be declared final 362
Local variable 'entType' could be declared final 363
Local variable 'externalReferencesElems' could be declared final 370
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 371
Local variable 'externalRefs' could be declared final 372
Local variable 'corefElems' could be declared final 378
Local variable 'corefElem' could be declared final 379
Avoid declaring a variable if it is unreferenced before a possible exit point. 380
Local variable 'coId' could be declared final 380
Local variable 'clusterId' could be declared final 381
Avoid declaring a variable if it is unreferenced before a possible exit point. 381
Local variable 'spanElems' could be declared final 382
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 383
Local variable 'mentions' could be declared final 387
Avoid instantiating new objects inside loops 387
Local variable 'spanElem' could be declared final 388
Local variable 'span' could be declared final 389
Avoid declaring a variable if it is unreferenced before a possible exit point. 389
Local variable 'targetElems' could be declared final 390
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 391
Local variable 'targetElem' could be declared final 395
Local variable 'targetTermId' could be declared final 396
Local variable 'targetTerm' could be declared final 397
Local variable 'isHead' could be declared final 402
Local variable 'newCoref' could be declared final 407
Local variable 'corefType' could be declared final 408
Local variable 'externalReferencesElems' could be declared final 415
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 416
Local variable 'externalRefs' could be declared final 417
Local variable 'timex3Elems' could be declared final 422
Local variable 'timex3Elem' could be declared final 423
Local variable 'timex3Id' could be declared final 424
Local variable 'timex3Type' could be declared final 425
Local variable 'timex3' could be declared final 426
Local variable 'timex3BeginPointId' could be declared final 427
Local variable 'beginPoint' could be declared final 429
Avoid empty if statements 430432
Local variable 'timex3EndPointId' could be declared final 436
Local variable 'endPoint' could be declared final 438
Avoid empty if statements 439441
Local variable 'timex3Quant' could be declared final 445
Local variable 'timex3Freq' could be declared final 449
Local variable 'timex3FuncInDoc' could be declared final 453
Local variable 'timex3TempFunc' could be declared final 457
Local variable 'tempFunc' could be declared final 459
Position literals first in String comparisons 459
Local variable 'timex3Value' could be declared final 462
Local variable 'timex3ValueFromFunction' could be declared final 466
Local variable 'timex3Mod' could be declared final 470
Local variable 'timex3AnchorTimeId' could be declared final 474
Local variable 'timex3Comment' could be declared final 478
Local variable 'spanElem' could be declared final 482
Local variable 'timex3Span' could be declared final 484
Local variable 'targetElem' could be declared final 485
Local variable 'targetId' could be declared final 486
Local variable 'wf' could be declared final 487
Local variable 'isHead' could be declared final 492
Local variable 'tLinkElems' could be declared final 500
Local variable 'tLinkElem' could be declared final 501
Local variable 'tlid' could be declared final 502
Local variable 'fromId' could be declared final 503
Local variable 'toId' could be declared final 504
Local variable 'fromType' could be declared final 505
Local variable 'toType' could be declared final 506
Local variable 'relType' could be declared final 507
Position literals first in String comparisons 508
Local variable 'from' could be declared final 508509
Local variable 'to' could be declared final 510511
Position literals first in String comparisons 510
Local variable 'tLink' could be declared final 512
Avoid unused local variables such as 'tLink'. 512
Local variable 'clinkElems' could be declared final 515
Local variable 'clinkElem' could be declared final 516
Local variable 'clid' could be declared final 517
Local variable 'fromId' could be declared final 518
Local variable 'toId' could be declared final 519
Local variable 'relType' could be declared final 520
Local variable 'from' could be declared final 521
Local variable 'to' could be declared final 522
Local variable 'clink' could be declared final 523
Local variable 'propertiesElem' could be declared final 529
Avoid declaring a variable if it is unreferenced before a possible exit point. 530
Local variable 'categoriesElem' could be declared final 530
Local variable 'propertyElems' could be declared final 532
Local variable 'propertyElem' could be declared final 533
Avoid declaring a variable if it is unreferenced before a possible exit point. 534
Local variable 'pid' could be declared final 534
Avoid declaring a variable if it is unreferenced before a possible exit point. 535
Local variable 'lemma' could be declared final 535
Local variable 'referencesElem' could be declared final 536
Local variable 'spanElems' could be declared final 540
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 541
Local variable 'references' could be declared final 545
Avoid instantiating new objects inside loops 545
Local variable 'spanElem' could be declared final 546
Local variable 'span' could be declared final 547
Avoid declaring a variable if it is unreferenced before a possible exit point. 547
Local variable 'targetElems' could be declared final 548
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 549
Local variable 'targetElem' could be declared final 553
Local variable 'targetTermId' could be declared final 554
Local variable 'targetTerm' could be declared final 555
Local variable 'isHead' could be declared final 560
Local variable 'newProperty' could be declared final 565
Local variable 'externalReferencesElems' could be declared final 566
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 567
Local variable 'externalRefs' could be declared final 568
Local variable 'categoryElems' could be declared final 575
Local variable 'categoryElem' could be declared final 576
Local variable 'cid' could be declared final 577
Avoid declaring a variable if it is unreferenced before a possible exit point. 577
Avoid declaring a variable if it is unreferenced before a possible exit point. 578
Local variable 'lemma' could be declared final 578
Local variable 'referencesElem' could be declared final 579
Local variable 'spanElems' could be declared final 583
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 584
Avoid instantiating new objects inside loops 588
Local variable 'references' could be declared final 588
Local variable 'spanElem' could be declared final 589
Avoid declaring a variable if it is unreferenced before a possible exit point. 590
Local variable 'span' could be declared final 590
Local variable 'targetElems' could be declared final 591
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 592
Local variable 'targetElem' could be declared final 596
Local variable 'targetTermId' could be declared final 597
Local variable 'targetTerm' could be declared final 598
Local variable 'isHead' could be declared final 603
Local variable 'newCategory' could be declared final 608
Local variable 'externalReferencesElems' could be declared final 609
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 610
Local variable 'externalRefs' could be declared final 611
Local variable 'opinionElems' could be declared final 618
Local variable 'opinionElem' could be declared final 619
Local variable 'opinion' could be declared final 626
Local variable 'label' could be declared final 628
Avoid empty catch blocks 630632
Local variable 'opinionExternalRefs' could be declared final 633
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 634
Local variable 'opinionHolderElem' could be declared final 637
Local variable 'span' could be declared final 639
Local variable 'opinionHolder' could be declared final 640
Local variable 'ohType' could be declared final 641
Local variable 'spanElem' could be declared final 645
Local variable 'targetElems' could be declared final 647
Local variable 'targetElem' could be declared final 648
Local variable 'refId' could be declared final 649
Local variable 'isHead' could be declared final 650
Avoid declaring a variable if it is unreferenced before a possible exit point. 650
Local variable 'targetTerm' could be declared final 651
Local variable 'holderExternalRefs' could be declared final 659
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 660
Local variable 'opinionTargetElem' could be declared final 664
Local variable 'span' could be declared final 666
Local variable 'opinionTarget' could be declared final 667
Local variable 'otType' could be declared final 668
Local variable 'spanElem' could be declared final 672
Local variable 'targetElems' could be declared final 674
Local variable 'targetElem' could be declared final 675
Local variable 'refId' could be declared final 676
Avoid declaring a variable if it is unreferenced before a possible exit point. 677
Local variable 'isHead' could be declared final 677
Local variable 'targetTerm' could be declared final 678
Local variable 'targetExternalRefs' could be declared final 686
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 687
Local variable 'opinionExpressionElem' could be declared final 691
Local variable 'span' could be declared final 693
Local variable 'polarity' could be declared final 694
Local variable 'strength' could be declared final 695
Local variable 'subjectivity' could be declared final 696
Local variable 'sentimentSemanticType' could be declared final 697698
Local variable 'sentimentProductFeature' could be declared final 699700
Local variable 'opinionExpression' could be declared final 701
Local variable 'spanElem' could be declared final 718
Local variable 'targetElems' could be declared final 720
Local variable 'targetElem' could be declared final 721
Local variable 'refId' could be declared final 722
Local variable 'isHead' could be declared final 723
Avoid declaring a variable if it is unreferenced before a possible exit point. 723
Local variable 'targetTerm' could be declared final 724
Local variable 'expressionExternalRefs' could be declared final 733
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 734
Local variable 'relationElems' could be declared final 741
Local variable 'relationElem' could be declared final 742
Local variable 'id' could be declared final 743
Local variable 'fromId' could be declared final 744
Local variable 'toId' could be declared final 745
Avoid declaring a variable if it is unreferenced before a possible exit point. 745
Local variable 'confidenceStr' could be declared final 746
Local variable 'from' could be declared final 751
Local variable 'to' could be declared final 756
Local variable 'newRelation' could be declared final 761
Local variable 'predicateElems' could be declared final 767
Local variable 'predicateElem' could be declared final 768
Local variable 'id' could be declared final 769
Local variable 'span' could be declared final 770
Local variable 'spanElem' could be declared final 771
Local variable 'targetElems' could be declared final 773
Local variable 'targetElem' could be declared final 774
Local variable 'targetId' could be declared final 775
Avoid declaring a variable if it is unreferenced before a possible exit point. 776
Local variable 'isHead' could be declared final 776
Local variable 'targetTerm' could be declared final 777
Local variable 'predTypes' could be declared final 785
Avoid instantiating new objects inside loops 785
Local variable 'predTypeElems' could be declared final 786
Local variable 'predTypeElem' could be declared final 787
Local variable 'ptUri' could be declared final 788
Local variable 'newPredicate' could be declared final 791
Local variable 'source' could be declared final 792
Local variable 'uri' could be declared final 796
Local variable 'externalReferencesElems' could be declared final 800
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 801
Local variable 'externalRefs' could be declared final 802
Local variable 'confidence' could be declared final 805
Local variable 'roleElems' could be declared final 809
Local variable 'roleElem' could be declared final 810
Local variable 'rid' could be declared final 811
Local variable 'semRole' could be declared final 812
Avoid declaring a variable if it is unreferenced before a possible exit point. 812
Local variable 'roleSpan' could be declared final 813
Local variable 'roleSpanElem' could be declared final 814
Local variable 'targetElems' could be declared final 816
Local variable 'targetElem' could be declared final 817
Local variable 'targetId' could be declared final 818
Local variable 'isHead' could be declared final 819
Avoid declaring a variable if it is unreferenced before a possible exit point. 819
Local variable 'targetTerm' could be declared final 820
Local variable 'newRole' could be declared final 828
Local variable 'rExternalReferencesElems' could be declared final 829
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 830
Local variable 'externalRefs' could be declared final 831832
Local variable 'treeElems' could be declared final 841
Local variable 'treeElem' could be declared final 842
Local variable 'treeNodes' could be declared final 843
Avoid instantiating new objects inside loops 843
Avoid instantiating new objects inside loops 844
Local variable 'rootNodes' could be declared final 844
Local variable 'terminalElems' could be declared final 851
Local variable 'terminalElem' could be declared final 852
Avoid declaring a variable if it is unreferenced before a possible exit point. 853
Local variable 'id' could be declared final 853
Local variable 'spanElem' could be declared final 854
Local variable 'span' could be declared final 858
Local variable 'nonTerminalElems' could be declared final 863
Local variable 'nonTerminalElem' could be declared final 864
Local variable 'id' could be declared final 865
Local variable 'label' could be declared final 866
Local variable 'edgeElems' could be declared final 871
Local variable 'edgeElem' could be declared final 872
Local variable 'fromId' could be declared final 873
Local variable 'toId' could be declared final 874
Local variable 'edgeId' could be declared final 875
Avoid declaring a variable if it is unreferenced before a possible exit point. 875
Local variable 'head' could be declared final 876
Local variable 'isHead' could be declared final 877
Useless parentheses. 877
Avoid declaring a variable if it is unreferenced before a possible exit point. 877
Local variable 'parentNode' could be declared final 878
Local variable 'childNode' could be declared final 879
Useless parentheses. 880
Useless parentheses. 880
Avoid empty catch blocks 887888
Local variable 'areRoot' could be declared final 898
Local variable 'rootNode' could be declared final 900
Avoid empty catch blocks 905907
Local variable 'factElem' could be declared final 909
Local variable 'id' could be declared final 910
Local variable 'wf' could be declared final 911
Local variable 'terms' could be declared final 912
Local variable 'factuality' could be declared final 916
Local variable 'partElem' could be declared final 917
Local variable 'prediction' could be declared final 918
Local variable 'confidence' could be declared final 919
Local variable 'entityElem' could be declared final 925
Avoid declaring a variable if it is unreferenced before a possible exit point. 926
Local variable 'id' could be declared final 926
Avoid declaring a variable if it is unreferenced before a possible exit point. 927
Local variable 'span' could be declared final 927
Local variable 'targetElems' could be declared final 928
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 929
Local variable 'targetElem' could be declared final 933
Local variable 'targetWfId' could be declared final 934
Local variable 'wf' could be declared final 935
Local variable 'e' could be declared final 942
Local variable 'spotted' could be declared final 946
Local variable 'confidence' could be declared final 949
Local variable 'typesElem' could be declared final 953
Local variable 'topicElem' could be declared final 955
Local variable 'category' could be declared final 956
Local variable 'label' could be declared final 957
Local variable 'sstElem' could be declared final 963
Avoid declaring a variable if it is unreferenced before a possible exit point. 964
Local variable 'id' could be declared final 964
Local variable 'type' could be declared final 965
Avoid declaring a variable if it is unreferenced before a possible exit point. 965
Avoid declaring a variable if it is unreferenced before a possible exit point. 966
Local variable 'label' could be declared final 966
Avoid declaring a variable if it is unreferenced before a possible exit point. 967
Local variable 'span' could be declared final 967
Local variable 'targetElems' could be declared final 968
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 969
Local variable 'targetElem' could be declared final 973
Local variable 'targetTermId' could be declared final 974
Local variable 'term' could be declared final 975
Local variable 'topicElem' could be declared final 985
Local variable 'label' could be declared final 986
Local variable 'probability' could be declared final 987
The method DOMToTerm() has an NPath complexity of 4737024 9991106
The method 'DOMToTerm' has a Modified Cyclomatic Complexity of 25. 9991106
Parameter 'wfIndex' is not assigned and could be declared final 999
The method 'DOMToTerm' has a Cyclomatic Complexity of 25. 9991106
Parameter 'isComponent' is not assigned and could be declared final 999
Avoid really long methods. 9991106
The method 'DOMToTerm' has a Standard Cyclomatic Complexity of 25. 9991106
Parameter 'kaf' is not assigned and could be declared final 999
Parameter 'termElem' is not assigned and could be declared final 999
Parameter 'termIndex' is not assigned and could be declared final 1000
Local variable 'spanElem' could be declared final 1007
Local variable 'termsWfElems' could be declared final 1011
Local variable 'span' could be declared final 1012
Local variable 'termsWfElem' could be declared final 1013
Local variable 'wfId' could be declared final 1014
Local variable 'isHead' could be declared final 1015
Avoid declaring a variable if it is unreferenced before a possible exit point. 1015
Local variable 'wf' could be declared final 1016
Local variable 'newTerm' could be declared final 1022
Local variable 'type' could be declared final 1023
Local variable 'lemma' could be declared final 1027
Local variable 'supersenseTag' could be declared final 1031
Local variable 'wordnetSense' could be declared final 1035
Local variable 'bbnTag' could be declared final 1039
Local variable 'pos' could be declared final 1043
Local variable 'tMorphofeat' could be declared final 1047
Local variable 'tHead' could be declared final 1051
Avoid unused local variables such as 'tHead'. 1051
Local variable 'termcase' could be declared final 1052
Local variable 'sentimentElems' could be declared final 1056
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1057
Local variable 'sentimentElem' could be declared final 1058
Local variable 'newSentiment' could be declared final 1059
Local variable 'sentResource' could be declared final 1060
Local variable 'sentPolarity' could be declared final 1064
Local variable 'sentStrength' could be declared final 1068
Local variable 'sentSubjectivity' could be declared final 1072
Local variable 'sentSentimentSemanticType' could be declared final 1076
Local variable 'sentSentimentModifier' could be declared final 1080
Local variable 'sentSentimentMarker' could be declared final 1084
Local variable 'sentSentimentProductFeature' could be declared final 1088
Local variable 'termsComponentElems' could be declared final 1095
Local variable 'termsComponentElem' could be declared final 1096
Local variable 'externalReferencesElems' could be declared final 1100
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1101
Local variable 'externalRefs' could be declared final 1102
Parameter 'spanElem' is not assigned and could be declared final 1108
Parameter 'objId' is not assigned and could be declared final 1108
Parameter 'terms' is not assigned and could be declared final 1108
Local variable 'targetElems' could be declared final 1110
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1111
Local variable 'span' could be declared final 1114
Local variable 'targetElem' could be declared final 1115
Local variable 'targetId' could be declared final 1116
Local variable 'isHead' could be declared final 1117
Avoid declaring a variable if it is unreferenced before a possible exit point. 1117
Local variable 'targetTerm' could be declared final 1118
Parameter 'span' is not assigned and could be declared final 1127
Local variable 'spanElem' could be declared final 1128
Local variable 'term' could be declared final 1129
Local variable 'targetElem' could be declared final 1130
Avoid instantiating new objects inside loops 1130
Local variable 'targetId' could be declared final 1131
Parameter 'span' is not assigned and could be declared final 1141
Local variable 'spanElem' could be declared final 1142
Local variable 'term' could be declared final 1143
Local variable 'targetElem' could be declared final 1144
Avoid instantiating new objects inside loops 1144
Local variable 'targetId' could be declared final 1145
Parameter 'kaf' is not assigned and could be declared final 1156
Parameter 'externalReferencesElem' is not assigned and could be declared final 1156
Local variable 'externalRefs' could be declared final 1157
Local variable 'externalRefElems' could be declared final 1158
Local variable 'externalRefElem' could be declared final 1159
Local variable 'externalRef' could be declared final 1160
Parameter 'externalRefElem' is not assigned and could be declared final 1166
Parameter 'kaf' is not assigned and could be declared final 1166
Local variable 'resource' could be declared final 1167
Local variable 'references' could be declared final 1168
Local variable 'newExternalRef' could be declared final 1169
Local variable 'confidence' could be declared final 1172
Avoid empty catch blocks 11741175
Local variable 'source' could be declared final 1178
Avoid empty catch blocks 11801181
Local variable 'subRefElems' could be declared final 1183
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1184
Local variable 'subRefElem' could be declared final 1185
Local variable 'subRef' could be declared final 1186
Parameter 'elem' is not assigned and could be declared final 1192
Parameter 'attName' is not assigned and could be declared final 1192
Local variable 'value' could be declared final 1193
Parameter 'attName' is not assigned and could be declared final 1200
Parameter 'nmspace' is not assigned and could be declared final 1200
Parameter 'elem' is not assigned and could be declared final 1200
Local variable 'value' could be declared final 1201
Parameter 'attName' is not assigned and could be declared final 1208
Parameter 'elem' is not assigned and could be declared final 1208
Local variable 'value' could be declared final 1209
Parameter 'elem' is not assigned and could be declared final 1216
Local variable 'value' could be declared final 1217
Avoid unnecessary if..then..else statements when returning booleans 12211223
Position literals first in String comparisons 1221
Parameter 'to' is not assigned and could be declared final 1234
Parameter 'from' is not assigned and could be declared final 1234
The method 'KAFToJSON' has a Modified Cyclomatic Complexity of 114. 12511910
Parameter 'kaf' is not assigned and could be declared final 1251
The method 'KAFToJSON' has a Cyclomatic Complexity of 114. 12511910
Avoid really long methods. 12511910
The method 'KAFToJSON' has a Standard Cyclomatic Complexity of 114. 12511910
The method KAFToJSON() has an NPath complexity of 568145920 12511910
The method KAFToJSON() has an NCSS line count of 399 12511910
Local variable 'annotationContainer' could be declared final 1252
Local variable 'gson' could be declared final 1254
Local variable 'jo' could be declared final 1256
Local variable 'header' could be declared final 1261
Local variable 'fd' could be declared final 1264
Local variable 'fdElem' could be declared final 1266
Local variable 'pub' could be declared final 1288
Local variable 'pubElem' could be declared final 1290
Local variable 'lps' could be declared final 1301
Local variable 'entry' could be declared final 1302
Local variable 'lpsElem' could be declared final 1303
Avoid instantiating new objects inside loops 1303
Local variable 'lp' could be declared final 1305
Local variable 'lpElem' could be declared final 1306
Avoid instantiating new objects inside loops 1306
Local variable 'rawText' could be declared final 1331
Local variable 'rawElem' could be declared final 1333
Local variable 'text' could be declared final 1338
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1339
Local variable 'textElem' could be declared final 1340
Local variable 'wf' could be declared final 1342
Local variable 'wfElem' could be declared final 1344
Avoid instantiating new objects inside loops 1344
Local variable 'terms' could be declared final 1372
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1373
Local variable 'termsElem' could be declared final 1374
Local variable 'term' could be declared final 1375
Local variable 'markSources' could be declared final 1385
Local variable 'source' could be declared final 1386
Local variable 'marks' could be declared final 1387
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1388
Local variable 'marksElem' could be declared final 1389
Avoid instantiating new objects inside loops 1389
Local variable 'mark' could be declared final 1392
Avoid instantiating new objects inside loops 1393
Local variable 'markElem' could be declared final 1393
Avoid instantiating new objects inside loops 1412
Local variable 'spanElem' could be declared final 1412
Local variable 'span' could be declared final 1414
Local variable 'target' could be declared final 1415
Avoid instantiating new objects inside loops 1416
Local variable 'targetElem' could be declared final 1416
Local variable 'externalReferences' could be declared final 1426
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1427
Avoid empty if statements 14271430
Local variable 'deps' could be declared final 1439
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1440
Local variable 'depsArr' could be declared final 1442
Local variable 'dep' could be declared final 1444
Local variable 'depElem' could be declared final 1447
Avoid instantiating new objects inside loops 1447
Local variable 'entities' could be declared final 1468
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1469
Local variable 'entitiesElem' could be declared final 1471
Local variable 'entity' could be declared final 1473
Local variable 'entityElem' could be declared final 1475
Avoid instantiating new objects inside loops 1475
Local variable 'referencesElem' could be declared final 1485
Avoid instantiating new objects inside loops 1485
Local variable 'span' could be declared final 1486
Avoid instantiating new objects inside loops 1487
Local variable 'spanElem' could be declared final 1487
Local variable 'term' could be declared final 1490
Local variable 'targetElem' could be declared final 1491
Avoid instantiating new objects inside loops 1491
Local variable 'spanWrapper' could be declared final 1498
Avoid instantiating new objects inside loops 1498
Local variable 'externalReferences' could be declared final 1508
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1509
Local variable 'externalReferencesElem' could be declared final 1510
Local variable 'corefs' could be declared final 1519
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1520
Local variable 'corefsElem' could be declared final 1522
Local variable 'coref' could be declared final 1523
Avoid instantiating new objects inside loops 1524
Local variable 'corefElem' could be declared final 1524
Local variable 'spans' could be declared final 1536
Avoid instantiating new objects inside loops 1536
Local variable 'span' could be declared final 1540
Local variable 'spanElem' could be declared final 1541
Avoid instantiating new objects inside loops 1541
Local variable 'target' could be declared final 1542
Local variable 'targetElem' could be declared final 1543
Avoid instantiating new objects inside loops 1543
Local variable 'externalReferences' could be declared final 1557
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1558
Local variable 'externalReferencesElem' could be declared final 1559
Local variable 'timeExs' could be declared final 1573
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1574
Local variable 'timeExsElem' could be declared final 1577
Local variable 'timex3' could be declared final 1579
Avoid instantiating new objects inside loops 1580
Local variable 'timex3Elem' could be declared final 1580
Local variable 'tempFun' could be declared final 1600
Local variable 'span' could be declared final 1621
Local variable 'spanElem' could be declared final 1623
Avoid instantiating new objects inside loops 1623
Local variable 'target' could be declared final 1625
Avoid instantiating new objects inside loops 1626
Local variable 'targetElem' could be declared final 1626
Local variable 'linkedEntities' could be declared final 1645
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1646
Local variable 'linkedEntityElement' could be declared final 1647
Local variable 'e' could be declared final 1648
Avoid instantiating new objects inside loops 1649
Local variable 'lEnt' could be declared final 1649
Avoid instantiating new objects inside loops 1657
Local variable 'spanElem' could be declared final 1657
Local variable 'target' could be declared final 1658
Local variable 'targetElem' could be declared final 1659
Avoid instantiating new objects inside loops 1659
Local variable 'typesElement' could be declared final 1668
Avoid instantiating new objects inside loops 1668
Local variable 'category' could be declared final 1669
Local variable 'type' could be declared final 1670
Local variable 'typeElement' could be declared final 1671
Avoid instantiating new objects inside loops 1671
Local variable 'predicates' could be declared final 1688
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1689
Local variable 'predicatesObj' could be declared final 1690
Local variable 'predicatesElem' could be declared final 1691
Local variable 'predicate' could be declared final 1693
Avoid instantiating new objects inside loops 1696
Local variable 'predicateElem' could be declared final 1696
Local variable 'builder' could be declared final 1711
Avoid instantiating new objects inside loops 1711
Local variable 'flag' could be declared final 1713
Local variable 'span' could be declared final 1721
Local variable 'spans' could be declared final 1723
Avoid instantiating new objects inside loops 1723
Local variable 'target' could be declared final 1724
Avoid instantiating new objects inside loops 1726
Local variable 'targetElem' could be declared final 1726
Local variable 'externalReferences' could be declared final 1736
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1737
Local variable 'externalReferencesElem' could be declared final 1738
Avoid instantiating new objects inside loops 1742
Local variable 'roles' could be declared final 1742
Local variable 'role' could be declared final 1744
Local variable 'roleElem' could be declared final 1746
Avoid instantiating new objects inside loops 1746
Avoid instantiating new objects inside loops 1751
Local variable 'builder' could be declared final 1751
Local variable 'flag' could be declared final 1753
Local variable 'roleSpan' could be declared final 1761
Local variable 'spanElem' could be declared final 1763
Avoid instantiating new objects inside loops 1763
Local variable 'target' could be declared final 1764
Local variable 'targetElem' could be declared final 1765
Avoid instantiating new objects inside loops 1765
Local variable 'rExternalReferences' could be declared final 1776
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1777
Local variable 'externalReferencesElem' could be declared final 1778
Local variable 'conStrings' could be declared final 1792
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1793
Local variable 'constituentsElem' could be declared final 1794
Local variable 'sent' could be declared final 1795
Local variable 'constituencyString' could be declared final 1796
Avoid instantiating new objects inside loops 1798
Local variable 'treeElem' could be declared final 1798
Local variable 'constituents' could be declared final 1809
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1810
Local variable 'constituentsElem' could be declared final 1812
Local variable 'trees' could be declared final 1814
Local variable 'tree' could be declared final 1817
Avoid instantiating new objects inside loops 1820
Local variable 'treeElem' could be declared final 1820
Avoid empty catch blocks 18231825
Local variable 'nonTerminals' could be declared final 1829
Avoid instantiating new objects inside loops 1829
Local variable 'terminals' could be declared final 1830
Avoid instantiating new objects inside loops 1830
Local variable 'edges' could be declared final 1831
Avoid instantiating new objects inside loops 1831
Local variable 'rootNode' could be declared final 1832
Avoid instantiating new objects inside loops 18381849
Parameter 'nt1' is not assigned and could be declared final 1840
Parameter 'nt2' is not assigned and could be declared final 1840
Avoid instantiating new objects inside loops 18501861
Parameter 't2' is not assigned and could be declared final 1852
Parameter 't1' is not assigned and could be declared final 1852
Local variable 'nts' could be declared final 1864
Avoid instantiating new objects inside loops 1864
Local variable 'node' could be declared final 1865
Avoid instantiating new objects inside loops 1866
Local variable 'nodeElem' could be declared final 1866
Avoid instantiating new objects inside loops 1873
Local variable 'ts' could be declared final 1873
Local variable 'node' could be declared final 1874
Local variable 'nodeElem' could be declared final 1875
Avoid instantiating new objects inside loops 1875
Avoid instantiating new objects inside loops 1882
Local variable 'edgesArray' could be declared final 1882
Local variable 'edge' could be declared final 1883
Avoid instantiating new objects inside loops 1884
Local variable 'edgeElem' could be declared final 1884
The method 'KAFToDOM' has a Cyclomatic Complexity of 175. 19162793
Parameter 'kaf' is not assigned and could be declared final 1916
The method 'KAFToDOM' has a Modified Cyclomatic Complexity of 175. 19162793
The method 'KAFToDOM' has a Standard Cyclomatic Complexity of 175. 19162793
Avoid really long methods. 19162793
The method KAFToDOM() has an NCSS line count of 680 19162793
Local variable 'annotationContainer' could be declared final 1917
Local variable 'root' could be declared final 1918
Local variable 'doc' could be declared final 1922
Local variable 'kafHeaderElem' could be declared final 1924
Local variable 'fd' could be declared final 1927
Local variable 'fdElem' could be declared final 1929
Local variable 'pub' could be declared final 1951
Local variable 'pubElem' could be declared final 1953
Local variable 'lps' could be declared final 1963
Local variable 'entry' could be declared final 1964
Local variable 'lpsElem' could be declared final 1965
Avoid instantiating new objects inside loops 1965
Local variable 'lp' could be declared final 1967
Avoid instantiating new objects inside loops 1968
Local variable 'lpElem' could be declared final 1968
Local variable 'rawText' could be declared final 1987
Local variable 'rawElem' could be declared final 1989
Local variable 'cdataElem' could be declared final 1990
Local variable 'text' could be declared final 1995
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 1996
Local variable 'textElem' could be declared final 1997
Local variable 'wf' could be declared final 1998
Local variable 'wfElem' could be declared final 1999
Avoid instantiating new objects inside loops 1999
Local variable 'terms' could be declared final 2023
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2024
Local variable 'termsElem' could be declared final 2025
Local variable 'term' could be declared final 2026
Local variable 'markSources' could be declared final 2032
Local variable 'source' could be declared final 2033
Local variable 'marks' could be declared final 2034
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2035
Avoid instantiating new objects inside loops 2036
Local variable 'marksElem' could be declared final 2036
Local variable 'mark' could be declared final 2038
Local variable 'markComment' could be declared final 2039
Avoid instantiating new objects inside loops 2039
Local variable 'markElem' could be declared final 2041
Avoid instantiating new objects inside loops 2041
Local variable 'spanElem' could be declared final 2058
Avoid instantiating new objects inside loops 2058
Local variable 'span' could be declared final 2059
Local variable 'target' could be declared final 2060
Local variable 'targetElem' could be declared final 2061
Avoid instantiating new objects inside loops 2061
Local variable 'externalReferences' could be declared final 2069
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2070
Local variable 'externalReferencesElem' could be declared final 2071
Local variable 'deps' could be declared final 2080
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2081
Local variable 'depsElem' could be declared final 2082
Local variable 'dep' could be declared final 2083
Local variable 'depComment' could be declared final 2084
Avoid instantiating new objects inside loops 2084
Avoid instantiating new objects inside loops 2086
Local variable 'depElem' could be declared final 2086
Local variable 'chunks' could be declared final 2098
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2099
Local variable 'chunksElem' could be declared final 2100
Local variable 'chunk' could be declared final 2101
Avoid instantiating new objects inside loops 2102
Local variable 'chunkComment' could be declared final 2102
Local variable 'chunkElem' could be declared final 2104
Avoid instantiating new objects inside loops 2104
Local variable 'spanElem' could be declared final 2113
Avoid instantiating new objects inside loops 2113
Local variable 'target' could be declared final 2114
Avoid instantiating new objects inside loops 2115
Local variable 'targetElem' could be declared final 2115
Local variable 'entities' could be declared final 2125
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2126
Local variable 'entitiesElem' could be declared final 2127
Local variable 'entity' could be declared final 2128
Local variable 'entityElem' could be declared final 2129
Avoid instantiating new objects inside loops 2129
Avoid instantiating new objects inside loops 2137
Local variable 'referencesElem' could be declared final 2137
Local variable 'span' could be declared final 2138
Avoid instantiating new objects inside loops 2139
Local variable 'spanComment' could be declared final 2139
Avoid instantiating new objects inside loops 2141
Local variable 'spanElem' could be declared final 2141
Local variable 'term' could be declared final 2142
Avoid instantiating new objects inside loops 2143
Local variable 'targetElem' could be declared final 2143
Local variable 'externalReferences' could be declared final 2153
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2154
Local variable 'externalReferencesElem' could be declared final 2155
Local variable 'corefs' could be declared final 2163
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2164
Local variable 'corefsElem' could be declared final 2165
Local variable 'coref' could be declared final 2166
Local variable 'corefElem' could be declared final 2167
Avoid instantiating new objects inside loops 2167
Local variable 'span' could be declared final 2175
Avoid instantiating new objects inside loops 2176
Local variable 'spanComment' could be declared final 2176
Avoid instantiating new objects inside loops 2178
Local variable 'spanElem' could be declared final 2178
Local variable 'target' could be declared final 2179
Local variable 'targetElem' could be declared final 2180
Avoid instantiating new objects inside loops 2180
Local variable 'externalReferences' could be declared final 2189
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2190
Local variable 'externalReferencesElem' could be declared final 2191
Local variable 'timeExs' could be declared final 2199
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2200
Local variable 'timeExsElem' could be declared final 2201
Local variable 'timex3' could be declared final 2202
Local variable 'timex3Elem' could be declared final 2203
Avoid instantiating new objects inside loops 2203
Local variable 'tempFun' could be declared final 2222
Local variable 'span' could be declared final 2241
Local variable 'spanComment' could be declared final 2242
Avoid instantiating new objects inside loops 2242
Local variable 'spanElem' could be declared final 2244
Avoid instantiating new objects inside loops 2244
Local variable 'target' could be declared final 2245
Avoid instantiating new objects inside loops 2246
Local variable 'targetElem' could be declared final 2246
Local variable 'factualities' could be declared final 2276
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2277
Local variable 'factsElement' could be declared final 2278
Local variable 'f' could be declared final 2279
Avoid instantiating new objects inside loops 2281
Local variable 'fact' could be declared final 2281
Local variable 'p' could be declared final 2286
Avoid instantiating new objects inside loops 2287
Local variable 'factPartial' could be declared final 2287
Avoid empty catch blocks 22942296
Local variable 'linkedEntities' could be declared final 2301
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2302
Local variable 'linkedEntityElement' could be declared final 2303
Local variable 'e' could be declared final 2304
Local variable 'lEnt' could be declared final 2305
Avoid instantiating new objects inside loops 2305
Local variable 'spanComment' could be declared final 2312
Avoid instantiating new objects inside loops 2312
Local variable 'spanElem' could be declared final 2314
Avoid instantiating new objects inside loops 2314
Local variable 'target' could be declared final 2315
Local variable 'targetElem' could be declared final 2316
Avoid instantiating new objects inside loops 2316
Local variable 'typesElement' could be declared final 2323
Avoid instantiating new objects inside loops 2323
Local variable 'category' could be declared final 2324
Local variable 'type' could be declared final 2325
Avoid instantiating new objects inside loops 2326
Local variable 'typeElement' could be declared final 2326
Local variable 'ssts' could be declared final 2340
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2341
Local variable 'linkedEntityElement' could be declared final 2342
Local variable 's' could be declared final 2343
Avoid instantiating new objects inside loops 2344
Local variable 'lEnt' could be declared final 2344
Avoid instantiating new objects inside loops 2349
Local variable 'spanComment' could be declared final 2349
Local variable 'spanElem' could be declared final 2351
Avoid instantiating new objects inside loops 2351
Local variable 'target' could be declared final 2352
Local variable 'targetElem' could be declared final 2353
Avoid instantiating new objects inside loops 2353
Local variable 'topics' could be declared final 2364
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2365
Local variable 'topicLayer' could be declared final 2366
Local variable 't' could be declared final 2367
Local variable 'topicElement' could be declared final 2368
Avoid instantiating new objects inside loops 2368
Local variable 'featuresElem' could be declared final 2376
Local variable 'properties' could be declared final 2377
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2378
Local variable 'propertiesElem' could be declared final 2379
Local variable 'property' could be declared final 2380
Avoid instantiating new objects inside loops 2381
Local variable 'propertyElem' could be declared final 2381
Local variable 'references' could be declared final 2384
Local variable 'referencesElem' could be declared final 2385
Avoid instantiating new objects inside loops 2385
Local variable 'span' could be declared final 2386
Local variable 'spanComment' could be declared final 2387
Avoid instantiating new objects inside loops 2387
Avoid instantiating new objects inside loops 2389
Local variable 'spanElem' could be declared final 2389
Local variable 'term' could be declared final 2390
Local variable 'targetElem' could be declared final 2391
Avoid instantiating new objects inside loops 2391
Local variable 'categories' could be declared final 2405
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2406
Local variable 'categoriesElem' could be declared final 2407
Local variable 'category' could be declared final 2408
Local variable 'categoryElem' could be declared final 2409
Avoid instantiating new objects inside loops 2409
Local variable 'references' could be declared final 2412
Local variable 'referencesElem' could be declared final 2413
Avoid instantiating new objects inside loops 2413
Local variable 'span' could be declared final 2414
Avoid instantiating new objects inside loops 2415
Local variable 'spanComment' could be declared final 2415
Avoid instantiating new objects inside loops 2417
Local variable 'spanElem' could be declared final 2417
Local variable 'term' could be declared final 2418
Avoid instantiating new objects inside loops 2419
Local variable 'targetElem' could be declared final 2419
Local variable 'opinions' could be declared final 2437
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2438
Local variable 'opinionsElem' could be declared final 2439
Local variable 'opinion' could be declared final 2440
Avoid instantiating new objects inside loops 2441
Local variable 'opinionElem' could be declared final 2441
Local variable 'holder' could be declared final 2449
Local variable 'opinionHolderElem' could be declared final 2451
Avoid instantiating new objects inside loops 2451
Local variable 'comment' could be declared final 2455
Avoid instantiating new objects inside loops 2455
Local variable 'targets' could be declared final 2457
Local variable 'span' could be declared final 2458
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2459
Local variable 'spanElem' could be declared final 2460
Avoid instantiating new objects inside loops 2460
Local variable 'target' could be declared final 2462
Avoid instantiating new objects inside loops 2463
Local variable 'targetElem' could be declared final 2463
Local variable 'opTarget' could be declared final 2476
Local variable 'opinionTargetElem' could be declared final 2478
Avoid instantiating new objects inside loops 2478
Local variable 'comment' could be declared final 2482
Avoid instantiating new objects inside loops 2482
Local variable 'targets' could be declared final 2484
Local variable 'span' could be declared final 2485
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2486
Avoid instantiating new objects inside loops 2487
Local variable 'spanElem' could be declared final 2487
Local variable 'target' could be declared final 2489
Avoid instantiating new objects inside loops 2490
Local variable 'targetElem' could be declared final 2490
Local variable 'expression' could be declared final 2503
Local variable 'opinionExpressionElem' could be declared final 2505
Avoid instantiating new objects inside loops 2505
Local variable 'comment' could be declared final 2506
Avoid instantiating new objects inside loops 2506
Local variable 'targets' could be declared final 2525
Local variable 'span' could be declared final 2526
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2527
Avoid instantiating new objects inside loops 2528
Local variable 'spanElem' could be declared final 2528
Local variable 'target' could be declared final 2530
Local variable 'targetElem' could be declared final 2531
Avoid instantiating new objects inside loops 2531
Local variable 'relations' could be declared final 2550
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2551
Local variable 'relationsElem' could be declared final 2552
Local variable 'relation' could be declared final 2553
Avoid instantiating new objects inside loops 2554
Local variable 'comment' could be declared final 2554
Avoid instantiating new objects inside loops 2556
Local variable 'relationElem' could be declared final 2556
Local variable 'predicates' could be declared final 2568
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2569
Local variable 'predicatesElem' could be declared final 2570
Local variable 'predicate' could be declared final 2571
Avoid instantiating new objects inside loops 2572
Local variable 'predicateComment' could be declared final 2572
Local variable 'predicateElem' could be declared final 2574
Avoid instantiating new objects inside loops 2574
Local variable 'builder' could be declared final 2586
Avoid instantiating new objects inside loops 2586
Local variable 'flag' could be declared final 2588
Local variable 'span' could be declared final 2594
Local variable 'spanComment' could be declared final 2596
Avoid instantiating new objects inside loops 2596
Avoid instantiating new objects inside loops 2597
Local variable 'spanElem' could be declared final 2597
Local variable 'target' could be declared final 2600
Local variable 'targetElem' could be declared final 2601
Avoid instantiating new objects inside loops 2601
Local variable 'externalReferences' could be declared final 2609
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2610
Local variable 'externalReferencesElem' could be declared final 2611
Local variable 'role' could be declared final 2614
Local variable 'roleElem' could be declared final 2615
Avoid instantiating new objects inside loops 2615
Avoid instantiating new objects inside loops 2619
Local variable 'builder' could be declared final 2619
Local variable 'flag' could be declared final 2621
Local variable 'roleSpan' could be declared final 2627
Avoid instantiating new objects inside loops 2629
Local variable 'spanComment' could be declared final 2629
Local variable 'spanElem' could be declared final 2630
Avoid instantiating new objects inside loops 2630
Local variable 'target' could be declared final 2633
Avoid instantiating new objects inside loops 2634
Local variable 'targetElem' could be declared final 2634
Local variable 'rExternalReferences' could be declared final 2642
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2643
Local variable 'externalReferencesElem' could be declared final 2644
Local variable 'conStrings' could be declared final 2654
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2655
Local variable 'constituentsElem' could be declared final 2656
Local variable 'sent' could be declared final 2657
Local variable 'constituencyString' could be declared final 2658
Avoid instantiating new objects inside loops 2659
Local variable 'treeElem' could be declared final 2659
Local variable 'constituents' could be declared final 2667
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2668
Local variable 'constituentsElem' could be declared final 2669
Local variable 'tree' could be declared final 2670
Avoid instantiating new objects inside loops 2671
Local variable 'treeElem' could be declared final 2671
Avoid empty catch blocks 26742676
Avoid instantiating new objects inside loops 2678
Local variable 'nonTerminals' could be declared final 2678
Avoid instantiating new objects inside loops 2679
Local variable 'terminals' could be declared final 2679
Local variable 'edges' could be declared final 2680
Avoid instantiating new objects inside loops 2680
Local variable 'rootNode' could be declared final 2681
Avoid instantiating new objects inside loops 26832694
Parameter 'nt2' is not assigned and could be declared final 2685
Parameter 'nt1' is not assigned and could be declared final 2685
Avoid instantiating new objects inside loops 26952706
Parameter 't1' is not assigned and could be declared final 2697
Parameter 't2' is not assigned and could be declared final 2697
Avoid instantiating new objects inside loops 2707
Local variable 'ntCom' could be declared final 2707
Local variable 'node' could be declared final 2709
Avoid instantiating new objects inside loops 2710
Local variable 'nodeElem' could be declared final 2710
Local variable 'tCom' could be declared final 2715
Avoid instantiating new objects inside loops 2715
Local variable 'node' could be declared final 2717
Local variable 'nodeElem' could be declared final 2718
Avoid instantiating new objects inside loops 2718
Local variable 'tStrCom' could be declared final 2722
Avoid instantiating new objects inside loops 2722
Local variable 'edgeCom' could be declared final 2726
Avoid instantiating new objects inside loops 2726
Local variable 'edge' could be declared final 2728
Local variable 'edgeElem' could be declared final 2729
Avoid instantiating new objects inside loops 2729
Local variable 'tLinks' could be declared final 2744
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2745
Local variable 'tLinksElem' could be declared final 2746
Local variable 'tLink' could be declared final 2747
Local variable 'tLinkComment' could be declared final 27482749
Avoid instantiating new objects inside loops 27482749
Avoid instantiating new objects inside loops 2751
Local variable 'tLinkElem' could be declared final 2751
Local variable 'cLinks' could be declared final 2763
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2764
Local variable 'cLinksElem' could be declared final 2765
Local variable 'cLink' could be declared final 2766
Prefer StringBuffer over += for concatenating strings 2769
Prefer StringBuffer over += for concatenating strings 2771
Local variable 'cLinkComment' could be declared final 2772
Avoid instantiating new objects inside loops 2772
Local variable 'cLinkElem' could be declared final 2774
Avoid instantiating new objects inside loops 2774
Local variable 'unknownLayers' could be declared final 2786
Local variable 'layer' could be declared final 2787
The method 'termToJson' has a Modified Cyclomatic Complexity of 27. 27962915
The method termToJson() has an NPath complexity of 27632640 27962915
The method 'termToJson' has a Cyclomatic Complexity of 27. 27962915
Parameter 'termsElem' is not assigned and could be declared final 2796
Avoid really long methods. 27962915
The method 'termToJson' has a Standard Cyclomatic Complexity of 27. 27962915
Parameter 'isComponent' is not assigned and could be declared final 2796
Parameter 'term' is not assigned and could be declared final 2796
Avoid unused local variables such as 'morphofeat'. 2797
Local variable 'morphofeat' could be declared final 2797
Avoid unused local variables such as 'head'. 2798
Local variable 'head' could be declared final 2798
Avoid unused local variables such as 'termcase'. 2799
Local variable 'termcase' could be declared final 2799
Useless parentheses. 2801
Local variable 'tag' could be declared final 2801
Local variable 'termElem' could be declared final 2803
Local variable 'sentiment' could be declared final 2837
Local variable 'sentimentElem' could be declared final 2839
Local variable 'spanElem' could be declared final 2871
Local variable 'span' could be declared final 2874
Local variable 'target' could be declared final 2875
Local variable 'targetElem' could be declared final 2876
Avoid instantiating new objects inside loops 2876
Local variable 'ja' could be declared final 2887
Local variable 'components' could be declared final 2891
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2892
Local variable 'component' could be declared final 2893
Local variable 'ta' could be declared final 2898
Local variable 'externalReferences' could be declared final 2905
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 2906
Local variable 'externalReferencesElem' could be declared final 2907
Local variable 't' could be declared final 2911
The method 'termToDOM' has a Modified Cyclomatic Complexity of 29. 29183027
Avoid really long methods. 29183027
Parameter 'termsElem' is not assigned and could be declared final 2918
The method 'termToDOM' has a Cyclomatic Complexity of 29. 29183027
Parameter 'isComponent' is not assigned and could be declared final 2918
The method 'termToDOM' has a Standard Cyclomatic Complexity of 29. 29183027
Parameter 'term' is not assigned and could be declared final 2918
The method termToDOM() has an NPath complexity of 94740480 29183027
Local variable 'morphofeat' could be declared final 2919
Avoid unused local variables such as 'morphofeat'. 2919
Local variable 'head' could be declared final 2920
Avoid unused local variables such as 'head'. 2920
Avoid unused local variables such as 'termcase'. 2921
Local variable 'termcase' could be declared final 2921
Local variable 'termComment' could be declared final 2922
Useless parentheses. 2924
Local variable 'tag' could be declared final 2924
Local variable 'termElem' could be declared final 2925
Local variable 'sentiment' could be declared final 2958
Local variable 'sentimentElem' could be declared final 2959
Local variable 'featsElem' could be declared final 2988
Local variable 'features' could be declared final 2989
Local variable 'key' could be declared final 2990
Local variable 'value' could be declared final 2991
Local variable 'allValues' could be declared final 29922993
Local variable 'featElem' could be declared final 2994
Avoid instantiating new objects inside loops 2994
Local variable 'spanElem' could be declared final 3002
Local variable 'span' could be declared final 3003
Local variable 'target' could be declared final 3004
Avoid instantiating new objects inside loops 3005
Local variable 'targetElem' could be declared final 3005
Local variable 'components' could be declared final 3014
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3015
Local variable 'component' could be declared final 3016
Local variable 'externalReferences' could be declared final 3021
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 3022
Local variable 'externalReferencesElem' could be declared final 3023
Parameter 'node' is not assigned and could be declared final 3029
Parameter 'terminals' is not assigned and could be declared final 3029
Parameter 'nonTerminals' is not assigned and could be declared final 3029
Parameter 'edges' is not assigned and could be declared final 3030
Local variable 'treeNodes' could be declared final 3033
Local variable 'child' could be declared final 3034
Avoid instantiating new objects inside loops 3035
Parameter 'externalRefs' is not assigned and could be declared final 3043
Local variable 'externalReferencesElem' could be declared final 3044
Local variable 'externalRef' could be declared final 3045
Local variable 'externalRefElem' could be declared final 3046
Parameter 'externalRefs' is not assigned and could be declared final 3052
Avoid declaring a variable if it is unreferenced before a possible exit point. 3053
Avoid unused local variables such as 'gson'. 3053
Local variable 'gson' could be declared final 3053
Local variable 'externalReferencesElem' could be declared final 3055
Local variable 'externalRef' could be declared final 3058
Local variable 'externalRefElem' could be declared final 3059
Parameter 'externalRef' is not assigned and could be declared final 3068
Local variable 'externalRefElem' could be declared final 3069
Local variable 'subExternalRefElem' could be declared final 3079
Parameter 'externalRef' is not assigned and could be declared final 3086
Local variable 'externalRefElem' could be declared final 3087
Local variable 'subExternalRefElem' could be declared final 3097
Parameter 'id2' is not assigned and could be declared final 3104
Parameter 'id1' is not assigned and could be declared final 3104
Local variable 'nbr1' could be declared final 3105
Local variable 'nbr2' could be declared final 3106
Parameter 'id' is not assigned and could be declared final 3116
Local variable 'matcher' could be declared final 3117

pikes-naflib - ixa/kaflib/Relation.java

Violation Line
Parameter 'to' is not assigned and could be declared final 21
Parameter 'from' is not assigned and could be declared final 21
Parameter 'id' is not assigned and could be declared final 21
Parameter 'relational' is not assigned and could be declared final 28
Parameter 'relation' is not assigned and could be declared final 28
Parameter 'id' is not assigned and could be declared final 49
Parameter 'obj' is not assigned and could be declared final 57
Parameter 'obj' is not assigned and could be declared final 65
Parameter 'confidence' is not assigned and could be declared final 80
Useless parentheses. 81
Useless parentheses. 81
Prefer StringBuffer over += for concatenating strings 90

pikes-naflib - ixa/kaflib/SSTspan.java

Violation Line
Private field 'mentions' could be made final; it is only initialized in the declaration or constructor. 22
Parameter 'linkedEntityId' is not assigned and could be declared final 24
Parameter 'sstSpan' is not assigned and could be declared final 29
Parameter 'mentions' is not assigned and could be declared final 29
Parameter 'type' is not assigned and could be declared final 41
Parameter 'label' is not assigned and could be declared final 49
Parameter 'id' is not assigned and could be declared final 57
Local variable 'term' could be declared final 63
Prefer StringBuffer over += for concatenating strings 65
Prefer StringBuffer over += for concatenating strings 67

pikes-naflib - ixa/kaflib/SimpleTopic.java

Violation Line
Document empty constructor 1415
Parameter 'label' is not assigned and could be declared final 17
Parameter 'probability' is not assigned and could be declared final 17
Parameter 'probability' is not assigned and could be declared final 26
Parameter 'label' is not assigned and could be declared final 34

pikes-naflib - ixa/kaflib/Span.java

Violation Line
Private field 'targets' could be made final; it is only initialized in the declaration or constructor. 15
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 15
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 16
Parameter 'targets' is not assigned and could be declared final 23
Parameter 'targets' is not assigned and could be declared final 28
Parameter 'head' is not assigned and could be declared final 28
Useless parentheses. 35
Local variable 'builder' could be declared final 39
Local variable 'term' could be declared final 40
Useless parentheses. 66
Local variable 'term' could be declared final 71
Avoid using a branching statement as the last in a loop. 72
Parameter 'target' is not assigned and could be declared final 82
Useless parentheses. 83
Parameter 'head' is not assigned and could be declared final 86
Parameter 'head' is not assigned and could be declared final 90
Parameter 'target' is not assigned and could be declared final 98
Parameter 'target' is not assigned and could be declared final 102
Parameter 'isHead' is not assigned and could be declared final 102
Parameter 'targets' is not assigned and could be declared final 109
Parameter 'target' is not assigned and could be declared final 113
Local variable 't' could be declared final 114
Parameter 'object' is not assigned and could be declared final 128
Local variable 'other' could be declared final 135

pikes-naflib - ixa/kaflib/TLink.java

Violation Line
Private field 'id' could be made final; it is only initialized in the declaration or constructor. 8
Parameter 'id' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 17
Parameter 'to' is not assigned and could be declared final 17
Parameter 'relType' is not assigned and could be declared final 17
Parameter 'from' is not assigned and could be declared final 32
Parameter 'to' is not assigned and could be declared final 40
Useless parentheses. 45
Useless parentheses. 49
Parameter 'relType' is not assigned and could be declared final 56

pikes-naflib - ixa/kaflib/TLinkReferable.java

Violation Line
Avoid modifiers which are implied by the context 6

pikes-naflib - ixa/kaflib/Target.java

Violation Line
Parameter 'term' is not assigned and could be declared final 10
Parameter 'head' is not assigned and could be declared final 10
Parameter 'term' is not assigned and could be declared final 23
Parameter 'term' is not assigned and could be declared final 28
Parameter 'head' is not assigned and could be declared final 28
Parameter 'head' is not assigned and could be declared final 33

pikes-naflib - ixa/kaflib/Term.java

Violation Line
Possible God class (WMC=107, ATFD=37, TCC=0.015959048479373683) 1614
Too many fields 8614
Parameter 'trimmed' is not assigned and could be declared final 15
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 25
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 28
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 31
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 44
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 47
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 50
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53
Private field 'components' could be made final; it is only initialized in the declaration or constructor. 56
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 56
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 59
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
Private field 'externalReferences' could be made final; it is only initialized in the declaration or constructor. 65
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 67
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 68
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 70
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 71
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 72
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 73
Avoid using redundant field initializer for 'features' 74
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 74
Parameter 'features' is not assigned and could be declared final 80
Parameter 'upos' is not assigned and could be declared final 92
Parameter 'supersenseTag' is not assigned and could be declared final 104
Parameter 'wordnetSense' is not assigned and could be declared final 112
Parameter 'bbnTag' is not assigned and could be declared final 128
Document empty constructor 191192
Parameter 'sentiment' is not assigned and could be declared final 194
Parameter 'val' is not assigned and could be declared final 213
Parameter 'val' is not assigned and could be declared final 225
Parameter 'val' is not assigned and could be declared final 237
Parameter 'val' is not assigned and could be declared final 249
Parameter 'val' is not assigned and could be declared final 261
Parameter 'val' is not assigned and could be declared final 273
Parameter 'val' is not assigned and could be declared final 285
Parameter 'val' is not assigned and could be declared final 297
Parameter 'id' is not assigned and could be declared final 302
Parameter 'span' is not assigned and could be declared final 302
Parameter 'isComponent' is not assigned and could be declared final 302
Parameter 'term' is not assigned and could be declared final 316
Parameter 'wfs' is not assigned and could be declared final 316
Local variable 'newComponents' could be declared final 329330
Local variable 'component' could be declared final 332
Avoid instantiating new objects inside loops 333
Local variable 'copyComponent' could be declared final 333
Local variable 'targets' could be declared final 341
Local variable 'copiedTargets' could be declared final 342
Local variable 'wf' could be declared final 343
Local variable 'copiedWf' could be declared final 344
Local variable 'copiedHead' could be declared final 351
Local variable 'externalRef' could be declared final 359
Avoid instantiating new objects inside loops 360
Parameter 'id' is not assigned and could be declared final 368
Parameter 'type' is not assigned and could be declared final 380
Parameter 'lemma' is not assigned and could be declared final 392
Parameter 'pos' is not assigned and could be declared final 404
Parameter 'morphofeat' is not assigned and could be declared final 416
Parameter 'termcase' is not assigned and could be declared final 428
Local variable 'builder' could be declared final 435
Local variable 'sortedWFs' could be declared final 436
Local variable 'wf' could be declared final 439
Local variable 'index' could be declared final 443
This call to String.startsWith can be rewritten using String.charAt(0) 460
Useless parentheses. 474
Local variable 'newSentiment' could be declared final 485
Useless parentheses. 491
Parameter 'sentiment' is not assigned and could be declared final 498
Parameter 'component' is not assigned and could be declared final 506
Parameter 'isHead' is not assigned and could be declared final 510
Parameter 'component' is not assigned and could be declared final 510
Parameter 'wf' is not assigned and could be declared final 525
Parameter 'wf' is not assigned and could be declared final 529
Parameter 'isHead' is not assigned and could be declared final 529
Parameter 'span' is not assigned and could be declared final 537
Parameter 'externalRef' is not assigned and could be declared final 556
Parameter 'externalRefs' is not assigned and could be declared final 560
Parameter 'compound' is not assigned and could be declared final 568
Local variable 'word' could be declared final 580
Local variable 'wordOffset' could be declared final 581
Local variable 'word' could be declared final 592
Local variable 'wordOffset' could be declared final 593
Local variable 'length' could be declared final 594
Parameter 'second' is not assigned and could be declared final 608
Parameter 'first' is not assigned and could be declared final 608

pikes-naflib - ixa/kaflib/Terminal.java

Violation Line
Private field 'span' could be made final; it is only initialized in the declaration or constructor. 9
Parameter 'id' is not assigned and could be declared final 11
Parameter 'span' is not assigned and could be declared final 11
Local variable 'term' could be declared final 23
Prefer StringBuffer over += for concatenating strings 25
Prefer StringBuffer over += for concatenating strings 27
Local variable 'strValue' could be declared final 33
This call to String.startsWith can be rewritten using String.charAt(0) 34
Parameter 'tn' is not assigned and could be declared final 45

pikes-naflib - ixa/kaflib/Timex3.java

Violation Line
Parameter 'type' is not assigned and could be declared final 44
Parameter 'timex3id' is not assigned and could be declared final 44
Parameter 'id' is not assigned and could be declared final 96
Parameter 'type' is not assigned and could be declared final 104
Parameter 'beginPoint' is not assigned and could be declared final 116
Parameter 'endPoint' is not assigned and could be declared final 128
Parameter 'freq' is not assigned and could be declared final 140
Parameter 'quant' is not assigned and could be declared final 152
Parameter 'functionInDocument' is not assigned and could be declared final 164
Parameter 'temporalFunction' is not assigned and could be declared final 176
Parameter 'value' is not assigned and could be declared final 188
Parameter 'valueFromFunction' is not assigned and could be declared final 200
Parameter 'mod' is not assigned and could be declared final 212
Parameter 'anchorTimeId' is not assigned and could be declared final 224
Parameter 'comment' is not assigned and could be declared final 236
Parameter 'span' is not assigned and could be declared final 248
Parameter 'span' is not assigned and could be declared final 252
Local variable 'wf' could be declared final 254
Prefer StringBuffer over += for concatenating strings 256
Prefer StringBuffer over += for concatenating strings 258

pikes-naflib - ixa/kaflib/Topic.java

Violation Line
Parameter 'topicID' is not assigned and could be declared final 13
Parameter 'id' is not assigned and could be declared final 21

pikes-naflib - ixa/kaflib/Tree.java

Violation Line
Possible God class (WMC=77, ATFD=27, TCC=0.02197802197802198) 1279
The class 'Tree' has a Cyclomatic Complexity of 5 (Highest = 21). 7279
The class 'Tree' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 7279
The class 'Tree' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 7279
Avoid using redundant field initializer for 'sentence' 13
Parameter 'root' is not assigned and could be declared final 15
Parameter 'root' is not assigned and could be declared final 19
Parameter 'sentence' is not assigned and could be declared final 19
Parameter 'root' is not assigned and could be declared final 28
Parameter 'kaf' is not assigned and could be declared final 37
Parameter 'parOut' is not assigned and could be declared final 37
Parameter 'sentence' is not assigned and could be declared final 45
Parameter 'parOut' is not assigned and could be declared final 45
Parameter 'kaf' is not assigned and could be declared final 45
Local variable 'tokens' could be declared final 46
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'parMatching' could be declared final 48
Local variable 'termMatching' could be declared final 49
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 51
Avoid unused local variables such as 'trees'. 54
Local variable 'trees' could be declared final 54
Local variable 'end' could be declared final 57
Local variable 'root' could be declared final 58
Parameter 'parOut' is not assigned and could be declared final 64
Local variable 'tokens' could be declared final 65
Local variable 'length' could be declared final 67
Avoid instantiating String objects; this is usually unnecessary. 68
Local variable 'nextChar' could be declared final 70
Avoid instantiating new objects inside loops 75
Avoid instantiating String objects; this is usually unnecessary. 75
Avoid instantiating String objects; this is usually unnecessary. 76
Avoid instantiating new objects inside loops 76
Avoid instantiating String objects; this is usually unnecessary. 82
Avoid instantiating new objects inside loops 82
Avoid instantiating String objects; this is usually unnecessary. 83
Avoid instantiating new objects inside loops 83
Useless parentheses. 85
Useless parentheses. 85
Avoid instantiating new objects inside loops 88
Avoid instantiating String objects; this is usually unnecessary. 88
Prefer StringBuffer over += for concatenating strings 92
Consider using varargs for methods or constructors which take an array the last parameter. 98
Parameter 'tokens' is not assigned and could be declared final 98
Local variable 'indexes' could be declared final 99
Local variable 'stack' could be declared final 100
Local variable 'token' could be declared final 102
Position literals first in String comparisons 103
Position literals first in String comparisons 106
The method 'matchTerms' has a Standard Cyclomatic Complexity of 16. 114174
Parameter 'terms' is not assigned and could be declared final 114
Parameter 'tokens' is not assigned and could be declared final 114
The method 'matchTerms' has a Cyclomatic Complexity of 21. 114174
The method 'matchTerms' has a Modified Cyclomatic Complexity of 16. 114174
Local variable 'mapping' could be declared final 115
Useless parentheses. 118
Useless parentheses. 118
Useless parentheses. 119
Useless parentheses. 119
These nested if statements could be combined 119170
Position literals first in String comparisons 126
Avoid instantiating String objects; this is usually unnecessary. 127
Avoid instantiating new objects inside loops 127
Position literals first in String comparisons 129
Avoid instantiating String objects; this is usually unnecessary. 130
Avoid instantiating new objects inside loops 130
Position literals first in String comparisons 132
Avoid instantiating new objects inside loops 133
Avoid instantiating String objects; this is usually unnecessary. 133
Position literals first in String comparisons 135
Avoid instantiating String objects; this is usually unnecessary. 136
Avoid instantiating new objects inside loops 136
Position literals first in String comparisons 138
Avoid instantiating String objects; this is usually unnecessary. 139
Avoid instantiating new objects inside loops 139
Position literals first in String comparisons 141
Avoid instantiating String objects; this is usually unnecessary. 142
Avoid instantiating new objects inside loops 142
Useless parentheses. 150
Useless parentheses. 158
Parameter 'tokens' is not assigned and could be declared final 176
Parameter 'end' is not assigned and could be declared final 176
Parameter 'parenthesesMap' is not assigned and could be declared final 176
Parameter 'termMap' is not assigned and could be declared final 176
Parameter 'kaf' is not assigned and could be declared final 176
Parameter 'start' is not assigned and could be declared final 176
Local variable 'isHead' could be declared final 178
Local variable 'nt' could be declared final 182
Local variable 't' could be declared final 187
Avoid empty catch blocks 190
Local variable 'subParEnd' could be declared final 195
Local variable 'nnt' could be declared final 196
Avoid empty catch blocks 199
Parameter 'term' is not assigned and could be declared final 206
Avoid unused method parameters such as 'token'. 206
Parameter 'kaf' is not assigned and could be declared final 206
Parameter 'token' is not assigned and could be declared final 206
Local variable 'span' could be declared final 207
The method 'check' has a Cyclomatic Complexity of 17. 212248
Consider using varargs for methods or constructors which take an array the last parameter. 212
The method 'check' has a Modified Cyclomatic Complexity of 12. 212248
Parameter 'tokens' is not assigned and could be declared final 212
The method 'check' has a Standard Cyclomatic Complexity of 12. 212248
Useless parentheses. 216
Useless parentheses. 216
Useless parentheses. 225
Useless parentheses. 231
Useless parentheses. 231
Parameter 'token' is not assigned and could be declared final 250
Position literals first in String comparisons 251
Useless parentheses. 251
Position literals first in String comparisons 251
Useless parentheses. 251
Parameter 'ind' is not assigned and could be declared final 254
Parameter 'tokens' is not assigned and could be declared final 254
Avoid instantiating String objects; this is usually unnecessary. 255
Prefer StringBuffer over += for concatenating strings 258
Prefer StringBuffer over += for concatenating strings 260
Prefer StringBuffer over += for concatenating strings 262
Prefer StringBuffer over += for concatenating strings 264
Parameter 'tag' is not assigned and could be declared final 269
Parameter 'tag' is not assigned and could be declared final 273

pikes-naflib - ixa/kaflib/TreeNode.java

Violation Line
Private field 'isTerminal' could be made final; it is only initialized in the declaration or constructor. 17
Parameter 'id' is not assigned and could be declared final 20
Parameter 'head' is not assigned and could be declared final 20
Parameter 'isTerminal' is not assigned and could be declared final 20
Parameter 'id' is not assigned and could be declared final 30
Parameter 'edgeId' is not assigned and could be declared final 42
Parameter 'head' is not assigned and could be declared final 50

pikes-naflib - ixa/kaflib/WF.java

Violation Line
Private field 'annotationContainer' could be made final; it is only initialized in the declaration or constructor. 10
Parameter 'sent' is not assigned and could be declared final 36
Parameter 'form' is not assigned and could be declared final 36
Parameter 'wid' is not assigned and could be declared final 36
Parameter 'annotationContainer' is not assigned and could be declared final 36
Parameter 'wf' is not assigned and could be declared final 47
Parameter 'annotationContainer' is not assigned and could be declared final 47
Parameter 'wid' is not assigned and could be declared final 63
Parameter 'sent' is not assigned and could be declared final 71
Parameter 'para' is not assigned and could be declared final 91
Parameter 'page' is not assigned and could be declared final 104
Parameter 'offset' is not assigned and could be declared final 116
Parameter 'length' is not assigned and could be declared final 128
Parameter 'xpath' is not assigned and could be declared final 140
Parameter 'form' is not assigned and could be declared final 148
Parameter 'second' is not assigned and could be declared final 162
Parameter 'first' is not assigned and could be declared final 162

pikes-raid - eu/fbk/dkm/pikes/raid/Analyzer.java

Violation Line
Possible God class (WMC=75, ATFD=69, TCC=0.022222222222222223) 1545
The class 'Analyzer' has a Standard Cyclomatic Complexity of 5 (Highest = 26). 47545
The class 'Analyzer' has a Modified Cyclomatic Complexity of 5 (Highest = 26). 47545
The class 'Analyzer' has a Cyclomatic Complexity of 6 (Highest = 29). 47545
Use block level rather than method level synchronization 163231
The method 'doAdd' has a Cyclomatic Complexity of 10. 163231
Avoid instantiating new objects inside loops 200
Avoid instantiating new objects inside loops 204
Avoid instantiating new objects inside loops 205
Avoid instantiating new objects inside loops 206
Avoid really long methods. 274397
The method 'renderOpinions' has a Standard Cyclomatic Complexity of 26. 274397
The method 'renderOpinions' has a Modified Cyclomatic Complexity of 26. 274397
The method 'renderOpinions' has a Cyclomatic Complexity of 29. 274397
Avoid really long methods. 443543
The method main() has an NPath complexity of 751 443543
Avoid declaring a variable if it is unreferenced before a possible exit point. 486487
Avoid declaring a variable if it is unreferenced before a possible exit point. 488489
Avoid declaring a variable if it is unreferenced before a possible exit point. 490491
Avoid declaring a variable if it is unreferenced before a possible exit point. 495
Avoid declaring a variable if it is unreferenced before a possible exit point. 496
Avoid declaring a variable if it is unreferenced before a possible exit point. 497
Avoid declaring a variable if it is unreferenced before a possible exit point. 498

pikes-raid - eu/fbk/dkm/pikes/raid/Component.java

Violation Line
Returning 'headPos' may expose an internal array. 32
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 53

pikes-raid - eu/fbk/dkm/pikes/raid/CreateTrainingForExpression.java

Violation Line
Possible God class (WMC=186, ATFD=127, TCC=0.3) 1894
The class 'CreateTrainingForExpression' has a Modified Cyclomatic Complexity of 32 (Highest = 91). 23894
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23894
The class 'CreateTrainingForExpression' has a Standard Cyclomatic Complexity of 33 (Highest = 91). 23894
The class 'CreateTrainingForExpression' has a Cyclomatic Complexity of 38 (Highest = 105). 23894
Too many fields 23894
Avoid using redundant field initializer for 'MAJORITY' 49
Avoid using redundant field initializer for 'FEATS_STANFORD' 51
Avoid using redundant field initializer for 'FEATS_SENTIWORDNET' 56
Parameter 'labels' is not assigned and could be declared final 101
Avoid really long methods. 101461
The method extractFeats() has an NCSS line count of 241 101461
The method 'extractFeats' has a Standard Cyclomatic Complexity of 91. 101461
The method extractFeats() has an NPath complexity of 600906662 101461
Parameter 'hypernyms' is not assigned and could be declared final 101
The method 'extractFeats' has a Cyclomatic Complexity of 105. 101461
Parameter 'document' is not assigned and could be declared final 101
The method 'extractFeats' has a Modified Cyclomatic Complexity of 91. 101461
Parameter 'skipEmpty' is not assigned and could be declared final 101
Local variable 'opinionTerms' could be declared final 102
Local variable 'stanfordTerms' could be declared final 103
Local variable 'entityTerms' could be declared final 104
Local variable 'srlFeatures' could be declared final 107
Local variable 'predicate' could be declared final 110
Local variable 'term' could be declared final 111
Local variable 'externalRef' could be declared final 113
Local variable 'role' could be declared final 120
Local variable 'externalRef' could be declared final 121
Local variable 'roleTerm' could be declared final 130
Local variable 'roleExternalRef' could be declared final 136
Local variable 'entity' could be declared final 156
Local variable 'term' could be declared final 157
Local variable 'opinion' could be declared final 163
Local variable 'label' could be declared final 177
These nested if statements could be combined 186192
Deeply nested if..then statements are hard to read 186192
Position literals first in String comparisons 188
These nested if statements could be combined 199201
Local variable 'term' could be declared final 205
Local variable 'senticnetMM' could be declared final 214
Local variable 'subjectivityMM' could be declared final 215
Local variable 'intensitiesMM' could be declared final 216
Local variable 'ret' could be declared final 219
Avoid instantiating new objects inside loops 223
Local variable 'sentence' could be declared final 223
Local variable 'sent' could be declared final 224
Local variable 'term' could be declared final 226
Local variable 'feats' could be declared final 227
Avoid instantiating new objects inside loops 227
Local variable 'to' could be declared final 240
Local variable 's' could be declared final 254
Local variable 'externalRef' could be declared final 271
Local variable 'snLexemes' could be declared final 283
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 290
Local variable 'lexeme' could be declared final 292
Avoid using a branching statement as the last in a loop. 298
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 328
Local variable 'lexeme' could be declared final 331
Deeply nested if..then statements are hard to read 332334
Avoid using a branching statement as the last in a loop. 336
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 349
Local variable 'lexeme' could be declared final 351
Deeply nested if..then statements are hard to read 352354
Avoid using a branching statement as the last in a loop. 356
Local variable 'type' could be declared final 371
Local variable 'lexeme' could be declared final 374
Deeply nested if..then statements are hard to read 375378
Local variable 'first' could be declared final 381
Local variable 'split' could be declared final 393
Local variable 'wnSense' could be declared final 398
Avoid instantiating new objects inside loops 401
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 405
Local variable 'hypernym' could be declared final 406
Local variable 'hypernym' could be declared final 418
Local variable 'swnPair' could be declared final 430
Local variable 'posTimes' could be declared final 431
Local variable 'negTimes' could be declared final 432
Position literals first in String comparisons 443
The method main() has an NCSS line count of 124 463696
The method 'main' has a Cyclomatic Complexity of 38. 463696
The method main() has an NPath complexity of 8064001 463696
The method 'main' has a Standard Cyclomatic Complexity of 32. 463696
Parameter 'args' is not assigned and could be declared final 463
The method 'main' has a Modified Cyclomatic Complexity of 32. 463696
Avoid really long methods. 463696
Consider using varargs for methods or constructors which take an array the last parameter. 463
Local variable 'mainFolder' could be declared final 485
Avoid declaring a variable if it is unreferenced before a possible exit point. 485
Local variable 'outputFolder' could be declared final 486
Avoid declaring a variable if it is unreferenced before a possible exit point. 486
Avoid declaring a variable if it is unreferenced before a possible exit point. 488
Local variable 'wnFolder' could be declared final 488
Local variable 'swnFolder' could be declared final 489
Avoid declaring a variable if it is unreferenced before a possible exit point. 489
Local variable 'label' could be declared final 491
Local variable 'labels' could be declared final 492
Avoid declaring a variable if it is unreferenced before a possible exit point. 492
Avoid declaring a variable if it is unreferenced before a possible exit point. 494
Local variable 'skipEmptyTrain' could be declared final 494
Local variable 'skipEmptyTest' could be declared final 495
Avoid declaring a variable if it is unreferenced before a possible exit point. 495
Local variable 'typeString' could be declared final 499
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 502
Local variable 'slotSize' could be declared final 514
Avoid declaring a variable if it is unreferenced before a possible exit point. 514
Avoid declaring a variable if it is unreferenced before a possible exit point. 515
Local variable 'split' could be declared final 515
Avoid declaring a variable if it is unreferenced before a possible exit point. 519
Local variable 'seed' could be declared final 519
Local variable 'trainList' could be declared final 529
Local variable 'testList' could be declared final 530
Useless parentheses. 532
Useless parentheses. 532
Local variable 'createdOutputFolder' could be declared final 539
Local variable 'trainFiles' could be declared final 565
Local variable 'testFiles' could be declared final 566
Local variable 'myCorpus' could be declared final 571
Local variable 'allHypernyms' could be declared final 576
Local variable 'columns' could be declared final 579
Local variable 'file' could be declared final 584
Local variable 'document' could be declared final 585
Local variable 'term' could be declared final 586
Local variable 'wnSense' could be declared final 587
Local variable 'hypernyms' could be declared final 589
Local variable 'file' could be declared final 597
Local variable 'document' could be declared final 598
Local variable 'sentences' could be declared final 599
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 600
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 600
Local variable 'key' could be declared final 601
Local variable 'trainDataFile' could be declared final 613
Local variable 'trainWriter' could be declared final 614
Local variable 'file' could be declared final 615
Local variable 'document' could be declared final 616
Local variable 'testDataFile' could be declared final 623
Local variable 'testWriter' could be declared final 624
Local variable 'file' could be declared final 625
Local variable 'document' could be declared final 626
Local variable 'templateFile' could be declared final 632
Local variable 'templateWriter' could be declared final 633
Local variable 'buffer' could be declared final 634
Local variable 'colName' could be declared final 638
Avoid appending characters as strings in StringBuffer.append. 644
Avoid appending characters as strings in StringBuffer.append. 644
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 648
Avoid appending characters as strings in StringBuffer.append. 648
Avoid appending characters as strings in StringBuffer.append. 648
Avoid appending characters as strings in StringBuffer.append. 649
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 649
Avoid appending characters as strings in StringBuffer.append. 649
Avoid appending characters as strings in StringBuffer.append. 650
Avoid appending characters as strings in StringBuffer.append. 654
StringBuffer (or StringBuilder).append is called 4 consecutive times with literal Strings. Use a single append with a single combined String. 654
Avoid appending characters as strings in StringBuffer.append. 654
Avoid appending characters as strings in StringBuffer.append. 655
Avoid appending characters as strings in StringBuffer.append. 655
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 655
Avoid appending characters as strings in StringBuffer.append. 655
Avoid appending characters as strings in StringBuffer.append. 656
Avoid appending characters as strings in StringBuffer.append. 661
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 661
Avoid appending characters as strings in StringBuffer.append. 661
Avoid appending characters as strings in StringBuffer.append. 662
Avoid appending characters as strings in StringBuffer.append. 662
Avoid appending characters as strings in StringBuffer.append. 663
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 664
Avoid appending characters as strings in StringBuffer.append. 664
Avoid appending characters as strings in StringBuffer.append. 664
Avoid appending characters as strings in StringBuffer.append. 665
Avoid appending characters as strings in StringBuffer.append. 671
Avoid appending characters as strings in StringBuffer.append. 671
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 671
Avoid appending characters as strings in StringBuffer.append. 672
Avoid appending characters as strings in StringBuffer.append. 672
Avoid appending characters as strings in StringBuffer.append. 673
Avoid appending characters as strings in StringBuffer.append. 674
Avoid appending characters as strings in StringBuffer.append. 674
Avoid appending characters as strings in StringBuffer.append. 675
Avoid appending characters as strings in StringBuffer.append. 676
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 676
Avoid appending characters as strings in StringBuffer.append. 676
Avoid appending characters as strings in StringBuffer.append. 677
Avoid appending characters as strings in StringBuffer.append. 681
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 684
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 684
Avoid appending characters as strings in StringBuffer.append. 685
Avoid appending characters as strings in StringBuffer.append. 685
Parameter 'term' is not assigned and could be declared final 698
Local variable 'externalRef' could be declared final 701
Parameter 'fileList' is not assigned and could be declared final 714
Parameter 'replaceExtension' is not assigned and could be declared final 714
Parameter 'baseFolder' is not assigned and could be declared final 714
Local variable 'ret' could be declared final 716
Avoid instantiating new objects inside loops 735
Local variable 'file' could be declared final 735
The method 'writeFeats' has a Cyclomatic Complexity of 30. 753893
Parameter 'skipEmptySentences' is not assigned and could be declared final 753
The method 'writeFeats' has a Modified Cyclomatic Complexity of 22. 753893
Parameter 'slotSize' is not assigned and could be declared final 753
Parameter 'writer' is not assigned and could be declared final 753
The method writeFeats() has an NPath complexity of 15040 753893
Avoid really long methods. 753893
Parameter 'labels' is not assigned and could be declared final 753
Parameter 'type' is not assigned and could be declared final 753
The method 'writeFeats' has a Standard Cyclomatic Complexity of 27. 753893
Parameter 'hypernyms' is not assigned and could be declared final 753
Parameter 'document' is not assigned and could be declared final 753
Switch statements should have a default label 761780
Local variable 'sentences' could be declared final 782
Prefer StringBuffer over += for concatenating strings 793
Local variable 'bigBuffer' could be declared final 795
Local variable 'sentence' could be declared final 797
Local variable 'isAnnotated' could be declared final 799
Local variable 'buffer' could be declared final 800
Avoid instantiating new objects inside loops 800
Local variable 'token' could be declared final 803
Local variable 'classification' could be declared final 804
A high ratio of statements to labels in a switch statement. Consider refactoring. 810878
A switch with less than three branches is inefficient, use a if statement instead. 810878
Switch statements should have a default label 810878
Local variable 'key' could be declared final 813
Local variable 'value' could be declared final 818
Avoid appending characters as strings in StringBuffer.append. 825
Local variable 'key' could be declared final 839
Local variable 'thisValue' could be declared final 858
Avoid appending characters as strings in StringBuffer.append. 864
Avoid appending characters as strings in StringBuffer.append. 864
Avoid appending characters as strings in StringBuffer.append. 865
Avoid appending characters as strings in StringBuffer.append. 884
Avoid appending characters as strings in StringBuffer.append. 886

pikes-raid - eu/fbk/dkm/pikes/raid/EvaluateOnStanford.java

Violation Line
The class 'EvaluateOnStanford' has a Cyclomatic Complexity of 9 (Highest = 29). 23235
The class 'EvaluateOnStanford' has a Standard Cyclomatic Complexity of 7 (Highest = 23). 23235
The class 'EvaluateOnStanford' has a Modified Cyclomatic Complexity of 7 (Highest = 23). 23235
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23235
Avoid unused private fields such as 'STANFORD_LABEL'. 26
Parameter 'unsortedMap' is not assigned and could be declared final 37
Parameter 'desc' is not assigned and could be declared final 37
Local variable 'sortedMap' could be declared final 38
Parameter 'map' is not assigned and could be declared final 43
Parameter 'opinion' is not assigned and could be declared final 43
Avoid unused private methods such as 'addOpinionToMap(Map,Opinion)'. 43
Parameter 'args' is not assigned and could be declared final 47
The method 'main' has a Standard Cyclomatic Complexity of 23. 47199
The method 'main' has a Cyclomatic Complexity of 29. 47199
Consider using varargs for methods or constructors which take an array the last parameter. 47
The method 'main' has a Modified Cyclomatic Complexity of 23. 47199
The method main() has an NPath complexity of 7513 47199
Avoid really long methods. 47199
Local variable 'mainFolder' could be declared final 63
Local variable 'threshold' could be declared final 69
Local variable 'fileIterator' could be declared final 85
Local variable 'precisionRecallStats' could be declared final 87
Local variable 'file' could be declared final 94
Local variable 'document' could be declared final 97
Local variable 'mpqaOpinions' could be declared final 100
Avoid instantiating new objects inside loops 100
Local variable 'stanfordOpinions' could be declared final 101
Avoid instantiating new objects inside loops 101
Local variable 'opinion' could be declared final 103
These nested if statements could be combined 105108
Local variable 'entry' could be declared final 119
Local variable 'opinion' could be declared final 120
Local variable 'terms' could be declared final 121
Avoid instantiating new objects inside loops 121
Local variable 'checkEntry' could be declared final 123
Local variable 'checkOpinion' could be declared final 124
Avoid instantiating new objects inside loops 126
Local variable 'checkTerms' could be declared final 126
Local variable 'sizeBefore' could be declared final 127
Local variable 'goldPolarity' could be declared final 133
Local variable 'stanfordPolarities' could be declared final 135
Local variable 'parts' could be declared final 137
Local variable 'neg' could be declared final 138
Local variable 'neu' could be declared final 139
Local variable 'pos' could be declared final 140
Position literals first in String comparisons 168
Parameter 'polarity' is not assigned and could be declared final 201
Local variable 'p' could be declared final 202
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 202
The method 'isValidOpinion' has a Cyclomatic Complexity of 11. 215233
Avoid unnecessary if..then..else statements when returning booleans 227229

pikes-raid - eu/fbk/dkm/pikes/raid/Evaluation.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 18169
The class 'Evaluation' has a Cyclomatic Complexity of 14 (Highest = 13). 18169
The class 'Evaluation' has a Modified Cyclomatic Complexity of 14 (Highest = 13). 18169
The class 'Evaluation' has a Standard Cyclomatic Complexity of 14 (Highest = 13). 18169
The method main() has an NPath complexity of 326 22168
Avoid really long methods. 22168
The method 'main' has a Modified Cyclomatic Complexity of 13. 22168
Consider using varargs for methods or constructors which take an array the last parameter. 22
The method 'main' has a Standard Cyclomatic Complexity of 13. 22168
The method 'main' has a Cyclomatic Complexity of 13. 22168
Parameter 'args' is not assigned and could be declared final 22
Local variable 'testFile' could be declared final 33
Local variable 'e' could be declared final 37
Local variable 'reader' could be declared final 39
String.trim().length()==0 is an inefficient way to validate an empty String. 61
String.trim().length()==0 is an inefficient way to validate an empty String. 67
Avoid instantiating new objects inside loops 73
Local variable 'allGold' could be declared final 73
Local variable 'goldSpan' could be declared final 74
Local variable 'allTest' could be declared final 77
Avoid instantiating new objects inside loops 77
Local variable 'testSpan' could be declared final 78
Local variable 'parts' could be declared final 102
Local variable 'testCol' could be declared final 107
Local variable 'goldCol' could be declared final 108
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 124
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 134
Local variable 'spr' could be declared final 149

pikes-raid - eu/fbk/dkm/pikes/raid/Extractor.java

Violation Line
Avoid unused private methods such as 'extract(KAFDocument,String,EnumSet)'. 8990
Avoid unused private methods such as 'refine(KAFDocument,Iterable,String,EnumSet)'. 115116
New exception is thrown in catch block, original stack trace may be lost 233234
The method main() has an NPath complexity of 601 242344
Avoid really long methods. 242344

pikes-raid - eu/fbk/dkm/pikes/raid/OpinionSet.java

Violation Line
Private field 'opinion' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'size' could be made final; it is only initialized in the declaration or constructor. 19
Parameter 'opinion' is not assigned and could be declared final 21
Avoid using redundant field initializer for 'desc' 45
Parameter 'desc' is not assigned and could be declared final 47
Parameter 'o1' is not assigned and could be declared final 52
Parameter 'o2' is not assigned and could be declared final 52
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
Parameter 'desc' is not assigned and could be declared final 80
Parameter 'opinion' is not assigned and could be declared final 84

pikes-raid - eu/fbk/dkm/pikes/raid/Opinions.java

Violation Line
Possible God class (WMC=50, ATFD=62, TCC=0.0) 1227
The class 'Opinions' has a Cyclomatic Complexity of 6 (Highest = 14). 21227
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 21227
The class 'Opinions' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 21227
The class 'Opinions' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 21227
The method 'split' has a Cyclomatic Complexity of 10. 75132
The method 'split' has a Standard Cyclomatic Complexity of 10. 75132
The method 'split' has a Modified Cyclomatic Complexity of 10. 75132
The method 'retain' has a Cyclomatic Complexity of 14. 134179
The method 'retain' has a Standard Cyclomatic Complexity of 10. 134179
The method retain() has an NPath complexity of 257 134179
The method 'retain' has a Modified Cyclomatic Complexity of 10. 134179
The method 'create' has a Cyclomatic Complexity of 12. 181225

pikes-raid - eu/fbk/dkm/pikes/raid/SenticSubjlexTraining.java

Violation Line
The class 'SenticSubjlexTraining' has a Modified Cyclomatic Complexity of 19 (Highest = 18). 28212
The class 'SenticSubjlexTraining' has a Cyclomatic Complexity of 20 (Highest = 19). 28212
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 28212
The class 'SenticSubjlexTraining' has a Standard Cyclomatic Complexity of 19 (Highest = 18). 28212
Avoid really long methods. 33211
The method 'main' has a Modified Cyclomatic Complexity of 18. 33211
Consider using varargs for methods or constructors which take an array the last parameter. 33
The method 'main' has a Standard Cyclomatic Complexity of 18. 33211
The method 'main' has a Cyclomatic Complexity of 19. 33211
The method main() has an NPath complexity of 13473 33211
Parameter 'args' is not assigned and could be declared final 33
Local variable 'mainFolder' could be declared final 45
Local variable 'wnFolder' could be declared final 46
Avoid unused local variables such as 'stemmer'. 57
Local variable 'stemmer' could be declared final 57
Local variable 'senticNet' could be declared final 70
Local variable 'subjectivityLexicon' could be declared final 71
Local variable 'parameters' could be declared final 86
Local variable 'trainingSet' could be declared final 87
Local variable 'files' could be declared final 92
Local variable 'file' could be declared final 94
Local variable 'document' could be declared final 101
Local variable 'senticnetMM' could be declared final 104
Local variable 'subjectivityMM' could be declared final 105
Local variable 'opinionTerms' could be declared final 107
Avoid instantiating new objects inside loops 107
Local variable 'opinion' could be declared final 109
Local variable 'term' could be declared final 126
Local variable 'term' could be declared final 131
Local variable 'vector' could be declared final 157
Local variable 'grid' could be declared final 193
Avoid unused local variables such as 'grid'. 193

pikes-raid - eu/fbk/dkm/pikes/raid/SimpleEvaluation.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 1461
Avoid unused private fields such as 'LOGGER'. 16
Consider using varargs for methods or constructors which take an array the last parameter. 18
Parameter 'args' is not assigned and could be declared final 18
Local variable 'testFile' could be declared final 29
Local variable 'reader' could be declared final 30
Local variable 'parts' could be declared final 39
Local variable 'testCol' could be declared final 44
Local variable 'goldCol' could be declared final 45

pikes-raid - eu/fbk/dkm/pikes/raid/Trainer.java

Violation Line
The class 'Trainer' has a Cyclomatic Complexity of 3 (Highest = 10). 43301
The method 'doAdd' has a Cyclomatic Complexity of 10. 114161
Avoid instantiating new objects inside loops 151
Consider using varargs for methods or constructors which take an array the last parameter. 171
New exception is thrown in catch block, original stack trace may be lost 195
Avoid really long methods. 199300

pikes-raid - eu/fbk/dkm/pikes/raid/UpdateNafsWithResults.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 25399
The class 'UpdateNafsWithResults' has a Standard Cyclomatic Complexity of 25 (Highest = 24). 25399
The class 'UpdateNafsWithResults' has a Modified Cyclomatic Complexity of 25 (Highest = 24). 25399
The class 'UpdateNafsWithResults' has a Cyclomatic Complexity of 29 (Highest = 28). 25399
Avoid unused private fields such as 'MAX_DOCS'. 28
Avoid unused private fields such as 'DEFAULT_LABEL'. 29
Avoid unused private fields such as 'DEFAULT_CLASSIFICATION_LABEL'. 32
The method 'main' has a Standard Cyclomatic Complexity of 24. 38397
Consider using varargs for methods or constructors which take an array the last parameter. 38
The method main() has an NCSS line count of 102 38397
The method 'main' has a Modified Cyclomatic Complexity of 24. 38397
The method main() has an NPath complexity of 191881 38397
Parameter 'args' is not assigned and could be declared final 38
Avoid really long methods. 38397
The method 'main' has a Cyclomatic Complexity of 28. 38397
Avoid declaring a variable if it is unreferenced before a possible exit point. 60
Local variable 'mainFolder' could be declared final 60
Local variable 'outputFolder' could be declared final 61
Avoid declaring a variable if it is unreferenced before a possible exit point. 61
Local variable 'resultsFile' could be declared final 63
Avoid declaring a variable if it is unreferenced before a possible exit point. 63
Avoid declaring a variable if it is unreferenced before a possible exit point. 64
Local variable 'label' could be declared final 64
Local variable 'split' could be declared final 65
Avoid declaring a variable if it is unreferenced before a possible exit point. 65
Avoid declaring a variable if it is unreferenced before a possible exit point. 66
Local variable 'seed' could be declared final 66
Local variable 'trainList' could be declared final 76
Local variable 'testList' could be declared final 77
Local variable 'sentimentModel' could be declared final 79
Avoid declaring a variable if it is unreferenced before a possible exit point. 79
Avoid declaring a variable if it is unreferenced before a possible exit point. 80
Local variable 'sentimentProperties' could be declared final 80
Local variable 'negLimit' could be declared final 82
Avoid declaring a variable if it is unreferenced before a possible exit point. 82
Local variable 'posLimit' could be declared final 83
Avoid declaring a variable if it is unreferenced before a possible exit point. 83
Avoid declaring a variable if it is unreferenced before a possible exit point. 85
Local variable 'fakeMode' could be declared final 85
Useless parentheses. 87
Useless parentheses. 87
Local variable 'mkdirs' could be declared final 94
Local variable 'prp' could be declared final 104
Local variable 'iS' could be declared final 105
Local variable 'trainFiles' could be declared final 116
Local variable 'testFiles' could be declared final 117
Local variable 'myCorpus' could be declared final 122
Local variable 'reader' could be declared final 126
Local variable 'startIndex' could be declared final 127
Local variable 'endIndex' could be declared final 128
Local variable 'parts' could be declared final 135
Local variable 'res' could be declared final 140
This call to String.startsWith can be rewritten using String.charAt(0) 143
This call to String.startsWith can be rewritten using String.charAt(0) 148
These nested if statements could be combined 149151
Local variable 'file' could be declared final 158
Local variable 'baseFileName' could be declared final 160
Local variable 'outputFile' could be declared final 161
Local variable 'document' could be declared final 165
Local variable 'terms' could be declared final 166
Local variable 'length' could be declared final 171
Local variable 'termSpan' could be declared final 172
Local variable 'opinion' could be declared final 184
Local variable 'opinionExpression' could be declared final 186
Local variable 'computedPolarity' could be declared final 263
Deeply nested if..then statements are hard to read 267269
Deeply nested if..then statements are hard to read 270272

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/APIManager.java

Violation Line
Possible God class (WMC=68, ATFD=68, TCC=0.0) 1436
The class 'APIManager' has a Standard Cyclomatic Complexity of 10 (Highest = 35). 19436
The class 'APIManager' has a Cyclomatic Complexity of 12 (Highest = 41). 19436
The class 'APIManager' has a Modified Cyclomatic Complexity of 10 (Highest = 35). 19436
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 21
Perhaps 'domain' could be replaced by a local variable. 22
Perhaps 'wnl' could be replaced by a local variable. 23
Local variable 'iS' could be declared final 30
Parameter 'prp' is not assigned and could be declared final 35
Parameter 'modelPath' is not assigned and could be declared final 40
Avoid really long methods. 51198
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 22. 51198
The method evaluateSentence() has an NPath complexity of 132678 51198
The method 'evaluateSentence' has a Cyclomatic Complexity of 27. 51198
Parameter 'text' is not assigned and could be declared final 51
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 22. 51198
Avoid declaring a variable if it is unreferenced before a possible exit point. 52
Local variable 'sentenceTokens' could be declared final 61
Local variable 'stemmedTokens' could be declared final 62
Local variable 'eT' could be declared final 64
Local variable 'lexToken' could be declared final 68
Avoid instantiating new objects inside loops 73
Avoid instantiating new objects inside loops 75
Local variable 'stemmer' could be declared final 75
Avoid instantiating new objects inside loops 82
Local variable 'it' could be declared final 85
Local variable 'currentConcept' could be declared final 87
Local variable 'cts' could be declared final 88
Local variable 'ct' could be declared final 93
Avoid using if statements without curly braces 106
Avoid using if statements without curly braces 107
Local variable 'notToken' could be declared final 111
Avoid empty if statements 112114
Useless parentheses. 118
Useless parentheses. 120
Useless parentheses. 120
Useless parentheses. 120
Local variable 'feature' could be declared final 133
Local variable 'ratioFactor' could be declared final 142
Local variable 'fm' could be declared final 144
Avoid using if statements without curly braces 173
Avoid using if statements without curly braces 174
Avoid using if statements without curly braces 175
Avoid using if statements without curly braces 176
Parameter 'blockedNodes' is not assigned and could be declared final 205
Parameter 'startNodeId' is not assigned and could be declared final 205
Parameter 'sentence' is not assigned and could be declared final 205
Local variable 'dependencies' could be declared final 206
Local variable 'dependenciesList' could be declared final 207
The method evaluateSentence() has an NCSS line count of 131 211431
The method 'evaluateSentence' has a Standard Cyclomatic Complexity of 35. 211431
Parameter 'dependenciesList' is not assigned and could be declared final 211
The method evaluateSentence() has an NPath complexity of 36619128 211431
Parameter 'startNodeId' is not assigned and could be declared final 211
The method 'evaluateSentence' has a Cyclomatic Complexity of 41. 211431
Avoid really long methods. 211431
The method 'evaluateSentence' has a Modified Cyclomatic Complexity of 35. 211431
Parameter 'blockedNodes' is not assigned and could be declared final 211
Local variable 'tokensToPolarize' could be declared final 212
Avoid declaring a variable if it is unreferenced before a possible exit point. 213
Local variable 'tokensToBlock' could be declared final 218
Local variable 'tokensToAnalyze' could be declared final 219
Local variable 'bn' could be declared final 221
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 226
Local variable 'currentNode' could be declared final 227
String.indexOf(char) is faster than String.indexOf(String). 229
Local variable 'rel' could be declared final 229
String.indexOf(char) is faster than String.indexOf(String). 229
Local variable 'gov' could be declared final 230
Local variable 'dep' could be declared final 231
Local variable 'blockFlag' could be declared final 232
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 240
Avoid instantiating new objects inside loops 242
Avoid instantiating new objects inside loops 248
Avoid instantiating new objects inside loops 261
Avoid instantiating new objects inside loops 267
Avoid instantiating String objects; this is usually unnecessary. 279
Local variable 'token' could be declared final 281
Avoid instantiating new objects inside loops 281
Local variable 'sentenceTokens' could be declared final 294
Local variable 'stemmedTokens' could be declared final 295
Local variable 'eT' could be declared final 297
Local variable 'lexToken' could be declared final 301
Avoid instantiating new objects inside loops 306
Local variable 'stemmer' could be declared final 308
Avoid instantiating new objects inside loops 308
Avoid instantiating new objects inside loops 315
Local variable 'it' could be declared final 318
Local variable 'currentConcept' could be declared final 320
Local variable 'cts' could be declared final 321
Local variable 'ct' could be declared final 326
Avoid using if statements without curly braces 339
Avoid using if statements without curly braces 340
Local variable 'notToken' could be declared final 344
Avoid empty if statements 345347
Useless parentheses. 351
Useless parentheses. 353
Useless parentheses. 353
Useless parentheses. 353
Local variable 'feature' could be declared final 366
Local variable 'ratioFactor' could be declared final 375
Local variable 'fm' could be declared final 377
Avoid using if statements without curly braces 406
Avoid using if statements without curly braces 407
Avoid using if statements without curly braces 408
Avoid using if statements without curly braces 409

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/FileManager.java

Violation Line
Private field 'fileName' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'currentFile' could be made final; it is only initialized in the declaration or constructor. 25
Private field 'absolutePath' could be made final; it is only initialized in the declaration or constructor. 26
Perhaps 'rowsList' could be replaced by a local variable. 29
Private field 'mode' could be made final; it is only initialized in the declaration or constructor. 38
Parameter 'm' is not assigned and could be declared final 46
Parameter 'fileAbsolutePath' is not assigned and could be declared final 46
Local variable 'iS' could be declared final 55
Local variable 'reader' could be declared final 59
Parameter 'dataStream' is not assigned and could be declared final 79
Avoid instantiating String objects; this is usually unnecessary. 137
Parameter 'rowDelimiter' is not assigned and could be declared final 147
Avoid instantiating String objects; this is usually unnecessary. 148
Document empty method body 160162
Parameter 'splitter' is not assigned and could be declared final 165
Local variable 'splittedData' could be declared final 167
Local variable 'content' could be declared final 170
Local variable 'dbFactory' could be declared final 181
Local variable 'dBuilder' could be declared final 182
Local variable 'model' could be declared final 193
Avoid declaring a variable if it is unreferenced before a possible exit point. 193
Local variable 'in' could be declared final 196

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/MaxEntTagger.java

Violation Line
Perhaps 'prp' could be replaced by a local variable. 17
Perhaps 'modelName' could be replaced by a local variable. 18
Parameter 'prp' is not assigned and could be declared final 21
Parameter 'fn' is not assigned and could be declared final 33
Avoid instantiating String objects; this is usually unnecessary. 34
Local variable 'sentences' could be declared final 36
Local variable 'sentence' could be declared final 37
Local variable 'tSentence' could be declared final 38

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DatasetInstanceParser.java

Violation Line
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 16
Private field 'wnl' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'db' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'met' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'wnl' is not assigned and could be declared final 22
Parameter 'prp' is not assigned and could be declared final 22
Parameter 'id' is not assigned and could be declared final 38
Parameter 'originalText' is not assigned and could be declared final 38
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 93
Local variable 'ssr' could be declared final 101
Parameter 'datasetName' is not assigned and could be declared final 125
Parameter 'filename' is not assigned and could be declared final 125
Local variable 'fm' could be declared final 126
Local variable 'contents' could be declared final 128
Local variable 'rdfOut' could be declared final 130
Do not add empty strings 149

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DependenciesBuilder.java

Violation Line
Perhaps 'tlp' could be replaced by a local variable. 18
Document empty constructor 2324
Parameter 'text' is not assigned and could be declared final 43
Local variable 'reader' could be declared final 47
Local variable 'dp' could be declared final 48
Avoid unused local variables such as 'dp'. 48
Local variable 'sentence' could be declared final 49
Local variable 'parsedTree' could be declared final 53
Local variable 'gs' could be declared final 56
Local variable 'tdl' could be declared final 57
Avoid instantiating new objects inside loops 59
Local variable 'dt' could be declared final 59
Local variable 'td' could be declared final 60
Local variable 'dep' could be declared final 61
Local variable 'gov' could be declared final 62
Local variable 'gr' could be declared final 63
Local variable 'depString' could be declared final 64
Parameter 'texts' is not assigned and could be declared final 75
Local variable 'dtList' could be declared final 76
Local variable 'text' could be declared final 78
Local variable 'sent' could be declared final 80
Local variable 'parse' could be declared final 81
Local variable 'gs' could be declared final 82
Local variable 'tdl' could be declared final 83
Local variable 'curDT' could be declared final 84
Avoid instantiating new objects inside loops 84
Local variable 'td' could be declared final 85
Local variable 'dep' could be declared final 86
Local variable 'gov' could be declared final 87
Local variable 'gr' could be declared final 88
Local variable 'depString' could be declared final 89

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/DependencyTree.java

Violation Line
Private field 'dependecies' could be made final; it is only initialized in the declaration or constructor. 10
Parameter 'dep' is not assigned and could be declared final 16

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/parser/ReviewsParser.java

Violation Line
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'wnl' could be made final; it is only initialized in the declaration or constructor. 20
Parameter 'prp' is not assigned and could be declared final 22
Parameter 'wnl' is not assigned and could be declared final 22
Return an empty array rather than null. 3237
Parameter 'datasetName' is not assigned and could be declared final 32
Avoid unused local variables such as 'positiveReviews'. 33
Local variable 'positiveReviews' could be declared final 33
Avoid declaring a variable if it is unreferenced before a possible exit point. 33
Local variable 'negativeReviews' could be declared final 34
Avoid unused local variables such as 'negativeReviews'. 34
Avoid declaring a variable if it is unreferenced before a possible exit point. 34
Avoid declaring a variable if it is unreferenced before a possible exit point. 35
Avoid unused local variables such as 'allReviews'. 35
Local variable 'allReviews' could be declared final 35
Avoid really long methods. 44169
Parameter 'filename' is not assigned and could be declared final 44
Local variable 'wnlex' could be declared final 46
Local variable 'ssrList' could be declared final 47
Avoid declaring a variable if it is unreferenced before a possible exit point. 48
Local variable 'treeParser' could be declared final 48
Avoid unused local variables such as 'treeParser'. 48
Local variable 'db' could be declared final 49
Local variable 'met' could be declared final 50
Local variable 'fm' could be declared final 52
Local variable 'content' could be declared final 53
Avoid declaring a variable if it is unreferenced before a possible exit point. 55
Avoid unused local variables such as 'task'. 55
Local variable 'task' could be declared final 55
Local variable 'iter' could be declared final 59
Avoid declaring a variable if it is unreferenced before a possible exit point. 62
Local variable 'stmtID' could be declared final 62
Avoid unused local variables such as 'stmtID'. 62
Local variable 'stmt' could be declared final 66
Ensure that resources like this Statement object are closed after use 66
Local variable 'subject' could be declared final 67
Local variable 'predicate' could be declared final 68
Avoid unused local variables such as 'predicate'. 68
Local variable 'object' could be declared final 69
Local variable 'endText' could be declared final 72
Local variable 'currentReviewOriginal' could be declared final 73
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 125
Avoid instantiating new objects inside loops 144
Local variable 'ssr' could be declared final 144
Parameter 'filename' is not assigned and could be declared final 177
Parameter 'datasetName' is not assigned and could be declared final 177
Local variable 'fm' could be declared final 178
Local variable 'contents' could be declared final 180
Local variable 'rdfOut' could be declared final 182
Do not add empty strings 201

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetLexicalizer.java

Violation Line
The class 'WordNetLexicalizer' has a Cyclomatic Complexity of 6 (Highest = 20). 5390
The class 'WordNetLexicalizer' has a Modified Cyclomatic Complexity of 5 (Highest = 17). 5390
The class 'WordNetLexicalizer' has a Standard Cyclomatic Complexity of 5 (Highest = 17). 5390
Too many fields 5390
Private field 'SufxNoun' could be made final; it is only initialized in the declaration or constructor. 8
Private field 'EndNoun' could be made final; it is only initialized in the declaration or constructor. 9
Private field 'SufxVerb' could be made final; it is only initialized in the declaration or constructor. 10
Private field 'EndVerb' could be made final; it is only initialized in the declaration or constructor. 11
Private field 'SufxAdj' could be made final; it is only initialized in the declaration or constructor. 12
Private field 'EndAdj' could be made final; it is only initialized in the declaration or constructor. 13
Perhaps 'S' could be replaced by a local variable. 14
Private field 'allNouns' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'allVerbs' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'allAdjs' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'allAdvs' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'nounExceptions' could be made final; it is only initialized in the declaration or constructor. 21
Private field 'verbExceptions' could be made final; it is only initialized in the declaration or constructor. 22
Private field 'adjExceptions' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'advExceptions' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'HNoun' could be made final; it is only initialized in the declaration or constructor. 26
Private field 'HVerb' could be made final; it is only initialized in the declaration or constructor. 27
Private field 'HAdj' could be made final; it is only initialized in the declaration or constructor. 28
Parameter 'allTerms' is not assigned and could be declared final 35
The user-supplied array 'exceptions' is stored directly. 35
Consider using varargs for methods or constructors which take an array the last parameter. 35
The user-supplied array 'exceptions' is stored directly. 35
The user-supplied array 'exceptions' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'exceptions' is stored directly. 35
Parameter 'exceptions' is not assigned and could be declared final 35
The user-supplied array 'allTerms' is stored directly. 35
The user-supplied array 'allTerms' is stored directly. 35
Parameter 't' is not assigned and could be declared final 62
Parameter 'word' is not assigned and could be declared final 67
Parameter 'posTag' is not assigned and could be declared final 80
Parameter 'word' is not assigned and could be declared final 80
Parameter 'noun' is not assigned and could be declared final 114
Avoid declaring a variable if it is unreferenced before a possible exit point. 116
Avoid declaring a variable if it is unreferenced before a possible exit point. 117
These nested if statements could be combined 127134
Avoid instantiating new objects inside loops 128
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 129
Parameter 'verb' is not assigned and could be declared final 146
Avoid declaring a variable if it is unreferenced before a possible exit point. 148
Avoid declaring a variable if it is unreferenced before a possible exit point. 149
These nested if statements could be combined 159166
Avoid instantiating new objects inside loops 160
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 161
Parameter 'adj' is not assigned and could be declared final 179
Avoid declaring a variable if it is unreferenced before a possible exit point. 181
Avoid declaring a variable if it is unreferenced before a possible exit point. 182
These nested if statements could be combined 192199
Avoid instantiating new objects inside loops 193
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 194
Parameter 'adv' is not assigned and could be declared final 211
Avoid declaring a variable if it is unreferenced before a possible exit point. 213
Avoid declaring a variable if it is unreferenced before a possible exit point. 214
These nested if statements could be combined 224231
Avoid instantiating new objects inside loops 225
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 226
The method 'getLexicalization' has a Modified Cyclomatic Complexity of 17. 244351
Avoid really long methods. 244351
The method getLexicalization() has an NPath complexity of 344 244351
The method 'getLexicalization' has a Cyclomatic Complexity of 20. 244351
The method 'getLexicalization' has a Standard Cyclomatic Complexity of 17. 244351
Avoid instantiating String objects; this is usually unnecessary. 247
These nested if statements could be combined 262277
Avoid instantiating new objects inside loops 266268
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 270
These nested if statements could be combined 291309
Avoid instantiating new objects inside loops 296298
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 301
These nested if statements could be combined 323342
Avoid instantiating new objects inside loops 329331
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 334
Avoid empty catch blocks 348
Parameter 'CurrentString' is not assigned and could be declared final 355
Local variable 'Words' could be declared final 358
Avoid using if statements without curly braces 374
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 376
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 377
Avoid using if statements without curly braces 377
Avoid using if statements without curly braces 378
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 378
Avoid using if...else statements without curly braces 381

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetLoader.java

Violation Line
The class 'WordNetLoader' has a Standard Cyclomatic Complexity of 2 (Highest = 15). 12365
Too many fields 12365
The class 'WordNetLoader' has a Cyclomatic Complexity of 2 (Highest = 15). 12365
The class 'WordNetLoader' has a Modified Cyclomatic Complexity of 2 (Highest = 15). 12365
Private field 'wordSynsets' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'synsetWords' could be made final; it is only initialized in the declaration or constructor. 16
Private field 'allowedRelations' could be made final; it is only initialized in the declaration or constructor. 17
Private field 'weightsRelations' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'synsetRelations' could be made final; it is only initialized in the declaration or constructor. 19
Parameter 'prp' is not assigned and could be declared final 42
Local variable 'fm' could be declared final 90
Local variable 'relations' could be declared final 91
Local variable 'it' could be declared final 92
Local variable 'currentRelation' could be declared final 94
Local variable 'tokens' could be declared final 95
The method 'loadWordNetRawData' has a Cyclomatic Complexity of 15. 105220
Avoid really long methods. 105220
The method loadWordNetRawData() has an NPath complexity of 1081 105220
The method 'loadWordNetRawData' has a Standard Cyclomatic Complexity of 15. 105220
The method 'loadWordNetRawData' has a Modified Cyclomatic Complexity of 15. 105220
Local variable 'row' could be declared final 116
Local variable 'currentWord' could be declared final 121
Local variable 'currentSynset' could be declared final 122
Avoid instantiating new objects inside loops 127
Avoid instantiating new objects inside loops 135
Local variable 'row' could be declared final 147
Local variable 'currentSynSource' could be declared final 152
Local variable 'currentSynTarget' could be declared final 153
Local variable 'currentRelation' could be declared final 154
Avoid instantiating new objects inside loops 158
Local variable 'wnr' could be declared final 160161
Avoid instantiating new objects inside loops 160161
Avoid instantiating new objects inside loops 177
Local variable 'row' could be declared final 179
Local variable 'data' could be declared final 183
Avoid instantiating new objects inside loops 184
Avoid instantiating new objects inside loops 198
Local variable 'row' could be declared final 200
Local variable 'curExc' could be declared final 201
Local variable 'stopwordsFile' could be declared final 210
Local variable 'row' could be declared final 213
Parameter 'g' is not assigned and could be declared final 229
Local variable 'synsets' could be declared final 236
Local variable 'currentSynset' could be declared final 238
Local variable 'synRelations' could be declared final 239
Local variable 'rel' could be declared final 240
Local variable 'targetSynset' could be declared final 241
Local variable 'weight' could be declared final 242
Returning 'allTerms' may expose an internal array. 257
Parameter 'allTerms' is not assigned and could be declared final 261
The user-supplied array 'allTerms' is stored directly. 261
Consider using varargs for methods or constructors which take an array the last parameter. 261
Parameter 'allNouns' is not assigned and could be declared final 271
Parameter 'allVerbs' is not assigned and could be declared final 281
Parameter 'allAdjs' is not assigned and could be declared final 291
Parameter 'allAdvs' is not assigned and could be declared final 301
Returning 'allExceptions' may expose an internal array. 307
The user-supplied array 'allExceptions' is stored directly. 311
Consider using varargs for methods or constructors which take an array the last parameter. 311
Parameter 'allExceptions' is not assigned and could be declared final 311
Parameter 'nounExceptions' is not assigned and could be declared final 321
Parameter 'verbExceptions' is not assigned and could be declared final 331
Parameter 'adjExceptions' is not assigned and could be declared final 341
Parameter 'advExceptions' is not assigned and could be declared final 351
Parameter 'stopwords' is not assigned and could be declared final 361

pikes-raid - eu/fbk/dkm/pikes/raid/mdfsa/wordnet/WordNetRelation.java

Violation Line
Parameter 't' is not assigned and could be declared final 9
Parameter 'w' is not assigned and could be declared final 9
Parameter 'r' is not assigned and could be declared final 9
Parameter 'relationType' is not assigned and could be declared final 19
Parameter 'targetSynset' is not assigned and could be declared final 27
Parameter 'relationWeight' is not assigned and could be declared final 35

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/LinkLabeller.java

Violation Line
Possible God class (WMC=92, ATFD=77, TCC=0.041666666666666664) 1519
The class 'LinkLabeller' has a Cyclomatic Complexity of 5 (Highest = 22). 44519
The class 'LinkLabeller' has a Standard Cyclomatic Complexity of 5 (Highest = 16). 44519
The class 'LinkLabeller' has a Modified Cyclomatic Complexity of 5 (Highest = 16). 44519
The method 'candidates' has a Modified Cyclomatic Complexity of 14. 139197
The method 'candidates' has a Standard Cyclomatic Complexity of 14. 139197
The method candidates() has an NPath complexity of 3800 139197
The method 'candidates' has a Cyclomatic Complexity of 22. 139197
This call to Collection.toArray() may be optimizable 180
Avoid really long methods. 212329
The method features() has an NPath complexity of 668250 212329
The method 'features' has a Standard Cyclomatic Complexity of 16. 212329
The method 'features' has a Cyclomatic Complexity of 18. 212329
The method 'features' has a Modified Cyclomatic Complexity of 16. 212329
Avoid instantiating new objects inside loops 314
Avoid appending characters as strings in StringBuffer.append. 320
Avoid instantiation through private constructors from outside of the constructors class. 421
Avoid instantiating new objects inside loops 493
Avoid instantiation through private constructors from outside of the constructors class. 514

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/PipelineExtractor.java

Violation Line
Possible God class (WMC=51, ATFD=33, TCC=0.0) 1299
The class 'PipelineExtractor' has a Modified Cyclomatic Complexity of 5 (Highest = 21). 37299
The class 'PipelineExtractor' has a Cyclomatic Complexity of 6 (Highest = 25). 37299
The class 'PipelineExtractor' has a Standard Cyclomatic Complexity of 5 (Highest = 21). 37299
Useless parentheses. 76
Useless parentheses. 77
Avoid unused method parameters such as 'sentence'. 202
Avoid unused method parameters such as 'document'. 202
The method 'findArguments' has a Standard Cyclomatic Complexity of 21. 207292
The method 'findArguments' has a Modified Cyclomatic Complexity of 21. 207292
Avoid unused method parameters such as 'sentence'. 207
The method findArguments() has an NPath complexity of 167400 207292
The method 'findArguments' has a Cyclomatic Complexity of 25. 207292
Avoid unused method parameters such as 'span'. 294

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/PipelineTrainer.java

Violation Line
The class 'PipelineTrainer' has a Cyclomatic Complexity of 5 (Highest = 10). 30220
Use block level rather than method level synchronization 97101
Consider using varargs for methods or constructors which take an array the last parameter. 98
Use block level rather than method level synchronization 104147
The method 'doTrain' has a Cyclomatic Complexity of 10. 104147
Avoid unused method parameters such as 'sentence'. 149
Avoid unused method parameters such as 'document'. 149
Avoid unused method parameters such as 'opinions'. 150
Consider using varargs for methods or constructors which take an array the last parameter. 150
Consider using varargs for methods or constructors which take an array the last parameter. 155
Avoid unused method parameters such as 'sentence'. 194

pikes-raid - eu/fbk/dkm/pikes/raid/pipeline/SpanLabeller.java

Violation Line
Possible God class (WMC=83, ATFD=75, TCC=0.0) 1549
The class 'SpanLabeller' has a Cyclomatic Complexity of 4 (Highest = 14). 40549
The class 'SpanLabeller' has a Standard Cyclomatic Complexity of 4 (Highest = 13). 40549
The class 'SpanLabeller' has a Modified Cyclomatic Complexity of 4 (Highest = 13). 40549
Private field 'predictor' could be made final; it is only initialized in the declaration or constructor. 46
The method 'expand' has a Cyclomatic Complexity of 14. 64111
Deeply nested if..then statements are hard to read 94101
Position literals first in String comparisons 96
The method 'expandRecursive' has a Cyclomatic Complexity of 13. 136195
The method 'expandRecursive' has a Modified Cyclomatic Complexity of 13. 136195
The method 'expandRecursive' has a Standard Cyclomatic Complexity of 13. 136195
The method features() has an NPath complexity of 320 215360
Avoid really long methods. 215360
Prefer StringBuffer over += for concatenating strings 233
Prefer StringBuffer over += for concatenating strings 234
Avoid empty if statements 336338
Avoid empty if statements 341347
Avoid using a branching statement as the last in a loop. 406
Avoid instantiation through private constructors from outside of the constructors class. 446
Avoid instantiating new objects inside loops 508
Avoid instantiating new objects inside loops 511
Avoid instantiation through private constructors from outside of the constructors class. 538

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/CreateTraining.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 2667
Consider using varargs for methods or constructors which take an array the last parameter. 30
Parameter 'args' is not assigned and could be declared final 30
Local variable 'folder' could be declared final 32
Local variable 'wordnetPath' could be declared final 33
Local variable 'folderFile' could be declared final 39
Local variable 'labels' could be declared final 45
Local variable 'documents' could be declared final 5657

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/SBRSExtractor.java

Violation Line
Parameter 'components' is not assigned and could be declared final 18
Parameter 'document' is not assigned and could be declared final 18
Parameter 'sentenceID' is not assigned and could be declared final 18
Parameter 'document' is not assigned and could be declared final 23
Parameter 'opinion' is not assigned and could be declared final 23
Parameter 'sentenceID' is not assigned and could be declared final 23
Parameter 'components' is not assigned and could be declared final 23

pikes-raid - eu/fbk/dkm/pikes/raid/sbrs/SBRSTrainer.java

Violation Line
Perhaps 'jointSpan' could be replaced by a local variable. 40
Avoid unused private fields such as 'filter'. 41
Perhaps 'filter' could be replaced by a local variable. 41
Parameter 'sentence' is not assigned and could be declared final 68
Parameter 'document' is not assigned and could be declared final 68
Consider using varargs for methods or constructors which take an array the last parameter. 68
Parameter 'opinions' is not assigned and could be declared final 68
Consider using varargs for methods or constructors which take an array the last parameter. 79
Avoid unused method parameters such as 'sentence'. 118

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DatasetInstance.java

Violation Line
Document empty constructor 25
Parameter 'features' is not assigned and could be declared final 27
Parameter 'polarity' is not assigned and could be declared final 27
Parameter 'id' is not assigned and could be declared final 32
Parameter 'polarity' is not assigned and could be declared final 32
Parameter 'features' is not assigned and could be declared final 32
Parameter 'polarity' is not assigned and could be declared final 43
Parameter 'instanceId' is not assigned and could be declared final 55
Parameter 'inferredPolarity' is not assigned and could be declared final 63
Parameter 'domain' is not assigned and could be declared final 71
Parameter 'inferredDomain' is not assigned and could be declared final 79
Parameter 'instanceOriginalText' is not assigned and could be declared final 87
Parameter 'ssr' is not assigned and could be declared final 95

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DomainEdge.java

Violation Line
Parameter 'creator' is not assigned and could be declared final 19
Parameter 'nodeId' is not assigned and could be declared final 19
Parameter 'weight' is not assigned and could be declared final 19
Parameter 'nodeId' is not assigned and could be declared final 29
Parameter 'weight' is not assigned and could be declared final 37
Parameter 'creator' is not assigned and could be declared final 45

pikes-raid - eu/fbk/shell/mdfsa/data/structures/DomainGraph.java

Violation Line
Possible God class (WMC=114, ATFD=70, TCC=0.010526315789473684) 1946
Too many fields 11946
The class 'DomainGraph' has a Modified Cyclomatic Complexity of 4 (Highest = 19). 11946
The class 'DomainGraph' has a Cyclomatic Complexity of 5 (Highest = 22). 11946
The class 'DomainGraph' has a Standard Cyclomatic Complexity of 4 (Highest = 19). 11946
Perhaps 'id' could be replaced by a local variable. 13
Avoid unused private fields such as 'id'. 13
Parameter 'prp' is not assigned and could be declared final 35
Parameter 'd' is not assigned and could be declared final 40
Parameter 'a' is not assigned and could be declared final 40
Parameter 'prp' is not assigned and could be declared final 40
Parameter 'p' is not assigned and could be declared final 40
Parameter 'c' is not assigned and could be declared final 40
Parameter 'id' is not assigned and could be declared final 40
Parameter 'g' is not assigned and could be declared final 40
Parameter 'instances' is not assigned and could be declared final 66
Local variable 'di' could be declared final 72
Local variable 'features' could be declared final 73
Local variable 'polarity' could be declared final 74
Local variable 'currentFeature' could be declared final 76
Local variable 'featureIds' could be declared final 78
Local variable 'featureId' could be declared final 80
Avoid instantiating new objects inside loops 83
Avoid instantiating new objects inside loops 94
Local variable 'featureId' could be declared final 110
Local variable 'startPolarity' could be declared final 111
Local variable 'fm' could be declared final 114
Avoid instantiating new objects inside loops 114
Parameter 'fm' is not assigned and could be declared final 127
Parameter 'concept' is not assigned and could be declared final 127
Local variable 'featureIds' could be declared final 132
Local variable 'featureId' could be declared final 134
Parameter 'currentDomain' is not assigned and could be declared final 155
Avoid really long methods. 155284
The method 'domainInitialization' has a Cyclomatic Complexity of 18. 155284
Parameter 'datasets' is not assigned and could be declared final 155
The method 'domainInitialization' has a Standard Cyclomatic Complexity of 17. 155284
Parameter 'allInstances' is not assigned and could be declared final 155
The method 'domainInitialization' has a Modified Cyclomatic Complexity of 17. 155284
The method domainInitialization() has an NPath complexity of 533 155284
Avoid unused local variables such as 'featuresOverlap'. 160
Local variable 'currentDataset' could be declared final 167
Local variable 'domainInstances' could be declared final 177
Local variable 'di' could be declared final 179
Local variable 'features' could be declared final 180
Local variable 'currentFeature' could be declared final 181
Local variable 'featureIds' could be declared final 183
Local variable 'featureId' could be declared final 185
Avoid instantiating new objects inside loops 192
Avoid instantiating new objects inside loops 211
Avoid instantiating new objects inside loops 218
Avoid instantiating new objects inside loops 228
Avoid instantiating new objects inside loops 235
Local variable 'featureId' could be declared final 255
Local variable 'startPolarity' could be declared final 275
Local variable 'fm' could be declared final 279
Avoid instantiating new objects inside loops 279
Avoid really long methods. 298412
The method 'polaritiesPropagation' has a Modified Cyclomatic Complexity of 19. 298412
The method polaritiesPropagation() has an NPath complexity of 10368 298412
The method 'polaritiesPropagation' has a Cyclomatic Complexity of 20. 298412
The method 'polaritiesPropagation' has a Standard Cyclomatic Complexity of 19. 298412
Avoid unused local variables such as 'positive'. 302
Avoid unused local variables such as 'negative'. 303
Avoid unused local variables such as 'neutral'. 304
Local variable 'featureId' could be declared final 305
Local variable 'currentPolarity' could be declared final 306
Local variable 'threadNumber' could be declared final 320
Avoid instantiating new objects inside loops 323
Avoid instantiating new objects inside loops 326
Local variable 'featureId' could be declared final 350
Local variable 'currentPolarity' could be declared final 351
Local variable 'featureId' could be declared final 367
Local variable 'conceptConvergenceHistory' could be declared final 373
Local variable 'value' could be declared final 380
Local variable 'value' could be declared final 386
Avoid instantiating new objects inside loops 409
The method 'polarityTest' has a Cyclomatic Complexity of 22. 421494
Parameter 'instances' is not assigned and could be declared final 421
Local variable 'deadzone' could be declared final 425
Local variable 'di' could be declared final 431
Local variable 'features' could be declared final 432
Local variable 'testPolarity' could be declared final 433
Local variable 'currentFeature' could be declared final 441
Local variable 'featureIds' could be declared final 443
Local variable 'featureId' could be declared final 445
Local variable 'fm' could be declared final 447
Local variable 'validationRestrictionFlag' could be declared final 466
Useless parentheses. 468
Useless parentheses. 468
Useless parentheses. 468
Useless parentheses. 468
Useless parentheses. 469
Useless parentheses. 469
Avoid empty if statements 469471
Useless parentheses. 471
Useless parentheses. 472
Local variable 'fmeasure' could be declared final 483
Parameter 'instances' is not assigned and could be declared final 503
Local variable 'results' could be declared final 505
Local variable 'deadzone' could be declared final 506
Avoid declaring a variable if it is unreferenced before a possible exit point. 506
Avoid unused local variables such as 'deadzone'. 506
Avoid declaring a variable if it is unreferenced before a possible exit point. 508
Local variable 'judged' could be declared final 508
Avoid unused local variables such as 'judged'. 508
Avoid declaring a variable if it is unreferenced before a possible exit point. 509
Avoid unused local variables such as 'precision'. 509
Local variable 'precision' could be declared final 509
Avoid declaring a variable if it is unreferenced before a possible exit point. 510
Local variable 'recall' could be declared final 510
Avoid unused local variables such as 'recall'. 510
Local variable 'di' could be declared final 512
Local variable 'features' could be declared final 513
Avoid unused local variables such as 'testPolarity'. 514
Local variable 'testPolarity' could be declared final 514
Local variable 'currentFeature' could be declared final 522
Local variable 'featureIds' could be declared final 524
Local variable 'featureId' could be declared final 526
Local variable 'fm' could be declared final 528
Parameter 'graphs' is not assigned and could be declared final 557
Parameter 'features' is not assigned and could be declared final 557
Local variable 'currentFeature' could be declared final 564
Local variable 'featureIds' could be declared final 566
Local variable 'featureId' could be declared final 568
Local variable 'it' could be declared final 569
Local variable 'domainValues' could be declared final 570
Avoid instantiating new objects inside loops 570
Local variable 'currentDomain' could be declared final 572
Local variable 'domain' could be declared final 573
Local variable 'inferredValue' could be declared final 574
Local variable 'fm' could be declared final 584
Parameter 'currentFeature' is not assigned and could be declared final 611
Parameter 'g' is not assigned and could be declared final 611
Local variable 'featureIds' could be declared final 620
Local variable 'featureId' could be declared final 622
Local variable 'fm' could be declared final 624
Use block level rather than method level synchronization 656662
Parameter 'nodeId' is not assigned and could be declared final 664
Use block level rather than method level synchronization 664666
Parameter 'fm' is not assigned and could be declared final 664
Avoid unnecessary return statements 665
Use block level rather than method level synchronization 673676
Parameter 'contribution' is not assigned and could be declared final 673
Avoid unnecessary return statements 675
Parameter 'nodeId' is not assigned and could be declared final 688
Use block level rather than method level synchronization 688705
Parameter 'value' is not assigned and could be declared final 688
Avoid unnecessary return statements 704
Avoid unused local variables such as 'numberOfNodes'. 711
Local variable 'numberOfNodes' could be declared final 711
Local variable 'numberOfEdges' could be declared final 712
Avoid unused local variables such as 'numberOfEdges'. 712
Local variable 'it' could be declared final 714
Local variable 'nodeId' could be declared final 716
Local variable 'lambda' could be declared final 720
Parameter 'values' is not assigned and could be declared final 735
Avoid unused private methods such as 'getSignificativityFlag(ArrayList)'. 735
Local variable 'd' could be declared final 739
Private field 'dg' could be made final; it is only initialized in the declaration or constructor. 763
Private field 'propagationRate' could be made final; it is only initialized in the declaration or constructor. 764
Private field 'nodes' could be made final; it is only initialized in the declaration or constructor. 765
Private field 'threadId' could be made final; it is only initialized in the declaration or constructor. 766
Parameter 'threadId' is not assigned and could be declared final 768
Parameter 'dg' is not assigned and could be declared final 768
Local variable 'des' could be declared final 798
Local variable 'de' could be declared final 812
Local variable 'edgeNodeId' could be declared final 813
Local variable 'currentEdgePolarity' could be declared final 815
Useless parentheses. 818
Useless parentheses. 824
Local variable 'currentNodePolarity' could be declared final 824825
Local variable 'sdg' could be declared final 846
Parameter 'modelPath' is not assigned and could be declared final 870
Parameter 'type' is not assigned and could be declared final 870
Parameter 'currentDataset' is not assigned and could be declared final 870
Local variable 'objectInputStream' could be declared final 872873
Local variable 'sdg' could be declared final 874
Parameter 'modelPath' is not assigned and could be declared final 899
Local variable 'objectInputStream' could be declared final 901
Local variable 'sdg' could be declared final 902
Parameter 'polarities' is not assigned and could be declared final 933
Parameter 'graph' is not assigned and could be declared final 943

pikes-raid - eu/fbk/shell/mdfsa/data/structures/FuzzyMembership.java

Violation Line
Parameter 'c' is not assigned and could be declared final 14
Parameter 'd' is not assigned and could be declared final 14
Parameter 'a' is not assigned and could be declared final 14
Parameter 'b' is not assigned and could be declared final 14
Parameter 'a' is not assigned and could be declared final 26
Parameter 'b' is not assigned and could be declared final 34
Parameter 'c' is not assigned and could be declared final 42
Parameter 'd' is not assigned and could be declared final 50
Parameter 'oldFlag' is not assigned and could be declared final 54
Local variable 'centroid' could be declared final 55
Local variable 'xCoeffR1' could be declared final 70
Avoid unused local variables such as 'yCoeffR1'. 71
Local variable 'yCoeffR1' could be declared final 71
Local variable 'cCoeffR1' could be declared final 72
Local variable 'xCoeffR2' could be declared final 73
Local variable 'yCoeffR2' could be declared final 74
Avoid unused local variables such as 'yCoeffR2'. 74
Local variable 'cCoeffR2' could be declared final 75
Local variable 'x' could be declared final 76
Useless parentheses. 88
Local variable 'num' could be declared final 88
Local variable 'den' could be declared final 89

pikes-raid - eu/fbk/shell/mdfsa/data/structures/Graph.java

Violation Line
Private field 'ids' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'markers' could be made final; it is only initialized in the declaration or constructor. 16
Parameter 'labels' is not assigned and could be declared final 38
Parameter 'nodes' is not assigned and could be declared final 44
Parameter 'wnWordSynsets' is not assigned and could be declared final 50
Parameter 'label' is not assigned and could be declared final 56
Local variable 'feature' could be declared final 57
Local variable 'synsets' could be declared final 66
Local variable 'currentSynset' could be declared final 68
Parameter 'source' is not assigned and could be declared final 89
Parameter 'creator' is not assigned and could be declared final 89
Parameter 'wSource' is not assigned and could be declared final 89
Parameter 'wTarget' is not assigned and could be declared final 89
Parameter 'target' is not assigned and could be declared final 89
Local variable 'de1' could be declared final 112
Local variable 'de2' could be declared final 118
Parameter 'newEdge' is not assigned and could be declared final 130
Parameter 'nodeId' is not assigned and could be declared final 130
Avoid unnecessary comparisons in boolean expressions 149
Local variable 'markers' could be declared final 164
Local variable 'currentId' could be declared final 166
Local variable 'currentMarker' could be declared final 167
Local variable 'currentLabel' could be declared final 171
Local variable 'synsets' could be declared final 175
Local variable 'currentSynset' could be declared final 178
Local variable 'synsetIdGraph' could be declared final 179
Avoid instantiating new objects inside loops 185
Local variable 'de1' could be declared final 185
Local variable 'de2' could be declared final 188
Avoid instantiating new objects inside loops 188

pikes-raid - eu/fbk/shell/mdfsa/data/structures/SentenceStructuredRepresentation.java

Violation Line
Possible God class (WMC=74, ATFD=10, TCC=0.0) 1330
The class 'SentenceStructuredRepresentation' has a Cyclomatic Complexity of 4 (Highest = 19). 14330
The class 'SentenceStructuredRepresentation' has a Standard Cyclomatic Complexity of 4 (Highest = 15). 14330
The class 'SentenceStructuredRepresentation' has a Modified Cyclomatic Complexity of 4 (Highest = 15). 14330
Perhaps 'prp' could be replaced by a local variable. 18
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 18
Avoid unused private fields such as 'prp'. 18
Avoid unused private fields such as 'stemmedString'. 23
Parameter 'prp' is not assigned and could be declared final 30
Parameter 'uri' is not assigned and could be declared final 34
Parameter 'originalText' is not assigned and could be declared final 46
Parameter 'posTaggedString' is not assigned and could be declared final 54
Parameter 'dts' is not assigned and could be declared final 62
Parameter 'parsedTree' is not assigned and could be declared final 78
Parameter 'wnlex' is not assigned and could be declared final 82
The method 'createLexicalizedRepresentation' has a Cyclomatic Complexity of 16. 82120
Local variable 'posTaggedTerms' could be declared final 85
Local variable 'tempLex' could be declared final 86
Local variable 'curTaggedTerm' could be declared final 87
String.indexOf(char) is faster than String.indexOf(String). 92
Local variable 'tag' could be declared final 93
String.indexOf(char) is faster than String.indexOf(String). 93
String.indexOf(char) is faster than String.indexOf(String). 106
Document empty method body 123125
Parameter 'wnl' is not assigned and could be declared final 131
The method extractSemanticConcepts() has an NPath complexity of 240 131190
Parameter 'wnlex' is not assigned and could be declared final 131
The method 'extractSemanticConcepts' has a Modified Cyclomatic Complexity of 14. 131190
The method 'extractSemanticConcepts' has a Standard Cyclomatic Complexity of 14. 131190
The method 'extractSemanticConcepts' has a Cyclomatic Complexity of 18. 131190
Local variable 'termsList' could be declared final 135
Local variable 'currentTerm' could be declared final 137
Local variable 'atom' could be declared final 138
Local variable 'stopFlag' could be declared final 140
Avoid using if statements without curly braces 141
Avoid unnecessary comparisons in boolean expressions 145
Prefer StringBuffer over += for concatenating strings 147
Local variable 'dt' could be declared final 164
Local variable 'dependencies' could be declared final 166
Local variable 'curDep' could be declared final 167
Local variable 'tokens' could be declared final 168
These nested if statements could be combined 170185
Local variable 'tokenOne' could be declared final 171
Local variable 'tokenTwo' could be declared final 172
Local variable 'newAspect' could be declared final 181
The method 'extractAspects' has a Standard Cyclomatic Complexity of 15. 196262
Parameter 'wnl' is not assigned and could be declared final 196
The method 'extractAspects' has a Cyclomatic Complexity of 19. 196262
The method extractAspects() has an NPath complexity of 220 196262
The method 'extractAspects' has a Modified Cyclomatic Complexity of 15. 196262
Local variable 'tempAspects' could be declared final 197
Local variable 'termsList' could be declared final 203
Local variable 'currentTerm' could be declared final 205
Local variable 'atom' could be declared final 206
Local variable 'stopFlag' could be declared final 208
Avoid using if statements without curly braces 209
Avoid unnecessary comparisons in boolean expressions 213
Prefer StringBuffer over += for concatenating strings 215
Local variable 'featureSentence' could be declared final 233
Local variable 'pt' could be declared final 234
Local variable 'curAspect' could be declared final 238
Local variable 'compoundAspect' could be declared final 239
Local variable 'cA' could be declared final 241
Local variable 'it' could be declared final 242
Local variable 'key' could be declared final 244
Local variable 'currentTree' could be declared final 245
Avoid instantiating new objects inside loops 249
Local variable 'currentFeature' could be declared final 251
Parameter 't' is not assigned and could be declared final 266
Local variable 'wanted' could be declared final 267
Local variable 'child' could be declared final 270
Avoid instantiating new objects inside loops 271
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 273
Local variable 'child' could be declared final 283
The method 'extractRelatedFeatures' has a Cyclomatic Complexity of 10. 295327
Parameter 'featureSentence' is not assigned and could be declared final 295
Parameter 't' is not assigned and could be declared final 295
Avoid reassigning parameters such as 'marker' 295
Avoid reassigning parameters such as 'marker' 295
Local variable 'child' could be declared final 312
Local variable 'temp' could be declared final 313
Avoid instantiating new objects inside loops 313
Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() 315
Local variable 'it' could be declared final 316
Local variable 'currentFeature' could be declared final 318
Avoid unused local variables such as 'currentFeature'. 318

pikes-raid - eu/fbk/shell/mdfsa/data/structures/SerializableDomainGraph.java

Violation Line
Too many fields 8180
Document empty constructor 31
Parameter 'prp' is not assigned and could be declared final 37
Parameter 'graph' is not assigned and could be declared final 45
Parameter 'polarities' is not assigned and could be declared final 53
Parameter 'conceptsConvergenceIterationsValues' is not assigned and could be declared final 61
Parameter 'startPolarities' is not assigned and could be declared final 69
Parameter 'tempInDomainStartPolarities' is not assigned and could be declared final 77
Parameter 'tempOutDomainStartPolarities' is not assigned and could be declared final 85
Parameter 'currentPolarities' is not assigned and could be declared final 93
Parameter 'tokensCounter' is not assigned and could be declared final 101
Parameter 'inDomainTokensCounter' is not assigned and could be declared final 109
Parameter 'outDomainTokensCounter' is not assigned and could be declared final 117
Parameter 'currentGraphConvergenceValue' is not assigned and could be declared final 125
Parameter 'currentAveragePolarity' is not assigned and could be declared final 133
Parameter 'iteration' is not assigned and could be declared final 141
Parameter 'propagationRate' is not assigned and could be declared final 149
Parameter 'convergenceLimit' is not assigned and could be declared final 157
Parameter 'deadzone' is not assigned and could be declared final 165
Parameter 'annealingRate' is not assigned and could be declared final 173

pikes-raid - eu/fbk/shell/mdfsa/data/structures/TreeGraphStatisticalModel.java

Violation Line
Possible God class (WMC=79, ATFD=85, TCC=0.04395604395604396) 1538
The class 'TreeGraphStatisticalModel' has a Standard Cyclomatic Complexity of 9 (Highest = 26). 11538
The class 'TreeGraphStatisticalModel' has a Cyclomatic Complexity of 10 (Highest = 28). 11538
The class 'TreeGraphStatisticalModel' has a Modified Cyclomatic Complexity of 9 (Highest = 26). 11538
Avoid unused private fields such as 'prp'. 15
Perhaps 'prp' could be replaced by a local variable. 15
Private field 'prp' could be made final; it is only initialized in the declaration or constructor. 15
Private field 'domainDependentModelsPositive' could be made final; it is only initialized in the declaration or constructor. 18
Private field 'domainDependentModelsNegative' could be made final; it is only initialized in the declaration or constructor. 19
Private field 'domainDependentModelsNeutral' could be made final; it is only initialized in the declaration or constructor. 20
Private field 'domainIndependentModelPositive' could be made final; it is only initialized in the declaration or constructor. 21
Private field 'domainIndependentModelNegative' could be made final; it is only initialized in the declaration or constructor. 22
Private field 'domainIndependentModelNeutral' could be made final; it is only initialized in the declaration or constructor. 23
Private field 'domainInstanceCounter' could be made final; it is only initialized in the declaration or constructor. 24
Private field 'domainLevels' could be made final; it is only initialized in the declaration or constructor. 25
Parameter 'p' is not assigned and could be declared final 27
Parameter 'training' is not assigned and could be declared final 44
Parameter 'test' is not assigned and could be declared final 49
The method 'buildModel' has a Standard Cyclomatic Complexity of 26. 58300
The method buildModel() has an NCSS line count of 170 58300
The method buildModel() has an NPath complexity of 393330 58300
The method 'buildModel' has a Modified Cyclomatic Complexity of 26. 58300
Avoid really long methods. 58300
The method 'buildModel' has a Cyclomatic Complexity of 26. 58300
Local variable 'di' could be declared final 60
Local variable 'domain' could be declared final 63
Local variable 'domains' could be declared final 64
Local variable 'cDomain' could be declared final 66
Avoid instantiating new objects inside loops 71
Avoid instantiating new objects inside loops 73
Avoid instantiating new objects inside loops 75
Local variable 'polarity' could be declared final 82
Local variable 'ssr' could be declared final 100
Local variable 'dts' could be declared final 101
Local variable 'dt' could be declared final 102
Local variable 'dependencies' could be declared final 104
Avoid instantiating new objects inside loops 110
Avoid instantiating new objects inside loops 117
Prefer StringBuffer over += for concatenating strings 140
String.indexOf(char) is faster than String.indexOf(String). 140
Prefer StringBuffer over += for concatenating strings 141
String.indexOf(char) is faster than String.indexOf(String). 141
Avoid instantiating new objects inside loops 158
Avoid instantiating new objects inside loops 165
Avoid instantiating new objects inside loops 178
Avoid instantiating new objects inside loops 185
Avoid instantiating new objects inside loops 198
Avoid instantiating new objects inside loops 205
Avoid instantiating new objects inside loops 215
Avoid instantiating new objects inside loops 219
Avoid instantiating new objects inside loops 226
Avoid instantiating new objects inside loops 236
Avoid instantiating new objects inside loops 240
Avoid instantiating new objects inside loops 247
Avoid instantiating new objects inside loops 257
Avoid instantiating new objects inside loops 261
Avoid instantiating new objects inside loops 268
Parameter 'fineGranedPolarity' is not assigned and could be declared final 308
The method computeResults() has an NPath complexity of 15055 308426
The method 'computeResults' has a Cyclomatic Complexity of 28. 308426
The method 'computeResults' has a Standard Cyclomatic Complexity of 22. 308426
Parameter 'flagEvaluateDomain' is not assigned and could be declared final 308
Parameter 'flagEvaluateDoubleDomain' is not assigned and could be declared final 308
The method 'computeResults' has a Modified Cyclomatic Complexity of 22. 308426
Avoid really long methods. 308426
Local variable 'positiveCounter' could be declared final 310
Local variable 'negativeCounter' could be declared final 311
Local variable 'neutralCounter' could be declared final 312
Local variable 'di' could be declared final 314
Local variable 'delta' could be declared final 324
Local variable 'domainMembership' could be declared final 358
Avoid instantiating new objects inside loops 358
Local variable 'd' could be declared final 362
Local variable 'currentDomainCounter' could be declared final 368
Avoid instantiating new objects inside loops 401
Avoid instantiating String objects; this is usually unnecessary. 401
Avoid instantiating new objects inside loops 402
Avoid instantiating String objects; this is usually unnecessary. 402
Local variable 'd' could be declared final 407
Local variable 'level' could be declared final 408
Local variable 'membership' could be declared final 409
Avoid instantiating new objects inside loops 412
Avoid instantiating String objects; this is usually unnecessary. 412
These nested if statements could be combined 416419
Avoid instantiating String objects; this is usually unnecessary. 417
Avoid instantiating new objects inside loops 417
The method computeMembershipCoefficient() has an NPath complexity of 327 431490
Parameter 'normCounter' is not assigned and could be declared final 431
Parameter 'di' is not assigned and could be declared final 431
The method 'computeMembershipCoefficient' has a Cyclomatic Complexity of 14. 431490
Parameter 'h' is not assigned and could be declared final 431
The method 'computeMembershipCoefficient' has a Standard Cyclomatic Complexity of 10. 431490
The method 'computeMembershipCoefficient' has a Modified Cyclomatic Complexity of 10. 431490
Local variable 'ssr' could be declared final 435
Local variable 'dts' could be declared final 436
Local variable 'dt' could be declared final 437
Local variable 'dependencies' could be declared final 438
Prefer StringBuffer over += for concatenating strings 441
String.indexOf(char) is faster than String.indexOf(String). 441
Prefer StringBuffer over += for concatenating strings 442
String.indexOf(char) is faster than String.indexOf(String). 442
Local variable 'governor' could be declared final 447
Local variable 'dependent' could be declared final 448
Local variable 'rdg' could be declared final 449
Avoid instantiating new objects inside loops 449
Local variable 'gd' could be declared final 450
Avoid instantiating new objects inside loops 450
Local variable 'dg' could be declared final 451
Avoid instantiating new objects inside loops 451
Local variable 'tDep' could be declared final 454
Local variable 'tG' could be declared final 455
Local variable 'tD' could be declared final 456
Local variable 'tRDG' could be declared final 457
Local variable 'tGD' could be declared final 458
Local variable 'tDG' could be declared final 459
Useless parentheses. 466467
Useless parentheses. 470471
Useless parentheses. 477478
Useless parentheses. 481482
Useless parentheses. 484
Private field 'counter' could be made final; it is only initialized in the declaration or constructor. 504
Parameter 'type' is not assigned and could be declared final 506
Parameter 'token' is not assigned and could be declared final 516
Parameter 'frequency' is not assigned and could be declared final 522
Parameter 'weight' is not assigned and could be declared final 528
Parameter 'type' is not assigned and could be declared final 534

pikes-rdf - eu/fbk/dkm/pikes/rdf/Main.java

Violation Line
The class 'Main' has a Standard Cyclomatic Complexity of 5 (Highest = 11). 24173
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 24173
The class 'Main' has a Modified Cyclomatic Complexity of 5 (Highest = 11). 24173
The class 'Main' has a Cyclomatic Complexity of 5 (Highest = 11). 24173
The method main() has an NPath complexity of 672 34111
The method 'main' has a Modified Cyclomatic Complexity of 11. 34111
The method 'main' has a Standard Cyclomatic Complexity of 11. 34111
The method 'main' has a Cyclomatic Complexity of 11. 34111
Avoid empty catch blocks 4042
This call to String.startsWith can be rewritten using String.charAt(0) 51
Position literals first in String comparisons 54
Position literals first in String comparisons 55
Position literals first in String comparisons 56
Avoid empty catch blocks 7072
Avoid appending characters as strings in StringBuffer.append. 147
New exception is thrown in catch block, original stack trace may be lost 154

pikes-rdf - eu/fbk/dkm/pikes/rdf/RDFGenerator.java

Violation Line
Possible God class (WMC=394, ATFD=429, TCC=0.0) 12027
Avoid unused imports such as 'org.eclipse.rdf4j.model.impl.ValueFactoryImpl' 47
Do not add empty strings 109
Avoid instantiation through private constructors from outside of the constructors class. 283
The class 'Runner' has a Cyclomatic Complexity of 6 (Highest = 16). 288444
The class 'Runner' has a Modified Cyclomatic Complexity of 6 (Highest = 16). 288444
The class 'Runner' has a Standard Cyclomatic Complexity of 6 (Highest = 16). 288444
The method 'run' has a Standard Cyclomatic Complexity of 16. 322443
The method 'run' has a Cyclomatic Complexity of 16. 322443
The method 'run' has a Modified Cyclomatic Complexity of 16. 322443
Avoid really long methods. 322443
The method run() has an NPath complexity of 612 322443
Avoid declaring a variable if it is unreferenced before a possible exit point. 326328
Avoid instantiating new objects inside loops 353428
The class 'Extractor' has a Modified Cyclomatic Complexity of 12 (Highest = 60). 4462006
The class 'Extractor' has a Standard Cyclomatic Complexity of 12 (Highest = 60). 4462006
The class 'Extractor' has a Cyclomatic Complexity of 15 (Highest = 74). 4462006
The user-supplied array 'sentenceIDs' is stored directly. 467
Consider using varargs for methods or constructors which take an array the last parameter. 467
Avoid appending characters as strings in StringBuffer.append. 484
The method run() has an NPath complexity of 1698693120 494720
Avoid really long methods. 494720
The method run() has an NCSS line count of 138 494720
The method 'run' has a Cyclomatic Complexity of 74. 494720
The method 'run' has a Standard Cyclomatic Complexity of 60. 494720
The method 'run' has a Modified Cyclomatic Complexity of 60. 494720
Ensure that resources like this Statement object are closed after use 716
The method 'processMetadata' has a Cyclomatic Complexity of 12. 722799
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 722799
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 722799
The method 'processTimex' has a Cyclomatic Complexity of 11. 801873
Avoid declaring a variable if it is unreferenced before a possible exit point. 811
Avoid declaring a variable if it is unreferenced before a possible exit point. 812
Position literals first in String comparisons 829
Position literals first in String comparisons 829
Position literals first in String comparisons 839
The method 'processEntity' has a Standard Cyclomatic Complexity of 16. 875973
The method 'processEntity' has a Modified Cyclomatic Complexity of 16. 875973
The method 'processEntity' has a Cyclomatic Complexity of 20. 875973
The method processEntity() has an NPath complexity of 651000 875973
Avoid declaring a variable if it is unreferenced before a possible exit point. 879
Prefer StringBuffer over += for concatenating strings 887
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 887
Avoid declaring a variable if it is unreferenced before a possible exit point. 889
Avoid empty catch blocks 968970
Avoid really long methods. 9751077
The method processPredicate() has an NPath complexity of 69120 9751077
The method 'processPredicate' has a Modified Cyclomatic Complexity of 18. 9751077
The method 'processPredicate' has a Cyclomatic Complexity of 19. 9751077
The method 'processPredicate' has a Standard Cyclomatic Complexity of 18. 9751077
Avoid declaring a variable if it is unreferenced before a possible exit point. 979
The method 'processModifier' has a Cyclomatic Complexity of 10. 11001145
Avoid declaring a variable if it is unreferenced before a possible exit point. 1104
Avoid declaring a variable if it is unreferenced before a possible exit point. 1105
Avoid declaring a variable if it is unreferenced before a possible exit point. 1106
Avoid really long methods. 11471254
The method processCoref() has an NPath complexity of 8512 11471254
The method 'processCoref' has a Modified Cyclomatic Complexity of 18. 11471254
The method 'processCoref' has a Standard Cyclomatic Complexity of 18. 11471254
The method 'processCoref' has a Cyclomatic Complexity of 18. 11471254
Avoid instantiating new objects inside loops 1202
Avoid instantiating new objects inside loops 1221
Avoid really long methods. 12561385
The method processRole() has an NPath complexity of 10080000 12561385
The method 'processRole' has a Standard Cyclomatic Complexity of 24. 12561385
The method 'processRole' has a Cyclomatic Complexity of 33. 12561385
The method 'processRole' has a Modified Cyclomatic Complexity of 24. 12561385
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1298
Position literals first in String comparisons 1306
Position literals first in String comparisons 1308
Position literals first in String comparisons 1321
The method processOpinion() has an NPath complexity of 56250 13871430
The method 'emitOpinionArgument' has a Standard Cyclomatic Complexity of 11. 14321459
The method emitOpinionArgument() has an NPath complexity of 407 14321459
The method 'emitOpinionArgument' has a Modified Cyclomatic Complexity of 11. 14321459
The method 'emitOpinionArgument' has a Cyclomatic Complexity of 14. 14321459
The method emitCommonAttributes() has an NPath complexity of 576 14611510
The method 'emitCommonAttributes' has a Cyclomatic Complexity of 13. 14611510
Position literals first in String comparisons 1493
Position literals first in String comparisons 1493
The method 'emitEntityAttributes' has a Standard Cyclomatic Complexity of 18. 15121572
The method 'emitEntityAttributes' has a Modified Cyclomatic Complexity of 18. 15121572
The method emitEntityAttributes() has an NPath complexity of 200 15121572
The method 'emitEntityAttributes' has a Cyclomatic Complexity of 20. 15121572
Prefer StringBuffer over += for concatenating strings 1518
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1518
Avoid empty catch blocks 15271529
Avoid appending characters as strings in StringBuffer.append. 1599
The method emitTerm() has an NPath complexity of 1080 16621720
The method 'emitTerm' has a Cyclomatic Complexity of 11. 16621720
The method 'emitTerm' has a Modified Cyclomatic Complexity of 11. 16621720
The method 'emitTerm' has a Standard Cyclomatic Complexity of 11. 16621720
The method 'extractPath' has a Cyclomatic Complexity of 13. 17231763
The method extractPath() has an NPath complexity of 384 17231763
Position literals first in String comparisons for EqualsIgnoreCase 1756
Position literals first in String comparisons 1756
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1804
Avoid empty if statements 18391842
The method 'merge' has a Cyclomatic Complexity of 28. 18481953
The method 'merge' has a Standard Cyclomatic Complexity of 23. 18481953
The method 'merge' has a Modified Cyclomatic Complexity of 23. 18481953
Avoid really long methods. 18481953
The method merge() has an NPath complexity of 5160 18481953
Ensure that resources like this Statement object are closed after use 1859
Ensure that resources like this Statement object are closed after use 1870
Avoid empty if statements 18761878
Ensure that resources like this Statement object are closed after use 1899
Ensure that resources like this Statement object are closed after use 1909
Ensure that resources like this Statement object are closed after use 1928

pikes-rdf - eu/fbk/dkm/pikes/rdf/Renderer.java

Violation Line
Possible God class (WMC=129, ATFD=128, TCC=0.011494252873563218) 1857
The class 'Renderer' has a Standard Cyclomatic Complexity of 5 (Highest = 10). 72857
The class 'Renderer' has a Cyclomatic Complexity of 5 (Highest = 11). 72857
The class 'Renderer' has a Modified Cyclomatic Complexity of 5 (Highest = 10). 72857
The method 'loadTemplate' has a Modified Cyclomatic Complexity of 10. 113145
The method loadTemplate() has an NPath complexity of 661 113145
The method 'loadTemplate' has a Standard Cyclomatic Complexity of 10. 113145
The method 'loadTemplate' has a Cyclomatic Complexity of 10. 113145
Avoid empty catch blocks 125127
New exception is thrown in catch block, original stack trace may be lost 143
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 147
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 149
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 151
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 153
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 155
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 157
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 159
Private field 'template' could be made final; it is only initialized in the declaration or constructor. 161
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 161
Private field 'templateParameters' could be made final; it is only initialized in the declaration or constructor. 163
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 163
The constructor 'Renderer' has a Standard Cyclomatic Complexity of 10. 165200
The constructor 'Renderer' has a Cyclomatic Complexity of 10. 165200
The constructor 'Renderer' has a Modified Cyclomatic Complexity of 10. 165200
Avoid instantiation through private constructors from outside of the constructors class. 214
Avoid instantiating new objects inside loops 214
Avoid instantiation through private constructors from outside of the constructors class. 215
Avoid instantiating new objects inside loops 215
Avoid instantiation through private constructors from outside of the constructors class. 216
Avoid instantiating new objects inside loops 216
Avoid instantiation through private constructors from outside of the constructors class. 223
Avoid instantiation through private constructors from outside of the constructors class. 224
Avoid instantiation through private constructors from outside of the constructors class. 225
Avoid instantiation through private constructors from outside of the constructors class. 226
Avoid instantiation through private constructors from outside of the constructors class. 227
The method 'renderPropertiesHelper' has a Cyclomatic Complexity of 10. 288337
The method renderPropertiesHelper() has an NPath complexity of 242 288337
Ensure that resources like this Statement object are closed after use 353
The method 'renderMentionsTable' has a Cyclomatic Complexity of 11. 378430
Avoid instantiating new objects inside loops 400
Ensure that resources like this Statement object are closed after use 401
Ensure that resources like this Statement object are closed after use 416
Ensure that resources like this Statement object are closed after use 475
Avoid instantiating new objects inside loops 492493
Avoid instantiation through private constructors from outside of the constructors class. 628
The class 'Renderable' has a Modified Cyclomatic Complexity of 7 (Highest = 12). 649737
The class 'Renderable' has a Cyclomatic Complexity of 7 (Highest = 12). 649737
The class 'Renderable' has a Standard Cyclomatic Complexity of 7 (Highest = 12). 649737
The user-supplied array 'times' is stored directly. 679
The method 'call' has a Standard Cyclomatic Complexity of 12. 688735
The method 'call' has a Cyclomatic Complexity of 12. 688735
The method 'call' has a Modified Cyclomatic Complexity of 12. 688735
Avoid instantiating new objects inside loops 770771
Avoid declaring a variable if it is unreferenced before a possible exit point. 782
Prefer StringBuffer over += for concatenating strings 784
Prefer StringBuffer over += for concatenating strings 784
This call to String.startsWith can be rewritten using String.charAt(0) 784
Avoid declaring a variable if it is unreferenced before a possible exit point. 785
Avoid declaring a variable if it is unreferenced before a possible exit point. 786

pikes-rdf - eu/fbk/dkm/pikes/rdf/api/Extractor.java

Violation Line
Consider using varargs for methods or constructors which take an array the last parameter. 8
Avoid modifiers which are implied by the context 1021
Consider using varargs for methods or constructors which take an array the last parameter. 14

pikes-rdf - eu/fbk/dkm/pikes/rdf/api/Mapper.java

Violation Line
Avoid modifiers which are implied by the context 1829
Avoid modifiers which are implied by the context 3144

pikes-rdf - eu/fbk/dkm/pikes/rdf/naf/NAFExtractor.java

Violation Line
Possible God class (WMC=202, ATFD=300, TCC=0.009523809523809525) 11357
Local variable 'doc' could be declared final 52
Local variable 'IRI' could be declared final 53
Consider using varargs for methods or constructors which take an array the last parameter. 69
Local variable 'doc' could be declared final 70
Local variable 'IRI' could be declared final 71
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 78
Avoid unused private fields such as 'MODIFIER_REGEX'. 78
Do not add empty strings 81
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 8183
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 8899
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 101124
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 126
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 127
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 128
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 129
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 130
Avoid unused private fields such as 'DEFAULT_OLIA_UD_POS'. 133
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 133
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 134
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 136
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 138
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 140
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 142
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 144
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 146
The class 'Extraction' has a Cyclomatic Complexity of 7 (Highest = 20). 1601244
The class 'Extraction' has a Standard Cyclomatic Complexity of 6 (Highest = 20). 1601244
The class 'Extraction' has a Modified Cyclomatic Complexity of 6 (Highest = 20). 1601244
Parameter 'terms' is not assigned and could be declared final 188
Local variable 'mentions' could be declared final 192
Local variable 'm' could be declared final 193
Avoid using if statements without curly braces 195196
Local variable 'mentions' could be declared final 207
Local variable 'm' could be declared final 209
Avoid using if statements without curly braces 211212
Avoid using if...else statements without curly braces 222
Avoid using if...else statements without curly braces 224
Avoid using if...else statements without curly braces 233
Avoid using if...else statements without curly braces 235
The user-supplied array 'sentenceIDs' is stored directly. 240
Consider using varargs for methods or constructors which take an array the last parameter. 240
Avoid appending characters as strings in StringBuffer.append. 250
The method 'processMetadata' has a Standard Cyclomatic Complexity of 12. 298376
The method 'processMetadata' has a Cyclomatic Complexity of 12. 298376
The method 'processMetadata' has a Modified Cyclomatic Complexity of 12. 298376
The method 'processTimex' has a Cyclomatic Complexity of 11. 396479
The method 'processTimex' has a Standard Cyclomatic Complexity of 10. 396479
The method 'processTimex' has a Modified Cyclomatic Complexity of 10. 396479
Avoid declaring a variable if it is unreferenced before a possible exit point. 406
Avoid unused local variables such as 'label'. 406
Avoid using if...else statements without curly braces 420
Local variable 'ann' could be declared final 426
Position literals first in String comparisons 432
Position literals first in String comparisons 432
Position literals first in String comparisons 433
Avoid using if...else statements without curly braces 433
Avoid using if...else statements without curly braces 434
Position literals first in String comparisons 446
The method processEntity() has an NPath complexity of 16800 500615
The method 'processEntity' has a Standard Cyclomatic Complexity of 16. 500615
Avoid really long methods. 500615
The method 'processEntity' has a Modified Cyclomatic Complexity of 16. 500615
The method 'processEntity' has a Cyclomatic Complexity of 20. 500615
Avoid declaring a variable if it is unreferenced before a possible exit point. 504
Prefer StringBuffer over += for concatenating strings 512
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 512
Avoid declaring a variable if it is unreferenced before a possible exit point. 519520
Avoid using if...else statements without curly braces 541
Position literals first in String comparisons 551
Position literals first in String comparisons 551
Useless parentheses. 551
Useless parentheses. 551
Local variable 'reference' could be declared final 554
Local variable 'ann' could be declared final 557
Avoid instantiating new objects inside loops 557
Avoid using if statements without curly braces 563
Useless parentheses. 573
Useless parentheses. 573
Local variable 'ann' could be declared final 576
Local variable 'ann' could be declared final 598
Avoid instantiating new objects inside loops 598
Avoid using if statements without curly braces 604
Useless parentheses. 613
Useless parentheses. 613
Avoid unused local variables such as 'label'. 638
Avoid using if...else statements without curly braces 661
Local variable 'ann' could be declared final 683
Avoid instantiating new objects inside loops 683
Avoid really long methods. 699842
The method processCoordinations() has an NPath complexity of 7238 699842
The method 'processCoordinations' has a Modified Cyclomatic Complexity of 20. 699842
The method 'processCoordinations' has a Cyclomatic Complexity of 20. 699842
The method 'processCoordinations' has a Standard Cyclomatic Complexity of 20. 699842
Local variable 'sentenceMentions' could be declared final 702
Local variable 'coordinatedMentions' could be declared final 704
Local variable 'headID' could be declared final 708
Avoid using if...else statements without curly braces 718
Avoid using if...else statements without curly braces 720
Local variable 'coordinatedTerms' could be declared final 725726
Avoid using if...else statements without curly braces 739
Avoid using if...else statements without curly braces 741
Local variable 'sentenceID' could be declared final 753
Local variable 'sentMen' could be declared final 757
Local variable 'mentionsToKeep' could be declared final 758
Local variable 'A' could be declared final 760
Avoid using if statements without curly braces 762
Avoid using if statements without curly braces 763
Local variable 'B' could be declared final 765
Avoid using if statements without curly braces 766
Avoid using if statements without curly braces 768
Avoid using if statements without curly braces 775
Avoid unused local variables such as 'counter'. 779
Local variable 'men' could be declared final 780
Local variable 'terms' could be declared final 785
Local variable 'mentionsIRI' could be declared final 786
Local variable 'coordinatedIRI' could be declared final 787
Local variable 'depMen' could be declared final 789
Avoid instantiating new objects inside loops 797
Avoid instantiating new objects inside loops 808
Avoid instantiating new objects inside loops 813
Avoid instantiating new objects inside loops 821
Avoid instantiating new objects inside loops 826
Avoid using for statements without curly braces 834836
Local variable 'conjunctIRI' could be declared final 834
Local variable 'conjunctMentionIRI' could be declared final 838
Avoid using for statements without curly braces 838839
Parameter 'corefID' is not assigned and could be declared final 868
Local variable 'correspondingMention' could be declared final 881
Avoid declaring a variable if it is unreferenced before a possible exit point. 944
Local variable 'correspondingMention' could be declared final 947
Avoid using if statements without curly braces 948
Avoid instantiating new objects inside loops 980
Local variable 'ann' could be declared final 980
Avoid appending characters as strings in StringBuffer.append. 1027
Avoid using if...else statements without curly braces 1053
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1110
Avoid using if...else statements without curly braces 1115
The method 'emitEntityAttributes' has a Modified Cyclomatic Complexity of 14. 11211166
The method 'emitEntityAttributes' has a Standard Cyclomatic Complexity of 14. 11211166
The method 'emitEntityAttributes' has a Cyclomatic Complexity of 15. 11211166
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1127
Prefer StringBuffer over += for concatenating strings 1127
Useless parentheses. 1179
Useless parentheses. 1179
Useless parentheses. 1179
Useless parentheses. 1179
Local variable 'ann' could be declared final 1182

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/ModelUtil.java

Violation Line
Avoid duplicate imports such as 'org.eclipse.rdf4j.model.IRI' 9
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 23198
The class 'ModelUtil' has a Modified Cyclomatic Complexity of 5 (Highest = 12). 23198
The class 'ModelUtil' has a Cyclomatic Complexity of 10 (Highest = 26). 23198
The class 'ModelUtil' has a Standard Cyclomatic Complexity of 5 (Highest = 12). 23198
Avoid instantiating new objects inside loops 33
The method 'getSubModel' has a Modified Cyclomatic Complexity of 12. 61113
The method 'getSubModel' has a Cyclomatic Complexity of 13. 61113
The method 'getSubModel' has a Standard Cyclomatic Complexity of 12. 61113
Ensure that resources like this Statement object are closed after use 72
Ensure that resources like this Statement object are closed after use 77
Ensure that resources like this Statement object are closed after use 97
Deeply nested if..then statements are hard to read 104106
The method 'cleanIRI' has a Cyclomatic Complexity of 26. 159196

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/OWLTime.java

Violation Line
Possible God class (WMC=180, ATFD=133, TCC=0.0026455026455026454) 1741
The class 'Interval' has a Modified Cyclomatic Complexity of 4 (Highest = 28). 48293
The class 'Interval' has a Cyclomatic Complexity of 5 (Highest = 40). 48293
The class 'Interval' has a Standard Cyclomatic Complexity of 4 (Highest = 28). 48293
The method 'parseTimex' has a Cyclomatic Complexity of 40. 82225
Avoid really long methods. 82225
The method parseTimex() has an NPath complexity of 1269675 82225
The method 'parseTimex' has a Modified Cyclomatic Complexity of 28. 82225
The method 'parseTimex' has a Standard Cyclomatic Complexity of 28. 82225
The method parseTimex() has an NCSS line count of 102 82225
Avoid declaring a variable if it is unreferenced before a possible exit point. 85
Avoid declaring a variable if it is unreferenced before a possible exit point. 86
Avoid declaring a variable if it is unreferenced before a possible exit point. 87
Avoid declaring a variable if it is unreferenced before a possible exit point. 88
Avoid declaring a variable if it is unreferenced before a possible exit point. 89
Avoid declaring a variable if it is unreferenced before a possible exit point. 90
Avoid declaring a variable if it is unreferenced before a possible exit point. 91
Avoid declaring a variable if it is unreferenced before a possible exit point. 92
Avoid declaring a variable if it is unreferenced before a possible exit point. 93
Avoid declaring a variable if it is unreferenced before a possible exit point. 94
Avoid declaring a variable if it is unreferenced before a possible exit point. 95
Avoid declaring a variable if it is unreferenced before a possible exit point. 103
Position literals first in String comparisons 109
Position literals first in String comparisons 109
Position literals first in String comparisons 110
Avoid empty if statements 110112
Position literals first in String comparisons 146
Position literals first in String comparisons 146
Position literals first in String comparisons 146
Position literals first in String comparisons 147
Position literals first in String comparisons 147
Position literals first in String comparisons 147
Avoid empty if statements 148150
Position literals first in String comparisons 148
Position literals first in String comparisons 187
Position literals first in String comparisons 190
Position literals first in String comparisons 193
Position literals first in String comparisons 196
The class 'DateTime' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 295516
The class 'DateTime' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 295516
The class 'DateTime' has a Cyclomatic Complexity of 4 (Highest = 15). 295516
The method 'create' has a Cyclomatic Complexity of 12. 325364
Avoid reassigning parameters such as 'month' 325
Avoid reassigning parameters such as 'month' 325
Avoid reassigning parameters such as 'week' 325
Avoid reassigning parameters such as 'month' 325
The method 'toRDF' has a Modified Cyclomatic Complexity of 15. 418476
The method 'toRDF' has a Standard Cyclomatic Complexity of 15. 418476
The method toRDF() has an NPath complexity of 1024 418476
The method 'toRDF' has a Cyclomatic Complexity of 15. 418476
The method 'toString' has a Cyclomatic Complexity of 14. 484514
The class 'Duration' has a Modified Cyclomatic Complexity of 3 (Highest = 15). 518739
The class 'Duration' has a Standard Cyclomatic Complexity of 3 (Highest = 15). 518739
The class 'Duration' has a Cyclomatic Complexity of 3 (Highest = 18). 518739
The method 'parseTimex' has a Standard Cyclomatic Complexity of 15. 562625
The method 'parseTimex' has a Cyclomatic Complexity of 18. 562625
The method 'parseTimex' has a Modified Cyclomatic Complexity of 15. 562625
Avoid declaring a variable if it is unreferenced before a possible exit point. 564
This call to String.startsWith can be rewritten using String.charAt(0) 579
The method toString() has an NPath complexity of 512 710737
The method 'toString' has a Cyclomatic Complexity of 11. 710737

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/ProcessorASNorm.java

Violation Line
Possible God class (WMC=83, ATFD=56, TCC=0.015151515151515152) 1397
The class 'ProcessorASNorm' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 36397
The class 'ProcessorASNorm' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 36397
The class 'ProcessorASNorm' has a Cyclomatic Complexity of 4 (Highest = 10). 36397
The method 'hash' has a Standard Cyclomatic Complexity of 10. 102131
The method 'hash' has a Modified Cyclomatic Complexity of 10. 102131
The method 'hash' has a Cyclomatic Complexity of 10. 102131
Ensure that resources like this Statement object are closed after use 104
Avoid instantiating new objects inside loops 105106
Ensure that resources like this Statement object are closed after use 150
Ensure that resources like this Statement object are closed after use 158
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper' due to existing import 'eu.fbk.rdfpro.Mapper' 174
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper' due to existing import 'eu.fbk.rdfpro.Mapper' 203
Unnecessary use of fully qualified name 'eu.fbk.rdfpro.Mapper.BYPASS_KEY' due to existing import 'eu.fbk.rdfpro.Mapper' 216
Ensure that resources like this Statement object are closed after use 231
Ensure that resources like this Statement object are closed after use 240
Ensure that resources like this Statement object are closed after use 261
The class 'ValueOrdering' has a Standard Cyclomatic Complexity of 8 (Highest = 12). 296347
The class 'ValueOrdering' has a Cyclomatic Complexity of 10 (Highest = 16). 296347
The class 'ValueOrdering' has a Modified Cyclomatic Complexity of 8 (Highest = 12). 296347
The method 'compare' has a Standard Cyclomatic Complexity of 12. 306345
The method 'compare' has a Modified Cyclomatic Complexity of 12. 306345
The method 'compare' has a Cyclomatic Complexity of 16. 306345

pikes-rdf - eu/fbk/dkm/pikes/rdf/util/RDFGraphvizRenderer.java

Violation Line
Possible God class (WMC=81, ATFD=53, TCC=0.0) 1437
The class 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 6 (Highest = 17). 23437
The class 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 6 (Highest = 17). 23437
The class 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 7 (Highest = 21). 23437
The constructor 'RDFGraphvizRenderer' has a Cyclomatic Complexity of 10. 4762
The constructor 'RDFGraphvizRenderer' has a Modified Cyclomatic Complexity of 10. 4762
The constructor 'RDFGraphvizRenderer' has a Standard Cyclomatic Complexity of 10. 4762
The method 'emitSVG' has a Modified Cyclomatic Complexity of 10. 64131
The method 'emitSVG' has a Standard Cyclomatic Complexity of 10. 64131
The method 'emitSVG' has a Cyclomatic Complexity of 11. 64131
The method emitDot() has an NPath complexity of 10875 133233
Avoid really long methods. 133233
The method 'emitDot' has a Cyclomatic Complexity of 21. 133233
The method 'emitDot' has a Standard Cyclomatic Complexity of 17. 133233
The method 'emitDot' has a Modified Cyclomatic Complexity of 17. 133233
Ensure that resources like this Statement object are closed after use 146
Ensure that resources like this Statement object are closed after use 182
Avoid unused private methods such as 'shorten(IRI)'. 292
Avoid instantiation through private constructors from outside of the constructors class. 432

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/BBN.java

Violation Line
Avoid unused imports such as 'org.eclipse.rdf4j.model.impl.NamespaceImpl' 12
Avoid unused imports such as 'org.eclipse.rdf4j.model.impl.ValueFactoryImpl' 15
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 88

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/ITSRDF.java

Violation Line
A class which only has private constructors should be final 838

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/KEM.java

Violation Line
Avoid unused imports such as 'eu.fbk.rdfpro.vocab.VOID' 8
A class which only has private constructors should be final 17117

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/KEMT.java

Violation Line
Avoid unused imports such as 'eu.fbk.rdfpro.vocab.VOID' 8
A class which only has private constructors should be final 17563

pikes-rdf - eu/fbk/dkm/pikes/rdf/vocab/OWLTIME.java

Violation Line
A class which only has private constructors should be final 8159

pikes-resources - eu/fbk/dkm/pikes/resources/FrameBase.java

Violation Line
Possible God class (WMC=54, ATFD=30, TCC=0.02857142857142857) 1333
The class 'FrameBase' has a Cyclomatic Complexity of 4 (Highest = 19). 36333
The class 'FrameBase' has a Modified Cyclomatic Complexity of 4 (Highest = 16). 36333
The class 'FrameBase' has a Standard Cyclomatic Complexity of 4 (Highest = 16). 36333
The method 'main' has a Modified Cyclomatic Complexity of 16. 181280
The method 'main' has a Cyclomatic Complexity of 19. 181280
The method 'main' has a Standard Cyclomatic Complexity of 16. 181280
The method 'handleStatement' has a Cyclomatic Complexity of 12. 214246
These nested if statements could be combined 241243
Avoid reassigning parameters such as 'tag' 305
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 306
Avoid reassigning parameters such as 'tag' 318
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 319

pikes-resources - eu/fbk/dkm/pikes/resources/FrameNet.java

Violation Line
The class 'FrameNet' has a Modified Cyclomatic Complexity of 15 (Highest = 15). 17186
The class 'FrameNet' has a Cyclomatic Complexity of 16 (Highest = 15). 17186
The class 'FrameNet' has a Standard Cyclomatic Complexity of 15 (Highest = 15). 17186
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 17186
Consider using varargs for methods or constructors which take an array the last parameter. 79
The method 'main' has a Cyclomatic Complexity of 15. 79154
The method 'main' has a Standard Cyclomatic Complexity of 15. 79154
The method 'main' has a Modified Cyclomatic Complexity of 15. 79154
Avoid instantiating new objects inside loops 100
String.indexOf(char) is faster than String.indexOf(String). 119

pikes-resources - eu/fbk/dkm/pikes/resources/Intensities.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 18120
Avoid using redundant field initializer for 'instance' 22
Use block level rather than method level synchronization 2426
Use block level rather than method level synchronization 2840
Local variable 'lexicon' could be declared final 44
Local variable 'fileName' could be declared final 46
Local variable 'document' could be declared final 47
Local variable 'lexemeMultimap' could be declared final 48
Local variable 'term' could be declared final 50
Local variable 'lexemes' could be declared final 51
Local variable 'lexeme' could be declared final 52

pikes-resources - eu/fbk/dkm/pikes/resources/Lexicon.java

Violation Line
Possible God class (WMC=113, ATFD=53, TCC=0.005263157894736842) 1517
New exception is thrown in catch block, original stack trace may be lost 64
Local variable 'token' could be declared final 106
The class 'Lexeme' has a Standard Cyclomatic Complexity of 4 (Highest = 17). 173411
The class 'Lexeme' has a Modified Cyclomatic Complexity of 4 (Highest = 17). 173411
The class 'Lexeme' has a Cyclomatic Complexity of 4 (Highest = 17). 173411
The method 'create' has a Cyclomatic Complexity of 15. 187234
The method create() has an NPath complexity of 380 187234
The method 'create' has a Modified Cyclomatic Complexity of 11. 187234
The method 'create' has a Standard Cyclomatic Complexity of 11. 187234
Avoid declaring a variable if it is unreferenced before a possible exit point. 191
Avoid declaring a variable if it is unreferenced before a possible exit point. 192193
Deeply nested if..then statements are hard to read 206208
New exception is thrown in catch block, original stack trace may be lost 229
Avoid using a branching statement as the last in a loop. 288
The method 'matchRecursive' has a Modified Cyclomatic Complexity of 17. 295363
The method 'matchRecursive' has a Cyclomatic Complexity of 17. 295363
The method 'matchRecursive' has a Standard Cyclomatic Complexity of 17. 295363
The method matchRecursive() has an NPath complexity of 1218 295363
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 428
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 429
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 430
The method parse() has an NPath complexity of 250 443453
Parameter 'altLemma' is not assigned and could be declared final 443

pikes-resources - eu/fbk/dkm/pikes/resources/NAFFilter.java

Violation Line
Possible God class (WMC=407, ATFD=351, TCC=0.0) 12381
The class 'NAFFilter' has a Cyclomatic Complexity of 13 (Highest = 32). 712381
The class 'NAFFilter' has a Modified Cyclomatic Complexity of 11 (Highest = 24). 712381
Too many fields 712381
The class 'NAFFilter' has a Standard Cyclomatic Complexity of 11 (Highest = 24). 712381
Do not add empty strings 91
The method filter() has an NPath complexity of 1048576 248337
The method 'filter' has a Cyclomatic Complexity of 21. 248337
The method 'filter' has a Standard Cyclomatic Complexity of 21. 248337
The method 'filter' has a Modified Cyclomatic Complexity of 21. 248337
The method applyTermSenseCompletion() has an NPath complexity of 586 394502
The method 'applyTermSenseCompletion' has a Standard Cyclomatic Complexity of 12. 394502
The method 'applyTermSenseCompletion' has a Modified Cyclomatic Complexity of 12. 394502
Avoid really long methods. 394502
The method 'applyTermSenseCompletion' has a Cyclomatic Complexity of 17. 394502
Avoid unused local variables such as 'sumoRefs'. 402
Avoid unused local variables such as 'yagoRefs'. 404
Deeply nested if..then statements are hard to read 426431
Deeply nested if..then statements are hard to read 438444
Deeply nested if..then statements are hard to read 450455
The method 'applyEntityRemoveOverlaps' has a Cyclomatic Complexity of 10. 541573
The method applyEntityAddition() has an NPath complexity of 337 575626
The method 'applyEntityAddition' has a Cyclomatic Complexity of 14. 575626
Avoid using if statements without curly braces 619
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 619
The method 'applyEntityValueNormalization' has a Modified Cyclomatic Complexity of 12. 628668
The method applyEntityValueNormalization() has an NPath complexity of 231 628668
The method 'applyEntityValueNormalization' has a Standard Cyclomatic Complexity of 12. 628668
The method 'applyEntityValueNormalization' has a Cyclomatic Complexity of 16. 628668
Prefer StringBuffer over += for concatenating strings 632
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 632
The method 'applyLinkingCompletion' has a Standard Cyclomatic Complexity of 19. 670751
The method 'applyLinkingCompletion' has a Modified Cyclomatic Complexity of 19. 670751
The method 'applyLinkingCompletion' has a Cyclomatic Complexity of 20. 670751
The method applyLinkingCompletion() has an NPath complexity of 5857 670751
Local variable 'existingRefConfidence' could be declared final 729
These nested if statements could be combined 741747
The method 'applyCorefSpanFixing' has a Cyclomatic Complexity of 28. 785891
The method applyCorefSpanFixing() has an NPath complexity of 3025 785891
Avoid really long methods. 785891
The method 'applyCorefSpanFixing' has a Standard Cyclomatic Complexity of 24. 785891
The method 'applyCorefSpanFixing' has a Modified Cyclomatic Complexity of 24. 785891
The method 'applyCorefForRoleDependencies' has a Cyclomatic Complexity of 32. 893980
The method 'applyCorefForRoleDependencies' has a Standard Cyclomatic Complexity of 19. 893980
The method applyCorefForRoleDependencies() has an NPath complexity of 48388 893980
The method 'applyCorefForRoleDependencies' has a Modified Cyclomatic Complexity of 19. 893980
Position literals first in String comparisons 909
Avoid instantiating new objects inside loops 971
Avoid appending characters as strings in StringBuffer.append. 972
The method 'applySRLPreprocess' has a Cyclomatic Complexity of 24. 9821104
Avoid really long methods. 9821104
The method 'applySRLPreprocess' has a Modified Cyclomatic Complexity of 20. 9821104
The method applySRLPreprocess() has an NPath complexity of 11352 9821104
The method 'applySRLPreprocess' has a Standard Cyclomatic Complexity of 20. 9821104
Avoid instantiating new objects inside loops 1057
Avoid instantiating new objects inside loops 1077
Avoid instantiating new objects inside loops 1087
The method applySRLRemoveWrongRefs() has an NPath complexity of 721 11061158
The method 'applySRLRemoveWrongRefs' has a Modified Cyclomatic Complexity of 12. 11061158
The method 'applySRLRemoveWrongRefs' has a Standard Cyclomatic Complexity of 12. 11061158
The method 'applySRLRemoveWrongRefs' has a Cyclomatic Complexity of 17. 11061158
The method 'applySRLPredicateAddition' has a Cyclomatic Complexity of 18. 11861241
The method 'applySRLPredicateAddition' has a Standard Cyclomatic Complexity of 11. 11861241
The method applySRLPredicateAddition() has an NPath complexity of 1009 11861241
The method 'applySRLPredicateAddition' has a Modified Cyclomatic Complexity of 11. 11861241
The method 'applySRLSelfArgFixing' has a Cyclomatic Complexity of 13. 12431305
The method 'applySRLSelfArgFixing' has a Standard Cyclomatic Complexity of 12. 12431305
The method 'applySRLSelfArgFixing' has a Modified Cyclomatic Complexity of 12. 12431305
The method applySRLSelfArgFixing() has an NPath complexity of 561 12431305
The method 'applySRLSenseMapping' has a Modified Cyclomatic Complexity of 24. 13071403
The method applySRLSenseMapping() has an NPath complexity of 3014155 13071403
The method 'applySRLSenseMapping' has a Cyclomatic Complexity of 25. 13071403
The method 'applySRLSenseMapping' has a Standard Cyclomatic Complexity of 24. 13071403
Avoid instantiating new objects inside loops 13611362
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1362
The method 'applySRLFrameBaseMapping' has a Standard Cyclomatic Complexity of 12. 14051453
The method 'applySRLFrameBaseMapping' has a Modified Cyclomatic Complexity of 12. 14051453
The method 'applySRLFrameBaseMapping' has a Cyclomatic Complexity of 12. 14051453
Avoid instantiating new objects inside loops 1415
Avoid instantiating new objects inside loops 1429
Avoid instantiating new objects inside loops 1446
The method 'linkEntitiesTimexPredicates' has a Standard Cyclomatic Complexity of 23. 15181601
The method linkEntitiesTimexPredicates() has an NPath complexity of 44952 15181601
The method 'linkEntitiesTimexPredicates' has a Cyclomatic Complexity of 23. 15181601
The method 'linkEntitiesTimexPredicates' has a Modified Cyclomatic Complexity of 23. 15181601
Avoid instantiating new objects inside loops 1630
The method 'applySRLPreMOnIRIs' has a Modified Cyclomatic Complexity of 14. 16411719
The method 'applySRLPreMOnIRIs' has a Standard Cyclomatic Complexity of 14. 16411719
The method 'applySRLPreMOnIRIs' has a Cyclomatic Complexity of 14. 16411719
Local variable 'allPredicateExtRefs' could be declared final 1650
Local variable 'predicateExtRefToRemove' could be declared final 1651
Local variable 'refStr' could be declared final 1654
Avoid instantiating new objects inside loops 1662
Local variable 'e' could be declared final 1662
Avoid using if statements without curly braces 1663
Local variable 'toBeDropped' could be declared final 1675
Local variable 'allRoleExtRefs' could be declared final 1685
Local variable 'roleExtRefToRemove' could be declared final 1686
Local variable 'refStr' could be declared final 1691
Avoid instantiating new objects inside loops 1704
Local variable 'e' could be declared final 1704
Avoid using if statements without curly braces 1705
Local variable 'toBeRemoved' could be declared final 1713
Unnecessary final modifier in final class 17271729
Unnecessary final modifier in final class 17401758
The class 'Builder' has a Modified Cyclomatic Complexity of 3 (Highest = 36). 18862379
The class 'Builder' has a Standard Cyclomatic Complexity of 3 (Highest = 36). 18862379
The class 'Builder' has a Cyclomatic Complexity of 3 (Highest = 38). 18862379
Too many fields 18862379
Document empty constructor 19601961
The method 'withProperties' has a Modified Cyclomatic Complexity of 36. 19722051
The method 'withProperties' has a Standard Cyclomatic Complexity of 36. 19722051
The method 'withProperties' has a Cyclomatic Complexity of 38. 19722051
The method withProperties() has an NPath complexity of 324 19722051
The method withProperties() has an NCSS line count of 100 19722051
Avoid instantiation through private constructors from outside of the constructors class. 2376

pikes-resources - eu/fbk/dkm/pikes/resources/NAFUtils.java

Violation Line
Possible God class (WMC=253, ATFD=157, TCC=0.003171247357293869) 11048
The class 'NAFUtils' has a Cyclomatic Complexity of 6 (Highest = 24). 511048
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 511048
The class 'NAFUtils' has a Modified Cyclomatic Complexity of 5 (Highest = 19). 511048
The class 'NAFUtils' has a Standard Cyclomatic Complexity of 5 (Highest = 19). 511048
The method 'normalize' has a Cyclomatic Complexity of 11. 116151
The method 'extractHeadsHelper' has a Cyclomatic Complexity of 10. 233259
This call to String.startsWith can be rewritten using String.charAt(0) 237
The method 'getNominalSpan' has a Standard Cyclomatic Complexity of 11. 286334
The method getNominalSpan() has an NPath complexity of 468 286334
The method 'getNominalSpan' has a Modified Cyclomatic Complexity of 11. 286334
The method 'getNominalSpan' has a Cyclomatic Complexity of 11. 286334
Position literals first in String comparisons 385
Position literals first in String comparisons 385
Position literals first in String comparisons 385
The method 'toString' has a Cyclomatic Complexity of 12. 462495
The method 'toString' has a Standard Cyclomatic Complexity of 12. 462495
The method 'toString' has a Modified Cyclomatic Complexity of 12. 462495
The method 'trimSpan' has a Cyclomatic Complexity of 10. 595622
The method 'normalizeSpan' has a Cyclomatic Complexity of 24. 626723
The method 'normalizeSpan' has a Standard Cyclomatic Complexity of 19. 626723
The method 'normalizeSpan' has a Modified Cyclomatic Complexity of 19. 626723
The method normalizeSpan() has an NPath complexity of 64800 626723
The method 'mergeSpans' has a Modified Cyclomatic Complexity of 11. 725780
The method 'mergeSpans' has a Standard Cyclomatic Complexity of 11. 725780
The method 'mergeSpans' has a Cyclomatic Complexity of 11. 725780
Unnecessary final modifier in final class 782825
The method 'splitSpans' has a Cyclomatic Complexity of 10. 782825
Unnecessary final modifier in final class 827843
The method 'extendedPos' has a Cyclomatic Complexity of 11. 896908
Avoid declaring a variable if it is unreferenced before a possible exit point. 911
This call to String.startsWith can be rewritten using String.charAt(0) 913
Position literals first in String comparisons 916
Position literals first in String comparisons 916
Avoid declaring a variable if it is unreferenced before a possible exit point. 928
Parameter 'model' is not assigned and could be declared final 995
Parameter 'predicate' is not assigned and could be declared final 995
Switch statements should have a default label 9981005
Prefer StringBuffer over += for concatenating strings 1000
Prefer StringBuffer over += for concatenating strings 1001
Prefer StringBuffer over += for concatenating strings 1002
Prefer StringBuffer over += for concatenating strings 1003
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1008
Local variable 'localname' could be declared final 1008
Avoid reassigning parameters such as 'role' 1015
Parameter 'predicate' is not assigned and could be declared final 1015
Avoid reassigning parameters such as 'role' 1015
Parameter 'model' is not assigned and could be declared final 1015
Avoid reassigning parameters such as 'role' 1015
Avoid reassigning parameters such as 'role' 1015
Avoid reassigning parameters such as 'role' 1015
Avoid reassigning parameters such as 'role' 1015
Avoid reassigning parameters such as 'role' 1015
Avoid reassigning parameters such as 'role' 1015
Switch statements should have a default label 10231040
Prefer StringBuffer over += for concatenating strings 1024
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1025
Prefer StringBuffer over += for concatenating strings 1027
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1028
Prefer StringBuffer over += for concatenating strings 1030
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1031
Avoid using if...else statements without curly braces 1032
Avoid using if...else statements without curly braces 1033
Prefer StringBuffer over += for concatenating strings 1035
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1036
Avoid using if...else statements without curly braces 1037
Avoid using if...else statements without curly braces 1038
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 1042
Local variable 'localname' could be declared final 1042

pikes-resources - eu/fbk/dkm/pikes/resources/NomBank.java

Violation Line
Possible God class (WMC=77, ATFD=23, TCC=0.0) 1479
The class 'NomBank' has a Modified Cyclomatic Complexity of 4 (Highest = 10). 20479
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 20479
The class 'NomBank' has a Cyclomatic Complexity of 4 (Highest = 10). 20479
The class 'NomBank' has a Standard Cyclomatic Complexity of 4 (Highest = 10). 20479
Avoid instantiating new objects inside loops 49
Avoid instantiating new objects inside loops 6869
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 99
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 106
When doing a String.toLowerCase()/toUpperCase() call, use a Locale 110
Consider using varargs for methods or constructors which take an array the last parameter. 117
Avoid instantiating new objects inside loops 179
Avoid instantiating new objects inside loops 181
The method 'getPredicateRoles' has a Modified Cyclomatic Complexity of 10. 206254
The method 'getPredicateRoles' has a Cyclomatic Complexity of 10. 206254
The method 'getPredicateRoles' has a Standard Cyclomatic Complexity of 10. 206254
Deeply nested if..then statements are hard to read 241243
The class 'Parser' has a Modified Cyclomatic Complexity of 14 (Highest = 26). 256379
The class 'Parser' has a Cyclomatic Complexity of 15 (Highest = 28). 256379
The class 'Parser' has a Standard Cyclomatic Complexity of 14 (Highest = 26). 256379
Avoid really long methods. 265378
The method 'parse' has a Standard Cyclomatic Complexity of 26. 265378
The method 'parse' has a Modified Cyclomatic Complexity of 26. 265378
The method parse() has an NPath complexity of 112322 265378
The method 'parse' has a Cyclomatic Complexity of 28. 265378
Avoid instantiating new objects inside loops 282
Avoid instantiating new objects inside loops 283
Avoid empty catch blocks 295297
The user-supplied array 'argPBNums' is stored directly. 407
The user-supplied array 'argDescr' is stored directly. 407

pikes-resources - eu/fbk/dkm/pikes/resources/NumberSpeller.java