code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public OrientEdgeType createEdgeType(final String iClassName, final OClass iSuperClass, final int clusters) { makeActive(); OrientEdgeType.checkType(iSuperClass); return executeOutsideTx(new OCallable<OrientEdgeType, OrientBaseGraph>() { @Override public OrientEdgeType call(final OrientBaseGrap...
class class_name[name] begin[{] method[createEdgeType, return_type[type[OrientEdgeType]], modifier[public], parameter[iClassName, iSuperClass, clusters]] begin[{] call[.makeActive, parameter[]] call[OrientEdgeType.checkType, parameter[member[.iSuperClass]]] return[call[....
Keyword[public] identifier[OrientEdgeType] identifier[createEdgeType] operator[SEP] Keyword[final] identifier[String] identifier[iClassName] , Keyword[final] identifier[OClass] identifier[iSuperClass] , Keyword[final] Keyword[int] identifier[clusters] operator[SEP] { identifier[makeActive] operator[SEP] operat...
public double getDistance(Coordinate coordinate) { double distance = Double.MAX_VALUE; if (!isEmpty()) { for (Polygon polygon : polygons) { double d = polygon.getDistance(coordinate); if (d < distance) { distance = d; } } } return distance; }
class class_name[name] begin[{] method[getDistance, return_type[type[double]], modifier[public], parameter[coordinate]] begin[{] local_variable[type[double], distance] if[call[.isEmpty, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVari...
Keyword[public] Keyword[double] identifier[getDistance] operator[SEP] identifier[Coordinate] identifier[coordinate] operator[SEP] { Keyword[double] identifier[distance] operator[=] identifier[Double] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[isEmpty] opera...
public MetricName tagged(String... pairs) { if (pairs == null) { return this; } if (pairs.length % 2 != 0) { throw new IllegalArgumentException("Argument count must be even"); } final Map<String, String> add = new HashMap<>(); for (int i = 0; i ...
class class_name[name] begin[{] method[tagged, return_type[type[MetricName]], modifier[public], parameter[pairs]] begin[{] if[binary_operation[member[.pairs], ==, literal[null]]] begin[{] return[THIS[]] else begin[{] None end[}] if[binary_operation[bi...
Keyword[public] identifier[MetricName] identifier[tagged] operator[SEP] identifier[String] operator[...] identifier[pairs] operator[SEP] { Keyword[if] operator[SEP] identifier[pairs] operator[==] Other[null] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } Keyword[if] operat...
public static <T extends MethodDescription> ElementMatcher.Junction<T> takesGenericArgument(int index, Type type) { return takesGenericArgument(index, TypeDefinition.Sort.describe(type)); }
class class_name[name] begin[{] method[takesGenericArgument, return_type[type[ElementMatcher]], modifier[public static], parameter[index, type]] begin[{] return[call[.takesGenericArgument, parameter[member[.index], call[TypeDefinition.Sort.describe, parameter[member[.type]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[MethodDescription] operator[>] identifier[ElementMatcher] operator[SEP] identifier[Junction] operator[<] identifier[T] operator[>] identifier[takesGenericArgument] operator[SEP] Keyword[int] identifier[index] , identifier[Type] ident...
public static final String roll(String isoString, int field, boolean up) throws ParseException { return roll(isoString, DATETIME_PATTERN, field, up); }
class class_name[name] begin[{] method[roll, return_type[type[String]], modifier[final public static], parameter[isoString, field, up]] begin[{] return[call[.roll, parameter[member[.isoString], member[.DATETIME_PATTERN], member[.field], member[.up]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[roll] operator[SEP] identifier[String] identifier[isoString] , Keyword[int] identifier[field] , Keyword[boolean] identifier[up] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[return] identifier[roll] operator[SEP] ...
protected ImageDescriptor imageDescriptor(SarlCapacity element) { final JvmDeclaredType jvmElement = this.jvmModelAssociations.getInferredType(element); return this.images.forCapacity( element.getVisibility(), this.adornments.get(jvmElement)); }
class class_name[name] begin[{] method[imageDescriptor, return_type[type[ImageDescriptor]], modifier[protected], parameter[element]] begin[{] local_variable[type[JvmDeclaredType], jvmElement] return[THIS[member[None.images]call[None.forCapacity, parameter[call[element.getVisibility, parameter[]...
Keyword[protected] identifier[ImageDescriptor] identifier[imageDescriptor] operator[SEP] identifier[SarlCapacity] identifier[element] operator[SEP] { Keyword[final] identifier[JvmDeclaredType] identifier[jvmElement] operator[=] Keyword[this] operator[SEP] identifier[jvmModelAssociations] operator[SEP] identifier...
public final ProtocolDataUnit create (final boolean immediateFlag, final boolean finalFlag, final OperationCode operationCode, final String headerDigest, final String dataDigest) { final ProtocolDataUnit protocolDataUnit = new ProtocolDataUnit(digestFactory.create(headerDigest), digestFactory.create(dataDigest...
class class_name[name] begin[{] method[create, return_type[type[ProtocolDataUnit]], modifier[final public], parameter[immediateFlag, finalFlag, operationCode, headerDigest, dataDigest]] begin[{] local_variable[type[ProtocolDataUnit], protocolDataUnit] call[protocolDataUnit.getBasicHeade...
Keyword[public] Keyword[final] identifier[ProtocolDataUnit] identifier[create] operator[SEP] Keyword[final] Keyword[boolean] identifier[immediateFlag] , Keyword[final] Keyword[boolean] identifier[finalFlag] , Keyword[final] identifier[OperationCode] identifier[operationCode] , Keyword[final] identifier[String] ident...
void sendDeltaDoWorkRejected() { doWorkRejected.incrementAndGet(); if (trace) log.tracef("sendDeltaDoWorkRejected: %s", workManagers); if (own != null && transport != null && transport.isInitialized()) { for (Address address : workManagers) { if (!own....
class class_name[name] begin[{] method[sendDeltaDoWorkRejected, return_type[void], modifier[default], parameter[]] begin[{] call[doWorkRejected.incrementAndGet, parameter[]] if[member[.trace]] begin[{] call[log.tracef, parameter[literal["sendDeltaDoWorkRejected: %s"]...
Keyword[void] identifier[sendDeltaDoWorkRejected] operator[SEP] operator[SEP] { identifier[doWorkRejected] operator[SEP] identifier[incrementAndGet] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[trace] operator[SEP] identifier[log] operator[SEP] identifier[tracef] operator[SEP] l...
public final void insert(final int i, final int[] e) { final int l = e.length; if (l == 0) return; if (size + l > list.length) list = Arrays.copyOf(list, newSize(size + l)); Array.move(list, i, l, size - i); System.arraycopy(e, 0, list, i, l); size += l; }
class class_name[name] begin[{] method[insert, return_type[void], modifier[final public], parameter[i, e]] begin[{] local_variable[type[int], l] if[binary_operation[member[.l], ==, literal[0]]] begin[{] return[None] else begin[{] None end[}] if[binary_ope...
Keyword[public] Keyword[final] Keyword[void] identifier[insert] operator[SEP] Keyword[final] Keyword[int] identifier[i] , Keyword[final] Keyword[int] operator[SEP] operator[SEP] identifier[e] operator[SEP] { Keyword[final] Keyword[int] identifier[l] operator[=] identifier[e] operator[SEP] identifier[length] ope...
public base_response logout() throws Exception { base_response result = null; logout logout = new logout(); result = logout.perform_operation(this); sessionid = null; user_name = null; password = null; return result; }
class class_name[name] begin[{] method[logout, return_type[type[base_response]], modifier[public], parameter[]] begin[{] local_variable[type[base_response], result] local_variable[type[logout], logout] assign[member[.result], call[logout.perform_operation, parameter[THIS[]]]] ...
Keyword[public] identifier[base_response] identifier[logout] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_response] identifier[result] operator[=] Other[null] operator[SEP] identifier[logout] identifier[logout] operator[=] Keyword[new] identifier[logout] operator[SEP] opera...
boolean saveTokens(Map<String, String> tokens) { if (tokenStore == null) return false; return tokenStore.saveTokens(getRemoteURL(), getLocalUUID(), tokens); }
class class_name[name] begin[{] method[saveTokens, return_type[type[boolean]], modifier[default], parameter[tokens]] begin[{] if[binary_operation[member[.tokenStore], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] return[call[tokenStore.sav...
Keyword[boolean] identifier[saveTokens] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tokens] operator[SEP] { Keyword[if] operator[SEP] identifier[tokenStore] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[...
private static BannerUpdate parseNextBannerUpdate(Element element) { BannerUpdate bannerUpdate = new BannerUpdate(); bannerUpdate.setSeasonNum(DOMHelper.getValueFromElement(element, "SeasonNum")); bannerUpdate.setSeriesId(DOMHelper.getValueFromElement(element, SERIES)); bannerUpdate.set...
class class_name[name] begin[{] method[parseNextBannerUpdate, return_type[type[BannerUpdate]], modifier[private static], parameter[element]] begin[{] local_variable[type[BannerUpdate], bannerUpdate] call[bannerUpdate.setSeasonNum, parameter[call[DOMHelper.getValueFromElement, parameter[...
Keyword[private] Keyword[static] identifier[BannerUpdate] identifier[parseNextBannerUpdate] operator[SEP] identifier[Element] identifier[element] operator[SEP] { identifier[BannerUpdate] identifier[bannerUpdate] operator[=] Keyword[new] identifier[BannerUpdate] operator[SEP] operator[SEP] operator[SEP] identifie...
public static double quantile(double[] data, int begin, int end, double quant) { final int length = end - begin; assert (length > 0) : "Quantile on empty set?"; // Integer division is "floor" since we are non-negative. final double dleft = begin + (length - 1) * quant; final int ileft = (int) Math.f...
class class_name[name] begin[{] method[quantile, return_type[type[double]], modifier[public static], parameter[data, begin, end, quant]] begin[{] local_variable[type[int], length] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] Keyword[double] identifier[quantile] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[begin] , Keyword[int] identifier[end] , Keyword[double] identifier[quant] operator[SEP] { Keyword[final] Keyword[int] identifier[length] ope...
public synchronized void setChannel(DatagramChannel channel, UDPNetworkLayer udpNetworkLayer) throws IOException { int interestOps = 0; if (udpNetworkLayer.getUDPChannel().getConfig().isInboundChannel()) { interestOps = SelectionKey.OP_READ; } NIOChannelModRequest request =...
class class_name[name] begin[{] method[setChannel, return_type[void], modifier[synchronized public], parameter[channel, udpNetworkLayer]] begin[{] local_variable[type[int], interestOps] if[call[udpNetworkLayer.getUDPChannel, parameter[]]] begin[{] assign[member[....
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setChannel] operator[SEP] identifier[DatagramChannel] identifier[channel] , identifier[UDPNetworkLayer] identifier[udpNetworkLayer] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[interestOps] operator[=] Other[0] ope...
public static String format( DateTimeFormat format, Date date ) { return format( format, UTC_TIMEZONE, date ); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[format, date]] begin[{] return[call[.format, parameter[member[.format], member[.UTC_TIMEZONE], member[.date]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] identifier[DateTimeFormat] identifier[format] , identifier[Date] identifier[date] operator[SEP] { Keyword[return] identifier[format] operator[SEP] identifier[format] , identifier[UTC_TIMEZONE] , identifier[date] operator[SEP] ...
private List<GempakParameter> makeParams(DMPart part) { List<GempakParameter> gemparms = new ArrayList<>(part.kparms); for (DMParam param : part.params) { String name = param.kprmnm; GempakParameter parm = GempakParameters.getParameter(name); if (parm == null) { //System.out.println("c...
class class_name[name] begin[{] method[makeParams, return_type[type[List]], modifier[private], parameter[part]] begin[{] local_variable[type[List], gemparms] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensi...
Keyword[private] identifier[List] operator[<] identifier[GempakParameter] operator[>] identifier[makeParams] operator[SEP] identifier[DMPart] identifier[part] operator[SEP] { identifier[List] operator[<] identifier[GempakParameter] operator[>] identifier[gemparms] operator[=] Keyword[new] identifier[ArrayList] o...
@Override public int compare(S solution1, S solution2) { int result = rankComparator.compare(solution1, solution2) ; if (result == 0) { result = NewcrowdingDistanceComparator.compare(solution1, solution2); } return result; }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public], parameter[solution1, solution2]] begin[{] local_variable[type[int], result] if[binary_operation[member[.result], ==, literal[0]]] begin[{] assign[member[.result], call[Newcr...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compare] operator[SEP] identifier[S] identifier[solution1] , identifier[S] identifier[solution2] operator[SEP] { Keyword[int] identifier[result] operator[=] identifier[rankComparator] operator[SEP] identifier[compare] operator[SEP] ident...
@Override public BatchGetNamedQueryResult batchGetNamedQuery(BatchGetNamedQueryRequest request) { request = beforeClientExecution(request); return executeBatchGetNamedQuery(request); }
class class_name[name] begin[{] method[batchGetNamedQuery, return_type[type[BatchGetNamedQueryResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeBatchGetNamedQuery, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[BatchGetNamedQueryResult] identifier[batchGetNamedQuery] operator[SEP] identifier[BatchGetNamedQueryRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public final void persist(BatchingContext batchingContext, TransactionState tranState) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "persist", new Object[] { batchingContext, tranState}); if ((tranState == TransactionState.STATE_COMMITTED) || (tranState =...
class class_name[name] begin[{] method[persist, return_type[void], modifier[final public], parameter[batchingContext, tranState]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry,...
Keyword[public] Keyword[final] Keyword[void] identifier[persist] operator[SEP] identifier[BatchingContext] identifier[batchingContext] , identifier[TransactionState] identifier[tranState] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[...
public void update( Client client ) { RestfulUtils.update( ClientService.PATH, client, Client.class, super.httpClient ); }
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[client]] begin[{] call[RestfulUtils.update, parameter[member[ClientService.PATH], member[.client], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType...
Keyword[public] Keyword[void] identifier[update] operator[SEP] identifier[Client] identifier[client] operator[SEP] { identifier[RestfulUtils] operator[SEP] identifier[update] operator[SEP] identifier[ClientService] operator[SEP] identifier[PATH] , identifier[client] , identifier[Client] operator[SEP] Keyword[c...
public static boolean validate(final Source input, final Source[] schemas) { boolean isValid = true; try { final SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); factory.setResourceResolver(new SchemaLSResourceResolver()); fi...
class class_name[name] begin[{] method[validate, return_type[type[boolean]], modifier[public static], parameter[input, schemas]] begin[{] local_variable[type[boolean], isValid] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initialize...
Keyword[public] Keyword[static] Keyword[boolean] identifier[validate] operator[SEP] Keyword[final] identifier[Source] identifier[input] , Keyword[final] identifier[Source] operator[SEP] operator[SEP] identifier[schemas] operator[SEP] { Keyword[boolean] identifier[isValid] operator[=] literal[boolean] operator[S...
@Override public GetSearchSuggestionsResult getSearchSuggestions(GetSearchSuggestionsRequest request) { request = beforeClientExecution(request); return executeGetSearchSuggestions(request); }
class class_name[name] begin[{] method[getSearchSuggestions, return_type[type[GetSearchSuggestionsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetSearchSuggestions, parame...
annotation[@] identifier[Override] Keyword[public] identifier[GetSearchSuggestionsResult] identifier[getSearchSuggestions] operator[SEP] identifier[GetSearchSuggestionsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
public void delete(String statement, Object parameter, Class<? extends Entity> entityClass) { if (!bulkDeleteOperations.containsKey(entityClass)) { bulkDeleteOperations.put(entityClass, new ArrayList<BulkDeleteOperati...
class class_name[name] begin[{] method[delete, return_type[void], modifier[public], parameter[statement, parameter, entityClass]] begin[{] if[call[bulkDeleteOperations.containsKey, parameter[member[.entityClass]]]] begin[{] call[bulkDeleteOperations.put, parameter[member...
Keyword[public] Keyword[void] identifier[delete] operator[SEP] identifier[String] identifier[statement] , identifier[Object] identifier[parameter] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Entity] operator[>] identifier[entityClass] operator[SEP] { Keyword[if] operator[SEP] operat...
public static DistributedRegionMXBean getRegionMBean(String regionName, JMX jmx) { ObjectName on = getRegionObjectName(regionName, jmx); if(on ==null) return null; DistributedRegionMXBean region = jmx.newBean(DistributedRegionMXBean.class, on); return region; }
class class_name[name] begin[{] method[getRegionMBean, return_type[type[DistributedRegionMXBean]], modifier[public static], parameter[regionName, jmx]] begin[{] local_variable[type[ObjectName], on] if[binary_operation[member[.on], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[public] Keyword[static] identifier[DistributedRegionMXBean] identifier[getRegionMBean] operator[SEP] identifier[String] identifier[regionName] , identifier[JMX] identifier[jmx] operator[SEP] { identifier[ObjectName] identifier[on] operator[=] identifier[getRegionObjectName] operator[SEP] identifier[regi...
public void decode(AsnInputStream ais) throws ParseException { try { primitive = ais.isTagPrimitive(); tagClass = ais.getTagClass(); data = ais.readSequence(); this.encodingLength = data.length; if (singleParameterInAsn && ais.available() > 0) { // ext...
class class_name[name] begin[{] method[decode, return_type[void], modifier[public], parameter[ais]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=primitive, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Me...
Keyword[public] Keyword[void] identifier[decode] operator[SEP] identifier[AsnInputStream] identifier[ais] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[try] { identifier[primitive] operator[=] identifier[ais] operator[SEP] identifier[isTagPrimitive] operator[SEP] operator[SEP] ope...
@Override public boolean startsWith( Path other ) { if ( !getFileSystem().equals( other.getFileSystem() ) ) { return false; } if ( (other.isAbsolute() && !isAbsolute()) || (isAbsolute() && !other.isAbsolute()) ) { return false; } int c...
class class_name[name] begin[{] method[startsWith, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[call[.getFileSystem, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[binary_oper...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[startsWith] operator[SEP] identifier[Path] identifier[other] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[getFileSystem] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[other] ...
protected void doSetFrom(String from, String personal) { assertArgumentNotEmpty("from", from); assertArgumentNotEmpty("personal", personal); // only from required postcard.setFrom(createAddress(from, personal)); }
class class_name[name] begin[{] method[doSetFrom, return_type[void], modifier[protected], parameter[from, personal]] begin[{] call[.assertArgumentNotEmpty, parameter[literal["from"], member[.from]]] call[.assertArgumentNotEmpty, parameter[literal["personal"], member[.personal]]]...
Keyword[protected] Keyword[void] identifier[doSetFrom] operator[SEP] identifier[String] identifier[from] , identifier[String] identifier[personal] operator[SEP] { identifier[assertArgumentNotEmpty] operator[SEP] literal[String] , identifier[from] operator[SEP] operator[SEP] identifier[assertArgumentNotEmpty] o...
protected String renderMessage(final LogEntry logEntry) { StringBuilder builder = reuseOrCreate(messageBuilder, MESSAGE_BUILDER_CAPACITY); messageToken.render(logEntry, builder); return builder.toString(); }
class class_name[name] begin[{] method[renderMessage, return_type[type[String]], modifier[protected], parameter[logEntry]] begin[{] local_variable[type[StringBuilder], builder] call[messageToken.render, parameter[member[.logEntry], member[.builder]]] return[call[builder.toString...
Keyword[protected] identifier[String] identifier[renderMessage] operator[SEP] Keyword[final] identifier[LogEntry] identifier[logEntry] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] identifier[reuseOrCreate] operator[SEP] identifier[messageBuilder] , identifier[MESSAGE_BUILDER_CAPACIT...
public void awaitNextReadyWork() throws InterruptedException { write.lockInterruptibly(); try { long next = getEarliestReadyEstimate(); while (!workAvailable() && !waitingWork.isEmpty()) { if (next > 0L) { workChanged.awaitNanos(next - System.nanoTime()); // Or signal next = getEarliestReadyEs...
class class_name[name] begin[{] method[awaitNextReadyWork, return_type[void], modifier[public], parameter[]] begin[{] call[write.lockInterruptibly, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Method...
Keyword[public] Keyword[void] identifier[awaitNextReadyWork] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { identifier[write] operator[SEP] identifier[lockInterruptibly] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[long] identifier[next] operator[=] ...
public EClass getMCD() { if (mcdEClass == null) { mcdEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(290); } return mcdEClass; }
class class_name[name] begin[{] method[getMCD, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.mcdEClass], ==, literal[null]]] begin[{] assign[member[.mcdEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[public] identifier[EClass] identifier[getMCD] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mcdEClass] operator[==] Other[null] operator[SEP] { identifier[mcdEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Re...
@SuppressWarnings("unchecked") public <T> PathBuilder<T> create(Class<T> type) { PathBuilder<T> rv = (PathBuilder<T>) paths.get(type); if (rv == null) { rv = new PathBuilder<T>(type, variableName(type)); paths.put(type, rv); } return rv; }
class class_name[name] begin[{] method[create, return_type[type[PathBuilder]], modifier[public], parameter[type]] begin[{] local_variable[type[PathBuilder], rv] if[binary_operation[member[.rv], ==, literal[null]]] begin[{] assign[member[.rv], ClassCreator(argumen...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[PathBuilder] operator[<] identifier[T] operator[>] identifier[create] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SE...
protected void handleAppendResponseFailure(MemberState member, AppendRequest request, Throwable error) { // Log the failed attempt to contact the member. failAttempt(member, error); }
class class_name[name] begin[{] method[handleAppendResponseFailure, return_type[void], modifier[protected], parameter[member, request, error]] begin[{] call[.failAttempt, parameter[member[.member], member[.error]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[handleAppendResponseFailure] operator[SEP] identifier[MemberState] identifier[member] , identifier[AppendRequest] identifier[request] , identifier[Throwable] identifier[error] operator[SEP] { identifier[failAttempt] operator[SEP] identifier[member] , identifier[erro...
public BaseRobotRules parseRules(String url, byte[] content, String contentType, String robotName) { return robotParser.parseContent(url, content, contentType, robotName); }
class class_name[name] begin[{] method[parseRules, return_type[type[BaseRobotRules]], modifier[public], parameter[url, content, contentType, robotName]] begin[{] return[call[robotParser.parseContent, parameter[member[.url], member[.content], member[.contentType], member[.robotName]]]] end[}] END[}]
Keyword[public] identifier[BaseRobotRules] identifier[parseRules] operator[SEP] identifier[String] identifier[url] , Keyword[byte] operator[SEP] operator[SEP] identifier[content] , identifier[String] identifier[contentType] , identifier[String] identifier[robotName] operator[SEP] { Keyword[return] identifier[...
public <T> void transactAsync(final DbCodeTyped<T> code, Handler<AsyncResult<T>> resultHandler) { VertxUtil.executeBlocking(executor, future -> { try { T returnValue; boolean complete = false; try { returnValue = code.run(this); complete = true; } catch (Th...
class class_name[name] begin[{] method[transactAsync, return_type[void], modifier[public], parameter[code, resultHandler]] begin[{] call[VertxUtil.executeBlocking, parameter[member[.executor], LambdaExpression(body=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Varia...
Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[transactAsync] operator[SEP] Keyword[final] identifier[DbCodeTyped] operator[<] identifier[T] operator[>] identifier[code] , identifier[Handler] operator[<] identifier[AsyncResult] operator[<] identifier[T] operator[>] operator[>] identifie...
private boolean smoothSlideTo(float slideOffset) { final int topBound = getPaddingTop(); int x = (int) (slideOffset * (getWidth() - transformer.getMinWidthPlusMarginRight())); int y = (int) (topBound + slideOffset * getVerticalDragRange()); if (viewDragHelper.smoothSlideViewTo(dragView, x, y)) { V...
class class_name[name] begin[{] method[smoothSlideTo, return_type[type[boolean]], modifier[private], parameter[slideOffset]] begin[{] local_variable[type[int], topBound] local_variable[type[int], x] local_variable[type[int], y] if[call[viewDragHelper.smoothSlideViewTo, p...
Keyword[private] Keyword[boolean] identifier[smoothSlideTo] operator[SEP] Keyword[float] identifier[slideOffset] operator[SEP] { Keyword[final] Keyword[int] identifier[topBound] operator[=] identifier[getPaddingTop] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[x] operator[=] operator[SEP] Ke...
public static void show(IResponseCallback<DateRange> callback) { Date today = DateUtil.today(); show(today, today, callback); }
class class_name[name] begin[{] method[show, return_type[void], modifier[public static], parameter[callback]] begin[{] local_variable[type[Date], today] call[.show, parameter[member[.today], member[.today], member[.callback]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[show] operator[SEP] identifier[IResponseCallback] operator[<] identifier[DateRange] operator[>] identifier[callback] operator[SEP] { identifier[Date] identifier[today] operator[=] identifier[DateUtil] operator[SEP] identifier[today] operator[SEP] operator[...
private long[] createSparseOffsets(long offset) { // resolve the offsets in the view dimension int underlyingRank = sparseOffsets().length; long[] newOffsets = new long[rank()]; List<Long> shapeList = Longs.asList(shape()); int penultimate = rank() - 1; for (int i = 0; i...
class class_name[name] begin[{] method[createSparseOffsets, return_type[type[long]], modifier[private], parameter[offset]] begin[{] local_variable[type[int], underlyingRank] local_variable[type[long], newOffsets] local_variable[type[List], shapeList] local_variable[type[int], pe...
Keyword[private] Keyword[long] operator[SEP] operator[SEP] identifier[createSparseOffsets] operator[SEP] Keyword[long] identifier[offset] operator[SEP] { Keyword[int] identifier[underlyingRank] operator[=] identifier[sparseOffsets] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] Keywor...
public AppInner beginUpdate(String resourceGroupName, String resourceName, AppPatch appPatch) { return beginUpdateWithServiceResponseAsync(resourceGroupName, resourceName, appPatch).toBlocking().single().body(); }
class class_name[name] begin[{] method[beginUpdate, return_type[type[AppInner]], modifier[public], parameter[resourceGroupName, resourceName, appPatch]] begin[{] return[call[.beginUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName], member[.appPatch]]]] end[}...
Keyword[public] identifier[AppInner] identifier[beginUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[AppPatch] identifier[appPatch] operator[SEP] { Keyword[return] identifier[beginUpdateWithServiceResponseAsync] operator[SEP] ide...
public SDVariable uniform(String name, double min, double max, long... shape) { SDVariable ret = f().randomUniform(min, max, shape); return updateVariableNameAndReference(ret, name); }
class class_name[name] begin[{] method[uniform, return_type[type[SDVariable]], modifier[public], parameter[name, min, max, shape]] begin[{] local_variable[type[SDVariable], ret] return[call[.updateVariableNameAndReference, parameter[member[.ret], member[.name]]]] end[}] END[}]
Keyword[public] identifier[SDVariable] identifier[uniform] operator[SEP] identifier[String] identifier[name] , Keyword[double] identifier[min] , Keyword[double] identifier[max] , Keyword[long] operator[...] identifier[shape] operator[SEP] { identifier[SDVariable] identifier[ret] operator[=] identifier[f] oper...
private static char b64encode(int b) { if (b >= 0 && b <= 25) { return (char) ('A' + b); } if (b >= 26 && b <= 51) { return (char) ('a' + b - 26); } if (b >= 52 && b <= 61) { return (char) ('0' + b - 52); } if (b == 62) { return '+'; } if (b == 63) { return '/'; } re...
class class_name[name] begin[{] method[b64encode, return_type[type[char]], modifier[private static], parameter[b]] begin[{] if[binary_operation[binary_operation[member[.b], >=, literal[0]], &&, binary_operation[member[.b], <=, literal[25]]]] begin[{] return[Cast(expression=BinaryOpe...
Keyword[private] Keyword[static] Keyword[char] identifier[b64encode] operator[SEP] Keyword[int] identifier[b] operator[SEP] { Keyword[if] operator[SEP] identifier[b] operator[>=] Other[0] operator[&&] identifier[b] operator[<=] Other[25] operator[SEP] { Keyword[return] operator[SEP] Keyword[char] oper...
@Override public synchronized void close() throws IOException { if (logger.isLoggable(Level.FINER)) { logger.logp(Level.FINER, logger.getName(), "close", "Closing connector"); } if (!closed) { // It is possible for close to be called prior to connecting. ...
class class_name[name] begin[{] method[close, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[call[logger.isLoggable, parameter[member[Level.FINER]]]] begin[{] call[logger.logp, parameter[member[Level.FINER], call[logger.getName, parameter[]], ...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP] identifier...
private static void println(StringBuilder buf, int width, String data) { for(String line : FormatUtil.splitAtLastBlank(data, width)) { buf.append(line); if(!line.endsWith(FormatUtil.NEWLINE)) { buf.append(FormatUtil.NEWLINE); } } }
class class_name[name] begin[{] method[println, return_type[void], modifier[private static], parameter[buf, width, data]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=line, postfix_operators=[], prefi...
Keyword[private] Keyword[static] Keyword[void] identifier[println] operator[SEP] identifier[StringBuilder] identifier[buf] , Keyword[int] identifier[width] , identifier[String] identifier[data] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[line] operator[:] identifier[FormatUtil] op...
@Nonnull public static <A> ImmutableList<A> from(@Nonnull List<A> arrayList) { // Manual expansion of tail recursion. ImmutableList<A> l = empty(); int size = arrayList.size(); for (int i = size - 1; i >= 0; i--) { l = cons(arrayList.get(i), l); } return l...
class class_name[name] begin[{] method[from, return_type[type[ImmutableList]], modifier[public static], parameter[arrayList]] begin[{] local_variable[type[ImmutableList], l] local_variable[type[int], size] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expr...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[A] operator[>] identifier[ImmutableList] operator[<] identifier[A] operator[>] identifier[from] operator[SEP] annotation[@] identifier[Nonnull] identifier[List] operator[<] identifier[A] operator[>] identifier[arrayList] operator[S...
private double computeMaxPathWeight(int node) { if (node == -1 || levels[node] == 0) { return 0; } double leftMaxWeight = computeMaxPathWeight(lefts[node]); double rightMaxWeight = computeMaxPathWeight(rights[node]); return Math.max(leftMaxWeight, rightMaxWeight...
class class_name[name] begin[{] method[computeMaxPathWeight, return_type[type[double]], modifier[private], parameter[node]] begin[{] if[binary_operation[binary_operation[member[.node], ==, literal[1]], ||, binary_operation[member[.levels], ==, literal[0]]]] begin[{] return[literal[0...
Keyword[private] Keyword[double] identifier[computeMaxPathWeight] operator[SEP] Keyword[int] identifier[node] operator[SEP] { Keyword[if] operator[SEP] identifier[node] operator[==] operator[-] Other[1] operator[||] identifier[levels] operator[SEP] identifier[node] operator[SEP] operator[==] Other[0] operator[SE...
public void writeDefinition(final OutputStream result) throws IOException { result.write(DEFAULT_FONT); result.write(intToByteArray(0)); result.write(OPEN_GROUP); result.write(FONT_TABLE); for(int i = 0; i < fontList.size(); i++) { result.write(OPEN_GROUP); ...
class class_name[name] begin[{] method[writeDefinition, return_type[void], modifier[public], parameter[result]] begin[{] call[result.write, parameter[member[.DEFAULT_FONT]]] call[result.write, parameter[call[.intToByteArray, parameter[literal[0]]]]] call[result.w...
Keyword[public] Keyword[void] identifier[writeDefinition] operator[SEP] Keyword[final] identifier[OutputStream] identifier[result] operator[SEP] Keyword[throws] identifier[IOException] { identifier[result] operator[SEP] identifier[write] operator[SEP] identifier[DEFAULT_FONT] operator[SEP] operator[SEP] identifi...
private void addEntry(K key, V value) { EntryImpl<K, V> entry = _poolFirst; if (entry != null) { _poolFirst = entry._after; entry._after = null; } else { // Pool empty. entry = new EntryImpl<K, V>(); } // Setup entry paramters. entry._key = key; entry._value = value; i...
class class_name[name] begin[{] method[addEntry, return_type[void], modifier[private], parameter[key, value]] begin[{] local_variable[type[EntryImpl], entry] if[binary_operation[member[.entry], !=, literal[null]]] begin[{] assign[member[._poolFirst], member[entry...
Keyword[private] Keyword[void] identifier[addEntry] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] { identifier[EntryImpl] operator[<] identifier[K] , identifier[V] operator[>] identifier[entry] operator[=] identifier[_poolFirst] operator[SEP] Keyword[if] operator[S...
public void setRoles(final JAASSystem _jaasSystem, final Set<Role> _roles) throws EFapsException { if (_jaasSystem == null) { throw new EFapsException(getClass(), "setRoles.nojaasSystem", getName()); } if (_roles == null) { throw new ...
class class_name[name] begin[{] method[setRoles, return_type[void], modifier[public], parameter[_jaasSystem, _roles]] begin[{] if[binary_operation[member[._jaasSystem], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], memb...
Keyword[public] Keyword[void] identifier[setRoles] operator[SEP] Keyword[final] identifier[JAASSystem] identifier[_jaasSystem] , Keyword[final] identifier[Set] operator[<] identifier[Role] operator[>] identifier[_roles] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[if] operator[SEP] identif...
static Storage newScaledRAFile(Database database, String name, boolean readonly, int type, String classname, String key) throws FileNotFoundException, IOException { if (cl...
class class_name[name] begin[{] method[newScaledRAFile, return_type[type[Storage]], modifier[static], parameter[database, name, readonly, type, classname, key]] begin[{] if[binary_operation[member[.classname], !=, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration...
Keyword[static] identifier[Storage] identifier[newScaledRAFile] operator[SEP] identifier[Database] identifier[database] , identifier[String] identifier[name] , Keyword[boolean] identifier[readonly] , Keyword[int] identifier[type] , identifier[String] identifier[classname] , identifier[String] identifier[key] opera...
public static void clearTempFiles() { String userFolderPath = getUserFolderPath(false); File file = new File(userFolderPath); deleteDir(file); }
class class_name[name] begin[{] method[clearTempFiles, return_type[void], modifier[public static], parameter[]] begin[{] local_variable[type[String], userFolderPath] local_variable[type[File], file] call[.deleteDir, parameter[member[.file]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[clearTempFiles] operator[SEP] operator[SEP] { identifier[String] identifier[userFolderPath] operator[=] identifier[getUserFolderPath] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[File] identifier[file] operator[=] Keyword[new] iden...
@Override public void close() { try { if (this.isOpened() == true) { this.getTracePrintStream().println(); this.getTracePrintStream().printf("--> TraceLog closing!%n"); this.getTracePrintStream().printf(" Time : %tc%n", new Date()); System.out.println(formatSt...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=isOpened, postfix_...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isOpened] operator[SEP] operator[SEP] operator[==] literal[boolean] operator[SEP] { Keyword[th...
public byte[] getUserSessionKey ( CIFSContext tc, byte[] chlng ) { byte[] key = new byte[16]; try { getUserSessionKey(tc, chlng, key, 0); } catch ( Exception ex ) { log.error("Failed to get session key", ex); } return key; }
class class_name[name] begin[{] method[getUserSessionKey, return_type[type[byte]], modifier[public], parameter[tc, chlng]] begin[{] local_variable[type[byte], key] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], pre...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getUserSessionKey] operator[SEP] identifier[CIFSContext] identifier[tc] , Keyword[byte] operator[SEP] operator[SEP] identifier[chlng] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[=] Keyword[new] Keyword[by...
private void savePreviousImageValues() { if (matrix != null && viewHeight != 0 && viewWidth != 0) { matrix.getValues(m); prevMatrix.setValues(m); prevMatchViewHeight = matchViewHeight; prevMatchViewWidth = matchViewWidth; prevViewHeight = viewHeight; ...
class class_name[name] begin[{] method[savePreviousImageValues, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.matrix], !=, literal[null]], &&, binary_operation[member[.viewHeight], !=, literal[0]]], &&, binary_operation...
Keyword[private] Keyword[void] identifier[savePreviousImageValues] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[matrix] operator[!=] Other[null] operator[&&] identifier[viewHeight] operator[!=] Other[0] operator[&&] identifier[viewWidth] operator[!=] Other[0] operator[SEP] { iden...
public static void registerSmbURLHandler() { String ver, pkgs; ver = System.getProperty( "java.version" ); if( ver.startsWith( "1.1." ) || ver.startsWith( "1.2." )) { throw new RuntimeException( "jcifs.smb1-0.7.0b4+ requires Java 1.3 or above. You are running " + ver ); } ...
class class_name[name] begin[{] method[registerSmbURLHandler, return_type[void], modifier[public static], parameter[]] begin[{] local_variable[type[String], ver] assign[member[.ver], call[System.getProperty, parameter[literal["java.version"]]]] if[binary_operation[call[v...
Keyword[public] Keyword[static] Keyword[void] identifier[registerSmbURLHandler] operator[SEP] operator[SEP] { identifier[String] identifier[ver] , identifier[pkgs] operator[SEP] identifier[ver] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] opera...
private static String[] verifyImplicitOption(String[] args) throws ProblemException { boolean foundImplicit = false; for (String a : args) { if (a.startsWith("-implicit:")) { foundImplicit = true; if (!a.equals("-implicit:none")) { ...
class class_name[name] begin[{] method[verifyImplicitOption, return_type[type[String]], modifier[private static], parameter[args]] begin[{] local_variable[type[boolean], foundImplicit] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Lit...
Keyword[private] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[verifyImplicitOption] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[ProblemException] { Keyword[boolean] identifier[foundImplicit] operator[=] litera...
protected final HylaFAXClientConnectionFactory createHylaFAXClientConnectionFactory(String className) { //create new instance HylaFAXClientConnectionFactory factory=(HylaFAXClientConnectionFactory)ReflectionHelper.createInstance(className); //initialize factory.initializ...
class class_name[name] begin[{] method[createHylaFAXClientConnectionFactory, return_type[type[HylaFAXClientConnectionFactory]], modifier[final protected], parameter[className]] begin[{] local_variable[type[HylaFAXClientConnectionFactory], factory] call[factory.initialize, parameter[THIS...
Keyword[protected] Keyword[final] identifier[HylaFAXClientConnectionFactory] identifier[createHylaFAXClientConnectionFactory] operator[SEP] identifier[String] identifier[className] operator[SEP] { identifier[HylaFAXClientConnectionFactory] identifier[factory] operator[=] operator[SEP] identifier[HylaFAXClientCon...
private void computeMatrixTopoGraphClusters_(int geometry_a, int geometry_b) { boolean bRelationKnown = false; int id_a = m_topo_graph.getGeometryID(geometry_a); int id_b = m_topo_graph.getGeometryID(geometry_b); for (int cluster = m_topo_graph.getFirstCluster(); cluster != -1; cluster = m_topo_graph .get...
class class_name[name] begin[{] method[computeMatrixTopoGraphClusters_, return_type[void], modifier[private], parameter[geometry_a, geometry_b]] begin[{] local_variable[type[boolean], bRelationKnown] local_variable[type[int], id_a] local_variable[type[int], id_b] ForStatement(bo...
Keyword[private] Keyword[void] identifier[computeMatrixTopoGraphClusters_] operator[SEP] Keyword[int] identifier[geometry_a] , Keyword[int] identifier[geometry_b] operator[SEP] { Keyword[boolean] identifier[bRelationKnown] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[id_a] operator[=] iden...
protected void addAllUsersToRole(Set<String> users, String role) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "addAllUsersToRole", new Object[] { users, role }); } Set<String> usersForTheRole = roleToUserMap.get(role); if (...
class class_name[name] begin[{] method[addAllUsersToRole, return_type[void], modifier[protected], parameter[users, role]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.en...
Keyword[protected] Keyword[void] identifier[addAllUsersToRole] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[users] , identifier[String] identifier[role] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] opera...
public void setPaginationMode(final PaginationMode paginationMode) { getOrCreateComponentModel().paginationMode = PaginationMode.SERVER.equals(paginationMode) ? PaginationMode.DYNAMIC : paginationMode; }
class class_name[name] begin[{] method[setPaginationMode, return_type[void], modifier[public], parameter[paginationMode]] begin[{] assign[call[.getOrCreateComponentModel, parameter[]], TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=paginationMode, postfix_operato...
Keyword[public] Keyword[void] identifier[setPaginationMode] operator[SEP] Keyword[final] identifier[PaginationMode] identifier[paginationMode] operator[SEP] { identifier[getOrCreateComponentModel] operator[SEP] operator[SEP] operator[SEP] identifier[paginationMode] operator[=] identifier[PaginationMode] operator...
public boolean isPanelsComment(QueryQuestionComment comment, Panel panel) { Panel queryPanel = resourceController.getResourcePanel(comment.getQueryPage().getQuerySection().getQuery()); if (queryPanel == null || panel == null) { return false; } return queryPanel.getId().equals(panel.getId()); ...
class class_name[name] begin[{] method[isPanelsComment, return_type[type[boolean]], modifier[public], parameter[comment, panel]] begin[{] local_variable[type[Panel], queryPanel] if[binary_operation[binary_operation[member[.queryPanel], ==, literal[null]], ||, binary_operation[member[.pa...
Keyword[public] Keyword[boolean] identifier[isPanelsComment] operator[SEP] identifier[QueryQuestionComment] identifier[comment] , identifier[Panel] identifier[panel] operator[SEP] { identifier[Panel] identifier[queryPanel] operator[=] identifier[resourceController] operator[SEP] identifier[getResourcePanel] ope...
public void setSeriesEndDate(Date date) { if (!Objects.equals(m_model.getSeriesEndDate(), date)) { m_model.setSeriesEndDate(date); valueChanged(); } }
class class_name[name] begin[{] method[setSeriesEndDate, return_type[void], modifier[public], parameter[date]] begin[{] if[call[Objects.equals, parameter[call[m_model.getSeriesEndDate, parameter[]], member[.date]]]] begin[{] call[m_model.setSeriesEndDate, parameter[membe...
Keyword[public] Keyword[void] identifier[setSeriesEndDate] operator[SEP] identifier[Date] identifier[date] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[Objects] operator[SEP] identifier[equals] operator[SEP] identifier[m_model] operator[SEP] identifier[getSeriesEndDate] operator[SEP] operator...
private List<String> existingRootFiles() { List<String> filesFound = new ArrayList<>(); for (String path : SU_PATHS) { if (new File(path).exists()) { filesFound.add(path); } } return filesFound; }
class class_name[name] begin[{] method[existingRootFiles, return_type[type[List]], modifier[private], parameter[]] begin[{] local_variable[type[List], filesFound] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=ClassCreator(arguments=[MemberReference(member=path, ...
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[existingRootFiles] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[filesFound] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator...
public static boolean isCategoryOnlyCriteria(final Criteria criteria) { return isEmpty(criteria.getAliases()) && // we are not subscribing to alias topic (yet) isEmpty(criteria.getDeviceTypes()) && // we are not subscribing to device type topic (yet) !isEmpty(criteria.get...
class class_name[name] begin[{] method[isCategoryOnlyCriteria, return_type[type[boolean]], modifier[public static], parameter[criteria]] begin[{] return[binary_operation[binary_operation[call[.isEmpty, parameter[call[criteria.getAliases, parameter[]]]], &&, call[.isEmpty, parameter[call[criteria.getDev...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isCategoryOnlyCriteria] operator[SEP] Keyword[final] identifier[Criteria] identifier[criteria] operator[SEP] { Keyword[return] identifier[isEmpty] operator[SEP] identifier[criteria] operator[SEP] identifier[getAliases] operator[SEP] operator[SEP] operat...
@Nullable public static SSLContext createRestServerSSLContext(Configuration config) throws Exception { final RestSSLContextConfigMode configMode; if (isRestSSLAuthenticationEnabled(config)) { configMode = RestSSLContextConfigMode.MUTUAL; } else { configMode = RestSSLContextConfigMode.SERVER; } return ...
class class_name[name] begin[{] method[createRestServerSSLContext, return_type[type[SSLContext]], modifier[public static], parameter[config]] begin[{] local_variable[type[RestSSLContextConfigMode], configMode] if[call[.isRestSSLAuthenticationEnabled, parameter[member[.config]]]] begin[{...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[SSLContext] identifier[createRestServerSSLContext] operator[SEP] identifier[Configuration] identifier[config] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[RestSSLContextConfigMode] identifier[configMo...
public WebFacesConfigDescriptor addNamespace(String name, String value) { model.attribute(name, value); return this; }
class class_name[name] begin[{] method[addNamespace, return_type[type[WebFacesConfigDescriptor]], modifier[public], parameter[name, value]] begin[{] call[model.attribute, parameter[member[.name], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[WebFacesConfigDescriptor] identifier[addNamespace] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] { identifier[model] operator[SEP] identifier[attribute] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[...
public static QueryParameters updateTypes(QueryParameters original, QueryParameters source) { QueryParameters updatedParams = new QueryParameters(original); Integer position = null; String originalKey = null; if (source != null) { for (String sourceKey : source.keySet(...
class class_name[name] begin[{] method[updateTypes, return_type[type[QueryParameters]], modifier[public static], parameter[original, source]] begin[{] local_variable[type[QueryParameters], updatedParams] local_variable[type[Integer], position] local_variable[type[String], originalKey] ...
Keyword[public] Keyword[static] identifier[QueryParameters] identifier[updateTypes] operator[SEP] identifier[QueryParameters] identifier[original] , identifier[QueryParameters] identifier[source] operator[SEP] { identifier[QueryParameters] identifier[updatedParams] operator[=] Keyword[new] identifier[QueryParam...
public static void streamResponseAndClose(Writer pWriter, JSONStreamAware pJson, String callback) throws IOException { try { if (callback == null) { pJson.writeJSONString(pWriter); } else { pWriter.write(callback); pWriter.write("("...
class class_name[name] begin[{] method[streamResponseAndClose, return_type[void], modifier[public static], parameter[pWriter, pJson, callback]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=callback, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] Keyword[static] Keyword[void] identifier[streamResponseAndClose] operator[SEP] identifier[Writer] identifier[pWriter] , identifier[JSONStreamAware] identifier[pJson] , identifier[String] identifier[callback] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keywo...
public TreeElement findNode(String nodeName) { TreeElement root = getRoot(this); return root.findNodeRecurse(nodeName, nodeName); }
class class_name[name] begin[{] method[findNode, return_type[type[TreeElement]], modifier[public], parameter[nodeName]] begin[{] local_variable[type[TreeElement], root] return[call[root.findNodeRecurse, parameter[member[.nodeName], member[.nodeName]]]] end[}] END[}]
Keyword[public] identifier[TreeElement] identifier[findNode] operator[SEP] identifier[String] identifier[nodeName] operator[SEP] { identifier[TreeElement] identifier[root] operator[=] identifier[getRoot] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[return] identifier[root] operator[SEP] identi...
public CmsPublishList getRelatedResourcesToPublish( CmsRequestContext context, CmsPublishList publishList, CmsRelationFilter filter) throws CmsException { if (!publishList.isDirectPublish()) { throw new CmsIllegalArgumentException( Messages.get().containe...
class class_name[name] begin[{] method[getRelatedResourcesToPublish, return_type[type[CmsPublishList]], modifier[public], parameter[context, publishList, filter]] begin[{] if[call[publishList.isDirectPublish, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[M...
Keyword[public] identifier[CmsPublishList] identifier[getRelatedResourcesToPublish] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[CmsPublishList] identifier[publishList] , identifier[CmsRelationFilter] identifier[filter] operator[SEP] Keyword[throws] identifier[CmsException] { Ke...
public String getSelector() { if (tc.isEntryEnabled()) { SibTr.entry(tc, "getSelector"); SibTr.exit(tc, "getSelector", selector); } return selector; }
class class_name[name] begin[{] method[getSelector, return_type[type[String]], modifier[public], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["getSelector"]]] call[SibTr.e...
Keyword[public] identifier[String] identifier[getSelector] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , liter...
public boolean createNode(String path, byte[] value) throws ZooKeeperException { return _create(path, value, CreateMode.PERSISTENT); }
class class_name[name] begin[{] method[createNode, return_type[type[boolean]], modifier[public], parameter[path, value]] begin[{] return[call[._create, parameter[member[.path], member[.value], member[CreateMode.PERSISTENT]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[createNode] operator[SEP] identifier[String] identifier[path] , Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] Keyword[throws] identifier[ZooKeeperException] { Keyword[return] identifier[_create] operator[SEP] identifier[path] , identifier[...
public void marshall(ActionExecutionDetail actionExecutionDetail, ProtocolMarshaller protocolMarshaller) { if (actionExecutionDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(actionExecutionD...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[actionExecutionDetail, protocolMarshaller]] begin[{] if[binary_operation[member[.actionExecutionDetail], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ActionExecutionDetail] identifier[actionExecutionDetail] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[actionExecutionDetail] operator[==] Other[null] operator[SEP] ...
public Response recv_async(final Integer timeout, final byte[] trans_id, final boolean consume) throws InvalidInputException, MessageDecodingException, TerminateException { try { OtpOutput...
class class_name[name] begin[{] method[recv_async, return_type[type[Response]], modifier[public], parameter[timeout, trans_id, consume]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None,...
Keyword[public] identifier[Response] identifier[recv_async] operator[SEP] Keyword[final] identifier[Integer] identifier[timeout] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[trans_id] , Keyword[final] Keyword[boolean] identifier[consume] operator[SEP] Keyword[throws] identifier[InvalidInputEx...
public static void ensureContainingPage(ResourceResolver resolver, String configResourcePath, String resourceType, ConfigurationManagementSettings configurationManagementSettings) { ensureContainingPage(resolver, configResourcePath, null, resourceType, null, configurationManagementSettings); }
class class_name[name] begin[{] method[ensureContainingPage, return_type[void], modifier[public static], parameter[resolver, configResourcePath, resourceType, configurationManagementSettings]] begin[{] call[.ensureContainingPage, parameter[member[.resolver], member[.configResourcePath], literal...
Keyword[public] Keyword[static] Keyword[void] identifier[ensureContainingPage] operator[SEP] identifier[ResourceResolver] identifier[resolver] , identifier[String] identifier[configResourcePath] , identifier[String] identifier[resourceType] , identifier[ConfigurationManagementSettings] identifier[configurationManage...
public final void request(Result<I> result) { I instance = _instance; if (instance != null && _lifecycle.isActive() && ! isModified()) { result.ok(instance); } else if (_lifecycle.isDestroyed()) { result.ok(null); } else { _strategy.request(this, result); } }
class class_name[name] begin[{] method[request, return_type[void], modifier[final public], parameter[result]] begin[{] local_variable[type[I], instance] if[binary_operation[binary_operation[binary_operation[member[.instance], !=, literal[null]], &&, call[_lifecycle.isActive, parameter[]...
Keyword[public] Keyword[final] Keyword[void] identifier[request] operator[SEP] identifier[Result] operator[<] identifier[I] operator[>] identifier[result] operator[SEP] { identifier[I] identifier[instance] operator[=] identifier[_instance] operator[SEP] Keyword[if] operator[SEP] identifier[instance] operator[!=]...
protected void processWidgetScoreChildren(ScoreWeight widgetScore) { List<ScoreWeight> categoriesWeight = widgetScore.getChildren(); ScoreCalculationUtils.normalizeWeightForScore(categoriesWeight, PropagateType.widget); }
class class_name[name] begin[{] method[processWidgetScoreChildren, return_type[void], modifier[protected], parameter[widgetScore]] begin[{] local_variable[type[List], categoriesWeight] call[ScoreCalculationUtils.normalizeWeightForScore, parameter[member[.categoriesWeight], member[Propag...
Keyword[protected] Keyword[void] identifier[processWidgetScoreChildren] operator[SEP] identifier[ScoreWeight] identifier[widgetScore] operator[SEP] { identifier[List] operator[<] identifier[ScoreWeight] operator[>] identifier[categoriesWeight] operator[=] identifier[widgetScore] operator[SEP] identifier[getChild...
private static BooleanNode doesArrayContain(JsonNode subject, JsonNode search) { Iterator<JsonNode> elements = subject.elements(); while (elements.hasNext()) { if (elements.next().equals(search)) { return BooleanNode.TRUE; } } return BooleanNode.FA...
class class_name[name] begin[{] method[doesArrayContain, return_type[type[BooleanNode]], modifier[private static], parameter[subject, search]] begin[{] local_variable[type[Iterator], elements] while[call[elements.hasNext, parameter[]]] begin[{] if[call[elements.n...
Keyword[private] Keyword[static] identifier[BooleanNode] identifier[doesArrayContain] operator[SEP] identifier[JsonNode] identifier[subject] , identifier[JsonNode] identifier[search] operator[SEP] { identifier[Iterator] operator[<] identifier[JsonNode] operator[>] identifier[elements] operator[=] identifier[sub...
@Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { if (propertyResolver == null) { try { MutablePropertySources sources = new MutablePropertySources(); PropertySource<?> localPropertySource...
class class_name[name] begin[{] method[postProcessBeanFactory, return_type[void], modifier[public], parameter[beanFactory]] begin[{] if[binary_operation[member[.propertyResolver], ==, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[postProcessBeanFactory] operator[SEP] identifier[ConfigurableListableBeanFactory] identifier[beanFactory] operator[SEP] Keyword[throws] identifier[BeansException] { Keyword[if] operator[SEP] identifier[propertyResolver] operator[==] Othe...
public void addSelectOption(CmsSelectWidgetOption option) { if (m_selectOptions == null) { m_selectOptions = new ArrayList<CmsSelectWidgetOption>(); } m_selectOptions.add(option); }
class class_name[name] begin[{] method[addSelectOption, return_type[void], modifier[public], parameter[option]] begin[{] if[binary_operation[member[.m_selectOptions], ==, literal[null]]] begin[{] assign[member[.m_selectOptions], ClassCreator(arguments=[], body=None, cons...
Keyword[public] Keyword[void] identifier[addSelectOption] operator[SEP] identifier[CmsSelectWidgetOption] identifier[option] operator[SEP] { Keyword[if] operator[SEP] identifier[m_selectOptions] operator[==] Other[null] operator[SEP] { identifier[m_selectOptions] operator[=] Keyword[new] identifier[Ar...
public static void assertArrayEquals(String message, double[] expecteds, double[] actuals, double delta) throws ArrayComparisonFailure { new InexactComparisonCriteria(delta).arrayEquals(message, expecteds, actuals); }
class class_name[name] begin[{] method[assertArrayEquals, return_type[void], modifier[public static], parameter[message, expecteds, actuals, delta]] begin[{] ClassCreator(arguments=[MemberReference(member=delta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, c...
Keyword[public] Keyword[static] Keyword[void] identifier[assertArrayEquals] operator[SEP] identifier[String] identifier[message] , Keyword[double] operator[SEP] operator[SEP] identifier[expecteds] , Keyword[double] operator[SEP] operator[SEP] identifier[actuals] , Keyword[double] identifier[delta] operator[SEP] Keyw...
private void createManagedService(final BundleContext context) { ManagedService service = this::scheduleUpdateConfig; final Dictionary<String, String> props = new Hashtable<>(); props.put(Constants.SERVICE_PID, org.ops4j.pax.web.service.WebContainerConstants.PID); context.registerService(ManagedService.class, s...
class class_name[name] begin[{] method[createManagedService, return_type[void], modifier[private], parameter[context]] begin[{] local_variable[type[ManagedService], service] local_variable[type[Dictionary], props] call[props.put, parameter[member[Constants.SERVICE_PID], member[o...
Keyword[private] Keyword[void] identifier[createManagedService] operator[SEP] Keyword[final] identifier[BundleContext] identifier[context] operator[SEP] { identifier[ManagedService] identifier[service] operator[=] Keyword[this] operator[::] identifier[scheduleUpdateConfig] operator[SEP] Keyword[final] identifier...
public boolean isFIFO() { if (capacity == null || capacity.getDecrementer() == null || TimedOutDecrementer.class.getName().equals(capacity.getDecrementer().getClass().getName())) return false; return true; }
class class_name[name] begin[{] method[isFIFO, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.capacity], ==, literal[null]], ||, binary_operation[call[capacity.getDecrementer, parameter[]], ==, literal[null]]], |...
Keyword[public] Keyword[boolean] identifier[isFIFO] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[capacity] operator[==] Other[null] operator[||] identifier[capacity] operator[SEP] identifier[getDecrementer] operator[SEP] operator[SEP] operator[==] Other[null] operator[||] identifier[TimedOu...
protected boolean isMatchingZX(Op opA, Op opB) { if (opA.x() == opB.x() && opA.z() == opB.z() && opA.x() == opB.z()) return true; return false; }
class class_name[name] begin[{] method[isMatchingZX, return_type[type[boolean]], modifier[protected], parameter[opA, opB]] begin[{] if[binary_operation[binary_operation[binary_operation[call[opA.x, parameter[]], ==, call[opB.x, parameter[]]], &&, binary_operation[call[opA.z, parameter[]], ==, c...
Keyword[protected] Keyword[boolean] identifier[isMatchingZX] operator[SEP] identifier[Op] identifier[opA] , identifier[Op] identifier[opB] operator[SEP] { Keyword[if] operator[SEP] identifier[opA] operator[SEP] identifier[x] operator[SEP] operator[SEP] operator[==] identifier[opB] operator[SEP] identifier[x] op...
public short[] extractUCharArray() { final byte[] argOut = element.value.uchar_att_value(); final short[] val = new short[argOut.length]; final short mask = 0xFF; for (int i = 0; i < argOut.length; i++) { val[i] = (short) (mask & argOut[i]); } return val; ...
class class_name[name] begin[{] method[extractUCharArray, return_type[type[short]], modifier[public], parameter[]] begin[{] local_variable[type[byte], argOut] local_variable[type[short], val] local_variable[type[short], mask] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[public] Keyword[short] operator[SEP] operator[SEP] identifier[extractUCharArray] operator[SEP] operator[SEP] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[argOut] operator[=] identifier[element] operator[SEP] identifier[value] operator[SEP] identifier[uchar_att_value] operator[SEP...
public boolean addValue(String property, String value) { if (!has()) { getOrCreate(); } boolean added = false; if (!hasValue(property, value)) { TRow row = newRow(); row.setValue(COLUMN_PROPERTY, property); row.setValue(COLUMN_VALUE, value); getDao().insert(row); added = true; } return add...
class class_name[name] begin[{] method[addValue, return_type[type[boolean]], modifier[public], parameter[property, value]] begin[{] if[call[.has, parameter[]]] begin[{] call[.getOrCreate, parameter[]] else begin[{] None end[}] local_variable[type[...
Keyword[public] Keyword[boolean] identifier[addValue] operator[SEP] identifier[String] identifier[property] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[has] operator[SEP] operator[SEP] operator[SEP] { identifier[getOrCreate] operator[SEP] op...
protected final void populateIdAccessorMethods(EntityMetadata metadata, Class<?> clazz, Field f) { try { BeanInfo info = Introspector.getBeanInfo(clazz); for (PropertyDescriptor descriptor : info.getPropertyDescriptors()) { if (descriptor....
class class_name[name] begin[{] method[populateIdAccessorMethods, return_type[void], modifier[final protected], parameter[metadata, clazz, f]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Mem...
Keyword[protected] Keyword[final] Keyword[void] identifier[populateIdAccessorMethods] operator[SEP] identifier[EntityMetadata] identifier[metadata] , identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[Field] identifier[f] operator[SEP] { Keyword[try] { identifier[Be...
@Override public void clear() { if (mSize != 0) { freeArrays(mHashes, mArray, mSize); mHashes = EmptyArray.INT; mArray = EmptyArray.OBJECT; mSize = 0; } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.mSize], !=, literal[0]]] begin[{] call[.freeArrays, parameter[member[.mHashes], member[.mArray], member[.mSize]]] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mSize] operator[!=] Other[0] operator[SEP] { identifier[freeArrays] operator[SEP] identifier[mHashes] , identifier[mArray] , identifier[mSize] operato...
public void adjustOffsets(final IGeoPoint pGeoPoint, final PointF pPixel) { if (pPixel == null) { return; } final Point unRotatedExpectedPixel = unrotateAndScalePoint((int)pPixel.x, (int)pPixel.y, null); final Point unRotatedActualPixel = toPixels(pGeoPoint, null); final long deltaX = unRotatedExpectedPixe...
class class_name[name] begin[{] method[adjustOffsets, return_type[void], modifier[public], parameter[pGeoPoint, pPixel]] begin[{] if[binary_operation[member[.pPixel], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[Poin...
Keyword[public] Keyword[void] identifier[adjustOffsets] operator[SEP] Keyword[final] identifier[IGeoPoint] identifier[pGeoPoint] , Keyword[final] identifier[PointF] identifier[pPixel] operator[SEP] { Keyword[if] operator[SEP] identifier[pPixel] operator[==] Other[null] operator[SEP] { Keyword[return]...
protected void checkPermissionsForMassEdit(CmsObject cms) throws CmsException { OpenCms.getRoleManager().checkRoleForResource(cms, CmsRole.ADMINISTRATOR, "/"); }
class class_name[name] begin[{] method[checkPermissionsForMassEdit, return_type[void], modifier[protected], parameter[cms]] begin[{] call[OpenCms.getRoleManager, parameter[]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[checkPermissionsForMassEdit] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[OpenCms] operator[SEP] identifier[getRoleManager] operator[SEP] operator[SEP] operator[SEP] identifier[checkRoleForResou...
public static ImageArchiveManifestEntry findEntryByRepoTag(String repoTag, ImageArchiveManifest manifest) { if(repoTag == null || manifest == null) { return null; } for(ImageArchiveManifestEntry entry : manifest.getEntries()) { for(String entryRepoTag : entry.getRepoTags...
class class_name[name] begin[{] method[findEntryByRepoTag, return_type[type[ImageArchiveManifestEntry]], modifier[public static], parameter[repoTag, manifest]] begin[{] if[binary_operation[binary_operation[member[.repoTag], ==, literal[null]], ||, binary_operation[member[.manifest], ==, literal...
Keyword[public] Keyword[static] identifier[ImageArchiveManifestEntry] identifier[findEntryByRepoTag] operator[SEP] identifier[String] identifier[repoTag] , identifier[ImageArchiveManifest] identifier[manifest] operator[SEP] { Keyword[if] operator[SEP] identifier[repoTag] operator[==] Other[null] operator[||] id...
private static CallSite createPojoSite(CallSite callSite, Object receiver, Object[] args) { final Class klazz = receiver.getClass(); MetaClass metaClass = InvokerHelper.getMetaClass(receiver); if (!GroovyCategorySupport.hasCategoryInCurrentThread() && metaClass instanceof MetaClassImpl) { ...
class class_name[name] begin[{] method[createPojoSite, return_type[type[CallSite]], modifier[private static], parameter[callSite, receiver, args]] begin[{] local_variable[type[Class], klazz] local_variable[type[MetaClass], metaClass] if[binary_operation[call[GroovyCategorySuppor...
Keyword[private] Keyword[static] identifier[CallSite] identifier[createPojoSite] operator[SEP] identifier[CallSite] identifier[callSite] , identifier[Object] identifier[receiver] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[final] identifier[Class] identifier[klazz]...
@Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync( com.amazonaws.handlers.AsyncHandler<DescribeClustersRequest, DescribeClustersResult> asyncHandler) { return describeClustersAsync(new DescribeClustersRequest(), asyncHandler); }
class class_name[name] begin[{] method[describeClustersAsync, return_type[type[java]], modifier[public], parameter[asyncHandler]] begin[{] return[call[.describeClustersAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[DescribeClustersResult] operator[>] identifier[describeClustersAsync] operator[SEP] identifier[com] operator[SEP] identifier[ama...
public InstructionHandle getLabeledInstruction(String label) { PatternElementMatch first = getFirstLabeledMatch(label); return first != null ? first.getMatchedInstructionInstructionHandle() : null; }
class class_name[name] begin[{] method[getLabeledInstruction, return_type[type[InstructionHandle]], modifier[public], parameter[label]] begin[{] local_variable[type[PatternElementMatch], first] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=first, postfix_ope...
Keyword[public] identifier[InstructionHandle] identifier[getLabeledInstruction] operator[SEP] identifier[String] identifier[label] operator[SEP] { identifier[PatternElementMatch] identifier[first] operator[=] identifier[getFirstLabeledMatch] operator[SEP] identifier[label] operator[SEP] operator[SEP] Keyword[ret...
public ServiceFuture<ExpressRouteCircuitInner> beginCreateOrUpdateAsync(String resourceGroupName, String circuitName, ExpressRouteCircuitInner parameters, final ServiceCallback<ExpressRouteCircuitInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGrou...
class class_name[name] begin[{] method[beginCreateOrUpdateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, circuitName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.beginCreateOrUpdateWithServiceResponseAsync, para...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[ExpressRouteCircuitInner] operator[>] identifier[beginCreateOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[circuitName] , identifier[ExpressRouteCircuitInner] identifier[parameters] , Keywo...
@Override protected boolean accept(Move<? super SolutionType> move){ // call super if(super.accept(move)){ // update tabu memory tabuMemory.registerVisitedSolution(getCurrentSolution(), move); // update successful return true; } else { ...
class class_name[name] begin[{] method[accept, return_type[type[boolean]], modifier[protected], parameter[move]] begin[{] if[SuperMethodInvocation(arguments=[MemberReference(member=move, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=accept, postfix_operators=[], ...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[accept] operator[SEP] identifier[Move] operator[<] operator[?] Keyword[super] identifier[SolutionType] operator[>] identifier[move] operator[SEP] { Keyword[if] operator[SEP] Keyword[super] operator[SEP] identifier[accept] operator[...
private Map<String, Integer> loadConfig(BufferedReader br) throws IOException { Map<String, Integer> featureIndex = new HashMap<String, Integer>(); String temp = br.readLine();// #rdr#8/0/0 int featureNum = ObjConver.getIntValue(StringUtil.matcherFirst("\\d+", temp)); // 找到特征个数 List<int[]> list = new ArrayL...
class class_name[name] begin[{] method[loadConfig, return_type[type[Map]], modifier[private], parameter[br]] begin[{] local_variable[type[Map], featureIndex] local_variable[type[String], temp] local_variable[type[int], featureNum] local_variable[type[List], list] ForStat...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[Integer] operator[>] identifier[loadConfig] operator[SEP] identifier[BufferedReader] identifier[br] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Map] operator[<] identifier[String] , identifier[Integer] operator[...
void createImpl() throws SocketException { if (impl == null) setImpl(); try { impl.create(true); created = true; } catch (IOException e) { throw new SocketException(e.getMessage()); } }
class class_name[name] begin[{] method[createImpl, return_type[void], modifier[default], parameter[]] begin[{] if[binary_operation[member[.impl], ==, literal[null]]] begin[{] call[.setImpl, parameter[]] else begin[{] None end[}] TryStatement(block=[StatementE...
Keyword[void] identifier[createImpl] operator[SEP] operator[SEP] Keyword[throws] identifier[SocketException] { Keyword[if] operator[SEP] identifier[impl] operator[==] Other[null] operator[SEP] identifier[setImpl] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[impl] operator[SEP] i...
public static Result created(Path content, boolean inline) { return created(content, inline, StaticFileMimeTypes.fileMimeTypes()); }
class class_name[name] begin[{] method[created, return_type[type[Result]], modifier[public static], parameter[content, inline]] begin[{] return[call[.created, parameter[member[.content], member[.inline], call[StaticFileMimeTypes.fileMimeTypes, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Result] identifier[created] operator[SEP] identifier[Path] identifier[content] , Keyword[boolean] identifier[inline] operator[SEP] { Keyword[return] identifier[created] operator[SEP] identifier[content] , identifier[inline] , identifier[StaticFileMimeTypes] operator[...
public Optional<LabelGetter> create(final Class<?> beanClass, final String fieldName) { ArgUtils.notNull(beanClass, "beanClass"); ArgUtils.notEmpty(fieldName, "fieldName"); // フィールド Map labelsの場合 Optional<LabelGetter> LabelGetter = createMapField(beanClass, fieldN...
class class_name[name] begin[{] method[create, return_type[type[Optional]], modifier[public], parameter[beanClass, fieldName]] begin[{] call[ArgUtils.notNull, parameter[member[.beanClass], literal["beanClass"]]] call[ArgUtils.notEmpty, parameter[member[.fieldName], literal["fiel...
Keyword[public] identifier[Optional] operator[<] identifier[LabelGetter] operator[>] identifier[create] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[beanClass] , Keyword[final] identifier[String] identifier[fieldName] operator[SEP] { identifier[ArgUtils] operator...
public static String dumpString(byte[] frame, int offset, int length, boolean ascii) { if ((frame == null)|| (length == 0)) return null; // Main formatting is performed in buf. asciibuf is used to hold the // ascii translation. asciibuf is appended to buf before a new line is started StringBuffer buf = ...
class class_name[name] begin[{] method[dumpString, return_type[type[String]], modifier[public static], parameter[frame, offset, length, ascii]] begin[{] if[binary_operation[binary_operation[member[.frame], ==, literal[null]], ||, binary_operation[member[.length], ==, literal[0]]]] begin[{] retu...
Keyword[public] Keyword[static] identifier[String] identifier[dumpString] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[frame] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] , Keyword[boolean] identifier[ascii] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] i...
public ZipBuilder addDirectory(File sourceDir, String targetDir) throws IOException { addDirectory(sourceDir, sourceDir, targetDir, jarOutputStream); return this; }
class class_name[name] begin[{] method[addDirectory, return_type[type[ZipBuilder]], modifier[public], parameter[sourceDir, targetDir]] begin[{] call[.addDirectory, parameter[member[.sourceDir], member[.sourceDir], member[.targetDir], member[.jarOutputStream]]] return[THIS[]] end[}] ...
Keyword[public] identifier[ZipBuilder] identifier[addDirectory] operator[SEP] identifier[File] identifier[sourceDir] , identifier[String] identifier[targetDir] operator[SEP] Keyword[throws] identifier[IOException] { identifier[addDirectory] operator[SEP] identifier[sourceDir] , identifier[sourceDir] , identif...