code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private static <K,V> void copyColor(final Node<K,V> from, final Node<K,V> to, final int index) { if (to != null) { if (from == null) { // by default, make it black to.setBlack(index); } else { to...
class class_name[name] begin[{] method[copyColor, return_type[void], modifier[private static], parameter[from, to, index]] begin[{] if[binary_operation[member[.to], !=, literal[null]]] begin[{] if[binary_operation[member[.from], ==, literal[null]]] begin[{] ...
Keyword[private] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] Keyword[void] identifier[copyColor] operator[SEP] Keyword[final] identifier[Node] operator[<] identifier[K] , identifier[V] operator[>] identifier[from] , Keyword[final] identifier[Node] operator[<] identifier[K] , identifier[V] ...
public Boolean getBoolean(String name) { Object o = get(name); if (o instanceof Boolean) { return (Boolean)o; } if (o != null) { try { String string = o.toString(); if (string != null) { return GrailsStringUtils...
class class_name[name] begin[{] method[getBoolean, return_type[type[Boolean]], modifier[public], parameter[name]] begin[{] local_variable[type[Object], o] if[binary_operation[member[.o], instanceof, type[Boolean]]] begin[{] return[Cast(expression=MemberReference(member=o, po...
Keyword[public] identifier[Boolean] identifier[getBoolean] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[Object] identifier[o] operator[=] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[o] Keyword[instanceof] identifi...
public void assertIsPositive(Description description, BigDecimal actual) { comparables.assertGreaterThan(description, actual, ZERO); }
class class_name[name] begin[{] method[assertIsPositive, return_type[void], modifier[public], parameter[description, actual]] begin[{] call[comparables.assertGreaterThan, parameter[member[.description], member[.actual], member[.ZERO]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[assertIsPositive] operator[SEP] identifier[Description] identifier[description] , identifier[BigDecimal] identifier[actual] operator[SEP] { identifier[comparables] operator[SEP] identifier[assertGreaterThan] operator[SEP] identifier[description] , identifier[actual] , ...
public void sort( float[] values, float[] valuesToFollow ) { this.valuesToSortFloat = values; this.valuesToFollowFloat = valuesToFollow; number = values.length; monitor.beginTask("Sorting...", -1); monitor.worked(1); quicksortFloat(0, number - 1...
class class_name[name] begin[{] method[sort, return_type[void], modifier[public], parameter[values, valuesToFollow]] begin[{] assign[THIS[member[None.valuesToSortFloat]], member[.values]] assign[THIS[member[None.valuesToFollowFloat]], member[.valuesToFollow]] ass...
Keyword[public] Keyword[void] identifier[sort] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[values] , Keyword[float] operator[SEP] operator[SEP] identifier[valuesToFollow] operator[SEP] { Keyword[this] operator[SEP] identifier[valuesToSortFloat] operator[=] identifier[values] operator[SEP...
@SuppressWarnings("rawtypes") public List mget(Object... keys) { Jedis jedis = getJedis(); try { byte[][] keysBytesArray = keysToBytesArray(keys); List<byte[]> data = jedis.mget(keysBytesArray); return valueListFromBytesList(data); } finally {close(jedis);} }
class class_name[name] begin[{] method[mget, return_type[type[List]], modifier[public], parameter[keys]] begin[{] local_variable[type[Jedis], jedis] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[List] identifier[mget] operator[SEP] identifier[Object] operator[...] identifier[keys] operator[SEP] { identifier[Jedis] identifier[jedis] operator[=] identifier[getJedis] operator[SEP] operator[SEP]...
public String getTableNames(boolean bAddQuotes) { return (m_tableName == null) ? Record.formatTableNames(REGISTRATION_FILE, bAddQuotes) : super.getTableNames(bAddQuotes); }
class class_name[name] begin[{] method[getTableNames, return_type[type[String]], modifier[public], parameter[bAddQuotes]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m_tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan...
Keyword[public] identifier[String] identifier[getTableNames] operator[SEP] Keyword[boolean] identifier[bAddQuotes] operator[SEP] { Keyword[return] operator[SEP] identifier[m_tableName] operator[==] Other[null] operator[SEP] operator[?] identifier[Record] operator[SEP] identifier[formatTableNames] operator[SEP] i...
public boolean handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException { for (HandlerMapper mapper : this.mappers) { Handler handler = mapper.getHandler(request); if (handler != null) { handle(handler, request, response); return true; } } return false; }
class class_name[name] begin[{] method[handle, return_type[type[boolean]], modifier[public], parameter[request, response]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocati...
Keyword[public] Keyword[boolean] identifier[handle] operator[SEP] identifier[ServerHttpRequest] identifier[request] , identifier[ServerHttpResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] identifier[HandlerMapper] identifier[mapper] operator[:] K...
public static PrometheusMeterRegistry prometheus() { PrometheusMeterRegistry prometheusRegistry = new PrometheusMeterRegistry(new PrometheusConfig() { @Override public Duration step() { return Duration.ofSeconds(10); } @Override @Nulla...
class class_name[name] begin[{] method[prometheus, return_type[type[PrometheusMeterRegistry]], modifier[public static], parameter[]] begin[{] local_variable[type[PrometheusMeterRegistry], prometheusRegistry] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecla...
Keyword[public] Keyword[static] identifier[PrometheusMeterRegistry] identifier[prometheus] operator[SEP] operator[SEP] { identifier[PrometheusMeterRegistry] identifier[prometheusRegistry] operator[=] Keyword[new] identifier[PrometheusMeterRegistry] operator[SEP] Keyword[new] identifier[PrometheusConfig] operator...
public static void resetIfAppVersionChanged(Context context) { SharedPreferences prefs = getSharedPreferences(context); int appVersionCode = Integer.MIN_VALUE; final int previousAppVersionCode = prefs.getInt(PREF_KEY_APP_VERSION_CODE, Integer.MIN_VALUE); try { appVersionCode...
class class_name[name] begin[{] method[resetIfAppVersionChanged, return_type[void], modifier[public static], parameter[context]] begin[{] local_variable[type[SharedPreferences], prefs] local_variable[type[int], appVersionCode] local_variable[type[int], previousAppVersionCode] Tr...
Keyword[public] Keyword[static] Keyword[void] identifier[resetIfAppVersionChanged] operator[SEP] identifier[Context] identifier[context] operator[SEP] { identifier[SharedPreferences] identifier[prefs] operator[=] identifier[getSharedPreferences] operator[SEP] identifier[context] operator[SEP] operator[SEP] Keywo...
@SuppressWarnings("WeakerAccess") public static NumberField buildRMST(int requestingPlayer, Message.MenuIdentifier targetMenu, CdjStatus.TrackSourceSlot slot) { return buildRMST(requestingPlayer, targetMenu, slot, CdjStatus.TrackType.REKORDBOX); }
class class_name[name] begin[{] method[buildRMST, return_type[type[NumberField]], modifier[public static], parameter[requestingPlayer, targetMenu, slot]] begin[{] return[call[.buildRMST, parameter[member[.requestingPlayer], member[.targetMenu], member[.slot], member[CdjStatus.TrackType.REKORDBOX]]]] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[NumberField] identifier[buildRMST] operator[SEP] Keyword[int] identifier[requestingPlayer] , identifier[Message] operator[SEP] identifier[MenuIdentifier] identifier[targetMenu] , identifie...
private static boolean shouldRetry(final int status, final String content) { switch (status) { case 200: return false; case 404: return analyse404Response(content); case 500: return analyse500Response(content); case ...
class class_name[name] begin[{] method[shouldRetry, return_type[type[boolean]], modifier[private static], parameter[status, content]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=200)], statements=[Retur...
Keyword[private] Keyword[static] Keyword[boolean] identifier[shouldRetry] operator[SEP] Keyword[final] Keyword[int] identifier[status] , Keyword[final] identifier[String] identifier[content] operator[SEP] { Keyword[switch] operator[SEP] identifier[status] operator[SEP] { Keyword[case] Other[200] oper...
private void appendRoles(final StringBuilder builder, final User user) { for (final UserRoleName role : user.getRoles()) { append(builder, ",", role.name()); } }
class class_name[name] begin[{] method[appendRoles, return_type[void], modifier[private], parameter[builder, user]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_o...
Keyword[private] Keyword[void] identifier[appendRoles] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[builder] , Keyword[final] identifier[User] identifier[user] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[UserRoleName] identifier[role] operator[:] identifier[user] o...
private boolean fillReadBuffer() throws IOException { // TODO: Add reading from error stream of external process. Otherwise the InputFormat might get deadlocked! // stream was completely processed if(noMoreStreamInput) { if(this.readBufferReadPos == this.readBufferFillPos) { this.noMoreRecordBuffers = t...
class class_name[name] begin[{] method[fillReadBuffer, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[member[.noMoreStreamInput]] begin[{] if[binary_operation[THIS[member[None.readBufferReadPos]], ==, THIS[member[None.readBufferFillPos]]]] begin[...
Keyword[private] Keyword[boolean] identifier[fillReadBuffer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[noMoreStreamInput] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[readBufferReadPos] operator[==] Ke...
protected String[] extractClientCertificateChain(HttpServletRequest request) { for (ClientCertificateExtractor extractor : clientCertificateExtractors) { String[] chain = extractor.extractClientCertificateChain(request); if (chain != null && chain.length > 0) { ...
class class_name[name] begin[{] method[extractClientCertificateChain, return_type[type[String]], modifier[protected], parameter[request]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer...
Keyword[protected] identifier[String] operator[SEP] operator[SEP] identifier[extractClientCertificateChain] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[for] operator[SEP] identifier[ClientCertificateExtractor] identifier[extractor] operator[:] identifier[clientCertif...
public static Set<BioPAXElement> runCommonStreamWithPOIMultiSet( Set<Set<BioPAXElement>> sourceSets, Model model, Direction direction, int limit, Filter... filters) { Graph graph; if (model.getLevel() == BioPAXLevel.L3) { graph = new GraphL3(model, filters); } else return Collections.emptySet()...
class class_name[name] begin[{] method[runCommonStreamWithPOIMultiSet, return_type[type[Set]], modifier[public static], parameter[sourceSets, model, direction, limit, filters]] begin[{] local_variable[type[Graph], graph] if[binary_operation[call[model.getLevel, parameter[]], ==, member[...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[BioPAXElement] operator[>] identifier[runCommonStreamWithPOIMultiSet] operator[SEP] identifier[Set] operator[<] identifier[Set] operator[<] identifier[BioPAXElement] operator[>] operator[>] identifier[sourceSets] , identifier[Model] identifier[mode...
public void addNewItems(List<M> newItems) { if (this.items == null) { this.items = createEmptyList(); } this.items.addAll(newItems); }
class class_name[name] begin[{] method[addNewItems, return_type[void], modifier[public], parameter[newItems]] begin[{] if[binary_operation[THIS[member[None.items]], ==, literal[null]]] begin[{] assign[THIS[member[None.items]], call[.createEmptyList, parameter[]]] ...
Keyword[public] Keyword[void] identifier[addNewItems] operator[SEP] identifier[List] operator[<] identifier[M] operator[>] identifier[newItems] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[items] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] i...
public void dumpNoTabs(PrintStream out) { // out.println("seq\tversion\ttime\tclasses\tNCSS\tadded\tnewCode\tfixed\tremoved\tretained\tdead\tactive"); print(3, true, out, "seq"); out.print(' '); print(19, false, out, "version"); out.print(' '); print(formatDates ? 12 : 10...
class class_name[name] begin[{] method[dumpNoTabs, return_type[void], modifier[public], parameter[out]] begin[{] call[.print, parameter[literal[3], literal[true], member[.out], literal["seq"]]] call[out.print, parameter[literal[' ']]] call[.print, parameter[liter...
Keyword[public] Keyword[void] identifier[dumpNoTabs] operator[SEP] identifier[PrintStream] identifier[out] operator[SEP] { identifier[print] operator[SEP] Other[3] , literal[boolean] , identifier[out] , literal[String] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[print] operator[SEP] l...
public IfcSIPrefix createIfcSIPrefixFromString(EDataType eDataType, String initialValue) { IfcSIPrefix result = IfcSIPrefix.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return...
class class_name[name] begin[{] method[createIfcSIPrefixFromString, return_type[type[IfcSIPrefix]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcSIPrefix], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatement(e...
Keyword[public] identifier[IfcSIPrefix] identifier[createIfcSIPrefixFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcSIPrefix] identifier[result] operator[=] identifier[IfcSIPrefix] operator[SEP] identifier[get] ope...
public LocalDateTime minusHours(int hours) { if (hours == 0) { return this; } long instant = getChronology().hours().subtract(getLocalMillis(), hours); return withLocalMillis(instant); }
class class_name[name] begin[{] method[minusHours, return_type[type[LocalDateTime]], modifier[public], parameter[hours]] begin[{] if[binary_operation[member[.hours], ==, literal[0]]] begin[{] return[THIS[]] else begin[{] None end[}] local_variable[type[long],...
Keyword[public] identifier[LocalDateTime] identifier[minusHours] operator[SEP] Keyword[int] identifier[hours] operator[SEP] { Keyword[if] operator[SEP] identifier[hours] operator[==] Other[0] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } Keyword[long] identifier[instant] ...
public HalRepresentation embedded(String rel, Object embedded) { this.embedded.put(rel, embedded); return this; }
class class_name[name] begin[{] method[embedded, return_type[type[HalRepresentation]], modifier[public], parameter[rel, embedded]] begin[{] THIS[member[None.embedded]call[None.put, parameter[member[.rel], member[.embedded]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[HalRepresentation] identifier[embedded] operator[SEP] identifier[String] identifier[rel] , identifier[Object] identifier[embedded] operator[SEP] { Keyword[this] operator[SEP] identifier[embedded] operator[SEP] identifier[put] operator[SEP] identifier[rel] , identifier[embedded] opera...
@Override public boolean exists() { URL url; if (this.clazz != null) { url = this.clazz.getResource(this.path); } else { url = this.classLoader.getResource(this.path); } return (url != null); }
class class_name[name] begin[{] method[exists, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[URL], url] if[binary_operation[THIS[member[None.clazz]], !=, literal[null]]] begin[{] assign[member[.url], THIS[member[None.claz...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[exists] operator[SEP] operator[SEP] { identifier[URL] identifier[url] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[clazz] operator[!=] Other[null] operator[SEP] { identifier[url] operator[=...
public static List<String> listAllTables() { int items = 100; ListTablesResult ltr = getClient().listTables(items); List<String> tables = new LinkedList<>(); String lastKey; do { tables.addAll(ltr.getTableNames()); lastKey = ltr.getLastEvaluatedTableName(); logger.info("Found {} tables. Total found: ...
class class_name[name] begin[{] method[listAllTables, return_type[type[List]], modifier[public static], parameter[]] begin[{] local_variable[type[int], items] local_variable[type[ListTablesResult], ltr] local_variable[type[List], tables] local_variable[type[String], lastKey] ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[listAllTables] operator[SEP] operator[SEP] { Keyword[int] identifier[items] operator[=] Other[100] operator[SEP] identifier[ListTablesResult] identifier[ltr] operator[=] identifier[getClient] operator[SEP] oper...
private Set<CmsUUID> getSetFromUUIDStrings(String[] uuids) { Set<CmsUUID> res = new HashSet<CmsUUID>(); for (String uuid : uuids) { res.add(new CmsUUID(uuid)); } return res; }
class class_name[name] begin[{] method[getSetFromUUIDStrings, return_type[type[Set]], modifier[private], parameter[uuids]] begin[{] local_variable[type[Set], res] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arg...
Keyword[private] identifier[Set] operator[<] identifier[CmsUUID] operator[>] identifier[getSetFromUUIDStrings] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[uuids] operator[SEP] { identifier[Set] operator[<] identifier[CmsUUID] operator[>] identifier[res] operator[=] Keyword[new] identi...
public void removeGroup(String group) { if (worldGroupExist(group)) { Common.getInstance().getStorageHandler().getStorageEngine().removeWorldGroup(group); list.remove(group); } }
class class_name[name] begin[{] method[removeGroup, return_type[void], modifier[public], parameter[group]] begin[{] if[call[.worldGroupExist, parameter[member[.group]]]] begin[{] call[Common.getInstance, parameter[]] call[list.remove, parameter[me...
Keyword[public] Keyword[void] identifier[removeGroup] operator[SEP] identifier[String] identifier[group] operator[SEP] { Keyword[if] operator[SEP] identifier[worldGroupExist] operator[SEP] identifier[group] operator[SEP] operator[SEP] { identifier[Common] operator[SEP] identifier[getInstance] operator...
private void checkArgumentsMatchParameters( Node call, FunctionType functionType, Iterator<Node> arguments, Iterator<Node> parameters, int firstParameterIndex) { int spreadArgumentCount = 0; int normalArgumentCount = firstParameterIndex; boolean checkArgumentTypeAgainstParamet...
class class_name[name] begin[{] method[checkArgumentsMatchParameters, return_type[void], modifier[private], parameter[call, functionType, arguments, parameters, firstParameterIndex]] begin[{] local_variable[type[int], spreadArgumentCount] local_variable[type[int], normalArgumentCount] l...
Keyword[private] Keyword[void] identifier[checkArgumentsMatchParameters] operator[SEP] identifier[Node] identifier[call] , identifier[FunctionType] identifier[functionType] , identifier[Iterator] operator[<] identifier[Node] operator[>] identifier[arguments] , identifier[Iterator] operator[<] identifier[Node] operat...
public InvocationRouter<InvocationBaratine> buildRouter(WebApp webApp) { // find views InjectorAmp inject = webApp.inject(); buildViews(inject); ArrayList<RouteMap> mapList = new ArrayList<>(); ServicesAmp manager = webApp.services(); ServiceRefAmp serviceRef = manager.newService(new Rout...
class class_name[name] begin[{] method[buildRouter, return_type[type[InvocationRouter]], modifier[public], parameter[webApp]] begin[{] local_variable[type[InjectorAmp], inject] call[.buildViews, parameter[member[.inject]]] local_variable[type[ArrayList], mapList] local_v...
Keyword[public] identifier[InvocationRouter] operator[<] identifier[InvocationBaratine] operator[>] identifier[buildRouter] operator[SEP] identifier[WebApp] identifier[webApp] operator[SEP] { identifier[InjectorAmp] identifier[inject] operator[=] identifier[webApp] operator[SEP] identifier[inject] operator[SEP] ...
public static Collection<Class> getClassSimpleDependencies(Class c) { HashSet<Class> result = new HashSet<Class>(); result.add(c); //add the own class //declared subclasses Class[] declaredClasses = c.getDeclaredClasses(); for(Class cl : declaredC...
class class_name[name] begin[{] method[getClassSimpleDependencies, return_type[type[Collection]], modifier[public static], parameter[c]] begin[{] local_variable[type[HashSet], result] call[result.add, parameter[member[.c]]] local_variable[type[Class], declaredClasses] Fo...
Keyword[public] Keyword[static] identifier[Collection] operator[<] identifier[Class] operator[>] identifier[getClassSimpleDependencies] operator[SEP] identifier[Class] identifier[c] operator[SEP] { identifier[HashSet] operator[<] identifier[Class] operator[>] identifier[result] operator[=] Keyword[new] identifie...
private void _buildWhere( final SearchCriteria criteria, final StringBuilder stmt, final List<Object> params ) { Binding binding = (criteria == null ? null : criteria.getBinding()); // FulltextMatch match = (criteria ==...
class class_name[name] begin[{] method[_buildWhere, return_type[void], modifier[private], parameter[criteria, stmt, params]] begin[{] local_variable[type[Binding], binding] if[binary_operation[member[.binding], !=, literal[null]]] begin[{] call[stmt.append, param...
Keyword[private] Keyword[void] identifier[_buildWhere] operator[SEP] Keyword[final] identifier[SearchCriteria] identifier[criteria] , Keyword[final] identifier[StringBuilder] identifier[stmt] , Keyword[final] identifier[List] operator[<] identifier[Object] operator[>] identifier[params] operator[SEP] { identif...
public void deleteMessage(String id, String reservationId, String subscriberName) throws IOException { String payload = gson.toJson(new SubscribedMessageOptions(reservationId, subscriberName)); IronReader reader = client.delete("queues/" + name + "/messages/" + id, payload); reader.close(); ...
class class_name[name] begin[{] method[deleteMessage, return_type[void], modifier[public], parameter[id, reservationId, subscriberName]] begin[{] local_variable[type[String], payload] local_variable[type[IronReader], reader] call[reader.close, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[deleteMessage] operator[SEP] identifier[String] identifier[id] , identifier[String] identifier[reservationId] , identifier[String] identifier[subscriberName] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[payload] operator[=] ident...
public static void copyDirectories(String[] directories, String[] destinationDirectories) throws IOException { copyDirectories(getFiles(directories), getFiles(destinationDirectories)); }
class class_name[name] begin[{] method[copyDirectories, return_type[void], modifier[public static], parameter[directories, destinationDirectories]] begin[{] call[.copyDirectories, parameter[call[.getFiles, parameter[member[.directories]]], call[.getFiles, parameter[member[.destinationDirectorie...
Keyword[public] Keyword[static] Keyword[void] identifier[copyDirectories] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[directories] , identifier[String] operator[SEP] operator[SEP] identifier[destinationDirectories] operator[SEP] Keyword[throws] identifier[IOException] { identifier[co...
public static BigInteger getSafePrime(UnsignedInteger32 maximumSize) { BigInteger prime = group1; for(Iterator<BigInteger> it = safePrimes.iterator(); it.hasNext(); ) { BigInteger p = it.next(); int len = p.bitLength(); if(len > maximumSize.intValue()) { break; } prime = p; } return prime...
class class_name[name] begin[{] method[getSafePrime, return_type[type[BigInteger]], modifier[public static], parameter[maximumSize]] begin[{] local_variable[type[BigInteger], prime] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Va...
Keyword[public] Keyword[static] identifier[BigInteger] identifier[getSafePrime] operator[SEP] identifier[UnsignedInteger32] identifier[maximumSize] operator[SEP] { identifier[BigInteger] identifier[prime] operator[=] identifier[group1] operator[SEP] Keyword[for] operator[SEP] identifier[Iterator] operator[<] ide...
@Override public EClass getIfcWindow() { if (ifcWindowEClass == null) { ifcWindowEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(764); } return ifcWindowEClass; }
class class_name[name] begin[{] method[getIfcWindow, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcWindowEClass], ==, literal[null]]] begin[{] assign[member[.ifcWindowEClass], Cast(expression=MethodInvocation(arguments=...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcWindow] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcWindowEClass] operator[==] Other[null] operator[SEP] { identifier[ifcWindowEClass] operator[=] operator[SEP] identifier[EClass] operator[...
@Override public void initialized(IntrospectedTable introspectedTable) { // 1. 获取表单独配置 if (introspectedTable.getTableConfigurationProperty(PRO_TABLE_OVERRIDE) != null) { String override = introspectedTable.getTableConfigurationProperty(PRO_TABLE_OVERRIDE); try { ...
class class_name[name] begin[{] method[initialized, return_type[void], modifier[public], parameter[introspectedTable]] begin[{] if[binary_operation[call[introspectedTable.getTableConfigurationProperty, parameter[member[.PRO_TABLE_OVERRIDE]]], !=, literal[null]]] begin[{] local_varia...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialized] operator[SEP] identifier[IntrospectedTable] identifier[introspectedTable] operator[SEP] { Keyword[if] operator[SEP] identifier[introspectedTable] operator[SEP] identifier[getTableConfigurationProperty] operator[SEP] identifi...
public IntStreamEx prepend(IntStream other) { return new IntStreamEx(IntStream.concat(other, stream()), context.combine(other)); }
class class_name[name] begin[{] method[prepend, return_type[type[IntStreamEx]], modifier[public], parameter[other]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=other, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(ar...
Keyword[public] identifier[IntStreamEx] identifier[prepend] operator[SEP] identifier[IntStream] identifier[other] operator[SEP] { Keyword[return] Keyword[new] identifier[IntStreamEx] operator[SEP] identifier[IntStream] operator[SEP] identifier[concat] operator[SEP] identifier[other] , identifier[stream] operato...
public ServiceFuture<OperationStatus> updateAsync(UUID appId, ApplicationUpdateObject applicationUpdateObject, final ServiceCallback<OperationStatus> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(appId, applicationUpdateObject), serviceCallback); }
class class_name[name] begin[{] method[updateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[appId, applicationUpdateObject, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateWithServiceResponseAsync, parameter[member[.appId], member[.applicat...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[OperationStatus] operator[>] identifier[updateAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[ApplicationUpdateObject] identifier[applicationUpdateObject] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[Operation...
protected int searchBucketIndex(byte[] key, int leftIndex, int rightIndex) { if (KeyUtils.compareKey(key, maxRangeValues[rightIndex]) > 0) { return 0; } int idx = Arrays.binarySearch(maxRangeValues, leftIndex, rightIndex, key, new ByteArrayComparator()); idx = idx < 0 ? -idx ...
class class_name[name] begin[{] method[searchBucketIndex, return_type[type[int]], modifier[protected], parameter[key, leftIndex, rightIndex]] begin[{] if[binary_operation[call[KeyUtils.compareKey, parameter[member[.key], member[.maxRangeValues]]], >, literal[0]]] begin[{] return[lit...
Keyword[protected] Keyword[int] identifier[searchBucketIndex] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[int] identifier[leftIndex] , Keyword[int] identifier[rightIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[KeyUtils] operator[SEP] identifier[compareKey] op...
public static void addJob( String jobName, Class<? extends Job> jobClass, Map<String, Object> params, boolean isConcurrencyAllowed) throws SundialSchedulerException { try { JobDataMap jobDataMap = new JobDataMap(); if (params != null) { for (Entry<String,...
class class_name[name] begin[{] method[addJob, return_type[void], modifier[public static], parameter[jobName, jobClass, params, isConcurrencyAllowed]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=...
Keyword[public] Keyword[static] Keyword[void] identifier[addJob] operator[SEP] identifier[String] identifier[jobName] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Job] operator[>] identifier[jobClass] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identif...
String parseLine(CharCursor is, LineMap lineMap) throws IOException { int ch = is.read(); _buf.clear(); String filename = null; int line = 0; // Take 3: match /.*:\d+:/ _token.clear(); line: for (; ch != is.DONE; ch = is.read()) { while (ch == ':') { line = 0; ...
class class_name[name] begin[{] method[parseLine, return_type[type[String]], modifier[default], parameter[is, lineMap]] begin[{] local_variable[type[int], ch] call[_buf.clear, parameter[]] local_variable[type[String], filename] local_variable[type[int], line] ...
identifier[String] identifier[parseLine] operator[SEP] identifier[CharCursor] identifier[is] , identifier[LineMap] identifier[lineMap] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[ch] operator[=] identifier[is] operator[SEP] identifier[read] operator[SEP] operator[SEP] operato...
public static void setProperties( Properties prp ) { Config.prp = new Properties( prp ); try { Config.prp.putAll( System.getProperties() ); } catch( SecurityException se ) { if( log.level > 1 ) log.println( "SecurityException: jcifs.smb1 will ignore System...
class class_name[name] begin[{] method[setProperties, return_type[void], modifier[public static], parameter[prp]] begin[{] assign[member[Config.prp], ClassCreator(arguments=[MemberReference(member=prp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor...
Keyword[public] Keyword[static] Keyword[void] identifier[setProperties] operator[SEP] identifier[Properties] identifier[prp] operator[SEP] { identifier[Config] operator[SEP] identifier[prp] operator[=] Keyword[new] identifier[Properties] operator[SEP] identifier[prp] operator[SEP] operator[SEP] Keyword[try] { ...
public static double doubleValue(Object value) throws NumberFormatException { if (value == null) return 0.0; Class c = value.getClass(); if (c.getSuperclass() == Number.class) return ((Number) value).doubleValue(); if (c == Boolean.class) return ((Boolean) value).booleanValue...
class class_name[name] begin[{] method[doubleValue, return_type[type[double]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[0.0]] else begin[{] None end[}] local_variable[type[Class], ...
Keyword[public] Keyword[static] Keyword[double] identifier[doubleValue] operator[SEP] identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[NumberFormatException] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[return] literal[Float] operator[S...
public boolean scrollRecyclerViewToTop(int index) { if(config.commandLogging){ Log.d(config.commandLoggingTag, "scrollRecyclerViewToTop("+index+")"); } if(!config.shouldScroll) { return false; } View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout()); scroller.scroll...
class class_name[name] begin[{] method[scrollRecyclerViewToTop, return_type[type[boolean]], modifier[public], parameter[index]] begin[{] if[member[config.commandLogging]] begin[{] call[Log.d, parameter[member[config.commandLoggingTag], binary_operation[binary_operation[l...
Keyword[public] Keyword[boolean] identifier[scrollRecyclerViewToTop] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[commandLogging] operator[SEP] { identifier[Log] operator[SEP] identifier[d] operator[SEP] identifier[c...
public String upgradeCatalogAsNeeded(InMemoryJarfile outputJar) throws IOException { // getBuildInfoFromJar() performs some validation. String[] buildInfoLines = CatalogUtil.getBuildInfoFromJar(outputJar); String versionFromCatalog = buildInfoLines[0]; // Set if a...
class class_name[name] begin[{] method[upgradeCatalogAsNeeded, return_type[type[String]], modifier[public], parameter[outputJar]] begin[{] local_variable[type[String], buildInfoLines] local_variable[type[String], versionFromCatalog] local_variable[type[String], upgradedFromVersion] ...
Keyword[public] identifier[String] identifier[upgradeCatalogAsNeeded] operator[SEP] identifier[InMemoryJarfile] identifier[outputJar] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] operator[SEP] operator[SEP] identifier[buildInfoLines] operator[=] identifier[CatalogUtil] operator[SEP]...
private static <T> void writeConfig(BufferedWriter writer, DatabaseTableConfig<T> config) throws IOException, SQLException { writer.append(CONFIG_FILE_START_MARKER); writer.newLine(); if (config.getDataClass() != null) { writer.append(FIELD_NAME_DATA_CLASS).append('=').append(config.getDataClass().getName()...
class class_name[name] begin[{] method[writeConfig, return_type[void], modifier[private static], parameter[writer, config]] begin[{] call[writer.append, parameter[member[.CONFIG_FILE_START_MARKER]]] call[writer.newLine, parameter[]] if[binary_operation[call[confi...
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[writeConfig] operator[SEP] identifier[BufferedWriter] identifier[writer] , identifier[DatabaseTableConfig] operator[<] identifier[T] operator[>] identifier[config] operator[SEP] Keyword[throws] identifier[IOException] , id...
protected String getTail() { String tail = ""; if (this.offset < this.limit) { tail = new String(this.buffer, this.offset, this.limit - this.offset + 1); } return tail; }
class class_name[name] begin[{] method[getTail, return_type[type[String]], modifier[protected], parameter[]] begin[{] local_variable[type[String], tail] if[binary_operation[THIS[member[None.offset]], <, THIS[member[None.limit]]]] begin[{] assign[member[.tail], Cl...
Keyword[protected] identifier[String] identifier[getTail] operator[SEP] operator[SEP] { identifier[String] identifier[tail] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[offset] operator[<] Keyword[this] operator[SEP] identifier[limit] operator[SEP] {...
public Matrix removeColumn(int j) { if (j >= columns || j < 0) { throw new IndexOutOfBoundsException("Illegal column number, must be 0.." + (columns - 1)); } Matrix result = blankOfShape(rows, columns - 1); for (int jj = 0; jj < j; jj++) { result.setColumn(jj, g...
class class_name[name] begin[{] method[removeColumn, return_type[type[Matrix]], modifier[public], parameter[j]] begin[{] if[binary_operation[binary_operation[member[.j], >=, member[.columns]], ||, binary_operation[member[.j], <, literal[0]]]] begin[{] ThrowStatement(expression=Class...
Keyword[public] identifier[Matrix] identifier[removeColumn] operator[SEP] Keyword[int] identifier[j] operator[SEP] { Keyword[if] operator[SEP] identifier[j] operator[>=] identifier[columns] operator[||] identifier[j] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IndexOutO...
public static boolean isDiagonalPositive( DMatrixRMaj a ) { for( int i = 0; i < a.numRows; i++ ) { if( !(a.get(i,i) >= 0) ) return false; } return true; }
class class_name[name] begin[{] method[isDiagonalPositive, return_type[type[boolean]], modifier[public static], parameter[a]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_op...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isDiagonalPositive] operator[SEP] identifier[DMatrixRMaj] identifier[a] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[a] operator[SEP] identifier[numRows] op...
private void visitFrame(final Frame f) { int i, t; int nTop = 0; int nLocal = 0; int nStack = 0; int[] locals = f.inputLocals; int[] stacks = f.inputStack; // computes the number of locals (ignores TOP types that are just after // a LONG or a DOUBLE, and a...
class class_name[name] begin[{] method[visitFrame, return_type[void], modifier[private], parameter[f]] begin[{] local_variable[type[int], i] local_variable[type[int], nTop] local_variable[type[int], nLocal] local_variable[type[int], nStack] local_variable[type[int], loca...
Keyword[private] Keyword[void] identifier[visitFrame] operator[SEP] Keyword[final] identifier[Frame] identifier[f] operator[SEP] { Keyword[int] identifier[i] , identifier[t] operator[SEP] Keyword[int] identifier[nTop] operator[=] Other[0] operator[SEP] Keyword[int] identifier[nLocal] operator[=] Other[0] operat...
int execute(final int idx, TestScript testScript, ApplicationContext appCtx) { int ret = idx; switch (key) { case START: ret = idx + 1; break; case BACK: ret = idx - 1; break; case CURRENT: ...
class class_name[name] begin[{] method[execute, return_type[type[int]], modifier[default], parameter[idx, testScript, appCtx]] begin[{] local_variable[type[int], ret] SwitchStatement(cases=[SwitchStatementCase(case=['START'], statements=[StatementExpression(expression=Assignment(expressionl=Mem...
Keyword[int] identifier[execute] operator[SEP] Keyword[final] Keyword[int] identifier[idx] , identifier[TestScript] identifier[testScript] , identifier[ApplicationContext] identifier[appCtx] operator[SEP] { Keyword[int] identifier[ret] operator[=] identifier[idx] operator[SEP] Keyword[switch] operator[SEP] ide...
public void assertGreaterThan(Description description, Short actual, short expected) { assertNotNull(description, actual); if (!isGreaterThan(actual, expected)) { throw failures.failure(description, ShouldBeGreaterThan.shouldBeGreaterThan(actual, expected)); } }
class class_name[name] begin[{] method[assertGreaterThan, return_type[void], modifier[public], parameter[description, actual, expected]] begin[{] call[.assertNotNull, parameter[member[.description], member[.actual]]] if[call[.isGreaterThan, parameter[member[.actual], member[.exp...
Keyword[public] Keyword[void] identifier[assertGreaterThan] operator[SEP] identifier[Description] identifier[description] , identifier[Short] identifier[actual] , Keyword[short] identifier[expected] operator[SEP] { identifier[assertNotNull] operator[SEP] identifier[description] , identifier[actual] operator[S...
public Matrix4x3d arcball(double radius, double centerX, double centerY, double centerZ, double angleX, double angleY, Matrix4x3d dest) { double m30 = m20 * -radius + this.m30; double m31 = m21 * -radius + this.m31; double m32 = m22 * -radius + this.m32; double sin = Math.sin(angleX); ...
class class_name[name] begin[{] method[arcball, return_type[type[Matrix4x3d]], modifier[public], parameter[radius, centerX, centerY, centerZ, angleX, angleY, dest]] begin[{] local_variable[type[double], m30] local_variable[type[double], m31] local_variable[type[double], m32] loc...
Keyword[public] identifier[Matrix4x3d] identifier[arcball] operator[SEP] Keyword[double] identifier[radius] , Keyword[double] identifier[centerX] , Keyword[double] identifier[centerY] , Keyword[double] identifier[centerZ] , Keyword[double] identifier[angleX] , Keyword[double] identifier[angleY] , identifier[Matri...
private void writeExternalEntry0(ReplicableEntry entry, Bytes destination) { destination.writeByte(ENTRY_HUNK); destination.writeStopBit(entry.originTimestamp()); if (entry.originIdentifier() == 0) throw new IllegalStateException("Identifier can't be 0"); destination.writeBy...
class class_name[name] begin[{] method[writeExternalEntry0, return_type[void], modifier[private], parameter[entry, destination]] begin[{] call[destination.writeByte, parameter[member[.ENTRY_HUNK]]] call[destination.writeStopBit, parameter[call[entry.originTimestamp, parameter[]]...
Keyword[private] Keyword[void] identifier[writeExternalEntry0] operator[SEP] identifier[ReplicableEntry] identifier[entry] , identifier[Bytes] identifier[destination] operator[SEP] { identifier[destination] operator[SEP] identifier[writeByte] operator[SEP] identifier[ENTRY_HUNK] operator[SEP] operator[SEP] iden...
public JSONObject toJSONObject() throws JSONException { final JSONObject ret = new JSONObject(); ret.put(Keys.OBJECT_ID, getId()); ret.put(Plugin.PLUGIN_NAME, getName()); ret.put(Plugin.PLUGIN_VERSION, getVersion()); ret.put(Plugin.PLUGIN_AUTHOR, getAuthor()); ret.put(Pl...
class class_name[name] begin[{] method[toJSONObject, return_type[type[JSONObject]], modifier[public], parameter[]] begin[{] local_variable[type[JSONObject], ret] call[ret.put, parameter[member[Keys.OBJECT_ID], call[.getId, parameter[]]]] call[ret.put, parameter[member[Pl...
Keyword[public] identifier[JSONObject] identifier[toJSONObject] operator[SEP] operator[SEP] Keyword[throws] identifier[JSONException] { Keyword[final] identifier[JSONObject] identifier[ret] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] operator[SEP] operator[SEP] identifier[ret] operator[SEP] ide...
private ServerEventHandler createServerEventHandler( SFSEventType type, Class<?> clazz) { try { return (ServerEventHandler) ReflectClassUtil.newInstance( clazz, BaseAppContext.class, context); } catch (ExtensionException e) { getLogger().error("Error when create server event handlers", e); ...
class class_name[name] begin[{] method[createServerEventHandler, return_type[type[ServerEventHandler]], modifier[private], parameter[type, clazz]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=clazz, postfix_operators=[], pref...
Keyword[private] identifier[ServerEventHandler] identifier[createServerEventHandler] operator[SEP] identifier[SFSEventType] identifier[type] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[ServerEventHan...
static <K,V> boolean checkInvariants(TreeNode<K,V> t) { TreeNode<K,V> tp = t.parent, tl = t.left, tr = t.right, tb = t.prev, tn = (TreeNode<K,V>)t.next; if (tb != null && tb.next != t) return false; if (tn != null && tn.prev != t) retur...
class class_name[name] begin[{] method[checkInvariants, return_type[type[boolean]], modifier[static], parameter[t]] begin[{] local_variable[type[TreeNode], tp] if[binary_operation[binary_operation[member[.tb], !=, literal[null]], &&, binary_operation[member[tb.next], !=, member[.t]]]] b...
Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] Keyword[boolean] identifier[checkInvariants] operator[SEP] identifier[TreeNode] operator[<] identifier[K] , identifier[V] operator[>] identifier[t] operator[SEP] { identifier[TreeNode] operator[<] identifier[K] , identifier[V] operator[>] i...
public CompoundActivity addActivity(Activity activity) { if(activity != null) { logger.trace("adding sub-activity '{}' to list", activity.getId()); activities.add(activity); } return this; }
class class_name[name] begin[{] method[addActivity, return_type[type[CompoundActivity]], modifier[public], parameter[activity]] begin[{] if[binary_operation[member[.activity], !=, literal[null]]] begin[{] call[logger.trace, parameter[literal["adding sub-activity '{}' to ...
Keyword[public] identifier[CompoundActivity] identifier[addActivity] operator[SEP] identifier[Activity] identifier[activity] operator[SEP] { Keyword[if] operator[SEP] identifier[activity] operator[!=] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[...
public static void attach(Environment environment) { Assert.isInstanceOf(ConfigurableEnvironment.class, environment); MutablePropertySources sources = ((ConfigurableEnvironment) environment) .getPropertySources(); PropertySource<?> attached = sources.get(ATTACHED_PROPERTY_SOURCE_NAME); if (attached != null ...
class class_name[name] begin[{] method[attach, return_type[void], modifier[public static], parameter[environment]] begin[{] call[Assert.isInstanceOf, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None,...
Keyword[public] Keyword[static] Keyword[void] identifier[attach] operator[SEP] identifier[Environment] identifier[environment] operator[SEP] { identifier[Assert] operator[SEP] identifier[isInstanceOf] operator[SEP] identifier[ConfigurableEnvironment] operator[SEP] Keyword[class] , identifier[environment] operat...
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR__PROC_MODE: setProcMode((Integer)newValue); return; case AfplibPackage.COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR__CMR_SCPE: setCMRScpe((Integer)newValue); return;...
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR__PROC_MODE, postfix_operators=[], prefix_operators=[], qualifier=Afplib...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] oper...
public CrawlElement withText(String text) { if (this.underXpath == null || this.underXpath.isEmpty()) { this.underXpath = "//" + this.tagName + "[text()=" + escapeApostrophes(text) + "]"; } else { this.underXpath = this.underXpath + " | " + "//" + this.tagName + "[text()=" + escapeApostrophes(text) ...
class class_name[name] begin[{] method[withText, return_type[type[CrawlElement]], modifier[public], parameter[text]] begin[{] if[binary_operation[binary_operation[THIS[member[None.underXpath]], ==, literal[null]], ||, THIS[member[None.underXpath]call[None.isEmpty, parameter[]]]]] begin[{] ...
Keyword[public] identifier[CrawlElement] identifier[withText] operator[SEP] identifier[String] identifier[text] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[underXpath] operator[==] Other[null] operator[||] Keyword[this] operator[SEP] identifier[underXpath] operator[SEP] ident...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "sphericalCSRef") public JAXBElement<SphericalCSRefType> createSphericalCSRef(SphericalCSRefType value) { return new JAXBElement<SphericalCSRefType>(_SphericalCSRef_QNAME, SphericalCSRefType.class, null, value); }
class class_name[name] begin[{] method[createSphericalCSRef, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_SphericalCSRef_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(pos...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[SphericalCSRefType] operator[>] identifier[createSphericalCSRef] operator[SEP] identifier[...
@Nonnull public static LocalDate getCurrentOrNextWorkDay (@Nullable final IHolidayManager aHolidayMgr) { if (aHolidayMgr == null) return CalendarHelper.getCurrentOrNextWorkDay (); LocalDate aDT = PDTFactory.getCurrentLocalDate (); while (!isWorkDay (aDT, aHolidayMgr)) aDT = aDT.plusDays (1);...
class class_name[name] begin[{] method[getCurrentOrNextWorkDay, return_type[type[LocalDate]], modifier[public static], parameter[aHolidayMgr]] begin[{] if[binary_operation[member[.aHolidayMgr], ==, literal[null]]] begin[{] return[call[CalendarHelper.getCurrentOrNextWorkDay, parameter[]]] ...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LocalDate] identifier[getCurrentOrNextWorkDay] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[IHolidayManager] identifier[aHolidayMgr] operator[SEP] { Keyword[if] operator[SEP] identifier[aHolidayMgr] operato...
public void encode(InputStream inStream, OutputStream outStream) throws IOException { int j; int numBytes; byte tmpbuffer[] = new byte[bytesPerLine()]; encodeBufferPrefix(outStream); while (true) { numBytes = readFully(inStream, tmpbuffer); ...
class class_name[name] begin[{] method[encode, return_type[void], modifier[public], parameter[inStream, outStream]] begin[{] local_variable[type[int], j] local_variable[type[int], numBytes] local_variable[type[byte], tmpbuffer] call[.encodeBufferPrefix, parameter[member[...
Keyword[public] Keyword[void] identifier[encode] operator[SEP] identifier[InputStream] identifier[inStream] , identifier[OutputStream] identifier[outStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[j] operator[SEP] Keyword[int] identifier[numBytes] operator[SEP] Keyword[by...
@Override public void onNewIntent(Intent intent) { super.onNewIntent(intent); // Verify OAuth callback Uri uri = intent.getData(); if (uri != null && uri.getScheme().equals(OAUTH_CALLBACK_SCHEME)) { String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER); ...
class class_name[name] begin[{] method[onNewIntent, return_type[void], modifier[public], parameter[intent]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=intent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=onNewIntent, postfix_operators=[], p...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onNewIntent] operator[SEP] identifier[Intent] identifier[intent] operator[SEP] { Keyword[super] operator[SEP] identifier[onNewIntent] operator[SEP] identifier[intent] operator[SEP] operator[SEP] identifier[Uri] identifier[uri] operator[=...
public static boolean isEdgeListItem( Context context, AccessibilityNodeInfoCompat node, int direction, NodeFilter filter) { if (node == null) { return false; } if ((direction <= 0) && isMatchingEdgeListItem(context, node, NodeFocusFinder.SEARCH_BACKWARD,...
class class_name[name] begin[{] method[isEdgeListItem, return_type[type[boolean]], modifier[public static], parameter[context, node, direction, filter]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isEdgeListItem] operator[SEP] identifier[Context] identifier[context] , identifier[AccessibilityNodeInfoCompat] identifier[node] , Keyword[int] identifier[direction] , identifier[NodeFilter] identifier[filter] operator[SEP] { Keyword[if] operator[SEP...
private static boolean polygonDisjointPolyline_(Polygon polygon_a, Polyline polyline_b, double tolerance, ProgressTracker progress_tracker) { // Quick rasterize test to see whether the the geometries are disjoint, // or if one is contained in the other. int relation = tryRasterizedContainsOrDisjoint_(polygo...
class class_name[name] begin[{] method[polygonDisjointPolyline_, return_type[type[boolean]], modifier[private static], parameter[polygon_a, polyline_b, tolerance, progress_tracker]] begin[{] local_variable[type[int], relation] if[binary_operation[member[.relation], ==, member[Relation.d...
Keyword[private] Keyword[static] Keyword[boolean] identifier[polygonDisjointPolyline_] operator[SEP] identifier[Polygon] identifier[polygon_a] , identifier[Polyline] identifier[polyline_b] , Keyword[double] identifier[tolerance] , identifier[ProgressTracker] identifier[progress_tracker] operator[SEP] { Keywor...
@CheckReturnValue public AuditableRestAction<Void> modifyMemberRoles(Member member, Collection<Role> roles) { Checks.notNull(member, "Member"); Checks.notNull(roles, "Roles"); checkGuild(member.getGuild(), "Member"); roles.forEach(role -> { Checks.notNull(role...
class class_name[name] begin[{] method[modifyMemberRoles, return_type[type[AuditableRestAction]], modifier[public], parameter[member, roles]] begin[{] call[Checks.notNull, parameter[member[.member], literal["Member"]]] call[Checks.notNull, parameter[member[.roles], literal["Role...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[AuditableRestAction] operator[<] identifier[Void] operator[>] identifier[modifyMemberRoles] operator[SEP] identifier[Member] identifier[member] , identifier[Collection] operator[<] identifier[Role] operator[>] identifier[roles] operator[SEP] { ...
public void forwardPendingTaskToRejoinNode(long[] replicasAdded, long snapshotSpHandle) { if (tmLog.isDebugEnabled()) { tmLog.debug("Forward pending tasks in backlog to rejoin node: " + Arrays.toString(replicasAdded)); } if (replicasAdded.length == 0) { return; } ...
class class_name[name] begin[{] method[forwardPendingTaskToRejoinNode, return_type[void], modifier[public], parameter[replicasAdded, snapshotSpHandle]] begin[{] if[call[tmLog.isDebugEnabled, parameter[]]] begin[{] call[tmLog.debug, parameter[binary_operation[literal["For...
Keyword[public] Keyword[void] identifier[forwardPendingTaskToRejoinNode] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[replicasAdded] , Keyword[long] identifier[snapshotSpHandle] operator[SEP] { Keyword[if] operator[SEP] identifier[tmLog] operator[SEP] identifier[isDebugEnabled] operator[SE...
public ConfigRenderOptions setOriginComments(boolean value) { if (value == originComments) return this; else return new ConfigRenderOptions(value, comments, formatted, json); }
class class_name[name] begin[{] method[setOriginComments, return_type[type[ConfigRenderOptions]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], ==, member[.originComments]]] begin[{] return[THIS[]] else begin[{] return[ClassCreator(arguments=[MemberRef...
Keyword[public] identifier[ConfigRenderOptions] identifier[setOriginComments] operator[SEP] Keyword[boolean] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] identifier[originComments] operator[SEP] Keyword[return] Keyword[this] operator[SEP] Keyword[else] Keyword[return...
@Override public void deserializeInstance(SerializationStreamReader streamReader, OWLSubObjectPropertyOfAxiomImpl instance) throws SerializationException { deserialize(streamReader, instance); }
class class_name[name] begin[{] method[deserializeInstance, return_type[void], modifier[public], parameter[streamReader, instance]] begin[{] call[.deserialize, parameter[member[.streamReader], member[.instance]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[deserializeInstance] operator[SEP] identifier[SerializationStreamReader] identifier[streamReader] , identifier[OWLSubObjectPropertyOfAxiomImpl] identifier[instance] operator[SEP] Keyword[throws] identifier[SerializationException] { iden...
public void putMetadata(MFile file, String key, byte[] value) { if (store == null) initMM(); if (store != null) store.put(file.getPath()+"#"+key, value); }
class class_name[name] begin[{] method[putMetadata, return_type[void], modifier[public], parameter[file, key, value]] begin[{] if[binary_operation[member[.store], ==, literal[null]]] begin[{] call[.initMM, parameter[]] else begin[{] None end[}] if[bin...
Keyword[public] Keyword[void] identifier[putMetadata] operator[SEP] identifier[MFile] identifier[file] , identifier[String] identifier[key] , Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[store] operator[==] Other[null] operator[SEP] identifier...
void invoke(HttpRequest request) throws Exception { bodyConsumer = null; Object invokeResult; try { args[0] = this.request = request; invokeResult = method.invoke(handler, args); } catch (InvocationTargetException e) { exceptionHandler.handle(e.getTargetException(), request, responder)...
class class_name[name] begin[{] method[invoke, return_type[void], modifier[default], parameter[request]] begin[{] assign[member[.bodyConsumer], literal[null]] local_variable[type[Object], invokeResult] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=Mem...
Keyword[void] identifier[invoke] operator[SEP] identifier[HttpRequest] identifier[request] operator[SEP] Keyword[throws] identifier[Exception] { identifier[bodyConsumer] operator[=] Other[null] operator[SEP] identifier[Object] identifier[invokeResult] operator[SEP] Keyword[try] { identifier[args] oper...
public MethodInfo getMethodInfo(String methodName) throws JinxException { JinxUtils.validateParams(methodName); Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.reflection.getMethodInfo"); params.put("method_name", methodName); return jinx.flickrGet(params, MethodInfo.class...
class class_name[name] begin[{] method[getMethodInfo, return_type[type[MethodInfo]], modifier[public], parameter[methodName]] begin[{] call[JinxUtils.validateParams, parameter[member[.methodName]]] local_variable[type[Map], params] call[params.put, parameter[literal["met...
Keyword[public] identifier[MethodInfo] identifier[getMethodInfo] operator[SEP] identifier[String] identifier[methodName] operator[SEP] Keyword[throws] identifier[JinxException] { identifier[JinxUtils] operator[SEP] identifier[validateParams] operator[SEP] identifier[methodName] operator[SEP] operator[SEP] identi...
public static String escapeJS(String str, char quotesUsed) { return escapeJS(str, quotesUsed, (CharsetEncoder) null); }
class class_name[name] begin[{] method[escapeJS, return_type[type[String]], modifier[public static], parameter[str, quotesUsed]] begin[{] return[call[.escapeJS, parameter[member[.str], member[.quotesUsed], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], ...
Keyword[public] Keyword[static] identifier[String] identifier[escapeJS] operator[SEP] identifier[String] identifier[str] , Keyword[char] identifier[quotesUsed] operator[SEP] { Keyword[return] identifier[escapeJS] operator[SEP] identifier[str] , identifier[quotesUsed] , operator[SEP] identifier[CharsetEncoder]...
private ConfigurationAdmin getConfigurationAdmin( final BundleContext bundleContext ) { final ServiceReference ref = bundleContext.getServiceReference( ConfigurationAdmin.class.getName() ); if( ref == null ) { throw new IllegalStateException( "Cannot find a configuration admin se...
class class_name[name] begin[{] method[getConfigurationAdmin, return_type[type[ConfigurationAdmin]], modifier[private], parameter[bundleContext]] begin[{] local_variable[type[ServiceReference], ref] if[binary_operation[member[.ref], ==, literal[null]]] begin[{] ThrowStatemen...
Keyword[private] identifier[ConfigurationAdmin] identifier[getConfigurationAdmin] operator[SEP] Keyword[final] identifier[BundleContext] identifier[bundleContext] operator[SEP] { Keyword[final] identifier[ServiceReference] identifier[ref] operator[=] identifier[bundleContext] operator[SEP] identifier[getServiceR...
@Override public void write(TextWriterStream out, String label, int[] v) { StringBuilder buf = new StringBuilder(); if(label != null) { buf.append(label).append('='); } if(v != null) { FormatUtil.formatTo(buf, v, " "); } out.inlinePrintNoQuotes(buf.toString()); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[out, label, v]] begin[{] local_variable[type[StringBuilder], buf] if[binary_operation[member[.label], !=, literal[null]]] begin[{] call[buf.append, parameter[member[.labe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[TextWriterStream] identifier[out] , identifier[String] identifier[label] , Keyword[int] operator[SEP] operator[SEP] identifier[v] operator[SEP] { identifier[StringBuilder] identifier[buf] operator[=] Key...
public static <T> int combineMultisetHash(boolean finalize, Iterator<? extends T> hashObjectIterator, Hasher<T> hasher) { int hash = 0; while (hashObjectIterator.hasNext()) { hash += hasher.hash(hashObjectIterator.next()); } if (finalize) { hash = combineListHash(hash); } return hash; }
class class_name[name] begin[{] method[combineMultisetHash, return_type[type[int]], modifier[public static], parameter[finalize, hashObjectIterator, hasher]] begin[{] local_variable[type[int], hash] while[call[hashObjectIterator.hasNext, parameter[]]] begin[{] as...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[int] identifier[combineMultisetHash] operator[SEP] Keyword[boolean] identifier[finalize] , identifier[Iterator] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[hashObjectIterator] , identifier[Hasher] operator[...
public static String[] createScriptArgs( final Map<String, Map<String, String>> localDataContext, final INodeEntry node, final String scriptargs, final String[] scriptargsarr, final String scriptinterpreter, final boolean interpreterargsquoted ...
class class_name[name] begin[{] method[createScriptArgs, return_type[type[String]], modifier[public static], parameter[localDataContext, node, scriptargs, scriptargsarr, scriptinterpreter, interpreterargsquoted]] begin[{] return[call[.createScriptArgs, parameter[member[.localDataContext], member[.node]...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[createScriptArgs] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[localDataContext] , Keyword[...
public void setChildren(List<PrintComponent<?>> children) { this.children = children; // needed for Json unmarshall !!!! for (PrintComponent<?> child : children) { child.setParent(this); } }
class class_name[name] begin[{] method[setChildren, return_type[void], modifier[public], parameter[children]] begin[{] assign[THIS[member[None.children]], member[.children]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argument...
Keyword[public] Keyword[void] identifier[setChildren] operator[SEP] identifier[List] operator[<] identifier[PrintComponent] operator[<] operator[?] operator[>] operator[>] identifier[children] operator[SEP] { Keyword[this] operator[SEP] identifier[children] operator[=] identifier[children] operator[SEP] Keyword[...
public static <Type> NegateValidator<Type> create(@NonNull final CharSequence errorMessage, @NonNull final Validator<Type> validator) { return new NegateValidator<>(errorMessage, validator); }
class class_name[name] begin[{] method[create, return_type[type[NegateValidator]], modifier[public static], parameter[errorMessage, validator]] begin[{] return[ClassCreator(arguments=[MemberReference(member=errorMessage, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRefere...
Keyword[public] Keyword[static] operator[<] identifier[Type] operator[>] identifier[NegateValidator] operator[<] identifier[Type] operator[>] identifier[create] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[CharSequence] identifier[errorMessage] , annotation[@] identifier[NonNull] Keyword[f...
public void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { int ecount = in.readInt(); for (int ii = 0; ii < ecount; ii++) { @SuppressWarnings("unchecked") K key = (K)in.readObject(); @SuppressWarnings("unchecked") V value = (V)in.readOb...
class class_name[name] begin[{] method[readObject, return_type[void], modifier[public], parameter[in]] begin[{] local_variable[type[int], ecount] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[Annotation(element=Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[void] identifier[readObject] operator[SEP] identifier[ObjectInputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { Keyword[int] identifier[ecount] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] ...
public static SwipeBack attach(Activity activity, Type type, Position position, int dragMode, SwipeBackTransformer transformer) { SwipeBack swipeBack = createSwipeBack(activity, dragMode, position, type, transformer); swipeBack.setId(R.id.sb__swipeBack); switch (dragMode) { case SwipeBack.DRAG_CONTENT: at...
class class_name[name] begin[{] method[attach, return_type[type[SwipeBack]], modifier[public static], parameter[activity, type, position, dragMode, transformer]] begin[{] local_variable[type[SwipeBack], swipeBack] call[swipeBack.setId, parameter[member[R.id.sb__swipeBack]]] Swit...
Keyword[public] Keyword[static] identifier[SwipeBack] identifier[attach] operator[SEP] identifier[Activity] identifier[activity] , identifier[Type] identifier[type] , identifier[Position] identifier[position] , Keyword[int] identifier[dragMode] , identifier[SwipeBackTransformer] identifier[transformer] operator[SEP...
static RollupStats getOrNull(Vec vec, final Key rskey ) { Value val = DKV.get(rskey); if( val == null ) // No rollup stats present? return vec.length() > 0 ? /*not computed*/null : /*empty vec*/new RollupStats(0); RollupStats rs = val.get(RollupStats.class); return rs.isReady() ? rs : nu...
class class_name[name] begin[{] method[getOrNull, return_type[type[RollupStats]], modifier[static], parameter[vec, rskey]] begin[{] local_variable[type[Value], val] if[binary_operation[member[.val], ==, literal[null]]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl...
Keyword[static] identifier[RollupStats] identifier[getOrNull] operator[SEP] identifier[Vec] identifier[vec] , Keyword[final] identifier[Key] identifier[rskey] operator[SEP] { identifier[Value] identifier[val] operator[=] identifier[DKV] operator[SEP] identifier[get] operator[SEP] identifier[rskey] operator[SEP]...
public boolean contains(Bbox other) { if (other.getX() < this.getX()) { return false; } if (other.getY() < this.getY()) { return false; } if (other.getEndPoint().getX() > this.getEndPoint().getX()) { return false; } if (other.getEndPoint().getY() > this.getEndPoint().getY()) { return false; ...
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[binary_operation[call[other.getX, parameter[]], <, THIS[call[None.getX, parameter[]]]]] begin[{] return[literal[false]] else begin[{] None end...
Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] identifier[Bbox] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[other] operator[SEP] identifier[getX] operator[SEP] operator[SEP] operator[<] Keyword[this] operator[SEP] identifier[getX] operator[SEP] operator[SEP] operat...
public DescribeDeploymentsRequest withDeploymentIds(String... deploymentIds) { if (this.deploymentIds == null) { setDeploymentIds(new com.amazonaws.internal.SdkInternalList<String>(deploymentIds.length)); } for (String ele : deploymentIds) { this.deploymentIds.add(ele); ...
class class_name[name] begin[{] method[withDeploymentIds, return_type[type[DescribeDeploymentsRequest]], modifier[public], parameter[deploymentIds]] begin[{] if[binary_operation[THIS[member[None.deploymentIds]], ==, literal[null]]] begin[{] call[.setDeploymentIds, parame...
Keyword[public] identifier[DescribeDeploymentsRequest] identifier[withDeploymentIds] operator[SEP] identifier[String] operator[...] identifier[deploymentIds] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[deploymentIds] operator[==] Other[null] operator[SEP] { identif...
public void init(Query query, SearchIndex index) throws IOException { ism = index.getContext().getItemStateManager(); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[query, index]] begin[{] assign[member[.ism], call[index.getContext, parameter[]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Query] identifier[query] , identifier[SearchIndex] identifier[index] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ism] operator[=] identifier[index] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] oper...
public void marshall(DeletePolicyRequest deletePolicyRequest, ProtocolMarshaller protocolMarshaller) { if (deletePolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deletePolicyRequest.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deletePolicyRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deletePolicyRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeletePolicyRequest] identifier[deletePolicyRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deletePolicyRequest] operator[==] Other[null] operator[SEP] { ...
protected boolean onItemClicked() { if (isEnabled()) { m_overlay.closeSubMenus(); if (hasSubMenu()) { openSubMenu(); return false; } else { if (m_rootComponent.isHideAutomatically()) { closeContex...
class class_name[name] begin[{] method[onItemClicked, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] if[call[.isEnabled, parameter[]]] begin[{] call[m_overlay.closeSubMenus, parameter[]] if[call[.hasSubMenu, parameter[]]] b...
Keyword[protected] Keyword[boolean] identifier[onItemClicked] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[m_overlay] operator[SEP] identifier[closeSubMenus] operator[SEP] operator[SEP] operator[SEP] Keyword[if] op...
public void reload() { try { if (file.exists()) { try(FileReader fileReader = new FileReader(file)) { props.load(fileReader); } } } catch (IOException e) { FOKLogger.log(Prefs.class.getName(), Level.SEVERE, FOKLogge...
class class_name[name] begin[{] method[reload, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=exists, postfix_operators=[], prefix_operators=[], qualifier=file, selectors=[], type_arguments=None), else_statement...
Keyword[public] Keyword[void] identifier[reload] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[FileReader] identifier[fileReader] ...
public static String hmacMd5(String data, String key) { return hmacMd5(data.getBytes(), key.getBytes()); }
class class_name[name] begin[{] method[hmacMd5, return_type[type[String]], modifier[public static], parameter[data, key]] begin[{] return[call[.hmacMd5, parameter[call[data.getBytes, parameter[]], call[key.getBytes, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[hmacMd5] operator[SEP] identifier[String] identifier[data] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[hmacMd5] operator[SEP] identifier[data] operator[SEP] identifier[getBytes] operator[SEP] operator[SEP] , ident...
public void setSharedStyle(org.kie.dmn.model.api.dmndi.Style value) { this.sharedStyle = value; }
class class_name[name] begin[{] method[setSharedStyle, return_type[void], modifier[public], parameter[value]] begin[{] assign[THIS[member[None.sharedStyle]], member[.value]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setSharedStyle] operator[SEP] identifier[org] operator[SEP] identifier[kie] operator[SEP] identifier[dmn] operator[SEP] identifier[model] operator[SEP] identifier[api] operator[SEP] identifier[dmndi] operator[SEP] identifier[Style] identifier[value] operator[SEP] { Keywor...
public TaskStatus executeTask(ApplicationDefinition appDef, Task task) { checkServiceState(); Tenant tenant = Tenant.getTenant(appDef); m_logger.debug("Checking that task {} in tenant {} is not running", task.getTaskID(), tenant); TaskRecord taskRecord = null; synchronized (m_exe...
class class_name[name] begin[{] method[executeTask, return_type[type[TaskStatus]], modifier[public], parameter[appDef, task]] begin[{] call[.checkServiceState, parameter[]] local_variable[type[Tenant], tenant] call[m_logger.debug, parameter[literal["Checking that task {}...
Keyword[public] identifier[TaskStatus] identifier[executeTask] operator[SEP] identifier[ApplicationDefinition] identifier[appDef] , identifier[Task] identifier[task] operator[SEP] { identifier[checkServiceState] operator[SEP] operator[SEP] operator[SEP] identifier[Tenant] identifier[tenant] operator[=] identifi...
protected void registerBindingConfigurationEntries(Iterable<BindingConfigurationEntry> bindings) { for (BindingConfigurationEntry nextBinding : bindings) { try { registerBindingConfigurationEntry(nextBinding); } catch (IllegalStateException e) { // Ignore this - it c...
class class_name[name] begin[{] method[registerBindingConfigurationEntries, return_type[void], modifier[protected], parameter[bindings]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(membe...
Keyword[protected] Keyword[void] identifier[registerBindingConfigurationEntries] operator[SEP] identifier[Iterable] operator[<] identifier[BindingConfigurationEntry] operator[>] identifier[bindings] operator[SEP] { Keyword[for] operator[SEP] identifier[BindingConfigurationEntry] identifier[nextBinding] operator[...
private void inflateLayers(Resources r, XmlPullParser parser, AttributeSet attrs, Resources.Theme theme) throws XmlPullParserException, IOException { final LayerState state = mLayerState; final int innerDepth = parser.getDepth() + 1; int type; int depth; while ((type...
class class_name[name] begin[{] method[inflateLayers, return_type[void], modifier[private], parameter[r, parser, attrs, theme]] begin[{] local_variable[type[LayerState], state] local_variable[type[int], innerDepth] local_variable[type[int], type] local_variable[type[int], depth]...
Keyword[private] Keyword[void] identifier[inflateLayers] operator[SEP] identifier[Resources] identifier[r] , identifier[XmlPullParser] identifier[parser] , identifier[AttributeSet] identifier[attrs] , identifier[Resources] operator[SEP] identifier[Theme] identifier[theme] operator[SEP] Keyword[throws] identifier[Xml...
@Override public final byte[] getApiMessageIdAsBytes() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getApiMessageIdAsBytes"); byte[] value = (byte[]) getApi().getField(JsApiAccess.MESSAGEID); if (value != null) { byte[] c...
class class_name[name] begin[{] method[getApiMessageIdAsBytes, return_type[type[byte]], modifier[final public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, para...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[getApiMessageIdAsBytes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ...
public ResourceRepresentation<V> withLinks(List<Link> links) { links.forEach( link -> { String rel = Links.getRel(link); Support.checkRelType(rel); validateSingletonRel(rel); }); final TreeMap<String, Rel> updatedRels = links .map(Links::getRel)...
class class_name[name] begin[{] method[withLinks, return_type[type[ResourceRepresentation]], modifier[public], parameter[links]] begin[{] call[links.forEach, parameter[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth...
Keyword[public] identifier[ResourceRepresentation] operator[<] identifier[V] operator[>] identifier[withLinks] operator[SEP] identifier[List] operator[<] identifier[Link] operator[>] identifier[links] operator[SEP] { identifier[links] operator[SEP] identifier[forEach] operator[SEP] identifier[link] operator[->] ...
public Observable<FileServerInner> getAsync(String resourceGroupName, String workspaceName, String fileServerName) { return getWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName).map(new Func1<ServiceResponse<FileServerInner>, FileServerInner>() { @Override public ...
class class_name[name] begin[{] method[getAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, workspaceName, fileServerName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.workspaceName], member[.fileServerName]]]] ...
Keyword[public] identifier[Observable] operator[<] identifier[FileServerInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[workspaceName] , identifier[String] identifier[fileServerName] operator[SEP] { Keyword[return] identifie...
@Override public DeleteDatabaseResult deleteDatabase(DeleteDatabaseRequest request) { request = beforeClientExecution(request); return executeDeleteDatabase(request); }
class class_name[name] begin[{] method[deleteDatabase, return_type[type[DeleteDatabaseResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteDatabase, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[DeleteDatabaseResult] identifier[deleteDatabase] operator[SEP] identifier[DeleteDatabaseRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
public ActivityController<T> configurationChange(final Configuration newConfiguration) { final Configuration currentConfig = component.getResources().getConfiguration(); final int changedBits = currentConfig.diff(newConfiguration); currentConfig.setTo(newConfiguration); // TODO: throw on changedBits ==...
class class_name[name] begin[{] method[configurationChange, return_type[type[ActivityController]], modifier[public], parameter[newConfiguration]] begin[{] local_variable[type[Configuration], currentConfig] local_variable[type[int], changedBits] call[currentConfig.setTo, paramete...
Keyword[public] identifier[ActivityController] operator[<] identifier[T] operator[>] identifier[configurationChange] operator[SEP] Keyword[final] identifier[Configuration] identifier[newConfiguration] operator[SEP] { Keyword[final] identifier[Configuration] identifier[currentConfig] operator[=] identifier[compon...
@Override public void close() throws java.sql.SQLException { if (!this.conn.isClosed()) { ConnectionImpl outer = this.outer; this.conn.close(); this.outer = null; CONNECTION_HOLDER.set(outer); } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] if[THIS[member[None.conn]call[None.isClosed, parameter[]]]] begin[{] local_variable[type[ConnectionImpl], outer] THIS[member[None.conn]call[None.close, pa...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[SQLException] { Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[conn] operator[SEP] i...
public void addUniqueField(FieldSet uniqueFieldSet) { if (this.uniqueFields == null) { this.uniqueFields = new HashSet<FieldSet>(); } this.uniqueFields.add(uniqueFieldSet); }
class class_name[name] begin[{] method[addUniqueField, return_type[void], modifier[public], parameter[uniqueFieldSet]] begin[{] if[binary_operation[THIS[member[None.uniqueFields]], ==, literal[null]]] begin[{] assign[THIS[member[None.uniqueFields]], ClassCreator(argument...
Keyword[public] Keyword[void] identifier[addUniqueField] operator[SEP] identifier[FieldSet] identifier[uniqueFieldSet] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[uniqueFields] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[uniqueFi...
public static String getChannelName(String eventName) { return eventName == null ? null : EVENT_PREFIX + eventName.split("\\.", 2)[0]; }
class class_name[name] begin[{] method[getChannelName, return_type[type[String]], modifier[public static], parameter[eventName]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=eventName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), o...
Keyword[public] Keyword[static] identifier[String] identifier[getChannelName] operator[SEP] identifier[String] identifier[eventName] operator[SEP] { Keyword[return] identifier[eventName] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[EVENT_PREFIX] operator[+] identifier[eventName] opera...