repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
codeql
codeql-master/java/ql/test/query-tests/StringFormat/A.java
import java.util.Formatter; import java.io.PrintStream; import java.io.PrintWriter; import java.io.Console; import java.io.File; public class A { void f_string() { String.format("%s%s", ""); // missing } void f_formatter(Formatter x) { x.format("%s%s", ""); // missing } void f_printstream(PrintStre...
2,638
28.651685
77
java
codeql
codeql-master/java/ql/test/query-tests/StartInConstructor/Test.java
import java.lang.Thread; public class Test { Thread myThread; public Test() { myThread = new Thread("myThread"); // BAD myThread.start(); } public static final class Final { Thread myThread; public Final() { myThread = new Thread("myThread"); // OK - class cannot be extended myThread.start(...
557
15.909091
79
java
codeql
codeql-master/java/ql/test/query-tests/StringComparison/StringComparison.java
class StringComparison { private static final String CONST = "foo"; public void test(String param) { String variable = "hello"; variable = param; String variable2 = "world"; variable2 += "it's me"; // OK if("" == "a") return; // OK if("" == param.intern()) return; // OK if("" == CONST) ...
510
14.484848
43
java
codeql
codeql-master/java/ql/test/query-tests/AutoBoxing/Test.java
class Test { void unbox(Integer i, Boolean b) { // NOT OK int j = i + 19; // OK if (i == null); // NOT OK if (i == 42); // NOT OK j += i; // NOT OK int k = i; // NOT OK bar(b); // NOT OK int l = i == null ? 0 : i; } void bar(boolean b) {} Integer box(int i) { Integer[] is = new Integ...
478
12.685714
35
java
codeql
codeql-master/java/ql/test/query-tests/ConfusingOverloading/TestConfusingOverloading.java
public class TestConfusingOverloading { class Super<T> { void test2(T t) {} void test(Super<T> other) {} } class Sub extends Super<Runnable> { void test(Sub other) {} } class Sub2 extends Super<Runnable> { @Override void test2(Runnable r) {} @Override void test(Super<Runnable> other) {} } } class Test...
712
24.464286
84
java
codeql
codeql-master/java/ql/test/query-tests/CallsToRunnableRun/CallsToRunnableRun.java
import java.lang.Runnable; public class CallsToRunnableRun extends Thread implements Runnable{ private Thread wrapped; private Runnable callback; @Override public void run() { wrapped.run(); callback.run(); } public void bad() { wrapped.run(); callback.run(); } }
286
14.105263
67
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/Test.java
package incomparable_equals; public class Test { private void assertTrue(boolean b) { if(!b) throw new AssertionError(); } void test() { assert !new Integer(1).equals("1"); assertTrue(!new StringBuffer().equals("")); } }
236
17.230769
45
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/F.java
package incomparable_equals; public class F { void m(int[] l, int[][] r) { l.equals(r); } }
96
12.857143
29
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/B.java
package incomparable_equals; public class B<T extends B> { T t; void test(String s) { t.equals(s); t.equals(this); } }
129
10.818182
29
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/D.java
package incomparable_equals; public class D<T> { public void test(java.util.List<? extends T> l, String s) { l.get(0).equals(s); } public static void main(String[] args) { new D<String>().test(java.util.Collections.singletonList("Hi!"), "Hi!"); } }
260
20.75
74
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/A.java
package incomparable_equals; public class A<T> { T t; void test(String s) { t.equals(s); } }
101
9.2
28
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/E.java
package incomparable_equals; class GraBase<T> { class GrBase { public boolean equals(Object other) { return false; } } } class GraDelegator<T,U> extends GraBase<T> {} class Gra4To4Hist<T> extends GraDelegator<T, T> { class Gr4To4Hist extends GraBase<T>.GrBase {} } public class E<P> { Gra4To4Hist<P>.Gr4To4Hist...
473
19.608696
56
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/MyEntry.java
package incomparable_equals; import java.util.Map.Entry; @SuppressWarnings("rawtypes") public abstract class MyEntry implements Entry { void test(Entry e) { this.equals(e); } }
182
17.3
48
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/incomparable_equals/C.java
package incomparable_equals; import java.util.ArrayList; import java.util.LinkedList; public class C { void test(LinkedList<String> ll, ArrayList<String> al) { ll.equals(al); } }
185
15.909091
57
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/remove_type_mismatch/B.java
package remove_type_mismatch; class B<E> { static interface I {} java.util.Collection<I> c; void test(E e) { c.remove(e); } }
136
11.454545
29
java
codeql
codeql-master/java/ql/test/query-tests/TypeMismatch/remove_type_mismatch/A.java
package remove_type_mismatch; import java.util.Collection; public class A { void test1(Collection<StringBuffer> c, String s, StringBuffer b) { c.remove(s); c.remove(b); } void test2(Collection<? extends CharSequence> c, A a, String b) { c.remove(a); c.remove(b); } } interface RunnableList extends Runna...
892
18.844444
67
java
codeql
codeql-master/java/ql/test/query-tests/NonSerializableField/NonSerializableFieldTest.java
import java.io.Serializable; import java.io.Externalizable; import java.util.List; import java.util.Map; import java.util.HashMap; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectOutput; import java.io.ObjectInput; public class NonSerializableFieldTest { public static class...
3,376
26.680328
91
java
codeql
codeql-master/java/ql/test/query-tests/DeadCode/NonAssignedFields/NonAssignedFieldsTest.java
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; public class NonAssignedFieldsTest { static class Node<T> { volatile Node<?> next; static final AtomicReferenceFieldUpdater<Node,Node> nextUpdater = AtomicReferenceFieldUpdater.newUpdater(Node.class, Node.class, "next"); } { Node<?> node =...
360
20.235294
75
java
codeql
codeql-master/java/ql/test/query-tests/EqualsArray/Test.java
public class Test { private final int[] numbers = { 1, 2, 3 }; // NOT OK public boolean areTheseMyNumbers(int[] numbers) { return this.numbers.equals(numbers); } // OK public boolean honestAreTheseMyNumbers(int[] numbers) { return this.numbers == numbers; } // NOT OK, but shouldn't be flagged by this que...
425
18.363636
56
java
codeql
codeql-master/java/ql/test/query-tests/ComplexCondition/ComplexCondition.java
class ComplexCondition { public boolean bad(boolean a, boolean b, boolean c) { if (a && (b || !c) || b && (a || !c) || c && (a || !b)) { return true; } else { return (a && !b) || (b && !c) || (a && !c) || (a && b || c); } } public boolean ok(boolean a, boolean b, boolean c) { ...
853
24.878788
66
java
codeql
codeql-master/java/ql/test/query-tests/PrintLnArray/Test.java
class Test { { // OK: calls PrintStream.println(char[]) System.out.println(new char[] { 'H', 'i' }); // NOT OK: calls PrintStream.println(Object) System.out.println(new byte[0]); } }
192
23.125
46
java
codeql
codeql-master/java/ql/test/query-tests/NonSerializableInnerClass/NonSerializableInnerClassTest.java
import java.io.Serializable; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.ObjectOutput; import java.io.ObjectInput; public class NonSerializableInnerClassTest { public static class S implements Serializable{} public int field; public static class Outer1{ public class...
2,172
24.869048
119
java
codeql
codeql-master/java/ql/test/query-tests/SimplifyBoolExpr/SimplifyBoolExpr.java
class Test { void f(boolean x, boolean y, Boolean a, Boolean b) { boolean w; w = a == false; w = x != true; w = a ? false : b; w = a ? true : false; w = x ? y : true; } void g(int x, int y) { boolean w; w = !(x > y); w = !(x != y); } public Boolean getBool(int i) { if (...
793
29.538462
129
java
codeql
codeql-master/java/ql/test/query-tests/PointlessForwardingMethod/pointlessforwardingmethod/Test.java
package pointlessforwardingmethod; public class Test { // A method that is only called by a forwarder int addOne(int x, int one) { return x + one; } int addOne(byte x) { return addOne(x, 1); } // A method that is called by a forwarder and also used // in a separate way int addTwo(int x, int two) { retu...
439
15.296296
56
java
codeql
codeql-master/java/ql/test/query-tests/UselessUpcast/Test.java
import java.util.ArrayList; class Super { int x; } class Sub extends Super { int x; } class TestSuper { void baz(Sub s) {} } class Test extends TestSuper { Test(Super o) {} Test(Sub s) { // OK this((Super)s); } { Sub s = null; // OK new Test((Super)s); // NOT OK Super o = (Super)s; // OK foo(...
575
13.4
48
java
codeql
codeql-master/java/ql/test/query-tests/UselessUpcast/A.java
public class A<X extends A<X>> { private void m() { } private int pi; private void f(X x) { ((A<X>)x).m(); // OK int i = ((A<X>)x).pi; // OK } }
162
15.3
32
java
codeql
codeql-master/java/ql/test/query-tests/UselessUpcast/Test2.java
import java.util.HashMap; import java.util.Map; public class Test2 { public static void main(Sub[] args) { Map<Sub, Super> m = new HashMap<>(); Sub k = null, v = null; m.put(k, (Super) v); m.put(k, v); } }
216
18.727273
38
java
codeql
codeql-master/java/ql/test/query-tests/ConstantExpAppearsNonConstant/Test.java
//Test of ConstantExpAppearsNonConstant.ql import java.util.*; class Test{ public void tester(){ Random rnd = new Random(); int lit = 42; //OK int paren = (9); //OK int plusone = +1; //OK //Multiplication by 0 int mul_not_constant = 42 * 6; //OK int mul_constant_left = 0 * 60 * 60 * 24; //OK int mul_const...
2,355
40.333333
101
java
codeql
codeql-master/java/ql/test/query-tests/UselessComparisonTest/Test.java
class Test { private int z; void test(int x) { z = getInt(); if (x < 0 || z < 0) { throw new Exception(); } int y = 0; if (x >= 0) y++; // useless test due to test in line 5 being false if (z >= 0) y++; // useless test due to test in line 5 being false while(x >= 0) { if (y < 10) { z++; if...
924
24.694444
93
java
codeql
codeql-master/java/ql/test/query-tests/UselessComparisonTest/B.java
import java.util.*; import java.util.function.*; public class B { int modcount = 0; int[] arr; public void modify(IntUnaryOperator func) { int mc = modcount; for (int i = 0; i < arr.length; i++) { arr[i] = func.applyAsInt(arr[i]); } // Always false unless there is a call path from func.ap...
609
25.521739
78
java
codeql
codeql-master/java/ql/test/query-tests/UselessComparisonTest/A.java
import java.util.*; public class A { int getInt() { return new Object().hashCode(); } void unreachable() { } void test(int x, int y) { if (x < 3) { x++; if (x - 1 == 2) return; x--; if (x >= 2) unreachable(); // useless test } if (y > 0) { int z = (x >= 0) ? x :...
3,049
18.551282
70
java
codeql
codeql-master/java/ql/test/query-tests/UselessComparisonTest/C.java
public class C { double m1(double x) { return (x < 0 || x > 1 || Double.isNaN(x)) ? Double.NaN : x == 0 ? 0 : x == 1 ? 1 : 0.5; } void m2(double x) { if (x > 0) { double y = 1 - x; if (y > 0) { // OK } } } }
255
16.066667
61
java
codeql
codeql-master/java/ql/test/query-tests/NonSynchronizedOverride/Test.java
class Super { synchronized void quack() { System.out.println("Quack."); } synchronized Super self() { return this; } synchronized void foo() {} void bar() {} } class Sub extends Super { // NOT OK void quack() { super.quack(); super.quack(); } // OK Sub self() { return (Sub)super.self(); } ...
524
10.931818
31
java
codeql
codeql-master/java/ql/test/query-tests/ImpossibleCast/impossible_cast/A.java
package impossible_cast; import java.io.Serializable; public class A { { String[] s = (String[])new Object[] { "Hello, world!" }; } { Serializable[] ss = (Object[][])new Serializable[] {}; } }
197
21
61
java
codeql
codeql-master/java/ql/test/query-tests/BoxedVariable/BoxedVariable.java
import java.util.*; class Test { public void f() { Boolean done = false; // bad while (!done) { done = true; } Integer sum = 0; // bad for (int i = 0; i < 10; i++) sum += i; useBoxed(sum); Integer box = 42; // ok; only boxed usages useBoxed(box); Integer badbox = 17...
1,209
19.166667
83
java
codeql
codeql-master/java/ql/test/query-tests/lgtm-example-queries/Test.java
public class Test { int array() { int[] arr = new int[]{1,2,3}; int i = 0; arr[i++] = 4; // arrayaccess.ql return arr[i]; } void test() { // voidreturntype.ql } Object test2() { return null; // returnstatement.ql } }
237
12.222222
36
java
codeql
codeql-master/java/ql/test/query-tests/BadCheckOdd/BadCheckOdd.java
import java.util.Collection; class BadCheckOdd { public boolean goodLiteral() { return 10 % 2 > 0; } public boolean badLiteral() { return -10 % 2 > 0; } public boolean badBrackets1() { return -10 % 2 > (0); } public boolean badBrackets2() { return -10 % (2) > 0;// } public boolean badBracket...
1,159
15.571429
62
java
codeql
codeql-master/java/ql/test/query-tests/NonPrivateField/NonPrivateFieldTest.java
import java.util.*; public class NonPrivateFieldTest { public @interface Rule {} // JUnit-like annotation public static class Fields{ public static String problematic1 = "value"; public final int problematic2 = 0; public final int problematic3; final int problematic4 = 9; /...
1,590
32.145833
134
java
codeql
codeql-master/java/ql/test/query-tests/MissingSpaceTypo/A.java
public class A { public void missing() { String s; s = "this text" + "is missing a space"; s = "the class java.util.ArrayList" + "without a space"; s = "This isn't" + "right."; s = "There's 1" + "thing wrong"; s = "There's A/B" + "and no space"; s = "Wait for ...
621
18.4375
41
java
codeql
codeql-master/java/ql/test/query-tests/ContainerSizeCmpZero/Main.java
import java.util.*; public class Main { public static void arrays(String[] args) { // NOT OK: always true if (args.length >= 0) { System.out.println("At least zero arguments!!"); } // NOT OK: always true if (0 <= args.length) { System.out.p...
2,780
22.369748
71
java
codeql
codeql-master/java/ql/test/query-tests/MissingCallToSuperClone/Test.java
class IAmAGoodCloneable implements Cloneable { public Object clone() { return super.clone(); } } class Sub1 extends IAmAGoodCloneable { public Object clone() { return super.clone(); } } class IAmABadCloneable implements Cloneable { public Object clone() { return null; } } class Sub2 extends IAmABadCloneable ...
549
24
91
java
codeql
codeql-master/java/ql/test/query-tests/WriteOnlyContainer/CollectionTest.java
import java.util.*; public class CollectionTest { // should not be flagged since l1 is public public List<Integer> l1 = new ArrayList<Integer>(); // should not be flagged since l2 is a parameter public Set<Integer> m(List<Integer> l2) { l2.add(23); // should not be flagged since it is assigned an existing co...
1,697
31.653846
107
java
codeql
codeql-master/java/ql/test/query-tests/WriteOnlyContainer/MapTest.java
import java.util.*; public class MapTest { // should not be flagged since l1 is public public Map<String, Integer> l1 = new HashMap<String, Integer>(); // should not be flagged since l2 is a parameter public Map<String, Integer> m(Map<String, Integer> l2) { l2.remove(""); // should not be flagged since it is...
1,870
34.980769
107
java
codeql
codeql-master/java/ql/test/query-tests/DoubleCheckedLocking/A.java
public class A { public class B { public int x = 2; public void setX(int x) { this.x = x; } } private String s1; public String getString1() { if (s1 == null) { synchronized(this) { if (s1 == null) { s1 = "string"; // BAD, immutable but read twice outside sync ...
2,451
18.307087
88
java
codeql
codeql-master/java/ql/test/query-tests/CloseResource/CloseReader/CloseReader.java
import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; class CloseReader { public static void test1() throws IOException { BufferedReader br = new BufferedReader(new FileReader("C:...
2,698
23.761468
98
java
codeql
codeql-master/java/ql/test/query-tests/IgnoreExceptionalReturn/Test.java
import java.io.*; public class Test { public static void main(String[] args) throws IOException { new File("foo").createNewFile(); new File("foo").delete(); // Don't flag: there's usually nothing to do new File("foo").mkdir(); new File("foo").mkdirs(); // Don't flag: the return value is uninformative/misleadi...
482
31.2
87
java
codeql
codeql-master/java/ql/test/query-tests/UnreleasedLock/UnreleasedLock.java
class Test { static class MyLock { void lock() throws RuntimeException { } boolean tryLock() { return true; } void unlock() { } boolean isHeldByCurrentThread() { return true; } } void f() throws RuntimeException { } void g() throws RuntimeException { } MyLock mylock = new MyLock(); void bad1() { m...
1,302
12.161616
50
java
codeql
codeql-master/java/ql/test/query-tests/ConstantLoopCondition/A.java
class A { boolean otherCond() { return 3 > 5; } void f(int initx) { boolean done = false; while(!done) { // BAD: main loop condition is constant in the loop if (otherCond()) break; } int x = initx * 2; int i = 0; for(x++; ; i++) { if (x > 5 && otherCond()) { // BAD: x>5 is cons...
740
20.171429
90
java
codeql
codeql-master/java/ql/test/query-tests/WrongNanComparison/Test.java
class Test { void f(double x, float y) { if (x == Double.NaN) return; if (y == Float.NaN) return; } }
114
15.428571
32
java
codeql
codeql-master/java/ql/test/query-tests/InconsistentEqualsHashCode/Test.java
class Super { protected int myInt = 1; public boolean equals(Object other) { if (other == null) return false; if (other.getClass() != getClass()) return false; if (myInt != ((Super)other).myInt) return false; return true; } public int hashCode() { return myInt; } } class NoEquals extends Su...
751
17.8
81
java
codeql
codeql-master/java/ql/test/query-tests/UnreadLocal/A.java
public class A { public long ex1(int i, int w1, int w2, int w3, long[][][] bits) { long nword = ~0L << i; long[][] a2; long[] a3; if (w1 < 42 && (a2 = bits[w1]) != null && (a3 = a2[w2]) != null && ((nword = ~a3[w3] & (~0L << i))) == 0L) { w...
1,974
24.649351
69
java
codeql
codeql-master/java/ql/test/query-tests/UnreadLocal/UnreadLocal/ImplicitReads.java
package test; public class ImplicitReads { private static class B implements AutoCloseable { long time = 123; @Override public void close () { System.out.println("Closing at time " + time); } } public void test() { // Not flagged due to implicit read in finally block t...
771
16.953488
65
java
codeql
codeql-master/java/ql/test/query-tests/UnreadLocal/UnreadLocal/UnreadLocals.java
package test; public class UnreadLocals { public static class Something { int x; } public Something something; public int alpha; int beta; private int gamma; public UnreadLocals () { int alpha = 2; int _beta = 4; this.alpha = 3; beta = _beta; Somet...
606
14.564103
43
java
codeql
codeql-master/java/ql/test/query-tests/NumberFormatException/Test.java
import java.io.*; public class Test { public static void main(String[] args) { test1(); test2(); test3(); } static void test1() { Byte.parseByte("123"); Byte.decode("123"); Byte.valueOf("123"); Byte.valueOf("123", 10); Byte.valueOf("7f", 16);...
3,978
28.043796
71
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/entry/Value.java
package org.apache.directory.api.ldap.model.entry; public interface Value<T> { }
82
15.6
50
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/exception/LdapInvalidDnException.java
package org.apache.directory.api.ldap.model.exception; public class LdapInvalidDnException extends LdapException { }
118
22.8
59
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/exception/LdapException.java
package org.apache.directory.api.ldap.model.exception; public class LdapException extends Exception { }
105
20.2
54
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/filter/EqualityNode.java
package org.apache.directory.api.ldap.model.filter; import org.apache.directory.api.ldap.model.entry.Value; public class EqualityNode<T> implements ExprNode { public EqualityNode(String attribute, Value<T> value) { } public EqualityNode(String attribute, String value) { } }
281
30.333333
59
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/filter/ExprNode.java
package org.apache.directory.api.ldap.model.filter; public interface ExprNode { }
83
15.8
51
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/name/Dn.java
package org.apache.directory.api.ldap.model.name; import org.apache.directory.api.ldap.model.exception.LdapInvalidDnException; public class Dn { public Dn(String... upRdns) throws LdapInvalidDnException { } public String getName() { return null; } }
256
27.555556
76
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/cursor/EntryCursor.java
package org.apache.directory.api.ldap.model.cursor; public interface EntryCursor { }
86
16.4
51
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/cursor/SearchCursor.java
package org.apache.directory.api.ldap.model.cursor; public interface SearchCursor { }
87
16.6
51
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/message/SearchRequestImpl.java
package org.apache.directory.api.ldap.model.message; import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.name.Dn; import org.apache.directory.api.ldap.model.filter.ExprNode; public class SearchRequestImpl implements SearchRequest { public Dn getBase() { ret...
546
41.076923
85
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/message/SearchRequest.java
package org.apache.directory.api.ldap.model.message; import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.name.Dn; import org.apache.directory.api.ldap.model.filter.ExprNode; public interface SearchRequest { Dn getBase(); SearchRequest setBase(Dn baseDn); ...
429
32.076923
67
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/api/ldap/model/message/SearchScope.java
package org.apache.directory.api.ldap.model.message; public enum SearchScope { }
82
15.6
52
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
package org.apache.directory.ldap.client.api; import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.cursor.EntryCursor; import org.apache.directory.api.ldap.model.cursor.SearchCursor; import org.apache.directory.api.ldap.model.message.SearchRequest; import org.a...
858
49.529412
136
java
codeql
codeql-master/java/ql/test/stubs/apache-ldap-1.0.2/org/apache/directory/ldap/client/api/LdapConnection.java
package org.apache.directory.ldap.client.api; import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.cursor.EntryCursor; import org.apache.directory.api.ldap.model.cursor.SearchCursor; import org.apache.directory.api.ldap.model.message.SearchRequest; import org.a...
761
41.333333
113
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/io/ResourceLoader.java
package org.springframework.core.io; public interface ResourceLoader {}
73
17.5
36
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/io/InputStreamSource.java
/* * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
2,234
38.210526
88
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/io/Resource.java
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
5,870
31.798883
83
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/io/support/ResourcePatternResolver.java
package org.springframework.core.io.support; import org.springframework.core.io.ResourceLoader; public interface ResourcePatternResolver extends ResourceLoader {}
165
26.666667
66
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/env/EnvironmentCapable.java
package org.springframework.core.env; public interface EnvironmentCapable {}
78
18.75
38
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/Customizer.java
package org.springframework.security.config; @FunctionalInterface public interface Customizer<T> { void customize(T t); }
125
17
44
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/SecurityConfigurerAdapter.java
package org.springframework.security.config.annotation; public abstract class SecurityConfigurerAdapter<O, B extends SecurityBuilder<O>> implements SecurityConfigurer<O, B> {}
179
35
80
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/SecurityConfigurer.java
package org.springframework.security.config.annotation; public interface SecurityConfigurer<O, B extends SecurityBuilder<O>> {}
129
31.5
71
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/AbstractSecurityBuilder.java
package org.springframework.security.config.annotation; public abstract class AbstractSecurityBuilder<O> implements SecurityBuilder<O> {}
139
34
81
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/SecurityBuilder.java
package org.springframework.security.config.annotation; public interface SecurityBuilder<O> {}
96
23.25
55
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/AbstractConfiguredSecurityBuilder.java
package org.springframework.security.config.annotation; public abstract class AbstractConfiguredSecurityBuilder<O, B extends SecurityBuilder<O>> extends AbstractSecurityBuilder<O> {}
186
36.4
88
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/AbstractRequestMatcherRegistry.java
package org.springframework.security.config.annotation.web; import org.springframework.security.web.util.matcher.RequestMatcher; public abstract class AbstractRequestMatcherRegistry<C> { public C anyRequest() { return null; } public C requestMatchers(RequestMatcher... requestMatchers) { return null; }...
323
22.142857
68
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/HttpSecurityBuilder.java
package org.springframework.security.config.annotation.web; import org.springframework.security.config.annotation.SecurityBuilder; import org.springframework.security.web.DefaultSecurityFilterChain; public interface HttpSecurityBuilder<H extends HttpSecurityBuilder<H>> extends SecurityBuilder<DefaultSecurityFilterC...
329
40.25
78
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/configurers/AbstractInterceptUrlConfigurer.java
package org.springframework.security.config.annotation.web.configurers; import org.springframework.security.config.annotation.web.HttpSecurityBuilder; abstract class AbstractInterceptUrlConfigurer<C extends AbstractInterceptUrlConfigurer<C, H>, H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<C, H> ...
483
43
127
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/configurers/AbstractHttpConfigurer.java
package org.springframework.security.config.annotation.web.configurers; import org.springframework.security.config.annotation.SecurityConfigurerAdapter; import org.springframework.security.config.annotation.web.HttpSecurityBuilder; import org.springframework.security.web.DefaultSecurityFilterChain; public abstract cl...
491
53.666667
118
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/configurers/AbstractConfigAttributeRequestMatcherRegistry.java
package org.springframework.security.config.annotation.web.configurers; import org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry; public abstract class AbstractConfigAttributeRequestMatcherRegistry<C> extends AbstractRequestMatcherRegistry<C> {}
282
39.428571
89
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/configurers/ExpressionUrlAuthorizationConfigurer.java
package org.springframework.security.config.annotation.web.configurers; import org.springframework.security.config.annotation.web.HttpSecurityBuilder; public final class ExpressionUrlAuthorizationConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractInterceptUrlConfigurer<ExpressionUrlAuthorizationConfigurer...
617
35.352941
120
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/config/annotation/web/builders/HttpSecurity.java
package org.springframework.security.config.annotation.web.builders; import org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder; import org.springframework.security.config.annotation.SecurityBuilder; import org.springframework.security.config.annotation.web.HttpSecurityBuilder; import org....
1,756
38.931818
125
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/web/SecurityFilterChain.java
package org.springframework.security.web; public interface SecurityFilterChain {}
83
20
41
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/web/DefaultSecurityFilterChain.java
package org.springframework.security.web; public final class DefaultSecurityFilterChain implements SecurityFilterChain {}
123
30
79
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/security/web/util/matcher/RequestMatcher.java
package org.springframework.security.web.util.matcher; public interface RequestMatcher {}
91
22
54
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/lang/Nullable.java
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
1,754
34.1
90
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/Expression.java
package org.springframework.expression; public interface Expression { Object getValue() throws EvaluationException; Object getValue(EvaluationContext context) throws EvaluationException; Class<?> getValueType() throws EvaluationException; Class<?> getValueType(EvaluationContext context) throws EvaluationExcept...
403
27.857143
77
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/EvaluationException.java
package org.springframework.expression; public class EvaluationException extends RuntimeException {}
101
33
60
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/ExpressionParser.java
package org.springframework.expression; public interface ExpressionParser { Expression parseExpression(String string); }
126
20.166667
46
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/EvaluationContext.java
package org.springframework.expression; public interface EvaluationContext {}
78
25.333333
39
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/spel/support/SimpleEvaluationContext.java
package org.springframework.expression.spel.support; import org.springframework.expression.*; public class SimpleEvaluationContext implements EvaluationContext { public static Builder forReadWriteDataBinding() { return null; } public static class Builder { public SimpleEvaluationContext build()...
345
25.615385
68
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/spel/support/StandardEvaluationContext.java
package org.springframework.expression.spel.support; import org.springframework.expression.*; public class StandardEvaluationContext implements EvaluationContext {}
166
32.4
70
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/expression/spel/standard/SpelExpressionParser.java
package org.springframework.expression.spel.standard; import org.springframework.expression.*; public class SpelExpressionParser implements ExpressionParser { public SpelExpressionParser() {} public Expression parseExpression(String string) { return null; } }
275
26.6
69
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/web/bind/annotation/RequestParam.java
package org.springframework.web.bind.annotation; import java.lang.annotation.*; @Target(value=ElementType.PARAMETER) @Retention(value=RetentionPolicy.RUNTIME) @Documented public @interface RequestParam { }
208
22.222222
48
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/web/bind/annotation/RequestMapping.java
package org.springframework.web.bind.annotation; import java.lang.annotation.*; @Target(value={ElementType.METHOD,ElementType.TYPE}) @Retention(value=RetentionPolicy.RUNTIME) @Documented public @interface RequestMapping { }
226
24.222222
52
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/web/context/WebApplicationContext.java
package org.springframework.web.context; import org.springframework.context.ApplicationContext; public interface WebApplicationContext extends ApplicationContext {}
167
27
68
java
codeql
codeql-master/java/ql/test/stubs/springframework-5.2.3/org/springframework/web/multipart/MultipartRequest.java
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
2,936
32.375
88
java