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
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/StandardAttributeFactory.java
/* * @(#)StandardAttributeFactory * * Copyright 2004-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above ...
9,576
44.604762
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/AttributeSelector.java
/* * @(#)AttributeSelector.java * * Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above co...
12,771
38.177914
114
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/X500NameAttribute.java
/* * @(#)X500NameAttribute.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above co...
6,435
35.157303
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/AnyURIAttribute.java
/* * @(#)AnyURIAttribute.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copy...
5,769
32.352601
99
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/DateTimeAttribute.java
/* * @(#)DateTimeAttribute.java * * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above co...
22,845
34.365325
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/BagAttribute.java
/* * @(#)BagAttribute.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyrig...
7,651
33.468468
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/AbstractAttributeSelector.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/...
2,081
27.135135
109
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/BooleanAttribute.java
/* * @(#)BooleanAttribute.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above cop...
8,465
33.137097
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/xacml3/XPathAttribute.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/licenses...
6,314
29.955882
101
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/xacml3/AttributeDesignator.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/...
10,934
32.959627
110
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/xacml3/AttributeSelector.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/...
8,685
35.805085
109
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/StringAttributeProxy.java
/* * @(#)StringAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copy...
2,445
39.098361
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/Base64BinaryAttributeProxy.java
/* * @(#)Base64BinaryAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the abov...
2,509
40.147541
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/DayTimeDurationAttributeProxy.java
/* * @(#)DayTimeDurationAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the a...
2,524
40.393443
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/DNSNameAttributeProxy.java
/* * @(#)DNSNameAttributeProxy.java * * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above cop...
2,540
39.333333
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/IntegerAttributeProxy.java
/* * @(#)IntegerAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above cop...
2,484
39.737705
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/AnyURIAttributeProxy.java
/* * @(#)AnyURIAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copy...
2,479
39.655738
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/YearMonthDurationAttributeProxy.java
/* * @(#)YearMonthDurationAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the...
2,534
40.557377
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/RFC822NameAttributeProxy.java
/* * @(#)RFC822NameAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above ...
2,499
39.983607
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/X500NameAttributeProxy.java
/* * @(#)X500NameAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above co...
2,489
39.819672
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/TimeAttributeProxy.java
/* * @(#)TimeAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyri...
2,469
39.491803
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/AbstractAttributeProxy.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/licenses...
1,751
34.04
95
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/HexBinaryAttributeProxy.java
/* * @(#)HexBinaryAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above c...
2,494
39.901639
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/DoubleAttributeProxy.java
/* * @(#)DoubleAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copy...
2,479
39.655738
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/IPAddressAttributeProxy.java
/* * @(#)IPAddressAttributeProxy.java * * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above c...
2,550
39.492063
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/BooleanAttributeProxy.java
/* * @(#)BooleanAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above cop...
2,484
39.737705
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/DateTimeAttributeProxy.java
/* * @(#)DateTimeAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above co...
2,489
39.819672
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/DateAttributeProxy.java
/* * @(#)DateAttributeProxy.java * * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyri...
2,469
39.491803
84
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/attr/proxy/xacml3/XPathAttributeProxy.java
/* * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/licenses...
1,492
32.931818
87
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/PolicyFinderResult.java
/* * @(#)PolicyFinderResult.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above c...
4,096
31.515873
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/ResourceFinderResult.java
/* * @(#)ResourceFinderResult.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above...
5,860
39.143836
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/AttributeFinder.java
/* * @(#)AttributeFinder.java * * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copy...
13,636
42.155063
117
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/PolicyFinder.java
/* * @(#)PolicyFinder.java * * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyrig...
10,888
38.596364
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/ResourceFinder.java
/* * @(#)ResourceFinder.java * * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyr...
11,012
40.715909
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/ResourceFinderModule.java
/* * @(#)ResourceFinderModule.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above...
7,800
43.833333
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/AttributeFinderModule.java
/* * @(#)AttributeFinderModule.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the abov...
8,349
45.388889
103
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/PolicyFinderModule.java
/* * @(#)PolicyFinderModule.java * * Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above c...
7,099
44.512821
100
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/impl/CurrentEnvModule.java
/* * @(#)CurrentEnvModule.java * * Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above cop...
8,347
39.721951
122
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/impl/SelectorModule.java
/* * @(#)SelectorModule.java * * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyr...
12,655
42.641379
118
java
balana
balana-master/modules/balana-core/src/main/java/org/wso2/balana/finder/impl/FileBasedPolicyFinderModule.java
/* * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
9,244
33.625468
105
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/SyntaxError.java
package com.semmle.jcorn; import com.semmle.js.ast.Position; public class SyntaxError extends RuntimeException { private static final long serialVersionUID = -4883173648492364902L; private final Position position; public SyntaxError(String msg, Position loc, int raisedAt) { super(msg); this.position =...
392
19.684211
69
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/Identifiers.java
package com.semmle.jcorn; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; import java.util.regex.Pattern; /// identifier.js public class Identifiers { public static enum Dialect { ECMA_3, ECMA_5, ECMA_6, ECMA_7, ECMA_8, STRICT, ...
14,866
93.694268
4,956
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/ESNextParser.java
package com.semmle.jcorn; import com.semmle.jcorn.TokenType.Properties; import com.semmle.jcorn.jsx.JSXParser; import com.semmle.js.ast.BindExpression; import com.semmle.js.ast.BlockStatement; import com.semmle.js.ast.CatchClause; import com.semmle.js.ast.ClassDeclaration; import com.semmle.js.ast.ClassExpression; imp...
18,193
34.396887
110
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/Locutil.java
package com.semmle.jcorn; import com.semmle.js.ast.Position; import java.util.regex.Matcher; /// locutil.js public class Locutil { /** * The `getLineInfo` function is mostly useful when the `locations` option is off (for performance * reasons) and you want to find the line/column position for a given characte...
775
30.04
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/Whitespace.java
package com.semmle.jcorn; import java.util.regex.Pattern; /// whitespace.js public class Whitespace { public static final String lineBreak = "\r\n?|\n|\u2028|\u2029"; public static final Pattern lineBreakG = Pattern.compile(lineBreak); // global public static boolean isNewLine(int code) { return code == 10...
796
35.227273
111
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/Parser.java
package com.semmle.jcorn; import static com.semmle.jcorn.Whitespace.isNewLine; import static com.semmle.jcorn.Whitespace.lineBreak; import com.semmle.jcorn.Identifiers.Dialect; import com.semmle.jcorn.Options.AllowReserved; import com.semmle.jcorn.TokenType.Properties; import com.semmle.js.ast.ArrayExpression; import...
139,605
36.498254
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/TokenType.java
package com.semmle.jcorn; import com.semmle.jcorn.Parser.TokContext; import java.util.LinkedHashMap; import java.util.Map; /// tokentype.js // ## Token types // The assignment of fine-grained, information-carrying type objects // allows the tokenizer to store the information it has about a // token in a way that is...
11,361
37.778157
97
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/Options.java
package com.semmle.jcorn; import com.semmle.jcorn.Identifiers.Dialect; import com.semmle.js.ast.Comment; import com.semmle.js.ast.Position; import com.semmle.js.ast.Program; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Token; import java.util.List; import java.util.function.BiFunction; import java...
6,370
23.503846
89
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/CustomParser.java
package com.semmle.jcorn; import com.semmle.jcorn.TokenType.Properties; import com.semmle.jcorn.flow.FlowParser; import com.semmle.js.ast.ArrayExpression; import com.semmle.js.ast.AssignmentExpression; import com.semmle.js.ast.BlockStatement; import com.semmle.js.ast.CallExpression; import com.semmle.js.ast.CatchClaus...
23,550
36.323296
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/flow/FlowParser.java
package com.semmle.jcorn.flow; import com.semmle.jcorn.ESNextParser; import com.semmle.jcorn.Identifiers; import com.semmle.jcorn.Options; import com.semmle.jcorn.SyntaxError; import com.semmle.jcorn.TokenType; import com.semmle.jcorn.TokenType.Properties; import com.semmle.jcorn.Whitespace; import com.semmle.js.ast.B...
38,797
29.263651
105
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/jsx/JSXParser.java
package com.semmle.jcorn.jsx; import static com.semmle.jcorn.Parser.TokContext.b_expr; import static com.semmle.jcorn.Parser.TokContext.b_tmpl; import static com.semmle.jcorn.TokenType.braceL; import static com.semmle.jcorn.TokenType.braceR; import static com.semmle.jcorn.TokenType.colon; import static com.semmle.jcor...
16,629
35.792035
107
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/jsx/JSXOptions.java
package com.semmle.jcorn.jsx; import com.semmle.jcorn.Options; public class JSXOptions extends Options { public boolean allowNamespacedObjects = true, allowNamespaces = true; public JSXOptions() {} public JSXOptions(Options options) { super(options); } public JSXOptions allowNamespacedObjects(boolean...
557
22.25
76
java
codeql
codeql-master/javascript/extractor/src/com/semmle/jcorn/jsx/XHTMLEntities.java
package com.semmle.jcorn.jsx; import java.util.LinkedHashMap; import java.util.Map; public class XHTMLEntities { public static final Map<String, Character> ENTITIES = new LinkedHashMap<>(); static { ENTITIES.put("quot", '\u0022'); ENTITIES.put("amp", '&'); ENTITIES.put("apos", '\''); ENTITIES.put...
9,459
34.698113
78
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/GenericTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** An instantiation of a named type, such as <tt>Array&lt;number&gt;</tt> */ public class GenericTypeExpr extends TypeExpression { private final ITypeExpression typeName; // Always Identifie...
869
26.1875
90
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/FunctionTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.FunctionExpression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; public class FunctionTypeExpr extends TypeExpression { private final FunctionExpression function; private final boolean isConstructor; public FunctionTypeExpr(Sourc...
732
23.433333
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ImportWholeDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; /** An import of form <tt>import a = E</tt>. */ public class ImportWholeDeclaration extends Statement { ...
756
21.939394
85
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TypeofTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * A type of form <tt>typeof E</tt> where <tt>E</tt> is an expression that takes the form of a * qualified name. */ public class TypeofTypeExpr extends TypeExpression { private final ITypeExpression expressio...
680
24.222222
94
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ParenthesizedTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A type expression in parentheses, such as <tt>("foo" | "bar")</tt>. */ public class ParenthesizedTypeExpr extends TypeExpression { private final ITypeExpression elementType; public ParenthesizedTypeExpr(Sour...
618
24.791667
81
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/IndexedAccessTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A type of form <tt>T[K]</tt> where <tt>T</tt> and <tt>K</tt> are types. */ public class IndexedAccessTypeExpr extends TypeExpression { private final ITypeExpression objectType; private final ITypeExpression i...
794
24.645161
82
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ITypeExpression.java
package com.semmle.ts.ast; import com.semmle.js.ast.INode; import com.semmle.js.ast.Literal; /** * An AST node that may occur as part of a TypeScript type annotation. * * <p>At the QL level, expressions and type annotations are completely separate. In the extractor, * however, some expressions such as {@link Lite...
533
37.142857
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/IntersectionTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** * An intersection type such as <tt>T&amp;S</tt>, denoting the intersection of type <tt>T</tt> and * type <tt>S</tt>. */ public class IntersectionTypeExpr extends TypeExpression { priva...
797
26.517241
98
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ImportTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** An import type such as in <tt>import("http").ServerRequest</tt>. */ public class ImportTypeExpr extends Expression implements ITypeExpression { private final ITypeExpression...
612
23.52
75
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ConditionalTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A conditional type annotation, such as <tt>T extends any[] ? A : B</tt>. */ public class ConditionalTypeExpr extends TypeExpression { private ITypeExpression checkType; private ITypeExpression extendsType; ...
1,131
23.085106
79
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ExternalModuleDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Literal; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; /** A statement of form <tt>declare module "X" {...}</tt>. */ public class ExternalModuleDeclaration extends Statement { ...
780
22.666667
92
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TypeAliasDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; public class TypeAliasDeclaration extends Statement implements INodeWithSymbol { private final Identifier name; priv...
1,279
21.45614
80
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/InterfaceTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.MemberDefinition; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** An inline interface type, such as <tt>{x: number; y: number}</tt>. */ public class InterfaceTypeExpr extends TypeExpression { private final List...
659
24.384615
80
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/PredicateTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * A type of form <tt>E is T</tt>, <tt>asserts E is T</tt> or <tt>asserts E</tt> where <tt>E</tt> is * a parameter name or <tt>this</tt> and <tt>T</tt> is a type. */ public class PredicateTypeExpr extends TypeE...
1,163
24.866667
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ExpressionWithTypeArguments.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** * An expression with type arguments, occurring as the super-class expression of a class. For * example: * * <pre> * class StringList extends List&l...
1,091
25
93
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/EnumDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Decorator; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; public class EnumDeclaration extends Statement implements INodeWithSymbol { privat...
1,487
20.882353
75
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/KeywordTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * One of the TypeScript keyword types, such as <tt>string</tt> or <tt>any</tt>. * * <p>This includes the type <tt>unique symbol</tt> which consists of two keywords but is * represented as a keyword single typ...
929
27.181818
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ITypedAstNode.java
package com.semmle.ts.ast; /** An AST node with an associated static type. */ public interface ITypedAstNode { /** * Gets the static type of this node as determined by the TypeScript compiler, or -1 if no type * was determined. * * <p>The ID refers to a type in a table that is extracted on a per-project ...
465
28.125
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/NonNullAssertion.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A TypeScript expression of form <tt>E!</tt>, asserting that <tt>E</tt> is not null. */ public class NonNullAssertion extends Expression { private final Expression expression...
631
24.28
90
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ArrayTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * An array type, such as <tt>number[]</tt>, or in general <tt>T[]</tt> where <tt>T</tt> is a type. */ public class ArrayTypeExpr extends TypeExpression { private final ITypeExpression elementType; public A...
627
23.153846
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/UnaryTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * A unary operator applied to a type. * * <p>This can be <tt>keyof T</tt> or <tt>readonly T</tt>. */ public class UnaryTypeExpr extends TypeExpression { private final ITypeExpression elementType; private ...
786
19.179487
84
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/GlobalAugmentationDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; /** A statement of form: <tt>declare global { ... }</tt> */ public class GlobalAugmentationDeclaration extends Statement { private final List<Statement> bo...
639
23.615385
82
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/INodeWithSymbol.java
package com.semmle.ts.ast; /** * An AST node that is associated with a TypeScript compiler symbol. * * <p>This can be the symbol for the type defined by this node, of it this is a module top-level, * the symbol for that module. */ public interface INodeWithSymbol { /** * Gets a number identifying the symbol ...
457
24.444444
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/InferTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A type annotation of form <tt>infer R</tt> */ public class InferTypeExpr extends TypeExpression { private TypeParameter typeParameter; public InferTypeExpr(SourceLocation loc, TypeParameter typeParameter) { ...
569
22.75
73
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/OptionalTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** An optional type in a tuple type, such as <tt>number?</tt> in <tt>[string, number?]</tt>. */ public class OptionalTypeExpr extends TypeExpression { private final ITypeExpression elementType; public OptionalT...
625
25.083333
96
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ExportAsNamespaceDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; /** A statement of form <tt>export as namespace X</tt> where <tt>X</tt> is an identifier. */ public class ExportAsNamespaceDeclaration extends ...
650
24.038462
92
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/RestTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** A rest type in a tuple type, such as <tt>number[]</tt> in <tt>[string, ...number[]]</tt>. */ public class RestTypeExpr extends TypeExpression { private final ITypeExpression arrayType; public RestTypeExpr(So...
601
24.083333
96
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TupleTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** A tuple type, such as <tt>[number, string]</tt>. */ public class TupleTypeExpr extends TypeExpression { private final List<ITypeExpression> elementTypes; public TupleTypeExpr(SourceLoc...
622
23.92
80
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TypeExpression.java
package com.semmle.ts.ast; import com.semmle.js.ast.Node; import com.semmle.js.ast.SourceLocation; /** * An AST node that may occur as part of a TypeScript type annotation and is not also an expression. */ public abstract class TypeExpression extends Node implements ITypeExpression { private int staticTypeId = -1...
590
21.730769
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ExportWholeDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; public class ExportWholeDeclaration extends Statement { private final Expression rhs; public ExportWholeDeclaration(SourceLocation loc, Ex...
551
21.08
69
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/UnionTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; /** A union type such as <tt>number | string | boolean</tt>. */ public class UnionTypeExpr extends TypeExpression { private final List<ITypeExpression> elementTypes; public UnionTypeExpr(S...
701
26
80
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/DecoratorList.java
package com.semmle.ts.ast; import com.semmle.js.ast.Decorator; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; import java.util.List; public class DecoratorList extends Expression { private final List<Decorator> decorators; public DecoratorList(Sour...
605
22.307692
72
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/EnumMember.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.Node; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; public class EnumMember extends Node implements INodeWithSymbol { private final Identifier id; private fina...
1,037
21.085106
92
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/NamespaceDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; public class NamespaceDeclaration extends Statement implements INodeWithSymbol { private final Identifier name; priv...
1,593
22.791045
97
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/InterfaceDeclaration.java
package com.semmle.ts.ast; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.MemberDefinition; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Statement; import com.semmle.js.ast.Visitor; import java.util.List; /** A TypeScript interface declaration. */ public class InterfaceDeclaration ...
1,592
23.136364
80
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TypeParameter.java
package com.semmle.ts.ast; import com.semmle.js.ast.Identifier; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * A type parameter declared on a class, interface, function, or type alias. * * <p>The general form of a type parameter is: <tt>S extends T = U</tt>. */ public class TypeP...
1,348
24.942308
93
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/MappedTypeExpr.java
package com.semmle.ts.ast; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** * A type of form <tt>{ [K in C]: T }</tt>, where <tt>T</tt> is a type that may refer to <tt>K</tt>. * * <p>As with the TypeScript AST, the <tt>K in C</tt> part is represented as a type parameter with * <tt>C<...
963
25.777778
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/ExternalModuleReference.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; public class ExternalModuleReference extends Expression implements INodeWithSymbol { private final Expression expression; private int symbol = -1; public ExternalModuleRefe...
766
20.914286
84
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/ast/TypeAssertion.java
package com.semmle.ts.ast; import com.semmle.js.ast.Expression; import com.semmle.js.ast.SourceLocation; import com.semmle.js.ast.Visitor; /** An expression of form <code>E as T</code> or <code>&lt;T&gt; E</code>. */ public class TypeAssertion extends Expression { private final Expression expression; private fina...
1,141
24.377778
94
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/extractor/TypeTable.java
package com.semmle.ts.extractor; import com.google.gson.JsonArray; import com.google.gson.JsonObject; /** * Holds the output of the <tt>get-type-table</tt> command. * * <p>See documentation in <tt>parser-wrapper/src/type_table.ts</tt>. */ public class TypeTable { private final JsonArray typeStrings; private f...
3,577
28.816667
93
java
codeql
codeql-master/javascript/extractor/src/com/semmle/ts/extractor/TypeExtractor.java
package com.semmle.ts.extractor; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import com.semmle.util.trap.TrapWriter; import com.semmle.util.trap.TrapWriter.Label; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * Extracts type and ...
12,568
37.555215
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/ObjectPattern.java
package com.semmle.js.ast; import java.util.ArrayList; import java.util.List; /** An object pattern. */ public class ObjectPattern extends Expression implements DestructuringPattern { private final List<Property> rawProperties, properties; private final Expression restPattern; public ObjectPattern(SourceLocati...
1,443
25.254545
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/Property.java
package com.semmle.js.ast; import com.semmle.util.data.StringUtil; import java.util.ArrayList; import java.util.List; /** * A property in an object literal or an object pattern. * * <p>This includes both regular properties as well as accessor properties, method properties, * properties with computed names, and sp...
3,543
25.848485
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/TemplateElement.java
package com.semmle.js.ast; /** An element in a template literal. */ public class TemplateElement extends Expression { private final Object cooked; private final String raw; private final boolean tail; public TemplateElement(SourceLocation loc, Object cooked, String raw, Boolean tail) { super("TemplateElem...
805
21.388889
87
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/BinaryExpression.java
package com.semmle.js.ast; /** A binary expression such as <code>x + y</code>. */ public class BinaryExpression extends ABinaryExpression { public BinaryExpression(SourceLocation loc, String operator, Expression left, Expression right) { super(loc, "BinaryExpression", operator, left, right); } @Override p...
401
27.714286
99
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/ClassDeclaration.java
package com.semmle.js.ast; import com.semmle.ts.ast.ITypeExpression; import com.semmle.ts.ast.TypeParameter; import java.util.Collections; import java.util.List; /** * A class declaration such as * * <pre> * class ColouredPoint extends Point { * constructor(x, y, colour) { * super(x, y); * this.colou...
1,951
23.708861
100
java
codeql
codeql-master/javascript/extractor/src/com/semmle/js/ast/TryStatement.java
package com.semmle.js.ast; import java.util.ArrayList; import java.util.List; /** A try statement. */ public class TryStatement extends Statement { private final BlockStatement block; private final CatchClause handler; private final List<CatchClause> guardedHandlers, allHandlers; private final BlockStatement ...
1,895
26.478261
95
java