code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public com.liferay.commerce.account.model.CommerceAccount addCommerceAccount( com.liferay.commerce.account.model.CommerceAccount commerceAccount) { return _commerceAccountLocalService.addCommerceAccount(commerceAccount); }
class class_name[name] begin[{] method[addCommerceAccount, return_type[type[com]], modifier[public], parameter[commerceAccount]] begin[{] return[call[_commerceAccountLocalService.addCommerceAccount, parameter[member[.commerceAccount]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[account] operator[SEP] identifier[model] operator[SEP] identifier[CommerceAccount] identifier[addCommerceAccount] operator[SEP] identifier[com] operator[SEP] i...
@Override public <T> T retrieveBean(String name, T bean, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeExpressions) throws CpoException { return getCurrentResource().retrieveBean(name, bean, wheres, orderBy, nativeExpressions); }
class class_name[name] begin[{] method[retrieveBean, return_type[type[T]], modifier[public], parameter[name, bean, wheres, orderBy, nativeExpressions]] begin[{] return[call[.getCurrentResource, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[retrieveBean] operator[SEP] identifier[String] identifier[name] , identifier[T] identifier[bean] , identifier[Collection] operator[<] identifier[CpoWhere] operator[>] identifier[wheres] , identifier[Coll...
public V remove(Object key) { int hashCode = hash((key == null) ? NULL : key); int index = hashIndex(hashCode, data.length); HashEntry<K, V> entry = data[index]; HashEntry<K, V> previous = null; while (entry != null) { if (entry.hashCode == hashCode && isEqualKey(key,...
class class_name[name] begin[{] method[remove, return_type[type[V]], modifier[public], parameter[key]] begin[{] local_variable[type[int], hashCode] local_variable[type[int], index] local_variable[type[HashEntry], entry] local_variable[type[HashEntry], previous] w...
Keyword[public] identifier[V] identifier[remove] operator[SEP] identifier[Object] identifier[key] operator[SEP] { Keyword[int] identifier[hashCode] operator[=] identifier[hash] operator[SEP] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] operator[?] identifier[NULL] operator[:] identifier[...
public final EObject ruleXTypeLiteral() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_2=null; Token otherlv_5=null; AntlrDatatypeRuleToken lv_arrayDimensions_4_0 = null; enterRule(); try { // InternalXb...
class class_name[name] begin[{] method[ruleXTypeLiteral, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_1] local_variable[type[Token], otherlv_2] local_variable[type[Token], oth...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXTypeLiteral] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_1] operator[=] Other[null] operator[SEP...
public void setMentionType(String v) { if (CandidateAnswerOccurrence_Type.featOkTst && ((CandidateAnswerOccurrence_Type)jcasType).casFeat_mentionType == null) jcasType.jcas.throwFeatMissing("mentionType", "edu.cmu.lti.oaqa.type.answer.CandidateAnswerOccurrence"); jcasType.ll_cas.ll_setStringValue(addr, ((...
class class_name[name] begin[{] method[setMentionType, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[CandidateAnswerOccurrence_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[void] identifier[setMentionType] operator[SEP] identifier[String] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[CandidateAnswerOccurrence_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[CandidateAnswerOccurrence_Type] oper...
public Array readVariable(Variable v2, Section section) throws IOException, InvalidRangeException { // not sure why timeRange isn't used...will comment out // for now // TODO: use timeRange in readVariable //Range timeRange = null; Range bandRange = null; Range geoXRange = null; Range...
class class_name[name] begin[{] method[readVariable, return_type[type[Array]], modifier[public], parameter[v2, section]] begin[{] local_variable[type[Range], bandRange] local_variable[type[Range], geoXRange] local_variable[type[Range], geoYRange] local_variable[type[Array], data...
Keyword[public] identifier[Array] identifier[readVariable] operator[SEP] identifier[Variable] identifier[v2] , identifier[Section] identifier[section] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InvalidRangeException] { identifier[Range] identifier[bandRange] operator[=] Other[null] oper...
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); switchMenu = menu.add("Switch WMS Layer"); }
class class_name[name] begin[{] method[onCreateOptionsMenu, return_type[void], modifier[public], parameter[menu, inflater]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=menu, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=inflate...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onCreateOptionsMenu] operator[SEP] identifier[Menu] identifier[menu] , identifier[MenuInflater] identifier[inflater] operator[SEP] { Keyword[super] operator[SEP] identifier[onCreateOptionsMenu] operator[SEP] identifier[menu] , identifi...
protected ItemImpl readItem(ItemData itemData, boolean pool) throws RepositoryException { return readItem(itemData, null, pool, true); }
class class_name[name] begin[{] method[readItem, return_type[type[ItemImpl]], modifier[protected], parameter[itemData, pool]] begin[{] return[call[.readItem, parameter[member[.itemData], literal[null], member[.pool], literal[true]]]] end[}] END[}]
Keyword[protected] identifier[ItemImpl] identifier[readItem] operator[SEP] identifier[ItemData] identifier[itemData] , Keyword[boolean] identifier[pool] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[return] identifier[readItem] operator[SEP] identifier[itemData] , Other[null] , ident...
protected RendererViewHolder buildRendererViewHolder() { validateAttributesToCreateANewRendererViewHolder(); Renderer renderer = getPrototypeByIndex(viewType).copy(); renderer.onCreate(null, layoutInflater, parent); return new RendererViewHolder(renderer); }
class class_name[name] begin[{] method[buildRendererViewHolder, return_type[type[RendererViewHolder]], modifier[protected], parameter[]] begin[{] call[.validateAttributesToCreateANewRendererViewHolder, parameter[]] local_variable[type[Renderer], renderer] call[renderer.o...
Keyword[protected] identifier[RendererViewHolder] identifier[buildRendererViewHolder] operator[SEP] operator[SEP] { identifier[validateAttributesToCreateANewRendererViewHolder] operator[SEP] operator[SEP] operator[SEP] identifier[Renderer] identifier[renderer] operator[=] identifier[getPrototypeByIndex] operator...
public static boolean verify(String appId, String appSecretKey, byte[] body, HttpServletRequest request) throws IOException { HmacSignatureBuilder builder = new HmacSignatureBuilder(); String signitSignature = request.getHeader("X-Signit-Signature"); builder.scheme(request.getHeader...
class class_name[name] begin[{] method[verify, return_type[type[boolean]], modifier[public static], parameter[appId, appSecretKey, body, request]] begin[{] local_variable[type[HmacSignatureBuilder], builder] local_variable[type[String], signitSignature] call[builder.scheme, para...
Keyword[public] Keyword[static] Keyword[boolean] identifier[verify] operator[SEP] identifier[String] identifier[appId] , identifier[String] identifier[appSecretKey] , Keyword[byte] operator[SEP] operator[SEP] identifier[body] , identifier[HttpServletRequest] identifier[request] operator[SEP] Keyword[throws] identifi...
public ArrayList<OvhSyncDailyLicense> serviceName_sync_license_GET(String serviceName, OvhSyncLicenseEnum license, OvhLicensePeriodEnum period) throws IOException { String qPath = "/msServices/{serviceName}/sync/license"; StringBuilder sb = path(qPath, serviceName); query(sb, "license", license); query(sb, "per...
class class_name[name] begin[{] method[serviceName_sync_license_GET, return_type[type[ArrayList]], modifier[public], parameter[serviceName, license, period]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb], ...
Keyword[public] identifier[ArrayList] operator[<] identifier[OvhSyncDailyLicense] operator[>] identifier[serviceName_sync_license_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[OvhSyncLicenseEnum] identifier[license] , identifier[OvhLicensePeriodEnum] identifier[period] operator[SEP] Keywo...
public final void setGuaranteedTargetMessagingEngineUUID(SIBUuid8 value) { if (value != null) jmo.setField(ControlAccess.TARGETMEUUID, value.toByteArray()); else jmo.setField(ControlAccess.TARGETMEUUID, null); }
class class_name[name] begin[{] method[setGuaranteedTargetMessagingEngineUUID, return_type[void], modifier[final public], parameter[value]] begin[{] if[binary_operation[member[.value], !=, literal[null]]] begin[{] call[jmo.setField, parameter[member[ControlAccess.TARGETMEUUID], call...
Keyword[public] Keyword[final] Keyword[void] identifier[setGuaranteedTargetMessagingEngineUUID] operator[SEP] identifier[SIBUuid8] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] identifier[jmo] operator[SEP] identifier[setField] operator[SEP] ...
private void requestBlock() { next = ByteBuffer.allocate(blockSizeBytes); long requestTimeout = retryParams.getRequestTimeoutMillisForCurrentAttempt(); pendingFetch = raw.readObjectAsync(next, filename, fetchPosition, requestTimeout); }
class class_name[name] begin[{] method[requestBlock, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.next], call[ByteBuffer.allocate, parameter[member[.blockSizeBytes]]]] local_variable[type[long], requestTimeout] assign[member[.pendingFetch], ...
Keyword[private] Keyword[void] identifier[requestBlock] operator[SEP] operator[SEP] { identifier[next] operator[=] identifier[ByteBuffer] operator[SEP] identifier[allocate] operator[SEP] identifier[blockSizeBytes] operator[SEP] operator[SEP] Keyword[long] identifier[requestTimeout] operator[=] identifier[retryPa...
public static void stdDev(Planar<GrayF32> input, GrayF32 output, @Nullable GrayF32 avg) { stdDev(input,output,avg,0,input.getNumBands() - 1); }
class class_name[name] begin[{] method[stdDev, return_type[void], modifier[public static], parameter[input, output, avg]] begin[{] call[.stdDev, parameter[member[.input], member[.output], member[.avg], literal[0], binary_operation[call[input.getNumBands, parameter[]], -, literal[1]]]] end[}...
Keyword[public] Keyword[static] Keyword[void] identifier[stdDev] operator[SEP] identifier[Planar] operator[<] identifier[GrayF32] operator[>] identifier[input] , identifier[GrayF32] identifier[output] , annotation[@] identifier[Nullable] identifier[GrayF32] identifier[avg] operator[SEP] { identifier[stdDev] op...
public static String stringifyProperties(Property[] properties) { if (properties == null) { return null; } StringBuilder sb = new StringBuilder(); for (Property property : properties) { if (property == null) { ...
class class_name[name] begin[{] method[stringifyProperties, return_type[type[String]], modifier[public static], parameter[properties]] begin[{] if[binary_operation[member[.properties], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[String] identifier[stringifyProperties] operator[SEP] identifier[Property] operator[SEP] operator[SEP] identifier[properties] operator[SEP] { Keyword[if] operator[SEP] identifier[properties] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null]...
public int previous() { if (dir_ < 0) { // Continue backwards iteration. Test this first. if (otherHalf_ != 0) { int oh = otherHalf_; otherHalf_ = 0; return oh; } } else if (dir_ == 0) { iter_.resetToOffset(s...
class class_name[name] begin[{] method[previous, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.dir_], <, literal[0]]] begin[{] if[binary_operation[member[.otherHalf_], !=, literal[0]]] begin[{] local_variable[...
Keyword[public] Keyword[int] identifier[previous] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[dir_] operator[<] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[otherHalf_] operator[!=] Other[0] operator[SEP] { Keyword[int] identifier[oh] operator[=] ...
public StringBuffer append(Reader source, StringBuffer buffer) throws IOException { BufferedReader _bufferedReader = new BufferedReader(source); char[] _buffer = new char[getBufferSize()]; // load by chunk of 4 ko try { for (int _countReadChars = 0; _countReadChars >= 0;) { buffer.append(_buffer, 0, ...
class class_name[name] begin[{] method[append, return_type[type[StringBuffer]], modifier[public], parameter[source, buffer]] begin[{] local_variable[type[BufferedReader], _bufferedReader] local_variable[type[char], _buffer] TryStatement(block=[ForStatement(body=BlockStatement(label=None...
Keyword[public] identifier[StringBuffer] identifier[append] operator[SEP] identifier[Reader] identifier[source] , identifier[StringBuffer] identifier[buffer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedReader] identifier[_bufferedReader] operator[=] Keyword[new] identifier[Buffere...
private void updateEgoNetwork(final Node user) { Node followedReplica, followingUser, lastPosterReplica; Node prevReplica, nextReplica; // loop through users following for (Relationship relationship : user.getRelationships( SocialGraphRelationshipType.REPLICA, Direction.INCOMING)) { // load each replica...
class class_name[name] begin[{] method[updateEgoNetwork, return_type[void], modifier[private], parameter[user]] begin[{] local_variable[type[Node], followedReplica] local_variable[type[Node], prevReplica] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expre...
Keyword[private] Keyword[void] identifier[updateEgoNetwork] operator[SEP] Keyword[final] identifier[Node] identifier[user] operator[SEP] { identifier[Node] identifier[followedReplica] , identifier[followingUser] , identifier[lastPosterReplica] operator[SEP] identifier[Node] identifier[prevReplica] , identifie...
public static boolean isDisplayable(Class<?> type) { return Enum.class.isAssignableFrom(type) || type == java.net.URL.class || type == java.io.File.class || java.math.BigInteger.class.isAssignableFrom(type) || java.math.BigDecimal.class.isAssignableFrom(type) || j...
class class_name[name] begin[{] method[isDisplayable, return_type[type[boolean]], modifier[public static], parameter[type]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[ClassReference(postfix_oper...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isDisplayable] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { Keyword[return] identifier[Enum] operator[SEP] Keyword[class] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[type] o...
protected Locator locator(final CouchbaseRequest request) { if (request instanceof BinaryRequest) { return binaryLocator; } else if (request instanceof ViewRequest) { return viewLocator; } else if (request instanceof QueryRequest) { return queryLocator; ...
class class_name[name] begin[{] method[locator, return_type[type[Locator]], modifier[protected], parameter[request]] begin[{] if[binary_operation[member[.request], instanceof, type[BinaryRequest]]] begin[{] return[member[.binaryLocator]] else begin[{] if[binary_o...
Keyword[protected] identifier[Locator] identifier[locator] operator[SEP] Keyword[final] identifier[CouchbaseRequest] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[request] Keyword[instanceof] identifier[BinaryRequest] operator[SEP] { Keyword[return] identifier[binaryLocator]...
public static int simulateSerialization(List<WayDataBlock> blocks) { int sum = 0; for (WayDataBlock wayDataBlock : blocks) { sum += mSimulateSerialization(wayDataBlock.getOuterWay()); if (wayDataBlock.getInnerWays() != null) { for (List<Integer> list : wayDataBloc...
class class_name[name] begin[{] method[simulateSerialization, return_type[type[int]], modifier[public static], parameter[blocks]] begin[{] local_variable[type[int], sum] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReferenc...
Keyword[public] Keyword[static] Keyword[int] identifier[simulateSerialization] operator[SEP] identifier[List] operator[<] identifier[WayDataBlock] operator[>] identifier[blocks] operator[SEP] { Keyword[int] identifier[sum] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[WayDataBlock] ide...
@com.fasterxml.jackson.annotation.JsonProperty("ResourceType") public void setResourceType(String resourceType) { this.resourceType = resourceType; }
class class_name[name] begin[{] method[setResourceType, return_type[void], modifier[public], parameter[resourceType]] begin[{] assign[THIS[member[None.resourceType]], member[.resourceType]] end[}] END[}]
annotation[@] identifier[com] operator[SEP] identifier[fasterxml] operator[SEP] identifier[jackson] operator[SEP] identifier[annotation] operator[SEP] identifier[JsonProperty] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[setResourceType] operator[SEP] identifier[String] identifie...
public synchronized Iterator receiveListenerIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "receiveListenerIterator"); final LinkedList<ReceiveListener>linkedList = new LinkedList<ReceiveListener>(); final Iterator iterator = table.values().iterator...
class class_name[name] begin[{] method[receiveListenerIterator, return_type[type[Iterator]], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr...
Keyword[public] Keyword[synchronized] identifier[Iterator] identifier[receiveListenerIterator] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryE...
public void assertValidControllable()throws SIMPControllableNotFoundException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "assertValidControllable"); if( _destinationHandler==null || _messageProcessor==null || _anycastInputHandler==null || ...
class class_name[name] begin[{] method[assertValidControllable, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[membe...
Keyword[public] Keyword[void] identifier[assertValidControllable] operator[SEP] operator[SEP] Keyword[throws] identifier[SIMPControllableNotFoundException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] ...
public GroovyResourceLoader createGroovyResourceLoader(final ResourceLoader resourceLoader) { checkNotNull(resourceLoader); return new GroovyResourceLoader() { @Override public URL loadGroovySource(final String name) throws MalformedURLException { return resourceLoader.loadResource(name...
class class_name[name] begin[{] method[createGroovyResourceLoader, return_type[type[GroovyResourceLoader]], modifier[public], parameter[resourceLoader]] begin[{] call[.checkNotNull, parameter[member[.resourceLoader]]] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations...
Keyword[public] identifier[GroovyResourceLoader] identifier[createGroovyResourceLoader] operator[SEP] Keyword[final] identifier[ResourceLoader] identifier[resourceLoader] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[resourceLoader] operator[SEP] operator[SEP] Keyword[return] Keyword[new] ide...
protected List<Receiver<String>> makeOwnerList(final Expression objectExpression) { final ClassNode receiver = getType(objectExpression); List<Receiver<String>> owners = new LinkedList<Receiver<String>>(); owners.add(Receiver.<String>make(receiver)); if (isClassClassNodeWrappingConcreteT...
class class_name[name] begin[{] method[makeOwnerList, return_type[type[List]], modifier[protected], parameter[objectExpression]] begin[{] local_variable[type[ClassNode], receiver] local_variable[type[List], owners] call[owners.add, parameter[call[.Receiver, parameter[member[.rec...
Keyword[protected] identifier[List] operator[<] identifier[Receiver] operator[<] identifier[String] operator[>] operator[>] identifier[makeOwnerList] operator[SEP] Keyword[final] identifier[Expression] identifier[objectExpression] operator[SEP] { Keyword[final] identifier[ClassNode] identifier[receiver] operator...
public static Link link(String href, String rel, String name, String prompt, String render) { return link(new URIImpl(href), rel, name, prompt, render); }
class class_name[name] begin[{] method[link, return_type[type[Link]], modifier[public static], parameter[href, rel, name, prompt, render]] begin[{] return[call[.link, parameter[ClassCreator(arguments=[MemberReference(member=href, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], bo...
Keyword[public] Keyword[static] identifier[Link] identifier[link] operator[SEP] identifier[String] identifier[href] , identifier[String] identifier[rel] , identifier[String] identifier[name] , identifier[String] identifier[prompt] , identifier[String] identifier[render] operator[SEP] { Keyword[return] identi...
protected CmsObject getCloneCms() throws CmsException { CmsObject cloneCms = OpenCms.initCmsObject(getCms()); cloneCms.getRequestContext().setRequestTime(CmsResource.DATE_RELEASED_EXPIRED_IGNORE); return cloneCms; }
class class_name[name] begin[{] method[getCloneCms, return_type[type[CmsObject]], modifier[protected], parameter[]] begin[{] local_variable[type[CmsObject], cloneCms] call[cloneCms.getRequestContext, parameter[]] return[member[.cloneCms]] end[}] END[}]
Keyword[protected] identifier[CmsObject] identifier[getCloneCms] operator[SEP] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[CmsObject] identifier[cloneCms] operator[=] identifier[OpenCms] operator[SEP] identifier[initCmsObject] operator[SEP] identifier[getCms] operator[SEP] operator[SEP] o...
public synchronized void setReconnecting(boolean b) { reconnecting = b; if (transaction != null) { ((ModbusTCPTransaction)transaction).setReconnecting(b); } }
class class_name[name] begin[{] method[setReconnecting, return_type[void], modifier[synchronized public], parameter[b]] begin[{] assign[member[.reconnecting], member[.b]] if[binary_operation[member[.transaction], !=, literal[null]]] begin[{] Cast(expressi...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setReconnecting] operator[SEP] Keyword[boolean] identifier[b] operator[SEP] { identifier[reconnecting] operator[=] identifier[b] operator[SEP] Keyword[if] operator[SEP] identifier[transaction] operator[!=] Other[null] operator[SEP] { opera...
private CommandLine createCommandForChildProcess() throws IOException { LOGGER.entering(); CommandLine cmdLine = CommandLine.parse("appium"); // add the program argument / dash options cmdLine.addArguments(getProgramArguments()); LOGGER.exiting(cmdLine.toString()); ret...
class class_name[name] begin[{] method[createCommandForChildProcess, return_type[type[CommandLine]], modifier[private], parameter[]] begin[{] call[LOGGER.entering, parameter[]] local_variable[type[CommandLine], cmdLine] call[cmdLine.addArguments, parameter[call[.getProgr...
Keyword[private] identifier[CommandLine] identifier[createCommandForChildProcess] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[LOGGER] operator[SEP] identifier[entering] operator[SEP] operator[SEP] operator[SEP] identifier[CommandLine] identifier[cmdLine] operator[=] identifie...
public Set<String> getArtifactIds( String groupId ) { File groupDir = new File( root, groupId.replace( '.', '/' ) ); if ( !groupDir.isDirectory() ) { return Collections.emptySet(); } Set<String> result = new HashSet<String>(); File[] artifactDirs = groupDi...
class class_name[name] begin[{] method[getArtifactIds, return_type[type[Set]], modifier[public], parameter[groupId]] begin[{] local_variable[type[File], groupDir] if[call[groupDir.isDirectory, parameter[]]] begin[{] return[call[Collections.emptySet, parameter[]]] els...
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getArtifactIds] operator[SEP] identifier[String] identifier[groupId] operator[SEP] { identifier[File] identifier[groupDir] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[root] , identifier[groupId] operator...
public static <T> Params<T> of( final String name, final ISeq<T> params ) { return new Params<>(name, params); }
class class_name[name] begin[{] method[of, return_type[type[Params]], modifier[public static], parameter[name, params]] begin[{] return[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=params, postfix_opera...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Params] operator[<] identifier[T] operator[>] identifier[of] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[ISeq] operator[<] identifier[T] operator[>] identifier[params] operator[SEP] { ...
public void processEvents(String msgid, String textMessage) { try { if (logger.isDebugEnabled()) logger.debug("executeFlow: " + textMessage); InternalEvent event = new InternalEvent(textMessage); // a. find the process instance (looking for memory only first, ...
class class_name[name] begin[{] method[processEvents, return_type[void], modifier[public], parameter[msgid, textMessage]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], t...
Keyword[public] Keyword[void] identifier[processEvents] operator[SEP] identifier[String] identifier[msgid] , identifier[String] identifier[textMessage] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] oper...
public Result decodeRow(int rowNumber, BitArray row, int[] startGuardRange, Map<DecodeHintType,?> hints) throws NotFoundException, ChecksumException, FormatException { ResultPointCallback resultPointCallback = hints == null ? null ...
class class_name[name] begin[{] method[decodeRow, return_type[type[Result]], modifier[public], parameter[rowNumber, row, startGuardRange, hints]] begin[{] local_variable[type[ResultPointCallback], resultPointCallback] if[binary_operation[member[.resultPointCallback], !=, literal[null]]]...
Keyword[public] identifier[Result] identifier[decodeRow] operator[SEP] Keyword[int] identifier[rowNumber] , identifier[BitArray] identifier[row] , Keyword[int] operator[SEP] operator[SEP] identifier[startGuardRange] , identifier[Map] operator[<] identifier[DecodeHintType] , operator[?] operator[>] identifier[hints]...
public static <O> Flux<O> zip(Iterable<? extends Publisher<?>> sources, int prefetch, final Function<? super Object[], ? extends O> combinator) { return onAssembly(new FluxZip<Object, O>(sources, combinator, Queues.get(prefetch), prefetch)); }
class class_name[name] begin[{] method[zip, return_type[type[Flux]], modifier[public static], parameter[sources, prefetch, combinator]] begin[{] return[call[.onAssembly, parameter[ClassCreator(arguments=[MemberReference(member=sources, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] Keyword[static] operator[<] identifier[O] operator[>] identifier[Flux] operator[<] identifier[O] operator[>] identifier[zip] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[Publisher] operator[<] operator[?] operator[>] operator[>] identifier[sources] , Keyword[in...
static PollStrategy tryToCreate(RestProxy restProxy, SwaggerMethodParser methodParser, HttpRequest originalHttpRequest, HttpResponse httpResponse, long delayInMilliseconds) { String urlHeader = getHeader(httpResponse); URL azureAsyncOperationUrl = null; if (urlHeader != null) { try {...
class class_name[name] begin[{] method[tryToCreate, return_type[type[PollStrategy]], modifier[static], parameter[restProxy, methodParser, originalHttpRequest, httpResponse, delayInMilliseconds]] begin[{] local_variable[type[String], urlHeader] local_variable[type[URL], azureAsyncOperationUrl] ...
Keyword[static] identifier[PollStrategy] identifier[tryToCreate] operator[SEP] identifier[RestProxy] identifier[restProxy] , identifier[SwaggerMethodParser] identifier[methodParser] , identifier[HttpRequest] identifier[originalHttpRequest] , identifier[HttpResponse] identifier[httpResponse] , Keyword[long] identifi...
public static void startup(final String _classDBType, final String _classDSFactory, final Map<String, String> _propConnection, final String _classTM, final String _classTSR, ...
class class_name[name] begin[{] method[startup, return_type[void], modifier[public static], parameter[_classDBType, _classDSFactory, _propConnection, _classTM, _classTSR, _eFapsProps]] begin[{] if[call[StartupDatabaseConnection.LOG.isInfoEnabled, parameter[]]] begin[{] c...
Keyword[public] Keyword[static] Keyword[void] identifier[startup] operator[SEP] Keyword[final] identifier[String] identifier[_classDBType] , Keyword[final] identifier[String] identifier[_classDSFactory] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[_propC...
private void drain() { assert scheduler.inEventLoop(); long now = clock.nanoTime(); lock.lock(); try { if (closed || queue.isEmpty()) { return; } int toDequeue = acquire(now, queue.size()); LOG.trace("[{}] Dequeuing {}/{} elements", logPrefix, toDequeue, queue.size()); ...
class class_name[name] begin[{] method[drain, return_type[void], modifier[private], parameter[]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=inEventLoop, postfix_operators=[], prefix_operators=[], qualifier=scheduler, selectors=[], type_arguments=None), label=None, value=No...
Keyword[private] Keyword[void] identifier[drain] operator[SEP] operator[SEP] { Keyword[assert] identifier[scheduler] operator[SEP] identifier[inEventLoop] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[now] operator[=] identifier[clock] operator[SEP] identifier[nanoTime] operator[SEP] operato...
public void marshall(MetricDimension metricDimension, ProtocolMarshaller protocolMarshaller) { if (metricDimension == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(metricDimension.getComparisonOpera...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[metricDimension, protocolMarshaller]] begin[{] if[binary_operation[member[.metricDimension], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[MetricDimension] identifier[metricDimension] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[metricDimension] operator[==] Other[null] operator[SEP] { Keywo...
public void addSiteAsynchronously(final String site) { EventQueue.invokeLater(new Runnable() { @Override public void run() { addSite(site); } }); }
class class_name[name] begin[{] method[addSiteAsynchronously, return_type[void], modifier[public], parameter[site]] begin[{] call[EventQueue.invokeLater, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression...
Keyword[public] Keyword[void] identifier[addSiteAsynchronously] operator[SEP] Keyword[final] identifier[String] identifier[site] operator[SEP] { identifier[EventQueue] operator[SEP] identifier[invokeLater] operator[SEP] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { annotation[@] iden...
private int determineHeartbeatInterval(Map properties) { // How often should we heartbeat? int heartbeatInterval = JFapChannelConstants.DEFAULT_HEARTBEAT_INTERVAL; try { heartbeatInterval = Integer.parseInt(RuntimeInfo.getProperty(JFapChannelConstants.RUNTIMEINFO_KEY_HEAR...
class class_name[name] begin[{] method[determineHeartbeatInterval, return_type[type[int]], modifier[private], parameter[properties]] begin[{] local_variable[type[int], heartbeatInterval] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=heartbeatIn...
Keyword[private] Keyword[int] identifier[determineHeartbeatInterval] operator[SEP] identifier[Map] identifier[properties] operator[SEP] { Keyword[int] identifier[heartbeatInterval] operator[=] identifier[JFapChannelConstants] operator[SEP] identifier[DEFAULT_HEARTBEAT_INTERVAL] operator[SEP] Keyword[try] { ...
public static String encode(String s) { final StringBuffer out = new StringBuffer(s.length()); final ByteArrayOutputStream buf = new ByteArrayOutputStream(32); final OutputStreamWriter writer = new OutputStreamWriter(buf); for (int i = 0; i < s.length(); i++) { int c = s.charAt(i); if (CHARACHTERS_DONT_NE...
class class_name[name] begin[{] method[encode, return_type[type[String]], modifier[public static], parameter[s]] begin[{] local_variable[type[StringBuffer], out] local_variable[type[ByteArrayOutputStream], buf] local_variable[type[OutputStreamWriter], writer] ForStatement(body=B...
Keyword[public] Keyword[static] identifier[String] identifier[encode] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[final] identifier[StringBuffer] identifier[out] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP]...
private BootOperations organizeBootOperations(List<ModelNode> bootList, final int lockPermit, MutableRootResourceRegistrationProvider parallelBootRootResourceRegistrationProvider) { final List<ParsedBootOp> initialOps = new ArrayList<ParsedBootOp>(); List<ParsedBootOp> postExtensionOps = null; ...
class class_name[name] begin[{] method[organizeBootOperations, return_type[type[BootOperations]], modifier[private], parameter[bootList, lockPermit, parallelBootRootResourceRegistrationProvider]] begin[{] local_variable[type[List], initialOps] local_variable[type[List], postExtensionOps] ...
Keyword[private] identifier[BootOperations] identifier[organizeBootOperations] operator[SEP] identifier[List] operator[<] identifier[ModelNode] operator[>] identifier[bootList] , Keyword[final] Keyword[int] identifier[lockPermit] , identifier[MutableRootResourceRegistrationProvider] identifier[parallelBootRootResourc...
@Override public void updateCache(Dictionary<String, Object> properties, Set<ConfigID> references, Set<String> newUniques) throws IOException { lock.lock(); try { removeReferences(); setProperties(properties); this.references = references; this.unique...
class class_name[name] begin[{] method[updateCache, return_type[void], modifier[public], parameter[properties, references, newUniques]] begin[{] call[lock.lock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=removeReferences, postfi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[updateCache] operator[SEP] identifier[Dictionary] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] , identifier[Set] operator[<] identifier[ConfigID] operator[>] identifier[references] , identifier[Set] ...
CommitLogSegment recycle() { try { sync(); } catch (FSWriteError e) { logger.error("I/O error flushing {} {}", this, e.getMessage()); throw e; } close(); return new CommitLogSegment(getPath()); }
class class_name[name] begin[{] method[recycle, return_type[type[CommitLogSegment]], modifier[default], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=sync, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_argument...
identifier[CommitLogSegment] identifier[recycle] operator[SEP] operator[SEP] { Keyword[try] { identifier[sync] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[FSWriteError] identifier[e] operator[SEP] { identifier[logger] operator[SEP] ident...
@SuppressWarnings("unchecked") // OK, because we serialized a type `T` public static <T extends Serializable> T roundtrip(final T msg) { return (T) SerializationUtils.deserialize(SerializationUtils.serialize(msg)); }
class class_name[name] begin[{] method[roundtrip, return_type[type[T]], modifier[public static], parameter[msg]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=msg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], mem...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Serializable] operator[>] identifier[T] identifier[roundtrip] operator[SEP] Keyword[final] identifier[T] identifier[msg] operator[SEP] { Key...
@SuppressWarnings("null") private boolean saveSettings( CmsEntity entity, CmsContainerElementBean containerElement, Map<String, CmsXmlContentProperty> settingsConfig, List<I_CmsFormatterBean> nestedFormatters) { boolean hasChangedSettings = false; Map<String, String>...
class class_name[name] begin[{] method[saveSettings, return_type[type[boolean]], modifier[private], parameter[entity, containerElement, settingsConfig, nestedFormatters]] begin[{] local_variable[type[boolean], hasChangedSettings] local_variable[type[Map], values] ForStatement(body=Block...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[boolean] identifier[saveSettings] operator[SEP] identifier[CmsEntity] identifier[entity] , identifier[CmsContainerElementBean] identifier[containerElement] , identifier[Map] operator[<] identifier[String] ,...
public static void setSlugHeader(HttpHeaders headers, String value) { if (value == null) { headers.remove("Slug"); } else { headers.set("Slug", Lists.newArrayList(Arrays.asList(SLUG_ESCAPER.escape(value)))); } }
class class_name[name] begin[{] method[setSlugHeader, return_type[void], modifier[public static], parameter[headers, value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] call[headers.remove, parameter[literal["Slug"]]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[setSlugHeader] operator[SEP] identifier[HttpHeaders] identifier[headers] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { identifier[headers] operator[SE...
public static boolean isGeneralArrayType(Class<?> clazz) throws NullPointerException { Assert.notNull(clazz, "clazz不能为null"); String name = clazz.getName(); return isGeneralArrayType(name); }
class class_name[name] begin[{] method[isGeneralArrayType, return_type[type[boolean]], modifier[public static], parameter[clazz]] begin[{] call[Assert.notNull, parameter[member[.clazz], literal["clazz不能为null"]]] local_variable[type[String], name] return[call[.isGeneralArrayType,...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isGeneralArrayType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] Keyword[throws] identifier[NullPointerException] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[claz...
public static String resolve(String uriInitial, String uriString) { try { return uriToString((new URI(uriInitial)).resolve(uriString)); } catch (URISyntaxException e) { try { return (new NetworkInterfaceURI(uriInitial)).resolve(uriString); } ...
class class_name[name] begin[{] method[resolve, return_type[type[String]], modifier[public static], parameter[uriInitial, uriString]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=uriInitial, postfix_operators=[], pref...
Keyword[public] Keyword[static] identifier[String] identifier[resolve] operator[SEP] identifier[String] identifier[uriInitial] , identifier[String] identifier[uriString] operator[SEP] { Keyword[try] { Keyword[return] identifier[uriToString] operator[SEP] operator[SEP] Keyword[new] identifier[URI] ope...
public static boolean isManagedProperty(final Node property) { return property.isURI() && isManagedPredicate.test(createProperty(property.getURI())); }
class class_name[name] begin[{] method[isManagedProperty, return_type[type[boolean]], modifier[public static], parameter[property]] begin[{] return[binary_operation[call[property.isURI, parameter[]], &&, call[isManagedPredicate.test, parameter[call[.createProperty, parameter[call[property.getURI, param...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isManagedProperty] operator[SEP] Keyword[final] identifier[Node] identifier[property] operator[SEP] { Keyword[return] identifier[property] operator[SEP] identifier[isURI] operator[SEP] operator[SEP] operator[&&] identifier[isManagedPredicate] operator[S...
public Collection getInfo(String collectionId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); parameters.put("collection_id", collectionId); Response response = transportAPI.get(transportAPI.getPath(), ...
class class_name[name] begin[{] method[getInfo, return_type[type[Collection]], modifier[public], parameter[collectionId]] begin[{] local_variable[type[Map], parameters] call[parameters.put, parameter[literal["method"], member[.METHOD_GET_INFO]]] call[parameters.put, para...
Keyword[public] identifier[Collection] identifier[getInfo] operator[SEP] identifier[String] identifier[collectionId] operator[SEP] Keyword[throws] identifier[FlickrException] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[parameters] operator[=] Keyword[new] identif...
public static VoltTable aggregateStats(VoltTable stats) throws IllegalArgumentException { stats.resetRowPosition(); if (stats.getRowCount() == 0) { return stats; } String role = null; Map<Byte, State> states = new TreeMap<>(); while (stats.advanceRow()) {...
class class_name[name] begin[{] method[aggregateStats, return_type[type[VoltTable]], modifier[public static], parameter[stats]] begin[{] call[stats.resetRowPosition, parameter[]] if[binary_operation[call[stats.getRowCount, parameter[]], ==, literal[0]]] begin[{] retu...
Keyword[public] Keyword[static] identifier[VoltTable] identifier[aggregateStats] operator[SEP] identifier[VoltTable] identifier[stats] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[stats] operator[SEP] identifier[resetRowPosition] operator[SEP] operator[SEP] operator[SEP] Keywor...
public ServiceCall<IdentifiableLanguages> listIdentifiableLanguages( ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions) { String[] pathSegments = { "v3/identifiable_languages" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); ...
class class_name[name] begin[{] method[listIdentifiableLanguages, return_type[type[ServiceCall]], modifier[public], parameter[listIdentifiableLanguagesOptions]] begin[{] local_variable[type[String], pathSegments] local_variable[type[RequestBuilder], builder] call[builder.query, ...
Keyword[public] identifier[ServiceCall] operator[<] identifier[IdentifiableLanguages] operator[>] identifier[listIdentifiableLanguages] operator[SEP] identifier[ListIdentifiableLanguagesOptions] identifier[listIdentifiableLanguagesOptions] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier...
public void process() throws InterruptedException { boolean alreadyInSync = Thread.currentThread() instanceof WebcamProcessor.ProcessorThread; if (alreadyInSync) { handle(); } else { if (doSync) { if (processor == null) { throw new RuntimeException("Driver should be synchronized, but processor is...
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[boolean], alreadyInSync] if[member[.alreadyInSync]] begin[{] call[.handle, parameter[]] else begin[{] if...
Keyword[public] Keyword[void] identifier[process] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[boolean] identifier[alreadyInSync] operator[=] identifier[Thread] operator[SEP] identifier[currentThread] operator[SEP] operator[SEP] Keyword[instanceof] identifier[WebcamProce...
public ValidatorBuilderByte<PARENT> range(byte min, byte max) { return range(new Range<>(Byte.valueOf(min), Byte.valueOf(max))); }
class class_name[name] begin[{] method[range, return_type[type[ValidatorBuilderByte]], modifier[public], parameter[min, max]] begin[{] return[call[.range, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, sel...
Keyword[public] identifier[ValidatorBuilderByte] operator[<] identifier[PARENT] operator[>] identifier[range] operator[SEP] Keyword[byte] identifier[min] , Keyword[byte] identifier[max] operator[SEP] { Keyword[return] identifier[range] operator[SEP] Keyword[new] identifier[Range] operator[<] operator[>] operato...
public base_response save_config() throws Exception { nsconfig resource = new nsconfig(); options option = new options(); option.set_action("save"); base_response result = resource.perform_operation(this, option); return result; }
class class_name[name] begin[{] method[save_config, return_type[type[base_response]], modifier[public], parameter[]] begin[{] local_variable[type[nsconfig], resource] local_variable[type[options], option] call[option.set_action, parameter[literal["save"]]] local_variable...
Keyword[public] identifier[base_response] identifier[save_config] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nsconfig] identifier[resource] operator[=] Keyword[new] identifier[nsconfig] operator[SEP] operator[SEP] operator[SEP] identifier[options] identifier[option] operator[=...
public void addCustomAlertActionLocKey(String actionLocKey) throws JSONException { Object value = actionLocKey != null ? actionLocKey : new JSONNull(); put("action-loc-key", value, getOrAddCustomAlert(), false); }
class class_name[name] begin[{] method[addCustomAlertActionLocKey, return_type[void], modifier[public], parameter[actionLocKey]] begin[{] local_variable[type[Object], value] call[.put, parameter[literal["action-loc-key"], member[.value], call[.getOrAddCustomAlert, parameter[]], literal[...
Keyword[public] Keyword[void] identifier[addCustomAlertActionLocKey] operator[SEP] identifier[String] identifier[actionLocKey] operator[SEP] Keyword[throws] identifier[JSONException] { identifier[Object] identifier[value] operator[=] identifier[actionLocKey] operator[!=] Other[null] operator[?] identifier[action...
public String[] getPagination(String text, int maxChars, String splitValue, String[] HTMLBalanceTags) { int count; int lastSplitCount; String tempHolder = " "; List<String> list = new ArrayList<String>(); boolean secondRunThrough = false; ...
class class_name[name] begin[{] method[getPagination, return_type[type[String]], modifier[public], parameter[text, maxChars, splitValue, HTMLBalanceTags]] begin[{] local_variable[type[int], count] local_variable[type[int], lastSplitCount] local_variable[type[String], tempHolder] ...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getPagination] operator[SEP] identifier[String] identifier[text] , Keyword[int] identifier[maxChars] , identifier[String] identifier[splitValue] , identifier[String] operator[SEP] operator[SEP] identifier[HTMLBalanceTags] operator[SEP] { ...
public void appendSkippedUnit(StringBuffer sb) { if (dr.skippedUnitMarker != null) { sb.append(dr.skippedUnitMarker); } }
class class_name[name] begin[{] method[appendSkippedUnit, return_type[void], modifier[public], parameter[sb]] begin[{] if[binary_operation[member[dr.skippedUnitMarker], !=, literal[null]]] begin[{] call[sb.append, parameter[member[dr.skippedUnitMarker]]] else beg...
Keyword[public] Keyword[void] identifier[appendSkippedUnit] operator[SEP] identifier[StringBuffer] identifier[sb] operator[SEP] { Keyword[if] operator[SEP] identifier[dr] operator[SEP] identifier[skippedUnitMarker] operator[!=] Other[null] operator[SEP] { identifier[sb] operator[SEP] identifier[append...
public void addIgnorePackage(String... packagesToIgnore) { if (packagesToIgnore != null && packagesToIgnore.length > 0) { final int previousLength = deferPackages.length; String[] newDeferPackages = new String[previousLength + packagesToIgnore.length]; System.arraycopy(deferP...
class class_name[name] begin[{] method[addIgnorePackage, return_type[void], modifier[public], parameter[packagesToIgnore]] begin[{] if[binary_operation[binary_operation[member[.packagesToIgnore], !=, literal[null]], &&, binary_operation[member[packagesToIgnore.length], >, literal[0]]]] begin[{]...
Keyword[public] Keyword[void] identifier[addIgnorePackage] operator[SEP] identifier[String] operator[...] identifier[packagesToIgnore] operator[SEP] { Keyword[if] operator[SEP] identifier[packagesToIgnore] operator[!=] Other[null] operator[&&] identifier[packagesToIgnore] operator[SEP] identifier[length] operato...
public static <S extends Storable> OrderedProperty<S> parse(StorableInfo<S> info, String str, Direction defaultDirection) throws IllegalArgumentException { if (info ==...
class class_name[name] begin[{] method[parse, return_type[type[OrderedProperty]], modifier[public static], parameter[info, str, defaultDirection]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.info], ==, literal[null]], ||, binary_operation[member[.str], ==, literal[nul...
Keyword[public] Keyword[static] operator[<] identifier[S] Keyword[extends] identifier[Storable] operator[>] identifier[OrderedProperty] operator[<] identifier[S] operator[>] identifier[parse] operator[SEP] identifier[StorableInfo] operator[<] identifier[S] operator[>] identifier[info] , identifier[String] identifier[s...
public FTMovie getMovieArtwork(String id) throws FanartTvException { URL url = ftapi.getImageUrl(BaseType.MOVIE, id); String page = requestWebPage(url); FTMovie movie = null; try { movie = mapper.readValue(page, FTMovie.class); } catch (IOException ex) { ...
class class_name[name] begin[{] method[getMovieArtwork, return_type[type[FTMovie]], modifier[public], parameter[id]] begin[{] local_variable[type[URL], url] local_variable[type[String], page] local_variable[type[FTMovie], movie] TryStatement(block=[StatementExpression(expression...
Keyword[public] identifier[FTMovie] identifier[getMovieArtwork] operator[SEP] identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[FanartTvException] { identifier[URL] identifier[url] operator[=] identifier[ftapi] operator[SEP] identifier[getImageUrl] operator[SEP] identifier[BaseType] oper...
public void addChild(final RuleConditionElement child) { if ( (this.isNot() || this.isExists()) && (this.children.size() > 0) ) { throw new RuntimeException( this.type.toString() + " can have only a single child element. Either a single Pattern or another CE." ); } this.children.add(...
class class_name[name] begin[{] method[addChild, return_type[void], modifier[public], parameter[child]] begin[{] if[binary_operation[binary_operation[THIS[call[None.isNot, parameter[]]], ||, THIS[call[None.isExists, parameter[]]]], &&, binary_operation[THIS[member[None.children]call[None.size, ...
Keyword[public] Keyword[void] identifier[addChild] operator[SEP] Keyword[final] identifier[RuleConditionElement] identifier[child] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[isNot] operator[SEP] operator[SEP] operator[||] Keyword[this] operator[SEP] identifier[...
public void setTags(java.util.Collection<ConfigurationTag> tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList<ConfigurationTag>(tags); }
class class_name[name] begin[{] method[setTags, return_type[void], modifier[public], parameter[tags]] begin[{] if[binary_operation[member[.tags], ==, literal[null]]] begin[{] assign[THIS[member[None.tags]], literal[null]] return[None] else begin[{] No...
Keyword[public] Keyword[void] identifier[setTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ConfigurationTag] operator[>] identifier[tags] operator[SEP] { Keyword[if] operator[SEP] identifier[tags] operator[==] Other[null] operator[S...
public Curve makeCurve() { Curve c = new Curve(curves.size()); curves.add(c); return c; }
class class_name[name] begin[{] method[makeCurve, return_type[type[Curve]], modifier[public], parameter[]] begin[{] local_variable[type[Curve], c] call[curves.add, parameter[member[.c]]] return[member[.c]] end[}] END[}]
Keyword[public] identifier[Curve] identifier[makeCurve] operator[SEP] operator[SEP] { identifier[Curve] identifier[c] operator[=] Keyword[new] identifier[Curve] operator[SEP] identifier[curves] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[curves] operator[SEP]...
public void writeValue(final int length, final int value) throws EncodingException { if (length > 31) { throw ErrorFactory.createEncodingException( ErrorKeys.DIFFTOOL_ENCODING_VALUE_OUT_OF_RANGE, "more than maximum length: " + value); } for (int i = length - 1; i >= 0; i--) { writeBit((value >...
class class_name[name] begin[{] method[writeValue, return_type[void], modifier[public], parameter[length, value]] begin[{] if[binary_operation[member[.length], >, literal[31]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=DIFFTOOL_ENCODING_VA...
Keyword[public] Keyword[void] identifier[writeValue] operator[SEP] Keyword[final] Keyword[int] identifier[length] , Keyword[final] Keyword[int] identifier[value] operator[SEP] Keyword[throws] identifier[EncodingException] { Keyword[if] operator[SEP] identifier[length] operator[>] Other[31] operator[SEP] { ...
protected static final void write(StringBuilder builder, Tree node, Tree zeroIndexes) { int startIndex = zeroIndexes == null ? 1 : Integer.MIN_VALUE; for (Tree child : node) { if (child.isStructure()) { write(builder, child, zeroIndexes); } else { if (startIndex == Integer.MIN_VALUE) { sta...
class class_name[name] begin[{] method[write, return_type[void], modifier[final static protected], parameter[builder, node, zeroIndexes]] begin[{] local_variable[type[int], startIndex] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], ...
Keyword[protected] Keyword[static] Keyword[final] Keyword[void] identifier[write] operator[SEP] identifier[StringBuilder] identifier[builder] , identifier[Tree] identifier[node] , identifier[Tree] identifier[zeroIndexes] operator[SEP] { Keyword[int] identifier[startIndex] operator[=] identifier[zeroIndexes] op...
public byte[] bindResp(int commandId, int sequenceNumber, String systemId, OptionalParameter... optionalParameters) throws PDUStringException { StringValidator.validateString(systemId, StringParameter.SYSTEM_ID); PDUByteBuffer buf = new PDUByteBuffer(commandId, 0, sequenceNumber); bu...
class class_name[name] begin[{] method[bindResp, return_type[type[byte]], modifier[public], parameter[commandId, sequenceNumber, systemId, optionalParameters]] begin[{] call[StringValidator.validateString, parameter[member[.systemId], member[StringParameter.SYSTEM_ID]]] local_variable[t...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[bindResp] operator[SEP] Keyword[int] identifier[commandId] , Keyword[int] identifier[sequenceNumber] , identifier[String] identifier[systemId] , identifier[OptionalParameter] operator[...] identifier[optionalParameters] operator[SEP] Keyword[throws...
public static MotifRecord series2EMMAMotifs(double[] series, int motifSize, double range, int paaSize, int alphabetSize, double znormThreshold) throws Exception { MotifRecord res = new MotifRecord(-1, new ArrayList<Integer>()); boolean finished = false; HashMap<String, ArrayList<Integer>> buckets = ...
class class_name[name] begin[{] method[series2EMMAMotifs, return_type[type[MotifRecord]], modifier[public static], parameter[series, motifSize, range, paaSize, alphabetSize, znormThreshold]] begin[{] local_variable[type[MotifRecord], res] local_variable[type[boolean], finished] local_va...
Keyword[public] Keyword[static] identifier[MotifRecord] identifier[series2EMMAMotifs] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[series] , Keyword[int] identifier[motifSize] , Keyword[double] identifier[range] , Keyword[int] identifier[paaSize] , Keyword[int] identifier[alphabetSize] , Ke...
public Conversation createConversation(Member author, String content) { Conversation conversation = getInstance().create().conversation(author, content); Iterator<Expression> iterator = conversation.getContainedExpressions().iterator(); iterator.next().getMentions().add(this); conversati...
class class_name[name] begin[{] method[createConversation, return_type[type[Conversation]], modifier[public], parameter[author, content]] begin[{] local_variable[type[Conversation], conversation] local_variable[type[Iterator], iterator] call[iterator.next, parameter[]] ...
Keyword[public] identifier[Conversation] identifier[createConversation] operator[SEP] identifier[Member] identifier[author] , identifier[String] identifier[content] operator[SEP] { identifier[Conversation] identifier[conversation] operator[=] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] ide...
public final void updateFile(final String sourceFile, final String destFile, final int currentFile, final int fileSize) { this.currentFile = currentFile; if ((panel != null) && (fileSize >= 10000)) { panel.updateFile(sourceFile, destFile, currentFile, fileSize); } ...
class class_name[name] begin[{] method[updateFile, return_type[void], modifier[final public], parameter[sourceFile, destFile, currentFile, fileSize]] begin[{] assign[THIS[member[None.currentFile]], member[.currentFile]] if[binary_operation[binary_operation[member[.panel], !=, li...
Keyword[public] Keyword[final] Keyword[void] identifier[updateFile] operator[SEP] Keyword[final] identifier[String] identifier[sourceFile] , Keyword[final] identifier[String] identifier[destFile] , Keyword[final] Keyword[int] identifier[currentFile] , Keyword[final] Keyword[int] identifier[fileSize] operator[SEP] {...
private <Message extends PMessage<Message, Field>, Field extends PField> Message parseMessage(ThriftTokenizer tokenizer, PMessageDescriptor<Message, Field> type) throws IOException { PMessageBuilder<Message, Field> builder = type.builder(); if (tokenizer.peek("checking for ...
class class_name[name] begin[{] method[parseMessage, return_type[type[Message]], modifier[private], parameter[tokenizer, type]] begin[{] local_variable[type[PMessageBuilder], builder] if[call[tokenizer.peek, parameter[literal["checking for empty"]]]] begin[{] cal...
Keyword[private] operator[<] identifier[Message] Keyword[extends] identifier[PMessage] operator[<] identifier[Message] , identifier[Field] operator[>] , identifier[Field] Keyword[extends] identifier[PField] operator[>] identifier[Message] identifier[parseMessage] operator[SEP] identifier[ThriftTokenizer] identifier[t...
private int ssPartition(int PA, int first, int last, int depth) { int a, b;// SA pointer int t; for (a = first - 1, b = last; ; ) { for (; (++a < b) && ((SA[PA + SA[a]] + depth) >= (SA[PA + SA[a] + 1] + 1)); ) { SA[a] = ~SA[a]; } for (; (a < --...
class class_name[name] begin[{] method[ssPartition, return_type[type[int]], modifier[private], parameter[PA, first, last, depth]] begin[{] local_variable[type[int], a] local_variable[type[int], t] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(...
Keyword[private] Keyword[int] identifier[ssPartition] operator[SEP] Keyword[int] identifier[PA] , Keyword[int] identifier[first] , Keyword[int] identifier[last] , Keyword[int] identifier[depth] operator[SEP] { Keyword[int] identifier[a] , identifier[b] operator[SEP] Keyword[int] identifier[t] operator[SEP] K...
@Deprecated public ChainWriter printTimeJS(long date, Sequence sequence, Appendable scriptOut) throws IOException { return writeTimeJavaScript(date==-1 ? null : new Date(date), sequence, scriptOut); }
class class_name[name] begin[{] method[printTimeJS, return_type[type[ChainWriter]], modifier[public], parameter[date, sequence, scriptOut]] begin[{] return[call[.writeTimeJavaScript, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=date, postfix_operators=[], prefix...
annotation[@] identifier[Deprecated] Keyword[public] identifier[ChainWriter] identifier[printTimeJS] operator[SEP] Keyword[long] identifier[date] , identifier[Sequence] identifier[sequence] , identifier[Appendable] identifier[scriptOut] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] id...
public static ping[] get_filtered(nitro_service service, String filter) throws Exception { ping obj = new ping(); options option = new options(); option.set_filter(filter); ping[] response = (ping[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[ping]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[ping], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] local_var...
Keyword[public] Keyword[static] identifier[ping] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ping] identifier[obj] operator[=] Keyword[new...
private void parseLdapAuthorization_1_5(final XMLExtendedStreamReader reader, final ModelNode realmAddress, final List<ModelNode> list) throws XMLStreamException { ModelNode addr = realmAddress.clone().add(AUTHORIZATION, LDAP); ModelNode ldapAuthorization = Util.getEmptyOperation(ADD, addr);...
class class_name[name] begin[{] method[parseLdapAuthorization_1_5, return_type[void], modifier[private], parameter[reader, realmAddress, list]] begin[{] local_variable[type[ModelNode], addr] local_variable[type[ModelNode], ldapAuthorization] call[list.add, parameter[member[.ldap...
Keyword[private] Keyword[void] identifier[parseLdapAuthorization_1_5] operator[SEP] Keyword[final] identifier[XMLExtendedStreamReader] identifier[reader] , Keyword[final] identifier[ModelNode] identifier[realmAddress] , Keyword[final] identifier[List] operator[<] identifier[ModelNode] operator[>] identifier[list] ope...
@Override public Map<String, String> mapToColumns(Tuple tuple) { Fields fields = tuple.getFields(); Map<String, String> columns = new HashMap<String, String>(); for (int i = 0; i < fields.size(); i++) { String name = fields.get(i); Object value = tuple.getValueByField...
class class_name[name] begin[{] method[mapToColumns, return_type[type[Map]], modifier[public], parameter[tuple]] begin[{] local_variable[type[Fields], fields] local_variable[type[Map], columns] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations...
annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[mapToColumns] operator[SEP] identifier[Tuple] identifier[tuple] operator[SEP] { identifier[Fields] identifier[fields] operator[=] identifier[tuple] operator[SEP] identifi...
private boolean addSpecToList(List<TraceElement> updatedSpecList, final String specString, final String clazz, final String level, final String enableString) { TraceSpecificationException tex = null; boolean enable = true; final boolean enableSetting; final String fullString = clazz + ...
class class_name[name] begin[{] method[addSpecToList, return_type[type[boolean]], modifier[private], parameter[updatedSpecList, specString, clazz, level, enableString]] begin[{] local_variable[type[TraceSpecificationException], tex] local_variable[type[boolean], enable] local_variable[t...
Keyword[private] Keyword[boolean] identifier[addSpecToList] operator[SEP] identifier[List] operator[<] identifier[TraceElement] operator[>] identifier[updatedSpecList] , Keyword[final] identifier[String] identifier[specString] , Keyword[final] identifier[String] identifier[clazz] , Keyword[final] identifier[String] ...
public void showPasswordResetDialog() { String caption = CmsVaadinUtils.getMessageText(Messages.GUI_PWCHANGE_FORGOT_PASSWORD_0); A_CmsUI r = A_CmsUI.get(); r.setContent(new Label()); Window window = CmsBasicDialog.prepareWindow(DialogWidth.narrow); CmsBasicDialog dialog = new Cm...
class class_name[name] begin[{] method[showPasswordResetDialog, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[String], caption] local_variable[type[A_CmsUI], r] call[r.setContent, parameter[ClassCreator(arguments=[], body=None, constructor_type_a...
Keyword[public] Keyword[void] identifier[showPasswordResetDialog] operator[SEP] operator[SEP] { identifier[String] identifier[caption] operator[=] identifier[CmsVaadinUtils] operator[SEP] identifier[getMessageText] operator[SEP] identifier[Messages] operator[SEP] identifier[GUI_PWCHANGE_FORGOT_PASSWORD_0] operat...
@Override public StopTransformJobResult stopTransformJob(StopTransformJobRequest request) { request = beforeClientExecution(request); return executeStopTransformJob(request); }
class class_name[name] begin[{] method[stopTransformJob, return_type[type[StopTransformJobResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeStopTransformJob, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[StopTransformJobResult] identifier[stopTransformJob] operator[SEP] identifier[StopTransformJobRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
private Expression createOfType(Expression target, String functionName, @NotNull cqlParser.FunctionContext ctx) { AliasedQuerySource source = enterQueryContext(target); try { checkArgumentCount(ctx, functionName, 1); Expression typeArgument = (Expression)visitor.visit(ctx.paramLi...
class class_name[name] begin[{] method[createOfType, return_type[type[Expression]], modifier[private], parameter[target, functionName, ctx]] begin[{] local_variable[type[AliasedQuerySource], source] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[private] identifier[Expression] identifier[createOfType] operator[SEP] identifier[Expression] identifier[target] , identifier[String] identifier[functionName] , annotation[@] identifier[NotNull] identifier[cqlParser] operator[SEP] identifier[FunctionContext] identifier[ctx] operator[SEP] { identifier[A...
public void generateTreeFile() throws IOException { Content body = getTreeHeader(); Content headContent = getResource("doclet.Hierarchy_For_All_Packages"); Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, HtmlStyle.title, headContent); Content div = ...
class class_name[name] begin[{] method[generateTreeFile, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Content], body] local_variable[type[Content], headContent] local_variable[type[Content], heading] local_variable[type[Content], div] ...
Keyword[public] Keyword[void] identifier[generateTreeFile] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Content] identifier[body] operator[=] identifier[getTreeHeader] operator[SEP] operator[SEP] operator[SEP] identifier[Content] identifier[headContent] operator[=] identifier[...
@Override public List<Values> mapToValues(String rowKey, Map<String, String> columns, Tuple input) { List<Values> values = new ArrayList<Values>(); String delimVal = columns.get(this.columnKeyField); if (delimVal != null) { String[] vals = delimVal.split(this.delimiter); ...
class class_name[name] begin[{] method[mapToValues, return_type[type[List]], modifier[public], parameter[rowKey, columns, input]] begin[{] local_variable[type[List], values] local_variable[type[String], delimVal] if[binary_operation[member[.delimVal], !=, literal[null]]] begin[{...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Values] operator[>] identifier[mapToValues] operator[SEP] identifier[String] identifier[rowKey] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[columns] , identifier[Tuple] identifi...
public synchronized void resume() { if (!paused) { Util.w(TAG, "require resume this queue(remain " + taskList.size() + "), but it is" + " still running"); return; } paused = false; if (!taskList.isEmpty() && !looping) { looping = t...
class class_name[name] begin[{] method[resume, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[member[.paused]] begin[{] call[Util.w, parameter[member[.TAG], binary_operation[binary_operation[binary_operation[literal["require resume this queue(...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[resume] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[paused] operator[SEP] { identifier[Util] operator[SEP] identifier[w] operator[SEP] identifier[TAG] , literal[String] operator[+] identifier[taskList] o...
private void handleUpdate(final NetworkContext context) { log.debug(String.format("%s - Network configuration updated in cluster: %s", NetworkManager.this, cluster.address())); log.debug(String.format("%s - Scheduling network update task", NetworkManager.this)); tasks.runTask(new Handler<Task>() { @Ov...
class class_name[name] begin[{] method[handleUpdate, return_type[void], modifier[private], parameter[context]] begin[{] call[log.debug, parameter[call[String.format, parameter[literal["%s - Network configuration updated in cluster: %s"], THIS[], call[cluster.address, parameter[]]]]]] ...
Keyword[private] Keyword[void] identifier[handleUpdate] operator[SEP] Keyword[final] identifier[NetworkContext] identifier[context] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[Network...
public static rewritepolicy_csvserver_binding[] get(nitro_service service, String name) throws Exception{ rewritepolicy_csvserver_binding obj = new rewritepolicy_csvserver_binding(); obj.set_name(name); rewritepolicy_csvserver_binding response[] = (rewritepolicy_csvserver_binding[]) obj.get_resources(service); ...
class class_name[name] begin[{] method[get, return_type[type[rewritepolicy_csvserver_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[rewritepolicy_csvserver_binding], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type...
Keyword[public] Keyword[static] identifier[rewritepolicy_csvserver_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[rewritepolicy_csvserver_bindi...
@Override protected String dbgId() { HttpContainer httpSystem = http(); String serverId = ""; if (httpSystem != null) { serverId = httpSystem.getServerDisplayName(); } long connId = connectionId(); if ("".equals(serverId)) return "Http[" + connId + "] "; else ...
class class_name[name] begin[{] method[dbgId, return_type[type[String]], modifier[protected], parameter[]] begin[{] local_variable[type[HttpContainer], httpSystem] local_variable[type[String], serverId] if[binary_operation[member[.httpSystem], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[dbgId] operator[SEP] operator[SEP] { identifier[HttpContainer] identifier[httpSystem] operator[=] identifier[http] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[serverId] operator[=] literal[String] oper...
private <T extends Model> T setRaw(String attributeName, Object value) { if (manageTime && attributeName.equalsIgnoreCase("created_at")) { throw new IllegalArgumentException("cannot set 'created_at'"); } metaModelLocal.checkAttribute(attributeName); if (willAttributeModifyMo...
class class_name[name] begin[{] method[setRaw, return_type[type[T]], modifier[private], parameter[attributeName, value]] begin[{] if[binary_operation[member[.manageTime], &&, call[attributeName.equalsIgnoreCase, parameter[literal["created_at"]]]]] begin[{] ThrowStatement(expression=...
Keyword[private] operator[<] identifier[T] Keyword[extends] identifier[Model] operator[>] identifier[T] identifier[setRaw] operator[SEP] identifier[String] identifier[attributeName] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[manageTime] operator[&&] identifier[at...
public void trace( Marker marker, String msg ) { if( m_delegate.isTraceEnabled() ) { setMDCMarker( marker ); m_delegate.trace( msg, null ); resetMDCMarker(); } }
class class_name[name] begin[{] method[trace, return_type[void], modifier[public], parameter[marker, msg]] begin[{] if[call[m_delegate.isTraceEnabled, parameter[]]] begin[{] call[.setMDCMarker, parameter[member[.marker]]] call[m_delegate.trace, pa...
Keyword[public] Keyword[void] identifier[trace] operator[SEP] identifier[Marker] identifier[marker] , identifier[String] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] identifier[m_delegate] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[set...
CharacterHit hitTextLine(CaretOffsetX x, int line) { return text.hitLine(x.value, line); }
class class_name[name] begin[{] method[hitTextLine, return_type[type[CharacterHit]], modifier[default], parameter[x, line]] begin[{] return[call[text.hitLine, parameter[member[x.value], member[.line]]]] end[}] END[}]
identifier[CharacterHit] identifier[hitTextLine] operator[SEP] identifier[CaretOffsetX] identifier[x] , Keyword[int] identifier[line] operator[SEP] { Keyword[return] identifier[text] operator[SEP] identifier[hitLine] operator[SEP] identifier[x] operator[SEP] identifier[value] , identifier[line] operator[SEP] o...
public static <K, V> MapBinder<K, V> newMapBinder( Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType) { return new MapBinder<K, V>( newMapRealBinder(binder.skipSources(MapBinder.class), keyType, valueType)); }
class class_name[name] begin[{] method[newMapBinder, return_type[type[MapBinder]], modifier[public static], parameter[binder, keyType, valueType]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[MapBinder] operator[<] identifier[K] , identifier[V] operator[>] identifier[newMapBinder] operator[SEP] identifier[Binder] identifier[binder] , identifier[TypeLiteral] operator[<] identifier[K] operator[>] identifier[key...
String getRandomAscii() { int count = 0; char[] randomAscii = new char[RANDOM_ASCII_BYTE_COUNT]; final Random random = SECURE_RANDOM.get(); while (count < RANDOM_ASCII_BYTE_COUNT) { int r = random.nextInt(128); char c = (char) r; // RFC 5802 § 5.1 spec...
class class_name[name] begin[{] method[getRandomAscii, return_type[type[String]], modifier[default], parameter[]] begin[{] local_variable[type[int], count] local_variable[type[char], randomAscii] local_variable[type[Random], random] while[binary_operation[member[.count],...
identifier[String] identifier[getRandomAscii] operator[SEP] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[randomAscii] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[RANDOM_ASCII_BYTE_COUNT] operator[SEP] op...
public static boolean isAuthenticationEnabled(AlluxioConfiguration conf) { return !conf.getEnum(PropertyKey.SECURITY_AUTHENTICATION_TYPE, AuthType.class) .equals(AuthType.NOSASL); }
class class_name[name] begin[{] method[isAuthenticationEnabled, return_type[type[boolean]], modifier[public static], parameter[conf]] begin[{] return[call[conf.getEnum, parameter[member[PropertyKey.SECURITY_AUTHENTICATION_TYPE], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isAuthenticationEnabled] operator[SEP] identifier[AlluxioConfiguration] identifier[conf] operator[SEP] { Keyword[return] operator[!] identifier[conf] operator[SEP] identifier[getEnum] operator[SEP] identifier[PropertyKey] operator[SEP] identifier[SECURI...
public void renumberUniqueIDs() { int uid = firstUniqueID(); for (T entity : this) { entity.setUniqueID(Integer.valueOf(uid++)); } }
class class_name[name] begin[{] method[renumberUniqueIDs, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], uid] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Mem...
Keyword[public] Keyword[void] identifier[renumberUniqueIDs] operator[SEP] operator[SEP] { Keyword[int] identifier[uid] operator[=] identifier[firstUniqueID] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[T] identifier[entity] operator[:] Keyword[this] operator[SEP] { ...
@NotNull public static String removeEscapedChars(@NotNull final String string, final char[] toRemove) { String toReturn = string; for (char character : toRemove) { toReturn = removeEscapedChar(toReturn, character); } return toReturn; }
class class_name[name] begin[{] method[removeEscapedChars, return_type[type[String]], modifier[public static], parameter[string, toRemove]] begin[{] local_variable[type[String], toReturn] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressi...
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] identifier[String] identifier[removeEscapedChars] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[string] , Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[toRemove] operator[SEP] { ...
public ReplicationGroup withNodeGroups(NodeGroup... nodeGroups) { if (this.nodeGroups == null) { setNodeGroups(new com.amazonaws.internal.SdkInternalList<NodeGroup>(nodeGroups.length)); } for (NodeGroup ele : nodeGroups) { this.nodeGroups.add(ele); } retur...
class class_name[name] begin[{] method[withNodeGroups, return_type[type[ReplicationGroup]], modifier[public], parameter[nodeGroups]] begin[{] if[binary_operation[THIS[member[None.nodeGroups]], ==, literal[null]]] begin[{] call[.setNodeGroups, parameter[ClassCreator(argum...
Keyword[public] identifier[ReplicationGroup] identifier[withNodeGroups] operator[SEP] identifier[NodeGroup] operator[...] identifier[nodeGroups] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[nodeGroups] operator[==] Other[null] operator[SEP] { identifier[setNodeGroup...
private static String coerceToEpoch(String s) { Long epoch = parseEpochSecond(s); if (epoch != null) { return String.valueOf(epoch); } SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); try { return String.valueOf(format.parse(s).getTime()); } catch (ParseException ex) { re...
class class_name[name] begin[{] method[coerceToEpoch, return_type[type[String]], modifier[private static], parameter[s]] begin[{] local_variable[type[Long], epoch] if[binary_operation[member[.epoch], !=, literal[null]]] begin[{] return[call[String.valueOf, parameter[member[....
Keyword[private] Keyword[static] identifier[String] identifier[coerceToEpoch] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[Long] identifier[epoch] operator[=] identifier[parseEpochSecond] operator[SEP] identifier[s] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[epo...
public EClass getIfcBuilding() { if (ifcBuildingEClass == null) { ifcBuildingEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(54); } return ifcBuildingEClass; }
class class_name[name] begin[{] method[getIfcBuilding, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcBuildingEClass], ==, literal[null]]] begin[{] assign[member[.ifcBuildingEClass], Cast(expression=MethodInvocation(argu...
Keyword[public] identifier[EClass] identifier[getIfcBuilding] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcBuildingEClass] operator[==] Other[null] operator[SEP] { identifier[ifcBuildingEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] ope...
private boolean mkdirs(FTPClient client, Path file, FsPermission permission) throws IOException { boolean created = true; Path workDir = new Path(client.printWorkingDirectory()); Path absolute = makeAbsolute(workDir, file); String pathName = absolute.getName(); if (!exists(client, absolute)) {...
class class_name[name] begin[{] method[mkdirs, return_type[type[boolean]], modifier[private], parameter[client, file, permission]] begin[{] local_variable[type[boolean], created] local_variable[type[Path], workDir] local_variable[type[Path], absolute] local_variable[type[String]...
Keyword[private] Keyword[boolean] identifier[mkdirs] operator[SEP] identifier[FTPClient] identifier[client] , identifier[Path] identifier[file] , identifier[FsPermission] identifier[permission] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[boolean] identifier[created] operator[=] literal[bool...