code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void marshall(UpdateBatchPredictionRequest updateBatchPredictionRequest, ProtocolMarshaller protocolMarshaller) { if (updateBatchPredictionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateBatchPredictionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateBatchPredictionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateBatchPredictionRequest] identifier[updateBatchPredictionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateBatchPredictionRequest] operator[==] Other...
public void setDomainNameConfigurations(java.util.Collection<DomainNameConfiguration> domainNameConfigurations) { if (domainNameConfigurations == null) { this.domainNameConfigurations = null; return; } this.domainNameConfigurations = new java.util.ArrayList<DomainNameCon...
class class_name[name] begin[{] method[setDomainNameConfigurations, return_type[void], modifier[public], parameter[domainNameConfigurations]] begin[{] if[binary_operation[member[.domainNameConfigurations], ==, literal[null]]] begin[{] assign[THIS[member[None.domainNameCo...
Keyword[public] Keyword[void] identifier[setDomainNameConfigurations] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[DomainNameConfiguration] operator[>] identifier[domainNameConfigurations] operator[SEP] { Keyword[if] operator[SEP] ident...
private String getMandatory(String name) { if (!config.containsKey(name)) { throw new RuntimeException(name + " parameter is missing."); } else { return config.getString(name); } }
class class_name[name] begin[{] method[getMandatory, return_type[type[String]], modifier[private], parameter[name]] begin[{] if[call[config.containsKey, parameter[member[.name]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(mem...
Keyword[private] identifier[String] identifier[getMandatory] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[config] operator[SEP] identifier[containsKey] operator[SEP] identifier[name] operator[SEP] operator[SEP] { Keyword[throw] Keyw...
Object[] readNext(List<String> columnNames) throws IOException { if (currentRowInFileIndex++ >= sasFileProperties.getRowCount() || eof) { return null; } int bitOffset = sasFileProperties.isU64() ? PAGE_BIT_OFFSET_X64 : PAGE_BIT_OFFSET_X86; switch (currentPageType) { ...
class class_name[name] begin[{] method[readNext, return_type[type[Object]], modifier[default], parameter[columnNames]] begin[{] if[binary_operation[binary_operation[member[.currentRowInFileIndex], >=, call[sasFileProperties.getRowCount, parameter[]]], ||, member[.eof]]] begin[{] ret...
identifier[Object] operator[SEP] operator[SEP] identifier[readNext] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[columnNames] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[currentRowInFileIndex] operator[++] operator[>=] ident...
@Pure @Inline(value="($1 >>> $2)", constantExpression=true) public static int operator_tripleGreaterThan(int a, int distance) { return a >>> distance; }
class class_name[name] begin[{] method[operator_tripleGreaterThan, return_type[type[int]], modifier[public static], parameter[a, distance]] begin[{] return[binary_operation[member[.a], >>>, member[.distance]]] end[}] END[}]
annotation[@] identifier[Pure] annotation[@] identifier[Inline] operator[SEP] identifier[value] operator[=] literal[String] , identifier[constantExpression] operator[=] literal[boolean] operator[SEP] Keyword[public] Keyword[static] Keyword[int] identifier[operator_tripleGreaterThan] operator[SEP] Keyword[int] identifi...
public static Drawable getSelectableBackground(Context ctx) { int selectableBackgroundRes = getSelectableBackgroundRes(ctx); return ContextCompat.getDrawable(ctx, selectableBackgroundRes); }
class class_name[name] begin[{] method[getSelectableBackground, return_type[type[Drawable]], modifier[public static], parameter[ctx]] begin[{] local_variable[type[int], selectableBackgroundRes] return[call[ContextCompat.getDrawable, parameter[member[.ctx], member[.selectableBackgroundRes]]]] ...
Keyword[public] Keyword[static] identifier[Drawable] identifier[getSelectableBackground] operator[SEP] identifier[Context] identifier[ctx] operator[SEP] { Keyword[int] identifier[selectableBackgroundRes] operator[=] identifier[getSelectableBackgroundRes] operator[SEP] identifier[ctx] operator[SEP] operator[SEP] ...
public static DocumentFragment readXMLFragment(InputStream stream) throws IOException, SAXException, ParserConfigurationException { return readXMLFragment(stream, false); }
class class_name[name] begin[{] method[readXMLFragment, return_type[type[DocumentFragment]], modifier[public static], parameter[stream]] begin[{] return[call[.readXMLFragment, parameter[member[.stream], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DocumentFragment] identifier[readXMLFragment] operator[SEP] identifier[InputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SAXException] , identifier[ParserConfigurationException] { Keyword[return] identifier[readXMLFragm...
private String replaceCharacters(String name) { name = name.replaceAll("&gt;", ">"); name = name.replaceAll("&lt;", "<"); name = name.replaceAll("&amp;", "&"); name = name.replaceAll("<\\%", "<%"); name = name.replaceAll("%\\>", "%>"); return name; }
class class_name[name] begin[{] method[replaceCharacters, return_type[type[String]], modifier[private], parameter[name]] begin[{] assign[member[.name], call[name.replaceAll, parameter[literal["&gt;"], literal[">"]]]] assign[member[.name], call[name.replaceAll, parameter[literal[...
Keyword[private] identifier[String] identifier[replaceCharacters] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] identifier[name] operator[SEP] identifier[replaceAll] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] identifier[name] oper...
public void disconnect() { if (readyState == ReadyState.OPEN) { // readyState should be set to ReadyState.CLOSED ONLY AFTER the // the WebSocket has been successfully closed in // socketClosedHandler(). this.closeConnection(0, "", 0, 0, null, null); } else...
class class_name[name] begin[{] method[disconnect, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.readyState], ==, member[ReadyState.OPEN]]] begin[{] THIS[call[None.closeConnection, parameter[literal[0], literal[""], literal[0], li...
Keyword[public] Keyword[void] identifier[disconnect] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[readyState] operator[==] identifier[ReadyState] operator[SEP] identifier[OPEN] operator[SEP] { Keyword[this] operator[SEP] identifier[closeConnection] operator[SEP] Other[0] , liter...
static public void main( String[] argv) { ActionCoordinator ac = new ActionCoordinator("test"); /* System.out.println("failure test------------"); try { ac.addActionSourceListener(new ActionSourceListener("that") { public void actionPerformed( java.awt.event.ActionEvent e) { System.ou...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[argv]] begin[{] local_variable[type[ActionCoordinator], ac] local_variable[type[ActionSourceListener], as1] call[ac.addActionSourceListener, parameter[member[.as1]]] local_...
Keyword[static] Keyword[public] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[argv] operator[SEP] { identifier[ActionCoordinator] identifier[ac] operator[=] Keyword[new] identifier[ActionCoordinator] operator[SEP] literal[String] operator[SEP] operator[SEP...
@XmlElementDecl(namespace = "http://www.immobilienscout24.de/immobilientransfer", name = "WohnungMiete", substitutionHeadNamespace = "http://www.immobilienscout24.de/immobilientransfer", substitutionHeadName = "Immobilie") public WohnungMiete createWohnungMiete(WohnungMiete.Type value) { return new WohnungM...
class class_name[name] begin[{] method[createWohnungMiete, return_type[type[WohnungMiete]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_argume...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden...
public void destroy() { for (Entry<String, Runnable> entry : destructionCallbacks.entrySet()) { try { entry.getValue().run(); } catch (Throwable t) { log.error("Error during destruction callback for bean " + entry.getKey(), t); } } ...
class class_name[name] begin[{] method[destroy, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Runnable] operator[>] identifier[entry] operator[:] identifier[destructionCallbacks] operator[SEP] identifier[entrySet] operator[SEP] operator...
public double[] FGFtoSat(double fgf_x, double fgf_y, double scale_x, double offset_x, double scale_y, double offset_y) { double x = fgf_x * scale_x + offset_x; double y = fgf_y * scale_y + offset_y; return new double[]{x, y}; }
class class_name[name] begin[{] method[FGFtoSat, return_type[type[double]], modifier[public], parameter[fgf_x, fgf_y, scale_x, offset_x, scale_y, offset_y]] begin[{] local_variable[type[double], x] local_variable[type[double], y] return[ArrayCreator(dimensions=[None], initializer=ArrayI...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[FGFtoSat] operator[SEP] Keyword[double] identifier[fgf_x] , Keyword[double] identifier[fgf_y] , Keyword[double] identifier[scale_x] , Keyword[double] identifier[offset_x] , Keyword[double] identifier[scale_y] , Keyword[double] identifier[offset...
public static final void log(Class<?> clazz, String msg) { if (DEBUG) { System.out.println("[" + sSdf.format(new Date()) + "]" + "-" + "[" + clazz.getSimpleName() + "] " + msg); } }
class class_name[name] begin[{] method[log, return_type[void], modifier[final public static], parameter[clazz, msg]] begin[{] if[member[.DEBUG]] begin[{] call[System.out.println, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operati...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[log] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] identifier[DEBUG] operator[SEP] { identifier[System] operat...
private void paintBackground(Graphics2D g, JComponent c, int width, int height, ButtonColors colors) { g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); g.setColor(colors.top); g.drawLine(1, 0, width - 2, 0); g.setColor(colors.leftOuter); g....
class class_name[name] begin[{] method[paintBackground, return_type[void], modifier[private], parameter[g, c, width, height, colors]] begin[{] call[g.setRenderingHint, parameter[member[RenderingHints.KEY_ANTIALIASING], member[RenderingHints.VALUE_ANTIALIAS_OFF]]] call[g.setColor...
Keyword[private] Keyword[void] identifier[paintBackground] operator[SEP] identifier[Graphics2D] identifier[g] , identifier[JComponent] identifier[c] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[ButtonColors] identifier[colors] operator[SEP] { identifier[g] operator[SEP] ide...
private DirectoryLoaderAdaptor getDirectory(final String indexName) { DirectoryLoaderAdaptor adapter = openDirectories.get(indexName); if (adapter == null) { synchronized (openDirectories) { adapter = openDirectories.get(indexName); if (adapter == null) { fina...
class class_name[name] begin[{] method[getDirectory, return_type[type[DirectoryLoaderAdaptor]], modifier[private], parameter[indexName]] begin[{] local_variable[type[DirectoryLoaderAdaptor], adapter] if[binary_operation[member[.adapter], ==, literal[null]]] begin[{] ...
Keyword[private] identifier[DirectoryLoaderAdaptor] identifier[getDirectory] operator[SEP] Keyword[final] identifier[String] identifier[indexName] operator[SEP] { identifier[DirectoryLoaderAdaptor] identifier[adapter] operator[=] identifier[openDirectories] operator[SEP] identifier[get] operator[SEP] identifier[...
public static int medoid(boolean parallel, List<? extends Vec> X, DistanceMetric dm) { return medoid(parallel, X, 1.0/X.size(), dm); }
class class_name[name] begin[{] method[medoid, return_type[type[int]], modifier[public static], parameter[parallel, X, dm]] begin[{] return[call[.medoid, parameter[member[.parallel], member[.X], binary_operation[literal[1.0], /, call[X.size, parameter[]]], member[.dm]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[medoid] operator[SEP] Keyword[boolean] identifier[parallel] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[Vec] operator[>] identifier[X] , identifier[DistanceMetric] identifier[dm] operator[SEP] { Keyword[return] identifier[medoid...
protected ModificationItem getCompensatingModificationItem( Attributes originalAttributes, ModificationItem modificationItem) { Attribute modificationAttribute = modificationItem.getAttribute(); Attribute originalAttribute = originalAttributes .get(modificationAttribute.g...
class class_name[name] begin[{] method[getCompensatingModificationItem, return_type[type[ModificationItem]], modifier[protected], parameter[originalAttributes, modificationItem]] begin[{] local_variable[type[Attribute], modificationAttribute] local_variable[type[Attribute], originalAttribute] ...
Keyword[protected] identifier[ModificationItem] identifier[getCompensatingModificationItem] operator[SEP] identifier[Attributes] identifier[originalAttributes] , identifier[ModificationItem] identifier[modificationItem] operator[SEP] { identifier[Attribute] identifier[modificationAttribute] operator[=] identifi...
public EmailFilter flag(final Flag flag, final boolean value) { final Flags flags = new Flags(); flags.add(flag); return flags(flags, value); }
class class_name[name] begin[{] method[flag, return_type[type[EmailFilter]], modifier[public], parameter[flag, value]] begin[{] local_variable[type[Flags], flags] call[flags.add, parameter[member[.flag]]] return[call[.flags, parameter[member[.flags], member[.value]]]] end[}]...
Keyword[public] identifier[EmailFilter] identifier[flag] operator[SEP] Keyword[final] identifier[Flag] identifier[flag] , Keyword[final] Keyword[boolean] identifier[value] operator[SEP] { Keyword[final] identifier[Flags] identifier[flags] operator[=] Keyword[new] identifier[Flags] operator[SEP] operator[SEP] op...
public static void setControllerName(String name) { Map<String, Object> sessionMap = FacesContext.getCurrentInstance().getExternalContext().getSessionMap(); sessionMap.put(DART_CONTROLLER_NAME, name); }
class class_name[name] begin[{] method[setControllerName, return_type[void], modifier[public static], parameter[name]] begin[{] local_variable[type[Map], sessionMap] call[sessionMap.put, parameter[member[.DART_CONTROLLER_NAME], member[.name]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setControllerName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[sessionMap] operator[=] identifier[FacesContext] operator[SEP] identifier[getCu...
@SuppressWarnings("unchecked") public static <T> T[] reverse(T[] self, boolean mutate) { if (!mutate) { return (T[]) toList(new ReverseListIterator<T>(Arrays.asList(self))).toArray(); } List<T> items = Arrays.asList(self); Collections.reverse(items); System.arrayc...
class class_name[name] begin[{] method[reverse, return_type[type[T]], modifier[public static], parameter[self, mutate]] begin[{] if[member[.mutate]] begin[{] return[Cast(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[reverse] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[self] , Keyword[boolean] identifi...
public void setImages(java.util.Collection<EnvironmentImage> images) { if (images == null) { this.images = null; return; } this.images = new java.util.ArrayList<EnvironmentImage>(images); }
class class_name[name] begin[{] method[setImages, return_type[void], modifier[public], parameter[images]] begin[{] if[binary_operation[member[.images], ==, literal[null]]] begin[{] assign[THIS[member[None.images]], literal[null]] return[None] else beg...
Keyword[public] Keyword[void] identifier[setImages] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[EnvironmentImage] operator[>] identifier[images] operator[SEP] { Keyword[if] operator[SEP] identifier[images] operator[==] Other[null] oper...
private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { languageCode = canonicalize(languageCode); final ULocale maximized = addLikelySubtags(languageCode); if (DEBUG) { System.out.println("\ngetBestMatchInternal: " + languageCode + ";\t" + maximized);...
class class_name[name] begin[{] method[getBestMatchInternal, return_type[type[ULocale]], modifier[private], parameter[languageCode, outputWeight]] begin[{] assign[member[.languageCode], call[.canonicalize, parameter[member[.languageCode]]]] local_variable[type[ULocale], maximized] ...
Keyword[private] identifier[ULocale] identifier[getBestMatchInternal] operator[SEP] identifier[ULocale] identifier[languageCode] , identifier[OutputDouble] identifier[outputWeight] operator[SEP] { identifier[languageCode] operator[=] identifier[canonicalize] operator[SEP] identifier[languageCode] operator[SEP] ...
public void setJobQueues(java.util.Collection<String> jobQueues) { if (jobQueues == null) { this.jobQueues = null; return; } this.jobQueues = new java.util.ArrayList<String>(jobQueues); }
class class_name[name] begin[{] method[setJobQueues, return_type[void], modifier[public], parameter[jobQueues]] begin[{] if[binary_operation[member[.jobQueues], ==, literal[null]]] begin[{] assign[THIS[member[None.jobQueues]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setJobQueues] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[jobQueues] operator[SEP] { Keyword[if] operator[SEP] identifier[jobQueues] operator[==] Other[null] opera...
public static String getMessageMetadata(Msg msg, String property) { String data = null; Metadata metadata = msg.getMetadata(); if (metadata != null) { data = metadata.get(property); } return data; }
class class_name[name] begin[{] method[getMessageMetadata, return_type[type[String]], modifier[public static], parameter[msg, property]] begin[{] local_variable[type[String], data] local_variable[type[Metadata], metadata] if[binary_operation[member[.metadata], !=, literal[null]]...
Keyword[public] Keyword[static] identifier[String] identifier[getMessageMetadata] operator[SEP] identifier[Msg] identifier[msg] , identifier[String] identifier[property] operator[SEP] { identifier[String] identifier[data] operator[=] Other[null] operator[SEP] identifier[Metadata] identifier[metadata] operator[=...
protected String determinePrincipalId(final RequestContext requestContext, final Credential credential) { if (StringUtils.isBlank(properties.getJdbc().getPrincipalIdAttribute())) { return credential.getId(); } val principal = WebUtils.getAuthentication(requestContext).getPrincipal();...
class class_name[name] begin[{] method[determinePrincipalId, return_type[type[String]], modifier[protected], parameter[requestContext, credential]] begin[{] if[call[StringUtils.isBlank, parameter[call[properties.getJdbc, parameter[]]]]] begin[{] return[call[credential.getId, paramet...
Keyword[protected] identifier[String] identifier[determinePrincipalId] operator[SEP] Keyword[final] identifier[RequestContext] identifier[requestContext] , Keyword[final] identifier[Credential] identifier[credential] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBl...
public void setText(String source) { string_ = source; // TODO: do we need to remember the source string in a field? CollationIterator newIter; boolean numeric = rbc_.settings.readOnly().isNumeric(); if (rbc_.settings.readOnly().dontCheckFCD()) { newIter = new UTF16CollationI...
class class_name[name] begin[{] method[setText, return_type[void], modifier[public], parameter[source]] begin[{] assign[member[.string_], member[.source]] local_variable[type[CollationIterator], newIter] local_variable[type[boolean], numeric] if[call[rbc_.setting...
Keyword[public] Keyword[void] identifier[setText] operator[SEP] identifier[String] identifier[source] operator[SEP] { identifier[string_] operator[=] identifier[source] operator[SEP] identifier[CollationIterator] identifier[newIter] operator[SEP] Keyword[boolean] identifier[numeric] operator[=] identifier[rbc_] ...
public static void escapeHtml4(final Reader reader, final Writer writer) throws IOException { escapeHtml(reader, writer, HtmlEscapeType.HTML4_NAMED_REFERENCES_DEFAULT_TO_DECIMAL, HtmlEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT); }
class class_name[name] begin[{] method[escapeHtml4, return_type[void], modifier[public static], parameter[reader, writer]] begin[{] call[.escapeHtml, parameter[member[.reader], member[.writer], member[HtmlEscapeType.HTML4_NAMED_REFERENCES_DEFAULT_TO_DECIMAL], member[HtmlEscapeLevel.LEVEL_2_ALL_...
Keyword[public] Keyword[static] Keyword[void] identifier[escapeHtml4] operator[SEP] Keyword[final] identifier[Reader] identifier[reader] , Keyword[final] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[escapeHtml] operator[SEP] identifier[reader] , ident...
public void setIconifiedByDefault(boolean iconified) { if (searchView != null) { searchView.setIconifiedByDefault(iconified); } else if (supportView != null) { supportView.setIconifiedByDefault(iconified); } else { throw new IllegalStateException(ERROR_NO_SEAR...
class class_name[name] begin[{] method[setIconifiedByDefault, return_type[void], modifier[public], parameter[iconified]] begin[{] if[binary_operation[member[.searchView], !=, literal[null]]] begin[{] call[searchView.setIconifiedByDefault, parameter[member[.iconified]]] ...
Keyword[public] Keyword[void] identifier[setIconifiedByDefault] operator[SEP] Keyword[boolean] identifier[iconified] operator[SEP] { Keyword[if] operator[SEP] identifier[searchView] operator[!=] Other[null] operator[SEP] { identifier[searchView] operator[SEP] identifier[setIconifiedByDefault] operator...
public void domain_serviceInfos_PUT(String domain, OvhService body) throws IOException { String qPath = "/email/domain/{domain}/serviceInfos"; StringBuilder sb = path(qPath, domain); exec(qPath, "PUT", sb.toString(), body); }
class class_name[name] begin[{] method[domain_serviceInfos_PUT, return_type[void], modifier[public], parameter[domain, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, parameter[member[.qPath], literal["PUT"], call[sb.toStri...
Keyword[public] Keyword[void] identifier[domain_serviceInfos_PUT] operator[SEP] identifier[String] identifier[domain] , identifier[OvhService] identifier[body] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[String...
void finishSuccessfully(ChannelPipeline pipeline, SessionProtocol protocol) { if (protocol == H1 || protocol == H1C) { addBeforeSessionHandler(pipeline, new Http1ResponseDecoder(pipeline.channel())); } else if (protocol == H2 || protocol == H2C) { final int initialWindow = clien...
class class_name[name] begin[{] method[finishSuccessfully, return_type[void], modifier[default], parameter[pipeline, protocol]] begin[{] if[binary_operation[binary_operation[member[.protocol], ==, member[.H1]], ||, binary_operation[member[.protocol], ==, member[.H1C]]]] begin[{] ...
Keyword[void] identifier[finishSuccessfully] operator[SEP] identifier[ChannelPipeline] identifier[pipeline] , identifier[SessionProtocol] identifier[protocol] operator[SEP] { Keyword[if] operator[SEP] identifier[protocol] operator[==] identifier[H1] operator[||] identifier[protocol] operator[==] identifier[H1C]...
@Override public BELAnnotationDefinition convert(AnnotationDefinition ad) { if (ad == null) { return null; } if (ad.getType() == null) { return new BELAnnotationDefinition( ad.getId(), BELAnnotationType.URL, ad.getURL()); } switch...
class class_name[name] begin[{] method[convert, return_type[type[BELAnnotationDefinition]], modifier[public], parameter[ad]] begin[{] if[binary_operation[member[.ad], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[bina...
annotation[@] identifier[Override] Keyword[public] identifier[BELAnnotationDefinition] identifier[convert] operator[SEP] identifier[AnnotationDefinition] identifier[ad] operator[SEP] { Keyword[if] operator[SEP] identifier[ad] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operato...
protected final AbstractConfigValue peekAssumingResolved(String key, Path originalPath) { try { return attemptPeekWithPartialResolve(key); } catch (ConfigException.NotResolved e) { throw ConfigImpl.improveNotResolved(originalPath, e); } }
class class_name[name] begin[{] method[peekAssumingResolved, return_type[type[AbstractConfigValue]], modifier[final protected], parameter[key, originalPath]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_oper...
Keyword[protected] Keyword[final] identifier[AbstractConfigValue] identifier[peekAssumingResolved] operator[SEP] identifier[String] identifier[key] , identifier[Path] identifier[originalPath] operator[SEP] { Keyword[try] { Keyword[return] identifier[attemptPeekWithPartialResolve] operator[SEP] identi...
public void marshall(Entity entity, ProtocolMarshaller protocolMarshaller) { if (entity == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(entity.getId(), ID_BINDING); protocolMarshaller.m...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[entity, protocolMarshaller]] begin[{] if[binary_operation[member[.entity], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Entity] identifier[entity] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[entity] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] iden...
private void firePluginStopped(final Plugin plugin) { PluginEvent e = null; synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { PluginListener l = (PluginListener) iter.next(); if (e == null) { e =...
class class_name[name] begin[{] method[firePluginStopped, return_type[void], modifier[private], parameter[plugin]] begin[{] local_variable[type[PluginEvent], e] SYNCHRONIZED[member[.listenerList]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariabl...
Keyword[private] Keyword[void] identifier[firePluginStopped] operator[SEP] Keyword[final] identifier[Plugin] identifier[plugin] operator[SEP] { identifier[PluginEvent] identifier[e] operator[=] Other[null] operator[SEP] Keyword[synchronized] operator[SEP] identifier[listenerList] operator[SEP] { Keywo...
public void setReadTimeout(int timeout) { Assert.isTrue(timeout >= 0, "Timeout must be a non-negative value"); getHttpClient().getParams().setIntParameter(CoreConnectionPNames.SO_TIMEOUT, timeout); }
class class_name[name] begin[{] method[setReadTimeout, return_type[void], modifier[public], parameter[timeout]] begin[{] call[Assert.isTrue, parameter[binary_operation[member[.timeout], >=, literal[0]], literal["Timeout must be a non-negative value"]]] call[.getHttpClient, param...
Keyword[public] Keyword[void] identifier[setReadTimeout] operator[SEP] Keyword[int] identifier[timeout] operator[SEP] { identifier[Assert] operator[SEP] identifier[isTrue] operator[SEP] identifier[timeout] operator[>=] Other[0] , literal[String] operator[SEP] operator[SEP] identifier[getHttpClient] operator[SEP...
private void setEventChannelTimeoutMillis(EventChannel eventChannel, int millis) { // Change Jacorb policy for timeout org.omg.CORBA.Policy p = new org.jacorb.orb.policies.RelativeRoundtripTimeoutPolicy(10000 * millis); eventChannel._set_policy_override(new Policy[]{p}, ...
class class_name[name] begin[{] method[setEventChannelTimeoutMillis, return_type[void], modifier[private], parameter[eventChannel, millis]] begin[{] local_variable[type[org], p] call[eventChannel._set_policy_override, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInitialize...
Keyword[private] Keyword[void] identifier[setEventChannelTimeoutMillis] operator[SEP] identifier[EventChannel] identifier[eventChannel] , Keyword[int] identifier[millis] operator[SEP] { identifier[org] operator[SEP] identifier[omg] operator[SEP] identifier[CORBA] operator[SEP] identifier[Policy] identifier[p] o...
public boolean validateChannel(final Channel channel) { boolean ret = false; final SetVarAction var = new SetVarAction(channel, "testState", "1"); ManagerResponse response = null; try { AsteriskPBX pbx = (AsteriskPBX) PBXFactory.getActivePBX(); ...
class class_name[name] begin[{] method[validateChannel, return_type[type[boolean]], modifier[public], parameter[channel]] begin[{] local_variable[type[boolean], ret] local_variable[type[SetVarAction], var] local_variable[type[ManagerResponse], response] TryStatement(block=[Local...
Keyword[public] Keyword[boolean] identifier[validateChannel] operator[SEP] Keyword[final] identifier[Channel] identifier[channel] operator[SEP] { Keyword[boolean] identifier[ret] operator[=] literal[boolean] operator[SEP] Keyword[final] identifier[SetVarAction] identifier[var] operator[=] Keyword[new] identifier...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "multiPointProperty") public JAXBElement<MultiPointPropertyType> createMultiPointProperty(MultiPointPropertyType value) { return new JAXBElement<MultiPointPropertyType>(_MultiPointProperty_QNAME, MultiPointPropertyType.class, null, value); ...
class class_name[name] begin[{] method[createMultiPointProperty, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_MultiPointProperty_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassRefer...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[MultiPointPropertyType] operator[>] identifier[createMultiPointProperty] operator[SEP] ide...
public static int getNumberCode(int length) {//-2147483648~2147483647 if(length > 9) new Exception("The number is too big"); Random random = new Random(); StringBuffer max = new StringBuffer().append("8"); StringBuffer min = new StringBuffer().append("1"); while (max....
class class_name[name] begin[{] method[getNumberCode, return_type[type[int]], modifier[public static], parameter[length]] begin[{] if[binary_operation[member[.length], >, literal[9]]] begin[{] ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None,...
Keyword[public] Keyword[static] Keyword[int] identifier[getNumberCode] operator[SEP] Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[length] operator[>] Other[9] operator[SEP] Keyword[new] identifier[Exception] operator[SEP] literal[String] operator[SEP] operator[SEP] identif...
public static ModelNode getOperationAddress(final ModelNode op) { return op.hasDefined(OP_ADDR) ? op.get(OP_ADDR) : new ModelNode(); }
class class_name[name] begin[{] method[getOperationAddress, return_type[type[ModelNode]], modifier[public static], parameter[op]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=OP_ADDR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]...
Keyword[public] Keyword[static] identifier[ModelNode] identifier[getOperationAddress] operator[SEP] Keyword[final] identifier[ModelNode] identifier[op] operator[SEP] { Keyword[return] identifier[op] operator[SEP] identifier[hasDefined] operator[SEP] identifier[OP_ADDR] operator[SEP] operator[?] identifier[op] op...
public static byte[] calculateHmacSha1(byte[] message, int offset, int length, byte[] key) throws IllegalArgumentException { try { // get an HMAC-SHA1 key from the raw key bytes SecretKeySpec signingKey = new SecretKeySpec(key, HMAC_SHA1_ALGORITHM); // get an HMAC-SHA1 Mac instance and initialize it with th...
class class_name[name] begin[{] method[calculateHmacSha1, return_type[type[byte]], modifier[public static], parameter[message, offset, length, key]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[M...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[calculateHmacSha1] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[message] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] , Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[...
public ActivatedRule withExcludedRules(ExcludedRule... excludedRules) { if (this.excludedRules == null) { setExcludedRules(new java.util.ArrayList<ExcludedRule>(excludedRules.length)); } for (ExcludedRule ele : excludedRules) { this.excludedRules.add(ele); } ...
class class_name[name] begin[{] method[withExcludedRules, return_type[type[ActivatedRule]], modifier[public], parameter[excludedRules]] begin[{] if[binary_operation[THIS[member[None.excludedRules]], ==, literal[null]]] begin[{] call[.setExcludedRules, parameter[ClassCrea...
Keyword[public] identifier[ActivatedRule] identifier[withExcludedRules] operator[SEP] identifier[ExcludedRule] operator[...] identifier[excludedRules] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[excludedRules] operator[==] Other[null] operator[SEP] { identifier[set...
@Override public int intersectionSize(Collection<? extends T> other) { if (isEmpty() || other == null || other.isEmpty()) return 0; if (this == other) return size(); if (elements instanceof List<?> && other instanceof GenericExtendedSet<?> && ((GenericExtendedSet<?>) other).elements instanceof Li...
class class_name[name] begin[{] method[intersectionSize, return_type[type[int]], modifier[public], parameter[other]] begin[{] if[binary_operation[binary_operation[call[.isEmpty, parameter[]], ||, binary_operation[member[.other], ==, literal[null]]], ||, call[other.isEmpty, parameter[]]]] begin[...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[intersectionSize] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator...
private static int parseInt(final String str) throws BOSHException { try { return Integer.parseInt(str); } catch (NumberFormatException nfx) { throw(new BOSHException( "Could not parse an integer from the value provided: " + str, ...
class class_name[name] begin[{] method[parseInt, return_type[type[int]], modifier[private static], parameter[str]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], membe...
Keyword[private] Keyword[static] Keyword[int] identifier[parseInt] operator[SEP] Keyword[final] identifier[String] identifier[str] operator[SEP] Keyword[throws] identifier[BOSHException] { Keyword[try] { Keyword[return] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[st...
private static double parseResizeWeight(String token) { if (token.equals("g") || token.equals("grow")) { return DEFAULT_GROW; } if (token.equals("n") || token.equals("nogrow") || token.equals("none")) { return NO_GROW; } // Must have format: grow(<double>)...
class class_name[name] begin[{] method[parseResizeWeight, return_type[type[double]], modifier[private static], parameter[token]] begin[{] if[binary_operation[call[token.equals, parameter[literal["g"]]], ||, call[token.equals, parameter[literal["grow"]]]]] begin[{] return[member[.DEF...
Keyword[private] Keyword[static] Keyword[double] identifier[parseResizeWeight] operator[SEP] identifier[String] identifier[token] operator[SEP] { Keyword[if] operator[SEP] identifier[token] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[||] identifier[token] operator[SEP] i...
@Override public EEnum getIfcGeographicElementTypeEnum() { if (ifcGeographicElementTypeEnumEEnum == null) { ifcGeographicElementTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(997); } return ifcGeographicElementTypeEnumEEnum; }
class class_name[name] begin[{] method[getIfcGeographicElementTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcGeographicElementTypeEnumEEnum], ==, literal[null]]] begin[{] assign[member[.ifcGeographicElementTypeE...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getIfcGeographicElementTypeEnum] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcGeographicElementTypeEnumEEnum] operator[==] Other[null] operator[SEP] { identifier[ifcGeographicElementTypeEnumEEnum] ...
public void closeAllSockets() { if(transport.equalsIgnoreCase("udp")) { logger.warn("Cannot close TCP sockets on UDP connector"); return; } MBeanServer mbeanServer = getMBeanServer(); try { if(logger.isDebugEnabled()) { logger.debug("MBean Server = " + mbeanServer); } Set<ObjectName> queryNam...
class class_name[name] begin[{] method[closeAllSockets, return_type[void], modifier[public], parameter[]] begin[{] if[call[transport.equalsIgnoreCase, parameter[literal["udp"]]]] begin[{] call[logger.warn, parameter[literal["Cannot close TCP sockets on UDP connector"]]] ...
Keyword[public] Keyword[void] identifier[closeAllSockets] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[transport] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[warn] operator[SEP]...
public static byte[] decryptAsBytes(final byte[] encryptedIvTextBytes) throws Exception { final SecretKey secretKey = KeyManager.getInstance().getSecretKey(); return decryptAsBytes(secretKey, encryptedIvTextBytes); }
class class_name[name] begin[{] method[decryptAsBytes, return_type[type[byte]], modifier[public static], parameter[encryptedIvTextBytes]] begin[{] local_variable[type[SecretKey], secretKey] return[call[.decryptAsBytes, parameter[member[.secretKey], member[.encryptedIvTextBytes]]]] end[}] EN...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decryptAsBytes] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[encryptedIvTextBytes] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[SecretKey] identifier[secret...
public List<PeerInfo> peerInfo() { if (!th.is_valid()) { return new ArrayList<>(); } peer_info_vector v = new peer_info_vector(); th.get_peer_info(v); int size = (int) v.size(); ArrayList<PeerInfo> l = new ArrayList<>(size); for (int i = 0; i < size;...
class class_name[name] begin[{] method[peerInfo, return_type[type[List]], modifier[public], parameter[]] begin[{] if[call[th.is_valid, parameter[]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] identifier[List] operator[<] identifier[PeerInfo] operator[>] identifier[peerInfo] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[th] operator[SEP] identifier[is_valid] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[A...
public static boolean isCompositeComponentExpression(String expression) { if (expression.contains(CC)) { return CC_EXPRESSION_REGEX.matcher(expression).matches(); } else { return false; } }
class class_name[name] begin[{] method[isCompositeComponentExpression, return_type[type[boolean]], modifier[public static], parameter[expression]] begin[{] if[call[expression.contains, parameter[member[.CC]]]] begin[{] return[call[CC_EXPRESSION_REGEX.matcher, parameter[member[.expre...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isCompositeComponentExpression] operator[SEP] identifier[String] identifier[expression] operator[SEP] { Keyword[if] operator[SEP] identifier[expression] operator[SEP] identifier[contains] operator[SEP] identifier[CC] operator[SEP] operator[SEP] { ...
public void put(Set<HBeanRow> rows) { final List<Row> create = new ArrayList<>(); try { for (HBeanRow row : rows) { final Put write = new Put(row.getRowKey()); if (row.getPropertiesKeyValue() != null) { write.add(row.getPropertiesKeyValue()...
class class_name[name] begin[{] method[put, return_type[void], modifier[public], parameter[rows]] begin[{] local_variable[type[List], create] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dim...
Keyword[public] Keyword[void] identifier[put] operator[SEP] identifier[Set] operator[<] identifier[HBeanRow] operator[>] identifier[rows] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Row] operator[>] identifier[create] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[...
public static int[] compact (int[] list) { int llength = list.length, lcount = 0; // count up the non-zero entries for (int i = 0; i < llength; i++) { if (list[i] != 0) { lcount++; } } int[] nlist = new int[lcount]; int n = 0; ...
class class_name[name] begin[{] method[compact, return_type[type[int]], modifier[public static], parameter[list]] begin[{] local_variable[type[int], llength] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=list, post...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[compact] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[list] operator[SEP] { Keyword[int] identifier[llength] operator[=] identifier[list] operator[SEP] identifier[length] , identifier[lcount] operator[=] Oth...
public static void validateCnn1DKernelStridePadding(int kernel, int stride, int padding) { if (kernel <= 0) { throw new IllegalStateException("Invalid kernel size: value must be positive (> 0). Got: " + kernel); } if (stride <= 0) { throw new IllegalStateException("Inval...
class class_name[name] begin[{] method[validateCnn1DKernelStridePadding, return_type[void], modifier[public static], parameter[kernel, stride, padding]] begin[{] if[binary_operation[member[.kernel], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOp...
Keyword[public] Keyword[static] Keyword[void] identifier[validateCnn1DKernelStridePadding] operator[SEP] Keyword[int] identifier[kernel] , Keyword[int] identifier[stride] , Keyword[int] identifier[padding] operator[SEP] { Keyword[if] operator[SEP] identifier[kernel] operator[<=] Other[0] operator[SEP] { ...
private void shiftBufData() { if (bufRead != buf.limit()) { throw new IllegalStateException("bufRead should be same as " + "buf.limit()"); } //shift the remaining data on buf to the front if (buf.position() > 0) { int dataLeft = buf.remaining(); ...
class class_name[name] begin[{] method[shiftBufData, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.bufRead], !=, call[buf.limit, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postf...
Keyword[private] Keyword[void] identifier[shiftBufData] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[bufRead] operator[!=] identifier[buf] operator[SEP] identifier[limit] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] ope...
private static List<Integer> parseRange(String range, int max) { List<Integer> idx = new ArrayList<Integer>(); String[] n = range.split(","); for (String s : n) { String[] d = s.split("-"); int mi = Integer.parseInt(d[0]); if (mi < 0 || mi >= max) { ...
class class_name[name] begin[{] method[parseRange, return_type[type[List]], modifier[private static], parameter[range, max]] begin[{] local_variable[type[List], idx] local_variable[type[String], n] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotat...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Integer] operator[>] identifier[parseRange] operator[SEP] identifier[String] identifier[range] , Keyword[int] identifier[max] operator[SEP] { identifier[List] operator[<] identifier[Integer] operator[>] identifier[idx] operator[=] Keyword[...
private static Type[] getImplicitUpperBounds(final WildcardType wildcardType) { Assert.requireNonNull(wildcardType, "wildcardType"); final Type[] bounds = wildcardType.getUpperBounds(); return bounds.length == 0 ? new Type[]{Object.class} : normalizeUpperBounds(bounds); }
class class_name[name] begin[{] method[getImplicitUpperBounds, return_type[type[Type]], modifier[private static], parameter[wildcardType]] begin[{] call[Assert.requireNonNull, parameter[member[.wildcardType], literal["wildcardType"]]] local_variable[type[Type], bounds] return[Te...
Keyword[private] Keyword[static] identifier[Type] operator[SEP] operator[SEP] identifier[getImplicitUpperBounds] operator[SEP] Keyword[final] identifier[WildcardType] identifier[wildcardType] operator[SEP] { identifier[Assert] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[wildcardType] , lit...
private <T extends Request, U> void sendRequest(T request, BiFunction<Request, Connection, CompletableFuture<U>> sender, CompletableFuture<U> future) { if (open) { connect().whenComplete((c, e) -> sendRequest(request, sender, c, e, future)); } }
class class_name[name] begin[{] method[sendRequest, return_type[void], modifier[private], parameter[request, sender, future]] begin[{] if[member[.open]] begin[{] call[.connect, parameter[]] else begin[{] None end[}] end[}] END[}]
Keyword[private] operator[<] identifier[T] Keyword[extends] identifier[Request] , identifier[U] operator[>] Keyword[void] identifier[sendRequest] operator[SEP] identifier[T] identifier[request] , identifier[BiFunction] operator[<] identifier[Request] , identifier[Connection] , identifier[CompletableFuture] operator...
public static Object toBean( JSONObject jsonObject, Object root, JsonConfig jsonConfig ) { if( jsonObject == null || jsonObject.isNullObject() || root == null ){ return root; } Class rootClass = root.getClass(); if( rootClass.isInterface() ){ throw new JSONException( "Root bea...
class class_name[name] begin[{] method[toBean, return_type[type[Object]], modifier[public static], parameter[jsonObject, root, jsonConfig]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.jsonObject], ==, literal[null]], ||, call[jsonObject.isNullObject, parameter[]]], ||...
Keyword[public] Keyword[static] identifier[Object] identifier[toBean] operator[SEP] identifier[JSONObject] identifier[jsonObject] , identifier[Object] identifier[root] , identifier[JsonConfig] identifier[jsonConfig] operator[SEP] { Keyword[if] operator[SEP] identifier[jsonObject] operator[==] Other[null] opera...
public static appfwprofile_stats[] get(nitro_service service) throws Exception{ appfwprofile_stats obj = new appfwprofile_stats(); appfwprofile_stats[] response = (appfwprofile_stats[])obj.stat_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[appfwprofile_stats]], modifier[public static], parameter[service]] begin[{] local_variable[type[appfwprofile_stats], obj] local_variable[type[appfwprofile_stats], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[appfwprofile_stats] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[appfwprofile_stats] identifier[obj] operator[=] Keyword[new] identifier[appfwprof...
@Override public synchronized void start() { if (this.hasStarted) { LOG.warn("ApplicationLauncher has already started"); return; } this.hasStarted = true; this.serviceManager = new ServiceManager(this.services); // A listener that shutdowns the application if any service fails. th...
class class_name[name] begin[{] method[start, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[THIS[member[None.hasStarted]]] begin[{] call[LOG.warn, parameter[literal["ApplicationLauncher has already started"]]] return[None] ...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[start] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[hasStarted] operator[SEP] { identifier[LOG] operator[SEP] identifier[warn] operator[SEP] literal[Strin...
public void disconnect() { if (isConnected()) { SharedObjectMessage msg = new SharedObjectMessage(name, 0, isPersistent()); msg.addEvent(new SharedObjectEvent(Type.SERVER_DISCONNECT, null, null)); Channel c = ((RTMPConnection) source).getChannel(3); c.write(m...
class class_name[name] begin[{] method[disconnect, return_type[void], modifier[public], parameter[]] begin[{] if[call[.isConnected, parameter[]]] begin[{] local_variable[type[SharedObjectMessage], msg] call[msg.addEvent, parameter[ClassCreator(arguments=[Memb...
Keyword[public] Keyword[void] identifier[disconnect] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isConnected] operator[SEP] operator[SEP] operator[SEP] { identifier[SharedObjectMessage] identifier[msg] operator[=] Keyword[new] identifier[SharedObjectMessage] operator[SEP] identi...
public static String getHashMD5(String str) { try { return getHash(str, "MD5"); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } }
class class_name[name] begin[{] method[getHashMD5, return_type[type[String]], modifier[public static], parameter[str]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Li...
Keyword[public] Keyword[static] identifier[String] identifier[getHashMD5] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[try] { Keyword[return] identifier[getHash] operator[SEP] identifier[str] , literal[String] operator[SEP] operator[SEP] } Keyword[catch] oper...
protected Class<?> getCurrentScriptClass() { Class<?>[] context = getClassContext(); for (Class<?> c : context) { if (c != InterpretedFunction.class && NativeFunction.class.isAssignableFrom(c) || PolicySecurityController.SecureCaller.class.isAssignableFrom(c)) { ...
class class_name[name] begin[{] method[getCurrentScriptClass, return_type[type[Class]], modifier[protected], parameter[]] begin[{] local_variable[type[Class], context] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operand...
Keyword[protected] identifier[Class] operator[<] operator[?] operator[>] identifier[getCurrentScriptClass] operator[SEP] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[context] operator[=] identifier[getClassContext] operator[SEP] operator[SEP] operat...
public Geometry pickGeometry( long position, long size ) throws Exception { byte[] geomBytes = new byte[(int) size]; raf.seek(position); raf.read(geomBytes); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(geomBytes)); return (Geometry) in.readObject(); ...
class class_name[name] begin[{] method[pickGeometry, return_type[type[Geometry]], modifier[public], parameter[position, size]] begin[{] local_variable[type[byte], geomBytes] call[raf.seek, parameter[member[.position]]] call[raf.read, parameter[member[.geomBytes]]] ...
Keyword[public] identifier[Geometry] identifier[pickGeometry] operator[SEP] Keyword[long] identifier[position] , Keyword[long] identifier[size] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[byte] operator[SEP] operator[SEP] identifier[geomBytes] operator[=] Keyword[new] Keyword[byte] operator[SE...
public final ChannelFuture handshake(Channel channel, FullHttpRequest req, HttpHeaders responseHeaders, final ChannelPromise promise) { if (logger.isDebugEnabled()) { logger.debug("{} WebSocket version {} server handshake", channel, version()); } ...
class class_name[name] begin[{] method[handshake, return_type[type[ChannelFuture]], modifier[final public], parameter[channel, req, responseHeaders, promise]] begin[{] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[literal["{} WebSocke...
Keyword[public] Keyword[final] identifier[ChannelFuture] identifier[handshake] operator[SEP] identifier[Channel] identifier[channel] , identifier[FullHttpRequest] identifier[req] , identifier[HttpHeaders] identifier[responseHeaders] , Keyword[final] identifier[ChannelPromise] identifier[promise] operator[SEP] { ...
public static boolean sendTextMail(MailSenderInfo mailInfo) { try { // 设置一些通用的数据 Message mailMessage = setCommon(mailInfo); // 设置邮件消息的主要内容 String mailContent = mailInfo.getContent(); mailMessage.setText(mailContent); // 发送邮件 ...
class class_name[name] begin[{] method[sendTextMail, return_type[type[boolean]], modifier[public static], parameter[mailInfo]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(mem...
Keyword[public] Keyword[static] Keyword[boolean] identifier[sendTextMail] operator[SEP] identifier[MailSenderInfo] identifier[mailInfo] operator[SEP] { Keyword[try] { identifier[Message] identifier[mailMessage] operator[=] identifier[setCommon] operator[SEP] identifier[mailInfo] operator[SEP] operator...
public static Logger get(Class<?> cls, String resourceBundleName) { return Logger.getLogger(cls.getPackage().getName(), resourceBundleName); }
class class_name[name] begin[{] method[get, return_type[type[Logger]], modifier[public static], parameter[cls, resourceBundleName]] begin[{] return[call[Logger.getLogger, parameter[call[cls.getPackage, parameter[]], member[.resourceBundleName]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Logger] identifier[get] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] , identifier[String] identifier[resourceBundleName] operator[SEP] { Keyword[return] identifier[Logger] operator[SEP] identifier[getLogger] operator[SEP] identifi...
public static void write(byte[] data, OutputStream output) throws IOException { ByteArrayInputStream input = null; try { input = new ByteArrayInputStream(data); copy(input, output); output.flush(); } finally { IOUtils.closeQuietly(output); ...
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[data, output]] begin[{] local_variable[type[ByteArrayInputStream], input] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=input, postfix_operators...
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , identifier[OutputStream] identifier[output] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteArrayInputStream] identifier[input] operator[=] Other[null...
@Override public EEnum getActionState() { if (actionStateEEnum == null) { actionStateEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(42); } return actionStateEEnum; }
class class_name[name] begin[{] method[getActionState, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.actionStateEEnum], ==, literal[null]]] begin[{] assign[member[.actionStateEEnum], Cast(expression=MethodInvocation(argumen...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getActionState] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[actionStateEEnum] operator[==] Other[null] operator[SEP] { identifier[actionStateEEnum] operator[=] operator[SEP] identifier[EEnum] operato...
public static boolean isKnownCountryCode(String aCountryCode) { if (aCountryCode == null || aCountryCode.length() != 2) { return false; } return indexOf(aCountryCode) >= 0; }
class class_name[name] begin[{] method[isKnownCountryCode, return_type[type[boolean]], modifier[public static], parameter[aCountryCode]] begin[{] if[binary_operation[binary_operation[member[.aCountryCode], ==, literal[null]], ||, binary_operation[call[aCountryCode.length, parameter[]], !=, lite...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isKnownCountryCode] operator[SEP] identifier[String] identifier[aCountryCode] operator[SEP] { Keyword[if] operator[SEP] identifier[aCountryCode] operator[==] Other[null] operator[||] identifier[aCountryCode] operator[SEP] identifier[length] operator[SEP...
public static void write(final String templateFilename, final Map<String, Object> data, final Writer writer) { Template tmpl = null; try { /*- * note that we don't need to cache templates by ourselves since getTemplate() does that internally already */ ...
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[templateFilename, data, writer]] begin[{] local_variable[type[Template], tmpl] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=tmpl, postfix_opera...
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[String] identifier[templateFilename] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[data] , Keyword[final] identifier[Writer] identifier[writer] operato...
private ExtractionGuard placeExtractionGuard(String path) { boolean isPrimary; CountDownLatch completionLatch; synchronized( extractionsLock ) { completionLatch = extractionLocks.get(path); if ( completionLatch != null ) { isPrimary = false; ...
class class_name[name] begin[{] method[placeExtractionGuard, return_type[type[ExtractionGuard]], modifier[private], parameter[path]] begin[{] local_variable[type[boolean], isPrimary] local_variable[type[CountDownLatch], completionLatch] SYNCHRONIZED[member[.extractionsLock]] BEG...
Keyword[private] identifier[ExtractionGuard] identifier[placeExtractionGuard] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[boolean] identifier[isPrimary] operator[SEP] identifier[CountDownLatch] identifier[completionLatch] operator[SEP] Keyword[synchronized] operator[SEP] identifier[...
@Override public PutPolicyResult putPolicy(PutPolicyRequest request) { request = beforeClientExecution(request); return executePutPolicy(request); }
class class_name[name] begin[{] method[putPolicy, return_type[type[PutPolicyResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executePutPolicy, parameter[member[.request]]]] end[}...
annotation[@] identifier[Override] Keyword[public] identifier[PutPolicyResult] identifier[putPolicy] operator[SEP] identifier[PutPolicyRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keywo...
public static HttpMethod valueOf(String name) { if (name == null) { throw new NullPointerException("name"); } name = name.trim().toUpperCase(); if (name.length() == 0) { throw new IllegalArgumentException("empty name"); } HttpMethod result = meth...
class class_name[name] begin[{] method[valueOf, return_type[type[HttpMethod]], modifier[public static], parameter[name]] begin[{] if[binary_operation[member[.name], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] identifier[HttpMethod] identifier[valueOf] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] li...
private StorageDirView allocateBlock(long sessionId, long blockSize, BlockStoreLocation location) { Preconditions.checkNotNull(location, "location"); if (location.equals(BlockStoreLocation.anyTier())) { // When any tier is ok, loop over all tier views and dir views, // and return a temp block ...
class class_name[name] begin[{] method[allocateBlock, return_type[type[StorageDirView]], modifier[private], parameter[sessionId, blockSize, location]] begin[{] call[Preconditions.checkNotNull, parameter[member[.location], literal["location"]]] if[call[location.equals, parameter[...
Keyword[private] identifier[StorageDirView] identifier[allocateBlock] operator[SEP] Keyword[long] identifier[sessionId] , Keyword[long] identifier[blockSize] , identifier[BlockStoreLocation] identifier[location] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] iden...
public String text() { try { connect(); return responseCode() >= 400 ? read(connection.getErrorStream()) : read(connection.getInputStream()); } catch (IOException e) { throw new HttpException("Failed URL: " + url, e); }finally { dispose(); ...
class class_name[name] begin[{] method[text, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=connect, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), la...
Keyword[public] identifier[String] identifier[text] operator[SEP] operator[SEP] { Keyword[try] { identifier[connect] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[responseCode] operator[SEP] operator[SEP] operator[>=] Other[400] operator[?] identifier[read] operator[SEP] identif...
private void buildStandardFile() { // Build station list List<GempakStation> stations = gemreader.getStations(); //Trace.msg("GEMPAKSIOSP: now have " + stations.size() + " stations"); Dimension station = new Dimension("station", stations.size(), true); ncfile.addDimension(null, station); n...
class class_name[name] begin[{] method[buildStandardFile, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[List], stations] local_variable[type[Dimension], station] call[ncfile.addDimension, parameter[literal[null], member[.station]]] ...
Keyword[private] Keyword[void] identifier[buildStandardFile] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[GempakStation] operator[>] identifier[stations] operator[=] identifier[gemreader] operator[SEP] identifier[getStations] operator[SEP] operator[SEP] operator[SEP] identifier[Dimension...
public static boolean containsAny(Collection<?> coll1, Collection<?> coll2) { if (isEmpty(coll1) || isEmpty(coll2)) { return false; } if (coll1.size() < coll2.size()) { for (Object object : coll1) { if (coll2.contains(object)) { return true; } } } else { for (Object object : ...
class class_name[name] begin[{] method[containsAny, return_type[type[boolean]], modifier[public static], parameter[coll1, coll2]] begin[{] if[binary_operation[call[.isEmpty, parameter[member[.coll1]]], ||, call[.isEmpty, parameter[member[.coll2]]]]] begin[{] return[literal[false]] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[containsAny] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[coll1] , identifier[Collection] operator[<] operator[?] operator[>] identifier[coll2] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operato...
protected void start() { // if a periodic execution throws an exception, future executions are suspended, // this task wraps the call in a try-catch block to prevent that. Errors are still propagated. final Runnable resilientTask = () -> { try { run(); } c...
class class_name[name] begin[{] method[start, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[Runnable], resilientTask] call[scheduler.scheduleAtFixedRate, parameter[member[.resilientTask], literal[0], binary_operation[member[.batchTimeout], +, member[....
Keyword[protected] Keyword[void] identifier[start] operator[SEP] operator[SEP] { Keyword[final] identifier[Runnable] identifier[resilientTask] operator[=] operator[SEP] operator[SEP] operator[->] { Keyword[try] { identifier[run] operator[SEP] operator[SEP] operator[SEP] } ...
public void marshall(PhoneNumberOrder phoneNumberOrder, ProtocolMarshaller protocolMarshaller) { if (phoneNumberOrder == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(phoneNumberOrder.getPhoneNumber...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[phoneNumberOrder, protocolMarshaller]] begin[{] if[binary_operation[member[.phoneNumberOrder], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PhoneNumberOrder] identifier[phoneNumberOrder] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[phoneNumberOrder] operator[==] Other[null] operator[SEP] { Ke...
public static <T> List<T> merge(T pFirst, T... pRest) { List<T> result = new ArrayList<T>(1 + (pRest == null ? 0 : pRest.length)); result.add(pFirst); if (pRest != null) { result.addAll(Arrays.asList(pRest)); } return result; }
class class_name[name] begin[{] method[merge, return_type[type[List]], modifier[public static], parameter[pFirst, pRest]] begin[{] local_variable[type[List], result] call[result.add, parameter[member[.pFirst]]] if[binary_operation[member[.pRest], !=, literal[null]]] begi...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[merge] operator[SEP] identifier[T] identifier[pFirst] , identifier[T] operator[...] identifier[pRest] operator[SEP] { identifier[List] operator[<] identifier[T] operator[>] ide...
public static void resolveStageAlias( StageLibraryTask stageLibrary, StageConfiguration stageConf ) { String aliasKey = Joiner.on(",").join(stageConf.getLibrary(), stageConf.getStageName()); String aliasValue = Strings.nullToEmpty(stageLibrary.getStageNameAliases().get(aliasKey)); if (LOG.isTraceE...
class class_name[name] begin[{] method[resolveStageAlias, return_type[void], modifier[public static], parameter[stageLibrary, stageConf]] begin[{] local_variable[type[String], aliasKey] local_variable[type[String], aliasValue] if[call[LOG.isTraceEnabled, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[resolveStageAlias] operator[SEP] identifier[StageLibraryTask] identifier[stageLibrary] , identifier[StageConfiguration] identifier[stageConf] operator[SEP] { identifier[String] identifier[aliasKey] operator[=] identifier[Joiner] operator[SEP] identifier[o...
@Nullable public static ClientConnectionTimings get(RequestContext ctx) { requireNonNull(ctx, "ctx"); if (ctx.hasAttr(TIMINGS)) { return ctx.attr(TIMINGS).get(); } return null; }
class class_name[name] begin[{] method[get, return_type[type[ClientConnectionTimings]], modifier[public static], parameter[ctx]] begin[{] call[.requireNonNull, parameter[member[.ctx], literal["ctx"]]] if[call[ctx.hasAttr, parameter[member[.TIMINGS]]]] begin[{] return...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[ClientConnectionTimings] identifier[get] operator[SEP] identifier[RequestContext] identifier[ctx] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[ctx] , literal[String] operator[SEP] operator[SEP] Keyword[if] opera...
@Override public Double getValue() { Double rslt = getUiValue(); if (rslt == null) return internVal; if (internVal == null) { Double min = getMin(); if (rslt == min || rslt != null && rslt.equals(min)) return null; } internVal = rslt; return r...
class class_name[name] begin[{] method[getValue, return_type[type[Double]], modifier[public], parameter[]] begin[{] local_variable[type[Double], rslt] if[binary_operation[member[.rslt], ==, literal[null]]] begin[{] return[member[.internVal]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] identifier[Double] identifier[getValue] operator[SEP] operator[SEP] { identifier[Double] identifier[rslt] operator[=] identifier[getUiValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rslt] operator[==] Other[null] operator[SE...
@SuppressWarnings("unchecked") private static <T> T getCachedReference(Project project, String key, Supplier<T> supplier) { if (project == null) { throw new IllegalArgumentException("Gradle project reference cannot be null."); } Project rootProject = project.getRootProject(); ...
class class_name[name] begin[{] method[getCachedReference, return_type[type[T]], modifier[private static], parameter[project, key, supplier]] begin[{] if[binary_operation[member[.project], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[getCachedReference] operator[SEP] identifier[Project] identifier[project] , identifier[String] identifier[key] , identifier[Supplier] o...
public static Predicate paths(final String... paths) { final PathMatchPredicate[] predicates = new PathMatchPredicate[paths.length]; for (int i = 0; i < paths.length; ++i) { predicates[i] = new PathMatchPredicate(paths[i]); } return or(predicates); }
class class_name[name] begin[{] method[paths, return_type[type[Predicate]], modifier[public static], parameter[paths]] begin[{] local_variable[type[PathMatchPredicate], predicates] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Mem...
Keyword[public] Keyword[static] identifier[Predicate] identifier[paths] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[paths] operator[SEP] { Keyword[final] identifier[PathMatchPredicate] operator[SEP] operator[SEP] identifier[predicates] operator[=] Keyword[new] identifier[PathMatchPre...
static ClassInfoList getAllClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) { return new ClassInfoList( ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.ALL), /* sortByName = */ true); }
class class_name[name] begin[{] method[getAllClasses, return_type[type[ClassInfoList]], modifier[static], parameter[classes, scanSpec]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=classes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[static] identifier[ClassInfoList] identifier[getAllClasses] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[ClassInfo] operator[>] identifier[classes] , Keyword[final] identifier[ScanSpec] identifier[scanSpec] operator[SEP] { Keyword[return] Keyword[new] identifier[ClassInfoLi...
public Date getDate(final Date min, final Date max) { return getDate(min.getTime(), max.getTime()); }
class class_name[name] begin[{] method[getDate, return_type[type[Date]], modifier[public], parameter[min, max]] begin[{] return[call[.getDate, parameter[call[min.getTime, parameter[]], call[max.getTime, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[Date] identifier[getDate] operator[SEP] Keyword[final] identifier[Date] identifier[min] , Keyword[final] identifier[Date] identifier[max] operator[SEP] { Keyword[return] identifier[getDate] operator[SEP] identifier[min] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] , ...
@Override public void notifyReceiveAllowed(boolean isAllowed) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyReceiveAllowed", new Object[] { Boolean.valueOf(isAllowed), this }); this.lock(); try { try ...
class class_name[name] begin[{] method[notifyReceiveAllowed, return_type[void], modifier[public], parameter[isAllowed]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[notifyReceiveAllowed] operator[SEP] Keyword[boolean] identifier[isAllowed] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identi...
@Override public void onSuccess(final DMRResponse response) { ModelNode result = response.get(); if (!result.hasDefined(OUTCOME) || result.isFailure()) { onFailedOutcome(result); abort(); } else { onSuccess(result); proceed(); } }
class class_name[name] begin[{] method[onSuccess, return_type[void], modifier[public], parameter[response]] begin[{] local_variable[type[ModelNode], result] if[binary_operation[call[result.hasDefined, parameter[member[.OUTCOME]]], ||, call[result.isFailure, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onSuccess] operator[SEP] Keyword[final] identifier[DMRResponse] identifier[response] operator[SEP] { identifier[ModelNode] identifier[result] operator[=] identifier[response] operator[SEP] identifier[get] operator[SEP] operator[SEP] oper...
ServerRequest peekAt(int index) { ServerRequest req = null; synchronized (reqQueueLockObject) { try { req = queue.get(index); } catch (IndexOutOfBoundsException | NoSuchElementException ignored) { } } return req; }
class class_name[name] begin[{] method[peekAt, return_type[type[ServerRequest]], modifier[default], parameter[index]] begin[{] local_variable[type[ServerRequest], req] SYNCHRONIZED[member[.reqQueueLockObject]] BEGIN[{] TryStatement(block=[StatementExpression(expression=Assig...
identifier[ServerRequest] identifier[peekAt] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[ServerRequest] identifier[req] operator[=] Other[null] operator[SEP] Keyword[synchronized] operator[SEP] identifier[reqQueueLockObject] operator[SEP] { Keyword[try] { ide...
public M switchTo(K to, M msg) { doFork(to, msg); return doJoin(); }
class class_name[name] begin[{] method[switchTo, return_type[type[M]], modifier[public], parameter[to, msg]] begin[{] call[.doFork, parameter[member[.to], member[.msg]]] return[call[.doJoin, parameter[]]] end[}] END[}]
Keyword[public] identifier[M] identifier[switchTo] operator[SEP] identifier[K] identifier[to] , identifier[M] identifier[msg] operator[SEP] { identifier[doFork] operator[SEP] identifier[to] , identifier[msg] operator[SEP] operator[SEP] Keyword[return] identifier[doJoin] operator[SEP] operator[SEP] operator[SEP...
public static VAlarm procedure(Trigger trigger, String path) { VAlarm alarm = new VAlarm(Action.procedure(), trigger); alarm.setDescription(path); return alarm; }
class class_name[name] begin[{] method[procedure, return_type[type[VAlarm]], modifier[public static], parameter[trigger, path]] begin[{] local_variable[type[VAlarm], alarm] call[alarm.setDescription, parameter[member[.path]]] return[member[.alarm]] end[}] END[}]
Keyword[public] Keyword[static] identifier[VAlarm] identifier[procedure] operator[SEP] identifier[Trigger] identifier[trigger] , identifier[String] identifier[path] operator[SEP] { identifier[VAlarm] identifier[alarm] operator[=] Keyword[new] identifier[VAlarm] operator[SEP] identifier[Action] operator[SEP] ide...
public Observable<ServiceResponse<Page<StampCapacityInner>>> listCapacitiesSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (na...
class class_name[name] begin[{] method[listCapacitiesSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arg...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[StampCapacityInner] operator[>] operator[>] operator[>] identifier[listCapacitiesSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[fi...
private void initializeUnknownCategoricalsPerColumn(GenModel model) { unknownCategoricalsPerColumn = new ConcurrentHashMap<>(); for (int i = 0; i < model.getNumCols(); i++) { String[] domainValues = model.getDomainValues(i); if (domainValues != null) { unknownCategoricalsPerColumn.put(model...
class class_name[name] begin[{] method[initializeUnknownCategoricalsPerColumn, return_type[void], modifier[private], parameter[model]] begin[{] assign[member[.unknownCategoricalsPerColumn], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_opera...
Keyword[private] Keyword[void] identifier[initializeUnknownCategoricalsPerColumn] operator[SEP] identifier[GenModel] identifier[model] operator[SEP] { identifier[unknownCategoricalsPerColumn] operator[=] Keyword[new] identifier[ConcurrentHashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] ...
private Vector3d getReferenceAxisCylic() { if (rotationGroup.getPointGroup().equals("C2")) { Vector3d vr = new Vector3d(subunits.getOriginalCenters().get(0)); vr.sub(subunits.getCentroid()); vr.normalize(); return vr; } // get principal axis vector that is perpendicular to the principal // rotation...
class class_name[name] begin[{] method[getReferenceAxisCylic, return_type[type[Vector3d]], modifier[private], parameter[]] begin[{] if[call[rotationGroup.getPointGroup, parameter[]]] begin[{] local_variable[type[Vector3d], vr] call[vr.sub, parameter[call[subu...
Keyword[private] identifier[Vector3d] identifier[getReferenceAxisCylic] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[rotationGroup] operator[SEP] identifier[getPointGroup] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] ...
public void checkInactiveSession(Session session) { if (session == null) { return; } if (log.isDebugEnabled()) { log.debug("Checking for idle " + session.getId()); } try (Lock ignored = session.lock()) { if (getEvictionPolicy() > 0 && session....
class class_name[name] begin[{] method[checkInactiveSession, return_type[void], modifier[public], parameter[session]] begin[{] if[binary_operation[member[.session], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[call[log.isDebu...
Keyword[public] Keyword[void] identifier[checkInactiveSession] operator[SEP] identifier[Session] identifier[session] operator[SEP] { Keyword[if] operator[SEP] identifier[session] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } Keyword[if] operator[SEP] identifier...
public static DeviceBindLocationResult deviceBindLocation( String accessToken, DeviceBindLocation deviceBindLocation) { return deviceBindLocation(accessToken, JsonUtil.toJSONString(deviceBindLocation)); }
class class_name[name] begin[{] method[deviceBindLocation, return_type[type[DeviceBindLocationResult]], modifier[public static], parameter[accessToken, deviceBindLocation]] begin[{] return[call[.deviceBindLocation, parameter[member[.accessToken], call[JsonUtil.toJSONString, parameter[member[.deviceBind...
Keyword[public] Keyword[static] identifier[DeviceBindLocationResult] identifier[deviceBindLocation] operator[SEP] identifier[String] identifier[accessToken] , identifier[DeviceBindLocation] identifier[deviceBindLocation] operator[SEP] { Keyword[return] identifier[deviceBindLocation] operator[SEP] identifier[acc...
public static DataSource createDataSource(final File yamlFile) throws SQLException, IOException { YamlRootMasterSlaveConfiguration config = YamlEngine.unmarshal(yamlFile, YamlRootMasterSlaveConfiguration.class); return MasterSlaveDataSourceFactory.createDataSource(config.getDataSources(), new MasterSlav...
class class_name[name] begin[{] method[createDataSource, return_type[type[DataSource]], modifier[public static], parameter[yamlFile]] begin[{] local_variable[type[YamlRootMasterSlaveConfiguration], config] return[call[MasterSlaveDataSourceFactory.createDataSource, parameter[call[config.getDataS...
Keyword[public] Keyword[static] identifier[DataSource] identifier[createDataSource] operator[SEP] Keyword[final] identifier[File] identifier[yamlFile] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[IOException] { identifier[YamlRootMasterSlaveConfiguration] identifier[config] operator[=] id...