code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public java.util.List<Workspace> getPendingRequests() { if (pendingRequests == null) { pendingRequests = new com.amazonaws.internal.SdkInternalList<Workspace>(); } return pendingRequests; }
class class_name[name] begin[{] method[getPendingRequests, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.pendingRequests], ==, literal[null]]] begin[{] assign[member[.pendingRequests], ClassCreator(arguments=[], body=None, c...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[Workspace] operator[>] identifier[getPendingRequests] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pendingRequests] operator[==] Other[null] operator[SEP] { ident...
public static <T> ExpiringReference<T> create (T value, long expireMillis) { return new ExpiringReference<T>(value, expireMillis); }
class class_name[name] begin[{] method[create, return_type[type[ExpiringReference]], modifier[public static], parameter[value, expireMillis]] begin[{] return[ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(membe...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ExpiringReference] operator[<] identifier[T] operator[>] identifier[create] operator[SEP] identifier[T] identifier[value] , Keyword[long] identifier[expireMillis] operator[SEP] { Keyword[return] Keyword[new] identifier[ExpiringRefe...
public void updateFromEntry(UpdateInodeFileEntry entry) { if (entry.hasPersistJobId()) { setPersistJobId(entry.getPersistJobId()); } if (entry.hasReplicationMax()) { setReplicationMax(entry.getReplicationMax()); } if (entry.hasReplicationMin()) { setReplicationMin(entry.getReplicat...
class class_name[name] begin[{] method[updateFromEntry, return_type[void], modifier[public], parameter[entry]] begin[{] if[call[entry.hasPersistJobId, parameter[]]] begin[{] call[.setPersistJobId, parameter[call[entry.getPersistJobId, parameter[]]]] else begin[{]...
Keyword[public] Keyword[void] identifier[updateFromEntry] operator[SEP] identifier[UpdateInodeFileEntry] identifier[entry] operator[SEP] { Keyword[if] operator[SEP] identifier[entry] operator[SEP] identifier[hasPersistJobId] operator[SEP] operator[SEP] operator[SEP] { identifier[setPersistJobId] opera...
public static int intersectQuad (float x1, float y1, float cx, float cy, float x2, float y2, float rx1, float ry1, float rx2, float ry2) { // LEFT/RIGHT/UP ------------------------------------------------------ if ((rx2 < x1 && rx2 < cx && rx2 < x2) || (rx1 > x1 && r...
class class_name[name] begin[{] method[intersectQuad, return_type[type[int]], modifier[public static], parameter[x1, y1, cx, cy, x2, y2, rx1, ry1, rx2, ry2]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.rx2], <, member[.x1]], &&, binar...
Keyword[public] Keyword[static] Keyword[int] identifier[intersectQuad] operator[SEP] Keyword[float] identifier[x1] , Keyword[float] identifier[y1] , Keyword[float] identifier[cx] , Keyword[float] identifier[cy] , Keyword[float] identifier[x2] , Keyword[float] identifier[y2] , Keyword[float] identifier[rx1] , Key...
public static Update forEach(String field, UpdateQuery q, ForEachUpdate u) { Update x = new Update(false); ObjectNode fe = JsonNodeFactory.instance.objectNode(); fe.set(field, q.toJson()); fe.set("$update", u.toJson()); ...
class class_name[name] begin[{] method[forEach, return_type[type[Update]], modifier[public static], parameter[field, q, u]] begin[{] local_variable[type[Update], x] local_variable[type[ObjectNode], fe] call[fe.set, parameter[member[.field], call[q.toJson, parameter[]]]] ...
Keyword[public] Keyword[static] identifier[Update] identifier[forEach] operator[SEP] identifier[String] identifier[field] , identifier[UpdateQuery] identifier[q] , identifier[ForEachUpdate] identifier[u] operator[SEP] { identifier[Update] identifier[x] operator[=] Keyword[new] identifier[Update] operator[SEP] ...
public HttpInputStream get(URL url, boolean failIfNotOK, boolean followRedirects) throws IOException { String urlString = url.toString(); // presuming that not following redirects means no // preemptive authN HttpClient clien...
class class_name[name] begin[{] method[get, return_type[type[HttpInputStream]], modifier[public], parameter[url, failIfNotOK, followRedirects]] begin[{] local_variable[type[String], urlString] local_variable[type[HttpClient], client] local_variable[type[HttpGet], getMethod] loca...
Keyword[public] identifier[HttpInputStream] identifier[get] operator[SEP] identifier[URL] identifier[url] , Keyword[boolean] identifier[failIfNotOK] , Keyword[boolean] identifier[followRedirects] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[urlString] operator[=] identi...
@Override public CPOption create(long CPOptionId) { CPOption cpOption = new CPOptionImpl(); cpOption.setNew(true); cpOption.setPrimaryKey(CPOptionId); String uuid = PortalUUIDUtil.generate(); cpOption.setUuid(uuid); cpOption.setCompanyId(companyProvider.getCompanyId()); return cpOption; }
class class_name[name] begin[{] method[create, return_type[type[CPOption]], modifier[public], parameter[CPOptionId]] begin[{] local_variable[type[CPOption], cpOption] call[cpOption.setNew, parameter[literal[true]]] call[cpOption.setPrimaryKey, parameter[member[.CPOptionI...
annotation[@] identifier[Override] Keyword[public] identifier[CPOption] identifier[create] operator[SEP] Keyword[long] identifier[CPOptionId] operator[SEP] { identifier[CPOption] identifier[cpOption] operator[=] Keyword[new] identifier[CPOptionImpl] operator[SEP] operator[SEP] operator[SEP] identifier[cpOption] ...
public static double distanceToNearestPoint(Point point, Front front, PointDistance distance) { if (front == null) { throw new NullFrontException(); } else if (front.getNumberOfPoints() == 0) { throw new EmptyFrontException(); } else if (point == null) { throw new JMetalException("The poin...
class class_name[name] begin[{] method[distanceToNearestPoint, return_type[type[double]], modifier[public static], parameter[point, front, distance]] begin[{] if[binary_operation[member[.front], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=N...
Keyword[public] Keyword[static] Keyword[double] identifier[distanceToNearestPoint] operator[SEP] identifier[Point] identifier[point] , identifier[Front] identifier[front] , identifier[PointDistance] identifier[distance] operator[SEP] { Keyword[if] operator[SEP] identifier[front] operator[==] Other[null] operat...
public void setNames(FSArray v) { if (EntityAttribute_Type.featOkTst && ((EntityAttribute_Type)jcasType).casFeat_names == null) jcasType.jcas.throwFeatMissing("names", "de.julielab.jules.types.ace.EntityAttribute"); jcasType.ll_cas.ll_setRefValue(addr, ((EntityAttribute_Type)jcasType).casFeatCode_names, j...
class class_name[name] begin[{] method[setNames, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[EntityAttribute_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, s...
Keyword[public] Keyword[void] identifier[setNames] operator[SEP] identifier[FSArray] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[EntityAttribute_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[EntityAttribute_Type] operator[SEP] identifier[jcas...
public ProcessInstance lockProcessInstance(final ProcessInstance processInstance, final boolean techSupport, final String userName) { List<Lock> locks = ContextUtils.getLocks(processInstance,getLockFactory(),"nz.co.senanque.workflow.WorkflowClient.lock(ProcessInstance)"); LockTemplate lockTemplate = new LockTemplat...
class class_name[name] begin[{] method[lockProcessInstance, return_type[type[ProcessInstance]], modifier[public], parameter[processInstance, techSupport, userName]] begin[{] local_variable[type[List], locks] local_variable[type[LockTemplate], lockTemplate] local_variable[type[boolean], ...
Keyword[public] identifier[ProcessInstance] identifier[lockProcessInstance] operator[SEP] Keyword[final] identifier[ProcessInstance] identifier[processInstance] , Keyword[final] Keyword[boolean] identifier[techSupport] , Keyword[final] identifier[String] identifier[userName] operator[SEP] { identifier[List] op...
public void setStackSummaries(java.util.Collection<StackSummary> stackSummaries) { if (stackSummaries == null) { this.stackSummaries = null; return; } this.stackSummaries = new com.amazonaws.internal.SdkInternalList<StackSummary>(stackSummaries); }
class class_name[name] begin[{] method[setStackSummaries, return_type[void], modifier[public], parameter[stackSummaries]] begin[{] if[binary_operation[member[.stackSummaries], ==, literal[null]]] begin[{] assign[THIS[member[None.stackSummaries]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setStackSummaries] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[StackSummary] operator[>] identifier[stackSummaries] operator[SEP] { Keyword[if] operator[SEP] identifier[stackSummaries] operator[...
public DateInterval move( long amount, IsoDateUnit unit ) { if (amount == 0) { return this; } Boundary<PlainDate> s; Boundary<PlainDate> e; if (this.getStart().isInfinite()) { s = Boundary.infinitePast(); } else { ...
class class_name[name] begin[{] method[move, return_type[type[DateInterval]], modifier[public], parameter[amount, unit]] begin[{] if[binary_operation[member[.amount], ==, literal[0]]] begin[{] return[THIS[]] else begin[{] None end[}] local_variable[type[Bound...
Keyword[public] identifier[DateInterval] identifier[move] operator[SEP] Keyword[long] identifier[amount] , identifier[IsoDateUnit] identifier[unit] operator[SEP] { Keyword[if] operator[SEP] identifier[amount] operator[==] Other[0] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } ...
public static final <T> Stream<T> diGraph(T root, Function<? super T, ? extends Stream<T>> edges) { return DiGraphIterator.stream(root, edges); }
class class_name[name] begin[{] method[diGraph, return_type[type[Stream]], modifier[final public static], parameter[root, edges]] begin[{] return[call[DiGraphIterator.stream, parameter[member[.root], member[.edges]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] operator[>] identifier[Stream] operator[<] identifier[T] operator[>] identifier[diGraph] operator[SEP] identifier[T] identifier[root] , identifier[Function] operator[<] operator[?] Keyword[super] identifier[T] , operator[?] Keyword[extends] iden...
public static void main(String[] args) { BasicConfigurator.configure(new ConsoleAppender( new PatternLayout("%d [%-25t] %-5p: %m%n"))); CmdLineParser parser = new CmdLineParser(); CmdLineParser.Option help = parser.addBooleanOption('h', "help"); CmdLineParser.Option port = parser.addIntegerOption('p', "port...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] call[BasicConfigurator.configure, parameter[ClassCreator(arguments=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[BasicConfigurator] operator[SEP] identifier[configure] operator[SEP] Keyword[new] identifier[ConsoleAppender] operator[SEP] Keyword[new] identifi...
protected RawData __render(String template, Object... args) { if (null == template) return new RawData(""); return S.raw(__engine.sandbox().render(template, args)); }
class class_name[name] begin[{] method[__render, return_type[type[RawData]], modifier[protected], parameter[template, args]] begin[{] if[binary_operation[literal[null], ==, member[.template]]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=N...
Keyword[protected] identifier[RawData] identifier[__render] operator[SEP] identifier[String] identifier[template] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[template] operator[SEP] Keyword[return] Keyword[new] identifier[RawD...
@Override public CreateBotVersionResult createBotVersion(CreateBotVersionRequest request) { request = beforeClientExecution(request); return executeCreateBotVersion(request); }
class class_name[name] begin[{] method[createBotVersion, return_type[type[CreateBotVersionResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateBotVersion, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[CreateBotVersionResult] identifier[createBotVersion] operator[SEP] identifier[CreateBotVersionRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
public void read(AttributeSet other) { for (Iterator<Attribute<?>> iterator = attributes.values().iterator(); iterator.hasNext();) { Attribute<Object> attribute = (Attribute<Object>) iterator.next(); Attribute<Object> a = other.attribute(attribute.name()); if (a.isModified()) { ...
class class_name[name] begin[{] method[read, return_type[void], modifier[public], parameter[other]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(argu...
Keyword[public] Keyword[void] identifier[read] operator[SEP] identifier[AttributeSet] identifier[other] operator[SEP] { Keyword[for] operator[SEP] identifier[Iterator] operator[<] identifier[Attribute] operator[<] operator[?] operator[>] operator[>] identifier[iterator] operator[=] identifier[attributes] operato...
public void setItems(java.util.Collection<Integration> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<Integration>(items); }
class class_name[name] begin[{] method[setItems, return_type[void], modifier[public], parameter[items]] begin[{] if[binary_operation[member[.items], ==, literal[null]]] begin[{] assign[THIS[member[None.items]], literal[null]] return[None] else begin[{...
Keyword[public] Keyword[void] identifier[setItems] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Integration] operator[>] identifier[items] operator[SEP] { Keyword[if] operator[SEP] identifier[items] operator[==] Other[null] operator[SEP...
@CheckReturnValue public PermOverrideManager deny(Permission... permissions) { Checks.notNull(permissions, "Permissions"); return deny(Permission.getRaw(permissions)); }
class class_name[name] begin[{] method[deny, return_type[type[PermOverrideManager]], modifier[public], parameter[permissions]] begin[{] call[Checks.notNull, parameter[member[.permissions], literal["Permissions"]]] return[call[.deny, parameter[call[Permission.getRaw, parameter[member[.pe...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[PermOverrideManager] identifier[deny] operator[SEP] identifier[Permission] operator[...] identifier[permissions] operator[SEP] { identifier[Checks] operator[SEP] identifier[notNull] operator[SEP] identifier[permissions] , literal[String] oper...
public boolean mergeCancellingPairs() { final Multimap<UUID, Item> cancellingPairPerInvoiceItemId = LinkedListMultimap.<UUID, Item>create(); for (final Item item : items) { final UUID invoiceItemId = (item.getAction() == ItemAction.ADD) ? item.getId() : item.getLinkedId(); cancel...
class class_name[name] begin[{] method[mergeCancellingPairs, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[Multimap], cancellingPairPerInvoiceItemId] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], decla...
Keyword[public] Keyword[boolean] identifier[mergeCancellingPairs] operator[SEP] operator[SEP] { Keyword[final] identifier[Multimap] operator[<] identifier[UUID] , identifier[Item] operator[>] identifier[cancellingPairPerInvoiceItemId] operator[=] identifier[LinkedListMultimap] operator[SEP] operator[<] identifi...
public static void insertBand( GrayF64 input, int band , InterleavedF64 output) { final int numBands = output.numBands; for (int y = 0; y < input.height; y++) { int indexIn = input.getStartIndex() + y * input.getStride(); int indexOut = output.getStartIndex() + y * output.getStride() + band; int end = ind...
class class_name[name] begin[{] method[insertBand, return_type[void], modifier[public static], parameter[input, band, output]] begin[{] local_variable[type[int], numBands] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
Keyword[public] Keyword[static] Keyword[void] identifier[insertBand] operator[SEP] identifier[GrayF64] identifier[input] , Keyword[int] identifier[band] , identifier[InterleavedF64] identifier[output] operator[SEP] { Keyword[final] Keyword[int] identifier[numBands] operator[=] identifier[output] operator[SEP] ...
@SuppressWarnings("unchecked") public static Subject getRunAsSubject() throws WSSecurityException { SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(GETRUNASSUBJECT_PERM); } Subject s = null; try { ...
class class_name[name] begin[{] method[getRunAsSubject, return_type[type[Subject]], modifier[public static], parameter[]] begin[{] local_variable[type[SecurityManager], sm] if[binary_operation[member[.sm], !=, literal[null]]] begin[{] call[sm.checkPermission, par...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Subject] identifier[getRunAsSubject] operator[SEP] operator[SEP] Keyword[throws] identifier[WSSecurityException] { identifier[SecurityManager] identifier[sm] operator[=] identifier[Sy...
public void setWarning (float warnPercent, ResultListener<TimerView> warner) { // This warning hasn't triggered yet _warned = false; // Here are the details _warnPercent = warnPercent; _warner = warner; }
class class_name[name] begin[{] method[setWarning, return_type[void], modifier[public], parameter[warnPercent, warner]] begin[{] assign[member[._warned], literal[false]] assign[member[._warnPercent], member[.warnPercent]] assign[member[._warner], member[.warner]]...
Keyword[public] Keyword[void] identifier[setWarning] operator[SEP] Keyword[float] identifier[warnPercent] , identifier[ResultListener] operator[<] identifier[TimerView] operator[>] identifier[warner] operator[SEP] { identifier[_warned] operator[=] literal[boolean] operator[SEP] identifier[_warnPercent] operator...
public Marshaller getMarshaller(T instance) throws JAXBException { JAXBContext context = JAXBContext.newInstance(instance.getClass()); Marshaller marshaller = context.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); return marshaller; }
class class_name[name] begin[{] method[getMarshaller, return_type[type[Marshaller]], modifier[public], parameter[instance]] begin[{] local_variable[type[JAXBContext], context] local_variable[type[Marshaller], marshaller] call[marshaller.setProperty, parameter[member[Marshaller.J...
Keyword[public] identifier[Marshaller] identifier[getMarshaller] operator[SEP] identifier[T] identifier[instance] operator[SEP] Keyword[throws] identifier[JAXBException] { identifier[JAXBContext] identifier[context] operator[=] identifier[JAXBContext] operator[SEP] identifier[newInstance] operator[SEP] identifie...
public synchronized String start() { if (started) return null; // Create a processor for the specified jmf locator String result = createProcessor(); if (result != null) { started = false; } // Create an RTP session to transmit the output of the // p...
class class_name[name] begin[{] method[start, return_type[type[String]], modifier[synchronized public], parameter[]] begin[{] if[member[.started]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[String], result] if[binary_oper...
Keyword[public] Keyword[synchronized] identifier[String] identifier[start] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[started] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[String] identifier[result] operator[=] identifier[createProcessor] operator[SEP] operator[SEP] ...
public Void visitScope(Scope scope) { messages.add(new Message(PrettyPrinter.format("Explicit scope unsupported: key=%s scope=%s", targetKey, scope))); return null; }
class class_name[name] begin[{] method[visitScope, return_type[type[Void]], modifier[public], parameter[scope]] begin[{] call[messages.add, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Expli...
Keyword[public] identifier[Void] identifier[visitScope] operator[SEP] identifier[Scope] identifier[scope] operator[SEP] { identifier[messages] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Message] operator[SEP] identifier[PrettyPrinter] operator[SEP] identifier[format] operator[SEP] litera...
private static Class<?> loadPrimitiveType(String fullName, ClassNotFoundException ex) throws ClassNotFoundException { if (fullName.equals("int")) { return int.class; } else if (fullName.equals("long")) { return long.class; } else if (fullName.equals("double")) { ...
class class_name[name] begin[{] method[loadPrimitiveType, return_type[type[Class]], modifier[private static], parameter[fullName, ex]] begin[{] if[call[fullName.equals, parameter[literal["int"]]]] begin[{] return[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=No...
Keyword[private] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[loadPrimitiveType] operator[SEP] identifier[String] identifier[fullName] , identifier[ClassNotFoundException] identifier[ex] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[if] operator[S...
protected void resetLocalAddress(final Handler<AsyncResult<Boolean>> doneHandler) { localAddress = null; lastReset = System.currentTimeMillis(); clusterLocator.locateCluster(address, new Handler<AsyncResult<String>>() { @Override public void handle(AsyncResult<String> result) { if (resul...
class class_name[name] begin[{] method[resetLocalAddress, return_type[void], modifier[protected], parameter[doneHandler]] begin[{] assign[member[.localAddress], literal[null]] assign[member[.lastReset], call[System.currentTimeMillis, parameter[]]] call[clusterLoc...
Keyword[protected] Keyword[void] identifier[resetLocalAddress] operator[SEP] Keyword[final] identifier[Handler] operator[<] identifier[AsyncResult] operator[<] identifier[Boolean] operator[>] operator[>] identifier[doneHandler] operator[SEP] { identifier[localAddress] operator[=] Other[null] operator[SEP] identi...
public static int cudnnGetActivationDescriptor( cudnnActivationDescriptor activationDesc, int[] mode, int[] reluNanOpt, double[] coef)/** ceiling for clipped RELU, alpha for ELU */ { return checkResult(cudnnGetActivationDescriptorNative(activationDesc, mode, reluNanOpt, co...
class class_name[name] begin[{] method[cudnnGetActivationDescriptor, return_type[type[int]], modifier[public static], parameter[activationDesc, mode, reluNanOpt, coef]] begin[{] return[call[.checkResult, parameter[call[.cudnnGetActivationDescriptorNative, parameter[member[.activationDesc], member[.mode...
Keyword[public] Keyword[static] Keyword[int] identifier[cudnnGetActivationDescriptor] operator[SEP] identifier[cudnnActivationDescriptor] identifier[activationDesc] , Keyword[int] operator[SEP] operator[SEP] identifier[mode] , Keyword[int] operator[SEP] operator[SEP] identifier[reluNanOpt] , Keyword[double] operator...
protected static void binaryToDef(GrayU8 binary , short[] desc ) { for (int i = 0; i < binary.data.length; i+=16) { int value = 0; for (int j = 0; j < 16; j++) { value |= binary.data[i+j] << j; } desc[i/16] = (short)value; } }
class class_name[name] begin[{] method[binaryToDef, return_type[void], modifier[static protected], parameter[binary, desc]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postf...
Keyword[protected] Keyword[static] Keyword[void] identifier[binaryToDef] operator[SEP] identifier[GrayU8] identifier[binary] , Keyword[short] operator[SEP] operator[SEP] identifier[desc] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operat...
private Collection<String> getRolesForSpecialSubject(String resourceName, String specialSubject) { int found = 0; Collection<String> roles = null; FeatureAuthorizationTableService featureAuthzTableSvc = featureAuthzTableServiceRef.getService(); String featureAuthzRoleHeaderValue = null; ...
class class_name[name] begin[{] method[getRolesForSpecialSubject, return_type[type[Collection]], modifier[private], parameter[resourceName, specialSubject]] begin[{] local_variable[type[int], found] local_variable[type[Collection], roles] local_variable[type[FeatureAuthorizationTableSer...
Keyword[private] identifier[Collection] operator[<] identifier[String] operator[>] identifier[getRolesForSpecialSubject] operator[SEP] identifier[String] identifier[resourceName] , identifier[String] identifier[specialSubject] operator[SEP] { Keyword[int] identifier[found] operator[=] Other[0] operator[SEP] ide...
private void getSheetAsFile(long id, PaperSize paperSize, OutputStream outputStream, String contentType) throws SmartsheetException { Util.throwIfNull(outputStream, contentType); String path = "sheets/" + id; if (paperSize != null) { path += "?paperSize=" + paperSize; ...
class class_name[name] begin[{] method[getSheetAsFile, return_type[void], modifier[private], parameter[id, paperSize, outputStream, contentType]] begin[{] call[Util.throwIfNull, parameter[member[.outputStream], member[.contentType]]] local_variable[type[String], path] if...
Keyword[private] Keyword[void] identifier[getSheetAsFile] operator[SEP] Keyword[long] identifier[id] , identifier[PaperSize] identifier[paperSize] , identifier[OutputStream] identifier[outputStream] , identifier[String] identifier[contentType] operator[SEP] Keyword[throws] identifier[SmartsheetException] { id...
private void primUpdateMembers(boolean renewLock) throws GroupsException { getLockableGroupService().updateGroupMembers(this, renewLock); clearPendingUpdates(); this.invalidateInParentGroupsCache(Collections.singleton((IGroupMember) this)); }
class class_name[name] begin[{] method[primUpdateMembers, return_type[void], modifier[private], parameter[renewLock]] begin[{] call[.getLockableGroupService, parameter[]] call[.clearPendingUpdates, parameter[]] THIS[call[None.invalidateInParentGroupsCache, parame...
Keyword[private] Keyword[void] identifier[primUpdateMembers] operator[SEP] Keyword[boolean] identifier[renewLock] operator[SEP] Keyword[throws] identifier[GroupsException] { identifier[getLockableGroupService] operator[SEP] operator[SEP] operator[SEP] identifier[updateGroupMembers] operator[SEP] Keyword[this] , ...
public float getPixel(int x, int y) { float pixel = -1; if (rasters == null) { readPixels(); } if (rasters != null) { pixel = rasters.getFirstPixelSample(x, y).floatValue(); } else { throw new GeoPackageException("Could not retrieve pixel value"); } return pixel; }
class class_name[name] begin[{] method[getPixel, return_type[type[float]], modifier[public], parameter[x, y]] begin[{] local_variable[type[float], pixel] if[binary_operation[member[.rasters], ==, literal[null]]] begin[{] call[.readPixels, parameter[]] els...
Keyword[public] Keyword[float] identifier[getPixel] operator[SEP] Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] { Keyword[float] identifier[pixel] operator[=] operator[-] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[rasters] operator[==] Other[null] operator[SEP] { ...
private static void extractPhotoshopData(@NotNull final Metadata metadata, @NotNull SequentialReader reader) throws IOException { byte[] buffer = decodeHexCommentBlock(reader); if (buffer != null) new PhotoshopReader().extract(new SequentialByteArrayReader(buffer), buffer.length, metada...
class class_name[name] begin[{] method[extractPhotoshopData, return_type[void], modifier[private static], parameter[metadata, reader]] begin[{] local_variable[type[byte], buffer] if[binary_operation[member[.buffer], !=, literal[null]]] begin[{] ClassCreator(arguments=[], bod...
Keyword[private] Keyword[static] Keyword[void] identifier[extractPhotoshopData] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[Metadata] identifier[metadata] , annotation[@] identifier[NotNull] identifier[SequentialReader] identifier[reader] operator[SEP] Keyword[throws] identifier[IOExcepti...
public static <T> void forEach(final Iterable<T> iterable, final Consumer<? super T> consumer) { checkNotNull(iterable, "forEach must have a valid iterable"); checkNotNull(consumer, "forEach must have a valid consumer"); for (T t : iterable) { consumer.accept(t); } }
class class_name[name] begin[{] method[forEach, return_type[void], modifier[public static], parameter[iterable, consumer]] begin[{] call[.checkNotNull, parameter[member[.iterable], literal["forEach must have a valid iterable"]]] call[.checkNotNull, parameter[member[.consumer], l...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[forEach] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] , Keyword[final] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[T] operator[>] ide...
@Override public void onManagerWarning(String warning, Exception cause) { if (warning != null) { System.err.println(DEBUG_PREFIX + "Simon warning: " + warning); } if (cause != null) { System.err.print(DEBUG_PREFIX); cause.printStackTrace(); } }
class class_name[name] begin[{] method[onManagerWarning, return_type[void], modifier[public], parameter[warning, cause]] begin[{] if[binary_operation[member[.warning], !=, literal[null]]] begin[{] call[System.err.println, parameter[binary_operation[binary_operation[membe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onManagerWarning] operator[SEP] identifier[String] identifier[warning] , identifier[Exception] identifier[cause] operator[SEP] { Keyword[if] operator[SEP] identifier[warning] operator[!=] Other[null] operator[SEP] { identifie...
@Deprecated public boolean setAutoPostPreferences(SocialNetwork...networks) { boolean tw = isAutoPostToTwitter(); boolean fb = isAutoPostToFacebook(); setAutoPostToFacebook(false); setAutoPostToTwitter(false); if(networks != null) { for (SocialNetwork network : networks) { if(network.equals(Soci...
class class_name[name] begin[{] method[setAutoPostPreferences, return_type[type[boolean]], modifier[public], parameter[networks]] begin[{] local_variable[type[boolean], tw] local_variable[type[boolean], fb] call[.setAutoPostToFacebook, parameter[literal[false]]] ...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[boolean] identifier[setAutoPostPreferences] operator[SEP] identifier[SocialNetwork] operator[...] identifier[networks] operator[SEP] { Keyword[boolean] identifier[tw] operator[=] identifier[isAutoPostToTwitter] operator[SEP] operator[SEP] operator[SEP]...
protected static void writeList(Output out, List<?> list) { if (!list.isEmpty()) { int size = list.size(); // if its a small list, write it as an array if (size < 100) { out.writeArray(list); return; } // else we should ...
class class_name[name] begin[{] method[writeList, return_type[void], modifier[static protected], parameter[out, list]] begin[{] if[call[list.isEmpty, parameter[]]] begin[{] local_variable[type[int], size] if[binary_operation[member[.size], <, literal[100]]] b...
Keyword[protected] Keyword[static] Keyword[void] identifier[writeList] operator[SEP] identifier[Output] identifier[out] , identifier[List] operator[<] operator[?] operator[>] identifier[list] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[list] operator[SEP] identifier[isEmpty] operator[SEP] o...
static void modifiersToString(final int modifiers, final StringBuilder buf) { if ((modifiers & Modifier.FINAL) != 0) { buf.append("final "); } if ((modifiers & 0x1000) != 0) { buf.append("synthetic "); } if ((modifiers & 0x8000) != 0) { buf.app...
class class_name[name] begin[{] method[modifiersToString, return_type[void], modifier[static], parameter[modifiers, buf]] begin[{] if[binary_operation[binary_operation[member[.modifiers], &, member[Modifier.FINAL]], !=, literal[0]]] begin[{] call[buf.append, parameter[li...
Keyword[static] Keyword[void] identifier[modifiersToString] operator[SEP] Keyword[final] Keyword[int] identifier[modifiers] , Keyword[final] identifier[StringBuilder] identifier[buf] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[modifiers] operator[&] identifier[Modifier] operator[SEP] iden...
public FaunusPipeline linkIn(final String label, final String step, final String mergeWeightKey) { return this.link(IN, label, step, mergeWeightKey); }
class class_name[name] begin[{] method[linkIn, return_type[type[FaunusPipeline]], modifier[public], parameter[label, step, mergeWeightKey]] begin[{] return[THIS[call[None.link, parameter[member[.IN], member[.label], member[.step], member[.mergeWeightKey]]]]] end[}] END[}]
Keyword[public] identifier[FaunusPipeline] identifier[linkIn] operator[SEP] Keyword[final] identifier[String] identifier[label] , Keyword[final] identifier[String] identifier[step] , Keyword[final] identifier[String] identifier[mergeWeightKey] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identif...
@Override public String getLocalName(int index) { if (index < 0 || index >= attributesList.size()) { return null; } Attribute attr = attributesList.get(index); // FIXME attr.localName is sometimes null, why? if (namespaces && attr.localName == null) { ...
class class_name[name] begin[{] method[getLocalName, return_type[type[String]], modifier[public], parameter[index]] begin[{] if[binary_operation[binary_operation[member[.index], <, literal[0]], ||, binary_operation[member[.index], >=, call[attributesList.size, parameter[]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getLocalName] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[<] Other[0] operator[||] identifier[index] operator[>=] identifier[attributesList] operator[SEP] identif...
private void writeImport(SymbolTable symTab) { assert symTab.isSharedTable(); final int originalOffset = myBuffer.length - myOffset; // Write the maxId as int int maxId = symTab.getMaxId(); if (maxId == 0) { writeByte((byte) TYPE_POS_INT); } else { ...
class class_name[name] begin[{] method[writeImport, return_type[void], modifier[private], parameter[symTab]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=isSharedTable, postfix_operators=[], prefix_operators=[], qualifier=symTab, selectors=[], type_arguments=None), label=Non...
Keyword[private] Keyword[void] identifier[writeImport] operator[SEP] identifier[SymbolTable] identifier[symTab] operator[SEP] { Keyword[assert] identifier[symTab] operator[SEP] identifier[isSharedTable] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[originalOffset] operator[=] i...
void convertWrapperArraysToPrimitiveArrays(final ClassInfo annotationClassInfo, final String paramName) { if (annotationInfo != null) { // Recursively convert primitive arrays in nested annotations annotationInfo.convertWrapperArraysToPrimitiveArrays(); } else if (objectArrayValu...
class class_name[name] begin[{] method[convertWrapperArraysToPrimitiveArrays, return_type[void], modifier[default], parameter[annotationClassInfo, paramName]] begin[{] if[binary_operation[member[.annotationInfo], !=, literal[null]]] begin[{] call[annotationInfo.convertWr...
Keyword[void] identifier[convertWrapperArraysToPrimitiveArrays] operator[SEP] Keyword[final] identifier[ClassInfo] identifier[annotationClassInfo] , Keyword[final] identifier[String] identifier[paramName] operator[SEP] { Keyword[if] operator[SEP] identifier[annotationInfo] operator[!=] Other[null] operator[SEP]...
public final void synpred2_DRL5Expressions_fragment() throws RecognitionException { // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:138:44: ( LEFT_SQUARE RIGHT_SQUARE ) // src/main/resources/org/drools/compiler/lang/DRL5Expressions.g:138:45: LEFT_SQUARE RIGHT_SQUARE { match(input,LEFT_SQUARE,FO...
class class_name[name] begin[{] method[synpred2_DRL5Expressions_fragment, return_type[void], modifier[final public], parameter[]] begin[{] call[.match, parameter[member[.input], member[.LEFT_SQUARE], member[.FOLLOW_LEFT_SQUARE_in_synpred2_DRL5Expressions559]]] if[member[...
Keyword[public] Keyword[final] Keyword[void] identifier[synpred2_DRL5Expressions_fragment] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { { identifier[match] operator[SEP] identifier[input] , identifier[LEFT_SQUARE] , identifier[FOLLOW_LEFT_SQUARE_in_synpred2_DRL5Expr...
public Swagger2MarkupConfigBuilder withPathsGroupedBy(GroupBy pathsGroupedBy) { Validate.notNull(pathsGroupedBy, "%s must not be null", "pathsGroupedBy"); config.pathsGroupedBy = pathsGroupedBy; return this; }
class class_name[name] begin[{] method[withPathsGroupedBy, return_type[type[Swagger2MarkupConfigBuilder]], modifier[public], parameter[pathsGroupedBy]] begin[{] call[Validate.notNull, parameter[member[.pathsGroupedBy], literal["%s must not be null"], literal["pathsGroupedBy"]]] ...
Keyword[public] identifier[Swagger2MarkupConfigBuilder] identifier[withPathsGroupedBy] operator[SEP] identifier[GroupBy] identifier[pathsGroupedBy] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[pathsGroupedBy] , literal[String] , literal[String] operator[SEP] o...
private boolean readNextRow() { boolean hasNext = false; try { if(!stop) { String row = ""; do { row = getReader().readLine(); } while(row.length() == 0); if(!row.startsWith("{\"last_seq\":")) { setNextRow(gson.fromJson(row, Row.class)); hasNext = true; } } } cat...
class class_name[name] begin[{] method[readNextRow, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[boolean], hasNext] TryStatement(block=[IfStatement(condition=MemberReference(member=stop, postfix_operators=[], prefix_operators=['!'], qualifier=, select...
Keyword[private] Keyword[boolean] identifier[readNextRow] operator[SEP] operator[SEP] { Keyword[boolean] identifier[hasNext] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[stop] operator[SEP] { identifier[String] identifier[row...
@Path("connections") public DirectoryResource<Connection, APIConnection> getConnectionDirectoryResource() throws GuacamoleException { return connectionDirectoryResourceFactory.create(userContext, userContext.getConnectionDirectory()); }
class class_name[name] begin[{] method[getConnectionDirectoryResource, return_type[type[DirectoryResource]], modifier[public], parameter[]] begin[{] return[call[connectionDirectoryResourceFactory.create, parameter[member[.userContext], call[userContext.getConnectionDirectory, parameter[]]]]] end[}]...
annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[DirectoryResource] operator[<] identifier[Connection] , identifier[APIConnection] operator[>] identifier[getConnectionDirectoryResource] operator[SEP] operator[SEP] Keyword[throws] identifier[GuacamoleException] { ...
@Override public EEnum getPluginType() { if (pluginTypeEEnum == null) { pluginTypeEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(105); } return pluginTypeEEnum; }
class class_name[name] begin[{] method[getPluginType, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.pluginTypeEEnum], ==, literal[null]]] begin[{] assign[member[.pluginTypeEEnum], Cast(expression=MethodInvocation(arguments=...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getPluginType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pluginTypeEEnum] operator[==] Other[null] operator[SEP] { identifier[pluginTypeEEnum] operator[=] operator[SEP] identifier[EEnum] operator[S...
private NamingEnumeration search(String base, String filter, String[] returnAttrs) throws NamingException { SearchControls constraints = new SearchControls(); constraints.setSearchScope(SearchControls.SUBTREE_SCOPE); constraints.setReturningAttribute...
class class_name[name] begin[{] method[search, return_type[type[NamingEnumeration]], modifier[private], parameter[base, filter, returnAttrs]] begin[{] local_variable[type[SearchControls], constraints] call[constraints.setSearchScope, parameter[member[SearchControls.SUBTREE_SCOPE]]] ...
Keyword[private] identifier[NamingEnumeration] identifier[search] operator[SEP] identifier[String] identifier[base] , identifier[String] identifier[filter] , identifier[String] operator[SEP] operator[SEP] identifier[returnAttrs] operator[SEP] Keyword[throws] identifier[NamingException] { identifier[SearchContr...
void generateDiffEvidence(EvidenceDir baseEvidenceDir, File evidenceFile, boolean withUnmatch) throws IOException { File baseEvidence = new File(baseEvidenceDir.getDir(), evidenceFile.getName()); DiffEvidence diffEvidence = appCtx.getBean(DiffEvidence.class); load(diffEvidenc...
class class_name[name] begin[{] method[generateDiffEvidence, return_type[void], modifier[default], parameter[baseEvidenceDir, evidenceFile, withUnmatch]] begin[{] local_variable[type[File], baseEvidence] local_variable[type[DiffEvidence], diffEvidence] call[.load, parameter[memb...
Keyword[void] identifier[generateDiffEvidence] operator[SEP] identifier[EvidenceDir] identifier[baseEvidenceDir] , identifier[File] identifier[evidenceFile] , Keyword[boolean] identifier[withUnmatch] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] identifier[baseEvidence] operator[=] K...
protected void _format(SarlBehaviorUnit behaviorUnit, IFormattableDocument document) { formatAnnotations(behaviorUnit, document, XbaseFormatterPreferenceKeys.newLineAfterMethodAnnotations); final ISemanticRegionsFinder regionFor = this.textRegionExtensions.regionFor(behaviorUnit); document.append(regionFor.keyw...
class class_name[name] begin[{] method[_format, return_type[void], modifier[protected], parameter[behaviorUnit, document]] begin[{] call[.formatAnnotations, parameter[member[.behaviorUnit], member[.document], member[XbaseFormatterPreferenceKeys.newLineAfterMethodAnnotations]]] local_var...
Keyword[protected] Keyword[void] identifier[_format] operator[SEP] identifier[SarlBehaviorUnit] identifier[behaviorUnit] , identifier[IFormattableDocument] identifier[document] operator[SEP] { identifier[formatAnnotations] operator[SEP] identifier[behaviorUnit] , identifier[document] , identifier[XbaseFormatt...
public synchronized long getLastModified( Artifact artifact ) throws IOException, ArtifactNotFoundException { Map<String, Map<String, Map<Artifact, Content>>> artifactMap = contents.get( artifact.getGroupId() ); Map<String, Map<Artifact, Content>> versionMap = ( artifactMap == null ? null : ...
class class_name[name] begin[{] method[getLastModified, return_type[type[long]], modifier[synchronized public], parameter[artifact]] begin[{] local_variable[type[Map], artifactMap] local_variable[type[Map], versionMap] local_variable[type[Map], filesMap] local_variable[type[Cont...
Keyword[public] Keyword[synchronized] Keyword[long] identifier[getLastModified] operator[SEP] identifier[Artifact] identifier[artifact] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ArtifactNotFoundException] { identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] id...
@XmlElementDecl(namespace = "http://schema.intuit.com/finance/v3", name = "BooleanTypeCustomFieldDefinition", substitutionHeadNamespace = "http://schema.intuit.com/finance/v3", substitutionHeadName = "IntuitObject") public JAXBElement<BooleanTypeCustomFieldDefinition> createBooleanTypeCustomFieldDefinition(BooleanT...
class class_name[name] begin[{] method[createBooleanTypeCustomFieldDefinition, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_BooleanTypeCustomFieldDefinition_QNAME, postfix_operators=[], prefix_operators=[], qualifier...
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...
boolean doJarFile(String jarname) throws IOException { try (JarFile jf = new JarFile(jarname)) { Stream<String> files = jf.stream() .map(JarEntry::getName); return doFileNames(files); } }
class class_name[name] begin[{] method[doJarFile, return_type[type[boolean]], modifier[default], parameter[jarname]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=stream, postfix_ope...
Keyword[boolean] identifier[doJarFile] operator[SEP] identifier[String] identifier[jarname] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] operator[SEP] identifier[JarFile] identifier[jf] operator[=] Keyword[new] identifier[JarFile] operator[SEP] identifier[jarname] operator[SEP] operator[S...
public static OffsetDateTime toOffsetDateTime(Instant time, ZoneId zoneId) { Assert.notNull(time, "Missing time!"); if (zoneId == null) { zoneId = ZoneId.from(time); } return OffsetDateTime.ofInstant(time, zoneId); }
class class_name[name] begin[{] method[toOffsetDateTime, return_type[type[OffsetDateTime]], modifier[public static], parameter[time, zoneId]] begin[{] call[Assert.notNull, parameter[member[.time], literal["Missing time!"]]] if[binary_operation[member[.zoneId], ==, literal[null]]...
Keyword[public] Keyword[static] identifier[OffsetDateTime] identifier[toOffsetDateTime] operator[SEP] identifier[Instant] identifier[time] , identifier[ZoneId] identifier[zoneId] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[time] , literal[String] operator[SEP] ...
private void initQualityScoreSettings() { QualityScoreSettings qualityScoreSettings = this.scoreSettings.getQualityWidget(); if (null != qualityScoreSettings) { qualityScoreSettings.setCriteria( Utils.mergeCriteria(this.scoreSettings.getCriteria(), qualityScoreSettings.getCriteria()) ); ...
class class_name[name] begin[{] method[initQualityScoreSettings, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[QualityScoreSettings], qualityScoreSettings] if[binary_operation[literal[null], !=, member[.qualityScoreSettings]]] begin[{] ...
Keyword[private] Keyword[void] identifier[initQualityScoreSettings] operator[SEP] operator[SEP] { identifier[QualityScoreSettings] identifier[qualityScoreSettings] operator[=] Keyword[this] operator[SEP] identifier[scoreSettings] operator[SEP] identifier[getQualityWidget] operator[SEP] operator[SEP] operator[SEP...
public CassandraJavaRDD<R> perPartitionLimit(Long rowsNumber) { CassandraRDD<R> newRDD = rdd().perPartitionLimit(rowsNumber); return wrap(newRDD); }
class class_name[name] begin[{] method[perPartitionLimit, return_type[type[CassandraJavaRDD]], modifier[public], parameter[rowsNumber]] begin[{] local_variable[type[CassandraRDD], newRDD] return[call[.wrap, parameter[member[.newRDD]]]] end[}] END[}]
Keyword[public] identifier[CassandraJavaRDD] operator[<] identifier[R] operator[>] identifier[perPartitionLimit] operator[SEP] identifier[Long] identifier[rowsNumber] operator[SEP] { identifier[CassandraRDD] operator[<] identifier[R] operator[>] identifier[newRDD] operator[=] identifier[rdd] operator[SEP] operat...
protected <E> Page<E> findPaginatedGeneric(Pageable pageable, JPAQuery<E> query, boolean determineTotal) { long total = -1; if (determineTotal) { total = query.clone().fetchCount(); } long offset = 0; if (pageable != null) { offset = pageable.getOffset(); query.offset(offset); ...
class class_name[name] begin[{] method[findPaginatedGeneric, return_type[type[Page]], modifier[protected], parameter[pageable, query, determineTotal]] begin[{] local_variable[type[long], total] if[member[.determineTotal]] begin[{] assign[member[.total], call[quer...
Keyword[protected] operator[<] identifier[E] operator[>] identifier[Page] operator[<] identifier[E] operator[>] identifier[findPaginatedGeneric] operator[SEP] identifier[Pageable] identifier[pageable] , identifier[JPAQuery] operator[<] identifier[E] operator[>] identifier[query] , Keyword[boolean] identifier[determin...
public Paint getFrameInteriorPaint(Shape s, int titleHeight, int topToolBarHeight, int bottomToolBarHeight) { return createFrameGradient(s, titleHeight, topToolBarHeight, bottomToolBarHeight, getFrameInteriorColors()); }
class class_name[name] begin[{] method[getFrameInteriorPaint, return_type[type[Paint]], modifier[public], parameter[s, titleHeight, topToolBarHeight, bottomToolBarHeight]] begin[{] return[call[.createFrameGradient, parameter[member[.s], member[.titleHeight], member[.topToolBarHeight], member[.bottomToo...
Keyword[public] identifier[Paint] identifier[getFrameInteriorPaint] operator[SEP] identifier[Shape] identifier[s] , Keyword[int] identifier[titleHeight] , Keyword[int] identifier[topToolBarHeight] , Keyword[int] identifier[bottomToolBarHeight] operator[SEP] { Keyword[return] identifier[createFrameGradient] op...
public OperationStatus deleteEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId) { return deleteEntityRoleWithServiceResponseAsync(appId, versionId, entityId, roleId).toBlocking().single().body(); }
class class_name[name] begin[{] method[deleteEntityRole, return_type[type[OperationStatus]], modifier[public], parameter[appId, versionId, entityId, roleId]] begin[{] return[call[.deleteEntityRoleWithServiceResponseAsync, parameter[member[.appId], member[.versionId], member[.entityId], member[.roleId]]...
Keyword[public] identifier[OperationStatus] identifier[deleteEntityRole] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[entityId] , identifier[UUID] identifier[roleId] operator[SEP] { Keyword[return] identifier[deleteEntityRoleWithServ...
@Nonnull public static <T extends Comparable<T>> List<T> sortOptionallyComparables(@Nonnull Collection<T> toReturn) { List<T> list = new ArrayList<>(toReturn); try { Collections.sort(list); } catch (IllegalArgumentException e) { // catch possible sorting misbehaviour ...
class class_name[name] begin[{] method[sortOptionallyComparables, return_type[type[List]], modifier[public static], parameter[toReturn]] begin[{] local_variable[type[List], list] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=list, postfix_...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] identifier[T] operator[>] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[sortOptionallyComparables] operator[SEP] annotation[@] identifier[Nonnul...
public List<CmsGroup> getGroupsOfUser(CmsDbContext dbc, String username, boolean readRoles) throws CmsException { return getGroupsOfUser(dbc, username, "", true, readRoles, false, dbc.getRequestContext().getRemoteAddress()); }
class class_name[name] begin[{] method[getGroupsOfUser, return_type[type[List]], modifier[public], parameter[dbc, username, readRoles]] begin[{] return[call[.getGroupsOfUser, parameter[member[.dbc], member[.username], literal[""], literal[true], member[.readRoles], literal[false], call[dbc.getRequestCo...
Keyword[public] identifier[List] operator[<] identifier[CmsGroup] operator[>] identifier[getGroupsOfUser] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[String] identifier[username] , Keyword[boolean] identifier[readRoles] operator[SEP] Keyword[throws] identifier[CmsException] { Keyword[re...
private void initialize() { this.setLayout(new CardLayout()); this.setName(getContextIndex() + ": " + PANEL_NAME); this.setLayout(new GridBagLayout()); this.setBorder(new EmptyBorder(2, 2, 2, 2)); this.add(new JLabel(Constant.messages.getString("sessionmanagement.panel.label.description")), LayoutHelper....
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[]] begin[{] THIS[call[None.setLayout, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type...
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[setLayout] operator[SEP] Keyword[new] identifier[CardLayout] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[setName] operator[SEP] identifier[...
private Map<Integer, Double> predict(final double[] x) { Map<Integer, Double> result = new HashMap<>(); for (int i = 0; i < model.weights.length; i++) { double y = VectorUtils.dotProduct(x, model.weights[i]); y += model.bias[i]; result.put(i, y); } re...
class class_name[name] begin[{] method[predict, return_type[type[Map]], modifier[private], parameter[x]] begin[{] local_variable[type[Map], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], in...
Keyword[private] identifier[Map] operator[<] identifier[Integer] , identifier[Double] operator[>] identifier[predict] operator[SEP] Keyword[final] Keyword[double] operator[SEP] operator[SEP] identifier[x] operator[SEP] { identifier[Map] operator[<] identifier[Integer] , identifier[Double] operator[>] identifie...
public void setupViews(Widget widget) { if (widget.getUiStyle() == Widget.STYLE_LIGHT) { int color = ContextCompat.getColor(getContext(), R.color.albumLoadingDark); mProgressBar.setColorFilter(color); } else { mProgressBar.setColorFilter(widget.getToolBarColor()); ...
class class_name[name] begin[{] method[setupViews, return_type[void], modifier[public], parameter[widget]] begin[{] if[binary_operation[call[widget.getUiStyle, parameter[]], ==, member[Widget.STYLE_LIGHT]]] begin[{] local_variable[type[int], color] call[mProg...
Keyword[public] Keyword[void] identifier[setupViews] operator[SEP] identifier[Widget] identifier[widget] operator[SEP] { Keyword[if] operator[SEP] identifier[widget] operator[SEP] identifier[getUiStyle] operator[SEP] operator[SEP] operator[==] identifier[Widget] operator[SEP] identifier[STYLE_LIGHT] operator[SEP...
public void saturate(IAtom atom, IAtomContainer ac) throws CDKException { logger.info("Saturating atom by adjusting lone pair electrons..."); IAtomType atomType = factory.getAtomType(atom.getAtomTypeName()); int lpCount = (Integer) atomType.getProperty(CDKConstants.LONE_PAIR_COUNT); int ...
class class_name[name] begin[{] method[saturate, return_type[void], modifier[public], parameter[atom, ac]] begin[{] call[logger.info, parameter[literal["Saturating atom by adjusting lone pair electrons..."]]] local_variable[type[IAtomType], atomType] local_variable[type[int], lp...
Keyword[public] Keyword[void] identifier[saturate] operator[SEP] identifier[IAtom] identifier[atom] , identifier[IAtomContainer] identifier[ac] operator[SEP] Keyword[throws] identifier[CDKException] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] ide...
public void removeConnectionPool(URL url) { RequestBuilder req = new RequestBuilder(); req.host = url.getHost(); req.port = url.getPort() < 0 ? url.getDefaultPort() : url.getPort(); removePool(req); }
class class_name[name] begin[{] method[removeConnectionPool, return_type[void], modifier[public], parameter[url]] begin[{] local_variable[type[RequestBuilder], req] assign[member[req.host], call[url.getHost, parameter[]]] assign[member[req.port], TernaryExpression(condit...
Keyword[public] Keyword[void] identifier[removeConnectionPool] operator[SEP] identifier[URL] identifier[url] operator[SEP] { identifier[RequestBuilder] identifier[req] operator[=] Keyword[new] identifier[RequestBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[req] operator[SEP] identifier[host] oper...
public void rotate(Quaternion rotation) { Transform3D m = new Transform3D(); m.transform(this.getFirstAxis()); m.transform(this.getSecondAxis()); m.transform(this.getThirdAxis()); this.setFirstAxisExtent(this.getFirstAxis().length()); this.setSecondAxisExtent(this.getSecondAxis().length()); this.setThirdA...
class class_name[name] begin[{] method[rotate, return_type[void], modifier[public], parameter[rotation]] begin[{] local_variable[type[Transform3D], m] call[m.transform, parameter[THIS[call[None.getFirstAxis, parameter[]]]]] call[m.transform, parameter[THIS[call[None.getS...
Keyword[public] Keyword[void] identifier[rotate] operator[SEP] identifier[Quaternion] identifier[rotation] operator[SEP] { identifier[Transform3D] identifier[m] operator[=] Keyword[new] identifier[Transform3D] operator[SEP] operator[SEP] operator[SEP] identifier[m] operator[SEP] identifier[transform] operator[SE...
public WaterMeterIo createImpl() { WaterMeterIo obj = new WaterMeterIo(); PojoUtils.copyProperties(obj, this, PojoUtils.FieldNaming.CONSISTENT); return obj; }
class class_name[name] begin[{] method[createImpl, return_type[type[WaterMeterIo]], modifier[public], parameter[]] begin[{] local_variable[type[WaterMeterIo], obj] call[PojoUtils.copyProperties, parameter[member[.obj], THIS[], member[PojoUtils.FieldNaming.CONSISTENT]]] return[me...
Keyword[public] identifier[WaterMeterIo] identifier[createImpl] operator[SEP] operator[SEP] { identifier[WaterMeterIo] identifier[obj] operator[=] Keyword[new] identifier[WaterMeterIo] operator[SEP] operator[SEP] operator[SEP] identifier[PojoUtils] operator[SEP] identifier[copyProperties] operator[SEP] identifie...
@Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WField field = (WField) component; XmlStringBuilder xml = renderContext.getWriter(); int inputWidth = field.getInputWidth(); xml.appendTagOpen("ui:field"); xml.appendAttribute("id", component.getId()); xm...
class class_name[name] begin[{] method[doRender, return_type[void], modifier[public], parameter[component, renderContext]] begin[{] local_variable[type[WField], field] local_variable[type[XmlStringBuilder], xml] local_variable[type[int], inputWidth] call[xml.appendTagOpe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doRender] operator[SEP] Keyword[final] identifier[WComponent] identifier[component] , Keyword[final] identifier[WebXmlRenderContext] identifier[renderContext] operator[SEP] { identifier[WField] identifier[field] operator[=] operator[SEP...
public ParameterRanges withIntegerParameterRanges(IntegerParameterRange... integerParameterRanges) { if (this.integerParameterRanges == null) { setIntegerParameterRanges(new java.util.ArrayList<IntegerParameterRange>(integerParameterRanges.length)); } for (IntegerParameterRange ele :...
class class_name[name] begin[{] method[withIntegerParameterRanges, return_type[type[ParameterRanges]], modifier[public], parameter[integerParameterRanges]] begin[{] if[binary_operation[THIS[member[None.integerParameterRanges]], ==, literal[null]]] begin[{] call[.setInteg...
Keyword[public] identifier[ParameterRanges] identifier[withIntegerParameterRanges] operator[SEP] identifier[IntegerParameterRange] operator[...] identifier[integerParameterRanges] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[integerParameterRanges] operator[==] Other[null] ope...
public Plan createQueryPlan(String qry, Transaction tx) { Parser parser = new Parser(qry); QueryData data = parser.queryCommand(); Verifier.verifyQueryData(data, tx); return qPlanner.createPlan(data, tx); }
class class_name[name] begin[{] method[createQueryPlan, return_type[type[Plan]], modifier[public], parameter[qry, tx]] begin[{] local_variable[type[Parser], parser] local_variable[type[QueryData], data] call[Verifier.verifyQueryData, parameter[member[.data], member[.tx]]] ...
Keyword[public] identifier[Plan] identifier[createQueryPlan] operator[SEP] identifier[String] identifier[qry] , identifier[Transaction] identifier[tx] operator[SEP] { identifier[Parser] identifier[parser] operator[=] Keyword[new] identifier[Parser] operator[SEP] identifier[qry] operator[SEP] operator[SEP] ident...
public static CmsXmlPage unmarshal(String xmlData, String encoding, EntityResolver resolver) throws CmsXmlException { return new CmsXmlPage(CmsXmlUtils.unmarshalHelper(xmlData, resolver), encoding); }
class class_name[name] begin[{] method[unmarshal, return_type[type[CmsXmlPage]], modifier[public static], parameter[xmlData, encoding, resolver]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=xmlData, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[static] identifier[CmsXmlPage] identifier[unmarshal] operator[SEP] identifier[String] identifier[xmlData] , identifier[String] identifier[encoding] , identifier[EntityResolver] identifier[resolver] operator[SEP] Keyword[throws] identifier[CmsXmlException] { Keyword[return] Keyword[new] ...
protected void cleanRow() { int i = 0; while(i < this.cells.size()) { if(((RtfCell) this.cells.get(i)).isDeleted()) { this.cells.remove(i); } else { i++; } } }
class class_name[name] begin[{] method[cleanRow, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[int], i] while[binary_operation[member[.i], <, THIS[member[None.cells]call[None.size, parameter[]]]]] begin[{] if[Cast(expression=Th...
Keyword[protected] Keyword[void] identifier[cleanRow] operator[SEP] operator[SEP] { Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier[cells] operator[SEP] identifier[size] operator[SEP] operator[SEP] operato...
private boolean hasChanges(final Map<URI, URI> changeTable) { if (changeTable.isEmpty()) { return false; } for (Map.Entry<URI, URI> e : changeTable.entrySet()) { if (!e.getKey().equals(e.getValue())) { return true; } } return fa...
class class_name[name] begin[{] method[hasChanges, return_type[type[boolean]], modifier[private], parameter[changeTable]] begin[{] if[call[changeTable.isEmpty, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] ForStatement(body=BlockStat...
Keyword[private] Keyword[boolean] identifier[hasChanges] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[URI] , identifier[URI] operator[>] identifier[changeTable] operator[SEP] { Keyword[if] operator[SEP] identifier[changeTable] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] ...
private void paintBorderEnabled(Graphics2D g, int width, int height) { Shape s; s = shapeGenerator.createRoundRectangle(0, 0, width - 1, height - 1, CornerSize.BORDER); g.setPaint(borderColor); g.draw(s); }
class class_name[name] begin[{] method[paintBorderEnabled, return_type[void], modifier[private], parameter[g, width, height]] begin[{] local_variable[type[Shape], s] assign[member[.s], call[shapeGenerator.createRoundRectangle, parameter[literal[0], literal[0], binary_operation[member[.w...
Keyword[private] Keyword[void] identifier[paintBorderEnabled] operator[SEP] identifier[Graphics2D] identifier[g] , Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] { identifier[Shape] identifier[s] operator[SEP] identifier[s] operator[=] identifier[shapeGenerator] operator[SEP] id...
boolean isCornerValidOrigin( Node candidate ) { candidate.putEdgesIntoList(edgeList); if( edgeList.size() != 2 ) { throw new RuntimeException("BUG! Should be a corner and have two edges"); } Node a = edgeList.get(0); Node b = edgeList.get(1); // Find the average angle from the two vectors defined by th...
class class_name[name] begin[{] method[isCornerValidOrigin, return_type[type[boolean]], modifier[default], parameter[candidate]] begin[{] call[candidate.putEdgesIntoList, parameter[member[.edgeList]]] if[binary_operation[call[edgeList.size, parameter[]], !=, literal[2]]] begin[{...
Keyword[boolean] identifier[isCornerValidOrigin] operator[SEP] identifier[Node] identifier[candidate] operator[SEP] { identifier[candidate] operator[SEP] identifier[putEdgesIntoList] operator[SEP] identifier[edgeList] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[edgeList] operator[SEP] identi...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "lineStringProperty") public JAXBElement<LineStringPropertyType> createLineStringProperty(LineStringPropertyType value) { return new JAXBElement<LineStringPropertyType>(_LineStringProperty_QNAME, LineStringPropertyType.class, null, value); ...
class class_name[name] begin[{] method[createLineStringProperty, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_LineStringProperty_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassRefer...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[LineStringPropertyType] operator[>] identifier[createLineStringProperty] operator[SEP] ide...
public static void write(final Iterable<HighScoringPair> hsps, final PrintWriter writer) { checkNotNull(hsps); checkNotNull(writer); for (HighScoringPair hsp : hsps) { writer.println(hsp.toString()); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[hsps, writer]] begin[{] call[.checkNotNull, parameter[member[.hsps]]] call[.checkNotNull, parameter[member[.writer]]] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[HighScoringPair] operator[>] identifier[hsps] , Keyword[final] identifier[PrintWriter] identifier[writer] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[hsp...
public void setEventDestinations(java.util.Collection<EventDestination> eventDestinations) { if (eventDestinations == null) { this.eventDestinations = null; return; } this.eventDestinations = new java.util.ArrayList<EventDestination>(eventDestinations); }
class class_name[name] begin[{] method[setEventDestinations, return_type[void], modifier[public], parameter[eventDestinations]] begin[{] if[binary_operation[member[.eventDestinations], ==, literal[null]]] begin[{] assign[THIS[member[None.eventDestinations]], literal[null...
Keyword[public] Keyword[void] identifier[setEventDestinations] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[EventDestination] operator[>] identifier[eventDestinations] operator[SEP] { Keyword[if] operator[SEP] identifier[eventDestinatio...
public static void run(String[] command) throws IOException, RDF4JException, TrustyUriException { String cmd = command[0]; String[] cmdArgs = Arrays.copyOfRange(command, 1, command.length); if (cmd.equals("CheckFile")) { CheckFile.main(cmdArgs); } else if (cmd.equals("ProcessFile")) { ProcessFile.main(cmd...
class class_name[name] begin[{] method[run, return_type[void], modifier[public static], parameter[command]] begin[{] local_variable[type[String], cmd] local_variable[type[String], cmdArgs] if[call[cmd.equals, parameter[literal["CheckFile"]]]] begin[{] cal...
Keyword[public] Keyword[static] Keyword[void] identifier[run] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[command] operator[SEP] Keyword[throws] identifier[IOException] , identifier[RDF4JException] , identifier[TrustyUriException] { identifier[String] identifier[cmd] operator[=] ide...
protected void computeVariablesFromObject(MtasParserObject object, Map<String, List<MtasParserObject>> currentList, Map<String, Map<String, String>> variables) { MtasParserType<MtasParserVariable> parserType = object.getType(); String id = object.getId(); if (id != null) { for (MtasParserV...
class class_name[name] begin[{] method[computeVariablesFromObject, return_type[void], modifier[protected], parameter[object, currentList, variables]] begin[{] local_variable[type[MtasParserType], parserType] local_variable[type[String], id] if[binary_operation[member[.id], !=, l...
Keyword[protected] Keyword[void] identifier[computeVariablesFromObject] operator[SEP] identifier[MtasParserObject] identifier[object] , identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[MtasParserObject] operator[>] operator[>] identifier[currentList] , identifier[Map] operator...
public MultiMap merge(MultiMap multiMap) { MultiMap result = new MultiMap(); result.map.putAll(this.map); result.map.putAll(multiMap.map); return result; }
class class_name[name] begin[{] method[merge, return_type[type[MultiMap]], modifier[public], parameter[multiMap]] begin[{] local_variable[type[MultiMap], result] call[result.map.putAll, parameter[THIS[member[None.map]]]] call[result.map.putAll, parameter[member[multiMap....
Keyword[public] identifier[MultiMap] identifier[merge] operator[SEP] identifier[MultiMap] identifier[multiMap] operator[SEP] { identifier[MultiMap] identifier[result] operator[=] Keyword[new] identifier[MultiMap] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[map] operator[...
public static <T1, T2, T3, T4, T5, T6, R> Supplier<R> partial6(final T1 t1, final T2 t2, final T3 t3, final T4 t4, final T5 t5, final T6 t6, final Function6<T1, T2, T3, T4, T5, T6, R> hexFunc) { return () -> hexFunc.apply(t1, t2, t3, t4, t5, t6); }
class class_name[name] begin[{] method[partial6, return_type[type[Supplier]], modifier[public static], parameter[t1, t2, t3, t4, t5, t6, hexFunc]] begin[{] return[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=t1, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] , identifier[T5] , identifier[T6] , identifier[R] operator[>] identifier[Supplier] operator[<] identifier[R] operator[>] identifier[partial6] operator[SEP] Keyword[final] identifier[T1] identifier[t1] , ...
@Override public UpdatePullRequestDescriptionResult updatePullRequestDescription(UpdatePullRequestDescriptionRequest request) { request = beforeClientExecution(request); return executeUpdatePullRequestDescription(request); }
class class_name[name] begin[{] method[updatePullRequestDescription, return_type[type[UpdatePullRequestDescriptionResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdatePullRe...
annotation[@] identifier[Override] Keyword[public] identifier[UpdatePullRequestDescriptionResult] identifier[updatePullRequestDescription] operator[SEP] identifier[UpdatePullRequestDescriptionRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[S...
public List<Class<?>> getRawTypes(List<DomainObjectType> types) { List<Class<?>> resultList = new ArrayList<Class<?>>(); for (DomainObjectType type : types) { resultList.add(type.getType()); } return resultList; }
class class_name[name] begin[{] method[getRawTypes, return_type[type[List]], modifier[public], parameter[types]] begin[{] local_variable[type[List], resultList] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(a...
Keyword[public] identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[getRawTypes] operator[SEP] identifier[List] operator[<] identifier[DomainObjectType] operator[>] identifier[types] operator[SEP] { identifier[List] operator[<] identifier[Class] operator[<] o...
protected void persistJoinTableByCql(JoinTableData joinTableData, Cassandra.Client conn) { String joinTableName = joinTableData.getJoinTableName(); String invJoinColumnName = joinTableData.getInverseJoinColumnName(); Map<Object, Set<Object>> joinTableRecords = joinTableData.getJoinTableRecords()...
class class_name[name] begin[{] method[persistJoinTableByCql, return_type[void], modifier[protected], parameter[joinTableData, conn]] begin[{] local_variable[type[String], joinTableName] local_variable[type[String], invJoinColumnName] local_variable[type[Map], joinTableRecords] ...
Keyword[protected] Keyword[void] identifier[persistJoinTableByCql] operator[SEP] identifier[JoinTableData] identifier[joinTableData] , identifier[Cassandra] operator[SEP] identifier[Client] identifier[conn] operator[SEP] { identifier[String] identifier[joinTableName] operator[=] identifier[joinTableData] operat...
public static Mono<Void> whenDelayError(Publisher<?>... sources) { if (sources.length == 0) { return empty(); } if (sources.length == 1) { return empty(sources[0]); } return onAssembly(new MonoWhen(true, sources)); }
class class_name[name] begin[{] method[whenDelayError, return_type[type[Mono]], modifier[public static], parameter[sources]] begin[{] if[binary_operation[member[sources.length], ==, literal[0]]] begin[{] return[call[.empty, parameter[]]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Mono] operator[<] identifier[Void] operator[>] identifier[whenDelayError] operator[SEP] identifier[Publisher] operator[<] operator[?] operator[>] operator[...] identifier[sources] operator[SEP] { Keyword[if] operator[SEP] identifier[sources] operator[SEP] identifier[len...
@SuppressWarnings("null") protected final @NotNull String getMediaCropProperty(@NotNull MediaRequest mediaRequest, @Nullable MediaHandlerConfig mediaHandlerConfig) { String cropProperty = mediaRequest.getCropProperty(); if (StringUtils.isEmpty(cropProperty)) { if (mediaHandlerConfig != null) { ...
class class_name[name] begin[{] method[getMediaCropProperty, return_type[type[String]], modifier[final protected], parameter[mediaRequest, mediaHandlerConfig]] begin[{] local_variable[type[String], cropProperty] if[call[StringUtils.isEmpty, parameter[member[.cropProperty]]]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[final] annotation[@] identifier[NotNull] identifier[String] identifier[getMediaCropProperty] operator[SEP] annotation[@] identifier[NotNull] identifier[MediaRequest] identifier[mediaRequest] , annotation[@...
protected <T> Callable<T> wrapTask(Callable<T> task) { // Preserve the MDC context of the caller thread. Map contextMap = MDC.getCopyOfContextMap(); if (contextMap != null) { return new MDCCallableAdapter(task, contextMap); } return task; }
class class_name[name] begin[{] method[wrapTask, return_type[type[Callable]], modifier[protected], parameter[task]] begin[{] local_variable[type[Map], contextMap] if[binary_operation[member[.contextMap], !=, literal[null]]] begin[{] return[ClassCreator(arguments=[MemberRefer...
Keyword[protected] operator[<] identifier[T] operator[>] identifier[Callable] operator[<] identifier[T] operator[>] identifier[wrapTask] operator[SEP] identifier[Callable] operator[<] identifier[T] operator[>] identifier[task] operator[SEP] { identifier[Map] identifier[contextMap] operator[=] identifier[MDC] ope...
private void parseMixed(char[] saved) throws Exception { // Check for PCDATA alone. skipWhitespace(); if (tryRead(')')) { // VC: Proper Group/PE Nesting if (readBuffer != saved) { handler.verror("Illegal Group/PE nesting"); } dataB...
class class_name[name] begin[{] method[parseMixed, return_type[void], modifier[private], parameter[saved]] begin[{] call[.skipWhitespace, parameter[]] if[call[.tryRead, parameter[literal[')']]]] begin[{] if[binary_operation[member[.readBuffer], !=, member...
Keyword[private] Keyword[void] identifier[parseMixed] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[saved] operator[SEP] Keyword[throws] identifier[Exception] { identifier[skipWhitespace] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tryRead] operator[SEP] li...
void stop() { if (!configuration.customExecutor) { ((ExecutorService) taskExecutor).shutdownNow(); } if (!configuration.customExecutorForCachedImages) { ((ExecutorService) taskExecutorForCachedImages).shutdownNow(); } cacheKeysForImageAwares.clear(); uriLocks.clear(); }
class class_name[name] begin[{] method[stop, return_type[void], modifier[default], parameter[]] begin[{] if[member[configuration.customExecutor]] begin[{] Cast(expression=MemberReference(member=taskExecutor, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[configuration] operator[SEP] identifier[customExecutor] operator[SEP] { operator[SEP] operator[SEP] identifier[ExecutorService] operator[SEP] identifier[taskExecutor] operator[SEP] operator[SE...
public ServiceFuture<OperationStatus> deleteHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, final ServiceCallback<OperationStatus> serviceCallback) { return ServiceFuture.fromResponse(deleteHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId), serviceCallback); }
class class_name[name] begin[{] method[deleteHierarchicalEntityAsync, return_type[type[ServiceFuture]], modifier[public], parameter[appId, versionId, hEntityId, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.deleteHierarchicalEntityWithServiceResponseAsync, parameter...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[OperationStatus] operator[>] identifier[deleteHierarchicalEntityAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[hEntityId] , Keyword[final] identifier[ServiceCallback] ope...
public void setBindsTo(BindingFeature bindsTo) { //Check if we need to update if (this.bindsTo != bindsTo) { //ok go ahead - first get a pointer to the old binds to as we will swap this soon. BindingFeature old = this.bindsTo; //swap it this.bindsTo = bindsTo; //make sure old feature no longer po...
class class_name[name] begin[{] method[setBindsTo, return_type[void], modifier[public], parameter[bindsTo]] begin[{] if[binary_operation[THIS[member[None.bindsTo]], !=, member[.bindsTo]]] begin[{] local_variable[type[BindingFeature], old] assign[THIS[member[N...
Keyword[public] Keyword[void] identifier[setBindsTo] operator[SEP] identifier[BindingFeature] identifier[bindsTo] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[bindsTo] operator[!=] identifier[bindsTo] operator[SEP] { identifier[BindingFeature] identifier[old] operat...
protected Integer attributeAsInt(XMLStreamReader reader, String attributeName, Map<String, String> expressions) throws XMLStreamException { String attributeString = rawAttributeText(reader, attributeName); if (attributeName != null && expressions != null && attributeString != null && att...
class class_name[name] begin[{] method[attributeAsInt, return_type[type[Integer]], modifier[protected], parameter[reader, attributeName, expressions]] begin[{] local_variable[type[String], attributeString] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.at...
Keyword[protected] identifier[Integer] identifier[attributeAsInt] operator[SEP] identifier[XMLStreamReader] identifier[reader] , identifier[String] identifier[attributeName] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[expressions] operator[SEP] Keyword[throws] identif...
public static long generationFromSegmentsFileName(String fileName) { if (fileName.equals(IndexFileNames.SEGMENTS)) { return 0; } else if (fileName.startsWith(IndexFileNames.SEGMENTS)) { return Long.parseLong( fileName.substring(1 + IndexFileNames.SEGMENTS.length()), Charact...
class class_name[name] begin[{] method[generationFromSegmentsFileName, return_type[type[long]], modifier[public static], parameter[fileName]] begin[{] if[call[fileName.equals, parameter[member[IndexFileNames.SEGMENTS]]]] begin[{] return[literal[0]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[long] identifier[generationFromSegmentsFileName] operator[SEP] identifier[String] identifier[fileName] operator[SEP] { Keyword[if] operator[SEP] identifier[fileName] operator[SEP] identifier[equals] operator[SEP] identifier[IndexFileNames] operator[SEP] identifier[SEGMENTS...
@Override protected void prepareInjection(Element element, BeanDefinitionBuilder bean) { addPropertyValueFromElement("pageId", element, bean); addPropertyValueFromElement("applicationName", element, bean); addPropertyValueFromElement("pageName", element, bean); addPropertyValueFromEl...
class class_name[name] begin[{] method[prepareInjection, return_type[void], modifier[protected], parameter[element, bean]] begin[{] call[.addPropertyValueFromElement, parameter[literal["pageId"], member[.element], member[.bean]]] call[.addPropertyValueFromElement, parameter[lite...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[prepareInjection] operator[SEP] identifier[Element] identifier[element] , identifier[BeanDefinitionBuilder] identifier[bean] operator[SEP] { identifier[addPropertyValueFromElement] operator[SEP] literal[String] , identifier[element]...
public void setRestartMarker(RestartData restartData) throws IOException, ServerException { Command cmd = new Command("REST", restartData.toFtpCmdArgument()); Reply reply = null; try { reply = controlChannel.exchange(cmd); } catch (FTPReplyParseException e) { ...
class class_name[name] begin[{] method[setRestartMarker, return_type[void], modifier[public], parameter[restartData]] begin[{] local_variable[type[Command], cmd] local_variable[type[Reply], reply] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(...
Keyword[public] Keyword[void] identifier[setRestartMarker] operator[SEP] identifier[RestartData] identifier[restartData] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServerException] { identifier[Command] identifier[cmd] operator[=] Keyword[new] identifier[Command] operator[SEP] literal[St...
private void addValues(final Document doc, final PropertyData prop) throws RepositoryException { int propType = prop.getType(); String fieldName = resolver.createJCRName(prop.getQPath().getName()).getAsString(); if (propType == PropertyType.BINARY) { InternalQName propName = prop.get...
class class_name[name] begin[{] method[addValues, return_type[void], modifier[private], parameter[doc, prop]] begin[{] local_variable[type[int], propType] local_variable[type[String], fieldName] if[binary_operation[member[.propType], ==, member[PropertyType.BINARY]]] begin[{] ...
Keyword[private] Keyword[void] identifier[addValues] operator[SEP] Keyword[final] identifier[Document] identifier[doc] , Keyword[final] identifier[PropertyData] identifier[prop] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[int] identifier[propType] operator[=] identifier[prop] operato...