code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected void initMessageObject() { try { if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) { // create a new message info object m_msgInfo = new CmsMessageInfo(); } else { // this is not th...
class class_name[name] begin[{] method[initMessageObject, return_type[void], modifier[protected], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getParamAction, postfix_operators=[], prefix_opera...
Keyword[protected] Keyword[void] identifier[initMessageObject] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[getParamAction] operator[SEP] operator[SEP] operator[SEP] operator[||] identifier[C...
private void fillDetailField(CmsListItem item, String detailId) { StringBuffer html = new StringBuffer(); // search for the corresponding A_CmsSearchIndex: String idxFieldName = (String)item.get(LIST_COLUMN_NAME); List<CmsSearchField> fields = OpenCms.getSearchManager().getFieldConfigu...
class class_name[name] begin[{] method[fillDetailField, return_type[void], modifier[private], parameter[item, detailId]] begin[{] local_variable[type[StringBuffer], html] local_variable[type[String], idxFieldName] local_variable[type[List], fields] local_variable[type[Iterator],...
Keyword[private] Keyword[void] identifier[fillDetailField] operator[SEP] identifier[CmsListItem] identifier[item] , identifier[String] identifier[detailId] operator[SEP] { identifier[StringBuffer] identifier[html] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] identi...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.MPS__RG_LENGTH: setRGLength(RG_LENGTH_EDEFAULT); return; case AfplibPackage.MPS__RESERVED: setReserved(RESERVED_EDEFAULT); return; case AfplibPackage.MPS__FIXED_LENGTH_RG: getFixedLengthRG().clear(); ...
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MPS__RG_LENGTH, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Stat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[MPS__RG_LENGTH] oper...
@QueueCallback({QueueCallbackType.EMPTY, QueueCallbackType.IDLE, QueueCallbackType.LIMIT}) public void process() { reactor.process(); time = timer.time(); }
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[]] begin[{] call[reactor.process, parameter[]] assign[member[.time], call[timer.time, parameter[]]] end[}] END[}]
annotation[@] identifier[QueueCallback] operator[SEP] { identifier[QueueCallbackType] operator[SEP] identifier[EMPTY] , identifier[QueueCallbackType] operator[SEP] identifier[IDLE] , identifier[QueueCallbackType] operator[SEP] identifier[LIMIT] } operator[SEP] Keyword[public] Keyword[void] identifier[proces...
public boolean resultSubtype(Type t, Type s, Warner warner) { List<Type> tvars = t.getTypeArguments(); List<Type> svars = s.getTypeArguments(); Type tres = t.getReturnType(); Type sres = subst(s.getReturnType(), svars, tvars); return covariantReturnType(tres, sres, warner); }
class class_name[name] begin[{] method[resultSubtype, return_type[type[boolean]], modifier[public], parameter[t, s, warner]] begin[{] local_variable[type[List], tvars] local_variable[type[List], svars] local_variable[type[Type], tres] local_variable[type[Type], sres] ret...
Keyword[public] Keyword[boolean] identifier[resultSubtype] operator[SEP] identifier[Type] identifier[t] , identifier[Type] identifier[s] , identifier[Warner] identifier[warner] operator[SEP] { identifier[List] operator[<] identifier[Type] operator[>] identifier[tvars] operator[=] identifier[t] operator[SEP] id...
public final void mT__133() throws RecognitionException { try { int _type = T__133; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalSARL.g:119:8: ( 'super' ) // InternalSARL.g:119:10: 'super' { match("super"); } ...
class class_name[name] begin[{] method[mT__133, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__133, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__133] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__133] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TO...
public static void init(final GwAPI gwAPI, GwFacade facade) throws Exception { //////// // Overall APIs /////// gwAPI.route(HttpMethods.GET,"/api",API.VOID,new GwCode(facade,"Document API", true) { @Override public void handle(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp) throws Exce...
class class_name[name] begin[{] method[init, return_type[void], modifier[public static], parameter[gwAPI, facade]] begin[{] call[gwAPI.route, parameter[member[HttpMethods.GET], literal["/api"], member[API.VOID], ClassCreator(arguments=[MemberReference(member=facade, postfix_operators=[], prefix...
Keyword[public] Keyword[static] Keyword[void] identifier[init] operator[SEP] Keyword[final] identifier[GwAPI] identifier[gwAPI] , identifier[GwFacade] identifier[facade] operator[SEP] Keyword[throws] identifier[Exception] { identifier[gwAPI] operator[SEP] identifier[route] operator[SEP] identifier[HttpMethods] ...
@Override public float getFloat(int index) { check(index); final FLValue flValue = values.get(index); return flValue != null ? flValue.asFloat() : 0.0F; }
class class_name[name] begin[{] method[getFloat, return_type[type[float]], modifier[public], parameter[index]] begin[{] call[.check, parameter[member[.index]]] local_variable[type[FLValue], flValue] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(memb...
annotation[@] identifier[Override] Keyword[public] Keyword[float] identifier[getFloat] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[check] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[final] identifier[FLValue] identifier[flValue] operator[=] identifier[values] o...
public void setMdcTags(Set<String> mdcTags) { if (mdcTags == null) { this.mdcTags = new HashSet<>(); } else { this.mdcTags = mdcTags; } }
class class_name[name] begin[{] method[setMdcTags, return_type[void], modifier[public], parameter[mdcTags]] begin[{] if[binary_operation[member[.mdcTags], ==, literal[null]]] begin[{] assign[THIS[member[None.mdcTags]], ClassCreator(arguments=[], body=None, constructor_ty...
Keyword[public] Keyword[void] identifier[setMdcTags] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[mdcTags] operator[SEP] { Keyword[if] operator[SEP] identifier[mdcTags] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[mdcTags] opera...
@Override public Map getAttribute(String attributeName, Map defaultValue) { // TODO Auto-generated method stub return server.getAttribute(attributeName, defaultValue); }
class class_name[name] begin[{] method[getAttribute, return_type[type[Map]], modifier[public], parameter[attributeName, defaultValue]] begin[{] return[call[server.getAttribute, parameter[member[.attributeName], member[.defaultValue]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Map] identifier[getAttribute] operator[SEP] identifier[String] identifier[attributeName] , identifier[Map] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[server] operator[SEP] identifier[getAttribute] operator[SEP] identifier[att...
public int getNumberOfPoints(String monitorDir) throws IOException { if (!recoveryTimes.containsKey(monitorDir)) { return 0; } return recoveryTimes.get(monitorDir).getNumberOfPoints(); }
class class_name[name] begin[{] method[getNumberOfPoints, return_type[type[int]], modifier[public], parameter[monitorDir]] begin[{] if[call[recoveryTimes.containsKey, parameter[member[.monitorDir]]]] begin[{] return[literal[0]] else begin[{] None end[}] retur...
Keyword[public] Keyword[int] identifier[getNumberOfPoints] operator[SEP] identifier[String] identifier[monitorDir] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[recoveryTimes] operator[SEP] identifier[containsKey] operator[SEP] identifier[monitorDir] ope...
private void organizeContent() { table = new TableBox(el, g, ctx); table.adoptParent(this); table.setStyle(style); for (Iterator<Box> it = nested.iterator(); it.hasNext(); ) { Box box = it.next(); if (box instanceof TableCaptionBox) ...
class class_name[name] begin[{] method[organizeContent, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.table], ClassCreator(arguments=[MemberReference(member=el, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=g, postfix_o...
Keyword[private] Keyword[void] identifier[organizeContent] operator[SEP] operator[SEP] { identifier[table] operator[=] Keyword[new] identifier[TableBox] operator[SEP] identifier[el] , identifier[g] , identifier[ctx] operator[SEP] operator[SEP] identifier[table] operator[SEP] identifier[adoptParent] operator[SE...
public void setRequestProperty(String key, String value) { if (connected) throw new IllegalStateException("Already connected"); if (key == null) throw new NullPointerException ("key is null"); if (requests == null) requests = new MessageHeader(); req...
class class_name[name] begin[{] method[setRequestProperty, return_type[void], modifier[public], parameter[key, value]] begin[{] if[member[.connected]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], valu...
Keyword[public] Keyword[void] identifier[setRequestProperty] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[connected] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[S...
public static SentryClient getStoredClient() { if (storedClient != null) { return storedClient; } synchronized (Sentry.class) { if (storedClient == null && !autoInitAttempted.get()) { // attempt initialization by using configuration found in the environme...
class class_name[name] begin[{] method[getStoredClient, return_type[type[SentryClient]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.storedClient], !=, literal[null]]] begin[{] return[member[.storedClient]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[SentryClient] identifier[getStoredClient] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[storedClient] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[storedClient] operator[SEP] } Keyword[synchronized] op...
@Override public void doFilter(ServletRequest servReq, ServletResponse servRes, FilterChain chain) throws IOException, ServletException { final HttpServletRequest httpReq = (HttpServletRequest) servReq; final HttpServletResponse httpRes = (HttpServletResponse) servRes; final String requestPa...
class class_name[name] begin[{] method[doFilter, return_type[void], modifier[public], parameter[servReq, servRes, chain]] begin[{] local_variable[type[HttpServletRequest], httpReq] local_variable[type[HttpServletResponse], httpRes] local_variable[type[String], requestPath] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doFilter] operator[SEP] identifier[ServletRequest] identifier[servReq] , identifier[ServletResponse] identifier[servRes] , identifier[FilterChain] identifier[chain] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletEx...
public ServiceFuture<List<ResourceHealthMetadataInner>> listBySiteSlotAsync(final String resourceGroupName, final String name, final String slot, final ListOperationCallback<ResourceHealthMetadataInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listBySiteSlotSinglePageAsync(reso...
class class_name[name] begin[{] method[listBySiteSlotAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, name, slot, serviceCallback]] begin[{] return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listBySiteSlotSinglePageAsync, parameter[member[.resourceG...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[ResourceHealthMetadataInner] operator[>] operator[>] identifier[listBySiteSlotAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[name] , Keywor...
public static void writeShortLittleEndian(IO.WritableByteStream io, short value) throws IOException { io.write((byte)(value & 0xFF)); io.write((byte)((value >> 8) & 0xFF)); }
class class_name[name] begin[{] method[writeShortLittleEndian, return_type[void], modifier[public static], parameter[io, value]] begin[{] call[io.write, parameter[Cast(expression=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[static] Keyword[void] identifier[writeShortLittleEndian] operator[SEP] identifier[IO] operator[SEP] identifier[WritableByteStream] identifier[io] , Keyword[short] identifier[value] operator[SEP] Keyword[throws] identifier[IOException] { identifier[io] operator[SEP] identifier[write] oper...
public static LogFactory init() { try { LogFactory theLogFactory = (LogFactory) EPackage.Registry.INSTANCE.getEFactory(LogPackage.eNS_URI); if (theLogFactory != null) { return theLogFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new LogFactoryIm...
class class_name[name] begin[{] method[init, return_type[type[LogFactory]], modifier[public static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MemberReference(...
Keyword[public] Keyword[static] identifier[LogFactory] identifier[init] operator[SEP] operator[SEP] { Keyword[try] { identifier[LogFactory] identifier[theLogFactory] operator[=] operator[SEP] identifier[LogFactory] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] ide...
Rectangle getBoxSize(String boxName) { PdfRectangle r = (PdfRectangle)thisBoxSize.get(boxName); if (r != null) return r.getRectangle(); return null; }
class class_name[name] begin[{] method[getBoxSize, return_type[type[Rectangle]], modifier[default], parameter[boxName]] begin[{] local_variable[type[PdfRectangle], r] if[binary_operation[member[.r], !=, literal[null]]] begin[{] return[call[r.getRectangle, parameter[]]] else begi...
identifier[Rectangle] identifier[getBoxSize] operator[SEP] identifier[String] identifier[boxName] operator[SEP] { identifier[PdfRectangle] identifier[r] operator[=] operator[SEP] identifier[PdfRectangle] operator[SEP] identifier[thisBoxSize] operator[SEP] identifier[get] operator[SEP] identifier[boxName] operato...
public static <E> Stream<Stream<E>> group( Stream<E> stream, Predicate<? super E> open, boolean openingElementIncluded, Predicate<? super E> close, boolean closingElementIncluded) { Objects.requireNonNull(stream); Objects.requireNonNull(open); Objects.requireN...
class class_name[name] begin[{] method[group, return_type[type[Stream]], modifier[public static], parameter[stream, open, openingElementIncluded, close, closingElementIncluded]] begin[{] call[Objects.requireNonNull, parameter[member[.stream]]] call[Objects.requireNonNull, parame...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Stream] operator[<] identifier[Stream] operator[<] identifier[E] operator[>] operator[>] identifier[group] operator[SEP] identifier[Stream] operator[<] identifier[E] operator[>] identifier[stream] , identifier[Predicate] operator[<] opera...
public void onEndJob (@Nullable final String sJobID, @Nonnull final ESuccess eExecSucess, @Nonnull final LongRunningJobResult aResult) { ValueEnforcer.notNull (eExecSucess, "ExecSuccess"); ValueEnforcer.notNull (aResult, "Result"); // Remove from running jo...
class class_name[name] begin[{] method[onEndJob, return_type[void], modifier[public], parameter[sJobID, eExecSucess, aResult]] begin[{] call[ValueEnforcer.notNull, parameter[member[.eExecSucess], literal["ExecSuccess"]]] call[ValueEnforcer.notNull, parameter[member[.aResult], li...
Keyword[public] Keyword[void] identifier[onEndJob] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sJobID] , annotation[@] identifier[Nonnull] Keyword[final] identifier[ESuccess] identifier[eExecSucess] , annotation[@] identifier[Nonnull] Keyword[final] identifier[LongRun...
public String removeNamespace(String entityType) { String str = entityType.replace('\'', ' ').trim(); int index = str.indexOf(":"); if (index > 0) str = str.substring(index + 1); return str; }
class class_name[name] begin[{] method[removeNamespace, return_type[type[String]], modifier[public], parameter[entityType]] begin[{] local_variable[type[String], str] local_variable[type[int], index] if[binary_operation[member[.index], >, literal[0]]] begin[{] assign...
Keyword[public] identifier[String] identifier[removeNamespace] operator[SEP] identifier[String] identifier[entityType] operator[SEP] { identifier[String] identifier[str] operator[=] identifier[entityType] operator[SEP] identifier[replace] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SE...
private String expandAffix(String pattern, StringBuffer buffer) { buffer.setLength(0); for (int i=0; i<pattern.length(); ) { char c = pattern.charAt(i++); if (c == QUOTE) { c = pattern.charAt(i++); switch (c) { case CURRENCY_SIGN: ...
class class_name[name] begin[{] method[expandAffix, return_type[type[String]], modifier[private], parameter[pattern, buffer]] begin[{] call[buffer.setLength, parameter[literal[0]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarat...
Keyword[private] identifier[String] identifier[expandAffix] operator[SEP] identifier[String] identifier[pattern] , identifier[StringBuffer] identifier[buffer] operator[SEP] { identifier[buffer] operator[SEP] identifier[setLength] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyw...
public static boolean exampleHasAtLeastOneCriteriaCheck(Object parameter) { if (parameter != null) { try { if (parameter instanceof Example) { List<Example.Criteria> criteriaList = ((Example) parameter).getOredCriteria(); if (criteriaList != nu...
class class_name[name] begin[{] method[exampleHasAtLeastOneCriteriaCheck, return_type[type[boolean]], modifier[public static], parameter[parameter]] begin[{] if[binary_operation[member[.parameter], !=, literal[null]]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperatio...
Keyword[public] Keyword[static] Keyword[boolean] identifier[exampleHasAtLeastOneCriteriaCheck] operator[SEP] identifier[Object] identifier[parameter] operator[SEP] { Keyword[if] operator[SEP] identifier[parameter] operator[!=] Other[null] operator[SEP] { Keyword[try] { Keyword[if] opera...
@Bind(id = "exporterServices", specification = ExporterService.class, aggregate = true, optional = true) void bindExporterService(ServiceReference<ExporterService> serviceReference) { synchronized (lock) { try { exportersManager.add(serviceReference); } catch (Invalid...
class class_name[name] begin[{] method[bindExporterService, return_type[void], modifier[default], parameter[serviceReference]] begin[{] SYNCHRONIZED[member[.lock]] BEGIN[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=serviceR...
annotation[@] identifier[Bind] operator[SEP] identifier[id] operator[=] literal[String] , identifier[specification] operator[=] identifier[ExporterService] operator[SEP] Keyword[class] , identifier[aggregate] operator[=] literal[boolean] , identifier[optional] operator[=] literal[boolean] operator[SEP] Keyword[void]...
private IGroupMember igetGroupMember(String key, Class<?> type) throws GroupsException { return compositeGroupService.getGroupMember(key, type); }
class class_name[name] begin[{] method[igetGroupMember, return_type[type[IGroupMember]], modifier[private], parameter[key, type]] begin[{] return[call[compositeGroupService.getGroupMember, parameter[member[.key], member[.type]]]] end[}] END[}]
Keyword[private] identifier[IGroupMember] identifier[igetGroupMember] operator[SEP] identifier[String] identifier[key] , identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] Keyword[throws] identifier[GroupsException] { Keyword[return] identifier[compositeGroupService] operator[S...
public void buildColorTable(int[] inPixels, int[] table) { int count = inPixels.length; maximumColors = table.length; for (int i = 0; i < count; i++) { insertColor(inPixels[i]); if (colors > reduceColors) reduceTree(reduceColors); } if (col...
class class_name[name] begin[{] method[buildColorTable, return_type[void], modifier[public], parameter[inPixels, table]] begin[{] local_variable[type[int], count] assign[member[.maximumColors], member[table.length]] ForStatement(body=BlockStatement(label=None, statements=[Statem...
Keyword[public] Keyword[void] identifier[buildColorTable] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[inPixels] , Keyword[int] operator[SEP] operator[SEP] identifier[table] operator[SEP] { Keyword[int] identifier[count] operator[=] identifier[inPixels] operator[SEP] identifier[length] oper...
public Vector4f set(Vector2fc v, float z, float w) { return set(v.x(), v.y(), z, w); }
class class_name[name] begin[{] method[set, return_type[type[Vector4f]], modifier[public], parameter[v, z, w]] begin[{] return[call[.set, parameter[call[v.x, parameter[]], call[v.y, parameter[]], member[.z], member[.w]]]] end[}] END[}]
Keyword[public] identifier[Vector4f] identifier[set] operator[SEP] identifier[Vector2fc] identifier[v] , Keyword[float] identifier[z] , Keyword[float] identifier[w] operator[SEP] { Keyword[return] identifier[set] operator[SEP] identifier[v] operator[SEP] identifier[x] operator[SEP] operator[SEP] , identifier[...
@Override public void visitCode(Code obj) { try { Method m = getMethod(); Type retType = m.getReturnType(); if ("Ljava/lang/Boolean;".equals(retType.getSignature())) { stack.resetForMethodEntry(this); super.visitCode(obj); } ...
class class_name[name] begin[{] method[visitCode, return_type[void], modifier[public], parameter[obj]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getMethod, postfix_operators=[], ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitCode] operator[SEP] identifier[Code] identifier[obj] operator[SEP] { Keyword[try] { identifier[Method] identifier[m] operator[=] identifier[getMethod] operator[SEP] operator[SEP] operator[SEP] identifier[Type] identifier[...
protected void setURI() { // set _uri StringBuffer buf = new StringBuffer(); // ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))? if (_scheme != null) { buf.append(_scheme); buf.append(':'); } if (_is_net_path) { buf.append("//"...
class class_name[name] begin[{] method[setURI, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[StringBuffer], buf] if[binary_operation[member[._scheme], !=, literal[null]]] begin[{] call[buf.append, parameter[member[._scheme]]] ...
Keyword[protected] Keyword[void] identifier[setURI] operator[SEP] operator[SEP] { identifier[StringBuffer] identifier[buf] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_scheme] operator[!=] Other[null] operator[SEP] { ...
public static JusFragment newInstance() { JusFragment fragment = new JusFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; }
class class_name[name] begin[{] method[newInstance, return_type[type[JusFragment]], modifier[public static], parameter[]] begin[{] local_variable[type[JusFragment], fragment] local_variable[type[Bundle], args] call[fragment.setArguments, parameter[member[.args]]] return[...
Keyword[public] Keyword[static] identifier[JusFragment] identifier[newInstance] operator[SEP] operator[SEP] { identifier[JusFragment] identifier[fragment] operator[=] Keyword[new] identifier[JusFragment] operator[SEP] operator[SEP] operator[SEP] identifier[Bundle] identifier[args] operator[=] Keyword[new] identi...
public ThreddsMetadata getInheritableMetadata() { ThreddsMetadata tmi = (ThreddsMetadata) get(Dataset.ThreddsMetadataInheritable); if (tmi == null) { tmi = new ThreddsMetadata(); put(Dataset.ThreddsMetadataInheritable, tmi); } return tmi; }
class class_name[name] begin[{] method[getInheritableMetadata, return_type[type[ThreddsMetadata]], modifier[public], parameter[]] begin[{] local_variable[type[ThreddsMetadata], tmi] if[binary_operation[member[.tmi], ==, literal[null]]] begin[{] assign[member[.tmi...
Keyword[public] identifier[ThreddsMetadata] identifier[getInheritableMetadata] operator[SEP] operator[SEP] { identifier[ThreddsMetadata] identifier[tmi] operator[=] operator[SEP] identifier[ThreddsMetadata] operator[SEP] identifier[get] operator[SEP] identifier[Dataset] operator[SEP] identifier[ThreddsMetadataIn...
public static long[] symmetry(IAtomContainer container, int[][] g) { return new Canon(g, basicInvariants(container, g), terminalHydrogens(container, g), true).symmetry; }
class class_name[name] begin[{] method[symmetry, return_type[type[long]], modifier[public static], parameter[container, g]] begin[{] return[ClassCreator(arguments=[MemberReference(member=g, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference...
Keyword[public] Keyword[static] Keyword[long] operator[SEP] operator[SEP] identifier[symmetry] operator[SEP] identifier[IAtomContainer] identifier[container] , Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[g] operator[SEP] { Keyword[return] Keyword[new] identifier[Canon] operat...
public void addListener(ChangeListener listener) { synchronized (hsChangeListeners) { hsChangeListeners.add(listener); changeListenerCount = hsChangeListeners.size(); bUpdateChangeListener = true; } }
class class_name[name] begin[{] method[addListener, return_type[void], modifier[public], parameter[listener]] begin[{] SYNCHRONIZED[member[.hsChangeListeners]] BEGIN[{] call[hsChangeListeners.add, parameter[member[.listener]]] assign[member[.chang...
Keyword[public] Keyword[void] identifier[addListener] operator[SEP] identifier[ChangeListener] identifier[listener] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[hsChangeListeners] operator[SEP] { identifier[hsChangeListeners] operator[SEP] identifier[add] operator[SEP] identifier[lis...
public App withCustomRules(CustomRule... customRules) { if (this.customRules == null) { setCustomRules(new java.util.ArrayList<CustomRule>(customRules.length)); } for (CustomRule ele : customRules) { this.customRules.add(ele); } return this; }
class class_name[name] begin[{] method[withCustomRules, return_type[type[App]], modifier[public], parameter[customRules]] begin[{] if[binary_operation[THIS[member[None.customRules]], ==, literal[null]]] begin[{] call[.setCustomRules, parameter[ClassCreator(arguments=[Mem...
Keyword[public] identifier[App] identifier[withCustomRules] operator[SEP] identifier[CustomRule] operator[...] identifier[customRules] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[customRules] operator[==] Other[null] operator[SEP] { identifier[setCustomRules] opera...
public boolean isOwner(String name) { boolean result = false; if (aclList.containsKey(name)) { result = aclList.get(name).isOwner(); } return result; }
class class_name[name] begin[{] method[isOwner, return_type[type[boolean]], modifier[public], parameter[name]] begin[{] local_variable[type[boolean], result] if[call[aclList.containsKey, parameter[member[.name]]]] begin[{] assign[member[.result], call[aclList.get...
Keyword[public] Keyword[boolean] identifier[isOwner] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[aclList] operator[SEP] identifier[containsKey] operator[SEP] identifier[name] ...
public static void main(String[] args) { try { VBucketInfo vbi[] = new VBucketInfo[1024]; for (int ii = 0; ii < vbi.length; ++ii) { vbi[ii] = new VBucketInfo(); } MemcachedServer server = new MemcachedServer(null, null, 11211, vbi, false); ...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[None], initializer=ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[try] { identifier[VBucketInfo] identifier[vbi] operator[SEP] operator[SEP] operator[=] Keyword[new] identifier[VBucketInfo] operator[SEP]...
private User resolveUser(RequestContext requestContext, User[] users) { User resolvedUser = null; for (User user : users) { if (user != null && resolvedUser != null && !user.getId().equals(resolvedUser.getId())) { Messages messages = Messages.getInstance(); Locale locale = requestContext.g...
class class_name[name] begin[{] method[resolveUser, return_type[type[User]], modifier[private], parameter[requestContext, users]] begin[{] local_variable[type[User], resolvedUser] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOpera...
Keyword[private] identifier[User] identifier[resolveUser] operator[SEP] identifier[RequestContext] identifier[requestContext] , identifier[User] operator[SEP] operator[SEP] identifier[users] operator[SEP] { identifier[User] identifier[resolvedUser] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP...
public String beginConsumption(HttpServletRequest req, String identityUrl, String returnToUrl, String realm) throws OpenIDConsumerException { List<DiscoveryInformation> discoveries; try { discoveries = consumerManager.discover(identityUrl); } catch (DiscoveryException e) { throw new OpenIDConsumerExce...
class class_name[name] begin[{] method[beginConsumption, return_type[type[String]], modifier[public], parameter[req, identityUrl, returnToUrl, realm]] begin[{] local_variable[type[List], discoveries] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(membe...
Keyword[public] identifier[String] identifier[beginConsumption] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[String] identifier[identityUrl] , identifier[String] identifier[returnToUrl] , identifier[String] identifier[realm] operator[SEP] Keyword[throws] identifier[OpenIDConsumerExceptio...
@Deprecated public void setClassesDir(File classesDir) { if (classesDir == null) throw new NullPointerException("classesDir"); getLogger().warn("The 'classesDir' property on the '{}' task is deprecated. Use 'classesDirs' of type FileCollection instead!", getName()); setClassesDirs(getProject().fil...
class class_name[name] begin[{] method[setClassesDir, return_type[void], modifier[public], parameter[classesDir]] begin[{] if[binary_operation[member[.classesDir], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], q...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[setClassesDir] operator[SEP] identifier[File] identifier[classesDir] operator[SEP] { Keyword[if] operator[SEP] identifier[classesDir] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[NullPointerException] o...
@Deprecated public static String getWebJarConfig(Map.Entry<String, String> webJar) { String webJarConfig = ""; // read the webJarConfigs String filename = WebJarAssetLocator.WEBJARS_PATH_PREFIX + "/" + webJar.getKey() + "/" + webJar.getValue() + "/" + "webjars-requirejs.js"; InputSt...
class class_name[name] begin[{] method[getWebJarConfig, return_type[type[String]], modifier[public static], parameter[webJar]] begin[{] local_variable[type[String], webJarConfig] local_variable[type[String], filename] local_variable[type[InputStream], inputStream] if[bin...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[String] identifier[getWebJarConfig] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] identifier[webJar] operator[SEP] { identifier[String] identifier[webJa...
@Override public BatchWriteItemResult batchWriteItem(BatchWriteItemRequest request) { request = beforeClientExecution(request); return executeBatchWriteItem(request); }
class class_name[name] begin[{] method[batchWriteItem, return_type[type[BatchWriteItemResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeBatchWriteItem, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[BatchWriteItemResult] identifier[batchWriteItem] operator[SEP] identifier[BatchWriteItemRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
public void marshall(ApplySchemaRequest applySchemaRequest, ProtocolMarshaller protocolMarshaller) { if (applySchemaRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(applySchemaRequest.getPub...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[applySchemaRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.applySchemaRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ApplySchemaRequest] identifier[applySchemaRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[applySchemaRequest] operator[==] Other[null] operator[SEP] { ...
public Configuration getConfiguration() throws Exception { Configuration result = null; if (cfg.exists()) { userDir = new File(System.getProperty("user.dir")).getAbsolutePath(); System.setProperty("user.dir", options.getExecutionDirectory().getAbsolutePath()); ...
class class_name[name] begin[{] method[getConfiguration, return_type[type[Configuration]], modifier[public], parameter[]] begin[{] local_variable[type[Configuration], result] if[call[cfg.exists, parameter[]]] begin[{] assign[member[.userDir], ClassCreator(argumen...
Keyword[public] identifier[Configuration] identifier[getConfiguration] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Configuration] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[cfg] operator[SEP] identifier[exists] operator[SEP] op...
public void transfer_1_to_3(double x1 , double y1 , double x2 , double y2 , Point3D_F64 p3) { // Adjust the observations so that they lie on the epipolar lines exactly adjuster.process(F21,x1,y1,x2,y2,pa,pb); GeometryMath_F64.mult(F21,pa,la); // line through pb and perpendicular to la l.x = la.y; ...
class class_name[name] begin[{] method[transfer_1_to_3, return_type[void], modifier[public], parameter[x1, y1, x2, y2, p3]] begin[{] call[adjuster.process, parameter[member[.F21], member[.x1], member[.y1], member[.x2], member[.y2], member[.pa], member[.pb]]] call[GeometryMath_F6...
Keyword[public] Keyword[void] identifier[transfer_1_to_3] operator[SEP] Keyword[double] identifier[x1] , Keyword[double] identifier[y1] , Keyword[double] identifier[x2] , Keyword[double] identifier[y2] , identifier[Point3D_F64] identifier[p3] operator[SEP] { identifier[adjuster] operator[SEP] identifier[proc...
public long getLWMScn(String source) { WaterMarkEntry e = sourceWaterMarkMap.get(source); return (e == null) ? 0 : e.getLWMScn(); }
class class_name[name] begin[{] method[getLWMScn, return_type[type[long]], modifier[public], parameter[source]] begin[{] local_variable[type[WaterMarkEntry], e] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=e, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[long] identifier[getLWMScn] operator[SEP] identifier[String] identifier[source] operator[SEP] { identifier[WaterMarkEntry] identifier[e] operator[=] identifier[sourceWaterMarkMap] operator[SEP] identifier[get] operator[SEP] identifier[source] operator[SEP] operator[SEP] Keyword[return] op...
private HttpUriRequest addDefaultHeaders(HttpUriRequest req) { req.addHeader(HttpHeaders.ACCEPT, "*/*"); req.addHeader(HttpHeaders.CONTENT_TYPE, "application/json"); return req; }
class class_name[name] begin[{] method[addDefaultHeaders, return_type[type[HttpUriRequest]], modifier[private], parameter[req]] begin[{] call[req.addHeader, parameter[member[HttpHeaders.ACCEPT], literal["*/*"]]] call[req.addHeader, parameter[member[HttpHeaders.CONTENT_TYPE], lit...
Keyword[private] identifier[HttpUriRequest] identifier[addDefaultHeaders] operator[SEP] identifier[HttpUriRequest] identifier[req] operator[SEP] { identifier[req] operator[SEP] identifier[addHeader] operator[SEP] identifier[HttpHeaders] operator[SEP] identifier[ACCEPT] , literal[String] operator[SEP] operator[S...
public void init() { if (incNestingCount() > 1) { return; } SessionFactory sf = getSessionFactory(); if (sf == null) { return; } if (TransactionSynchronizationManager.hasResource(sf)) { // Do not modify the Session: just set the partici...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[.incNestingCount, parameter[]], >, literal[1]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[SessionFactory...
Keyword[public] Keyword[void] identifier[init] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[incNestingCount] operator[SEP] operator[SEP] operator[>] Other[1] operator[SEP] { Keyword[return] operator[SEP] } identifier[SessionFactory] identifier[sf] operator[=] identi...
private String readAttributeAsString(Attribute attribute) throws UnsupportedKerasConfigurationException { synchronized (Hdf5Archive.LOCK_OBJECT) { VarLenType vl = attribute.getVarLenType(); int bufferSizeMult = 1; String s = null; /* TODO: find a less hacky way to...
class class_name[name] begin[{] method[readAttributeAsString, return_type[type[String]], modifier[private], parameter[attribute]] begin[{] SYNCHRONIZED[member[Hdf5Archive.LOCK_OBJECT]] BEGIN[{] local_variable[type[VarLenType], vl] local_variable[type[int], bufferSizeMult...
Keyword[private] identifier[String] identifier[readAttributeAsString] operator[SEP] identifier[Attribute] identifier[attribute] operator[SEP] Keyword[throws] identifier[UnsupportedKerasConfigurationException] { Keyword[synchronized] operator[SEP] identifier[Hdf5Archive] operator[SEP] identifier[LOCK_OBJECT] oper...
public String checkinNewContent(String sourceDirectory, String message) throws Exception { RmCommand remove = git.rm(); boolean hasFiles = false; for(String filename : new File(getBaseDirectory()).list()) { if(!filename.equals(".git")) { remove.addFilepattern(filename); hasFiles = true...
class class_name[name] begin[{] method[checkinNewContent, return_type[type[String]], modifier[public], parameter[sourceDirectory, message]] begin[{] local_variable[type[RmCommand], remove] local_variable[type[boolean], hasFiles] ForStatement(body=BlockStatement(label=None, statements=[I...
Keyword[public] identifier[String] identifier[checkinNewContent] operator[SEP] identifier[String] identifier[sourceDirectory] , identifier[String] identifier[message] operator[SEP] Keyword[throws] identifier[Exception] { identifier[RmCommand] identifier[remove] operator[=] identifier[git] operator[SEP] identifi...
public java.util.List<NodeGroupConfiguration> getNodeGroupConfiguration() { if (nodeGroupConfiguration == null) { nodeGroupConfiguration = new com.amazonaws.internal.SdkInternalList<NodeGroupConfiguration>(); } return nodeGroupConfiguration; }
class class_name[name] begin[{] method[getNodeGroupConfiguration, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.nodeGroupConfiguration], ==, literal[null]]] begin[{] assign[member[.nodeGroupConfiguration], ClassCreator(argum...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[NodeGroupConfiguration] operator[>] identifier[getNodeGroupConfiguration] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[nodeGroupConfiguration] operator[==] Other[null] opera...
static String getValue(String key) { String result = StringUtils.defaultIfBlank(System.getProperty(key), StringUtils.EMPTY); result = StringUtils.defaultIfBlank(result, System.getenv(key)); return result; }
class class_name[name] begin[{] method[getValue, return_type[type[String]], modifier[static], parameter[key]] begin[{] local_variable[type[String], result] assign[member[.result], call[StringUtils.defaultIfBlank, parameter[member[.result], call[System.getenv, parameter[member[.key]]]]]]...
Keyword[static] identifier[String] identifier[getValue] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[String] identifier[result] operator[=] identifier[StringUtils] operator[SEP] identifier[defaultIfBlank] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operat...
public void drawTextBaseRatio(String label, double horizontalReference, double verticalReference, double rotation, double[] coord) { int[] sc = projection.screenProjectionBaseRatio(coord); int x = sc[0]; int y = sc[1]; AffineTransform transform = g2d.getTransform(); // Corner o...
class class_name[name] begin[{] method[drawTextBaseRatio, return_type[void], modifier[public], parameter[label, horizontalReference, verticalReference, rotation, coord]] begin[{] local_variable[type[int], sc] local_variable[type[int], x] local_variable[type[int], y] local_variab...
Keyword[public] Keyword[void] identifier[drawTextBaseRatio] operator[SEP] identifier[String] identifier[label] , Keyword[double] identifier[horizontalReference] , Keyword[double] identifier[verticalReference] , Keyword[double] identifier[rotation] , Keyword[double] operator[SEP] operator[SEP] identifier[coord] oper...
public static FlinkJoinType toFlinkJoinType(JoinRelType joinRelType) { switch (joinRelType) { case INNER: return FlinkJoinType.INNER; case LEFT: return FlinkJoinType.LEFT; case RIGHT: return FlinkJoinType.RIGHT; case FULL: return FlinkJoinType.FULL; default: throw new IllegalArgumen...
class class_name[name] begin[{] method[toFlinkJoinType, return_type[type[FlinkJoinType]], modifier[public static], parameter[joinRelType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['INNER'], statements=[ReturnStatement(expression=MemberReference(member=INNER, postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[FlinkJoinType] identifier[toFlinkJoinType] operator[SEP] identifier[JoinRelType] identifier[joinRelType] operator[SEP] { Keyword[switch] operator[SEP] identifier[joinRelType] operator[SEP] { Keyword[case] identifier[INNER] operator[:] Keyword[return] identif...
private void validateRelationship(String baseTableName, String relatedTableName, String relationName) { // Verify the base and related tables exist if (!geoPackage.isTable(baseTableName)) { throw new GeoPackageException( "Base Relationship table does not exist: " + baseTableName + ", Relation: " ...
class class_name[name] begin[{] method[validateRelationship, return_type[void], modifier[private], parameter[baseTableName, relatedTableName, relationName]] begin[{] if[call[geoPackage.isTable, parameter[member[.baseTableName]]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[private] Keyword[void] identifier[validateRelationship] operator[SEP] identifier[String] identifier[baseTableName] , identifier[String] identifier[relatedTableName] , identifier[String] identifier[relationName] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[geoPackage] operator[SEP] i...
public static INDArrayIndex[] allFor(INDArray arr) { INDArrayIndex[] ret = new INDArrayIndex[arr.rank()]; for (int i = 0; i < ret.length; i++) ret[i] = NDArrayIndex.all(); return ret; }
class class_name[name] begin[{] method[allFor, return_type[type[INDArrayIndex]], modifier[public static], parameter[arr]] begin[{] local_variable[type[INDArrayIndex], ret] ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=ret, postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[INDArrayIndex] operator[SEP] operator[SEP] identifier[allFor] operator[SEP] identifier[INDArray] identifier[arr] operator[SEP] { identifier[INDArrayIndex] operator[SEP] operator[SEP] identifier[ret] operator[=] Keyword[new] identifier[INDArrayIndex] operator[SEP] identi...
public static int getHydrogenCount(IAtomContainer atomContainer, IAtom atom) { return getExplicitHydrogenCount(atomContainer, atom) + getImplicitHydrogenCount(atom); }
class class_name[name] begin[{] method[getHydrogenCount, return_type[type[int]], modifier[public static], parameter[atomContainer, atom]] begin[{] return[binary_operation[call[.getExplicitHydrogenCount, parameter[member[.atomContainer], member[.atom]]], +, call[.getImplicitHydrogenCount, parameter[memb...
Keyword[public] Keyword[static] Keyword[int] identifier[getHydrogenCount] operator[SEP] identifier[IAtomContainer] identifier[atomContainer] , identifier[IAtom] identifier[atom] operator[SEP] { Keyword[return] identifier[getExplicitHydrogenCount] operator[SEP] identifier[atomContainer] , identifier[atom] opera...
public Variable[] getVariables(String component, Object ... markingsToExclude) { ArrayList<Variable> ret = this.components.get(component); if (ret == null) return new Variable[0]; ArrayList<Variable> retFiltered = new ArrayList<Variable>(); for (Variable v : ret) { boolean found = false; if (v.getMa...
class class_name[name] begin[{] method[getVariables, return_type[type[Variable]], modifier[public], parameter[component, markingsToExclude]] begin[{] local_variable[type[ArrayList], ret] if[binary_operation[member[.ret], ==, literal[null]]] begin[{] return[ArrayCreator(dimensions=[Liter...
Keyword[public] identifier[Variable] operator[SEP] operator[SEP] identifier[getVariables] operator[SEP] identifier[String] identifier[component] , identifier[Object] operator[...] identifier[markingsToExclude] operator[SEP] { identifier[ArrayList] operator[<] identifier[Variable] operator[>] identifier[ret] ope...
public void marshall(DescribeHapgRequest describeHapgRequest, ProtocolMarshaller protocolMarshaller) { if (describeHapgRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(describeHapgRequest.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeHapgRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeHapgRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeHapgRequest] identifier[describeHapgRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeHapgRequest] operator[==] Other[null] operator[SEP] { ...
@Descriptor("Gets the discovery available in the platform") public void discovery(@Descriptor("discovery [discovery name]") String... parameters) { List<ServiceReference> discoveryRef = getAllServiceRefs(DiscoveryService.class); StringBuilder sbFinal = new StringBuilder(); if (discoveryRef.i...
class class_name[name] begin[{] method[discovery, return_type[void], modifier[public], parameter[parameters]] begin[{] local_variable[type[List], discoveryRef] local_variable[type[StringBuilder], sbFinal] if[call[discoveryRef.isEmpty, parameter[]]] begin[{] ...
annotation[@] identifier[Descriptor] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[discovery] operator[SEP] annotation[@] identifier[Descriptor] operator[SEP] literal[String] operator[SEP] identifier[String] operator[...] identifier[parameters] operator[SEP] { identifier[Li...
@Override public StorageNodeInfo getFetchStorage(String groupName, String filename) { TrackerGetFetchStorageCommand command = new TrackerGetFetchStorageCommand(groupName, filename, false); return trackerConnectionManager.executeFdfsTrackerCmd(command); }
class class_name[name] begin[{] method[getFetchStorage, return_type[type[StorageNodeInfo]], modifier[public], parameter[groupName, filename]] begin[{] local_variable[type[TrackerGetFetchStorageCommand], command] return[call[trackerConnectionManager.executeFdfsTrackerCmd, parameter[member[.comma...
annotation[@] identifier[Override] Keyword[public] identifier[StorageNodeInfo] identifier[getFetchStorage] operator[SEP] identifier[String] identifier[groupName] , identifier[String] identifier[filename] operator[SEP] { identifier[TrackerGetFetchStorageCommand] identifier[command] operator[=] Keyword[new] ident...
@Trivial public static String normalizeCacheName(String cacheName, CacheConfig cacheConfig) { String tempCacheName = cacheName; if (cacheName.equalsIgnoreCase(DCacheBase.DEFAULT_BASE_JNDI_NAME)) { tempCacheName = DCacheBase.DEFAULT_CACHE_NAME; } else if (cacheName.equalsIgnore...
class class_name[name] begin[{] method[normalizeCacheName, return_type[type[String]], modifier[public static], parameter[cacheName, cacheConfig]] begin[{] local_variable[type[String], tempCacheName] if[call[cacheName.equalsIgnoreCase, parameter[member[DCacheBase.DEFAULT_BASE_JNDI_NAME]]...
annotation[@] identifier[Trivial] Keyword[public] Keyword[static] identifier[String] identifier[normalizeCacheName] operator[SEP] identifier[String] identifier[cacheName] , identifier[CacheConfig] identifier[cacheConfig] operator[SEP] { identifier[String] identifier[tempCacheName] operator[=] identifier[cacheNa...
protected void attemptFlush() throws SIRollbackException, SIConnectionLostException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc,"attemptFlush"); //The FlushComplete callback FlushComplete callback = null; //The old set...
class class_name[name] begin[{] method[attemptFlush, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc], ...
Keyword[protected] Keyword[void] identifier[attemptFlush] operator[SEP] operator[SEP] Keyword[throws] identifier[SIRollbackException] , identifier[SIConnectionLostException] , identifier[SIResourceException] , identifier[SIErrorException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] id...
boolean processDirectory(String dirname, Collection<String> classNames) throws IOException { if (!Files.isDirectory(Paths.get(dirname))) { err.printf("%s: not a directory%n", dirname); return false; } classPath.add(0, new File(dirname)); if (classNames.isEmpty()...
class class_name[name] begin[{] method[processDirectory, return_type[type[boolean]], modifier[default], parameter[dirname, classNames]] begin[{] if[call[Files.isDirectory, parameter[call[Paths.get, parameter[member[.dirname]]]]]] begin[{] call[err.printf, parameter[liter...
Keyword[boolean] identifier[processDirectory] operator[SEP] identifier[String] identifier[dirname] , identifier[Collection] operator[<] identifier[String] operator[>] identifier[classNames] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[Files] operator[S...
public void fixate() { ransac = FactoryMultiViewRobust.trifocalRansac(configTriRansac,configError,configRansac); sba = FactoryMultiView.bundleSparseProjective(configSBA); }
class class_name[name] begin[{] method[fixate, return_type[void], modifier[public], parameter[]] begin[{] assign[member[.ransac], call[FactoryMultiViewRobust.trifocalRansac, parameter[member[.configTriRansac], member[.configError], member[.configRansac]]]] assign[member[.sba], c...
Keyword[public] Keyword[void] identifier[fixate] operator[SEP] operator[SEP] { identifier[ransac] operator[=] identifier[FactoryMultiViewRobust] operator[SEP] identifier[trifocalRansac] operator[SEP] identifier[configTriRansac] , identifier[configError] , identifier[configRansac] operator[SEP] operator[SEP] id...
public void marshall(GetThirdPartyJobDetailsRequest getThirdPartyJobDetailsRequest, ProtocolMarshaller protocolMarshaller) { if (getThirdPartyJobDetailsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getThirdPartyJobDetailsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getThirdPartyJobDetailsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCrea...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetThirdPartyJobDetailsRequest] identifier[getThirdPartyJobDetailsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getThirdPartyJobDetailsRequest] operator[==]...
protected ArchiveInputStream createArchiveInputStream(File archive) throws IOException { try { return CommonsStreamFactory.createArchiveInputStream(archive); } catch (ArchiveException e) { throw new IOException(e); } }
class class_name[name] begin[{] method[createArchiveInputStream, return_type[type[ArchiveInputStream]], modifier[protected], parameter[archive]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=archive, postfix_operators=[], prefix_operators=[],...
Keyword[protected] identifier[ArchiveInputStream] identifier[createArchiveInputStream] operator[SEP] identifier[File] identifier[archive] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[return] identifier[CommonsStreamFactory] operator[SEP] identifier[createArchiveInputS...
public void set(String name, Object obj) throws IOException { if (!(obj instanceof Integer)) { throw new IOException("Attribute must be of type Integer."); } if (name.equalsIgnoreCase(REASON)) { reasonCode = ((Integer)obj).intValue(); } else { throw ne...
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[name, obj]] begin[{] if[binary_operation[member[.obj], instanceof, type[Integer]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[obj] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[obj] Keyword[instanceof] identifier[Integer] operator[SEP] o...
protected void redeliverMessage( AbstractMessage msg , MessageStore store , int handle ) { try { synchronized (storeLock) { // Unlock message in store store.unlock(handle); if (traceEnabled) log.trace("(Deferred) UNLOCKED "+msg.getJMSMessageID()); } ...
class class_name[name] begin[{] method[redeliverMessage, return_type[void], modifier[protected], parameter[msg, store, handle]] begin[{] TryStatement(block=[SynchronizedStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=handle, postfix_operators=[], prefi...
Keyword[protected] Keyword[void] identifier[redeliverMessage] operator[SEP] identifier[AbstractMessage] identifier[msg] , identifier[MessageStore] identifier[store] , Keyword[int] identifier[handle] operator[SEP] { Keyword[try] { Keyword[synchronized] operator[SEP] identifier[storeLock] operator[SEP...
protected String randomValue(List<String> values) { if (values == null || values.isEmpty()) { throw new InvalidFunctionUsageException("No values to choose from"); } final int idx = random.nextInt(values.size()); return values.get(idx); }
class class_name[name] begin[{] method[randomValue, return_type[type[String]], modifier[protected], parameter[values]] begin[{] if[binary_operation[binary_operation[member[.values], ==, literal[null]], ||, call[values.isEmpty, parameter[]]]] begin[{] ThrowStatement(expression=ClassC...
Keyword[protected] identifier[String] identifier[randomValue] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[values] operator[==] Other[null] operator[||] identifier[values] operator[SEP] identifier[isEmpty] operat...
private void registerNativeFunctionHandlers( Map<String, HandlerDefinition> mappingInfos, Class<? extends AbstractNativeFunctionHandler> handlerClassType) throws SecurityException, NoSuchMethodException { Iterator<Entry<String, HandlerDefinition>> iterator = mappingInfos.entrySet() .iterator(); while...
class class_name[name] begin[{] method[registerNativeFunctionHandlers, return_type[void], modifier[private], parameter[mappingInfos, handlerClassType]] begin[{] local_variable[type[Iterator], iterator] while[call[iterator.hasNext, parameter[]]] begin[{] local_variable[type[E...
Keyword[private] Keyword[void] identifier[registerNativeFunctionHandlers] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[HandlerDefinition] operator[>] identifier[mappingInfos] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[AbstractNativeFunctionHandler] operator[>]...
public ExecutionVertex duplicateVertex(final boolean preserveVertexID) { ExecutionVertexID newVertexID; if (preserveVertexID) { newVertexID = this.vertexID; } else { newVertexID = new ExecutionVertexID(); } final ExecutionVertex duplicatedVertex = new ExecutionVertex(newVertexID, this.executionGraph, ...
class class_name[name] begin[{] method[duplicateVertex, return_type[type[ExecutionVertex]], modifier[public], parameter[preserveVertexID]] begin[{] local_variable[type[ExecutionVertexID], newVertexID] if[member[.preserveVertexID]] begin[{] assign[member[.newVerte...
Keyword[public] identifier[ExecutionVertex] identifier[duplicateVertex] operator[SEP] Keyword[final] Keyword[boolean] identifier[preserveVertexID] operator[SEP] { identifier[ExecutionVertexID] identifier[newVertexID] operator[SEP] Keyword[if] operator[SEP] identifier[preserveVertexID] operator[SEP] { ...
public Resource getMissingResource(final ResourceList resources) { try { return _withLock(new Callable<Resource>() { @Override public Resource call() { return resources.getConflict(inUse); } }); } catch (Exceptio...
class class_name[name] begin[{] method[getMissingResource, return_type[type[Resource]], modifier[public], parameter[resources]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, na...
Keyword[public] identifier[Resource] identifier[getMissingResource] operator[SEP] Keyword[final] identifier[ResourceList] identifier[resources] operator[SEP] { Keyword[try] { Keyword[return] identifier[_withLock] operator[SEP] Keyword[new] identifier[Callable] operator[<] identifier[Resource] operator...
public static HashMap<Group, Category> mapGroupsToCategories(List<Category> categories) { HashMap<Group, Category> groupCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { groupCategoryMap.pu...
class class_name[name] begin[{] method[mapGroupsToCategories, return_type[type[HashMap]], modifier[public static], parameter[categories]] begin[{] local_variable[type[HashMap], groupCategoryMap] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(opera...
Keyword[public] Keyword[static] identifier[HashMap] operator[<] identifier[Group] , identifier[Category] operator[>] identifier[mapGroupsToCategories] operator[SEP] identifier[List] operator[<] identifier[Category] operator[>] identifier[categories] operator[SEP] { identifier[HashMap] operator[<] identifier[Gro...
public Query adapt(Scan scan) { ReadHooks readHooks = new DefaultReadHooks(); Query query = Query.create(bigtableTableName.getTableId()); Adapters.SCAN_ADAPTER.adapt(scan, readHooks, query); readHooks.applyPreSendHook(query); return query; }
class class_name[name] begin[{] method[adapt, return_type[type[Query]], modifier[public], parameter[scan]] begin[{] local_variable[type[ReadHooks], readHooks] local_variable[type[Query], query] call[Adapters.SCAN_ADAPTER.adapt, parameter[member[.scan], member[.readHooks], member...
Keyword[public] identifier[Query] identifier[adapt] operator[SEP] identifier[Scan] identifier[scan] operator[SEP] { identifier[ReadHooks] identifier[readHooks] operator[=] Keyword[new] identifier[DefaultReadHooks] operator[SEP] operator[SEP] operator[SEP] identifier[Query] identifier[query] operator[=] identifie...
public String getFileName() { if (m_fileName == null) { // use "lazy initializing" if (!m_sitePath.endsWith("/")) { m_fileName = m_sitePath.substring(m_sitePath.lastIndexOf("/") + 1, m_sitePath.length()); } else { m_fileName = m_sitePath.subst...
class class_name[name] begin[{] method[getFileName, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_fileName], ==, literal[null]]] begin[{] if[call[m_sitePath.endsWith, parameter[literal["/"]]]] begin[{] ...
Keyword[public] identifier[String] identifier[getFileName] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_fileName] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_sitePath] operator[SEP] identifier[endsWith] operator[SEP] literal[Strin...
protected boolean emailOK(ThreddsMetadata.Source p) { String email = p.getEmail(); return email.indexOf('@') >= 0; // should really do a regexp }
class class_name[name] begin[{] method[emailOK, return_type[type[boolean]], modifier[protected], parameter[p]] begin[{] local_variable[type[String], email] return[binary_operation[call[email.indexOf, parameter[literal['@']]], >=, literal[0]]] end[}] END[}]
Keyword[protected] Keyword[boolean] identifier[emailOK] operator[SEP] identifier[ThreddsMetadata] operator[SEP] identifier[Source] identifier[p] operator[SEP] { identifier[String] identifier[email] operator[=] identifier[p] operator[SEP] identifier[getEmail] operator[SEP] operator[SEP] operator[SEP] Keyword[retu...
protected void BuildGSubrsUsed(int Font) { int LBias = 0; int SizeOfNonCIDSubrsUsed = 0; if (fonts[Font].privateSubrs>=0) { LBias = CalcBias(fonts[Font].privateSubrs,Font); SizeOfNonCIDSubrsUsed = lSubrsUsedNonCID.size(); } // For each global subr used for (int i=0;i<lGSubrsUsed.size();i++) {...
class class_name[name] begin[{] method[BuildGSubrsUsed, return_type[void], modifier[protected], parameter[Font]] begin[{] local_variable[type[int], LBias] local_variable[type[int], SizeOfNonCIDSubrsUsed] if[binary_operation[member[.fonts], >=, literal[0]]] begin[{] ...
Keyword[protected] Keyword[void] identifier[BuildGSubrsUsed] operator[SEP] Keyword[int] identifier[Font] operator[SEP] { Keyword[int] identifier[LBias] operator[=] Other[0] operator[SEP] Keyword[int] identifier[SizeOfNonCIDSubrsUsed] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[fonts] ...
SqlgVertex putVertexIfAbsent(SqlgGraph sqlgGraph, String schema, String table, Long id) { RecordId recordId = RecordId.from(SchemaTable.of(schema, table), id); SqlgVertex sqlgVertex; if (this.cacheVertices) { sqlgVertex = this.vertexCache.get(recordId); if (sqlgVertex == ...
class class_name[name] begin[{] method[putVertexIfAbsent, return_type[type[SqlgVertex]], modifier[default], parameter[sqlgGraph, schema, table, id]] begin[{] local_variable[type[RecordId], recordId] local_variable[type[SqlgVertex], sqlgVertex] if[THIS[member[None.cacheVertices]]...
identifier[SqlgVertex] identifier[putVertexIfAbsent] operator[SEP] identifier[SqlgGraph] identifier[sqlgGraph] , identifier[String] identifier[schema] , identifier[String] identifier[table] , identifier[Long] identifier[id] operator[SEP] { identifier[RecordId] identifier[recordId] operator[=] identifier[Recor...
public List matchAll(String uri) { ClauseNode currentNode = root; ArrayList<Object> returnList = new ArrayList<Object>(); // extension matching done first in the matchAll case // since it is most generic // int dot = uri.lastIndexOf("."); if (dot != -1) { ...
class class_name[name] begin[{] method[matchAll, return_type[type[List]], modifier[public], parameter[uri]] begin[{] local_variable[type[ClauseNode], currentNode] local_variable[type[ArrayList], returnList] local_variable[type[int], dot] if[binary_operation[member[.dot],...
Keyword[public] identifier[List] identifier[matchAll] operator[SEP] identifier[String] identifier[uri] operator[SEP] { identifier[ClauseNode] identifier[currentNode] operator[=] identifier[root] operator[SEP] identifier[ArrayList] operator[<] identifier[Object] operator[>] identifier[returnList] operator[=] Keyw...
@Override public PageElement getPageElementByKey(String key) { PageElement p; for (final Field f : getClass().getDeclaredFields()) { if (f.getType() == PageElement.class) { try { p = (PageElement) f.get(this); } catch (IllegalArg...
class class_name[name] begin[{] method[getPageElementByKey, return_type[type[PageElement]], modifier[public], parameter[key]] begin[{] local_variable[type[PageElement], p] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(ar...
annotation[@] identifier[Override] Keyword[public] identifier[PageElement] identifier[getPageElementByKey] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[PageElement] identifier[p] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Field] identifier[f] operator[:] id...
private void onPersist(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> rlHolders, Object connection) { // first open a pipeline AttributeWrapper wrapper = wrap(entityMetadata, entity); // add relations. if (rlHolders != null) { ...
class class_name[name] begin[{] method[onPersist, return_type[void], modifier[private], parameter[entityMetadata, entity, id, rlHolders, connection]] begin[{] local_variable[type[AttributeWrapper], wrapper] if[binary_operation[member[.rlHolders], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[void] identifier[onPersist] operator[SEP] identifier[EntityMetadata] identifier[entityMetadata] , identifier[Object] identifier[entity] , identifier[Object] identifier[id] , identifier[List] operator[<] identifier[RelationHolder] operator[>] identifier[rlHolders] , identifier[Object] identi...
public ServiceFuture<List<QueryStatisticInner>> listByQueryAsync(String resourceGroupName, String serverName, String databaseName, String queryId, final ServiceCallback<List<QueryStatisticInner>> serviceCallback) { return ServiceFuture.fromResponse(listByQueryWithServiceResponseAsync(resourceGroupName, serverNa...
class class_name[name] begin[{] method[listByQueryAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, databaseName, queryId, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listByQueryWithServiceResponseAsync, parameter[...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[QueryStatisticInner] operator[>] operator[>] identifier[listByQueryAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseNam...
public HiveShellContainer evaluateStatement(List<? extends Script> scripts, Object target, TemporaryFolder temporaryFolder, Statement base) throws Throwable { container = null; FileUtil.setPermission(temporaryFolder.getRoot(), FsPermission.getDirDefault()); try { LOGGER.info("Setting...
class class_name[name] begin[{] method[evaluateStatement, return_type[type[HiveShellContainer]], modifier[public], parameter[scripts, target, temporaryFolder, base]] begin[{] assign[member[.container], literal[null]] call[FileUtil.setPermission, parameter[call[temporaryFolder.ge...
Keyword[public] identifier[HiveShellContainer] identifier[evaluateStatement] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Script] operator[>] identifier[scripts] , identifier[Object] identifier[target] , identifier[TemporaryFolder] identifier[temporaryFolder] , identifier[Statem...
public void init(CmsObject cms, Locale locale) { init(cms, locale, cms.getRequestContext().getUri()); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[cms, locale]] begin[{] call[.init, parameter[member[.cms], member[.locale], call[cms.getRequestContext, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[Locale] identifier[locale] operator[SEP] { identifier[init] operator[SEP] identifier[cms] , identifier[locale] , identifier[cms] operator[SEP] identifier[getRequestContext] operator[SEP] operator[SE...
private List<KeyedMessageWithType> invokeOperation(final Object instance, final Operation op, final KeyedMessage message) { if(instance != null) { // possibly passivated ... List<KeyedMessageWithType> result; try { if(traceEnabled) LOGGER.trace("invoki...
class class_name[name] begin[{] method[invokeOperation, return_type[type[List]], modifier[private], parameter[instance, op, message]] begin[{] if[binary_operation[member[.instance], !=, literal[null]]] begin[{] local_variable[type[List], result] TryStatement(block=[IfSta...
Keyword[private] identifier[List] operator[<] identifier[KeyedMessageWithType] operator[>] identifier[invokeOperation] operator[SEP] Keyword[final] identifier[Object] identifier[instance] , Keyword[final] identifier[Operation] identifier[op] , Keyword[final] identifier[KeyedMessage] identifier[message] operator[SEP] ...
public void marshall(DescribeIdentityPoolRequest describeIdentityPoolRequest, ProtocolMarshaller protocolMarshaller) { if (describeIdentityPoolRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeIdentityPoolRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeIdentityPoolRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeIdentityPoolRequest] identifier[describeIdentityPoolRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeIdentityPoolRequest] operator[==] Other[nu...
@SafeVarargs public final PGL objects(uk.kludje.property.Getter<T>... getters) { PGL result = (PGL) this; for (uk.kludje.property.Getter<T> g : getters) { result = newInstance(result, "", g); } return result; }
class class_name[name] begin[{] method[objects, return_type[type[PGL]], modifier[final public], parameter[getters]] begin[{] local_variable[type[PGL], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=re...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[final] identifier[PGL] identifier[objects] operator[SEP] identifier[uk] operator[SEP] identifier[kludje] operator[SEP] identifier[property] operator[SEP] identifier[Getter] operator[<] identifier[T] operator[>] operator[...] identifier[getters] operator[SEP]...
@SuppressWarnings("serial") public Map<String, PullMeasure<?>> createPullsFromFields(final Object object) { Map<String, PullMeasure<?>> measures = new HashMap<String, PullMeasure<?>>(); Class<? extends Object> clazz = object.getClass(); for (final Field field : clazz.getFields()) { String key = field.getName(...
class class_name[name] begin[{] method[createPullsFromFields, return_type[type[Map]], modifier[public], parameter[object]] begin[{] local_variable[type[Map], measures] local_variable[type[Class], clazz] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(an...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[PullMeasure] operator[<] operator[?] operator[>] operator[>] identifier[createPullsFromFields] operator[SEP] Keyword[final] identifier[Object] identifier[ob...
@SuppressWarnings("unchecked") public MergeObservableList<T> insertList(@NonNull ObservableList<? extends T> list) { list.addOnListChangedCallback(callback); int oldSize = size(); lists.add(list); modCount += 1; if (!list.isEmpty()) { listeners.notifyInserted(this...
class class_name[name] begin[{] method[insertList, return_type[type[MergeObservableList]], modifier[public], parameter[list]] begin[{] call[list.addOnListChangedCallback, parameter[member[.callback]]] local_variable[type[int], oldSize] call[lists.add, parameter[member[.l...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[MergeObservableList] operator[<] identifier[T] operator[>] identifier[insertList] operator[SEP] annotation[@] identifier[NonNull] identifier[ObservableList] operator[<] operator[?] Keyword[extends] identifi...
public <K> Stream<Grouped<K, T>> groupBy(final Func1<? super T, ? extends K> groupSelector) { return groupBy(groupSelector, new Func1<T, T>() { @Override public T call(T value) { return value; } }); }
class class_name[name] begin[{] method[groupBy, return_type[type[Stream]], modifier[public], parameter[groupSelector]] begin[{] return[call[.groupBy, parameter[member[.groupSelector], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnS...
Keyword[public] operator[<] identifier[K] operator[>] identifier[Stream] operator[<] identifier[Grouped] operator[<] identifier[K] , identifier[T] operator[>] operator[>] identifier[groupBy] operator[SEP] Keyword[final] identifier[Func1] operator[<] operator[?] Keyword[super] identifier[T] , operator[?] Keyword[exten...
private void parseExprSingle() throws TTXPathException { mPipeBuilder.addExpressionSingle(); final String tContent = mToken.getContent(); if ("for".equals(tContent)) { parseForExpr(); } else if ("some".equals(tContent) || "every".equals(tContent)) { parseQuantif...
class class_name[name] begin[{] method[parseExprSingle, return_type[void], modifier[private], parameter[]] begin[{] call[mPipeBuilder.addExpressionSingle, parameter[]] local_variable[type[String], tContent] if[literal["for"]] begin[{] call[.parseF...
Keyword[private] Keyword[void] identifier[parseExprSingle] operator[SEP] operator[SEP] Keyword[throws] identifier[TTXPathException] { identifier[mPipeBuilder] operator[SEP] identifier[addExpressionSingle] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[tContent] operator[=]...
private void setupFilters(Analyzer analyzer) { String exclude = analyzer.getProperty("importless.packager.excludes"); String[] excludesAll = exclude.split(","); for (String excludesIndividual:excludesAll) { if (excludesIndividual.endsWith("*")) excludePrefixes.add(excludesIndividual.substring(0,excludesInd...
class class_name[name] begin[{] method[setupFilters, return_type[void], modifier[private], parameter[analyzer]] begin[{] local_variable[type[String], exclude] local_variable[type[String], excludesAll] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodI...
Keyword[private] Keyword[void] identifier[setupFilters] operator[SEP] identifier[Analyzer] identifier[analyzer] operator[SEP] { identifier[String] identifier[exclude] operator[=] identifier[analyzer] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String...
Filter getFilter() throws InvalidSyntaxException { if (filter == null && filterSpec != null) { filter = eventEngine.getBundleContext().createFilter(filterSpec); } return filter; }
class class_name[name] begin[{] method[getFilter, return_type[type[Filter]], modifier[default], parameter[]] begin[{] if[binary_operation[binary_operation[member[.filter], ==, literal[null]], &&, binary_operation[member[.filterSpec], !=, literal[null]]]] begin[{] assign[...
identifier[Filter] identifier[getFilter] operator[SEP] operator[SEP] Keyword[throws] identifier[InvalidSyntaxException] { Keyword[if] operator[SEP] identifier[filter] operator[==] Other[null] operator[&&] identifier[filterSpec] operator[!=] Other[null] operator[SEP] { identifier[filter] operator[=] id...
public void setVersao(final String versao) { StringValidador.equals(MDFe.VERSAO, versao); this.versao = versao; }
class class_name[name] begin[{] method[setVersao, return_type[void], modifier[public], parameter[versao]] begin[{] call[StringValidador.equals, parameter[member[MDFe.VERSAO], member[.versao]]] assign[THIS[member[None.versao]], member[.versao]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setVersao] operator[SEP] Keyword[final] identifier[String] identifier[versao] operator[SEP] { identifier[StringValidador] operator[SEP] identifier[equals] operator[SEP] identifier[MDFe] operator[SEP] identifier[VERSAO] , identifier[versao] operator[SEP] operator[SEP] Key...
@RequestMapping(value = "group", method = RequestMethod.GET) public String newGroupGet(Model model) { model.addAttribute("groups", pathOverrideService.findAllGroups()); return "groups"; }
class class_name[name] begin[{] method[newGroupGet, return_type[type[String]], modifier[public], parameter[model]] begin[{] call[model.addAttribute, parameter[literal["groups"], call[pathOverrideService.findAllGroups, parameter[]]]] return[literal["groups"]] end[}] END[}]
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[GET] operator[SEP] Keyword[public] identifier[String] identifier[newGroupGet] operator[SEP] identifier[Model] identifier[model] operat...
public static int int4(byte[] bytes, int idx) { return ((bytes[idx] & 255) << 24) + ((bytes[idx + 1] & 255) << 16) + ((bytes[idx + 2] & 255) << 8) + ((bytes[idx + 3] & 255)); }
class class_name[name] begin[{] method[int4, return_type[type[int]], modifier[public static], parameter[bytes, idx]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.bytes], &, literal[255]], <<, literal[24]], +, binary_operation[binary_operat...
Keyword[public] Keyword[static] Keyword[int] identifier[int4] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[idx] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] identifier[idx] operator[SEP] operator[&] Other[255] ...
public void marshall(Trigger trigger, ProtocolMarshaller protocolMarshaller) { if (trigger == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trigger.getName(), NAME_BINDING); protocolMars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[trigger, protocolMarshaller]] begin[{] if[binary_operation[member[.trigger], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Trigger] identifier[trigger] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[trigger] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] i...
public Attribute addAttribute(Group parent, Attribute att) { if (immutable) throw new IllegalStateException("Cant modify"); if (parent == null) parent = rootGroup; parent.addAttribute(att); return att; }
class class_name[name] begin[{] method[addAttribute, return_type[type[Attribute]], modifier[public], parameter[parent, att]] begin[{] if[member[.immutable]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]...
Keyword[public] identifier[Attribute] identifier[addAttribute] operator[SEP] identifier[Group] identifier[parent] , identifier[Attribute] identifier[att] operator[SEP] { Keyword[if] operator[SEP] identifier[immutable] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] lite...
private synchronized CodeSource mapSignersToCodeSource(URL url, CodeSigner[] signers) { Map map; if (url == lastURL) { map = lastURLMap; } else { map = (Map) urlToCodeSourceMap.get(url); if (map == null) { map = new HashMap(); u...
class class_name[name] begin[{] method[mapSignersToCodeSource, return_type[type[CodeSource]], modifier[synchronized private], parameter[url, signers]] begin[{] local_variable[type[Map], map] if[binary_operation[member[.url], ==, member[.lastURL]]] begin[{] assign...
Keyword[private] Keyword[synchronized] identifier[CodeSource] identifier[mapSignersToCodeSource] operator[SEP] identifier[URL] identifier[url] , identifier[CodeSigner] operator[SEP] operator[SEP] identifier[signers] operator[SEP] { identifier[Map] identifier[map] operator[SEP] Keyword[if] operator[SEP] identifi...