code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
static ImmutableMap<String, Node> getFunctionCallParameterMap( final Node fnNode, Node callNode, Supplier<String> safeNameIdSupplier) { checkNotNull(fnNode); // Create an argName -> expression map ImmutableMap.Builder<String, Node> argMap = ImmutableMap.builder(); // CALL NODE: [ NAME, ARG1, ARG2...
class class_name[name] begin[{] method[getFunctionCallParameterMap, return_type[type[ImmutableMap]], modifier[static], parameter[fnNode, callNode, safeNameIdSupplier]] begin[{] call[.checkNotNull, parameter[member[.fnNode]]] local_variable[type[ImmutableMap], argMap] local_varia...
Keyword[static] identifier[ImmutableMap] operator[<] identifier[String] , identifier[Node] operator[>] identifier[getFunctionCallParameterMap] operator[SEP] Keyword[final] identifier[Node] identifier[fnNode] , identifier[Node] identifier[callNode] , identifier[Supplier] operator[<] identifier[String] operator[>] ide...
protected PlanNode attachDuplicateRemoval( QueryContext context, PlanNode plan ) { PlanNode dupNode = new PlanNode(Type.DUP_REMOVE); plan.setParent(dupNode); return dupNode; }
class class_name[name] begin[{] method[attachDuplicateRemoval, return_type[type[PlanNode]], modifier[protected], parameter[context, plan]] begin[{] local_variable[type[PlanNode], dupNode] call[plan.setParent, parameter[member[.dupNode]]] return[member[.dupNode]] end[}] END[}...
Keyword[protected] identifier[PlanNode] identifier[attachDuplicateRemoval] operator[SEP] identifier[QueryContext] identifier[context] , identifier[PlanNode] identifier[plan] operator[SEP] { identifier[PlanNode] identifier[dupNode] operator[=] Keyword[new] identifier[PlanNode] operator[SEP] identifier[Type] oper...
@Override public java.util.concurrent.Future<SplitShardResult> splitShardAsync(String streamName, String shardToSplit, String newStartingHashKey, com.amazonaws.handlers.AsyncHandler<SplitShardRequest, SplitShardResult> asyncHandler) { return splitShardAsync(new SplitShardRequest().withStreamNam...
class class_name[name] begin[{] method[splitShardAsync, return_type[type[java]], modifier[public], parameter[streamName, shardToSplit, newStartingHashKey, asyncHandler]] begin[{] return[call[.splitShardAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_opera...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[SplitShardResult] operator[>] identifier[splitShardAsync] operator[SEP] identifier[String] identifier[streamName] , identifier[...
@SuppressWarnings("unchecked") public <T extends ObjectAttachableListener> List<T> getObjectListeners( Class<?> objectClass, long objectId, Class<T> listenerClass) { return Collections.unmodifiableList((List<T>) Optional.ofNullable(objectClass) .map(objectListeners::get) ...
class class_name[name] begin[{] method[getObjectListeners, return_type[type[List]], modifier[public], parameter[objectClass, objectId, listenerClass]] begin[{] return[call[Collections.unmodifiableList, parameter[Cast(expression=MethodInvocation(arguments=[MemberReference(member=objectClass, postfix_ope...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[ObjectAttachableListener] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getObjectListeners] operator[SEP] identifier[Class] operato...
public void setBotAliases(java.util.Collection<BotAliasMetadata> botAliases) { if (botAliases == null) { this.botAliases = null; return; } this.botAliases = new java.util.ArrayList<BotAliasMetadata>(botAliases); }
class class_name[name] begin[{] method[setBotAliases, return_type[void], modifier[public], parameter[botAliases]] begin[{] if[binary_operation[member[.botAliases], ==, literal[null]]] begin[{] assign[THIS[member[None.botAliases]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setBotAliases] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[BotAliasMetadata] operator[>] identifier[botAliases] operator[SEP] { Keyword[if] operator[SEP] identifier[botAliases] operator[==] Othe...
public boolean matches(Iterable<? extends T> target) { if ((target instanceof Collection) && ((Collection<?>) target).size() != matchers.size()) { return false; } Iterator<? extends ElementMatcher<? super T>> iterator = matchers.iterator(); for (T value : target) { ...
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[target]] begin[{] if[binary_operation[binary_operation[member[.target], instanceof, type[Collection]], &&, binary_operation[Cast(expression=MemberReference(member=target, postfix_operators=[]...
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[target] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[target] Keyword[instanceof] identifier[Collection] operator[SEP] operato...
public PerformanceMetrics createNext(String nextAction, String nextDescriptor, Class nextActionClass) { PerformanceMetrics next = new PerformanceMetrics(key, level + 1, nextAction, nextActionClass, nextDescriptor, correlationId); next.previous = this; return next; }
class class_name[name] begin[{] method[createNext, return_type[type[PerformanceMetrics]], modifier[public], parameter[nextAction, nextDescriptor, nextActionClass]] begin[{] local_variable[type[PerformanceMetrics], next] assign[member[next.previous], THIS[]] return[member[.next]]...
Keyword[public] identifier[PerformanceMetrics] identifier[createNext] operator[SEP] identifier[String] identifier[nextAction] , identifier[String] identifier[nextDescriptor] , identifier[Class] identifier[nextActionClass] operator[SEP] { identifier[PerformanceMetrics] identifier[next] operator[=] Keyword[new] ...
private byte[] encodePKIPATH() throws CertificateEncodingException { ListIterator<X509Certificate> li = certs.listIterator(certs.size()); try { DerOutputStream bytes = new DerOutputStream(); // encode certs in reverse order (trust anchor to target) // according to Pk...
class class_name[name] begin[{] method[encodePKIPATH, return_type[type[byte]], modifier[private], parameter[]] begin[{] local_variable[type[ListIterator], li] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arg...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[encodePKIPATH] operator[SEP] operator[SEP] Keyword[throws] identifier[CertificateEncodingException] { identifier[ListIterator] operator[<] identifier[X509Certificate] operator[>] identifier[li] operator[=] identifier[certs] operator[SEP] ident...
public static Evaluator definitionEvaluator( HandlerDefinition hda) { return definitionEvaluators.computeIfAbsent(hda.evaluator(), key -> { try { return hda.evaluator().getConstructor().newInstance(); } catch (InstantiationException | IllegalAccessException ...
class class_name[name] begin[{] method[definitionEvaluator, return_type[type[Evaluator]], modifier[public static], parameter[hda]] begin[{] return[call[definitionEvaluators.computeIfAbsent, parameter[call[hda.evaluator, parameter[]], LambdaExpression(body=[TryStatement(block=[ReturnStatement(expression...
Keyword[public] Keyword[static] identifier[Evaluator] identifier[definitionEvaluator] operator[SEP] identifier[HandlerDefinition] identifier[hda] operator[SEP] { Keyword[return] identifier[definitionEvaluators] operator[SEP] identifier[computeIfAbsent] operator[SEP] identifier[hda] operator[SEP] identifier[evalu...
public void setRecoveryID(int recoveryId) throws ResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "MEF.setRecoveryID for enterprise class " + beanMetaData.enterpriseBeanName); } if (ivRecoveryIdKnown) { ...
class class_name[name] begin[{] method[setRecoveryID, return_type[void], modifier[public], parameter[recoveryId]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parame...
Keyword[public] Keyword[void] identifier[setRecoveryID] operator[SEP] Keyword[int] identifier[recoveryId] operator[SEP] Keyword[throws] identifier[ResourceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ident...
public void setFloat(String key, float value) { prefHelper_.prefsEditor_.putFloat(key, value); prefHelper_.prefsEditor_.apply(); }
class class_name[name] begin[{] method[setFloat, return_type[void], modifier[public], parameter[key, value]] begin[{] call[prefHelper_.prefsEditor_.putFloat, parameter[member[.key], member[.value]]] call[prefHelper_.prefsEditor_.apply, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setFloat] operator[SEP] identifier[String] identifier[key] , Keyword[float] identifier[value] operator[SEP] { identifier[prefHelper_] operator[SEP] identifier[prefsEditor_] operator[SEP] identifier[putFloat] operator[SEP] identifier[key] , identifier[value] operator[SEP...
public static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) { Jdk8Methods.requireNonNull(offset, "offset"); long localSecond = epochSecond + offset.getTotalSeconds(); // overflow caught later long localEpochDay = Jdk8Methods.floorDiv(localSecond, SECONDS_PER...
class class_name[name] begin[{] method[ofEpochSecond, return_type[type[LocalDateTime]], modifier[public static], parameter[epochSecond, nanoOfSecond, offset]] begin[{] call[Jdk8Methods.requireNonNull, parameter[member[.offset], literal["offset"]]] local_variable[type[long], localSecond]...
Keyword[public] Keyword[static] identifier[LocalDateTime] identifier[ofEpochSecond] operator[SEP] Keyword[long] identifier[epochSecond] , Keyword[int] identifier[nanoOfSecond] , identifier[ZoneOffset] identifier[offset] operator[SEP] { identifier[Jdk8Methods] operator[SEP] identifier[requireNonNull] operator[S...
public void changeLoglevel(LoglevelCommand loglevelCommand) { pubSubService.fire(LoglevelProperty.REDIS_KEY_PREFIX + "pubsub", Json.toJson(loglevelCommand, JsonFormat.compact())); }
class class_name[name] begin[{] method[changeLoglevel, return_type[void], modifier[public], parameter[loglevelCommand]] begin[{] call[pubSubService.fire, parameter[binary_operation[member[LoglevelProperty.REDIS_KEY_PREFIX], +, literal["pubsub"]], call[Json.toJson, parameter[member[.loglevelComm...
Keyword[public] Keyword[void] identifier[changeLoglevel] operator[SEP] identifier[LoglevelCommand] identifier[loglevelCommand] operator[SEP] { identifier[pubSubService] operator[SEP] identifier[fire] operator[SEP] identifier[LoglevelProperty] operator[SEP] identifier[REDIS_KEY_PREFIX] operator[+] literal[String]...
public Observable<Page<UsageInner>> listMultiRoleUsagesAsync(final String resourceGroupName, final String name) { return listMultiRoleUsagesWithServiceResponseAsync(resourceGroupName, name) .map(new Func1<ServiceResponse<Page<UsageInner>>, Page<UsageInner>>() { @Override ...
class class_name[name] begin[{] method[listMultiRoleUsagesAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name]] begin[{] return[call[.listMultiRoleUsagesWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.name]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[UsageInner] operator[>] operator[>] identifier[listMultiRoleUsagesAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[name] operator[SEP] { K...
private Color buildGrayColor(final GrayColor gColor) { Color color = null; if (gColor.opacity() >= 1.0) { color = Color.gray(gColor.gray()); } else { color = Color.gray(gColor.gray(), gColor.opacity()); } return color; }
class class_name[name] begin[{] method[buildGrayColor, return_type[type[Color]], modifier[private], parameter[gColor]] begin[{] local_variable[type[Color], color] if[binary_operation[call[gColor.opacity, parameter[]], >=, literal[1.0]]] begin[{] assign[member[.co...
Keyword[private] identifier[Color] identifier[buildGrayColor] operator[SEP] Keyword[final] identifier[GrayColor] identifier[gColor] operator[SEP] { identifier[Color] identifier[color] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[gColor] operator[SEP] identifier[opacity] operator[SEP...
public void init(QueryHandler handler, float minDistance, boolean morePopular) throws IOException { if (handler instanceof SearchIndex) { this.spellChecker = new InternalSpellChecker((SearchIndex)handler, minDistance, morePopular); } else { throw new IOException("Lucen...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[handler, minDistance, morePopular]] begin[{] if[binary_operation[member[.handler], instanceof, type[SearchIndex]]] begin[{] assign[THIS[member[None.spellChecker]], ClassCreator(ar...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[QueryHandler] identifier[handler] , Keyword[float] identifier[minDistance] , Keyword[boolean] identifier[morePopular] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[handler] Keyword[instanceof]...
private IBond checkEdges(IRing ring, IAtomContainer molecule) { IRing r1, r2; IRingSet ringSet = ring.getBuilder().newInstance(IRingSet.class); IBond bond; int minMaxSize = Integer.MAX_VALUE; int minMax = 0; logger.debug("Molecule: " + molecule); Iterator<IBond> b...
class class_name[name] begin[{] method[checkEdges, return_type[type[IBond]], modifier[private], parameter[ring, molecule]] begin[{] local_variable[type[IRing], r1] local_variable[type[IRingSet], ringSet] local_variable[type[IBond], bond] local_variable[type[int], minMaxSize] ...
Keyword[private] identifier[IBond] identifier[checkEdges] operator[SEP] identifier[IRing] identifier[ring] , identifier[IAtomContainer] identifier[molecule] operator[SEP] { identifier[IRing] identifier[r1] , identifier[r2] operator[SEP] identifier[IRingSet] identifier[ringSet] operator[=] identifier[ring] oper...
protected void initializeData(ULocale desiredLocale, String type) { String key = desiredLocale.getBaseName() + '+' + type; String ns = desiredLocale.getKeywordValue("numbers"); if (ns != null && ns.length() > 0) { key += '+' + ns; } DateFormatSymbols dfs = DFSCACH...
class class_name[name] begin[{] method[initializeData, return_type[void], modifier[protected], parameter[desiredLocale, type]] begin[{] local_variable[type[String], key] local_variable[type[String], ns] if[binary_operation[binary_operation[member[.ns], !=, literal[null]], &&, bi...
Keyword[protected] Keyword[void] identifier[initializeData] operator[SEP] identifier[ULocale] identifier[desiredLocale] , identifier[String] identifier[type] operator[SEP] { identifier[String] identifier[key] operator[=] identifier[desiredLocale] operator[SEP] identifier[getBaseName] operator[SEP] operator[SEP]...
public static String getPreferredDelimiter(String csvData) { String bestMatch = ""; int bestMatchCount = 0; // find for each delimiter, how often it occures in the String csvData for (int i = 0; i < DELIMITERS.length; i++) { int currentCount = csvData.split(DELIMITERS[i]).le...
class class_name[name] begin[{] method[getPreferredDelimiter, return_type[type[String]], modifier[public static], parameter[csvData]] begin[{] local_variable[type[String], bestMatch] local_variable[type[int], bestMatchCount] ForStatement(body=BlockStatement(label=None, statements=[Local...
Keyword[public] Keyword[static] identifier[String] identifier[getPreferredDelimiter] operator[SEP] identifier[String] identifier[csvData] operator[SEP] { identifier[String] identifier[bestMatch] operator[=] literal[String] operator[SEP] Keyword[int] identifier[bestMatchCount] operator[=] Other[0] operator[SEP] K...
public static boolean isCompleteZip(File file) throws IOException, NonScannableZipException { FileChannel channel = null; try { channel = new FileInputStream(file).getChannel(); long size = channel.size(); if (size < ENDLEN) { // Obvious case return ...
class class_name[name] begin[{] method[isCompleteZip, return_type[type[boolean]], modifier[public static], parameter[file]] begin[{] local_variable[type[FileChannel], channel] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=channel, postfix_opera...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isCompleteZip] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NonScannableZipException] { identifier[FileChannel] identifier[channel] operator[=] Other[null] operator[SEP] Keyword[try]...
public static void loadDocument(String xml, String xsd, DOMHandler handler) throws IOException, InvalidArgumentException, SAXException, ParserConfigurationException, Exception { loadDocument(xml, xsd, handler, DEFAULT_VALIDATE_XML); }
class class_name[name] begin[{] method[loadDocument, return_type[void], modifier[public static], parameter[xml, xsd, handler]] begin[{] call[.loadDocument, parameter[member[.xml], member[.xsd], member[.handler], member[.DEFAULT_VALIDATE_XML]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[loadDocument] operator[SEP] identifier[String] identifier[xml] , identifier[String] identifier[xsd] , identifier[DOMHandler] identifier[handler] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InvalidArgumentException] , identifier[SAXExcep...
private static Set<String> getRelationLevelSet(SDocumentGraph graph, String namespace, Class<? extends SRelation> type) { Set<String> result = new TreeSet<>(); if (graph != null) { List<? extends SRelation> edges = null; if (type == SDominanceRelation.class) { edges = graph.getDominanceRelations(); ...
class class_name[name] begin[{] method[getRelationLevelSet, return_type[type[Set]], modifier[private static], parameter[graph, namespace, type]] begin[{] local_variable[type[Set], result] if[binary_operation[member[.graph], !=, literal[null]]] begin[{] local_variable[type[Li...
Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[getRelationLevelSet] operator[SEP] identifier[SDocumentGraph] identifier[graph] , identifier[String] identifier[namespace] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[SRelation] operator[...
private void startLoad() { tableLayout.setVisible(true); List<PersonBean> beans = ExampleDataUtil.createExampleData(numRows.getNumber().intValue(), numDocs.getNumber() .intValue()); if (isLoadWTable()) { table.setBean(beans); } if (isLoadWDataTable()) { TableTreeNode tree = createTree(beans);...
class class_name[name] begin[{] method[startLoad, return_type[void], modifier[private], parameter[]] begin[{] call[tableLayout.setVisible, parameter[literal[true]]] local_variable[type[List], beans] if[call[.isLoadWTable, parameter[]]] begin[{] ca...
Keyword[private] Keyword[void] identifier[startLoad] operator[SEP] operator[SEP] { identifier[tableLayout] operator[SEP] identifier[setVisible] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[PersonBean] operator[>] identifier[beans] operator[=] identifier[Examp...
public PrincipalIdFormat withStatuses(IdFormat... statuses) { if (this.statuses == null) { setStatuses(new com.amazonaws.internal.SdkInternalList<IdFormat>(statuses.length)); } for (IdFormat ele : statuses) { this.statuses.add(ele); } return this; }
class class_name[name] begin[{] method[withStatuses, return_type[type[PrincipalIdFormat]], modifier[public], parameter[statuses]] begin[{] if[binary_operation[THIS[member[None.statuses]], ==, literal[null]]] begin[{] call[.setStatuses, parameter[ClassCreator(arguments=[M...
Keyword[public] identifier[PrincipalIdFormat] identifier[withStatuses] operator[SEP] identifier[IdFormat] operator[...] identifier[statuses] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[statuses] operator[==] Other[null] operator[SEP] { identifier[setStatuses] opera...
private Item newLong(final long value) { Item result = get(key.set(LONG, value)); if (result == null) { pool.putByte(LONG).putLong(value); result = new Item(poolIndex, key); put(result); poolIndex += 2; } return result; }
class class_name[name] begin[{] method[newLong, return_type[type[Item]], modifier[private], parameter[value]] begin[{] local_variable[type[Item], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] call[pool.putByte, parameter[member[.LONG]]...
Keyword[private] identifier[Item] identifier[newLong] operator[SEP] Keyword[final] Keyword[long] identifier[value] operator[SEP] { identifier[Item] identifier[result] operator[=] identifier[get] operator[SEP] identifier[key] operator[SEP] identifier[set] operator[SEP] identifier[LONG] , identifier[value] operat...
public JingleContent getSoleContentOrThrow() { if (contents.isEmpty()) { return null; } if (contents.size() > 1) { throw new IllegalStateException(); } return contents.get(0); }
class class_name[name] begin[{] method[getSoleContentOrThrow, return_type[type[JingleContent]], modifier[public], parameter[]] begin[{] if[call[contents.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operatio...
Keyword[public] identifier[JingleContent] identifier[getSoleContentOrThrow] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[contents] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] o...
private static ClassDescriptor findInheritanceRoot(ClassDescriptor cld) { ClassDescriptor result = cld; if(cld.getSuperClassDescriptor() != null) { result = findInheritanceRoot(cld.getSuperClassDescriptor()); } return result; }
class class_name[name] begin[{] method[findInheritanceRoot, return_type[type[ClassDescriptor]], modifier[private static], parameter[cld]] begin[{] local_variable[type[ClassDescriptor], result] if[binary_operation[call[cld.getSuperClassDescriptor, parameter[]], !=, literal[null]]] begin[...
Keyword[private] Keyword[static] identifier[ClassDescriptor] identifier[findInheritanceRoot] operator[SEP] identifier[ClassDescriptor] identifier[cld] operator[SEP] { identifier[ClassDescriptor] identifier[result] operator[=] identifier[cld] operator[SEP] Keyword[if] operator[SEP] identifier[cld] operator[SEP] i...
public Row withData(Datum... data) { if (this.data == null) { setData(new java.util.ArrayList<Datum>(data.length)); } for (Datum ele : data) { this.data.add(ele); } return this; }
class class_name[name] begin[{] method[withData, return_type[type[Row]], modifier[public], parameter[data]] begin[{] if[binary_operation[THIS[member[None.data]], ==, literal[null]]] begin[{] call[.setData, parameter[ClassCreator(arguments=[MemberReference(member=length, ...
Keyword[public] identifier[Row] identifier[withData] operator[SEP] identifier[Datum] operator[...] identifier[data] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[data] operator[==] Other[null] operator[SEP] { identifier[setData] operator[SEP] Keyword[new] identifier[...
public TransformerJob getOrCreateTransformerJob(final boolean validate, final TransformerComponentBuilder<?> tjb) { TransformerJob componentJob = (TransformerJob) _componentJobs.get(tjb); if (componentJob == null) { try { componentJob = tjb.toTransformerJob(validate, this); ...
class class_name[name] begin[{] method[getOrCreateTransformerJob, return_type[type[TransformerJob]], modifier[public], parameter[validate, tjb]] begin[{] local_variable[type[TransformerJob], componentJob] if[binary_operation[member[.componentJob], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[TransformerJob] identifier[getOrCreateTransformerJob] operator[SEP] Keyword[final] Keyword[boolean] identifier[validate] , Keyword[final] identifier[TransformerComponentBuilder] operator[<] operator[?] operator[>] identifier[tjb] operator[SEP] { identifier[TransformerJob] identifier[c...
private void buildStructure() throws DevFailed { DbServer server; if (tgHost ==null || tgPort ==null) server = new DbServer(serverName); else { server = new DbServer(serverName, tgHost, tgPort); } // Check if server defined in database. String...
class class_name[name] begin[{] method[buildStructure, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[DbServer], server] if[binary_operation[binary_operation[member[.tgHost], ==, literal[null]], ||, binary_operation[member[.tgPort], ==, literal[null]]]] ...
Keyword[private] Keyword[void] identifier[buildStructure] operator[SEP] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[DbServer] identifier[server] operator[SEP] Keyword[if] operator[SEP] identifier[tgHost] operator[==] Other[null] operator[||] identifier[tgPort] operator[==] Other[null] operat...
private void addPiece(String pc, String prefix, StringBuilder sb) { if (!pc.isEmpty()) { if (sb.length() > 0) { sb.append(prefix); } sb.append(pc); } }
class class_name[name] begin[{] method[addPiece, return_type[void], modifier[private], parameter[pc, prefix, sb]] begin[{] if[call[pc.isEmpty, parameter[]]] begin[{] if[binary_operation[call[sb.length, parameter[]], >, literal[0]]] begin[{] ...
Keyword[private] Keyword[void] identifier[addPiece] operator[SEP] identifier[String] identifier[pc] , identifier[String] identifier[prefix] , identifier[StringBuilder] identifier[sb] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[pc] operator[SEP] identifier[isEmpty] operator[SEP] operator[SE...
public static MissionSpec loadMissionXML(String filename) { MissionSpec mission = null; try { String xml = new String(Files.readAllBytes(Paths.get(filename))); mission = new MissionSpec(xml, true); } catch (Exception e) { //e.printStackTrace(); thr...
class class_name[name] begin[{] method[loadMissionXML, return_type[type[MissionSpec]], modifier[public static], parameter[filename]] begin[{] local_variable[type[MissionSpec], mission] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], in...
Keyword[public] Keyword[static] identifier[MissionSpec] identifier[loadMissionXML] operator[SEP] identifier[String] identifier[filename] operator[SEP] { identifier[MissionSpec] identifier[mission] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[String] identifier[xml] operator[=] Keywo...
public final void mELSE() throws RecognitionException { try { int _type = ELSE; int _channel = DEFAULT_TOKEN_CHANNEL; // hql.g:22:6: ( 'else' ) // hql.g:22:8: 'else' { match("else"); if (state.failed) return; } state.type = _type; state.channel = _channel; } finally { // do for sur...
class class_name[name] begin[{] method[mELSE, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=ELSE, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[final] Keyword[void] identifier[mELSE] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[ELSE] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKEN_...
public com.google.api.SourceInfo getSourceInfo() { return sourceInfo_ == null ? com.google.api.SourceInfo.getDefaultInstance() : sourceInfo_; }
class class_name[name] begin[{] method[getSourceInfo, return_type[type[com]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=sourceInfo_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(po...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[SourceInfo] identifier[getSourceInfo] operator[SEP] operator[SEP] { Keyword[return] identifier[sourceInfo_] operator[==] Other[null] operator[?] identifier[com] operator[SEP] identifier[google]...
public int[] toIntArray(ToIntFunction<? super I> toInt) { int len = length(); int[] result = new int[len]; int i = 0; for (I sym : this) { int symIdx = toInt.applyAsInt(sym); result[i++] = symIdx; } return result; }
class class_name[name] begin[{] method[toIntArray, return_type[type[int]], modifier[public], parameter[toInt]] begin[{] local_variable[type[int], len] local_variable[type[int], result] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[LocalVar...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[toIntArray] operator[SEP] identifier[ToIntFunction] operator[<] operator[?] Keyword[super] identifier[I] operator[>] identifier[toInt] operator[SEP] { Keyword[int] identifier[len] operator[=] identifier[length] operator[SEP] operator[SEP] operat...
public void putClassPipeProperty(String className, ArrayList<DbPipe> dbPipes) throws DevFailed { for (DbPipe dbPipe : dbPipes) databaseDAO.putClassPipeProperty(this, className, dbPipe); }
class class_name[name] begin[{] method[putClassPipeProperty, return_type[void], modifier[public], parameter[className, dbPipes]] begin[{] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberRef...
Keyword[public] Keyword[void] identifier[putClassPipeProperty] operator[SEP] identifier[String] identifier[className] , identifier[ArrayList] operator[<] identifier[DbPipe] operator[>] identifier[dbPipes] operator[SEP] Keyword[throws] identifier[DevFailed] { Keyword[for] operator[SEP] identifier[DbPipe] identif...
public BuildRun buildRun(BuildProject buildProject, String name, DateTime date) { return buildRun(buildProject, name, date, null); }
class class_name[name] begin[{] method[buildRun, return_type[type[BuildRun]], modifier[public], parameter[buildProject, name, date]] begin[{] return[call[.buildRun, parameter[member[.buildProject], member[.name], member[.date], literal[null]]]] end[}] END[}]
Keyword[public] identifier[BuildRun] identifier[buildRun] operator[SEP] identifier[BuildProject] identifier[buildProject] , identifier[String] identifier[name] , identifier[DateTime] identifier[date] operator[SEP] { Keyword[return] identifier[buildRun] operator[SEP] identifier[buildProject] , identifier[name]...
public boolean removeDatabase(Database database) { database = (BaseDatabase)this.getDatabaseList((database.getDatabaseType() & DBConstants.TABLE_MASK)).remove(database.getDatabaseName(false)); if (database == null) return false; return true; }
class class_name[name] begin[{] method[removeDatabase, return_type[type[boolean]], modifier[public], parameter[database]] begin[{] assign[member[.database], Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[BinaryOperation(ope...
Keyword[public] Keyword[boolean] identifier[removeDatabase] operator[SEP] identifier[Database] identifier[database] operator[SEP] { identifier[database] operator[=] operator[SEP] identifier[BaseDatabase] operator[SEP] Keyword[this] operator[SEP] identifier[getDatabaseList] operator[SEP] operator[SEP] identifier[...
public double get(double index) { ListIterator<Bucket> b = buckets_.listIterator(0); ListIterator<Bucket> e = buckets_.listIterator(buckets_.size()); while (b.nextIndex() < e.previousIndex()) { final ListIterator<Bucket> mid = buckets_.listIterator(b.nextIndex() / 2 + e.nextIndex() ...
class class_name[name] begin[{] method[get, return_type[type[double]], modifier[public], parameter[index]] begin[{] local_variable[type[ListIterator], b] local_variable[type[ListIterator], e] while[binary_operation[call[b.nextIndex, parameter[]], <, call[e.previousIndex, paramet...
Keyword[public] Keyword[double] identifier[get] operator[SEP] Keyword[double] identifier[index] operator[SEP] { identifier[ListIterator] operator[<] identifier[Bucket] operator[>] identifier[b] operator[=] identifier[buckets_] operator[SEP] identifier[listIterator] operator[SEP] Other[0] operator[SEP] operator[S...
public static void copyStream(InputStream copyFrom, File copyTo) throws IOException { copyStream(copyFrom, copyTo, null); }
class class_name[name] begin[{] method[copyStream, return_type[void], modifier[public static], parameter[copyFrom, copyTo]] begin[{] call[.copyStream, parameter[member[.copyFrom], member[.copyTo], literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[copyStream] operator[SEP] identifier[InputStream] identifier[copyFrom] , identifier[File] identifier[copyTo] operator[SEP] Keyword[throws] identifier[IOException] { identifier[copyStream] operator[SEP] identifier[copyFrom] , identifier[copyTo] , Other[n...
public static byte[] reverseByteArray(byte[] inputByteArray) { byte[] result=new byte[inputByteArray.length]; for (int i=inputByteArray.length-1;i>=0;i--) { result[result.length-1-i]=inputByteArray[i]; } return result; }
class class_name[name] begin[{] method[reverseByteArray, return_type[type[byte]], modifier[public static], parameter[inputByteArray]] begin[{] local_variable[type[byte], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Member...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[reverseByteArray] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[inputByteArray] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[byte] operator[SE...
public final TypeToken<? super T> getSupertype(Class<? super T> superclass) { checkArgument( this.someRawTypeIsSubclassOf(superclass), "%s is not a super class of %s", superclass, this); if (runtimeType instanceof TypeVariable) { return getSupertypeFromUpperBounds(superclas...
class class_name[name] begin[{] method[getSupertype, return_type[type[TypeToken]], modifier[final public], parameter[superclass]] begin[{] call[.checkArgument, parameter[THIS[call[None.someRawTypeIsSubclassOf, parameter[member[.superclass]]]], literal["%s is not a super class of %s"], member[.s...
Keyword[public] Keyword[final] identifier[TypeToken] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[getSupertype] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[superclass] operator[SEP] { identifier[checkArgument] operator...
public static void config(String host, String personal, String from, String key, int port) { config(host, personal, from, key); setPort(port); }
class class_name[name] begin[{] method[config, return_type[void], modifier[public static], parameter[host, personal, from, key, port]] begin[{] call[.config, parameter[member[.host], member[.personal], member[.from], member[.key]]] call[.setPort, parameter[member[.port]]] en...
Keyword[public] Keyword[static] Keyword[void] identifier[config] operator[SEP] identifier[String] identifier[host] , identifier[String] identifier[personal] , identifier[String] identifier[from] , identifier[String] identifier[key] , Keyword[int] identifier[port] operator[SEP] { identifier[config] operator[S...
public void setBase(Point2D base) { m_stemYEndForChord = -1; if (m_normalizedChords!=null) { for (JChord m_normalizedChord : m_normalizedChords) { m_normalizedChord.setBase(base); } } else { for (JNote m_sNoteInstance : m_sNoteInstances) { ...
class class_name[name] begin[{] method[setBase, return_type[void], modifier[public], parameter[base]] begin[{] assign[member[.m_stemYEndForChord], literal[1]] if[binary_operation[member[.m_normalizedChords], !=, literal[null]]] begin[{] ForStatement(body=BlockStateme...
Keyword[public] Keyword[void] identifier[setBase] operator[SEP] identifier[Point2D] identifier[base] operator[SEP] { identifier[m_stemYEndForChord] operator[=] operator[-] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[m_normalizedChords] operator[!=] Other[null] operator[SEP] { Keyword[f...
@SuppressWarnings("unchecked") public <T extends Filter> T getFirstFilterForField(String field) { for (Filter filter : this.filters) { if (filter.getField().equals(field)) { return (T) filter; } } return null; }
class class_name[name] begin[{] method[getFirstFilterForField, return_type[type[T]], modifier[public], parameter[field]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getField, postfix_operators=[], prefix_operators=[], qua...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Filter] operator[>] identifier[T] identifier[getFirstFilterForField] operator[SEP] identifier[String] identifier[field] operator[SEP] { Keyword[for] operato...
public void setColorFill(PdfSpotColor sp, float tint) { checkWriter(); state.colorDetails = writer.addSimple(sp); PageResources prs = getPageResources(); PdfName name = state.colorDetails.getColorName(); name = prs.addColor(name, state.colorDetails.getIndirectReference()); ...
class class_name[name] begin[{] method[setColorFill, return_type[void], modifier[public], parameter[sp, tint]] begin[{] call[.checkWriter, parameter[]] assign[member[state.colorDetails], call[writer.addSimple, parameter[member[.sp]]]] local_variable[type[PageResources], ...
Keyword[public] Keyword[void] identifier[setColorFill] operator[SEP] identifier[PdfSpotColor] identifier[sp] , Keyword[float] identifier[tint] operator[SEP] { identifier[checkWriter] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[colorDetails] operator[=] identifier[writer]...
@Nullable public static ExpressionTree getArgument(AnnotationTree annotationTree, String name) { for (ExpressionTree argumentTree : annotationTree.getArguments()) { if (argumentTree.getKind() != Tree.Kind.ASSIGNMENT) { continue; } AssignmentTree assignmentTree = (AssignmentTree) argument...
class class_name[name] begin[{] method[getArgument, return_type[type[ExpressionTree]], modifier[public static], parameter[annotationTree, name]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getKind...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[ExpressionTree] identifier[getArgument] operator[SEP] identifier[AnnotationTree] identifier[annotationTree] , identifier[String] identifier[name] operator[SEP] { Keyword[for] operator[SEP] identifier[ExpressionTree] identifier[argumen...
public Observable<EventHubConnectionInner> createOrUpdateAsync(String resourceGroupName, String clusterName, String databaseName, String eventHubConnectionName, EventHubConnectionInner parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, clusterName, databaseName, eventHubConnectionNam...
class class_name[name] begin[{] method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, clusterName, databaseName, eventHubConnectionName, parameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], m...
Keyword[public] identifier[Observable] operator[<] identifier[EventHubConnectionInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[clusterName] , identifier[String] identifier[databaseName] , identifier[String] identifier[...
@Override public ServletInputStream getInputStream() throws IOException { try { collaborator.preInvoke(componentMetaData); return request.getInputStream(); } finally { collaborator.postInvoke(); } }
class class_name[name] begin[{] method[getInputStream, return_type[type[ServletInputStream]], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=componentMetaData, postfix_operators=[], prefix_operators=[], quali...
annotation[@] identifier[Override] Keyword[public] identifier[ServletInputStream] identifier[getInputStream] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[collaborator] operator[SEP] identifier[preInvoke] operator[SEP] identifier[componentMetaData] ope...
public FieldExpression parse(final String expression) { if (!StringUtils.containsAny(expression, SPECIAL_CHARS_MINUS_STAR)) { if (expression.contains(QUESTION_MARK_STRING) && !fieldConstraints.getSpecialChars().contains(QUESTION_MARK)) { throw new IllegalArgumentException("Invalid ex...
class class_name[name] begin[{] method[parse, return_type[type[FieldExpression]], modifier[public], parameter[expression]] begin[{] if[call[StringUtils.containsAny, parameter[member[.expression], member[.SPECIAL_CHARS_MINUS_STAR]]]] begin[{] if[binary_operation[call[expr...
Keyword[public] identifier[FieldExpression] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[expression] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[StringUtils] operator[SEP] identifier[containsAny] operator[SEP] identifier[expression] , identifier[SPECIAL_CHARS...
public static String getStackTraceAsString(Exception e) { StringWriter stringWriter = new StringWriter(); e.printStackTrace(new PrintWriter(stringWriter)); return stringWriter.toString(); }
class class_name[name] begin[{] method[getStackTraceAsString, return_type[type[String]], modifier[public static], parameter[e]] begin[{] local_variable[type[StringWriter], stringWriter] call[e.printStackTrace, parameter[ClassCreator(arguments=[MemberReference(member=stringWriter, postfi...
Keyword[public] Keyword[static] identifier[String] identifier[getStackTraceAsString] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[StringWriter] identifier[stringWriter] operator[=] Keyword[new] identifier[StringWriter] operator[SEP] operator[SEP] operator[SEP] identifier[e] operat...
public KeyArea setKeyArea(int iKeyArea) { KeyArea keyArea = this.getKeyArea(iKeyArea); if (keyArea == null) return keyArea; return this.setKeyArea(keyArea.getKeyName()); }
class class_name[name] begin[{] method[setKeyArea, return_type[type[KeyArea]], modifier[public], parameter[iKeyArea]] begin[{] local_variable[type[KeyArea], keyArea] if[binary_operation[member[.keyArea], ==, literal[null]]] begin[{] return[member[.keyArea]] else begin[{] None ...
Keyword[public] identifier[KeyArea] identifier[setKeyArea] operator[SEP] Keyword[int] identifier[iKeyArea] operator[SEP] { identifier[KeyArea] identifier[keyArea] operator[=] Keyword[this] operator[SEP] identifier[getKeyArea] operator[SEP] identifier[iKeyArea] operator[SEP] operator[SEP] Keyword[if] operator[SEP...
public boolean isComparable() throws SQLException { if (fieldConfig.isForeignCollection()) { return false; } /* * We've seen dataPersister being null here in some strange cases. Why? It may because someone is searching on * an improper field. Or maybe a table-config does not match the Java object? */ ...
class class_name[name] begin[{] method[isComparable, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[call[fieldConfig.isForeignCollection, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operati...
Keyword[public] Keyword[boolean] identifier[isComparable] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[fieldConfig] operator[SEP] identifier[isForeignCollection] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] ...
public void processJsCacheRemoveAll() { logger.debug("Process JsCacheRemoveAll annotation"); MessageToClient messageToClient = new MessageToClient(); messageToClient.setId(Constants.Cache.CLEANCACHE_TOPIC); messageToClient.setResponse(Constants.Cache.ALL); wsEvent.fire(messageToClient); }
class class_name[name] begin[{] method[processJsCacheRemoveAll, return_type[void], modifier[public], parameter[]] begin[{] call[logger.debug, parameter[literal["Process JsCacheRemoveAll annotation"]]] local_variable[type[MessageToClient], messageToClient] call[messageToC...
Keyword[public] Keyword[void] identifier[processJsCacheRemoveAll] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[MessageToClient] identifier[messageToClient] operator[=] Keyword[new] identifier[MessageToClient]...
public static Document xml(File xmlFile, Charset charset) { InputStream ins = null; try { ins = new FileInputStream(xmlFile); return xml(ins, charset); } catch (Exception e) { throw Lang.wrapThrow(e); } }
class class_name[name] begin[{] method[xml, return_type[type[Document]], modifier[public static], parameter[xmlFile, charset]] begin[{] local_variable[type[InputStream], ins] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=ins, postfix_operators=...
Keyword[public] Keyword[static] identifier[Document] identifier[xml] operator[SEP] identifier[File] identifier[xmlFile] , identifier[Charset] identifier[charset] operator[SEP] { identifier[InputStream] identifier[ins] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[ins] operator[=] Ke...
public boolean deletePassword(String account) { int errorCode = deletePassword0(account.getBytes(UTF_8)); if (errorCode == OSSTATUS_SUCCESS) { return true; } else if (errorCode == OSSTATUS_NOT_FOUND) { return false; } else { throw new JniException("Failed to delete password. Error code " + errorCode); ...
class class_name[name] begin[{] method[deletePassword, return_type[type[boolean]], modifier[public], parameter[account]] begin[{] local_variable[type[int], errorCode] if[binary_operation[member[.errorCode], ==, member[.OSSTATUS_SUCCESS]]] begin[{] return[literal[true]] ...
Keyword[public] Keyword[boolean] identifier[deletePassword] operator[SEP] identifier[String] identifier[account] operator[SEP] { Keyword[int] identifier[errorCode] operator[=] identifier[deletePassword0] operator[SEP] identifier[account] operator[SEP] identifier[getBytes] operator[SEP] identifier[UTF_8] operator...
public void closePath() { if (this.numTypesProperty.get()<=0 || (this.types[this.numTypesProperty.get()-1]!=PathElementType.CLOSE &&this.types[this.numTypesProperty.get()-1]!=PathElementType.MOVE_TO)) { ensureSlots(true, 0); this.types[this.numTypesProperty.get()] = PathElementType.CLOSE; this.numTyp...
class class_name[name] begin[{] method[closePath, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[THIS[member[None.numTypesProperty]call[None.get, parameter[]]], <=, literal[0]], ||, binary_operation[binary_operation[THIS[member[None.types]ArraySe...
Keyword[public] Keyword[void] identifier[closePath] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[numTypesProperty] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[<=] Other[0] operator[||] operator[SEP] Keyword[this] operator[SEP] identifier[ty...
private Config scanOneMBeanObject(ObjectInstance objectInstance) { MBeanConfig mBeanConfig = new MBeanConfig(); ObjectName objectName = objectInstance.getObjectName(); mBeanConfig.addField("name", objectName.getCanonicalName()); scanMBeanAttributes(mBeanConfig, objectName); return mBeanConfig; }
class class_name[name] begin[{] method[scanOneMBeanObject, return_type[type[Config]], modifier[private], parameter[objectInstance]] begin[{] local_variable[type[MBeanConfig], mBeanConfig] local_variable[type[ObjectName], objectName] call[mBeanConfig.addField, parameter[literal["...
Keyword[private] identifier[Config] identifier[scanOneMBeanObject] operator[SEP] identifier[ObjectInstance] identifier[objectInstance] operator[SEP] { identifier[MBeanConfig] identifier[mBeanConfig] operator[=] Keyword[new] identifier[MBeanConfig] operator[SEP] operator[SEP] operator[SEP] identifier[ObjectName] ...
public void putCharactersCharacterIdContacts(Integer characterId, Float standing, List<Integer> requestBody, String datasource, List<Long> labelIds, String token, Boolean watched) throws ApiException { putCharactersCharacterIdContactsWithHttpInfo(characterId, standing, requestBody, datasource, label...
class class_name[name] begin[{] method[putCharactersCharacterIdContacts, return_type[void], modifier[public], parameter[characterId, standing, requestBody, datasource, labelIds, token, watched]] begin[{] call[.putCharactersCharacterIdContactsWithHttpInfo, parameter[member[.characterId], member[...
Keyword[public] Keyword[void] identifier[putCharactersCharacterIdContacts] operator[SEP] identifier[Integer] identifier[characterId] , identifier[Float] identifier[standing] , identifier[List] operator[<] identifier[Integer] operator[>] identifier[requestBody] , identifier[String] identifier[datasource] , identifie...
public final Disposable subscribe( @Nullable Consumer<? super T> consumer, @Nullable Consumer<? super Throwable> errorConsumer, @Nullable Runnable completeConsumer, @Nullable Consumer<? super Subscription> subscriptionConsumer) { return subscribeWith(new LambdaMonoSubscriber<>(consumer, errorConsumer, ...
class class_name[name] begin[{] method[subscribe, return_type[type[Disposable]], modifier[final public], parameter[consumer, errorConsumer, completeConsumer, subscriptionConsumer]] begin[{] return[call[.subscribeWith, parameter[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=...
Keyword[public] Keyword[final] identifier[Disposable] identifier[subscribe] operator[SEP] annotation[@] identifier[Nullable] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[consumer] , annotation[@] identifier[Nullable] identifier[Consumer] operator[<] operator[?] Keywo...
private static void imdct12(float[] src, float[] dst, int outOff, int wndIdx) { for (int j = 15 + wndIdx, k = 12 + wndIdx; j >= 3 + wndIdx; j -= 3, k -= 3) src[j] += src[k]; src[15 + wndIdx] += src[9 + wndIdx]; src[9 + wndIdx] += src[3 + wndIdx]; float pp2 = src[12 + wndId...
class class_name[name] begin[{] method[imdct12, return_type[void], modifier[private static], parameter[src, dst, outOff, wndIdx]] begin[{] ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=src, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
Keyword[private] Keyword[static] Keyword[void] identifier[imdct12] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[src] , Keyword[float] operator[SEP] operator[SEP] identifier[dst] , Keyword[int] identifier[outOff] , Keyword[int] identifier[wndIdx] operator[SEP] { Keyword[for] operator[SEP...
public static void migration(Dao dao, final Class<?> klass, final boolean add, final boolean del, boolean checkIndex) { migration(dao, klass, add, del, checkIndex, null); }
class class_name[name] begin[{] method[migration, return_type[void], modifier[public static], parameter[dao, klass, add, del, checkIndex]] begin[{] call[.migration, parameter[member[.dao], member[.klass], member[.add], member[.del], member[.checkIndex], literal[null]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[migration] operator[SEP] identifier[Dao] identifier[dao] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[klass] , Keyword[final] Keyword[boolean] identifier[add] , Keyword[final] Keyword[boolean] identifier[del] , Keyword[boo...
protected void saveMessageResourcesToHolder(ServletContext context) { final MessageResources resources = getMessageResources(context); final RutsMessageResourceGateway gateway = newRutsMessageResourceGateway(resources); getMessageResourceHolder().acceptGateway(gateway); }
class class_name[name] begin[{] method[saveMessageResourcesToHolder, return_type[void], modifier[protected], parameter[context]] begin[{] local_variable[type[MessageResources], resources] local_variable[type[RutsMessageResourceGateway], gateway] call[.getMessageResourceHolder, p...
Keyword[protected] Keyword[void] identifier[saveMessageResourcesToHolder] operator[SEP] identifier[ServletContext] identifier[context] operator[SEP] { Keyword[final] identifier[MessageResources] identifier[resources] operator[=] identifier[getMessageResources] operator[SEP] identifier[context] operator[SEP] oper...
public void billingAccount_easyHunting_serviceName_hunting_agent_agentId_PUT(String billingAccount, String serviceName, Long agentId, OvhOvhPabxHuntingAgent body) throws IOException { String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/hunting/agent/{agentId}"; StringBuilder sb = path(qPath, billi...
class class_name[name] begin[{] method[billingAccount_easyHunting_serviceName_hunting_agent_agentId_PUT, return_type[void], modifier[public], parameter[billingAccount, serviceName, agentId, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] ...
Keyword[public] Keyword[void] identifier[billingAccount_easyHunting_serviceName_hunting_agent_agentId_PUT] operator[SEP] identifier[String] identifier[billingAccount] , identifier[String] identifier[serviceName] , identifier[Long] identifier[agentId] , identifier[OvhOvhPabxHuntingAgent] identifier[body] operator[SEP...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "ArcStringByBulge", substitutionHeadNamespace = "http://www.opengis.net/gml", substitutionHeadName = "_CurveSegment") public JAXBElement<ArcStringByBulgeType> createArcStringByBulge(ArcStringByBulgeType value) { return new JAXBElement<ArcStrin...
class class_name[name] begin[{] method[createArcStringByBulge, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_ArcStringByBulge_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference...
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...
@XmlElementDecl(namespace = "", name = "probability", scope = LocationType.class) public JAXBElement<Probability> createLocationTypeProbability(Probability value) { return new JAXBElement<Probability>(_LocationTypeProbability_QNAME, Probability.class, LocationType.class, value); }
class class_name[name] begin[{] method[createLocationTypeProbability, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_LocationTypeProbability_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[LocationType] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Pro...
private void configureContourDetector(T gray) { // determine the maximum possible size of a square when viewed head on // also take in account shapes touching the edge will be concave int maxContourSize = Math.max(gray.width,gray.height)/Math.max(numCols,numRows); BinaryContourFinder contourFinder = detectorSqu...
class class_name[name] begin[{] method[configureContourDetector, return_type[void], modifier[private], parameter[gray]] begin[{] local_variable[type[int], maxContourSize] local_variable[type[BinaryContourFinder], contourFinder] call[contourFinder.setMaxContour, parameter[binary_...
Keyword[private] Keyword[void] identifier[configureContourDetector] operator[SEP] identifier[T] identifier[gray] operator[SEP] { Keyword[int] identifier[maxContourSize] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[gray] operator[SEP] identifier[width] , identifier[gray] op...
private ObjectMeta createDeploymentConfigMetaData(ResourceConfig config) { return new ObjectMetaBuilder() .withName(KubernetesHelper.validateKubernetesId(config.getControllerName(), "controller name")) .build(); }
class class_name[name] begin[{] method[createDeploymentConfigMetaData, return_type[type[ObjectMeta]], modifier[private], parameter[config]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[Method...
Keyword[private] identifier[ObjectMeta] identifier[createDeploymentConfigMetaData] operator[SEP] identifier[ResourceConfig] identifier[config] operator[SEP] { Keyword[return] Keyword[new] identifier[ObjectMetaBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[withName] operator[SEP] identifier[Kuberne...
public boolean removeTerms(Set<BooleanTerm> toRemove) { boolean modified = false; if (toRemove == null || toRemove.iterator() == null) { modified = booleanTerms == null || size() != 0; booleanTerms = new HashSet<BooleanTerm>(); } else if (booleanTerms != null) { modified = removeAll(toRemove); }...
class class_name[name] begin[{] method[removeTerms, return_type[type[boolean]], modifier[public], parameter[toRemove]] begin[{] local_variable[type[boolean], modified] if[binary_operation[binary_operation[member[.toRemove], ==, literal[null]], ||, binary_operation[call[toRemove.iterator...
Keyword[public] Keyword[boolean] identifier[removeTerms] operator[SEP] identifier[Set] operator[<] identifier[BooleanTerm] operator[>] identifier[toRemove] operator[SEP] { Keyword[boolean] identifier[modified] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[toRemove] operator[==] ...
public String getRefName() { // We need to take into consideration whether // the event contains the long or short name for Ref // Gerrit 2.12 will no longer have short branch names in the // RefUpdated event. if (refName.startsWith(REFS_HEADS)) { return refName.subst...
class class_name[name] begin[{] method[getRefName, return_type[type[String]], modifier[public], parameter[]] begin[{] if[call[refName.startsWith, parameter[member[.REFS_HEADS]]]] begin[{] return[call[refName.substring, parameter[call[REFS_HEADS.length, parameter[]]]]] else b...
Keyword[public] identifier[String] identifier[getRefName] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[refName] operator[SEP] identifier[startsWith] operator[SEP] identifier[REFS_HEADS] operator[SEP] operator[SEP] { Keyword[return] identifier[refName] operator[SEP] identifier[sub...
public String providePassword(Item item) { return isUsingCredentialsPlugin() ? PluginsUtils.credentialsLookup(credentialsId, item).getPassword() : credentials.getPassword(); }
class class_name[name] begin[{] method[providePassword, return_type[type[String]], modifier[public], parameter[item]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=isUsingCredentialsPlugin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arg...
Keyword[public] identifier[String] identifier[providePassword] operator[SEP] identifier[Item] identifier[item] operator[SEP] { Keyword[return] identifier[isUsingCredentialsPlugin] operator[SEP] operator[SEP] operator[?] identifier[PluginsUtils] operator[SEP] identifier[credentialsLookup] operator[SEP] identifier...
public ApplicationInsightsComponentFavoriteInner add(String resourceGroupName, String resourceName, String favoriteId, ApplicationInsightsComponentFavoriteInner favoriteProperties) { return addWithServiceResponseAsync(resourceGroupName, resourceName, favoriteId, favoriteProperties).toBlocking().single().body();...
class class_name[name] begin[{] method[add, return_type[type[ApplicationInsightsComponentFavoriteInner]], modifier[public], parameter[resourceGroupName, resourceName, favoriteId, favoriteProperties]] begin[{] return[call[.addWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resour...
Keyword[public] identifier[ApplicationInsightsComponentFavoriteInner] identifier[add] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[String] identifier[favoriteId] , identifier[ApplicationInsightsComponentFavoriteInner] identifier[favoritePro...
public boolean unsetOption(String key) { // we do have null values --> check for key boolean b = options.containsKey(key); options.remove(key); return b; }
class class_name[name] begin[{] method[unsetOption, return_type[type[boolean]], modifier[public], parameter[key]] begin[{] local_variable[type[boolean], b] call[options.remove, parameter[member[.key]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[unsetOption] operator[SEP] identifier[String] identifier[key] operator[SEP] { Keyword[boolean] identifier[b] operator[=] identifier[options] operator[SEP] identifier[containsKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[options] operator[SEP...
public void sscount(final byte[] keyspace, final byte[] uid, final byte[] serviceCode) { sendCommand(Command.S3SCOUNT, keyspace, uid, serviceCode); }
class class_name[name] begin[{] method[sscount, return_type[void], modifier[public], parameter[keyspace, uid, serviceCode]] begin[{] call[.sendCommand, parameter[member[Command.S3SCOUNT], member[.keyspace], member[.uid], member[.serviceCode]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[sscount] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[keyspace] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[uid] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[serviceCode] operator[SEP] { ...
public synchronized static boolean maybeLoad() { try { if (!Utils.getBoolean(System.getProperties(), "jafka_mx4jenable", false)) { return false; } if (httpAdaptor != null) { logger.warn("mx4j has started"); return true; ...
class class_name[name] begin[{] method[maybeLoad, return_type[type[boolean]], modifier[synchronized public static], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getProperties, postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[synchronized] Keyword[static] Keyword[boolean] identifier[maybeLoad] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[Utils] operator[SEP] identifier[getBoolean] operator[SEP] identifier[System] operator[SEP] identifier[getProperties...
static Drawable maybeWrapWithRoundedOverlayColor( @Nullable Drawable drawable, @Nullable RoundingParams roundingParams) { try { if (FrescoSystrace.isTracing()) { FrescoSystrace.beginSection("WrappingUtils#maybeWrapWithRoundedOverlayColor"); } if (drawable == null || r...
class class_name[name] begin[{] method[maybeWrapWithRoundedOverlayColor, return_type[type[Drawable]], modifier[static], parameter[drawable, roundingParams]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTracing, postfix_operators=[], prefix_operators=[], qua...
Keyword[static] identifier[Drawable] identifier[maybeWrapWithRoundedOverlayColor] operator[SEP] annotation[@] identifier[Nullable] identifier[Drawable] identifier[drawable] , annotation[@] identifier[Nullable] identifier[RoundingParams] identifier[roundingParams] operator[SEP] { Keyword[try] { Keywor...
@Deprecated public Database determineDatabase(DataSource dataSource) { if (this.database != null) { return this.database; } return DatabaseLookup.getDatabase(dataSource); }
class class_name[name] begin[{] method[determineDatabase, return_type[type[Database]], modifier[public], parameter[dataSource]] begin[{] if[binary_operation[THIS[member[None.database]], !=, literal[null]]] begin[{] return[THIS[member[None.database]]] else begin[{] None ...
annotation[@] identifier[Deprecated] Keyword[public] identifier[Database] identifier[determineDatabase] operator[SEP] identifier[DataSource] identifier[dataSource] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[database] operator[!=] Other[null] operator[SEP] { Keywor...
Set<ProbeListener> removeListenersForMonitor(Object monitor) { Set<ProbeListener> listeners = null; listenersLock.writeLock().lock(); try { listeners = listenersForMonitor.remove(monitor); if (listeners == null) { listeners = Collections.emptySet(); ...
class class_name[name] begin[{] method[removeListenersForMonitor, return_type[type[Set]], modifier[default], parameter[monitor]] begin[{] local_variable[type[Set], listeners] call[listenersLock.writeLock, parameter[]] TryStatement(block=[StatementExpression(expression=Assignment...
identifier[Set] operator[<] identifier[ProbeListener] operator[>] identifier[removeListenersForMonitor] operator[SEP] identifier[Object] identifier[monitor] operator[SEP] { identifier[Set] operator[<] identifier[ProbeListener] operator[>] identifier[listeners] operator[=] Other[null] operator[SEP] identifier[lis...
private void showJobs(PrintWriter out, boolean advancedView, Set<String> userFilterSet, Set<String> poolFilterSet) { ResourceReporter reporter = jobTracker.getResourceReporter(); out.print("<h2>Running Jobs</h2>\n"); out.print("<b>Filter</b> " + "<input type=\"text\" onkeyup=\"filterTables(thi...
class class_name[name] begin[{] method[showJobs, return_type[void], modifier[private], parameter[out, advancedView, userFilterSet, poolFilterSet]] begin[{] local_variable[type[ResourceReporter], reporter] call[out.print, parameter[literal["<h2>Running Jobs</h2>\n"]]] cal...
Keyword[private] Keyword[void] identifier[showJobs] operator[SEP] identifier[PrintWriter] identifier[out] , Keyword[boolean] identifier[advancedView] , identifier[Set] operator[<] identifier[String] operator[>] identifier[userFilterSet] , identifier[Set] operator[<] identifier[String] operator[>] identifier[poolFilt...
public List<KojiArchiveInfo> listArchivesForBuild( Integer buildId, KojiSessionInfo session ) throws KojiClientException { KojiArchiveQuery query = new KojiArchiveQuery().withBuildId( buildId ); return computeIfAbsent( KOJI_ARCHIVES_FOR_BUILD, Integer.class, List.class, buildId, ...
class class_name[name] begin[{] method[listArchivesForBuild, return_type[type[List]], modifier[public], parameter[buildId, session]] begin[{] local_variable[type[KojiArchiveQuery], query] return[call[.computeIfAbsent, parameter[member[.KOJI_ARCHIVES_FOR_BUILD], ClassReference(postfix_operators=...
Keyword[public] identifier[List] operator[<] identifier[KojiArchiveInfo] operator[>] identifier[listArchivesForBuild] operator[SEP] identifier[Integer] identifier[buildId] , identifier[KojiSessionInfo] identifier[session] operator[SEP] Keyword[throws] identifier[KojiClientException] { identifier[KojiArchiveQuer...
public static Graphics getGraphicsForImage(Image image) throws SlickException { Graphics g = (Graphics) graphics.get(image.getTexture()); if (g == null) { g = createGraphics(image); graphics.put(image.getTexture(), g); } return g; }
class class_name[name] begin[{] method[getGraphicsForImage, return_type[type[Graphics]], modifier[public static], parameter[image]] begin[{] local_variable[type[Graphics], g] if[binary_operation[member[.g], ==, literal[null]]] begin[{] assign[member[.g], call[.cr...
Keyword[public] Keyword[static] identifier[Graphics] identifier[getGraphicsForImage] operator[SEP] identifier[Image] identifier[image] operator[SEP] Keyword[throws] identifier[SlickException] { identifier[Graphics] identifier[g] operator[=] operator[SEP] identifier[Graphics] operator[SEP] identifier[graphics] op...
private void startTask(ApplicationDefinition appDef, Task task, TaskRecord taskRecord) { try { task.setParams(m_localHost, taskRecord); m_executor.execute(task); } catch (Exception e) { m_logger.error("Failed to start task '" + task.getTaskID() + "'", e); } ...
class class_name[name] begin[{] method[startTask, return_type[void], modifier[private], parameter[appDef, task, taskRecord]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=m_localHost, postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[private] Keyword[void] identifier[startTask] operator[SEP] identifier[ApplicationDefinition] identifier[appDef] , identifier[Task] identifier[task] , identifier[TaskRecord] identifier[taskRecord] operator[SEP] { Keyword[try] { identifier[task] operator[SEP] identifier[setParams] operator[SEP...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Observable<T> retry(long times) { return retry(times, Functions.alwaysTrue()); }
class class_name[name] begin[{] method[retry, return_type[type[Observable]], modifier[final public], parameter[times]] begin[{] return[call[.retry, parameter[member[.times], call[Functions.alwaysTrue, parameter[]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Observable] operator[<] identifier[T] operator[>] identifier[retry] operator[SEP] Keyword[long] identifi...
void setValue(T bean, String value) { ref.writeValue(converter.fromCharacters(value), bean); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[default], parameter[bean, value]] begin[{] call[ref.writeValue, parameter[call[converter.fromCharacters, parameter[member[.value]]], member[.bean]]] end[}] END[}]
Keyword[void] identifier[setValue] operator[SEP] identifier[T] identifier[bean] , identifier[String] identifier[value] operator[SEP] { identifier[ref] operator[SEP] identifier[writeValue] operator[SEP] identifier[converter] operator[SEP] identifier[fromCharacters] operator[SEP] identifier[value] operator[SEP] ,...
public static BasicTagList concat(TagList t1, TagList t2) { return new BasicTagList(Iterables.concat(t1, t2)); }
class class_name[name] begin[{] method[concat, return_type[type[BasicTagList]], modifier[public static], parameter[t1, t2]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=t1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferenc...
Keyword[public] Keyword[static] identifier[BasicTagList] identifier[concat] operator[SEP] identifier[TagList] identifier[t1] , identifier[TagList] identifier[t2] operator[SEP] { Keyword[return] Keyword[new] identifier[BasicTagList] operator[SEP] identifier[Iterables] operator[SEP] identifier[concat] operator[SE...
private String getParameterName(AnnotatedParameter<?> parameter) { try { Method method = Method.class.getMethod("getParameters"); Object[] parameters = (Object[]) method.invoke(parameter.getDeclaringCallable().getJavaMember()); Object param = parameters[parameter.getPosition(...
class class_name[name] begin[{] method[getParameterName, return_type[type[String]], modifier[private], parameter[parameter]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassReference(postfix_operators=[], prefix_opera...
Keyword[private] identifier[String] identifier[getParameterName] operator[SEP] identifier[AnnotatedParameter] operator[<] operator[?] operator[>] identifier[parameter] operator[SEP] { Keyword[try] { identifier[Method] identifier[method] operator[=] identifier[Method] operator[SEP] Keyword[class] opera...
protected ViewDispatcher registerViewDispatcher(WebApplicationContext applicationContext) { // 并发下,重复注册虽然不会错误,但没有必要重复注册 synchronized (applicationContext) { if (SpringUtils.getBean(applicationContext, viewDispatcherName) == null) { GenericBeanDefinition beanDefinition = new An...
class class_name[name] begin[{] method[registerViewDispatcher, return_type[type[ViewDispatcher]], modifier[protected], parameter[applicationContext]] begin[{] SYNCHRONIZED[member[.applicationContext]] BEGIN[{] if[binary_operation[call[SpringUtils.getBean, parameter[membe...
Keyword[protected] identifier[ViewDispatcher] identifier[registerViewDispatcher] operator[SEP] identifier[WebApplicationContext] identifier[applicationContext] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[applicationContext] operator[SEP] { Keyword[if] operator[SEP] identifier[Spring...
public void serveFile(final String contentFile, final String root, final String validSubPaths) { if (rootPath == null) { final String slash = root.endsWith("/") ? "" : "/"; rootPath = root + slash; } final String contentPath = rootPath + context.request.uri; try { final byte[] fileCo...
class class_name[name] begin[{] method[serveFile, return_type[void], modifier[public], parameter[contentFile, root, validSubPaths]] begin[{] if[binary_operation[member[.rootPath], ==, literal[null]]] begin[{] local_variable[type[String], slash] assign[member[...
Keyword[public] Keyword[void] identifier[serveFile] operator[SEP] Keyword[final] identifier[String] identifier[contentFile] , Keyword[final] identifier[String] identifier[root] , Keyword[final] identifier[String] identifier[validSubPaths] operator[SEP] { Keyword[if] operator[SEP] identifier[rootPath] operator[...
private void registerServant(BusinessRemoteWrapper wrapper, int i) { // synchronized on the remote Wrapper to set the isRemoteRegistered flag synchronized (wrapper) { if (!ivBusinessRemoteRegistered[i]) { try { if (!...
class class_name[name] begin[{] method[registerServant, return_type[void], modifier[private], parameter[wrapper, i]] begin[{] SYNCHRONIZED[member[.wrapper]] BEGIN[{] if[member[.ivBusinessRemoteRegistered]] begin[{] TryStatement(block=[IfStatement(conditio...
Keyword[private] Keyword[void] identifier[registerServant] operator[SEP] identifier[BusinessRemoteWrapper] identifier[wrapper] , Keyword[int] identifier[i] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[wrapper] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[ivBusine...
public Observable<ServiceResponseWithHeaders<Page<Certificate>, CertificateListHeaders>> listSinglePageAsync() { if (this.client.batchUrl() == null) { throw new IllegalArgumentException("Parameter this.client.batchUrl() is required and cannot be null."); } if (this.client.apiVersion(...
class class_name[name] begin[{] method[listSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.client]call[None.batchUrl, parameter[]]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponseWithHeaders] operator[<] identifier[Page] operator[<] identifier[Certificate] operator[>] , identifier[CertificateListHeaders] operator[>] operator[>] identifier[listSinglePageAsync] operator[SEP] operator[SEP] { Keyword[if] operator[S...
public NotificationChain basicSetDuration(Parameter newDuration, NotificationChain msgs) { Parameter oldDuration = duration; duration = newDuration; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimPackage.SCENARIO_PARAMETERS__DURATION, oldDurat...
class class_name[name] begin[{] method[basicSetDuration, return_type[type[NotificationChain]], modifier[public], parameter[newDuration, msgs]] begin[{] local_variable[type[Parameter], oldDuration] assign[member[.duration], member[.newDuration]] if[call[.eNotificationRequ...
Keyword[public] identifier[NotificationChain] identifier[basicSetDuration] operator[SEP] identifier[Parameter] identifier[newDuration] , identifier[NotificationChain] identifier[msgs] operator[SEP] { identifier[Parameter] identifier[oldDuration] operator[=] identifier[duration] operator[SEP] identifier[duration...
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/tunnel/2.0", name = "OuterCeilingSurface", substitutionHeadNamespace = "http://www.opengis.net/citygml/tunnel/2.0", substitutionHeadName = "_BoundarySurface") public JAXBElement<OuterCeilingSurfaceType> createOuterCeilingSurface(OuterCeilingSurfaceType val...
class class_name[name] begin[{] method[createOuterCeilingSurface, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_OuterCeilingSurface_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassRef...
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...
protected void keyPressed(final KeyEvent event) { final int keyCode = event.getKeyCode(); final int modifiers = event.getModifiers(); if ((modifiers & Event.CTRL_MASK) != 0 && keyCode == KeyEvent.VK_ADD) { adjustColumnWidths(); } // else if (modifiers == 0) // { // final int selectedColumn = ge...
class class_name[name] begin[{] method[keyPressed, return_type[void], modifier[protected], parameter[event]] begin[{] local_variable[type[int], keyCode] local_variable[type[int], modifiers] if[binary_operation[binary_operation[binary_operation[member[.modifiers], &, member[Event...
Keyword[protected] Keyword[void] identifier[keyPressed] operator[SEP] Keyword[final] identifier[KeyEvent] identifier[event] operator[SEP] { Keyword[final] Keyword[int] identifier[keyCode] operator[=] identifier[event] operator[SEP] identifier[getKeyCode] operator[SEP] operator[SEP] operator[SEP] Keyword[final] K...
public MethodDocImpl getMethodDoc(MethodSymbol meth) { assert !meth.isConstructor() : "not expecting a constructor symbol"; MethodDocImpl result = (MethodDocImpl)methodMap.get(meth); if (result != null) return result; result = new MethodDocImpl(this, meth); methodMap.put(meth, re...
class class_name[name] begin[{] method[getMethodDoc, return_type[type[MethodDocImpl]], modifier[public], parameter[meth]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=isConstructor, postfix_operators=[], prefix_operators=['!'], qualifier=meth, selectors=[], type_arguments=No...
Keyword[public] identifier[MethodDocImpl] identifier[getMethodDoc] operator[SEP] identifier[MethodSymbol] identifier[meth] operator[SEP] { Keyword[assert] operator[!] identifier[meth] operator[SEP] identifier[isConstructor] operator[SEP] operator[SEP] operator[:] literal[String] operator[SEP] identifier[MethodD...
public boolean isEqual(ReadableDuration duration) { if (duration == null) { duration = Duration.ZERO; } return compareTo(duration) == 0; }
class class_name[name] begin[{] method[isEqual, return_type[type[boolean]], modifier[public], parameter[duration]] begin[{] if[binary_operation[member[.duration], ==, literal[null]]] begin[{] assign[member[.duration], member[Duration.ZERO]] else begin[{] None ...
Keyword[public] Keyword[boolean] identifier[isEqual] operator[SEP] identifier[ReadableDuration] identifier[duration] operator[SEP] { Keyword[if] operator[SEP] identifier[duration] operator[==] Other[null] operator[SEP] { identifier[duration] operator[=] identifier[Duration] operator[SEP] identifier[ZE...
private boolean doesSubjectContainUTOKEN(Subject subj) throws ResourceException { Set privateGenericCredentials = getPrivateGenericCredentials(subj); final Iterator iter = privateGenericCredentials.iterator(); boolean subjectHasUtokenCred = false; GenericCredential credential = null; ...
class class_name[name] begin[{] method[doesSubjectContainUTOKEN, return_type[type[boolean]], modifier[private], parameter[subj]] begin[{] local_variable[type[Set], privateGenericCredentials] local_variable[type[Iterator], iter] local_variable[type[boolean], subjectHasUtokenCred] ...
Keyword[private] Keyword[boolean] identifier[doesSubjectContainUTOKEN] operator[SEP] identifier[Subject] identifier[subj] operator[SEP] Keyword[throws] identifier[ResourceException] { identifier[Set] identifier[privateGenericCredentials] operator[=] identifier[getPrivateGenericCredentials] operator[SEP] identifi...
public static Object invoke( Object target, String name ) throws Exception { return target.getClass().getMethod(name).invoke(target); }
class class_name[name] begin[{] method[invoke, return_type[type[Object]], modifier[public static], parameter[target, name]] begin[{] return[call[target.getClass, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[invoke] operator[SEP] identifier[Object] identifier[target] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[target] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] ...
public TCUserAbortRequest createUAbort(Dialog d) { if (d == null) { throw new NullPointerException("Dialog is null"); } TCUserAbortRequestImpl tcer = new TCUserAbortRequestImpl(); tcer.setDialog(d); tcer.setOriginatingAddress(d.getLocalAddress()); return tcer;...
class class_name[name] begin[{] method[createUAbort, return_type[type[TCUserAbortRequest]], modifier[public], parameter[d]] begin[{] if[binary_operation[member[.d], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] identifier[TCUserAbortRequest] identifier[createUAbort] operator[SEP] identifier[Dialog] identifier[d] operator[SEP] { Keyword[if] operator[SEP] identifier[d] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[Str...
private LogRepositoryBrowser findNext(long cur, long timelimit) { File[] files = listFiles(instanceFilter); if (files == null) { return null; } File result = null; long min = Long.MAX_VALUE; for (File file : files) { long time = parseTimeStamp(fil...
class class_name[name] begin[{] method[findNext, return_type[type[LogRepositoryBrowser]], modifier[private], parameter[cur, timelimit]] begin[{] local_variable[type[File], files] if[binary_operation[member[.files], ==, literal[null]]] begin[{] return[literal[null]] e...
Keyword[private] identifier[LogRepositoryBrowser] identifier[findNext] operator[SEP] Keyword[long] identifier[cur] , Keyword[long] identifier[timelimit] operator[SEP] { identifier[File] operator[SEP] operator[SEP] identifier[files] operator[=] identifier[listFiles] operator[SEP] identifier[instanceFilter] opera...
@Override protected final void buildSpecific( TypeSpec.Builder typeBuilder ) throws UnableToCompleteException, UnsupportedTypeException { if ( beanInfo.getBuilder().isPresent() || beanInfo.getCreatorMethod().isPresent() ) { typeBuilder.addMethod( buildInitInstanceBuilderMethod() ); } ...
class class_name[name] begin[{] method[buildSpecific, return_type[void], modifier[final protected], parameter[typeBuilder]] begin[{] if[binary_operation[call[beanInfo.getBuilder, parameter[]], ||, call[beanInfo.getCreatorMethod, parameter[]]]] begin[{] call[typeBuilder.a...
annotation[@] identifier[Override] Keyword[protected] Keyword[final] Keyword[void] identifier[buildSpecific] operator[SEP] identifier[TypeSpec] operator[SEP] identifier[Builder] identifier[typeBuilder] operator[SEP] Keyword[throws] identifier[UnableToCompleteException] , identifier[UnsupportedTypeException] { K...