code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public com.google.api.ads.admanager.axis.v201808.AdUnitTargeting[] getTargetedAdUnits() {
return targetedAdUnits;
} | class class_name[name] begin[{]
method[getTargetedAdUnits, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.targetedAdUnits]]
end[}]
END[}] | Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[AdUnitTargeting] operator[SEP] operator[SEP] identifier[getTargetedAd... |
@Override
public boolean fileCreated(File file) throws WatchingException {
try {
createApplicationBundle();
} catch (Exception e) {
throw new WatchingException(e.getMessage(), file, e);
}
return true;
} | class class_name[name] begin[{]
method[fileCreated, return_type[type[boolean]], modifier[public], parameter[file]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=createApplicationBundle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[fileCreated] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[WatchingException] {
Keyword[try] {
identifier[createApplicationBundle] operator[SEP] operator[SEP] operator[SEP]
... |
public static void main(String[] args) {
PrintStream out = System.out;
if (args.length > 0) {
try {
out = new PrintStream(new File(args[0]));
} catch (FileNotFoundException e) {
System.out.printf(ERR_FILE, args[0]);
}
}
MBeanScanner mBeanScanner = new MBeanScanner();
List<Config> configs = mB... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[args]] begin[{]
local_variable[type[PrintStream], out]
if[binary_operation[member[args.length], >, literal[0]]] begin[{]
TryStatement(block=[StatementExpression(expression=Assi... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] {
identifier[PrintStream] identifier[out] operator[=] identifier[System] operator[SEP] identifier[out] operator[SEP] Keyword[if] operator[SEP] identifier[args... |
public static MachineTime<TimeUnit> ofPosixSeconds(double seconds) {
if (Double.isInfinite(seconds) || Double.isNaN(seconds)) {
throw new IllegalArgumentException("Invalid value: " + seconds);
}
long secs = (long) Math.floor(seconds);
int fraction = (int) ((seconds - secs) ... | class class_name[name] begin[{]
method[ofPosixSeconds, return_type[type[MachineTime]], modifier[public static], parameter[seconds]] begin[{]
if[binary_operation[call[Double.isInfinite, parameter[member[.seconds]]], ||, call[Double.isNaN, parameter[member[.seconds]]]]] begin[{]
Throw... | Keyword[public] Keyword[static] identifier[MachineTime] operator[<] identifier[TimeUnit] operator[>] identifier[ofPosixSeconds] operator[SEP] Keyword[double] identifier[seconds] operator[SEP] {
Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[isInfinite] operator[SEP] identifier[seconds] ope... |
private void obtainHeight(@StyleRes final int themeResourceId) {
TypedArray typedArray = getContext().getTheme()
.obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogHeight});
int defaultValue = Dialog.WRAP_CONTENT;
try {
setHeight(typedArray.getDi... | class class_name[name] begin[{]
method[obtainHeight, return_type[void], modifier[private], parameter[themeResourceId]] begin[{]
local_variable[type[TypedArray], typedArray]
local_variable[type[int], defaultValue]
TryStatement(block=[StatementExpression(expression=MethodInvocation(argume... | Keyword[private] Keyword[void] identifier[obtainHeight] operator[SEP] annotation[@] identifier[StyleRes] Keyword[final] Keyword[int] identifier[themeResourceId] operator[SEP] {
identifier[TypedArray] identifier[typedArray] operator[=] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] identifier[ge... |
@Override
protected void renderBundleLinks(JoinableResourceBundle bundle, String requestedPath, BundleRendererContext ctx,
Writer out, boolean debugOn, boolean renderDependencyLinks) throws IOException {
boolean bundleAlreadyIncluded = ctx.getIncludedBundles().contains(bundle.getId());
super.renderBundleLinks... | class class_name[name] begin[{]
method[renderBundleLinks, return_type[void], modifier[protected], parameter[bundle, requestedPath, ctx, out, debugOn, renderDependencyLinks]] begin[{]
local_variable[type[boolean], bundleAlreadyIncluded]
SuperMethodInvocation(arguments=[MemberReference(me... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[renderBundleLinks] operator[SEP] identifier[JoinableResourceBundle] identifier[bundle] , identifier[String] identifier[requestedPath] , identifier[BundleRendererContext] identifier[ctx] , identifier[Writer] identifier[out] , Keyword[bool... |
public static <E> List<E> refineCandidates(final List<E> candidates, final Predicate<? super E> predicate) {
if (candidates.size() == 1) {
return candidates;
}
List<E> newCandidates = CollectionUtils.filter(candidates, predicate);
if (newCandidates.isEmpty()) {
re... | class class_name[name] begin[{]
method[refineCandidates, return_type[type[List]], modifier[public static], parameter[candidates, predicate]] begin[{]
if[binary_operation[call[candidates.size, parameter[]], ==, literal[1]]] begin[{]
return[member[.candidates]]
else begin[{]
N... | Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[List] operator[<] identifier[E] operator[>] identifier[refineCandidates] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[E] operator[>] identifier[candidates] , Keyword[final] identifier[Predicate] operator[<] operato... |
@Override
public List<InputRecord> generate() throws Exception {
List<InputRecord> result = new ArrayList<InputRecord>();
// Generated valid string
Generex generex = new Generex(this.getInput().getValue());
String value = "";
InputRecord testRecord = this.getInput();
... | class class_name[name] begin[{]
method[generate, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], result]
local_variable[type[Generex], generex]
local_variable[type[String], value]
local_variable[type[InputRecord], testRecord]
F... | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[InputRecord] operator[>] identifier[generate] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[List] operator[<] identifier[InputRecord] operator[>] identifier[result] operator[=] Keyword[new]... |
static String decapitalizeLikeJavaBeans(String propertyName) {
if (propertyName != null
&& propertyName.length() >= 2
&& Character.isUpperCase(propertyName.charAt(0))
&& Character.isUpperCase(propertyName.charAt(1))) {
return propertyName;
}
return decapitalizeNormally(property... | class class_name[name] begin[{]
method[decapitalizeLikeJavaBeans, return_type[type[String]], modifier[static], parameter[propertyName]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[member[.propertyName], !=, literal[null]], &&, binary_operation[call[propertyNa... | Keyword[static] identifier[String] identifier[decapitalizeLikeJavaBeans] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] {
Keyword[if] operator[SEP] identifier[propertyName] operator[!=] Other[null] operator[&&] identifier[propertyName] operator[SEP] identifier[length] operator[SEP] opera... |
public Vector3 set (IVector3 other) {
return set(other.x(), other.y(), other.z());
} | class class_name[name] begin[{]
method[set, return_type[type[Vector3]], modifier[public], parameter[other]] begin[{]
return[call[.set, parameter[call[other.x, parameter[]], call[other.y, parameter[]], call[other.z, parameter[]]]]]
end[}]
END[}] | Keyword[public] identifier[Vector3] identifier[set] operator[SEP] identifier[IVector3] identifier[other] operator[SEP] {
Keyword[return] identifier[set] operator[SEP] identifier[other] operator[SEP] identifier[x] operator[SEP] operator[SEP] , identifier[other] operator[SEP] identifier[y] operator[SEP] operator[... |
@Override
public Links findLinksWithRel(LinkRelation relation, String representation) {
Assert.notNull(relation, "LinkRelation must not be null!");
try {
Object parseResult = getExpression(relation).read(representation);
return createLinksFrom(parseResult, relation);
} catch (InvalidPathException e) {
... | class class_name[name] begin[{]
method[findLinksWithRel, return_type[type[Links]], modifier[public], parameter[relation, representation]] begin[{]
call[Assert.notNull, parameter[member[.relation], literal["LinkRelation must not be null!"]]]
TryStatement(block=[LocalVariableDeclaration(a... | annotation[@] identifier[Override] Keyword[public] identifier[Links] identifier[findLinksWithRel] operator[SEP] identifier[LinkRelation] identifier[relation] , identifier[String] identifier[representation] operator[SEP] {
identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[relation] , ... |
public void setDataSize(int s)
{
_bytes=s+__HDR_SIZE;
if (_buf[4]==__SEND_BODY_CHUNK)
s=s+1;
_buf[2]=(byte)((s>>8)&0xFF);
_buf[3]=(byte)(s&0xFF);
if (_buf[4]==__SEND_BODY_CHUNK)
{
s=s-4;
_buf[5]=(byte)((s>>8)&0xFF);
_... | class class_name[name] begin[{]
method[setDataSize, return_type[void], modifier[public], parameter[s]] begin[{]
assign[member[._bytes], binary_operation[member[.s], +, member[.__HDR_SIZE]]]
if[binary_operation[member[._buf], ==, member[.__SEND_BODY_CHUNK]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setDataSize] operator[SEP] Keyword[int] identifier[s] operator[SEP] {
identifier[_bytes] operator[=] identifier[s] operator[+] identifier[__HDR_SIZE] operator[SEP] Keyword[if] operator[SEP] identifier[_buf] operator[SEP] Other[4] operator[SEP] operator[==] identifier[__SE... |
private static double regularizedIncompleteGammaFraction(double a, double x) {
if (a < 0.0 || x < 0.0 || x < a + 1) {
throw new IllegalArgumentException(String.format("Invalid a = %f, x = %f", a, x));
}
int i = 0;
double ii = 0.0;
double igf = 0.0;
boolean ch... | class class_name[name] begin[{]
method[regularizedIncompleteGammaFraction, return_type[type[double]], modifier[private static], parameter[a, x]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.a], <, literal[0.0]], ||, binary_operation[member[.x], <, literal[0.0]]], ||, b... | Keyword[private] Keyword[static] Keyword[double] identifier[regularizedIncompleteGammaFraction] operator[SEP] Keyword[double] identifier[a] , Keyword[double] identifier[x] operator[SEP] {
Keyword[if] operator[SEP] identifier[a] operator[<] literal[Float] operator[||] identifier[x] operator[<] literal[Float] ope... |
@Nullable
public static <ENUMTYPE extends Enum <ENUMTYPE> & IHasName> ENUMTYPE getFromNameOrNull (@Nonnull final Class <ENUMTYPE> aClass,
@Nullable final String sName)
{
return getFromNameOrDefault (aClass, sName, null);
... | class class_name[name] begin[{]
method[getFromNameOrNull, return_type[type[ENUMTYPE]], modifier[public static], parameter[aClass, sName]] begin[{]
return[call[.getFromNameOrDefault, parameter[member[.aClass], member[.sName], literal[null]]]]
end[}]
END[}] | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] operator[<] identifier[ENUMTYPE] Keyword[extends] identifier[Enum] operator[<] identifier[ENUMTYPE] operator[>] operator[&] identifier[IHasName] operator[>] identifier[ENUMTYPE] identifier[getFromNameOrNull] operator[SEP] annotation[@] identifier[Nonnul... |
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "GeodesicString", substitutionHeadNamespace = "http://www.opengis.net/gml", substitutionHeadName = "_CurveSegment")
public JAXBElement<GeodesicStringType> createGeodesicString(GeodesicStringType value) {
return new JAXBElement<GeodesicStringTy... | class class_name[name] begin[{]
method[createGeodesicString, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_GeodesicString_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(pos... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden... |
private Map<String, ChatConversationBase> makeMapFromSavedConversations(List<ChatConversationBase> list) {
Map<String, ChatConversationBase> map = new HashMap<>();
if (list != null && !list.isEmpty()) {
for (ChatConversationBase details : list) {
map.put(details.getConversa... | class class_name[name] begin[{]
method[makeMapFromSavedConversations, return_type[type[Map]], modifier[private], parameter[list]] begin[{]
local_variable[type[Map], map]
if[binary_operation[binary_operation[member[.list], !=, literal[null]], &&, call[list.isEmpty, parameter[]]]] begin[{... | Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[ChatConversationBase] operator[>] identifier[makeMapFromSavedConversations] operator[SEP] identifier[List] operator[<] identifier[ChatConversationBase] operator[>] identifier[list] operator[SEP] {
identifier[Map] operator[<] identifier... |
private static void addSetOpenEngSBModelTail(CtClass clazz) throws CannotCompileException, NotFoundException {
CtClass[] params = generateClassField(List.class);
CtMethod method = new CtMethod(CtClass.voidType, "setOpenEngSBModelTail", params, clazz);
StringBuilder builder = new StringBuilder();... | class class_name[name] begin[{]
method[addSetOpenEngSBModelTail, return_type[void], modifier[private static], parameter[clazz]] begin[{]
local_variable[type[CtClass], params]
local_variable[type[CtMethod], method]
local_variable[type[StringBuilder], builder]
call[builder... | Keyword[private] Keyword[static] Keyword[void] identifier[addSetOpenEngSBModelTail] operator[SEP] identifier[CtClass] identifier[clazz] operator[SEP] Keyword[throws] identifier[CannotCompileException] , identifier[NotFoundException] {
identifier[CtClass] operator[SEP] operator[SEP] identifier[params] operator[=... |
public QueryTerm next() {
if (nextElement == null) {
throw new NoSuchElementException();
}
QueryTerm t = nextElement;
nextElement = findNext();
return t;
} | class class_name[name] begin[{]
method[next, return_type[type[QueryTerm]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.nextElement], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, ... | Keyword[public] identifier[QueryTerm] identifier[next] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[nextElement] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identifier[NoSuchElementException] operator[SEP] operator[SEP] operator[SEP]
}
ident... |
public synchronized Node<ElkClass> getEquivalentClasses(
ElkClassExpression classExpression)
throws ElkInconsistentOntologyException, ElkException {
if (classExpression instanceof ElkClass) {
return getTaxonomyNode((ElkClass) classExpression);
}
// else
return queryEquivalentClasses(classExpression);
... | class class_name[name] begin[{]
method[getEquivalentClasses, return_type[type[Node]], modifier[synchronized public], parameter[classExpression]] begin[{]
if[binary_operation[member[.classExpression], instanceof, type[ElkClass]]] begin[{]
return[call[.getTaxonomyNode, parameter[Cast(... | Keyword[public] Keyword[synchronized] identifier[Node] operator[<] identifier[ElkClass] operator[>] identifier[getEquivalentClasses] operator[SEP] identifier[ElkClassExpression] identifier[classExpression] operator[SEP] Keyword[throws] identifier[ElkInconsistentOntologyException] , identifier[ElkException] {
Ke... |
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final <R> Observable<R> flatMapMaybe(Function<? super T, ? extends MaybeSource<? extends R>> mapper, boolean delayErrors) {
ObjectHelper.requireNonNull(mapper, "mapper is null");
return RxJavaPlugins.onAssembly(new ObservableFlatM... | class class_name[name] begin[{]
method[flatMapMaybe, return_type[type[Observable]], modifier[final public], parameter[mapper, delayErrors]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.mapper], literal["mapper is null"]]]
return[call[RxJavaPlugins.onAssembly, parameter[C... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] operator[<] identifier[R] operator[>] identifier[Observable] operator[<] identifier[R] operator[>] identifier[flatM... |
protected void addToStatistics(NumberVector nv) {
final int d = nv.getDimensionality();
assert (d == ls.length);
this.n++;
for(int i = 0; i < d; i++) {
double v = nv.doubleValue(i);
ls[i] += v;
ss += v * v;
}
} | class class_name[name] begin[{]
method[addToStatistics, return_type[void], modifier[protected], parameter[nv]] begin[{]
local_variable[type[int], d]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=d, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),... | Keyword[protected] Keyword[void] identifier[addToStatistics] operator[SEP] identifier[NumberVector] identifier[nv] operator[SEP] {
Keyword[final] Keyword[int] identifier[d] operator[=] identifier[nv] operator[SEP] identifier[getDimensionality] operator[SEP] operator[SEP] operator[SEP] Keyword[assert] operator[SE... |
@Override
public InfraAlertCondition deserialize(JsonElement element, Type type, JsonDeserializationContext context)
throws JsonParseException
{
JsonObject obj = element.getAsJsonObject();
JsonElement condition = obj.get("data");
if(condition != null && condition.isJsonObject())
... | class class_name[name] begin[{]
method[deserialize, return_type[type[InfraAlertCondition]], modifier[public], parameter[element, type, context]] begin[{]
local_variable[type[JsonObject], obj]
local_variable[type[JsonElement], condition]
if[binary_operation[binary_operation[membe... | annotation[@] identifier[Override] Keyword[public] identifier[InfraAlertCondition] identifier[deserialize] operator[SEP] identifier[JsonElement] identifier[element] , identifier[Type] identifier[type] , identifier[JsonDeserializationContext] identifier[context] operator[SEP] Keyword[throws] identifier[JsonParseExcept... |
private void stopBackgroundThread() {
mBackgroundThread.quitSafely();
try {
mBackgroundThread.join();
mBackgroundThread = null;
mBackgroundHandler = null;
} catch (InterruptedException e) {
e.printStackTrace();
}
} | class class_name[name] begin[{]
method[stopBackgroundThread, return_type[void], modifier[private], parameter[]] begin[{]
call[mBackgroundThread.quitSafely, parameter[]]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=join, postfix_operators=[], p... | Keyword[private] Keyword[void] identifier[stopBackgroundThread] operator[SEP] operator[SEP] {
identifier[mBackgroundThread] operator[SEP] identifier[quitSafely] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
identifier[mBackgroundThread] operator[SEP] identifier[join] operator[SEP] operator[... |
public static boolean matches(Map<String, Object> nodeProperties, String[] keyColumnNames, Object[] keyColumnValues) {
for ( int i = 0; i < keyColumnNames.length; i++ ) {
String property = keyColumnNames[i];
Object expectedValue = keyColumnValues[i];
boolean containsProperty = nodeProperties.containsKey( pro... | class class_name[name] begin[{]
method[matches, return_type[type[boolean]], modifier[public static], parameter[nodeProperties, keyColumnNames, keyColumnValues]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dim... | Keyword[public] Keyword[static] Keyword[boolean] identifier[matches] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[nodeProperties] , identifier[String] operator[SEP] operator[SEP] identifier[keyColumnNames] , identifier[Object] operator[SEP] operator[SEP] id... |
@Override
public void registerCapabilities(ManagementResourceRegistration resourceRegistration) {
if (capabilities!=null) {
for (RuntimeCapability c : capabilities) {
resourceRegistration.registerCapability(c);
}
}
if (incorporatingCapabilities != null... | class class_name[name] begin[{]
method[registerCapabilities, return_type[void], modifier[public], parameter[resourceRegistration]] begin[{]
if[binary_operation[member[.capabilities], !=, literal[null]]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpre... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerCapabilities] operator[SEP] identifier[ManagementResourceRegistration] identifier[resourceRegistration] operator[SEP] {
Keyword[if] operator[SEP] identifier[capabilities] operator[!=] Other[null] operator[SEP] {
Keywor... |
void fixempties() {
State s;
State nexts;
Arc a;
Arc nexta;
boolean progress;
/* find and eliminate empties until there are no more */
do {
progress = false;
for (s = states; s != null; s = nexts) {
nexts = s.next;
... | class class_name[name] begin[{]
method[fixempties, return_type[void], modifier[default], parameter[]] begin[{]
local_variable[type[State], s]
local_variable[type[State], nexts]
local_variable[type[Arc], a]
local_variable[type[Arc], nexta]
local_variable[type[boolean], pr... | Keyword[void] identifier[fixempties] operator[SEP] operator[SEP] {
identifier[State] identifier[s] operator[SEP] identifier[State] identifier[nexts] operator[SEP] identifier[Arc] identifier[a] operator[SEP] identifier[Arc] identifier[nexta] operator[SEP] Keyword[boolean] identifier[progress] operator[SEP] Keywor... |
public static EvaluationResult evaluation(String resultText, String standardText, String perfectResult, String wrongResult) {
long start = System.currentTimeMillis();
int perfectLineCount=0;
int wrongLineCount=0;
int perfectCharCount=0;
int wrongCharCount=0;
try(BufferedR... | class class_name[name] begin[{]
method[evaluation, return_type[type[EvaluationResult]], modifier[public static], parameter[resultText, standardText, perfectResult, wrongResult]] begin[{]
local_variable[type[long], start]
local_variable[type[int], perfectLineCount]
local_variable[type[in... | Keyword[public] Keyword[static] identifier[EvaluationResult] identifier[evaluation] operator[SEP] identifier[String] identifier[resultText] , identifier[String] identifier[standardText] , identifier[String] identifier[perfectResult] , identifier[String] identifier[wrongResult] operator[SEP] {
Keyword[long] id... |
public static <KT> PathMetadata forMapAccess(Path<?> parent, KT key) {
return new PathMetadata(parent, key, PathType.MAPVALUE_CONSTANT);
} | class class_name[name] begin[{]
method[forMapAccess, return_type[type[PathMetadata]], modifier[public static], parameter[parent, key]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=key,... | Keyword[public] Keyword[static] operator[<] identifier[KT] operator[>] identifier[PathMetadata] identifier[forMapAccess] operator[SEP] identifier[Path] operator[<] operator[?] operator[>] identifier[parent] , identifier[KT] identifier[key] operator[SEP] {
Keyword[return] Keyword[new] identifier[PathMetadata] op... |
public boolean actionInternalUse(HttpServletRequest request) {
String internal = request.getParameter(PARAM_INTERNAL);
CmsResource resource;
boolean internalValue = false;
if (internal != null) {
internalValue = true;
}
try {
resource = getCms().... | class class_name[name] begin[{]
method[actionInternalUse, return_type[type[boolean]], modifier[public], parameter[request]] begin[{]
local_variable[type[String], internal]
local_variable[type[CmsResource], resource]
local_variable[type[boolean], internalValue]
if[binary_... | Keyword[public] Keyword[boolean] identifier[actionInternalUse] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] {
identifier[String] identifier[internal] operator[=] identifier[request] operator[SEP] identifier[getParameter] operator[SEP] identifier[PARAM_INTERNAL] operator[SEP] ope... |
public String convertRenderingIntentPTOCRIToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
} | class class_name[name] begin[{]
method[convertRenderingIntentPTOCRIToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operator... | Keyword[public] identifier[String] identifier[convertRenderingIntentPTOCRIToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] {
Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] ide... |
public Request processAuthChallenge(Response response, Request req_msg, String username,
String password) {
initErrorInfo();
ListIterator<?> challenges = null;
if (response.getStatusCode() == Response.UNAUTHORIZED) {
challenges = response.getHeaders(WWWAuthenticateHeader.NAME);
} else if (r... | class class_name[name] begin[{]
method[processAuthChallenge, return_type[type[Request]], modifier[public], parameter[response, req_msg, username, password]] begin[{]
call[.initErrorInfo, parameter[]]
local_variable[type[ListIterator], challenges]
if[binary_operation[call... | Keyword[public] identifier[Request] identifier[processAuthChallenge] operator[SEP] identifier[Response] identifier[response] , identifier[Request] identifier[req_msg] , identifier[String] identifier[username] , identifier[String] identifier[password] operator[SEP] {
identifier[initErrorInfo] operator[SEP] ope... |
@SuppressWarnings({ "rawtypes", "unchecked" })
public Map getMap(NodeConfig nodeConfig) {
Map map = new HashMap();
List<AttributeConfig> attributes = nodeConfig.getAttribute();
map.putAll(getAttribute(attributes));
List<NodeConfig> childrenNodes = nodeConfig.getChildrenNodes();
if (childrenNodes != null && ... | class class_name[name] begin[{]
method[getMap, return_type[type[Map]], modifier[public], parameter[nodeConfig]] begin[{]
local_variable[type[Map], map]
local_variable[type[List], attributes]
call[map.putAll, parameter[call[.getAttribute, parameter[member[.attributes]]]]]
... | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String] , literal[String]
} operator[SEP] Keyword[public] identifier[Map] identifier[getMap] operator[SEP] identifier[NodeConfig] identifier[nodeConfig] operator[SEP] {
identifier[Map] identifier[map] operator[=] Keyword[new] identifie... |
public static Attachment writeAttachmentWithErrorMessage(Throwable throwable, String title) {
String message = throwable.getMessage();
try {
return writeAttachment(message.getBytes(CONFIG.getAttachmentsEncoding()), title);
} catch (Exception e) {
e.addSuppressed(throwable... | class class_name[name] begin[{]
method[writeAttachmentWithErrorMessage, return_type[type[Attachment]], modifier[public static], parameter[throwable, title]] begin[{]
local_variable[type[String], message]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation... | Keyword[public] Keyword[static] identifier[Attachment] identifier[writeAttachmentWithErrorMessage] operator[SEP] identifier[Throwable] identifier[throwable] , identifier[String] identifier[title] operator[SEP] {
identifier[String] identifier[message] operator[=] identifier[throwable] operator[SEP] identifier[ge... |
public IIsotope getIsotope(String symbol, int massNumber) {
int elem = Elements.ofString(symbol).number();
List<IIsotope> isotopes = this.isotopes[elem];
if (isotopes == null)
return null;
for (IIsotope isotope : isotopes) {
if (isotope.getSymbol().equals(symbol) ... | class class_name[name] begin[{]
method[getIsotope, return_type[type[IIsotope]], modifier[public], parameter[symbol, massNumber]] begin[{]
local_variable[type[int], elem]
local_variable[type[List], isotopes]
if[binary_operation[member[.isotopes], ==, literal[null]]] begin[{]
retu... | Keyword[public] identifier[IIsotope] identifier[getIsotope] operator[SEP] identifier[String] identifier[symbol] , Keyword[int] identifier[massNumber] operator[SEP] {
Keyword[int] identifier[elem] operator[=] identifier[Elements] operator[SEP] identifier[ofString] operator[SEP] identifier[symbol] operator[SEP] o... |
@Override
public void addSubInterfacesInfo(Content classInfoTree) {
if (utils.isInterface(typeElement)) {
Set<TypeElement> subInterfaces = classtree.allSubClasses(typeElement, false);
if (!subInterfaces.isEmpty()) {
Content label = contents.subinterfacesLabel;
... | class class_name[name] begin[{]
method[addSubInterfacesInfo, return_type[void], modifier[public], parameter[classInfoTree]] begin[{]
if[call[utils.isInterface, parameter[member[.typeElement]]]] begin[{]
local_variable[type[Set], subInterfaces]
if[call[subInte... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addSubInterfacesInfo] operator[SEP] identifier[Content] identifier[classInfoTree] operator[SEP] {
Keyword[if] operator[SEP] identifier[utils] operator[SEP] identifier[isInterface] operator[SEP] identifier[typeElement] operator[SEP] opera... |
public Element createOrUpdateGroup(Object parent, Object object, Matrix transformation, Style style) {
switch (namespace) {
case SVG:
return createSvgGroup(parent, object, transformation, style);
case VML:
return createVmlGroup(parent, object, transformation);
case HTML:
default:
return create... | class class_name[name] begin[{]
method[createOrUpdateGroup, return_type[type[Element]], modifier[public], parameter[parent, object, transformation, style]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['SVG'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReferenc... | Keyword[public] identifier[Element] identifier[createOrUpdateGroup] operator[SEP] identifier[Object] identifier[parent] , identifier[Object] identifier[object] , identifier[Matrix] identifier[transformation] , identifier[Style] identifier[style] operator[SEP] {
Keyword[switch] operator[SEP] identifier[namespa... |
public static int trunc(EvaluationContext ctx, Object number) {
return Conversions.toDecimal(number, ctx).setScale(0, RoundingMode.DOWN).intValue();
} | class class_name[name] begin[{]
method[trunc, return_type[type[int]], modifier[public static], parameter[ctx, number]] begin[{]
return[call[Conversions.toDecimal, parameter[member[.number], member[.ctx]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[int] identifier[trunc] operator[SEP] identifier[EvaluationContext] identifier[ctx] , identifier[Object] identifier[number] operator[SEP] {
Keyword[return] identifier[Conversions] operator[SEP] identifier[toDecimal] operator[SEP] identifier[number] , identifier[ctx] opera... |
private Element getTopicDoc(final URI absolutePathToFile) {
final DocumentBuilder builder = getDocumentBuilder();
try {
final Document doc = builder.parse(absolutePathToFile.toString());
return doc.getDocumentElement();
} catch (final SAXException | IOException e) {
... | class class_name[name] begin[{]
method[getTopicDoc, return_type[type[Element]], modifier[private], parameter[absolutePathToFile]] begin[{]
local_variable[type[DocumentBuilder], builder]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], i... | Keyword[private] identifier[Element] identifier[getTopicDoc] operator[SEP] Keyword[final] identifier[URI] identifier[absolutePathToFile] operator[SEP] {
Keyword[final] identifier[DocumentBuilder] identifier[builder] operator[=] identifier[getDocumentBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[try]... |
@Override
protected Class<?> resolveProxyClass(String[] interfaceNames) throws ClassNotFoundException {
ClassLoader proxyClassLoader = classLoader;
Class<?>[] interfaces = new Class[interfaceNames.length];
Class<?> nonPublicInterface = null;
for (int i = 0; i < interfaceNames.length... | class class_name[name] begin[{]
method[resolveProxyClass, return_type[type[Class]], modifier[protected], parameter[interfaceNames]] begin[{]
local_variable[type[ClassLoader], proxyClassLoader]
local_variable[type[Class], interfaces]
local_variable[type[Class], nonPublicInterface]
... | annotation[@] identifier[Override] Keyword[protected] identifier[Class] operator[<] operator[?] operator[>] identifier[resolveProxyClass] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[interfaceNames] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] {
identifier[ClassLoad... |
@GET
@Timed
@JSONP(callback = "callback", queryParam = "callback")
@Produces({ MediaType.APPLICATION_JSON,
MediaTypeAdditional.APPLICATION_JAVASCRIPT })
@CacheControl(mustRevalidate = true, noCache = true, noStore = true)
public Id getIdAsJSON(
@HeaderParam(HttpHeaders.USER_AGENT... | class class_name[name] begin[{]
method[getIdAsJSON, return_type[type[Id]], modifier[public], parameter[agent]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=agent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getId, postfix_o... | annotation[@] identifier[GET] annotation[@] identifier[Timed] annotation[@] identifier[JSONP] operator[SEP] identifier[callback] operator[=] literal[String] , identifier[queryParam] operator[=] literal[String] operator[SEP] annotation[@] identifier[Produces] operator[SEP] {
identifier[MediaType] operator[SEP] i... |
public static boolean equal(Object one, Object two) {
return one == null && two == null || !(one == null || two == null) && (one == two || one.equals(two));
} | class class_name[name] begin[{]
method[equal, return_type[type[boolean]], modifier[public static], parameter[one, two]] begin[{]
return[binary_operation[binary_operation[binary_operation[member[.one], ==, literal[null]], &&, binary_operation[member[.two], ==, literal[null]]], ||, binary_operation[binar... | Keyword[public] Keyword[static] Keyword[boolean] identifier[equal] operator[SEP] identifier[Object] identifier[one] , identifier[Object] identifier[two] operator[SEP] {
Keyword[return] identifier[one] operator[==] Other[null] operator[&&] identifier[two] operator[==] Other[null] operator[||] operator[!] operato... |
private String getDDFPath() {
if (pathToDDF == null) {
int lastSlash = ddFile.lastIndexOf("/");
if (lastSlash < 0) {
lastSlash = ddFile.lastIndexOf(File.separator);
}
pathToDDF = (lastSlash < 0)
? ""
: ddFile.substring(0, lastSlash + 1);
}... | class class_name[name] begin[{]
method[getDDFPath, return_type[type[String]], modifier[private], parameter[]] begin[{]
if[binary_operation[member[.pathToDDF], ==, literal[null]]] begin[{]
local_variable[type[int], lastSlash]
if[binary_operation[member[.lastSl... | Keyword[private] identifier[String] identifier[getDDFPath] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[pathToDDF] operator[==] Other[null] operator[SEP] {
Keyword[int] identifier[lastSlash] operator[=] identifier[ddFile] operator[SEP] identifier[lastIndexOf] operator[SEP] litera... |
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
public final OperationFuture<Empty, WorkflowMetadata> instantiateWorkflowTemplateAsync(
InstantiateWorkflowTemplateRequest request) {
return instantiateWorkflowTemplateOperationCallable().futureCall(re... | class class_name[name] begin[{]
method[instantiateWorkflowTemplateAsync, return_type[type[OperationFuture]], modifier[final public], parameter[request]] begin[{]
return[call[.instantiateWorkflowTemplateOperationCallable, parameter[]]]
end[}]
END[}] | annotation[@] identifier[BetaApi] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] identifier[OperationFuture] operator[<] identifier[Empty] , identifier[WorkflowMetadata] operator[>] identifier[instantiateWorkflowTemplateAsync] operator[SEP] identifier[InstantiateWorkflowTemplateRequest] ide... |
private void sendReport(HttpServletRequest req, HttpServletResponse resp, Map<String, Integer> errors)
throws IOException {
resp.setStatus(CmsWebdavStatus.SC_MULTI_STATUS);
String absoluteUri = req.getRequestURI();
String relativePath = getRelativePath(req);
Document doc = Documen... | class class_name[name] begin[{]
method[sendReport, return_type[void], modifier[private], parameter[req, resp, errors]] begin[{]
call[resp.setStatus, parameter[member[CmsWebdavStatus.SC_MULTI_STATUS]]]
local_variable[type[String], absoluteUri]
local_variable[type[String], relativ... | Keyword[private] Keyword[void] identifier[sendReport] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[resp] , identifier[Map] operator[<] identifier[String] , identifier[Integer] operator[>] identifier[errors] operator[SEP] Keyword[throws] identifier[IOExcept... |
public void open() {
Futures.transform(lcm, new Subscribe(subscriber));
publishTask = Futures.transform(lcm, publisher);
} | class class_name[name] begin[{]
method[open, return_type[void], modifier[public], parameter[]] begin[{]
call[Futures.transform, parameter[member[.lcm], ClassCreator(arguments=[MemberReference(member=subscriber, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, co... | Keyword[public] Keyword[void] identifier[open] operator[SEP] operator[SEP] {
identifier[Futures] operator[SEP] identifier[transform] operator[SEP] identifier[lcm] , Keyword[new] identifier[Subscribe] operator[SEP] identifier[subscriber] operator[SEP] operator[SEP] operator[SEP] identifier[publishTask] operator[... |
void writeString(String value) throws IOException {
output.append('"');
for (int i = 0; i < value.length(); i++) {
char ch = value.charAt(i);
if (ch < 128) {
String replace = REPLACE[ch];
if (replace != null) {
output.append(rep... | class class_name[name] begin[{]
method[writeString, return_type[void], modifier[default], parameter[value]] begin[{]
call[output.append, parameter[literal['"']]]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar... | Keyword[void] identifier[writeString] operator[SEP] identifier[String] identifier[value] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[output] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] oper... |
public static byte[] toByteArray(Reader input, String encoding) throws IOException {
return toByteArray(input, Charsets.toCharset(encoding));
} | class class_name[name] begin[{]
method[toByteArray, return_type[type[byte]], modifier[public static], parameter[input, encoding]] begin[{]
return[call[.toByteArray, parameter[member[.input], call[Charsets.toCharset, parameter[member[.encoding]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[toByteArray] operator[SEP] identifier[Reader] identifier[input] , identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[toByteArray] operator[SEP] identifier[... |
protected boolean isSingleConnection(DatabaseConnection conn1, DatabaseConnection conn2) throws SQLException {
// initialize the connections auto-commit flags
conn1.setAutoCommit(true);
conn2.setAutoCommit(true);
try {
// change conn1's auto-commit to be false
conn1.setAutoCommit(false);
if (conn2.isAu... | class class_name[name] begin[{]
method[isSingleConnection, return_type[type[boolean]], modifier[protected], parameter[conn1, conn2]] begin[{]
call[conn1.setAutoCommit, parameter[literal[true]]]
call[conn2.setAutoCommit, parameter[literal[true]]]
TryStatement(block=[State... | Keyword[protected] Keyword[boolean] identifier[isSingleConnection] operator[SEP] identifier[DatabaseConnection] identifier[conn1] , identifier[DatabaseConnection] identifier[conn2] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[conn1] operator[SEP] identifier[setAutoCommit] operator[SEP] li... |
public synchronized void stop() {
if (!started) {
return;
}
try {
if (future != null) {
future.cancel(true);
future = null;
}
if (scheduledExecutorService != null) {
scheduledExecutorService.shutdownN... | class class_name[name] begin[{]
method[stop, return_type[void], modifier[synchronized public], parameter[]] begin[{]
if[member[.started]] begin[{]
return[None]
else begin[{]
None
end[}]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Member... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[stop] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[started] operator[SEP] {
Keyword[return] operator[SEP]
}
Keyword[try] {
Keyword[if] operator[SEP] identifier[future] operator[!=]... |
public void init(BaseField field, GridScreenParent gridScreen, GridComponent sPopupBox)
{
super.init(field);
m_gridScreen = gridScreen;
m_sPopupBox = sPopupBox;
Record gridFile = null;
if (gridScreen != null)
gridFile = (Record)gridScreen.getMainRecord();
... | class class_name[name] begin[{]
method[init, return_type[void], modifier[public], parameter[field, gridScreen, sPopupBox]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operator... | Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[BaseField] identifier[field] , identifier[GridScreenParent] identifier[gridScreen] , identifier[GridComponent] identifier[sPopupBox] operator[SEP] {
Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[field] operator[SEP... |
@Deprecated
public static JRDesignExpression createExpression(String name, CustomExpression expression) {
return createExpression(name, expression, false);
} | class class_name[name] begin[{]
method[createExpression, return_type[type[JRDesignExpression]], modifier[public static], parameter[name, expression]] begin[{]
return[call[.createExpression, parameter[member[.name], member[.expression], literal[false]]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[JRDesignExpression] identifier[createExpression] operator[SEP] identifier[String] identifier[name] , identifier[CustomExpression] identifier[expression] operator[SEP] {
Keyword[return] identifier[createExpression] operator[SEP] iden... |
@SuppressWarnings("unchecked")
public static void setProperty(Object obj, String name, Object value) {
if (obj == null)
throw new NullPointerException("Object cannot be null");
if (name == null)
throw new NullPointerException("Property name cannot be null");
if (obj instanceof Map<?, ?>) {
Map<Object, ... | class class_name[name] begin[{]
method[setProperty, return_type[void], modifier[public static], parameter[obj, name, value]] begin[{]
if[binary_operation[member[.obj], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[setProperty] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] {
Keyword[if] ... |
public <T> T querySingleTypedResult(String sql, String[] args) {
@SuppressWarnings("unchecked")
T result = (T) querySingleResult(sql, args);
return result;
} | class class_name[name] begin[{]
method[querySingleTypedResult, return_type[type[T]], modifier[public], parameter[sql, args]] begin[{]
local_variable[type[T], result]
return[member[.result]]
end[}]
END[}] | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[querySingleTypedResult] operator[SEP] identifier[String] identifier[sql] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] {
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] opera... |
public KeyValueStoreUpdate update(String key, String value) {
actions.add(new Update(key, value));
return this;
} | class class_name[name] begin[{]
method[update, return_type[type[KeyValueStoreUpdate]], modifier[public], parameter[key, value]] begin[{]
call[actions.add, parameter[ClassCreator(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRe... | Keyword[public] identifier[KeyValueStoreUpdate] identifier[update] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] {
identifier[actions] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Update] operator[SEP] identifier[key] , identifier[v... |
public static byte[] generateLocalHMACForReqToken(
byte[] encryptedDataParam, byte[] keyParam, byte[] seedParam){
byte[] poisonedSeed = poisonBytes(seedParam);
//Add the seed to the password and SHA-256...
byte[] derivedKey = sha256(UtilGlobal.addAll(keyParam, poisonedSeed));
... | class class_name[name] begin[{]
method[generateLocalHMACForReqToken, return_type[type[byte]], modifier[public static], parameter[encryptedDataParam, keyParam, seedParam]] begin[{]
local_variable[type[byte], poisonedSeed]
local_variable[type[byte], derivedKey]
return[call[.hmacSha256, pa... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[generateLocalHMACForReqToken] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[encryptedDataParam] , Keyword[byte] operator[SEP] operator[SEP] identifier[keyParam] , Keyword[byte] operator[SEP] operator[SEP] identif... |
public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out)
throws Exception {
int beginPos = in.position();
int limit = in.limit();
for (int i = beginPos; i < limit; i++) {
byte b = in.get(i);
if (!canSkip(b)) {
in.position(i);
... | class class_name[name] begin[{]
method[decode, return_type[type[DecodingState]], modifier[public], parameter[in, out]] begin[{]
local_variable[type[int], beginPos]
local_variable[type[int], limit]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotati... | Keyword[public] identifier[DecodingState] identifier[decode] operator[SEP] identifier[IoBuffer] identifier[in] , identifier[ProtocolDecoderOutput] identifier[out] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[int] identifier[beginPos] operator[=] identifier[in] operator[SEP] identifier[position]... |
protected TableConfig getTrajectoryConfig(NetcdfDataset ds, EncodingInfo info, Formatter errlog) throws IOException {
if (!identifyEncodingTraj(ds, info, errlog)) return null;
TableConfig trajTable = makeStructTable(ds, FeatureType.TRAJECTORY, info, errlog);
if (trajTable == null) return null;
tra... | class class_name[name] begin[{]
method[getTrajectoryConfig, return_type[type[TableConfig]], modifier[protected], parameter[ds, info, errlog]] begin[{]
if[call[.identifyEncodingTraj, parameter[member[.ds], member[.info], member[.errlog]]]] begin[{]
return[literal[null]]
else begin[{]
Non... | Keyword[protected] identifier[TableConfig] identifier[getTrajectoryConfig] operator[SEP] identifier[NetcdfDataset] identifier[ds] , identifier[EncodingInfo] identifier[info] , identifier[Formatter] identifier[errlog] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] operator[!] ... |
public FleetLaunchTemplateConfigRequest withOverrides(FleetLaunchTemplateOverridesRequest... overrides) {
if (this.overrides == null) {
setOverrides(new com.amazonaws.internal.SdkInternalList<FleetLaunchTemplateOverridesRequest>(overrides.length));
}
for (FleetLaunchTemplateOverrides... | class class_name[name] begin[{]
method[withOverrides, return_type[type[FleetLaunchTemplateConfigRequest]], modifier[public], parameter[overrides]] begin[{]
if[binary_operation[THIS[member[None.overrides]], ==, literal[null]]] begin[{]
call[.setOverrides, parameter[ClassC... | Keyword[public] identifier[FleetLaunchTemplateConfigRequest] identifier[withOverrides] operator[SEP] identifier[FleetLaunchTemplateOverridesRequest] operator[...] identifier[overrides] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[overrides] operator[==] Other[null] operator[SE... |
public GetTemplateResult withStagesAvailable(TemplateStage... stagesAvailable) {
com.amazonaws.internal.SdkInternalList<String> stagesAvailableCopy = new com.amazonaws.internal.SdkInternalList<String>(stagesAvailable.length);
for (TemplateStage value : stagesAvailable) {
stagesAvailableCopy.... | class class_name[name] begin[{]
method[withStagesAvailable, return_type[type[GetTemplateResult]], modifier[public], parameter[stagesAvailable]] begin[{]
local_variable[type[com], stagesAvailableCopy]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodI... | Keyword[public] identifier[GetTemplateResult] identifier[withStagesAvailable] operator[SEP] identifier[TemplateStage] operator[...] identifier[stagesAvailable] operator[SEP] {
identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator... |
protected final PrcRevealTaxCat<RS>
createPutPrcRevealTaxCat(
final Map<String, Object> pAddParam) throws Exception {
PrcRevealTaxCat<RS> proc = new PrcRevealTaxCat<RS>();
proc.setLogger(getLogger());
proc.setSrvDatabase(getSrvDatabase());
//assigning fully initialized object:
this.process... | class class_name[name] begin[{]
method[createPutPrcRevealTaxCat, return_type[type[PrcRevealTaxCat]], modifier[final protected], parameter[pAddParam]] begin[{]
local_variable[type[PrcRevealTaxCat], proc]
call[proc.setLogger, parameter[call[.getLogger, parameter[]]]]
call[... | Keyword[protected] Keyword[final] identifier[PrcRevealTaxCat] operator[<] identifier[RS] operator[>] identifier[createPutPrcRevealTaxCat] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] identifier[Exception... |
@Override
public WorkspaceStorageConnection openConnection(boolean readOnly) throws RepositoryException
{
try
{
if (this.containerConfig.dbStructureType.isMultiDatabase())
{
return new DB2MultiDbJDBCConnection(getJdbcConnection(readOnly), readOnly, containerConfig);
... | class class_name[name] begin[{]
method[openConnection, return_type[type[WorkspaceStorageConnection]], modifier[public], parameter[readOnly]] begin[{]
TryStatement(block=[IfStatement(condition=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=containerConf... | annotation[@] identifier[Override] Keyword[public] identifier[WorkspaceStorageConnection] identifier[openConnection] operator[SEP] Keyword[boolean] identifier[readOnly] operator[SEP] Keyword[throws] identifier[RepositoryException] {
Keyword[try] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] ... |
public static double[][] transposeTimesTranspose(final double[][] m1, final double[][] m2) {
// Optimized implementation, exploiting the storage layout
assert m1.length == getColumnDimensionality(m2) : ERR_MATRIX_INNERDIM;
final double[][] re = new double[getColumnDimensionality(m1)][m2.length];
// Opti... | class class_name[name] begin[{]
method[transposeTimesTranspose, return_type[type[double]], modifier[public static], parameter[m1, m2]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=m1, selectors=[]), opera... | Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[transposeTimesTranspose] operator[SEP] Keyword[final] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[m1] , Keyword[final] Keyword[double] operator[SEP] operator[SEP] op... |
@Override
public synchronized void move(int line, int column) {
if (lines() < line) {
this.column = 1;
} else {
String targetLine = lines.get(line - 1);
if (targetLine.length() < column) {
this.column = targetLine.length() + 1;
} else {... | class class_name[name] begin[{]
method[move, return_type[void], modifier[synchronized public], parameter[line, column]] begin[{]
if[binary_operation[call[.lines, parameter[]], <, member[.line]]] begin[{]
assign[THIS[member[None.column]], literal[1]]
else begin[{]... | annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[move] operator[SEP] Keyword[int] identifier[line] , Keyword[int] identifier[column] operator[SEP] {
Keyword[if] operator[SEP] identifier[lines] operator[SEP] operator[SEP] operator[<] identifier[line] operator[SEP]... |
public Vector3d positiveZ(Vector3d dir) {
dir.x = m10 * m21 - m11 * m20;
dir.y = m20 * m01 - m21 * m00;
dir.z = m00 * m11 - m01 * m10;
return dir.normalize(dir);
} | class class_name[name] begin[{]
method[positiveZ, return_type[type[Vector3d]], modifier[public], parameter[dir]] begin[{]
assign[member[dir.x], binary_operation[binary_operation[member[.m10], *, member[.m21]], -, binary_operation[member[.m11], *, member[.m20]]]]
assign[member[di... | Keyword[public] identifier[Vector3d] identifier[positiveZ] operator[SEP] identifier[Vector3d] identifier[dir] operator[SEP] {
identifier[dir] operator[SEP] identifier[x] operator[=] identifier[m10] operator[*] identifier[m21] operator[-] identifier[m11] operator[*] identifier[m20] operator[SEP] identifier[dir] o... |
public ApiResponse<ApiSuccessResponse> getContentMediaWithHttpInfo(String mediatype, String id, GetContentData getContentData) throws ApiException {
com.squareup.okhttp.Call call = getContentMediaValidateBeforeCall(mediatype, id, getContentData, null, null);
Type localVarReturnType = new TypeToken<ApiSu... | class class_name[name] begin[{]
method[getContentMediaWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[mediatype, id, getContentData]] begin[{]
local_variable[type[com], call]
local_variable[type[Type], localVarReturnType]
return[call[apiClient.execute, paramete... | Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[getContentMediaWithHttpInfo] operator[SEP] identifier[String] identifier[mediatype] , identifier[String] identifier[id] , identifier[GetContentData] identifier[getContentData] operator[SEP] Keyword[throws] identi... |
public static void send(EntityPlayerMP player)
{
Packet packet = new Packet();
MalisisCore.network.sendTo(packet, player);
} | class class_name[name] begin[{]
method[send, return_type[void], modifier[public static], parameter[player]] begin[{]
local_variable[type[Packet], packet]
call[MalisisCore.network.sendTo, parameter[member[.packet], member[.player]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[send] operator[SEP] identifier[EntityPlayerMP] identifier[player] operator[SEP] {
identifier[Packet] identifier[packet] operator[=] Keyword[new] identifier[Packet] operator[SEP] operator[SEP] operator[SEP] identifier[MalisisCore] operator[SEP] identifier[n... |
private void compactGroups() {
for (int i = 0; i < groups.size(); i++) {
List<Segment> group = groups.get(i);
List<OffsetPredicate> groupPredicates = predicates.get(i);
Segment segment = compactGroup(group, groupPredicates);
mergeReleased(group, groupPredicates, segment);
deleteGroup(g... | class class_name[name] begin[{]
method[compactGroups, return_type[void], modifier[private], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Memb... | Keyword[private] Keyword[void] identifier[compactGroups] operator[SEP] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[groups] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] opera... |
@Override
public InputStream getInputStream() {
try {
LOGGER.debug("getInputStream getExternalIdentifier: {} {} ", property().getName(), getExternalIdentifier());
return URI.create(getExternalIdentifier()).toURL().openStream();
} catch (final MalformedURLException e) {
... | class class_name[name] begin[{]
method[getInputStream, return_type[type[InputStream]], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="getInputS... | annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[getInputStream] operator[SEP] operator[SEP] {
Keyword[try] {
identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[property] operator[SEP] operator[SEP] operator[SEP] identifi... |
public PagedList<WorkerPoolResourceInner> listMultiRolePoolsNext(final String nextPageLink) {
ServiceResponse<Page<WorkerPoolResourceInner>> response = listMultiRolePoolsNextSinglePageAsync(nextPageLink).toBlocking().single();
return new PagedList<WorkerPoolResourceInner>(response.body()) {
... | class class_name[name] begin[{]
method[listMultiRolePoolsNext, return_type[type[PagedList]], modifier[public], parameter[nextPageLink]] begin[{]
local_variable[type[ServiceResponse], response]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=body, postfix_operators=[], prefi... | Keyword[public] identifier[PagedList] operator[<] identifier[WorkerPoolResourceInner] operator[>] identifier[listMultiRolePoolsNext] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] {
identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[WorkerPoolR... |
public Constraint regexp(String regexp, String type) {
RegexpConstraint c = new RegexpConstraint(regexp);
c.setType(type);
return c;
} | class class_name[name] begin[{]
method[regexp, return_type[type[Constraint]], modifier[public], parameter[regexp, type]] begin[{]
local_variable[type[RegexpConstraint], c]
call[c.setType, parameter[member[.type]]]
return[member[.c]]
end[}]
END[}] | Keyword[public] identifier[Constraint] identifier[regexp] operator[SEP] identifier[String] identifier[regexp] , identifier[String] identifier[type] operator[SEP] {
identifier[RegexpConstraint] identifier[c] operator[=] Keyword[new] identifier[RegexpConstraint] operator[SEP] identifier[regexp] operator[SEP] oper... |
public void addAddon(MapAddon addon) {
if (null == addons) {
addons = new ArrayList<MapAddon>();
}
addons.add(addon);
} | class class_name[name] begin[{]
method[addAddon, return_type[void], modifier[public], parameter[addon]] begin[{]
if[binary_operation[literal[null], ==, member[.addons]]] begin[{]
assign[member[.addons], ClassCreator(arguments=[], body=None, constructor_type_arguments=Non... | Keyword[public] Keyword[void] identifier[addAddon] operator[SEP] identifier[MapAddon] identifier[addon] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] identifier[addons] operator[SEP] {
identifier[addons] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[MapAddo... |
public static Method getMostSpecificMethod(Method method, Class<?> targetClass) {
if (method != null && isOverridable(method, targetClass) &&
targetClass != null && targetClass != method.getDeclaringClass()) {
try {
if (Modifier.isPublic(method.getModifiers())) {
try {
return targetClass.getMeth... | class class_name[name] begin[{]
method[getMostSpecificMethod, return_type[type[Method]], modifier[public static], parameter[method, targetClass]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[member[.method], !=, literal[null]], &&, call[.isOverridable, paramet... | Keyword[public] Keyword[static] identifier[Method] identifier[getMostSpecificMethod] operator[SEP] identifier[Method] identifier[method] , identifier[Class] operator[<] operator[?] operator[>] identifier[targetClass] operator[SEP] {
Keyword[if] operator[SEP] identifier[method] operator[!=] Other[null] operator[... |
static VenmoConfiguration fromJson(JSONObject json) {
if (json == null) {
json = new JSONObject();
}
VenmoConfiguration venmoConfiguration = new VenmoConfiguration();
venmoConfiguration.mAccessToken = Json.optString(json, ACCESS_TOKEN_KEY, "");
venmoConfiguration.mEn... | class class_name[name] begin[{]
method[fromJson, return_type[type[VenmoConfiguration]], modifier[static], parameter[json]] begin[{]
if[binary_operation[member[.json], ==, literal[null]]] begin[{]
assign[member[.json], ClassCreator(arguments=[], body=None, constructor_typ... | Keyword[static] identifier[VenmoConfiguration] identifier[fromJson] operator[SEP] identifier[JSONObject] identifier[json] operator[SEP] {
Keyword[if] operator[SEP] identifier[json] operator[==] Other[null] operator[SEP] {
identifier[json] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] o... |
@Override
public Map<String, Object> toSource() {
Map<String, Object> sourceMap = new HashMap<>();
if (createdBy != null) {
addFieldToSource(sourceMap, "createdBy", createdBy);
}
if (createdTime != null) {
addFieldToSource(sourceMap, "createdTime", createdTime... | class class_name[name] begin[{]
method[toSource, return_type[type[Map]], modifier[public], parameter[]] begin[{]
local_variable[type[Map], sourceMap]
if[binary_operation[member[.createdBy], !=, literal[null]]] begin[{]
call[.addFieldToSource, parameter[member[.so... | annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[toSource] operator[SEP] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[sourceMap] operator[=] Keyword[new] id... |
static void refreshKXP(final CpcSketch sketch, final long[] bitMatrix) {
final int k = (1 << sketch.lgK);
// for improved numerical accuracy, we separately sum the bytes of the U64's
final double[] byteSums = new double[8];
for (int j = 0; j < 8; j++) { byteSums[j] = 0.0; }
for (int i = 0; i < k;... | class class_name[name] begin[{]
method[refreshKXP, return_type[void], modifier[static], parameter[sketch, bitMatrix]] begin[{]
local_variable[type[int], k]
local_variable[type[double], byteSums]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assi... | Keyword[static] Keyword[void] identifier[refreshKXP] operator[SEP] Keyword[final] identifier[CpcSketch] identifier[sketch] , Keyword[final] Keyword[long] operator[SEP] operator[SEP] identifier[bitMatrix] operator[SEP] {
Keyword[final] Keyword[int] identifier[k] operator[=] operator[SEP] Other[1] operator[<<] id... |
protected boolean mapPropertyNameToParameterizedStateChangeCallback(String propertyName,
ParameterizedStateChangeCallback callback) {
propertyNameToParameterizedStateChangeCallbackMapping.put(propertyName, callback);
return propertyNameToParameterizedStateChangeCallbackMapping.containsKey(propertyName);
... | class class_name[name] begin[{]
method[mapPropertyNameToParameterizedStateChangeCallback, return_type[type[boolean]], modifier[protected], parameter[propertyName, callback]] begin[{]
call[propertyNameToParameterizedStateChangeCallbackMapping.put, parameter[member[.propertyName], member[.callbac... | Keyword[protected] Keyword[boolean] identifier[mapPropertyNameToParameterizedStateChangeCallback] operator[SEP] identifier[String] identifier[propertyName] , identifier[ParameterizedStateChangeCallback] identifier[callback] operator[SEP] {
identifier[propertyNameToParameterizedStateChangeCallbackMapping] operat... |
@Override
public GetConnectivityInfoResult getConnectivityInfo(GetConnectivityInfoRequest request) {
request = beforeClientExecution(request);
return executeGetConnectivityInfo(request);
} | class class_name[name] begin[{]
method[getConnectivityInfo, return_type[type[GetConnectivityInfoResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeGetConnectivityInfo, parameter... | annotation[@] identifier[Override] Keyword[public] identifier[GetConnectivityInfoResult] identifier[getConnectivityInfo] operator[SEP] identifier[GetConnectivityInfoRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope... |
public OvhUserDetail project_serviceName_user_userId_regeneratePassword_POST(String serviceName, Long userId) throws IOException {
String qPath = "/cloud/project/{serviceName}/user/{userId}/regeneratePassword";
StringBuilder sb = path(qPath, serviceName, userId);
String resp = exec(qPath, "POST", sb.toString(), n... | class class_name[name] begin[{]
method[project_serviceName_user_userId_regeneratePassword_POST, return_type[type[OvhUserDetail]], modifier[public], parameter[serviceName, userId]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
local_variable[type[St... | Keyword[public] identifier[OvhUserDetail] identifier[project_serviceName_user_userId_regeneratePassword_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[Long] identifier[userId] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[qPath] operator[=] li... |
private void publish(String buffer){
CommandResult out = new CommandResult(myType);
out.setContent(buffer);
synchronized (lock) {
publisher.publish(topic, out.toString());
}
} | class class_name[name] begin[{]
method[publish, return_type[void], modifier[private], parameter[buffer]] begin[{]
local_variable[type[CommandResult], out]
call[out.setContent, parameter[member[.buffer]]]
SYNCHRONIZED[member[.lock]] BEGIN[{]
call[p... | Keyword[private] Keyword[void] identifier[publish] operator[SEP] identifier[String] identifier[buffer] operator[SEP] {
identifier[CommandResult] identifier[out] operator[=] Keyword[new] identifier[CommandResult] operator[SEP] identifier[myType] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier... |
public static String getScript(String path) {
StringBuilder sb = new StringBuilder();
InputStream stream = ScriptUtil.class.getClassLoader().getResourceAsStream(path);
try (BufferedReader br = new BufferedReader(new InputStreamReader(stream))){
String str;
while ((str =... | class class_name[name] begin[{]
method[getScript, return_type[type[String]], modifier[public static], parameter[path]] begin[{]
local_variable[type[StringBuilder], sb]
local_variable[type[InputStream], stream]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Var... | Keyword[public] Keyword[static] identifier[String] identifier[getScript] operator[SEP] identifier[String] identifier[path] operator[SEP] {
identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[InputStream] identifier[strea... |
protected NodeData createPageStyle()
{
NodeData ret = createBlockStyle();
TermFactory tf = CSSFactory.getTermFactory();
ret.push(createDeclaration("position", tf.createIdent("relative")));
ret.push(createDeclaration("border-width", tf.createLength(1f, Unit.px)));
ret.push(createDeclarati... | class class_name[name] begin[{]
method[createPageStyle, return_type[type[NodeData]], modifier[protected], parameter[]] begin[{]
local_variable[type[NodeData], ret]
local_variable[type[TermFactory], tf]
call[ret.push, parameter[call[.createDeclaration, parameter[literal["position... | Keyword[protected] identifier[NodeData] identifier[createPageStyle] operator[SEP] operator[SEP] {
identifier[NodeData] identifier[ret] operator[=] identifier[createBlockStyle] operator[SEP] operator[SEP] operator[SEP] identifier[TermFactory] identifier[tf] operator[=] identifier[CSSFactory] operator[SEP] identif... |
public static String readUrlContentQuietly( String url, Logger logger ) {
String result = "";
try {
result = readUrlContent( url );
} catch( Exception e ) {
logger.severe( "Content of URL " + url + " could not be read." );
logException( logger, e );
}
return result;
} | class class_name[name] begin[{]
method[readUrlContentQuietly, return_type[type[String]], modifier[public static], parameter[url, logger]] begin[{]
local_variable[type[String], result]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfi... | Keyword[public] Keyword[static] identifier[String] identifier[readUrlContentQuietly] operator[SEP] identifier[String] identifier[url] , identifier[Logger] identifier[logger] operator[SEP] {
identifier[String] identifier[result] operator[=] literal[String] operator[SEP] Keyword[try] {
identifier[resul... |
protected void handleResponse(Object control) {
this.sorted = (Boolean) invokeMethod("isSorted", responseControlClass, control);
this.resultCode = (Integer) invokeMethod("getResultCode", responseControlClass, control);
} | class class_name[name] begin[{]
method[handleResponse, return_type[void], modifier[protected], parameter[control]] begin[{]
assign[THIS[member[None.sorted]], Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="isSor... | Keyword[protected] Keyword[void] identifier[handleResponse] operator[SEP] identifier[Object] identifier[control] operator[SEP] {
Keyword[this] operator[SEP] identifier[sorted] operator[=] operator[SEP] identifier[Boolean] operator[SEP] identifier[invokeMethod] operator[SEP] literal[String] , identifier[response... |
public void addDependencies( Project project, List<String> scopes ) throws ProjectException {
for ( org.apache.maven.model.Dependency dependency : project.getDependencies(scopes) ) {
addDependency( dependency );
}
// Add remote repositories from pom
for ( Repository ... | class class_name[name] begin[{]
method[addDependencies, return_type[void], modifier[public], parameter[project, scopes]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=dependency, postfix_operators=[], ... | Keyword[public] Keyword[void] identifier[addDependencies] operator[SEP] identifier[Project] identifier[project] , identifier[List] operator[<] identifier[String] operator[>] identifier[scopes] operator[SEP] Keyword[throws] identifier[ProjectException] {
Keyword[for] operator[SEP] identifier[org] operator[SEP] i... |
@Deprecated
public void copyFromMaster(Storable indexEntry, S master) throws FetchException {
getReferenceAccess().copyFromMaster(indexEntry, master);
} | class class_name[name] begin[{]
method[copyFromMaster, return_type[void], modifier[public], parameter[indexEntry, master]] begin[{]
call[.getReferenceAccess, parameter[]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[copyFromMaster] operator[SEP] identifier[Storable] identifier[indexEntry] , identifier[S] identifier[master] operator[SEP] Keyword[throws] identifier[FetchException] {
identifier[getReferenceAccess] operator[SEP] operator[SEP] operato... |
@BackpressureSupport(BackpressureKind.SPECIAL)
@SchedulerSupport(SchedulerSupport.NONE)
@CheckReturnValue
public final Flowable<T> limit(long count) {
if (count < 0) {
throw new IllegalArgumentException("count >= 0 required but it was " + count);
}
return RxJavaPlugins.on... | class class_name[name] begin[{]
method[limit, return_type[type[Flowable]], modifier[final public], parameter[count]] begin[{]
if[binary_operation[member[.count], <, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_opera... | annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[SPECIAL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] annotation[@] identifier[CheckReturnValue] Keyword[p... |
private void mapFilesInZip(String fileName) {
File file = new File(fileName);
fileCreationTimes.put(file, new Long(file.lastModified()));
ZipFile zipfile;
try {
zipfile = new ZipFile(fileName);
} catch (IOException ioe) {
throw new NoClassDefFoundError("class location '" + fileName + "' can not be acce... | class class_name[name] begin[{]
method[mapFilesInZip, return_type[void], modifier[private], parameter[fileName]] begin[{]
local_variable[type[File], file]
call[fileCreationTimes.put, parameter[member[.file], ClassCreator(arguments=[MethodInvocation(arguments=[], member=lastModified, pos... | Keyword[private] Keyword[void] identifier[mapFilesInZip] operator[SEP] identifier[String] identifier[fileName] operator[SEP] {
identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] identifier[fileCreationTimes] operator[SEP] ide... |
public CacheManagerBuilder<T> withDefaultSizeOfMaxObjectSize(long size, MemoryUnit unit) {
DefaultSizeOfEngineProviderConfiguration configuration = configBuilder.findServiceByClass(DefaultSizeOfEngineProviderConfiguration.class);
if (configuration == null) {
return new CacheManagerBuilder<>(this, configBu... | class class_name[name] begin[{]
method[withDefaultSizeOfMaxObjectSize, return_type[type[CacheManagerBuilder]], modifier[public], parameter[size, unit]] begin[{]
local_variable[type[DefaultSizeOfEngineProviderConfiguration], configuration]
if[binary_operation[member[.configuration], ==, ... | Keyword[public] identifier[CacheManagerBuilder] operator[<] identifier[T] operator[>] identifier[withDefaultSizeOfMaxObjectSize] operator[SEP] Keyword[long] identifier[size] , identifier[MemoryUnit] identifier[unit] operator[SEP] {
identifier[DefaultSizeOfEngineProviderConfiguration] identifier[configuration] o... |
@Override
public List<CPFriendlyURLEntry> findByG_C_C_M(long groupId,
long classNameId, long classPK, boolean main) {
return findByG_C_C_M(groupId, classNameId, classPK, main,
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
} | class class_name[name] begin[{]
method[findByG_C_C_M, return_type[type[List]], modifier[public], parameter[groupId, classNameId, classPK, main]] begin[{]
return[call[.findByG_C_C_M, parameter[member[.groupId], member[.classNameId], member[.classPK], member[.main], member[QueryUtil.ALL_POS], member[Quer... | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPFriendlyURLEntry] operator[>] identifier[findByG_C_C_M] operator[SEP] Keyword[long] identifier[groupId] , Keyword[long] identifier[classNameId] , Keyword[long] identifier[classPK] , Keyword[boolean] identifier[main] operator... |
private JSONObject readJSONObjFromWire(MessagingChannel messagingChannel) throws IOException, JSONException {
ByteBuffer messageBytes = messagingChannel.readMessage();
JSONObject jsObj = new JSONObject(new String(messageBytes.array(), StandardCharsets.UTF_8));
return jsObj;
} | class class_name[name] begin[{]
method[readJSONObjFromWire, return_type[type[JSONObject]], modifier[private], parameter[messagingChannel]] begin[{]
local_variable[type[ByteBuffer], messageBytes]
local_variable[type[JSONObject], jsObj]
return[member[.jsObj]]
end[}]
END[}] | Keyword[private] identifier[JSONObject] identifier[readJSONObjFromWire] operator[SEP] identifier[MessagingChannel] identifier[messagingChannel] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JSONException] {
identifier[ByteBuffer] identifier[messageBytes] operator[=] identifier[messagingChan... |
public static base_response update(nitro_service client, gslbparameter resource) throws Exception {
gslbparameter updateresource = new gslbparameter();
updateresource.ldnsentrytimeout = resource.ldnsentrytimeout;
updateresource.rtttolerance = resource.rtttolerance;
updateresource.ldnsmask = resource.ldnsmask;
... | class class_name[name] begin[{]
method[update, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{]
local_variable[type[gslbparameter], updateresource]
assign[member[updateresource.ldnsentrytimeout], member[resource.ldnsentrytimeout]]
... | Keyword[public] Keyword[static] identifier[base_response] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[gslbparameter] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[gslbparameter] identifier[updateresource] operator[=] Keyword[... |
public static base_response delete(nitro_service client, String servicename) throws Exception {
gslbservice deleteresource = new gslbservice();
deleteresource.servicename = servicename;
return deleteresource.delete_resource(client);
} | class class_name[name] begin[{]
method[delete, return_type[type[base_response]], modifier[public static], parameter[client, servicename]] begin[{]
local_variable[type[gslbservice], deleteresource]
assign[member[deleteresource.servicename], member[.servicename]]
return[call[delet... | Keyword[public] Keyword[static] identifier[base_response] identifier[delete] operator[SEP] identifier[nitro_service] identifier[client] , identifier[String] identifier[servicename] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[gslbservice] identifier[deleteresource] operator[=] Keyword[new] i... |
public void delete_server_info(Database database, String serverName) throws DevFailed {
if (!database.isAccess_checked()) checkAccess(database);
DeviceData argIn = new DeviceData();
argIn.insert(serverName);
command_inout(database, "DbDeleteServerInfo", argIn);
} | class class_name[name] begin[{]
method[delete_server_info, return_type[void], modifier[public], parameter[database, serverName]] begin[{]
if[call[database.isAccess_checked, parameter[]]] begin[{]
call[.checkAccess, parameter[member[.database]]]
else begin[{]
None
end... | Keyword[public] Keyword[void] identifier[delete_server_info] operator[SEP] identifier[Database] identifier[database] , identifier[String] identifier[serverName] operator[SEP] Keyword[throws] identifier[DevFailed] {
Keyword[if] operator[SEP] operator[!] identifier[database] operator[SEP] identifier[isAccess_chec... |
public <X> List<ParameterInjectionPoint<?, X>> getParameterInjectionPoints(EnhancedAnnotatedCallable<?, X, ?> callable,
Bean<?> declaringBean, Class<?> declaringComponentClass, BeanManagerImpl manager, boolean observerOrDisposer) {
List<ParameterInjectionPoint<?, X>> parameters = new ArrayList<Param... | class class_name[name] begin[{]
method[getParameterInjectionPoints, return_type[type[List]], modifier[public], parameter[callable, declaringBean, declaringComponentClass, manager, observerOrDisposer]] begin[{]
local_variable[type[List], parameters]
local_variable[type[Bean], bean]
... | Keyword[public] operator[<] identifier[X] operator[>] identifier[List] operator[<] identifier[ParameterInjectionPoint] operator[<] operator[?] , identifier[X] operator[>] operator[>] identifier[getParameterInjectionPoints] operator[SEP] identifier[EnhancedAnnotatedCallable] operator[<] operator[?] , identifier[X] , ... |
public ResponseWrapper deleteCrossBlacklist(String username, CrossBlacklist[] blacklists)
throws APIConnectionException, APIRequestException {
StringUtils.checkUsername(username);
CrossBlacklistPayload payload = new CrossBlacklistPayload.Builder()
.setCrossBlacklists(blacklis... | class class_name[name] begin[{]
method[deleteCrossBlacklist, return_type[type[ResponseWrapper]], modifier[public], parameter[username, blacklists]] begin[{]
call[StringUtils.checkUsername, parameter[member[.username]]]
local_variable[type[CrossBlacklistPayload], payload]
return[... | Keyword[public] identifier[ResponseWrapper] identifier[deleteCrossBlacklist] operator[SEP] identifier[String] identifier[username] , identifier[CrossBlacklist] operator[SEP] operator[SEP] identifier[blacklists] operator[SEP] Keyword[throws] identifier[APIConnectionException] , identifier[APIRequestException] {
... |
private static StepPattern createDefaultStepPattern(
Compiler compiler, int opPos, MatchPatternIterator mpi,
int analysis, StepPattern tail, StepPattern head)
throws javax.xml.transform.TransformerException
{
int stepType = compiler.getOp(opPos);
boolean simpleInit = false;
... | class class_name[name] begin[{]
method[createDefaultStepPattern, return_type[type[StepPattern]], modifier[private static], parameter[compiler, opPos, mpi, analysis, tail, head]] begin[{]
local_variable[type[int], stepType]
local_variable[type[boolean], simpleInit]
local_variable[type[bo... | Keyword[private] Keyword[static] identifier[StepPattern] identifier[createDefaultStepPattern] operator[SEP] identifier[Compiler] identifier[compiler] , Keyword[int] identifier[opPos] , identifier[MatchPatternIterator] identifier[mpi] , Keyword[int] identifier[analysis] , identifier[StepPattern] identifier[tail] , ... |
@Pure
public List<File> getSourcePaths() {
if (this.sourcePath == null) {
return Collections.emptyList();
}
return Collections.unmodifiableList(this.sourcePath);
} | class class_name[name] begin[{]
method[getSourcePaths, return_type[type[List]], modifier[public], parameter[]] begin[{]
if[binary_operation[THIS[member[None.sourcePath]], ==, literal[null]]] begin[{]
return[call[Collections.emptyList, parameter[]]]
else begin[{]
None
... | annotation[@] identifier[Pure] Keyword[public] identifier[List] operator[<] identifier[File] operator[>] identifier[getSourcePaths] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[sourcePath] operator[==] Other[null] operator[SEP] {
Keyword[return] identi... |
private boolean eq(final String name1, final String name2) {
int nameLen = name1.length();
if (nameLen != name2.length()) {
return false;
}
for (int i = nameLen - 1; i >= 0; i--) {
char c1 = name1.charAt(i);
char c2 = name2.charAt(i);
if (c1 != c2) {
if (caseSensitive) {
return false;
... | class class_name[name] begin[{]
method[eq, return_type[type[boolean]], modifier[private], parameter[name1, name2]] begin[{]
local_variable[type[int], nameLen]
if[binary_operation[member[.nameLen], !=, call[name2.length, parameter[]]]] begin[{]
return[literal[false]]
... | Keyword[private] Keyword[boolean] identifier[eq] operator[SEP] Keyword[final] identifier[String] identifier[name1] , Keyword[final] identifier[String] identifier[name2] operator[SEP] {
Keyword[int] identifier[nameLen] operator[=] identifier[name1] operator[SEP] identifier[length] operator[SEP] operator[SEP] ope... |
public double[] getDerivedDimensions() {
Double width = getWidth();
Double height = getHeight();
if (width == null || height == null) {
int dataWidth;
int dataHeight;
try {
BufferedImage image = getDataImage();
dataWidth = image.getWidth();
dataHeight = image.getHeight();
} catch (IOEx... | class class_name[name] begin[{]
method[getDerivedDimensions, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[Double], width]
local_variable[type[Double], height]
if[binary_operation[binary_operation[member[.width], ==, literal[null]], ||, b... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getDerivedDimensions] operator[SEP] operator[SEP] {
identifier[Double] identifier[width] operator[=] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] identifier[Double] identifier[height] operator[=] identifier[getHeight] operat... |
public void setSupportedTuningJobObjectiveMetrics(java.util.Collection<HyperParameterTuningJobObjective> supportedTuningJobObjectiveMetrics) {
if (supportedTuningJobObjectiveMetrics == null) {
this.supportedTuningJobObjectiveMetrics = null;
return;
}
this.supportedTuning... | class class_name[name] begin[{]
method[setSupportedTuningJobObjectiveMetrics, return_type[void], modifier[public], parameter[supportedTuningJobObjectiveMetrics]] begin[{]
if[binary_operation[member[.supportedTuningJobObjectiveMetrics], ==, literal[null]]] begin[{]
assign... | Keyword[public] Keyword[void] identifier[setSupportedTuningJobObjectiveMetrics] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[HyperParameterTuningJobObjective] operator[>] identifier[supportedTuningJobObjectiveMetrics] operator[SEP] {
Ke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.