code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void updateUsedBytes(Map<String, Long> usedBytesOnTiers) { mUsedBytes = 0; mUsedBytesOnTiers = new HashMap<>(usedBytesOnTiers); for (long t : mUsedBytesOnTiers.values()) { mUsedBytes += t; } }
class class_name[name] begin[{] method[updateUsedBytes, return_type[void], modifier[public], parameter[usedBytesOnTiers]] begin[{] assign[member[.mUsedBytes], literal[0]] assign[member[.mUsedBytesOnTiers], ClassCreator(arguments=[MemberReference(member=usedBytesOnTiers, postfix_...
Keyword[public] Keyword[void] identifier[updateUsedBytes] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Long] operator[>] identifier[usedBytesOnTiers] operator[SEP] { identifier[mUsedBytes] operator[=] Other[0] operator[SEP] identifier[mUsedBytesOnTiers] operator[=] Keyword[new] iden...
public static String chomp(final String str) { if (N.isNullOrEmpty(str)) { return str; } if (str.length() == 1) { final char ch = str.charAt(0); if (ch == N.CHAR_CR || ch == N.CHAR_LF) { return N.EMPTY_STRING; } ...
class class_name[name] begin[{] method[chomp, return_type[type[String]], modifier[public static], parameter[str]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.str]]]] begin[{] return[member[.str]] else begin[{] None end[}] if[binary_operation[c...
Keyword[public] Keyword[static] identifier[String] identifier[chomp] operator[SEP] Keyword[final] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[N] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[str] operator[SEP] operator[SEP] { Keyword[retur...
@Override public boolean canManage(RepositoryType managerType) { return (managerType == RepositoryType.MAVEN) || (managerType == RepositoryType.NPM); }
class class_name[name] begin[{] method[canManage, return_type[type[boolean]], modifier[public], parameter[managerType]] begin[{] return[binary_operation[binary_operation[member[.managerType], ==, member[RepositoryType.MAVEN]], ||, binary_operation[member[.managerType], ==, member[RepositoryType.NPM]]]]...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[canManage] operator[SEP] identifier[RepositoryType] identifier[managerType] operator[SEP] { Keyword[return] operator[SEP] identifier[managerType] operator[==] identifier[RepositoryType] operator[SEP] identifier[MAVEN] operator[SEP] op...
@MainThread private void scheduleFailureCallbacks(Event event, EventFailure failure) { // Sending failure callback for explicit handlers of given event for (EventTarget target : targets) { for (EventMethod method : target.methods) { if (event.getKey().equals(method.eventK...
class class_name[name] begin[{] method[scheduleFailureCallbacks, return_type[void], modifier[private], parameter[event, failure]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Met...
annotation[@] identifier[MainThread] Keyword[private] Keyword[void] identifier[scheduleFailureCallbacks] operator[SEP] identifier[Event] identifier[event] , identifier[EventFailure] identifier[failure] operator[SEP] { Keyword[for] operator[SEP] identifier[EventTarget] identifier[target] operator[:] identifier[...
@Override protected boolean putToQueueStorage(Connection conn, IQueueMessage<String, byte[]> msg) { String qid = msg.getId(); if (StringUtils.isEmpty(qid)) { qid = QueueUtils.IDGEN.generateId128Hex(); } int numRows = getJdbcHelper().execute(conn, SQL_REPUT_TO_QUEUE, qid, ...
class class_name[name] begin[{] method[putToQueueStorage, return_type[type[boolean]], modifier[protected], parameter[conn, msg]] begin[{] local_variable[type[String], qid] if[call[StringUtils.isEmpty, parameter[member[.qid]]]] begin[{] assign[member[.qid], call[Q...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[putToQueueStorage] operator[SEP] identifier[Connection] identifier[conn] , identifier[IQueueMessage] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[msg] operator[SEP] { identifie...
public void addDateModifiedEnd(long end) { m_searchObject.setDateModifiedEnd(end); m_searchObjectChanged = true; ValueChangeEvent.fire(this, m_searchObject); }
class class_name[name] begin[{] method[addDateModifiedEnd, return_type[void], modifier[public], parameter[end]] begin[{] call[m_searchObject.setDateModifiedEnd, parameter[member[.end]]] assign[member[.m_searchObjectChanged], literal[true]] call[ValueChangeEvent.f...
Keyword[public] Keyword[void] identifier[addDateModifiedEnd] operator[SEP] Keyword[long] identifier[end] operator[SEP] { identifier[m_searchObject] operator[SEP] identifier[setDateModifiedEnd] operator[SEP] identifier[end] operator[SEP] operator[SEP] identifier[m_searchObjectChanged] operator[=] literal[boolean]...
public String createParameterStringForSignature(Map<String, String> parameters) { if (parameters == null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "Null parameters object provided; returning empty string"); } return ""; } Map<String, String> ...
class class_name[name] begin[{] method[createParameterStringForSignature, return_type[type[String]], modifier[public], parameter[parameters]] begin[{] if[binary_operation[member[.parameters], ==, literal[null]]] begin[{] if[call[tc.isDebugEnabled, parameter[]]] begin[{] ...
Keyword[public] identifier[String] identifier[createParameterStringForSignature] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parameters] operator[SEP] { Keyword[if] operator[SEP] identifier[parameters] operator[==] Other[null] operator[SEP] { ...
public static List<CPRuleUserSegmentRel> toModels( CPRuleUserSegmentRelSoap[] soapModels) { if (soapModels == null) { return null; } List<CPRuleUserSegmentRel> models = new ArrayList<CPRuleUserSegmentRel>(soapModels.length); for (CPRuleUserSegmentRelSoap soapModel : soapModels) { models.add(toModel(so...
class class_name[name] begin[{] method[toModels, return_type[type[List]], modifier[public static], parameter[soapModels]] begin[{] if[binary_operation[member[.soapModels], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CPRuleUserSegmentRel] operator[>] identifier[toModels] operator[SEP] identifier[CPRuleUserSegmentRelSoap] operator[SEP] operator[SEP] identifier[soapModels] operator[SEP] { Keyword[if] operator[SEP] identifier[soapModels] operator[==] Other[...
public void setDeviceManufacturerSegment(com.google.api.ads.admanager.axis.v201902.DeviceManufacturerTargeting deviceManufacturerSegment) { this.deviceManufacturerSegment = deviceManufacturerSegment; }
class class_name[name] begin[{] method[setDeviceManufacturerSegment, return_type[void], modifier[public], parameter[deviceManufacturerSegment]] begin[{] assign[THIS[member[None.deviceManufacturerSegment]], member[.deviceManufacturerSegment]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDeviceManufacturerSegment] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201902] operator[SEP] identifier[...
void addFreeTypeListener(List<Type> types, FreeTypeListener ftl) { freeTypeListeners.put(ftl, freeVarsIn(types)); }
class class_name[name] begin[{] method[addFreeTypeListener, return_type[void], modifier[default], parameter[types, ftl]] begin[{] call[freeTypeListeners.put, parameter[member[.ftl], call[.freeVarsIn, parameter[member[.types]]]]] end[}] END[}]
Keyword[void] identifier[addFreeTypeListener] operator[SEP] identifier[List] operator[<] identifier[Type] operator[>] identifier[types] , identifier[FreeTypeListener] identifier[ftl] operator[SEP] { identifier[freeTypeListeners] operator[SEP] identifier[put] operator[SEP] identifier[ftl] , identifier[freeVarsI...
private static Node returnedExpression(Node fn) { Node expectedBlock = NodeUtil.getFunctionBody(fn); if (!expectedBlock.hasOneChild()) { return null; } Node expectedReturn = expectedBlock.getFirstChild(); if (!expectedReturn.isReturn()) { return null; } if (!expectedReturn.hasO...
class class_name[name] begin[{] method[returnedExpression, return_type[type[Node]], modifier[private static], parameter[fn]] begin[{] local_variable[type[Node], expectedBlock] if[call[expectedBlock.hasOneChild, parameter[]]] begin[{] return[literal[null]] else begin[...
Keyword[private] Keyword[static] identifier[Node] identifier[returnedExpression] operator[SEP] identifier[Node] identifier[fn] operator[SEP] { identifier[Node] identifier[expectedBlock] operator[=] identifier[NodeUtil] operator[SEP] identifier[getFunctionBody] operator[SEP] identifier[fn] operator[SEP] operator[...
public String startDirectEditDisabled(CmsDirectEditParams params, CmsDirectEditResourceInfo resourceInfo) { StringBuffer result = new StringBuffer(256); result.append("<!-- EDIT BLOCK START (DISABLED): "); result.append(params.m_resourceName); result.append(" ["); result.append...
class class_name[name] begin[{] method[startDirectEditDisabled, return_type[type[String]], modifier[public], parameter[params, resourceInfo]] begin[{] local_variable[type[StringBuffer], result] call[result.append, parameter[literal["<!-- EDIT BLOCK START (DISABLED): "]]] ...
Keyword[public] identifier[String] identifier[startDirectEditDisabled] operator[SEP] identifier[CmsDirectEditParams] identifier[params] , identifier[CmsDirectEditResourceInfo] identifier[resourceInfo] operator[SEP] { identifier[StringBuffer] identifier[result] operator[=] Keyword[new] identifier[StringBuffer] o...
public static void transform(final Source input, final Source sheet, final Result output) { try { final DOMResult intermediate = new DOMResult(createEmptyDocument()); // Transform. createTransformer(sheet).transform(input, intermediate); // Format. ...
class class_name[name] begin[{] method[transform, return_type[void], modifier[public static], parameter[input, sheet, output]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(argume...
Keyword[public] Keyword[static] Keyword[void] identifier[transform] operator[SEP] Keyword[final] identifier[Source] identifier[input] , Keyword[final] identifier[Source] identifier[sheet] , Keyword[final] identifier[Result] identifier[output] operator[SEP] { Keyword[try] { Keyword[final] identifier[...
public ServiceCall<SessionResponse> createSession(CreateSessionOptions createSessionOptions) { Validator.notNull(createSessionOptions, "createSessionOptions cannot be null"); String[] pathSegments = { "v2/assistants", "sessions" }; String[] pathParameters = { createSessionOptions.assistantId() }; Reques...
class class_name[name] begin[{] method[createSession, return_type[type[ServiceCall]], modifier[public], parameter[createSessionOptions]] begin[{] call[Validator.notNull, parameter[member[.createSessionOptions], literal["createSessionOptions cannot be null"]]] local_variable[type[String]...
Keyword[public] identifier[ServiceCall] operator[<] identifier[SessionResponse] operator[>] identifier[createSession] operator[SEP] identifier[CreateSessionOptions] identifier[createSessionOptions] operator[SEP] { identifier[Validator] operator[SEP] identifier[notNull] operator[SEP] identifier[createSessionOptio...
public static <T extends Tree> Matcher<T> inLoop() { return new Matcher<T>() { @Override public boolean matches(Tree tree, VisitorState state) { TreePath path = state.getPath().getParentPath(); Tree node = path.getLeaf(); while (path != null) { switch (node.getKind()) {...
class class_name[name] begin[{] method[inLoop, return_type[type[Matcher]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], declarators=[Variable...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Tree] operator[>] identifier[Matcher] operator[<] identifier[T] operator[>] identifier[inLoop] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Matcher] operator[<] identifier[T] operator[>] operator[SEP] o...
@Nullable public static IJson readFromStream (@Nonnull final InputStream aIS, @Nonnull final Charset aFallbackCharset, @Nullable final IJsonParseExceptionCallback aCustomExceptionCallback) { ValueEnforcer.notNull (aIS, "InputStream"); ...
class class_name[name] begin[{] method[readFromStream, return_type[type[IJson]], modifier[public static], parameter[aIS, aFallbackCharset, aCustomExceptionCallback]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aIS], literal["InputStream"]]] call[ValueEnforcer.notNull,...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[IJson] identifier[readFromStream] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[InputStream] identifier[aIS] , annotation[@] identifier[Nonnull] Keyword[final] identifier[Charset] identifier[aFallbackCharset] , a...
private boolean isDateSkeleton(String skeleton) { List<String> parts = Splitter.on('-').splitToList(skeleton); if (parts.size() > 1) { skeleton = parts.get(0); } for (Node node : DATETIME_PARSER.parse(skeleton)) { if (node instanceof Field) { Field field = (Field) node; switc...
class class_name[name] begin[{] method[isDateSkeleton, return_type[type[boolean]], modifier[private], parameter[skeleton]] begin[{] local_variable[type[List], parts] if[binary_operation[call[parts.size, parameter[]], >, literal[1]]] begin[{] assign[member[.skelet...
Keyword[private] Keyword[boolean] identifier[isDateSkeleton] operator[SEP] identifier[String] identifier[skeleton] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[parts] operator[=] identifier[Splitter] operator[SEP] identifier[on] operator[SEP] literal[String] operator[SEP...
protected synchronized int getFirstReachableMessageId() { final boolean followersRunning = !this.runningFollowerStartMarks.isEmpty(); if (!followersRunning && this.terminatedFollowerRanges.isEmpty()) { // no followers present; no reachable messages return -1; } fi...
class class_name[name] begin[{] method[getFirstReachableMessageId, return_type[type[int]], modifier[synchronized protected], parameter[]] begin[{] local_variable[type[boolean], followersRunning] if[binary_operation[member[.followersRunning], &&, THIS[member[None.terminatedFollowerRanges...
Keyword[protected] Keyword[synchronized] Keyword[int] identifier[getFirstReachableMessageId] operator[SEP] operator[SEP] { Keyword[final] Keyword[boolean] identifier[followersRunning] operator[=] operator[!] Keyword[this] operator[SEP] identifier[runningFollowerStartMarks] operator[SEP] identifier[isEmpty] opera...
public GetterType<BeanType<T>> getOrCreateGetter() { List<Node> nodeList = childNode.get("getter"); if (nodeList != null && nodeList.size() > 0) { return new GetterTypeImpl<BeanType<T>>(this, "getter", childNode, nodeList.get(0)); } return createGetter(); }
class class_name[name] begin[{] method[getOrCreateGetter, return_type[type[GetterType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, para...
Keyword[public] identifier[GetterType] operator[<] identifier[BeanType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateGetter] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNode] operator[SEP] iden...
public java.util.Map<String, BucketInfo> getFacets() { if (facets == null) { facets = new com.amazonaws.internal.SdkInternalMap<String, BucketInfo>(); } return facets; }
class class_name[name] begin[{] method[getFacets, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.facets], ==, literal[null]]] begin[{] assign[member[.facets], ClassCreator(arguments=[], body=None, constructor_type_arguments=N...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[BucketInfo] operator[>] identifier[getFacets] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[facets] operator[==] Other[null] operator[SEP] { i...
@Override public synchronized T refer() { if (proxyIns != null) { return proxyIns; } referenceConfig = new ReferenceConfig<T>(); covert(consumerConfig, referenceConfig); proxyIns = referenceConfig.get(); return proxyIns; }
class class_name[name] begin[{] method[refer, return_type[type[T]], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[member[.proxyIns], !=, literal[null]]] begin[{] return[member[.proxyIns]] else begin[{] None end[}] assign[mem...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[T] identifier[refer] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[proxyIns] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[proxyIns] operator[SEP] } identifier[r...
public static hanode_routemonitor6_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor6_binding obj = new hanode_routemonitor6_binding(); obj.set_id(id); hanode_routemonitor6_binding response[] = (hanode_routemonitor6_binding[]) obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[hanode_routemonitor6_binding]], modifier[public static], parameter[service, id]] begin[{] local_variable[type[hanode_routemonitor6_binding], obj] call[obj.set_id, parameter[member[.id]]] local_variable[type[hanode_rout...
Keyword[public] Keyword[static] identifier[hanode_routemonitor6_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[Long] identifier[id] operator[SEP] Keyword[throws] identifier[Exception] { identifier[hanode_routemonitor6_binding] identi...
public static Path createTempDirectory(Path dir, String prefix) throws IOException { try { return Files.createTempDirectory(dir, prefix); } catch (UnsupportedOperationException ex) { } return Files.createTempDirectory(dir, prefix); }
class class_name[name] begin[{] method[createTempDirectory, return_type[type[Path]], modifier[public static], parameter[dir, prefix]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=dir, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[static] identifier[Path] identifier[createTempDirectory] operator[SEP] identifier[Path] identifier[dir] , identifier[String] identifier[prefix] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[return] identifier[Files] operator[SEP] identifier[cre...
public String predict(LabelledDocument document) { if (document.getReferencedContent() != null) return predict(document.getReferencedContent()); else return predict(document.getContent()); }
class class_name[name] begin[{] method[predict, return_type[type[String]], modifier[public], parameter[document]] begin[{] if[binary_operation[call[document.getReferencedContent, parameter[]], !=, literal[null]]] begin[{] return[call[.predict, parameter[call[document.getReferencedContent, param...
Keyword[public] identifier[String] identifier[predict] operator[SEP] identifier[LabelledDocument] identifier[document] operator[SEP] { Keyword[if] operator[SEP] identifier[document] operator[SEP] identifier[getReferencedContent] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] Keyword[return] i...
@Override public TsiPeer extractPeer() throws GeneralSecurityException { Preconditions.checkState(!isInProgress(), "Handshake is not complete."); List<TsiPeer.Property<?>> peerProperties = new ArrayList<>(); peerProperties.add( new TsiPeer.StringProperty( TSI_SERVICE_ACCOUNT_PEER_PROPE...
class class_name[name] begin[{] method[extractPeer, return_type[type[TsiPeer]], modifier[public], parameter[]] begin[{] call[Preconditions.checkState, parameter[call[.isInProgress, parameter[]], literal["Handshake is not complete."]]] local_variable[type[List], peerProperties] ...
annotation[@] identifier[Override] Keyword[public] identifier[TsiPeer] identifier[extractPeer] operator[SEP] operator[SEP] Keyword[throws] identifier[GeneralSecurityException] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] operator[!] identifier[isInProgress] operator[SEP] operato...
public Vector3d div(double x, double y, double z) { return div(x, y, z, thisOrNew()); }
class class_name[name] begin[{] method[div, return_type[type[Vector3d]], modifier[public], parameter[x, y, z]] begin[{] return[call[.div, parameter[member[.x], member[.y], member[.z], call[.thisOrNew, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Vector3d] identifier[div] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { Keyword[return] identifier[div] operator[SEP] identifier[x] , identifier[y] , identifier[z] , identifier[thisOrNew] operator[SEP] o...
void saveOU() { try { List<String> resources = new ArrayList<String>(); for (I_CmsEditableGroupRow row : m_ouResources.getRows()) { resources.add(((CmsPathSelectField)row.getComponent()).getValue()); } if (m_ou == null) { String pa...
class class_name[name] begin[{] method[saveOU, return_type[void], modifier[default], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postf...
Keyword[void] identifier[saveOU] operator[SEP] operator[SEP] { Keyword[try] { identifier[List] operator[<] identifier[String] operator[>] identifier[resources] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[fo...
public void discardBody() { try (InputStream in = body) { InputStreams.discardAll(in); } catch (IOException e) { throw new RequestsException(e); } finally { close(); } }
class class_name[name] begin[{] method[discardBody, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=in, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=discardA...
Keyword[public] Keyword[void] identifier[discardBody] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[InputStream] identifier[in] operator[=] identifier[body] operator[SEP] { identifier[InputStreams] operator[SEP] identifier[discardAll] operator[SEP] identifier[in] operator[SEP] op...
public DepictionGenerator withOuterGlowHighlight(double width) { return withParam(StandardGenerator.Highlighting.class, StandardGenerator.HighlightStyle.OuterGlow) .withParam(StandardGenerator.OuterGlowWidth.class, width); }
class class_name[name] begin[{] method[withOuterGlowHighlight, return_type[type[DepictionGenerator]], modifier[public], parameter[width]] begin[{] return[call[.withParam, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=StandardGenerator, selectors=[], type=ReferenceType(ar...
Keyword[public] identifier[DepictionGenerator] identifier[withOuterGlowHighlight] operator[SEP] Keyword[double] identifier[width] operator[SEP] { Keyword[return] identifier[withParam] operator[SEP] identifier[StandardGenerator] operator[SEP] identifier[Highlighting] operator[SEP] Keyword[class] , identifier[Sta...
public List<DifferentialFunction> exec(String functionName, List<DifferentialFunction> cachedOps) { return sameDiffFunctionInstances.get(functionName).exec(cachedOps); }
class class_name[name] begin[{] method[exec, return_type[type[List]], modifier[public], parameter[functionName, cachedOps]] begin[{] return[call[sameDiffFunctionInstances.get, parameter[member[.functionName]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[DifferentialFunction] operator[>] identifier[exec] operator[SEP] identifier[String] identifier[functionName] , identifier[List] operator[<] identifier[DifferentialFunction] operator[>] identifier[cachedOps] operator[SEP] { Keyword[return] identifier[sameDi...
AutoBuffer call(AutoBuffer ab) { int tnum = ab.getTask(); RPC<?> t = ab._h2o.taskGet(tnum); // Forgotten task, but still must ACKACK if( t == null ) return RPC.ackack(ab,tnum); return t.response(ab); // Do the 2nd half of this task, includes ACKACK }
class class_name[name] begin[{] method[call, return_type[type[AutoBuffer]], modifier[default], parameter[ab]] begin[{] local_variable[type[int], tnum] local_variable[type[RPC], t] if[binary_operation[member[.t], ==, literal[null]]] begin[{] return[call[RPC.ackack, parameter[memb...
identifier[AutoBuffer] identifier[call] operator[SEP] identifier[AutoBuffer] identifier[ab] operator[SEP] { Keyword[int] identifier[tnum] operator[=] identifier[ab] operator[SEP] identifier[getTask] operator[SEP] operator[SEP] operator[SEP] identifier[RPC] operator[<] operator[?] operator[>] identifier[t] operat...
protected void registerJdbcComponent() { String componentPropName = GatewayConfigProperties.COMPONENT_PREFIX + IJdbcComponent.class.getSimpleName(); setConfigProperty(componentPropName, DefaultJdbcComponent.class.getName()); }
class class_name[name] begin[{] method[registerJdbcComponent, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[String], componentPropName] call[.setConfigProperty, parameter[member[.componentPropName], ClassReference(postfix_operators=[], prefix_operator...
Keyword[protected] Keyword[void] identifier[registerJdbcComponent] operator[SEP] operator[SEP] { identifier[String] identifier[componentPropName] operator[=] identifier[GatewayConfigProperties] operator[SEP] identifier[COMPONENT_PREFIX] operator[+] identifier[IJdbcComponent] operator[SEP] Keyword[class] operator...
public CreateAppRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
class class_name[name] begin[{] method[withTags, return_type[type[CreateAppRequest]], modifier[public], parameter[tags]] begin[{] call[.setTags, parameter[member[.tags]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[CreateAppRequest] identifier[withTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tags] operator[SEP] { identifier[setTags] operator[SEP] identifier[tags] operat...
@Nonnull // it's reflection, can't avoid unchecked cast @SuppressWarnings("unchecked") public static Module classNameToModule(final Parameters parameters, final Class<?> clazz, Optional<? extends Class<? extends Annotation>> annotation) throws IllegalAccessException, InvocationTargetException, Instant...
class class_name[name] begin[{] method[classNameToModule, return_type[type[Module]], modifier[public static], parameter[parameters, clazz, annotation]] begin[{] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member...
annotation[@] identifier[Nonnull] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Module] identifier[classNameToModule] operator[SEP] Keyword[final] identifier[Parameters] identifier[parameters] , Keyword[final] identifier[Class] operato...
public static IssueCategoryModel loadFromGraph(GraphContext graphContext, IssueCategory issueCategory) { return loadFromGraph(graphContext.getFramed(), issueCategory.getCategoryID()); }
class class_name[name] begin[{] method[loadFromGraph, return_type[type[IssueCategoryModel]], modifier[public static], parameter[graphContext, issueCategory]] begin[{] return[call[.loadFromGraph, parameter[call[graphContext.getFramed, parameter[]], call[issueCategory.getCategoryID, parameter[]]]]] e...
Keyword[public] Keyword[static] identifier[IssueCategoryModel] identifier[loadFromGraph] operator[SEP] identifier[GraphContext] identifier[graphContext] , identifier[IssueCategory] identifier[issueCategory] operator[SEP] { Keyword[return] identifier[loadFromGraph] operator[SEP] identifier[graphContext] operator...
@Override public <T> T get(EntityGetOperation<T> getter) throws ServiceException { try { return service.get(getter); } catch (UniformInterfaceException e) { throw processCatch(new ServiceException(e)); } catch (ClientHandlerException e) { throw processCatc...
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[getter]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=getter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, po...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] identifier[EntityGetOperation] operator[<] identifier[T] operator[>] identifier[getter] operator[SEP] Keyword[throws] identifier[ServiceException] { Keyword[try] { Keywo...
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.admanager.axis.v201805.RateCardServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.admanager.axis.v201805.RateCardSe...
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.admanager.axis.v201805, selectors=[Me...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
protected void initWithPrimitiveTypeArray() { // =========== primitve array type ============== transformers.put(boolean[].class, new Transformer() { @Override public SFSDataWrapper transform(Object value) { return new SFSDataWrapper(SFSDataType.BOOL_ARRAY, primitive...
class class_name[name] begin[{] method[initWithPrimitiveTypeArray, return_type[void], modifier[protected], parameter[]] begin[{] call[transformers.put, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[None], name=boolea...
Keyword[protected] Keyword[void] identifier[initWithPrimitiveTypeArray] operator[SEP] operator[SEP] { identifier[transformers] operator[SEP] identifier[put] operator[SEP] Keyword[boolean] operator[SEP] operator[SEP] operator[SEP] Keyword[class] , Keyword[new] identifier[Transformer] operator[SEP] operator[SEP] ...
public static <T extends ImageBase<T>> PyramidDiscrete<T> discreteGaussian( int[] scaleFactors , double sigma , int radius , boolean saveOriginalReference, ImageType<T> imageType ) { Class<Kernel1D> kernelType = FactoryKernel.getKernelType(imageType.getDataType(),1); Kernel1D kernel = FactoryKernelGau...
class class_name[name] begin[{] method[discreteGaussian, return_type[type[PyramidDiscrete]], modifier[public static], parameter[scaleFactors, sigma, radius, saveOriginalReference, imageType]] begin[{] local_variable[type[Class], kernelType] local_variable[type[Kernel1D], kernel] return[...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageBase] operator[<] identifier[T] operator[>] operator[>] identifier[PyramidDiscrete] operator[<] identifier[T] operator[>] identifier[discreteGaussian] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[scaleFactors...
public void open() { if (log.isTraceEnabled()) { // dump memory stats log.trace("Memory at open - free: {}K total: {}K", Runtime.getRuntime().freeMemory() / 1024, Runtime.getRuntime().totalMemory() / 1024); } }
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[]] begin[{] if[call[log.isTraceEnabled, parameter[]]] begin[{] call[log.trace, parameter[literal["Memory at open - free: {}K total: {}K"], binary_operation[call[Runtime.getRuntime...
Keyword[public] Keyword[void] identifier[open] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[Runtim...
@Override public EClass getIfcMappedItem() { if (ifcMappedItemEClass == null) { ifcMappedItemEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(355); } return ifcMappedItemEClass; }
class class_name[name] begin[{] method[getIfcMappedItem, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcMappedItemEClass], ==, literal[null]]] begin[{] assign[member[.ifcMappedItemEClass], Cast(expression=MethodInvocatio...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcMappedItem] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcMappedItemEClass] operator[==] Other[null] operator[SEP] { identifier[ifcMappedItemEClass] operator[=] operator[SEP] identifier[EClas...
public int next() { int curIndex = _index; // Compute the next index. if( _index >= 0 ) { int i = _state.length - 1; while( i >= 0 ) { _index += _sum[i]; if( ++_state[i] < _ranges[i] ) break; _index -= _...
class class_name[name] begin[{] method[next, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], curIndex] if[binary_operation[member[._index], >=, literal[0]]] begin[{] local_variable[type[int], i] while[binary_o...
Keyword[public] Keyword[int] identifier[next] operator[SEP] operator[SEP] { Keyword[int] identifier[curIndex] operator[=] identifier[_index] operator[SEP] Keyword[if] operator[SEP] identifier[_index] operator[>=] Other[0] operator[SEP] { Keyword[int] identifier[i] operator[=] identifier[_state] operat...
public static void convertFile(File keyFile, int toFormat, File toFile) throws IOException { SshPublicKeyFile pub = parse(new FileInputStream(keyFile)); createFile(pub.toPublicKey(), pub.getComment(), toFormat, toFile); }
class class_name[name] begin[{] method[convertFile, return_type[void], modifier[public static], parameter[keyFile, toFormat, toFile]] begin[{] local_variable[type[SshPublicKeyFile], pub] call[.createFile, parameter[call[pub.toPublicKey, parameter[]], call[pub.getComment, parameter[]], m...
Keyword[public] Keyword[static] Keyword[void] identifier[convertFile] operator[SEP] identifier[File] identifier[keyFile] , Keyword[int] identifier[toFormat] , identifier[File] identifier[toFile] operator[SEP] Keyword[throws] identifier[IOException] { identifier[SshPublicKeyFile] identifier[pub] operator[=] ide...
public T between(Object low, Object hi) { return _withComparisonOperator(ComparisonOperator.BETWEEN)._withValues(low, hi); }
class class_name[name] begin[{] method[between, return_type[type[T]], modifier[public], parameter[low, hi]] begin[{] return[call[._withComparisonOperator, parameter[member[ComparisonOperator.BETWEEN]]]] end[}] END[}]
Keyword[public] identifier[T] identifier[between] operator[SEP] identifier[Object] identifier[low] , identifier[Object] identifier[hi] operator[SEP] { Keyword[return] identifier[_withComparisonOperator] operator[SEP] identifier[ComparisonOperator] operator[SEP] identifier[BETWEEN] operator[SEP] operator[SEP] id...
protected void updatePatternSet(PatternSet value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); ...
class class_name[name] begin[{] method[updatePatternSet, return_type[void], modifier[protected], parameter[value, xmlTag, counter, element]] begin[{] local_variable[type[boolean], shouldExist] local_variable[type[Element], root] if[member[.shouldExist]] begin[{] loca...
Keyword[protected] Keyword[void] identifier[updatePatternSet] operator[SEP] identifier[PatternSet] identifier[value] , identifier[String] identifier[xmlTag] , identifier[Counter] identifier[counter] , identifier[Element] identifier[element] operator[SEP] { Keyword[boolean] identifier[shouldExist] operator[=] ...
public com.liferay.commerce.tax.engine.fixed.service.CommerceTaxFixedRateAddressRelService getCommerceTaxFixedRateAddressRelService() { return commerceTaxFixedRateAddressRelService; }
class class_name[name] begin[{] method[getCommerceTaxFixedRateAddressRelService, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.commerceTaxFixedRateAddressRelService]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[tax] operator[SEP] identifier[engine] operator[SEP] identifier[fixed] operator[SEP] identifier[service] operator[SEP] identifier[CommerceTaxFixedRateAddressRelService] identifier[getCommerceTaxF...
public void draw(float[] mvpMatrix, FloatBuffer vertexBuffer, int firstVertex, int vertexCount, int coordsPerVertex, int vertexStride, float[] texMatrix, FloatBuffer texBuffer, int textureId, int texStride) { GlUtil.checkGlError("draw start"); // Select the pro...
class class_name[name] begin[{] method[draw, return_type[void], modifier[public], parameter[mvpMatrix, vertexBuffer, firstVertex, vertexCount, coordsPerVertex, vertexStride, texMatrix, texBuffer, textureId, texStride]] begin[{] call[GlUtil.checkGlError, parameter[literal["draw start"]]] ...
Keyword[public] Keyword[void] identifier[draw] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[mvpMatrix] , identifier[FloatBuffer] identifier[vertexBuffer] , Keyword[int] identifier[firstVertex] , Keyword[int] identifier[vertexCount] , Keyword[int] identifier[coordsPerVertex] , Keyword[int] id...
public DeviceAttribute read_attribute(final DeviceProxy deviceProxy, final String attname) throws DevFailed { final String[] names = ApiUtil.toStringArray(attname); final DeviceAttribute[] attval = read_attribute(deviceProxy, names); return attval[0]; }
class class_name[name] begin[{] method[read_attribute, return_type[type[DeviceAttribute]], modifier[public], parameter[deviceProxy, attname]] begin[{] local_variable[type[String], names] local_variable[type[DeviceAttribute], attval] return[member[.attval]] end[}] END[}]
Keyword[public] identifier[DeviceAttribute] identifier[read_attribute] operator[SEP] Keyword[final] identifier[DeviceProxy] identifier[deviceProxy] , Keyword[final] identifier[String] identifier[attname] operator[SEP] Keyword[throws] identifier[DevFailed] { Keyword[final] identifier[String] operator[SEP] operat...
@Override public void render(final WComponent component, final RenderContext context) { PrintWriter out = ((WebXmlRenderContext) context).getWriter(); // If we are debugging the layout, write markers so that the html // designer can see where templates start and end. boolean debugLayout = ConfigurationPropert...
class class_name[name] begin[{] method[render, return_type[void], modifier[public], parameter[component, context]] begin[{] local_variable[type[PrintWriter], out] local_variable[type[boolean], debugLayout] if[member[.debugLayout]] begin[{] local_variable[type[String]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[render] operator[SEP] Keyword[final] identifier[WComponent] identifier[component] , Keyword[final] identifier[RenderContext] identifier[context] operator[SEP] { identifier[PrintWriter] identifier[out] operator[=] operator[SEP] operator[...
@Override public boolean shouldTerminate(int attempts, long nextAttemptAt) { return _first.shouldTerminate(attempts, nextAttemptAt) || _second.shouldTerminate(attempts, nextAttemptAt); }
class class_name[name] begin[{] method[shouldTerminate, return_type[type[boolean]], modifier[public], parameter[attempts, nextAttemptAt]] begin[{] return[binary_operation[call[_first.shouldTerminate, parameter[member[.attempts], member[.nextAttemptAt]]], ||, call[_second.shouldTerminate, parameter[memb...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[shouldTerminate] operator[SEP] Keyword[int] identifier[attempts] , Keyword[long] identifier[nextAttemptAt] operator[SEP] { Keyword[return] identifier[_first] operator[SEP] identifier[shouldTerminate] operator[SEP] identifier[attempts...
public synchronized void reload(boolean isStartup) { if ((OpenCms.getRunLevel() > OpenCms.RUNLEVEL_1_CORE_OBJECT) && OpenCms.getResourceManager().hasResourceType(TYPE_XML_BUNDLE)) { List<CmsResource> xmlBundles = Lists.newArrayList(); List<CmsResource> propertyBundles =...
class class_name[name] begin[{] method[reload, return_type[void], modifier[synchronized public], parameter[isStartup]] begin[{] if[binary_operation[binary_operation[call[OpenCms.getRunLevel, parameter[]], >, member[OpenCms.RUNLEVEL_1_CORE_OBJECT]], &&, call[OpenCms.getResourceManager, parameter...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[reload] operator[SEP] Keyword[boolean] identifier[isStartup] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[OpenCms] operator[SEP] identifier[getRunLevel] operator[SEP] operator[SEP] operator[>] identifier[OpenCms] operator[SEP] i...
@DoesServiceRequest public void create(FileRequestOptions options, OperationContext opContext) throws StorageException { if (opContext == null) { opContext = new OperationContext(); } assertNoSnapshot(); if (this.properties != null && this.properties.getShareQuota() != n...
class class_name[name] begin[{] method[create, return_type[void], modifier[public], parameter[options, opContext]] begin[{] if[binary_operation[member[.opContext], ==, literal[null]]] begin[{] assign[member[.opContext], ClassCreator(arguments=[], body=None, constructor_t...
annotation[@] identifier[DoesServiceRequest] Keyword[public] Keyword[void] identifier[create] operator[SEP] identifier[FileRequestOptions] identifier[options] , identifier[OperationContext] identifier[opContext] operator[SEP] Keyword[throws] identifier[StorageException] { Keyword[if] operator[SEP] identifier[op...
private String attachRequestString(String resourceName) { StringBuffer result = new StringBuffer(resourceName); boolean firstParam = true; if (resourceName.indexOf('?') == -1) { // no params in uri yet? result.append('?'); } else { firstParam = false;...
class class_name[name] begin[{] method[attachRequestString, return_type[type[String]], modifier[private], parameter[resourceName]] begin[{] local_variable[type[StringBuffer], result] local_variable[type[boolean], firstParam] if[binary_operation[call[resourceName.indexOf, paramet...
Keyword[private] identifier[String] identifier[attachRequestString] operator[SEP] identifier[String] identifier[resourceName] operator[SEP] { identifier[StringBuffer] identifier[result] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] identifier[resourceName] operator[SEP] operator[SEP] Keyword[bo...
private void recordOnePair(JSField access, JSchema accSchema, JSField encoding, JSchema encSchema) { int acc = access.getAccessor(accSchema); if (acc >= indices.length) return; indices[acc] = encoding.getAccessor(encSchema); }
class class_name[name] begin[{] method[recordOnePair, return_type[void], modifier[private], parameter[access, accSchema, encoding, encSchema]] begin[{] local_variable[type[int], acc] if[binary_operation[member[.acc], >=, member[indices.length]]] begin[{] return[None] else begin[...
Keyword[private] Keyword[void] identifier[recordOnePair] operator[SEP] identifier[JSField] identifier[access] , identifier[JSchema] identifier[accSchema] , identifier[JSField] identifier[encoding] , identifier[JSchema] identifier[encSchema] operator[SEP] { Keyword[int] identifier[acc] operator[=] identifier[a...
protected int findGTE(int[] list, int start, int len, int value) { int low = start; int high = start + (len - 1); int end = high; while (low <= high) { int mid = (low + high) / 2; int c = list[mid]; if (c > value) high = mid - 1; else if (c < value) low =...
class class_name[name] begin[{] method[findGTE, return_type[type[int]], modifier[protected], parameter[list, start, len, value]] begin[{] local_variable[type[int], low] local_variable[type[int], high] local_variable[type[int], end] while[binary_operation[member[.low], <=...
Keyword[protected] Keyword[int] identifier[findGTE] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[list] , Keyword[int] identifier[start] , Keyword[int] identifier[len] , Keyword[int] identifier[value] operator[SEP] { Keyword[int] identifier[low] operator[=] identifier[start] operator[SEP] ...
static List<String> uploadAndRegisterFiles( Collection<File> shipFiles, FileSystem fs, Path targetHomeDir, ApplicationId appId, List<Path> remotePaths, Map<String, LocalResource> localResources, StringBuilder envShipFileList) throws IOException, URISyntaxException { final List<String> classPaths...
class class_name[name] begin[{] method[uploadAndRegisterFiles, return_type[type[List]], modifier[static], parameter[shipFiles, fs, targetHomeDir, appId, remotePaths, localResources, envShipFileList]] begin[{] local_variable[type[List], classPaths] ForStatement(body=BlockStatement(label=None, st...
Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[uploadAndRegisterFiles] operator[SEP] identifier[Collection] operator[<] identifier[File] operator[>] identifier[shipFiles] , identifier[FileSystem] identifier[fs] , identifier[Path] identifier[targetHomeDir] , identifier[Applicat...
@Override protected String evalApplication() { String ret = null; final Pattern revisionPattern = Pattern.compile("@eFapsApplication[\\s].*"); final Matcher revisionMatcher = revisionPattern.matcher(getCode()); if (revisionMatcher.find()) { ret = revisionMatcher.group...
class class_name[name] begin[{] method[evalApplication, return_type[type[String]], modifier[protected], parameter[]] begin[{] local_variable[type[String], ret] local_variable[type[Pattern], revisionPattern] local_variable[type[Matcher], revisionMatcher] if[call[revisionM...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[evalApplication] operator[SEP] operator[SEP] { identifier[String] identifier[ret] operator[=] Other[null] operator[SEP] Keyword[final] identifier[Pattern] identifier[revisionPattern] operator[=] identifier[Pattern] operator[SEP] ...
public static ClassicQuandlSession create(final SessionOptions sessionOptions, final ClassicRESTDataProvider dataProvider) { ArgumentChecker.notNull(sessionOptions, "sessionOptions"); return new ClassicQuandlSession( sessionOptions, dataProvider, new ClassicMetaDataPackager()); }
class class_name[name] begin[{] method[create, return_type[type[ClassicQuandlSession]], modifier[public static], parameter[sessionOptions, dataProvider]] begin[{] call[ArgumentChecker.notNull, parameter[member[.sessionOptions], literal["sessionOptions"]]] return[ClassCreator(arguments=[...
Keyword[public] Keyword[static] identifier[ClassicQuandlSession] identifier[create] operator[SEP] Keyword[final] identifier[SessionOptions] identifier[sessionOptions] , Keyword[final] identifier[ClassicRESTDataProvider] identifier[dataProvider] operator[SEP] { identifier[ArgumentChecker] operator[SEP] identifie...
@Nonnull public final LBiBoolFunction<R> build() { final LBiBoolFunction<R> eventuallyFinal = this.eventually; LBiBoolFunction<R> retval; final Case<LLogicalBinaryOperator, LBiBoolFunction<R>>[] casesArray = cases.toArray(new Case[cases.size()]); retval = LBiBoolFunction.<R> biBoolFunc((a1, a2) -> { try ...
class class_name[name] begin[{] method[build, return_type[type[LBiBoolFunction]], modifier[final public], parameter[]] begin[{] local_variable[type[LBiBoolFunction], eventuallyFinal] local_variable[type[LBiBoolFunction], retval] local_variable[type[Case], casesArray] ass...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[final] identifier[LBiBoolFunction] operator[<] identifier[R] operator[>] identifier[build] operator[SEP] operator[SEP] { Keyword[final] identifier[LBiBoolFunction] operator[<] identifier[R] operator[>] identifier[eventuallyFinal] operator[=] Keyword[this]...
public static java.util.List<com.liferay.commerce.wish.list.model.CommerceWishList> getCommerceWishListsByUuidAndCompanyId( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.commerce.wish.list.model.CommerceWishList> orderByComparator) { return getServic...
class class_name[name] begin[{] method[getCommerceWishListsByUuidAndCompanyId, return_type[type[java]], modifier[public static], parameter[uuid, companyId, start, end, orderByComparator]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[wish] operator[SEP] identifier[list] operator[SEP] identifier[model] operator[SEP] iden...
protected static final Long parseUsingFallbacksWithColon(String text, DateTimeFormat timeFormat) { if (text.indexOf(':') == -1) { text = text.replace(" ", ""); int numdigits = 0; int lastdigit = 0; for (int i = 0; i < text.length(); i++) { char c =...
class class_name[name] begin[{] method[parseUsingFallbacksWithColon, return_type[type[Long]], modifier[final static protected], parameter[text, timeFormat]] begin[{] if[binary_operation[call[text.indexOf, parameter[literal[':']]], ==, literal[1]]] begin[{] assign[member[...
Keyword[protected] Keyword[static] Keyword[final] identifier[Long] identifier[parseUsingFallbacksWithColon] operator[SEP] identifier[String] identifier[text] , identifier[DateTimeFormat] identifier[timeFormat] operator[SEP] { Keyword[if] operator[SEP] identifier[text] operator[SEP] identifier[indexOf] operator[...
public static void main(String[] args) { ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(args); Props props = entryPoint.getProps(); new CeProcessLogging().configure(props); CeServer server = new CeServer( new ComputeEngineImpl(props, new ComputeEngineContainerImpl()), ne...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[ProcessEntryPoint], entryPoint] local_variable[type[Props], props] ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfi...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[ProcessEntryPoint] identifier[entryPoint] operator[=] identifier[ProcessEntryPoint] operator[SEP] identifier[createForArguments] operator[SEP] id...
public void write(int b) throws IOException { //PK89810, If WCCustomProperties.FINISH_RESPONSE_ON_CLOSE is set and stream is already obtained and closed. // User will not be allowed to write more data if the above case is met, outputstreamClosed will be true and default is false. if (!(WCCustomProperties.FINISH...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[b]] begin[{] if[binary_operation[member[WCCustomProperties.FINISH_RESPONSE_ON_CLOSE], ||, member[.outputstreamClosed]]] begin[{] if[binary_operation[call[com.ibm.ejs.ras.TraceCom...
Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[int] identifier[b] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[WCCustomProperties] operator[SEP] identifier[FINISH_RESPONSE_ON_CLOSE] operator[SEP] operator[||] operato...
public Route matchRoute(String url) { if (hashRoute.containsKey(url)) { return new Route(hashRoute.get(url).get(0), null); } for (RegexRoute route : regexRoute) { Matcher matcher = route.getPattern().matcher(url); if (matcher.matches()) { retu...
class class_name[name] begin[{] method[matchRoute, return_type[type[Route]], modifier[public], parameter[url]] begin[{] if[call[hashRoute.containsKey, parameter[member[.url]]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=url, postfix_op...
Keyword[public] identifier[Route] identifier[matchRoute] operator[SEP] identifier[String] identifier[url] operator[SEP] { Keyword[if] operator[SEP] identifier[hashRoute] operator[SEP] identifier[containsKey] operator[SEP] identifier[url] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] ident...
@Override public boolean validate(final Problems problems, final String compName, final String s) { if (s.startsWith(".") || s.endsWith(".")) { // NOI18N problems.add(ValidationBundle.getMessage(IpAddressValidator.class, "HOST_STARTS_OR_ENDS_WITH_PERIOD", s)); // NOI18N return false; } if (s.indexOf(" ") >...
class class_name[name] begin[{] method[validate, return_type[type[boolean]], modifier[public], parameter[problems, compName, s]] begin[{] if[binary_operation[call[s.startsWith, parameter[literal["."]]], ||, call[s.endsWith, parameter[literal["."]]]]] begin[{] call[proble...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[validate] operator[SEP] Keyword[final] identifier[Problems] identifier[problems] , Keyword[final] identifier[String] identifier[compName] , Keyword[final] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] id...
public boolean send(int id, Goal msg) { AObject obj = agents.get(id); if (obj == null) { logger.warn("{} attempted to send a message to unknown agent id '{}'", Log.logPrefix(getId()), id); return false; } logger.debug("{} is sending message of type {} to agent {}", Log.logPrefix(ge...
class class_name[name] begin[{] method[send, return_type[type[boolean]], modifier[public], parameter[id, msg]] begin[{] local_variable[type[AObject], obj] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] call[logger.warn, parameter[literal["{} attem...
Keyword[public] Keyword[boolean] identifier[send] operator[SEP] Keyword[int] identifier[id] , identifier[Goal] identifier[msg] operator[SEP] { identifier[AObject] identifier[obj] operator[=] identifier[agents] operator[SEP] identifier[get] operator[SEP] identifier[id] operator[SEP] operator[SEP] Keyword[if] ope...
public void dispatchMessage (ChatMessage message, String localType) { setClientInfo(message, localType); dispatchPreparedMessage(message); }
class class_name[name] begin[{] method[dispatchMessage, return_type[void], modifier[public], parameter[message, localType]] begin[{] call[.setClientInfo, parameter[member[.message], member[.localType]]] call[.dispatchPreparedMessage, parameter[member[.message]]] end[}] END[}...
Keyword[public] Keyword[void] identifier[dispatchMessage] operator[SEP] identifier[ChatMessage] identifier[message] , identifier[String] identifier[localType] operator[SEP] { identifier[setClientInfo] operator[SEP] identifier[message] , identifier[localType] operator[SEP] operator[SEP] identifier[dispatchPrepa...
@Override public void onInteractionEvent(final InteractionEvent event) { QName id = event.getId(); QName source = (QName)event.getSource(); final Set<Procedure> collection = procedures.get(id); Procedure execution = null; if(collection!=null) { for(Proce...
class class_name[name] begin[{] method[onInteractionEvent, return_type[void], modifier[public], parameter[event]] begin[{] local_variable[type[QName], id] local_variable[type[QName], source] local_variable[type[Set], collection] local_variable[type[Procedure], execution] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onInteractionEvent] operator[SEP] Keyword[final] identifier[InteractionEvent] identifier[event] operator[SEP] { identifier[QName] identifier[id] operator[=] identifier[event] operator[SEP] identifier[getId] operator[SEP] operator[SEP] op...
public void await(T t) throws InterruptedException { synchronized (monitor) { long waitNanos = evaluateWithWaitTimeNanos(t); // Loop forever until all conditions pass or the thread is interrupted. while (waitNanos > 0) { // If some con...
class class_name[name] begin[{] method[await, return_type[void], modifier[public], parameter[t]] begin[{] SYNCHRONIZED[member[.monitor]] BEGIN[{] local_variable[type[long], waitNanos] while[binary_operation[member[.waitNanos], >, literal[0]]] begin[{] ...
Keyword[public] Keyword[void] identifier[await] operator[SEP] identifier[T] identifier[t] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[synchronized] operator[SEP] identifier[monitor] operator[SEP] { Keyword[long] identifier[waitNanos] operator[=] identifier[evaluateWithWait...
public static boolean isVoid(Type t) { return Void.TYPE.equals(t) || Void.class.equals(t); }
class class_name[name] begin[{] method[isVoid, return_type[type[boolean]], modifier[public static], parameter[t]] begin[{] return[binary_operation[call[Void.TYPE.equals, parameter[member[.t]]], ||, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(argumen...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isVoid] operator[SEP] identifier[Type] identifier[t] operator[SEP] { Keyword[return] identifier[Void] operator[SEP] identifier[TYPE] operator[SEP] identifier[equals] operator[SEP] identifier[t] operator[SEP] operator[||] identifier[Void] operator[SEP] K...
@Override protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(net.sf.ehcache.management.ManagementService.class); // Mark as infrastructure bean and attach source location. bu...
class class_name[name] begin[{] method[parseInternal, return_type[type[AbstractBeanDefinition]], modifier[protected], parameter[element, parserContext]] begin[{] local_variable[type[BeanDefinitionBuilder], builder] call[builder.setRole, parameter[member[BeanDefinition.ROLE_INFRASTRUCTUR...
annotation[@] identifier[Override] Keyword[protected] identifier[AbstractBeanDefinition] identifier[parseInternal] operator[SEP] identifier[Element] identifier[element] , identifier[ParserContext] identifier[parserContext] operator[SEP] { identifier[BeanDefinitionBuilder] identifier[builder] operator[=] identif...
public OptionsBuilder configurationFile(String configFile) { if (configFile != null) { options.put(Options.CONFIGURATION_FILE, new File(configFile)); } else { options.remove(Options.CONFIGURATION_FILE); } return this; }
class class_name[name] begin[{] method[configurationFile, return_type[type[OptionsBuilder]], modifier[public], parameter[configFile]] begin[{] if[binary_operation[member[.configFile], !=, literal[null]]] begin[{] call[options.put, parameter[member[Options.CONFIGURATION_F...
Keyword[public] identifier[OptionsBuilder] identifier[configurationFile] operator[SEP] identifier[String] identifier[configFile] operator[SEP] { Keyword[if] operator[SEP] identifier[configFile] operator[!=] Other[null] operator[SEP] { identifier[options] operator[SEP] identifier[put] operator[SEP] ide...
public EClass getIfcSpace() { if (ifcSpaceEClass == null) { ifcSpaceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers() .get(522); } return ifcSpaceEClass; }
class class_name[name] begin[{] method[getIfcSpace, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcSpaceEClass], ==, literal[null]]] begin[{] assign[member[.ifcSpaceEClass], Cast(expression=MethodInvocation(arguments=[Me...
Keyword[public] identifier[EClass] identifier[getIfcSpace] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcSpaceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcSpaceEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP...
public static vpnsessionaction[] get_filtered(nitro_service service, String filter) throws Exception{ vpnsessionaction obj = new vpnsessionaction(); options option = new options(); option.set_filter(filter); vpnsessionaction[] response = (vpnsessionaction[]) obj.getfiltered(service, option); return response; ...
class class_name[name] begin[{] method[get_filtered, return_type[type[vpnsessionaction]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[vpnsessionaction], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.fil...
Keyword[public] Keyword[static] identifier[vpnsessionaction] 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[vpnsessionaction] identifier[obj]...
public EvacuateAction evacuate(String serverId, String host) { return evacuate(serverId, host, null, null); }
class class_name[name] begin[{] method[evacuate, return_type[type[EvacuateAction]], modifier[public], parameter[serverId, host]] begin[{] return[call[.evacuate, parameter[member[.serverId], member[.host], literal[null], literal[null]]]] end[}] END[}]
Keyword[public] identifier[EvacuateAction] identifier[evacuate] operator[SEP] identifier[String] identifier[serverId] , identifier[String] identifier[host] operator[SEP] { Keyword[return] identifier[evacuate] operator[SEP] identifier[serverId] , identifier[host] , Other[null] , Other[null] operator[SEP] oper...
public static void send(final PacketOutputStream pos, final String database) throws IOException { pos.startPacket(0); pos.write(Packet.COM_INIT_DB); pos.write(database.getBytes("UTF-8")); pos.flush(); }
class class_name[name] begin[{] method[send, return_type[void], modifier[public static], parameter[pos, database]] begin[{] call[pos.startPacket, parameter[literal[0]]] call[pos.write, parameter[member[Packet.COM_INIT_DB]]] call[pos.write, parameter[call[database...
Keyword[public] Keyword[static] Keyword[void] identifier[send] operator[SEP] Keyword[final] identifier[PacketOutputStream] identifier[pos] , Keyword[final] identifier[String] identifier[database] operator[SEP] Keyword[throws] identifier[IOException] { identifier[pos] operator[SEP] identifier[startPacket] operat...
public void setPeriod(ReadableDuration duration, Chronology chrono) { long durationMillis = DateTimeUtils.getDurationMillis(duration); setPeriod(durationMillis, chrono); }
class class_name[name] begin[{] method[setPeriod, return_type[void], modifier[public], parameter[duration, chrono]] begin[{] local_variable[type[long], durationMillis] call[.setPeriod, parameter[member[.durationMillis], member[.chrono]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setPeriod] operator[SEP] identifier[ReadableDuration] identifier[duration] , identifier[Chronology] identifier[chrono] operator[SEP] { Keyword[long] identifier[durationMillis] operator[=] identifier[DateTimeUtils] operator[SEP] identifier[getDurationMillis] operator[SEP]...
public Observable<Page<SasDefinitionItem>> getSasDefinitionsNextAsync(final String nextPageLink) { return getSasDefinitionsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<SasDefinitionItem>>, Page<SasDefinitionItem>>() { @Override public...
class class_name[name] begin[{] method[getSasDefinitionsNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.getSasDefinitionsNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[SasDefinitionItem] operator[>] operator[>] identifier[getSasDefinitionsNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[getSasDefinitionsNextWit...
public int getTrailingBitCount(boolean network) { if(network) { //trailing zeros return Long.numberOfTrailingZeros(getDivisionValue() | (~0L << getBitCount())); } // trailing ones return Long.numberOfTrailingZeros(~getDivisionValue()); }
class class_name[name] begin[{] method[getTrailingBitCount, return_type[type[int]], modifier[public], parameter[network]] begin[{] if[member[.network]] begin[{] return[call[Long.numberOfTrailingZeros, parameter[binary_operation[call[.getDivisionValue, parameter[]], |, binary_operati...
Keyword[public] Keyword[int] identifier[getTrailingBitCount] operator[SEP] Keyword[boolean] identifier[network] operator[SEP] { Keyword[if] operator[SEP] identifier[network] operator[SEP] { Keyword[return] identifier[Long] operator[SEP] identifier[numberOfTrailingZeros] operator[SEP] identifier[getDiv...
public void onSurfaceCreated(int textureId) { if (VERBOSE) Log.i(TAG, "onSurfaceCreated. Saving EGL State"); synchronized (mReadyFence) { // The Host Activity lifecycle may go through a OnDestroy ... OnCreate ... OnSurfaceCreated ... OnPause ... OnStop... // on it's way out, so o...
class class_name[name] begin[{] method[onSurfaceCreated, return_type[void], modifier[public], parameter[textureId]] begin[{] if[member[.VERBOSE]] begin[{] call[Log.i, parameter[member[.TAG], literal["onSurfaceCreated. Saving EGL State"]]] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[onSurfaceCreated] operator[SEP] Keyword[int] identifier[textureId] operator[SEP] { Keyword[if] operator[SEP] identifier[VERBOSE] operator[SEP] identifier[Log] operator[SEP] identifier[i] operator[SEP] identifier[TAG] , literal[String] operator[SEP] operator[SEP] Keyword[...
public static IllegalArgumentException newIllegalArgumentException(Throwable cause, String message, Object... args) { return new IllegalArgumentException(format(message, args), cause); }
class class_name[name] begin[{] method[newIllegalArgumentException, return_type[type[IllegalArgumentException]], modifier[public static], parameter[cause, message, args]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=message, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[static] identifier[IllegalArgumentException] identifier[newIllegalArgumentException] operator[SEP] identifier[Throwable] identifier[cause] , identifier[String] identifier[message] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[return] Keyword[new] identifier...
@Override public String getSubscribeId(String fname) { final Document userLayout = this.getUserLayoutDOM(); return new PortletSubscribeIdResolver(fname).traverseDocument(userLayout); }
class class_name[name] begin[{] method[getSubscribeId, return_type[type[String]], modifier[public], parameter[fname]] begin[{] local_variable[type[Document], userLayout] return[ClassCreator(arguments=[MemberReference(member=fname, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getSubscribeId] operator[SEP] identifier[String] identifier[fname] operator[SEP] { Keyword[final] identifier[Document] identifier[userLayout] operator[=] Keyword[this] operator[SEP] identifier[getUserLayoutDOM] operator[SEP] operato...
protected void addNavGap(Content liNav) { liNav.addContent(Contents.SPACE); liNav.addContent("|"); liNav.addContent(Contents.SPACE); }
class class_name[name] begin[{] method[addNavGap, return_type[void], modifier[protected], parameter[liNav]] begin[{] call[liNav.addContent, parameter[member[Contents.SPACE]]] call[liNav.addContent, parameter[literal["|"]]] call[liNav.addContent, parameter[member[...
Keyword[protected] Keyword[void] identifier[addNavGap] operator[SEP] identifier[Content] identifier[liNav] operator[SEP] { identifier[liNav] operator[SEP] identifier[addContent] operator[SEP] identifier[Contents] operator[SEP] identifier[SPACE] operator[SEP] operator[SEP] identifier[liNav] operator[SEP] identifi...
@Override public boolean checkParameter(String key, String value) { if (null == value) { return true; } value = value.toLowerCase(); if (value.contains("'")) { return false; } if (value.contains("--")) { return false; } if (value.contains("d...
class class_name[name] begin[{] method[checkParameter, return_type[type[boolean]], modifier[public], parameter[key, value]] begin[{] if[binary_operation[literal[null], ==, member[.value]]] begin[{] return[literal[true]] else begin[{] None end[}] assig...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[checkParameter] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[value] operator[SEP] { Keyword[return] l...
public Observable<StreamingLocatorInner> createAsync(String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { return createWithServiceResponseAsync(resourceGroupName, accountName, streamingLocatorName, parameters).map(new Func1<ServiceResponse<StreamingLocat...
class class_name[name] begin[{] method[createAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, accountName, streamingLocatorName, parameters]] begin[{] return[call[.createWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.str...
Keyword[public] identifier[Observable] operator[<] identifier[StreamingLocatorInner] operator[>] identifier[createAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[streamingLocatorName] , identifier[StreamingLocatorInner...
public static <T,K,V> List<T> collect(Map<K,V> self, @ClosureParams(MapEntryOrKeyValue.class) Closure<T> transform) { return (List<T>) collect(self, new ArrayList<T>(self.size()), transform); }
class class_name[name] begin[{] method[collect, return_type[type[List]], modifier[public static], parameter[self, transform]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=self, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(argum...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[K] , identifier[V] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[collect] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[self] , annotation[@] identifier[ClosurePara...
public EClass getIfcEquipmentStandard() { if (ifcEquipmentStandardEClass == null) { ifcEquipmentStandardEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(210); } return ifcEquipmentStandardEClass; }
class class_name[name] begin[{] method[getIfcEquipmentStandard, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcEquipmentStandardEClass], ==, literal[null]]] begin[{] assign[member[.ifcEquipmentStandardEClass], Cast(expre...
Keyword[public] identifier[EClass] identifier[getIfcEquipmentStandard] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcEquipmentStandardEClass] operator[==] Other[null] operator[SEP] { identifier[ifcEquipmentStandardEClass] operator[=] operator[SEP] identifier[EClass] operator[SE...
public long getLongValue() throws ControlException{ long v; if(type!=V4L4JConstants.CTRL_TYPE_LONG) throw new UnsupportedMethod("This control is not a long control"); state.get(); try {v = doGetLongValue(v4l4jObject, id);} finally{state.put(); } return v; }
class class_name[name] begin[{] method[getLongValue, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[long], v] if[binary_operation[member[.type], !=, member[V4L4JConstants.CTRL_TYPE_LONG]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[L...
Keyword[public] Keyword[long] identifier[getLongValue] operator[SEP] operator[SEP] Keyword[throws] identifier[ControlException] { Keyword[long] identifier[v] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[!=] identifier[V4L4JConstants] operator[SEP] identifier[CTRL_TYPE_LONG] operator[SEP] Key...
public DSPPrinter print() throws DapException { DapDataset dmr = this.dsp.getDMR(); if(this.ce == null) this.ce = CEConstraint.getUniversal(dmr); this.printer.setIndent(0); List<DapVariable> topvars = dmr.getTopVariables(); for(int i = 0; i < topva...
class class_name[name] begin[{] method[print, return_type[type[DSPPrinter]], modifier[public], parameter[]] begin[{] local_variable[type[DapDataset], dmr] if[binary_operation[THIS[member[None.ce]], ==, literal[null]]] begin[{] assign[THIS[member[None.ce]], call[CEConstraint....
Keyword[public] identifier[DSPPrinter] identifier[print] operator[SEP] operator[SEP] Keyword[throws] identifier[DapException] { identifier[DapDataset] identifier[dmr] operator[=] Keyword[this] operator[SEP] identifier[dsp] operator[SEP] identifier[getDMR] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope...
public void createContainerContext(@Observes EventContext<ContainerControlEvent> context) { ContainerContext containerContext = this.containerContext.get(); ContainerControlEvent event = context.getEvent(); try { containerContext.activate(event.getContainerName()); conte...
class class_name[name] begin[{] method[createContainerContext, return_type[void], modifier[public], parameter[context]] begin[{] local_variable[type[ContainerContext], containerContext] local_variable[type[ContainerControlEvent], event] TryStatement(block=[StatementExpression(expression...
Keyword[public] Keyword[void] identifier[createContainerContext] operator[SEP] annotation[@] identifier[Observes] identifier[EventContext] operator[<] identifier[ContainerControlEvent] operator[>] identifier[context] operator[SEP] { identifier[ContainerContext] identifier[containerContext] operator[=] Keyword[th...
protected String getStringValue(CmsObject cms, I_CmsXmlContentValueLocation location, String defaultValue) { if (location == null) { return defaultValue; } return location.asString(cms); }
class class_name[name] begin[{] method[getStringValue, return_type[type[String]], modifier[protected], parameter[cms, location, defaultValue]] begin[{] if[binary_operation[member[.location], ==, literal[null]]] begin[{] return[member[.defaultValue]] else begin[{] None ...
Keyword[protected] identifier[String] identifier[getStringValue] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[I_CmsXmlContentValueLocation] identifier[location] , identifier[String] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[location] operator[==] Other[nu...
@SuppressWarnings("unchecked") @Collection public List<ExcelModuleDemoToDoItem> getToDoItems() { return container.allMatches(ExcelModuleDemoToDoItem.class, Predicates.and( ExcelModuleDemoToDoItem.Predicates.thoseOwnedBy(currentUserName()), ExcelMod...
class class_name[name] begin[{] method[getToDoItems, return_type[type[List]], modifier[public], parameter[]] begin[{] return[call[container.allMatches, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Collection] Keyword[public] identifier[List] operator[<] identifier[ExcelModuleDemoToDoItem] operator[>] identifier[getToDoItems] operator[SEP] operator[SEP] { Keyword[return] identifier[container] ope...
@Override // override with covariant return type public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { return (ThaiBuddhistDate) super.date(era, yearOfEra, month, dayOfMonth); }
class class_name[name] begin[{] method[date, return_type[type[ThaiBuddhistDate]], modifier[public], parameter[era, yearOfEra, month, dayOfMonth]] begin[{] return[Cast(expression=SuperMethodInvocation(arguments=[MemberReference(member=era, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
annotation[@] identifier[Override] Keyword[public] identifier[ThaiBuddhistDate] identifier[date] operator[SEP] identifier[Era] identifier[era] , Keyword[int] identifier[yearOfEra] , Keyword[int] identifier[month] , Keyword[int] identifier[dayOfMonth] operator[SEP] { Keyword[return] operator[SEP] identifier[Th...
public List<T> list(File[] files, int start, int count) { final List<T> results = new ArrayList<>(); scan(files, start, count, new Function<File, Void>() { @Override public Void apply(File file) { results.add(file2list(file)); return null; } }); return results; }
class class_name[name] begin[{] method[list, return_type[type[List]], modifier[public], parameter[files, start, count]] begin[{] local_variable[type[List], results] call[.scan, parameter[member[.files], member[.start], member[.count], ClassCreator(arguments=[], body=[MethodDeclaration(a...
Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[list] operator[SEP] identifier[File] operator[SEP] operator[SEP] identifier[files] , Keyword[int] identifier[start] , Keyword[int] identifier[count] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[T] operat...
public static boolean updateModelGroupResource(CmsObject cms, CmsResource group, String baseContainerName) { if (!isModelGroupResource(group)) { // skip resources that are no model group return false; } try { CmsXmlContainerPage xmlContainerPage = CmsXmlConta...
class class_name[name] begin[{] method[updateModelGroupResource, return_type[type[boolean]], modifier[public static], parameter[cms, group, baseContainerName]] begin[{] if[call[.isModelGroupResource, parameter[member[.group]]]] begin[{] return[literal[false]] else begin[{] N...
Keyword[public] Keyword[static] Keyword[boolean] identifier[updateModelGroupResource] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsResource] identifier[group] , identifier[String] identifier[baseContainerName] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isModelGroupR...
@Override public ProjectFile read(File file) throws MPXJException { try { m_data = new FastTrackData(); // Uncomment this to write debug data to a log file // m_data.setLogFile("c:/temp/project1.txt"); m_data.process(file); return read(); } catch (...
class class_name[name] begin[{] method[read, return_type[type[ProjectFile]], modifier[public], parameter[file]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=m_data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==,...
annotation[@] identifier[Override] Keyword[public] identifier[ProjectFile] identifier[read] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[MPXJException] { Keyword[try] { identifier[m_data] operator[=] Keyword[new] identifier[FastTrackData] operator[SEP] opera...
@Override public void visitClassContext(ClassContext classContext) { JavaClass jclass = classContext.getJavaClass(); // Check to see if the class references any other classes // which could be resources we want to track. // If we don't find any such classes, we skip analyzing ...
class class_name[name] begin[{] method[visitClassContext, return_type[void], modifier[public], parameter[classContext]] begin[{] local_variable[type[JavaClass], jclass] local_variable[type[boolean], sawResourceClass] ForStatement(body=BlockStatement(label=None, statements=[LocalVariable...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitClassContext] operator[SEP] identifier[ClassContext] identifier[classContext] operator[SEP] { identifier[JavaClass] identifier[jclass] operator[=] identifier[classContext] operator[SEP] identifier[getJavaClass] operator[SEP] operato...
@Override public long getMaxX() { if (!excludeOutOfRangeValues) { return super.getMaxX(); } else { long retMax = 0; Iterator<Long> iter = values.keySet().iterator(); if (iter.hasNext()) { retMax = iter.next(); } ...
class class_name[name] begin[{] method[getMaxX, return_type[type[long]], modifier[public], parameter[]] begin[{] if[member[.excludeOutOfRangeValues]] begin[{] return[SuperMethodInvocation(arguments=[], member=getMaxX, postfix_operators=[], prefix_operators=[], qualifier=None, select...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[getMaxX] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[excludeOutOfRangeValues] operator[SEP] { Keyword[return] Keyword[super] operator[SEP] identifier[getMaxX] operator[SEP] operator[SEP] oper...
void setTextFace(final int face) { int style = 0; if ((face & QuickDraw.TX_BOLD_MASK) > 0) { style |= Font.BOLD; } if ((face & QuickDraw.TX_ITALIC_MASK) > 0) { style |= Font.ITALIC; } // TODO: Other face options, like underline, shadow, etc... ...
class class_name[name] begin[{] method[setTextFace, return_type[void], modifier[default], parameter[face]] begin[{] local_variable[type[int], style] if[binary_operation[binary_operation[member[.face], &, member[QuickDraw.TX_BOLD_MASK]], >, literal[0]]] begin[{] a...
Keyword[void] identifier[setTextFace] operator[SEP] Keyword[final] Keyword[int] identifier[face] operator[SEP] { Keyword[int] identifier[style] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[face] operator[&] identifier[QuickDraw] operator[SEP] identifier[TX_BOLD_MASK] oper...
public void setStatusBarColor(int statusBarColor) { if (mBuilder.mScrimInsetsLayout != null) { mBuilder.mScrimInsetsLayout.setInsetForeground(statusBarColor); mBuilder.mScrimInsetsLayout.getView().invalidate(); } }
class class_name[name] begin[{] method[setStatusBarColor, return_type[void], modifier[public], parameter[statusBarColor]] begin[{] if[binary_operation[member[mBuilder.mScrimInsetsLayout], !=, literal[null]]] begin[{] call[mBuilder.mScrimInsetsLayout.setInsetForeground, p...
Keyword[public] Keyword[void] identifier[setStatusBarColor] operator[SEP] Keyword[int] identifier[statusBarColor] operator[SEP] { Keyword[if] operator[SEP] identifier[mBuilder] operator[SEP] identifier[mScrimInsetsLayout] operator[!=] Other[null] operator[SEP] { identifier[mBuilder] operator[SEP] iden...