code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
int getChoiceField(int accessor) { int result = 0; try { if (jmfPart.isPresent(accessor)) result = jmfPart.getInt(accessor); } catch (JMFException e) { FFDCFilter.processException(e, "getChoiceField", "185", this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Si...
class class_name[name] begin[{] method[getChoiceField, return_type[type[int]], modifier[default], parameter[accessor]] begin[{] local_variable[type[int], result] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=accessor, postfix_operators=[], prefix_o...
Keyword[int] identifier[getChoiceField] operator[SEP] Keyword[int] identifier[accessor] operator[SEP] { Keyword[int] identifier[result] operator[=] Other[0] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] identifier[jmfPart] operator[SEP] identifier[isPresent] operator[SEP] identifier[accessor]...
private DescribeTagsResponseType describeTags() { DescribeTagsResponseType ret = new DescribeTagsResponseType(); ret.setRequestId(UUID.randomUUID().toString()); TagSetType tagsSet = new TagSetType(); for (MockTags mockVpc : mockTagsController.describeTags()) { for (String r...
class class_name[name] begin[{] method[describeTags, return_type[type[DescribeTagsResponseType]], modifier[private], parameter[]] begin[{] local_variable[type[DescribeTagsResponseType], ret] call[ret.setRequestId, parameter[call[UUID.randomUUID, parameter[]]]] local_variable[typ...
Keyword[private] identifier[DescribeTagsResponseType] identifier[describeTags] operator[SEP] operator[SEP] { identifier[DescribeTagsResponseType] identifier[ret] operator[=] Keyword[new] identifier[DescribeTagsResponseType] operator[SEP] operator[SEP] operator[SEP] identifier[ret] operator[SEP] identifier[setReq...
public static String createURLTitle(final String title) { String baseTitle = title; // Remove XML Elements from the Title. baseTitle = baseTitle.replaceAll("</(.*?)>", "").replaceAll("<(.*?)>", ""); // Check if the title starts with an invalid sequence final Matcher invalidSeque...
class class_name[name] begin[{] method[createURLTitle, return_type[type[String]], modifier[public static], parameter[title]] begin[{] local_variable[type[String], baseTitle] assign[member[.baseTitle], call[baseTitle.replaceAll, parameter[literal["</(.*?)>"], literal[""]]]] local...
Keyword[public] Keyword[static] identifier[String] identifier[createURLTitle] operator[SEP] Keyword[final] identifier[String] identifier[title] operator[SEP] { identifier[String] identifier[baseTitle] operator[=] identifier[title] operator[SEP] identifier[baseTitle] operator[=] identifier[baseTitle] operator[SEP...
protected void gameLoop() throws SlickException { int delta = getDelta(); if (!Display.isVisible() && updateOnlyOnVisible) { try { Thread.sleep(100); } catch (Exception e) {} } else { try { updateAndRender(delta); } catch (SlickException e) { Log.error(e); running = false; retur...
class class_name[name] begin[{] method[gameLoop, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[int], delta] if[binary_operation[call[Display.isVisible, parameter[]], &&, member[.updateOnlyOnVisible]]] begin[{] TryStatement(block=[Statement...
Keyword[protected] Keyword[void] identifier[gameLoop] operator[SEP] operator[SEP] Keyword[throws] identifier[SlickException] { Keyword[int] identifier[delta] operator[=] identifier[getDelta] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[Display] operator[SEP] identifi...
@Override public boolean isElementPresent(long timeout) throws WidgetException { final long start = System.currentTimeMillis(); final long end = start + timeout; while (true) { if (isElementPresent()) { return true; } // Putting the condition here will measure the time more accurately. if (Syste...
class class_name[name] begin[{] method[isElementPresent, return_type[type[boolean]], modifier[public], parameter[timeout]] begin[{] local_variable[type[long], start] local_variable[type[long], end] while[literal[true]] begin[{] if[call[.isElementPresent, ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isElementPresent] operator[SEP] Keyword[long] identifier[timeout] operator[SEP] Keyword[throws] identifier[WidgetException] { Keyword[final] Keyword[long] identifier[start] operator[=] identifier[System] operator[SEP] identifier[curre...
@Override public DescribeReservedInstancesOfferingsResult describeReservedInstancesOfferings(DescribeReservedInstancesOfferingsRequest request) { request = beforeClientExecution(request); return executeDescribeReservedInstancesOfferings(request); }
class class_name[name] begin[{] method[describeReservedInstancesOfferings, return_type[type[DescribeReservedInstancesOfferingsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.execute...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeReservedInstancesOfferingsResult] identifier[describeReservedInstancesOfferings] operator[SEP] identifier[DescribeReservedInstancesOfferingsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExe...
protected static ElementValue extractValue(final String field, final AnnotationEntry entry) { ElementValue result = null; for (final ElementValuePair p : entry.getElementValuePairs()) { if (field.equals(p.getNameString())) { result = p.getValue(); break; } } return result; ...
class class_name[name] begin[{] method[extractValue, return_type[type[ElementValue]], modifier[static protected], parameter[field, entry]] begin[{] local_variable[type[ElementValue], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(argument...
Keyword[protected] Keyword[static] identifier[ElementValue] identifier[extractValue] operator[SEP] Keyword[final] identifier[String] identifier[field] , Keyword[final] identifier[AnnotationEntry] identifier[entry] operator[SEP] { identifier[ElementValue] identifier[result] operator[=] Other[null] operator[SEP] ...
private void updateSliderState(int touchX, int touchY) { int distanceX = touchX - mCircleCenterX; int distanceY = mCircleCenterY - touchY; //noinspection SuspiciousNameCombination double c = Math.sqrt(Math.pow(distanceX, 2) + Math.pow(distanceY, 2)); mAngle = Math.acos(distanceX ...
class class_name[name] begin[{] method[updateSliderState, return_type[void], modifier[private], parameter[touchX, touchY]] begin[{] local_variable[type[int], distanceX] local_variable[type[int], distanceY] local_variable[type[double], c] assign[member[.mAngle], call[Math...
Keyword[private] Keyword[void] identifier[updateSliderState] operator[SEP] Keyword[int] identifier[touchX] , Keyword[int] identifier[touchY] operator[SEP] { Keyword[int] identifier[distanceX] operator[=] identifier[touchX] operator[-] identifier[mCircleCenterX] operator[SEP] Keyword[int] identifier[distanceY] o...
@Override protected ThriftConnection<T> getConnectionInternal(byte[] nodeID) throws ThriftConnectionPoolException { if (nodeID == null) { throw new NullPointerException(); } if (this.pool.getThriftServerCount() == 0) { throw new ThriftConnectionPoolException("当前没有可用的服务器 无法获取连接"); } List<ThriftConnect...
class class_name[name] begin[{] method[getConnectionInternal, return_type[type[ThriftConnection]], modifier[protected], parameter[nodeID]] begin[{] if[binary_operation[member[.nodeID], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, const...
annotation[@] identifier[Override] Keyword[protected] identifier[ThriftConnection] operator[<] identifier[T] operator[>] identifier[getConnectionInternal] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[nodeID] operator[SEP] Keyword[throws] identifier[ThriftConnectionPoolException] { Keyword[i...
public void translateToHotdeployErrorIfPossible(Error e) { // to notice reboot timing if (!ManagedHotdeploy.isHotdeploy()) { return; } final String msg = e.getMessage(); if (msg == null) { return; } // only frequent patterns if (e instanceo...
class class_name[name] begin[{] method[translateToHotdeployErrorIfPossible, return_type[void], modifier[public], parameter[e]] begin[{] if[call[ManagedHotdeploy.isHotdeploy, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[Str...
Keyword[public] Keyword[void] identifier[translateToHotdeployErrorIfPossible] operator[SEP] identifier[Error] identifier[e] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[ManagedHotdeploy] operator[SEP] identifier[isHotdeploy] operator[SEP] operator[SEP] operator[SEP] { Keyword[retur...
public void shape(char[] text, int start, int count) { checkParams(text, start, count); if (isContextual()) { if (rangeSet == null) { shapeContextually(text, start, count, key); } else { shapeContextually(text, start, count, shapingRange); ...
class class_name[name] begin[{] method[shape, return_type[void], modifier[public], parameter[text, start, count]] begin[{] call[.checkParams, parameter[member[.text], member[.start], member[.count]]] if[call[.isContextual, parameter[]]] begin[{] if[binary...
Keyword[public] Keyword[void] identifier[shape] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[text] , Keyword[int] identifier[start] , Keyword[int] identifier[count] operator[SEP] { identifier[checkParams] operator[SEP] identifier[text] , identifier[start] , identifier[count] operator[SE...
@Nonnull public static List<Path> list(@Nonnull final Path dir) throws IOException { final List<Path> contents = new ArrayList<>(); try (final DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) { for (final Path entry : stream) { contents.add(entry); ...
class class_name[name] begin[{] method[list, return_type[type[List]], modifier[public static], parameter[dir]] begin[{] local_variable[type[List], contents] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Me...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Path] operator[>] identifier[list] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Path] identifier[dir] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] ident...
private K max3(K a, K b, K c) { return max2(a, max2(b, c)); }
class class_name[name] begin[{] method[max3, return_type[type[K]], modifier[private], parameter[a, b, c]] begin[{] return[call[.max2, parameter[member[.a], call[.max2, parameter[member[.b], member[.c]]]]]] end[}] END[}]
Keyword[private] identifier[K] identifier[max3] operator[SEP] identifier[K] identifier[a] , identifier[K] identifier[b] , identifier[K] identifier[c] operator[SEP] { Keyword[return] identifier[max2] operator[SEP] identifier[a] , identifier[max2] operator[SEP] identifier[b] , identifier[c] operator[SEP] opera...
public static boolean isLafAqua() { ensureValidCache(); if (cachedIsLafAqua == null) { cachedIsLafAqua = Boolean.valueOf(computeIsLafAqua()); } return cachedIsLafAqua.booleanValue(); }
class class_name[name] begin[{] method[isLafAqua, return_type[type[boolean]], modifier[public static], parameter[]] begin[{] call[.ensureValidCache, parameter[]] if[binary_operation[member[.cachedIsLafAqua], ==, literal[null]]] begin[{] assign[member[.cac...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isLafAqua] operator[SEP] operator[SEP] { identifier[ensureValidCache] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cachedIsLafAqua] operator[==] Other[null] operator[SEP] { identifier[cachedIsLafAqua] operato...
private static List<Entry<String, String>> formget( Bootstrap bootstrap, String host, int port, String get, URI uriSimple) throws Exception { // XXX /formget // No use of HttpPostRequestEncoder since not a POST Channel channel = bootstrap.connect(host, port).sync().channel(); ...
class class_name[name] begin[{] method[formget, return_type[type[List]], modifier[private static], parameter[bootstrap, host, port, get, uriSimple]] begin[{] local_variable[type[Channel], channel] local_variable[type[QueryStringEncoder], encoder] call[encoder.addParam, parameter...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[formget] operator[SEP] identifier[Bootstrap] identifier[bootstrap] , identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier...
public static List<Link> getAllLinksForRelation(HalResource hal, String relation) { List<Link> links = Lists.newArrayList(hal.getLinks(relation)); List<Link> embeddedLinks = hal.getEmbedded().values().stream() .flatMap(embedded -> getAllLinksForRelation(embedded, relation).stream()) .collect(Co...
class class_name[name] begin[{] method[getAllLinksForRelation, return_type[type[List]], modifier[public static], parameter[hal, relation]] begin[{] local_variable[type[List], links] local_variable[type[List], embeddedLinks] call[links.addAll, parameter[member[.embeddedLinks]]] ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Link] operator[>] identifier[getAllLinksForRelation] operator[SEP] identifier[HalResource] identifier[hal] , identifier[String] identifier[relation] operator[SEP] { identifier[List] operator[<] identifier[Link] operator[>] identifier[links]...
void executeCommand() throws CertificateException { String exceptionMessage; Throwable cause = null; try { if (logger.isLoggable(Level.FINE)) { logger.fine("Executing keytool command: " + this.toString()); } Process proc = Runtime.getRuntime()...
class class_name[name] begin[{] method[executeCommand, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[String], exceptionMessage] local_variable[type[Throwable], cause] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(...
Keyword[void] identifier[executeCommand] operator[SEP] operator[SEP] Keyword[throws] identifier[CertificateException] { identifier[String] identifier[exceptionMessage] operator[SEP] identifier[Throwable] identifier[cause] operator[=] Other[null] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] i...
public static boolean containsIgnoreCase(final String string, final String[] strings) { if (null == strings) { return false; } return Arrays.stream(strings).anyMatch(str -> StringUtils.equalsIgnoreCase(string, str)); }
class class_name[name] begin[{] method[containsIgnoreCase, return_type[type[boolean]], modifier[public static], parameter[string, strings]] begin[{] if[binary_operation[literal[null], ==, member[.strings]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[containsIgnoreCase] operator[SEP] Keyword[final] identifier[String] identifier[string] , Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[strings] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[str...
private Object readResponse(Type returnType, InputStream input, String id) throws Throwable { ReadContext context = ReadContext.getReadContext(input, mapper); ObjectNode jsonObject = getValidResponse(id, context); notifyAnswerListener(jsonObject); handleErrorResponse(jsonObject); if (hasResult(jsonObjec...
class class_name[name] begin[{] method[readResponse, return_type[type[Object]], modifier[private], parameter[returnType, input, id]] begin[{] local_variable[type[ReadContext], context] local_variable[type[ObjectNode], jsonObject] call[.notifyAnswerListener, parameter[member[.jso...
Keyword[private] identifier[Object] identifier[readResponse] operator[SEP] identifier[Type] identifier[returnType] , identifier[InputStream] identifier[input] , identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[Throwable] { identifier[ReadContext] identifier[context] operator[=] identi...
public final static Method getAttributeSetter(Class cls, String attr, Class type) throws NoSuchMethodException { StringBuffer buf = new StringBuffer(attr.length() + 3); buf.append("set"); if(Character.isLowerCase(attr.charAt(0))) { buf.append(Character.toUpperCase(attr.charAt(0))) ...
class class_name[name] begin[{] method[getAttributeSetter, return_type[type[Method]], modifier[final public static], parameter[cls, attr, type]] begin[{] local_variable[type[StringBuffer], buf] call[buf.append, parameter[literal["set"]]] if[call[Character.isLowerCase, pa...
Keyword[public] Keyword[final] Keyword[static] identifier[Method] identifier[getAttributeSetter] operator[SEP] identifier[Class] identifier[cls] , identifier[String] identifier[attr] , identifier[Class] identifier[type] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] { identifier[StringBuffer] ...
private <M extends PMessage<M, F>, F extends PField> Pair<M, Set<String>> checkAndParseInternal(@Nonnull Path configFile, @Nullable M parent, ...
class class_name[name] begin[{] method[checkAndParseInternal, return_type[type[Pair]], modifier[private], parameter[configFile, parent, includeStack]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argume...
Keyword[private] operator[<] identifier[M] Keyword[extends] identifier[PMessage] operator[<] identifier[M] , identifier[F] operator[>] , identifier[F] Keyword[extends] identifier[PField] operator[>] identifier[Pair] operator[<] identifier[M] , identifier[Set] operator[<] identifier[String] operator[>] operator[>] id...
public long getUInt32(int index) throws IOException { validateIndex(index, 4); if (_isMotorolaByteOrder) { // Motorola - MSB first (big endian) return (((long)getByte(index )) << 24 & 0xFF000000L) | (((long)getByte(index + 1)) << 16 & 0xFF0000L) | ...
class class_name[name] begin[{] method[getUInt32, return_type[type[long]], modifier[public], parameter[index]] begin[{] call[.validateIndex, parameter[member[.index], literal[4]]] if[member[._isMotorolaByteOrder]] begin[{] return[binary_operation[binary_operation[bin...
Keyword[public] Keyword[long] identifier[getUInt32] operator[SEP] Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[IOException] { identifier[validateIndex] operator[SEP] identifier[index] , Other[4] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_isMotorolaByteOrder] ope...
public static double calculateScaledResidual(double[][] A, double[][] X, double[][] B){ DoubleMatrix2D AMatrix = DoubleFactory2D.dense.make(A); DoubleMatrix2D XMatrix = DoubleFactory2D.dense.make(X); DoubleMatrix2D BMatrix = DoubleFactory2D.dense.make(B); return calculateScaledResidual(AMatrix, XMatrix, BM...
class class_name[name] begin[{] method[calculateScaledResidual, return_type[type[double]], modifier[public static], parameter[A, X, B]] begin[{] local_variable[type[DoubleMatrix2D], AMatrix] local_variable[type[DoubleMatrix2D], XMatrix] local_variable[type[DoubleMatrix2D], BMatrix] ...
Keyword[public] Keyword[static] Keyword[double] identifier[calculateScaledResidual] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[A] , Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[X] , Keyword[double] operator[SEP] operator[SEP] ...
public static MozuUrl getChildCategoriesUrl(Integer categoryId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/categories/{categoryId}/children?responseFields={responseFields}"); formatter.formatUrl("categoryId", categoryId); formatter.formatUrl("responseField...
class class_name[name] begin[{] method[getChildCategoriesUrl, return_type[type[MozuUrl]], modifier[public static], parameter[categoryId, responseFields]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["categoryId"], member[.categoryId]...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[getChildCategoriesUrl] operator[SEP] identifier[Integer] identifier[categoryId] , identifier[String] identifier[responseFields] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator...
public ModuleInfoList filter(final ModuleInfoFilter filter) { final ModuleInfoList moduleInfoFiltered = new ModuleInfoList(); for (final ModuleInfo resource : this) { if (filter.accept(resource)) { moduleInfoFiltered.add(resource); } } return modul...
class class_name[name] begin[{] method[filter, return_type[type[ModuleInfoList]], modifier[public], parameter[filter]] begin[{] local_variable[type[ModuleInfoList], moduleInfoFiltered] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Mem...
Keyword[public] identifier[ModuleInfoList] identifier[filter] operator[SEP] Keyword[final] identifier[ModuleInfoFilter] identifier[filter] operator[SEP] { Keyword[final] identifier[ModuleInfoList] identifier[moduleInfoFiltered] operator[=] Keyword[new] identifier[ModuleInfoList] operator[SEP] operator[SEP] opera...
public JFreeChartRender setStyle(int style) { switch (style) { case JFreeChartRender.STYLE_THESIS: return this.setBaseShapesVisible(true). setBaseShapesFilled(false). setBaseLinesVisible(false). setLegendItemFont...
class class_name[name] begin[{] method[setStyle, return_type[type[JFreeChartRender]], modifier[public], parameter[style]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=STYLE_THESIS, postfix_operators=[], prefix_operators=[], qualifier=JFreeChartRender, selectors=[])],...
Keyword[public] identifier[JFreeChartRender] identifier[setStyle] operator[SEP] Keyword[int] identifier[style] operator[SEP] { Keyword[switch] operator[SEP] identifier[style] operator[SEP] { Keyword[case] identifier[JFreeChartRender] operator[SEP] identifier[STYLE_THESIS] operator[:] Keyword[return] ...
public void removeAllTopicAcls() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "removeAllTopicAcls"); ArrayList topicAclList = null; try { // Remove from the HashMap, with synch, there may be other accessors synchronized(_targets) { ...
class class_name[name] begin[{] method[removeAllTopicAcls, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc...
Keyword[public] Keyword[void] identifier[removeAllTopicAcls] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP...
public static PropertyBuilder getInstance(Context context, ClassDoc classDoc, PropertyWriter writer) { return new PropertyBuilder(context, classDoc, writer); }
class class_name[name] begin[{] method[getInstance, return_type[type[PropertyBuilder]], modifier[public static], parameter[context, classDoc, writer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRefe...
Keyword[public] Keyword[static] identifier[PropertyBuilder] identifier[getInstance] operator[SEP] identifier[Context] identifier[context] , identifier[ClassDoc] identifier[classDoc] , identifier[PropertyWriter] identifier[writer] operator[SEP] { Keyword[return] Keyword[new] identifier[PropertyBuilder] operator...
public static boolean startDefaultHandlers(HttpServerExchange httpServerExchange) { // check if defaultHandlers is empty if(defaultHandlers != null && defaultHandlers.size() > 0) { httpServerExchange.putAttachment(CHAIN_ID, "defaultHandlers"); httpServerExchange.putAttachment(CHAIN_SEQ, 0); return true; ...
class class_name[name] begin[{] method[startDefaultHandlers, return_type[type[boolean]], modifier[public static], parameter[httpServerExchange]] begin[{] if[binary_operation[binary_operation[member[.defaultHandlers], !=, literal[null]], &&, binary_operation[call[defaultHandlers.size, parameter[...
Keyword[public] Keyword[static] Keyword[boolean] identifier[startDefaultHandlers] operator[SEP] identifier[HttpServerExchange] identifier[httpServerExchange] operator[SEP] { Keyword[if] operator[SEP] identifier[defaultHandlers] operator[!=] Other[null] operator[&&] identifier[defaultHandlers] operator[SEP] ident...
public static void unescapeXml(final String text, final Writer writer) throws IOException { if (writer == null) { throw new IllegalArgumentException("Argument 'writer' cannot be null"); } if (text == null) { return; } if (text.indexOf('&') < 0...
class class_name[name] begin[{] method[unescapeXml, return_type[void], modifier[public static], parameter[text, writer]] begin[{] if[binary_operation[member[.writer], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[static] Keyword[void] identifier[unescapeXml] operator[SEP] Keyword[final] identifier[String] identifier[text] , Keyword[final] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[writer] operator[==] Other[nu...
static public boolean isJaninoAvailable() { ClassLoader classLoader = EnvUtil.class.getClassLoader(); try { Class<?> bindingClass = classLoader.loadClass("org.codehaus.janino.ScriptEvaluator"); return bindingClass != null; } catch (ClassNotFoundException e) { ...
class class_name[name] begin[{] method[isJaninoAvailable, return_type[type[boolean]], modifier[public static], parameter[]] begin[{] local_variable[type[ClassLoader], classLoader] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initial...
Keyword[static] Keyword[public] Keyword[boolean] identifier[isJaninoAvailable] operator[SEP] operator[SEP] { identifier[ClassLoader] identifier[classLoader] operator[=] identifier[EnvUtil] operator[SEP] Keyword[class] operator[SEP] identifier[getClassLoader] operator[SEP] operator[SEP] operator[SEP] Keyword[try]...
public static synchronized <T> IExpectationSetters<T> expectNew(Class<T> type, Class<?>[] parameterTypes, Object... arguments) throws Exception { return doExpectNew(type, new DefaultMockStrategy(), parameterTypes, arguments); }
class class_name[name] begin[{] method[expectNew, return_type[type[IExpectationSetters]], modifier[synchronized public static], parameter[type, parameterTypes, arguments]] begin[{] return[call[.doExpectNew, parameter[member[.type], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, ...
Keyword[public] Keyword[static] Keyword[synchronized] operator[<] identifier[T] operator[>] identifier[IExpectationSetters] operator[<] identifier[T] operator[>] identifier[expectNew] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[Class] operator[<] operator[?] oper...
public static void deleteChildren(ZooKeeper zookeeper, String path, boolean deleteSelf) throws InterruptedException, KeeperException { PathUtils.validatePath(path); List<String> children = zookeeper.getChildren(path, null); for ( String child : children ) { String fullPa...
class class_name[name] begin[{] method[deleteChildren, return_type[void], modifier[public static], parameter[zookeeper, path, deleteSelf]] begin[{] call[PathUtils.validatePath, parameter[member[.path]]] local_variable[type[List], children] ForStatement(body=BlockStatement(label=...
Keyword[public] Keyword[static] Keyword[void] identifier[deleteChildren] operator[SEP] identifier[ZooKeeper] identifier[zookeeper] , identifier[String] identifier[path] , Keyword[boolean] identifier[deleteSelf] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[KeeperException] { iden...
public Router get(@NotNull final String pattern, @NotNull final IMiddleware... handlers) { addPattern("GET", pattern, handlers, getBindings); return this; }
class class_name[name] begin[{] method[get, return_type[type[Router]], modifier[public], parameter[pattern, handlers]] begin[{] call[.addPattern, parameter[literal["GET"], member[.pattern], member[.handlers], member[.getBindings]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[Router] identifier[get] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[pattern] , annotation[@] identifier[NotNull] Keyword[final] identifier[IMiddleware] operator[...] identifier[handlers] operator[SEP] { identifier[addPattern] operator[S...
public static String encodeDateTime(DateTimeField field) { Date date = ((DateTimeField)field).getDateTime(); if (date == null) return null; if (field instanceof TimeField) return timeFormat.format(date); else if (field instanceof DateField) return dateFormat.format(date); else // i...
class class_name[name] begin[{] method[encodeDateTime, return_type[type[String]], modifier[public static], parameter[field]] begin[{] local_variable[type[Date], date] if[binary_operation[member[.date], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[String] identifier[encodeDateTime] operator[SEP] identifier[DateTimeField] identifier[field] operator[SEP] { identifier[Date] identifier[date] operator[=] operator[SEP] operator[SEP] identifier[DateTimeField] operator[SEP] identifier[field] operator[SEP] operator[SEP] i...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case FUNC_ARGS: return is_set_func_args(); case REQUEST_ID: return is_set_request_id(); } throw new IllegalStateException(); }
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
public synchronized void cancel() { // If the packet collector has already been cancelled, do nothing. if (cancelled) { return; } cancelled = true; connection.removeStanzaCollector(this); notifyAll(); if (collectorToReset != null) { colle...
class class_name[name] begin[{] method[cancel, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[member[.cancelled]] begin[{] return[None] else begin[{] None end[}] assign[member[.cancelled], literal[true]] cal...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[cancel] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[cancelled] operator[SEP] { Keyword[return] operator[SEP] } identifier[cancelled] operator[=] literal[boolean] operator[SEP] identifier[connection] ope...
public EngineDefaults withCacheNodeTypeSpecificParameters(CacheNodeTypeSpecificParameter... cacheNodeTypeSpecificParameters) { if (this.cacheNodeTypeSpecificParameters == null) { setCacheNodeTypeSpecificParameters(new com.amazonaws.internal.SdkInternalList<CacheNodeTypeSpecificParameter>( ...
class class_name[name] begin[{] method[withCacheNodeTypeSpecificParameters, return_type[type[EngineDefaults]], modifier[public], parameter[cacheNodeTypeSpecificParameters]] begin[{] if[binary_operation[THIS[member[None.cacheNodeTypeSpecificParameters]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[EngineDefaults] identifier[withCacheNodeTypeSpecificParameters] operator[SEP] identifier[CacheNodeTypeSpecificParameter] operator[...] identifier[cacheNodeTypeSpecificParameters] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[cacheNodeTypeSpecificParam...
public FsSettings readAsYaml(String jobname) throws IOException { return FsSettingsParser.fromYaml(readFile(jobname, SETTINGS_YAML)); }
class class_name[name] begin[{] method[readAsYaml, return_type[type[FsSettings]], modifier[public], parameter[jobname]] begin[{] return[call[FsSettingsParser.fromYaml, parameter[call[.readFile, parameter[member[.jobname], member[.SETTINGS_YAML]]]]]] end[}] END[}]
Keyword[public] identifier[FsSettings] identifier[readAsYaml] operator[SEP] identifier[String] identifier[jobname] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[FsSettingsParser] operator[SEP] identifier[fromYaml] operator[SEP] identifier[readFile] operator[SEP] identifier[jo...
private Duration getRangeDurationWholeDay(ProjectCalendar projectCalendar, TimescaleUnits rangeUnits, DateRange range, List<TimephasedWork> assignments, int startIndex) { // option 1: // Our date range starts before the start of the TRA at the start index. // We can guarantee that we don't need to ...
class class_name[name] begin[{] method[getRangeDurationWholeDay, return_type[type[Duration]], modifier[private], parameter[projectCalendar, rangeUnits, range, assignments, startIndex]] begin[{] local_variable[type[int], totalDays] local_variable[type[double], totalWork] local_variable[t...
Keyword[private] identifier[Duration] identifier[getRangeDurationWholeDay] operator[SEP] identifier[ProjectCalendar] identifier[projectCalendar] , identifier[TimescaleUnits] identifier[rangeUnits] , identifier[DateRange] identifier[range] , identifier[List] operator[<] identifier[TimephasedWork] operator[>] identifi...
protected void performDismiss(@NonNull final View view, final int position) { mDismissedViews.add(view); mDismissedPositions.add(position); ValueAnimator animator = ValueAnimator.ofInt(view.getHeight(), 1).setDuration(mDismissAnimationTime); animator.addUpdateListener(new DismissAnimato...
class class_name[name] begin[{] method[performDismiss, return_type[void], modifier[protected], parameter[view, position]] begin[{] call[mDismissedViews.add, parameter[member[.view]]] call[mDismissedPositions.add, parameter[member[.position]]] local_variable[type[ValueAni...
Keyword[protected] Keyword[void] identifier[performDismiss] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[View] identifier[view] , Keyword[final] Keyword[int] identifier[position] operator[SEP] { identifier[mDismissedViews] operator[SEP] identifier[add] operator[SEP] identifier[view]...
public Observable<DeletedKeyBundle> getDeletedKeyAsync(String vaultBaseUrl, String keyName) { return getDeletedKeyWithServiceResponseAsync(vaultBaseUrl, keyName).map(new Func1<ServiceResponse<DeletedKeyBundle>, DeletedKeyBundle>() { @Override public DeletedKeyBundle call(ServiceResponse<...
class class_name[name] begin[{] method[getDeletedKeyAsync, return_type[type[Observable]], modifier[public], parameter[vaultBaseUrl, keyName]] begin[{] return[call[.getDeletedKeyWithServiceResponseAsync, parameter[member[.vaultBaseUrl], member[.keyName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[DeletedKeyBundle] operator[>] identifier[getDeletedKeyAsync] operator[SEP] identifier[String] identifier[vaultBaseUrl] , identifier[String] identifier[keyName] operator[SEP] { Keyword[return] identifier[getDeletedKeyWithServiceResponseAsync] operator...
public Map<String, String> results(OutputVariable outputVariable, TimeUnit timeUnit, boolean includeTimes) { if (engine == null) { throw new RuntimeException("[benchmark error] engine not set for benchmark"); } double[] runtimes = new double[times.size()]; for (int i = 0; i ...
class class_name[name] begin[{] method[results, return_type[type[Map]], modifier[public], parameter[outputVariable, timeUnit, includeTimes]] begin[{] if[binary_operation[member[.engine], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_o...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[results] operator[SEP] identifier[OutputVariable] identifier[outputVariable] , identifier[TimeUnit] identifier[timeUnit] , Keyword[boolean] identifier[includeTimes] operator[SEP] { Keyword[if] operator[S...
public Record queryForRecord(String sql, Map<String, Object> params) { return queryForRecord(sql, null, params); }
class class_name[name] begin[{] method[queryForRecord, return_type[type[Record]], modifier[public], parameter[sql, params]] begin[{] return[call[.queryForRecord, parameter[member[.sql], literal[null], member[.params]]]] end[}] END[}]
Keyword[public] identifier[Record] identifier[queryForRecord] operator[SEP] identifier[String] identifier[sql] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[params] operator[SEP] { Keyword[return] identifier[queryForRecord] operator[SEP] identifier[sql] , Other[n...
public void updateSQLXML(final String columnLabel, final java.sql.SQLXML xmlObject) throws SQLException { throw SQLExceptionMapper.getFeatureNotSupportedException("SQLXML not supported"); }
class class_name[name] begin[{] method[updateSQLXML, return_type[void], modifier[public], parameter[columnLabel, xmlObject]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="SQLXML not supported")], me...
Keyword[public] Keyword[void] identifier[updateSQLXML] operator[SEP] Keyword[final] identifier[String] identifier[columnLabel] , Keyword[final] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[SQLXML] identifier[xmlObject] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[t...
public void log(Marker marker, String fqcn, int level, String message, Object[] argArray, Throwable t) { setMDCMarker( marker ); switch(level) { case(TRACE_INT): if( m_delegate.isTraceEnabled() ) { FormattingTuple tuple = MessageFormat...
class class_name[name] begin[{] method[log, return_type[void], modifier[public], parameter[marker, fqcn, level, message, argArray, t]] begin[{] call[.setMDCMarker, parameter[member[.marker]]] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=TRACE_INT, postfix_oper...
Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[Marker] identifier[marker] , identifier[String] identifier[fqcn] , Keyword[int] identifier[level] , identifier[String] identifier[message] , identifier[Object] operator[SEP] operator[SEP] identifier[argArray] , identifier[Throwable] identifier[...
public static BadRequest of(Throwable cause) { if (_localizedErrorMsg()) { return of(cause, defaultMessage(BAD_REQUEST)); } else { touchPayload().cause(cause); return _INSTANCE; } }
class class_name[name] begin[{] method[of, return_type[type[BadRequest]], modifier[public static], parameter[cause]] begin[{] if[call[._localizedErrorMsg, parameter[]]] begin[{] return[call[.of, parameter[member[.cause], call[.defaultMessage, parameter[member[.BAD_REQUEST]]]]]] ...
Keyword[public] Keyword[static] identifier[BadRequest] identifier[of] operator[SEP] identifier[Throwable] identifier[cause] operator[SEP] { Keyword[if] operator[SEP] identifier[_localizedErrorMsg] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[of] operator[SEP] identifier[cause...
public static NameNotFoundException nameNotFoundException(final String name, final Name contextName) { return NamingLogger.ROOT_LOGGER.nameNotFoundInContext(name, contextName); }
class class_name[name] begin[{] method[nameNotFoundException, return_type[type[NameNotFoundException]], modifier[public static], parameter[name, contextName]] begin[{] return[call[NamingLogger.ROOT_LOGGER.nameNotFoundInContext, parameter[member[.name], member[.contextName]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[NameNotFoundException] identifier[nameNotFoundException] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Name] identifier[contextName] operator[SEP] { Keyword[return] identifier[NamingLogger] operator[SEP] identifier[ROOT_LO...
public List<Tag> list() { String url = WxEndpoint.get("url.tag.list"); String response = wxClient.get(url); TagList tagList = JsonMapper.defaultMapper().fromJson(response, TagList.class); return tagList.getTags(); }
class class_name[name] begin[{] method[list, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[String], url] local_variable[type[String], response] local_variable[type[TagList], tagList] return[call[tagList.getTags, parameter[]]] end[}] END...
Keyword[public] identifier[List] operator[<] identifier[Tag] operator[>] identifier[list] operator[SEP] operator[SEP] { identifier[String] identifier[url] operator[=] identifier[WxEndpoint] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[respo...
@Override public ConsumerManager chooseConsumerManager(SIBUuid12 gatheringTargetUuid, SIBUuid8 fixedMEUuid, HashSet<SIBUuid8> scopedMEs) throws SIResourceException { if (TraceComponent.i...
class class_name[name] begin[{] method[chooseConsumerManager, return_type[type[ConsumerManager]], modifier[public], parameter[gatheringTargetUuid, fixedMEUuid, scopedMEs]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]...
annotation[@] identifier[Override] Keyword[public] identifier[ConsumerManager] identifier[chooseConsumerManager] operator[SEP] identifier[SIBUuid12] identifier[gatheringTargetUuid] , identifier[SIBUuid8] identifier[fixedMEUuid] , identifier[HashSet] operator[<] identifier[SIBUuid8] operator[>] identifier[scopedMEs] o...
public StreamingJobInner createOrReplace(String resourceGroupName, String jobName, StreamingJobInner streamingJob) { return createOrReplaceWithServiceResponseAsync(resourceGroupName, jobName, streamingJob).toBlocking().last().body(); }
class class_name[name] begin[{] method[createOrReplace, return_type[type[StreamingJobInner]], modifier[public], parameter[resourceGroupName, jobName, streamingJob]] begin[{] return[call[.createOrReplaceWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.jobName], member[.streamingJo...
Keyword[public] identifier[StreamingJobInner] identifier[createOrReplace] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[jobName] , identifier[StreamingJobInner] identifier[streamingJob] operator[SEP] { Keyword[return] identifier[createOrReplaceWithServiceRespons...
public static void depositSecretKey(XMPPConnection connection, SecretkeyElement element) throws InterruptedException, PubSubException.NotALeafNodeException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException, SmackException.Feat...
class class_name[name] begin[{] method[depositSecretKey, return_type[void], modifier[public static], parameter[connection, element]] begin[{] if[call[OpenPgpManager.serverSupportsSecretKeyBackups, parameter[member[.connection]]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[public] Keyword[static] Keyword[void] identifier[depositSecretKey] operator[SEP] identifier[XMPPConnection] identifier[connection] , identifier[SecretkeyElement] identifier[element] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[PubSubException] operator[SEP] identifier[NotALeafNo...
public boolean hasNamedPolicy(String ptype, List<String> params) { return model.hasPolicy("p", ptype, params); }
class class_name[name] begin[{] method[hasNamedPolicy, return_type[type[boolean]], modifier[public], parameter[ptype, params]] begin[{] return[call[model.hasPolicy, parameter[literal["p"], member[.ptype], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[hasNamedPolicy] operator[SEP] identifier[String] identifier[ptype] , identifier[List] operator[<] identifier[String] operator[>] identifier[params] operator[SEP] { Keyword[return] identifier[model] operator[SEP] identifier[hasPolicy] operator[SEP] literal[String] , i...
public String[] getInputsForFunction(DifferentialFunction function) { if (!incomingArgsReverse.containsKey(function.getOwnName())) throw new ND4JIllegalStateException("Illegal function instance id found " + function.getOwnName()); return incomingArgsReverse.get(function.getOwnName()); }
class class_name[name] begin[{] method[getInputsForFunction, return_type[type[String]], modifier[public], parameter[function]] begin[{] if[call[incomingArgsReverse.containsKey, parameter[call[function.getOwnName, parameter[]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryO...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getInputsForFunction] operator[SEP] identifier[DifferentialFunction] identifier[function] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[incomingArgsReverse] operator[SEP] identifier[containsKey] operator[SEP] identifier[...
@Override public boolean canRetry(RetryContext context) { Throwable t = context.getLastThrowable(); return (t == null || retryForException(t)) && context.getRetryCount() < this.maxAttempts; }
class class_name[name] begin[{] method[canRetry, return_type[type[boolean]], modifier[public], parameter[context]] begin[{] local_variable[type[Throwable], t] return[binary_operation[binary_operation[binary_operation[member[.t], ==, literal[null]], ||, call[.retryForException, parameter[member[...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[canRetry] operator[SEP] identifier[RetryContext] identifier[context] operator[SEP] { identifier[Throwable] identifier[t] operator[=] identifier[context] operator[SEP] identifier[getLastThrowable] operator[SEP] operator[SEP] operator[S...
public CreateUserPoolClientRequest withExplicitAuthFlows(String... explicitAuthFlows) { if (this.explicitAuthFlows == null) { setExplicitAuthFlows(new java.util.ArrayList<String>(explicitAuthFlows.length)); } for (String ele : explicitAuthFlows) { this.explicitAuthFlows.a...
class class_name[name] begin[{] method[withExplicitAuthFlows, return_type[type[CreateUserPoolClientRequest]], modifier[public], parameter[explicitAuthFlows]] begin[{] if[binary_operation[THIS[member[None.explicitAuthFlows]], ==, literal[null]]] begin[{] call[.setExplicit...
Keyword[public] identifier[CreateUserPoolClientRequest] identifier[withExplicitAuthFlows] operator[SEP] identifier[String] operator[...] identifier[explicitAuthFlows] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[explicitAuthFlows] operator[==] Other[null] operator[SEP] { ...
public static CommerceDiscountUsageEntry[] findByGroupId_PrevAndNext( long commerceDiscountUsageEntryId, long groupId, OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws com.liferay.commerce.discount.exception.NoSuchDiscountUsageEntryException { return getPersistence() .findByGroupId...
class class_name[name] begin[{] method[findByGroupId_PrevAndNext, return_type[type[CommerceDiscountUsageEntry]], modifier[public static], parameter[commerceDiscountUsageEntryId, groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceDiscountUsageEntry] operator[SEP] operator[SEP] identifier[findByGroupId_PrevAndNext] operator[SEP] Keyword[long] identifier[commerceDiscountUsageEntryId] , Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CommerceDiscountUsage...
void defaultGBMs() { Algo algo = Algo.GBM; WorkAllocations.Work work = workAllocations.getAllocation(algo, JobType.ModelBuild); if (work == null) return; Job gbmJob; GBMParameters gbmParameters = new GBMParameters(); setCommonModelBuilderParams(gbmParameters); gbmParameters._score_tree_int...
class class_name[name] begin[{] method[defaultGBMs, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[Algo], algo] local_variable[type[WorkAllocations], work] if[binary_operation[member[.work], ==, literal[null]]] begin[{] return[None] else ...
Keyword[void] identifier[defaultGBMs] operator[SEP] operator[SEP] { identifier[Algo] identifier[algo] operator[=] identifier[Algo] operator[SEP] identifier[GBM] operator[SEP] identifier[WorkAllocations] operator[SEP] identifier[Work] identifier[work] operator[=] identifier[workAllocations] operator[SEP] identifi...
public void addTaskStates(Collection<TaskState> taskStates) { for (TaskState taskState : taskStates) { this.taskStates.put(taskState.getTaskId(), taskState); } }
class class_name[name] begin[{] method[addTaskStates, return_type[void], modifier[public], parameter[taskStates]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(m...
Keyword[public] Keyword[void] identifier[addTaskStates] operator[SEP] identifier[Collection] operator[<] identifier[TaskState] operator[>] identifier[taskStates] operator[SEP] { Keyword[for] operator[SEP] identifier[TaskState] identifier[taskState] operator[:] identifier[taskStates] operator[SEP] { K...
@Override public Object getAttribute(String name) { if (isInvalid()) { throw new IllegalStateException("Session is invalid"); } return this.attributes.get(name); }
class class_name[name] begin[{] method[getAttribute, return_type[type[Object]], modifier[public], parameter[name]] begin[{] if[call[.isInvalid, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None,...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getAttribute] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[isInvalid] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalSta...
public Observable<Page<SiteInner>> suspendNextAsync(final String nextPageLink) { return suspendNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<SiteInner>>, Page<SiteInner>>() { @Override public Page<SiteInner> call(ServiceResponse<Page<S...
class class_name[name] begin[{] method[suspendNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.suspendNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[SiteInner] operator[>] operator[>] identifier[suspendNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[suspendNextWithServiceResponseAsync] opera...
public OvhTask serviceName_datacenter_POST(String serviceName, String commercialRangeName, String vrackName) throws IOException { String qPath = "/dedicatedCloud/{serviceName}/datacenter"; StringBuilder sb = path(qPath, serviceName); HashMap<String, Object>o = new HashMap<String, Object>(); addBody(o, "commerci...
class class_name[name] begin[{] method[serviceName_datacenter_POST, return_type[type[OvhTask]], modifier[public], parameter[serviceName, commercialRangeName, vrackName]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[HashMap], o]...
Keyword[public] identifier[OvhTask] identifier[serviceName_datacenter_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[commercialRangeName] , identifier[String] identifier[vrackName] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identif...
public static LongsColumn create(ColumnarLongs column, ImmutableBitmap nullValueBitmap) { if (nullValueBitmap.isEmpty()) { return new LongsColumn(column); } else { return new LongsColumnWithNulls(column, nullValueBitmap); } }
class class_name[name] begin[{] method[create, return_type[type[LongsColumn]], modifier[public static], parameter[column, nullValueBitmap]] begin[{] if[call[nullValueBitmap.isEmpty, parameter[]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=column, postfix_operator...
Keyword[public] Keyword[static] identifier[LongsColumn] identifier[create] operator[SEP] identifier[ColumnarLongs] identifier[column] , identifier[ImmutableBitmap] identifier[nullValueBitmap] operator[SEP] { Keyword[if] operator[SEP] identifier[nullValueBitmap] operator[SEP] identifier[isEmpty] operator[SEP] op...
public static PropertyValuesHolder ofKeyframe(String propertyName, Keyframe... values) { KeyframeSet keyframeSet = KeyframeSet.ofKeyframe(values); if (keyframeSet instanceof IntKeyframeSet) { return new IntPropertyValuesHolder(propertyName, (IntKeyframeSet) keyframeSet); } else if (k...
class class_name[name] begin[{] method[ofKeyframe, return_type[type[PropertyValuesHolder]], modifier[public static], parameter[propertyName, values]] begin[{] local_variable[type[KeyframeSet], keyframeSet] if[binary_operation[member[.keyframeSet], instanceof, type[IntKeyframeSet]]] begi...
Keyword[public] Keyword[static] identifier[PropertyValuesHolder] identifier[ofKeyframe] operator[SEP] identifier[String] identifier[propertyName] , identifier[Keyframe] operator[...] identifier[values] operator[SEP] { identifier[KeyframeSet] identifier[keyframeSet] operator[=] identifier[KeyframeSet] operator[S...
public void setPickerDate(JsDate date, Element picker) { try { $(picker).pickadate("picker").set("select", date, () -> { DOM.createFieldSet().setPropertyObject("muted", true); }); } catch (Exception e) { e.printStackTrace(); } }
class class_name[name] begin[{] method[setPickerDate, return_type[void], modifier[public], parameter[date, picker]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=picker, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[void] identifier[setPickerDate] operator[SEP] identifier[JsDate] identifier[date] , identifier[Element] identifier[picker] operator[SEP] { Keyword[try] { identifier[$] operator[SEP] identifier[picker] operator[SEP] operator[SEP] identifier[pickadate] operator[SEP] literal[Stri...
public void sendSerialMessage(byte[] value) { Buffer buffer = new Buffer(); buffer.write(value); sendMessage(BeanMessageID.SERIAL_DATA, buffer); }
class class_name[name] begin[{] method[sendSerialMessage, return_type[void], modifier[public], parameter[value]] begin[{] local_variable[type[Buffer], buffer] call[buffer.write, parameter[member[.value]]] call[.sendMessage, parameter[member[BeanMessageID.SERIAL_DATA], me...
Keyword[public] Keyword[void] identifier[sendSerialMessage] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] { identifier[Buffer] identifier[buffer] operator[=] Keyword[new] identifier[Buffer] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identi...
public void setNewSpaceProperties(String spaceId, Map<String, String> spaceProperties, Map<String, AclType> spaceACLs) { // Add ACLs to the properties list spaceProperties.putAll(packACLs(spaceACLs)); boolean success = ...
class class_name[name] begin[{] method[setNewSpaceProperties, return_type[void], modifier[public], parameter[spaceId, spaceProperties, spaceACLs]] begin[{] call[spaceProperties.putAll, parameter[call[.packACLs, parameter[member[.spaceACLs]]]]] local_variable[type[boolean], success] ...
Keyword[public] Keyword[void] identifier[setNewSpaceProperties] operator[SEP] identifier[String] identifier[spaceId] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[spaceProperties] , identifier[Map] operator[<] identifier[String] , identifier[AclType] operator[>] identi...
public void indexDocument(String indexName, String mappingName, String id, XContentBuilder document) throws Exception { client.prepareIndex(indexName, mappingName, id).setSource(document).get(); }
class class_name[name] begin[{] method[indexDocument, return_type[void], modifier[public], parameter[indexName, mappingName, id, document]] begin[{] call[client.prepareIndex, parameter[member[.indexName], member[.mappingName], member[.id]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[indexDocument] operator[SEP] identifier[String] identifier[indexName] , identifier[String] identifier[mappingName] , identifier[String] identifier[id] , identifier[XContentBuilder] identifier[document] operator[SEP] Keyword[throws] identifier[Exception] { identifier[cl...
@NotNull public BlockscoreErrorType getErrorType() { if (type == null) { return BlockscoreErrorType.UNKNOWN; } else { return BlockscoreErrorType.toEnum(type); } }
class class_name[name] begin[{] method[getErrorType, return_type[type[BlockscoreErrorType]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.type], ==, literal[null]]] begin[{] return[member[BlockscoreErrorType.UNKNOWN]] else begin[{] return[c...
annotation[@] identifier[NotNull] Keyword[public] identifier[BlockscoreErrorType] identifier[getErrorType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[BlockscoreErrorType] operator[SEP] identifier[UNKNOWN]...
public static void generateLogForContentValues(SQLiteModelMethod method, MethodSpec.Builder methodBuilder) { methodBuilder.addCode("\n// log for content values -- BEGIN\n"); methodBuilder.addStatement("$T<String, Object, $T> _contentValue", Triple.class, KriptonContentValues.ParamType.class); methodBuilder.begin...
class class_name[name] begin[{] method[generateLogForContentValues, return_type[void], modifier[public static], parameter[method, methodBuilder]] begin[{] call[methodBuilder.addCode, parameter[literal["\n// log for content values -- BEGIN\n"]]] call[methodBuilder.addStatement, p...
Keyword[public] Keyword[static] Keyword[void] identifier[generateLogForContentValues] operator[SEP] identifier[SQLiteModelMethod] identifier[method] , identifier[MethodSpec] operator[SEP] identifier[Builder] identifier[methodBuilder] operator[SEP] { identifier[methodBuilder] operator[SEP] identifier[addCode] op...
@POST @Path("/{gavc}" + ServerAPI.GET_DOWNLOAD_URL) public Response updateDownloadUrl(@Auth final DbCredential credential, @PathParam("gavc") final String gavc, @QueryParam(ServerAPI.URL_PARAM) final String downLoadUrl){ if(!credential.getRoles().contains(AvailableRoles.DATA_UPDATER)){ throw...
class class_name[name] begin[{] method[updateDownloadUrl, return_type[type[Response]], modifier[public], parameter[credential, gavc, downLoadUrl]] begin[{] if[call[credential.getRoles, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(argument...
annotation[@] identifier[POST] annotation[@] identifier[Path] operator[SEP] literal[String] operator[+] identifier[ServerAPI] operator[SEP] identifier[GET_DOWNLOAD_URL] operator[SEP] Keyword[public] identifier[Response] identifier[updateDownloadUrl] operator[SEP] annotation[@] identifier[Auth] Keyword[final] identifier...
public SparseDirectedEdgeSet copy(IntSet vertices) { SparseDirectedEdgeSet copy = new SparseDirectedEdgeSet(rootVertex); if (vertices.size() < inEdges.size() && vertices.size() < outEdges.size()) { IntIterator iter = vertices.iterator(); while (iter...
class class_name[name] begin[{] method[copy, return_type[type[SparseDirectedEdgeSet]], modifier[public], parameter[vertices]] begin[{] local_variable[type[SparseDirectedEdgeSet], copy] if[binary_operation[binary_operation[call[vertices.size, parameter[]], <, call[inEdges.size, parameter...
Keyword[public] identifier[SparseDirectedEdgeSet] identifier[copy] operator[SEP] identifier[IntSet] identifier[vertices] operator[SEP] { identifier[SparseDirectedEdgeSet] identifier[copy] operator[=] Keyword[new] identifier[SparseDirectedEdgeSet] operator[SEP] identifier[rootVertex] operator[SEP] operator[SEP] K...
public List<FeatureDao> getFeatureDaosForTileTable(String tileTable) { List<FeatureDao> featureDaos = new ArrayList<FeatureDao>(); List<String> featureTables = getFeatureTablesForTileTable(tileTable); for (String featureTable : featureTables) { if (geoPackage.isFeatureTable(feature...
class class_name[name] begin[{] method[getFeatureDaosForTileTable, return_type[type[List]], modifier[public], parameter[tileTable]] begin[{] local_variable[type[List], featureDaos] local_variable[type[List], featureTables] ForStatement(body=BlockStatement(label=None, statements=[IfState...
Keyword[public] identifier[List] operator[<] identifier[FeatureDao] operator[>] identifier[getFeatureDaosForTileTable] operator[SEP] identifier[String] identifier[tileTable] operator[SEP] { identifier[List] operator[<] identifier[FeatureDao] operator[>] identifier[featureDaos] operator[=] Keyword[new] identifier...
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/dd", name = "NameValuePairs", substitutionHeadNamespace = "http://www.tibco.com/xmlns/dd", substitutionHeadName = "DeploymentDescriptor") public JAXBElement<NameValuePairs> createNameValuePairs(NameValuePairs value) { return new JAXBElement<NameValuePa...
class class_name[name] begin[{] method[createNameValuePairs, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_NameValuePairs_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(pos...
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 static EightyPath toRealPath( Path path ) { if( !( path instanceof EightyPath ) ) { throw new IllegalArgumentException( path + " should be EightyPath" ); } EightyPath eightyPath = (EightyPath) path; if ( eightyPath.knownReal() ) { return eightyPath; ...
class class_name[name] begin[{] method[toRealPath, return_type[type[EightyPath]], modifier[public static], parameter[path]] begin[{] if[binary_operation[member[.path], instanceof, type[EightyPath]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=...
Keyword[public] Keyword[static] identifier[EightyPath] identifier[toRealPath] operator[SEP] identifier[Path] identifier[path] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[path] Keyword[instanceof] identifier[EightyPath] operator[SEP] operator[SEP] { Keyword[throw] Key...
public void setScale(float x, float y, float z) { getTransform().setScale(x, y, z); if (mTransformCache.setScale(x, y, z)) { onTransformChanged(); } }
class class_name[name] begin[{] method[setScale, return_type[void], modifier[public], parameter[x, y, z]] begin[{] call[.getTransform, parameter[]] if[call[mTransformCache.setScale, parameter[member[.x], member[.y], member[.z]]]] begin[{] call[.onTransfor...
Keyword[public] Keyword[void] identifier[setScale] operator[SEP] Keyword[float] identifier[x] , Keyword[float] identifier[y] , Keyword[float] identifier[z] operator[SEP] { identifier[getTransform] operator[SEP] operator[SEP] operator[SEP] identifier[setScale] operator[SEP] identifier[x] , identifier[y] , ide...
private String getDetails(Throwable error) { if (null == error) { return ""; } StringBuilder content = new StringBuilder(); content.append(error.getMessage()); processStackTrace(error.getStackTrace(), content); content.append(getDetails(error.getCause())); return content.toString(); }
class class_name[name] begin[{] method[getDetails, return_type[type[String]], modifier[private], parameter[error]] begin[{] if[binary_operation[literal[null], ==, member[.error]]] begin[{] return[literal[""]] else begin[{] None end[}] local_variable[type[Stri...
Keyword[private] identifier[String] identifier[getDetails] operator[SEP] identifier[Throwable] identifier[error] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[error] operator[SEP] { Keyword[return] literal[String] operator[SEP] } identifier[StringBuilder] ...
public com.squareup.okhttp.Call createSubscriptionAsync(SubscriptionInfo subscriptionInfo, final ApiCallback<SubscriptionEnvelope> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ...
class class_name[name] begin[{] method[createSubscriptionAsync, return_type[type[com]], modifier[public], parameter[subscriptionInfo, callback]] begin[{] local_variable[type[ProgressResponseBody], progressListener] local_variable[type[ProgressRequestBody], progressRequestListener] ...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[createSubscriptionAsync] operator[SEP] identifier[SubscriptionInfo] identifier[subscriptionInfo] , Keyword[final] identifier[ApiCallback] operator[<] identifier[SubscriptionEnve...
public List<PlanNode> findAllAtOrBelow( Traversal order, Type firstTypeToFind, Type... additionalTypesToFind ) { return findAllAtOrBelow(order, EnumSet.of(firstTypeToFind, additionalTypesToFind)); }
class class_name[name] begin[{] method[findAllAtOrBelow, return_type[type[List]], modifier[public], parameter[order, firstTypeToFind, additionalTypesToFind]] begin[{] return[call[.findAllAtOrBelow, parameter[member[.order], call[EnumSet.of, parameter[member[.firstTypeToFind], member[.additionalTypesToF...
Keyword[public] identifier[List] operator[<] identifier[PlanNode] operator[>] identifier[findAllAtOrBelow] operator[SEP] identifier[Traversal] identifier[order] , identifier[Type] identifier[firstTypeToFind] , identifier[Type] operator[...] identifier[additionalTypesToFind] operator[SEP] { Keyword[return] iden...
public static String addStaticQueryParamtersToRequest(final Request<?> request, final String uriResourcePath) { if (request == null || uriResourcePath == null) { return null; } String resourcePath = uriResourcePath; i...
class class_name[name] begin[{] method[addStaticQueryParamtersToRequest, return_type[type[String]], modifier[public static], parameter[request, uriResourcePath]] begin[{] if[binary_operation[binary_operation[member[.request], ==, literal[null]], ||, binary_operation[member[.uriResourcePath], ==...
Keyword[public] Keyword[static] identifier[String] identifier[addStaticQueryParamtersToRequest] operator[SEP] Keyword[final] identifier[Request] operator[<] operator[?] operator[>] identifier[request] , Keyword[final] identifier[String] identifier[uriResourcePath] operator[SEP] { Keyword[if] operator[SEP] ident...
public boolean matchesAny(String... seq) { for (String s : seq) { if (matches(s)) return true; } return false; }
class class_name[name] begin[{] method[matchesAny, return_type[type[boolean]], modifier[public], parameter[seq]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[boolean] identifier[matchesAny] operator[SEP] identifier[String] operator[...] identifier[seq] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[s] operator[:] identifier[seq] operator[SEP] { Keyword[if] operator[SEP] identifier[matches] operator[SEP] id...
public static int modulo(final long h0, final long h1, final int divisor) { final long d = divisor; final long modH0 = (h0 < 0L) ? addRule(mulRule(BIT62, 2L, d), (h0 & MAX_LONG), d) : h0 % d; final long modH1 = (h1 < 0L) ? addRule(mulRule(BIT62, 2L, d), (h1 & MAX_LONG), d) : h1 % d; final long modTop = ...
class class_name[name] begin[{] method[modulo, return_type[type[int]], modifier[public static], parameter[h0, h1, divisor]] begin[{] local_variable[type[long], d] local_variable[type[long], modH0] local_variable[type[long], modH1] local_variable[type[long], modTop] retur...
Keyword[public] Keyword[static] Keyword[int] identifier[modulo] operator[SEP] Keyword[final] Keyword[long] identifier[h0] , Keyword[final] Keyword[long] identifier[h1] , Keyword[final] Keyword[int] identifier[divisor] operator[SEP] { Keyword[final] Keyword[long] identifier[d] operator[=] identifier[divisor] op...
public Observable<ServiceResponse<List<LabelTextObject>>> examplesMethodWithServiceResponseAsync(UUID appId, String versionId, String modelId, ExamplesMethodOptionalParameter examplesMethodOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.c...
class class_name[name] begin[{] method[examplesMethodWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, modelId, examplesMethodOptionalParameter]] begin[{] if[binary_operation[THIS[member[None.client]call[None.endpoint, parameter[]]], ==, lite...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[LabelTextObject] operator[>] operator[>] operator[>] identifier[examplesMethodWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[ver...
private static ExecuteCallResults parseExecuteCallInternal( String statement, Map<String,Map<Integer, List<String>>> procedures ) throws SQLParser.Exception { Matcher matcher = ExecuteCallPreamble.matcher(statement); if ( ! matcher.lookingAt()) { return null; ...
class class_name[name] begin[{] method[parseExecuteCallInternal, return_type[type[ExecuteCallResults]], modifier[private static], parameter[statement, procedures]] begin[{] local_variable[type[Matcher], matcher] if[call[matcher.lookingAt, parameter[]]] begin[{] return[litera...
Keyword[private] Keyword[static] identifier[ExecuteCallResults] identifier[parseExecuteCallInternal] operator[SEP] identifier[String] identifier[statement] , identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[Integer] , identifier[List] operator[<] identifier[String] operator[>] ...
public void setObstacleAvoidanceParams(int idx, ObstacleAvoidanceParams params) { if (idx >= 0 && idx < DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS) { m_obstacleQueryParams[idx] = new ObstacleAvoidanceParams(params); } }
class class_name[name] begin[{] method[setObstacleAvoidanceParams, return_type[void], modifier[public], parameter[idx, params]] begin[{] if[binary_operation[binary_operation[member[.idx], >=, literal[0]], &&, binary_operation[member[.idx], <, member[.DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS]]]] begin[...
Keyword[public] Keyword[void] identifier[setObstacleAvoidanceParams] operator[SEP] Keyword[int] identifier[idx] , identifier[ObstacleAvoidanceParams] identifier[params] operator[SEP] { Keyword[if] operator[SEP] identifier[idx] operator[>=] Other[0] operator[&&] identifier[idx] operator[<] identifier[DT_CROWD_MA...
public SolrConfig getSolrConfig() { if (m_solrConfig == null) { try (FileInputStream fis = new FileInputStream(getSolrConfigFile())) { m_solrConfig = new SolrConfig( Paths.get(getHome(), DEFAULT_CONFIGSET_FOLDER), null, new...
class class_name[name] begin[{] method[getSolrConfig, return_type[type[SolrConfig]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_solrConfig], ==, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberRefere...
Keyword[public] identifier[SolrConfig] identifier[getSolrConfig] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_solrConfig] operator[==] Other[null] operator[SEP] { Keyword[try] operator[SEP] identifier[FileInputStream] identifier[fis] operator[=] Keyword[new] identifier[FileInpu...
private List<QueryAtomGroupImpl> findComponents(QueryAtomGroupImpl group) { List<QueryAtom> atoms = new LinkedList<>(); atoms.addAll(group.getAtoms()); List<QueryAtomGroupImpl> components = new LinkedList<>(); // if we have no atoms at all we simply return the same query as a single com...
class class_name[name] begin[{] method[findComponents, return_type[type[List]], modifier[private], parameter[group]] begin[{] local_variable[type[List], atoms] call[atoms.addAll, parameter[call[group.getAtoms, parameter[]]]] local_variable[type[List], components] ...
Keyword[private] identifier[List] operator[<] identifier[QueryAtomGroupImpl] operator[>] identifier[findComponents] operator[SEP] identifier[QueryAtomGroupImpl] identifier[group] operator[SEP] { identifier[List] operator[<] identifier[QueryAtom] operator[>] identifier[atoms] operator[=] Keyword[new] identifier[L...
DataDescriptor makeAssociatedField(int bitWidth) { DataDescriptor assDD = new DataDescriptor(); assDD.name = name + "_associated_field"; assDD.units = ""; assDD.refVal = 0; assDD.scale = 0; assDD.bitWidth = bitWidth; assDD.type = 0; assDD.f = 0; assDD.x = 31; assDD.y ...
class class_name[name] begin[{] method[makeAssociatedField, return_type[type[DataDescriptor]], modifier[default], parameter[bitWidth]] begin[{] local_variable[type[DataDescriptor], assDD] assign[member[assDD.name], binary_operation[member[.name], +, literal["_associated_field"]]] ...
identifier[DataDescriptor] identifier[makeAssociatedField] operator[SEP] Keyword[int] identifier[bitWidth] operator[SEP] { identifier[DataDescriptor] identifier[assDD] operator[=] Keyword[new] identifier[DataDescriptor] operator[SEP] operator[SEP] operator[SEP] identifier[assDD] operator[SEP] identifier[name] op...
public static Authenticator buildAuthenticatorWithTruststore(final String keystorePath, final char[] keystorePassword, final List<String> keyids) { if (keystorePath != null) { final File file = new File(keystorePath); if (file.exists()) { try (final FileInputS...
class class_name[name] begin[{] method[buildAuthenticatorWithTruststore, return_type[type[Authenticator]], modifier[public static], parameter[keystorePath, keystorePassword, keyids]] begin[{] if[binary_operation[member[.keystorePath], !=, literal[null]]] begin[{] local_variable[type...
Keyword[public] Keyword[static] identifier[Authenticator] identifier[buildAuthenticatorWithTruststore] operator[SEP] Keyword[final] identifier[String] identifier[keystorePath] , Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[keystorePassword] , Keyword[final] identifier[List] operator[<] identifi...
public <T, K> T get(ColumnFamily<K, String> columnFamily, K id, Class<T> itemClass) throws Exception { Mapping<T> mapping = getMapping(itemClass); ColumnList<String> result = keyspace.prepareQuery(columnFamily) .getKey(id).execute().getResult(); return mapping.newInst...
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[columnFamily, id, itemClass]] begin[{] local_variable[type[Mapping], mapping] local_variable[type[ColumnList], result] return[call[mapping.newInstance, parameter[member[.result]]]] end[}] E...
Keyword[public] operator[<] identifier[T] , identifier[K] operator[>] identifier[T] identifier[get] operator[SEP] identifier[ColumnFamily] operator[<] identifier[K] , identifier[String] operator[>] identifier[columnFamily] , identifier[K] identifier[id] , identifier[Class] operator[<] identifier[T] operator[>] iden...
@Override public int getBondOrderSum() { int sum = 0; for (int i = 0; i < getBondCount(); i++) { IBond.Order order = getBond(i).getOrder(); if (order != null) { sum += order.numeric(); } } return sum; }
class class_name[name] begin[{] method[getBondOrderSum, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], sum] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[],...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[getBondOrderSum] operator[SEP] operator[SEP] { Keyword[int] identifier[sum] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[g...
private static void calculateAndPrintIndicators(String[] args, boolean normalize) throws FileNotFoundException { Front referenceFront = new ArrayFront(args[1]); Front front = new ArrayFront(args[2]); if (normalize) { FrontNormalizer frontNormalizer = new FrontNormalizer(referenceFront); r...
class class_name[name] begin[{] method[calculateAndPrintIndicators, return_type[void], modifier[private static], parameter[args, normalize]] begin[{] local_variable[type[Front], referenceFront] local_variable[type[Front], front] if[member[.normalize]] begin[{] local_...
Keyword[private] Keyword[static] Keyword[void] identifier[calculateAndPrintIndicators] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] , Keyword[boolean] identifier[normalize] operator[SEP] Keyword[throws] identifier[FileNotFoundException] { identifier[Front] identifier[referenceFr...
public final EObject ruleXOtherOperatorExpression() throws RecognitionException { EObject current = null; EObject this_XAdditiveExpression_0 = null; EObject lv_rightOperand_3_0 = null; enterRule(); try { // InternalXbaseWithAnnotations.g:1373:2: ( (this_XAdditi...
class class_name[name] begin[{] method[ruleXOtherOperatorExpression, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], this_XAdditiveExpression_0] local_variable[type[EObject], lv_rightOperand_3...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXOtherOperatorExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[this_XAdditiveExpression_0] opera...
protected void common_invalidate(Object key, boolean waitOnInvalidation, boolean checkPreInvalidationListener) { ValidateUtility.objectNotNull(key, "key"); cache.invalidateById(key, waitOnInvalidation, checkPreInvalidationListener); }
class class_name[name] begin[{] method[common_invalidate, return_type[void], modifier[protected], parameter[key, waitOnInvalidation, checkPreInvalidationListener]] begin[{] call[ValidateUtility.objectNotNull, parameter[member[.key], literal["key"]]] call[cache.invalidateById, pa...
Keyword[protected] Keyword[void] identifier[common_invalidate] operator[SEP] identifier[Object] identifier[key] , Keyword[boolean] identifier[waitOnInvalidation] , Keyword[boolean] identifier[checkPreInvalidationListener] operator[SEP] { identifier[ValidateUtility] operator[SEP] identifier[objectNotNull] opera...
@Override public boolean cancel(long taskId) throws Exception { StringBuilder update = new StringBuilder(87).append("UPDATE Task t SET t.STATES=") .append(TaskState.CANCELED.bit + TaskState.ENDED.bit) .append(",t.VERSION=t.VERSION+1 WHERE t.ID=:i AND t.STATES<...
class class_name[name] begin[{] method[cancel, return_type[type[boolean]], modifier[public], parameter[taskId]] begin[{] local_variable[type[StringBuilder], update] local_variable[type[boolean], trace] if[binary_operation[member[.trace], &&, call[tc.isEntryEnabled, parameter[]]]...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[cancel] operator[SEP] Keyword[long] identifier[taskId] operator[SEP] Keyword[throws] identifier[Exception] { identifier[StringBuilder] identifier[update] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[87] opera...
public ReplicatedServersConfig addNodeAddress(String... addresses) { for (String address : addresses) { nodeAddresses.add(URIBuilder.create(address)); } return this; }
class class_name[name] begin[{] method[addNodeAddress, return_type[type[ReplicatedServersConfig]], modifier[public], parameter[addresses]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberRefer...
Keyword[public] identifier[ReplicatedServersConfig] identifier[addNodeAddress] operator[SEP] identifier[String] operator[...] identifier[addresses] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[address] operator[:] identifier[addresses] operator[SEP] { identifier[nodeAddres...
public void importRtfDocumentIntoElement(Element elem, FileInputStream documentSource) throws IOException, DocumentException { importRtfDocumentIntoElement(elem, documentSource, null); }
class class_name[name] begin[{] method[importRtfDocumentIntoElement, return_type[void], modifier[public], parameter[elem, documentSource]] begin[{] call[.importRtfDocumentIntoElement, parameter[member[.elem], member[.documentSource], literal[null]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[importRtfDocumentIntoElement] operator[SEP] identifier[Element] identifier[elem] , identifier[FileInputStream] identifier[documentSource] operator[SEP] Keyword[throws] identifier[IOException] , identifier[DocumentException] { identifier[importRtfDocumentIntoElement] ope...
public static DeterministicKey deserializeB58(String base58, NetworkParameters params) { return deserializeB58(null, base58, params); }
class class_name[name] begin[{] method[deserializeB58, return_type[type[DeterministicKey]], modifier[public static], parameter[base58, params]] begin[{] return[call[.deserializeB58, parameter[literal[null], member[.base58], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DeterministicKey] identifier[deserializeB58] operator[SEP] identifier[String] identifier[base58] , identifier[NetworkParameters] identifier[params] operator[SEP] { Keyword[return] identifier[deserializeB58] operator[SEP] Other[null] , identifier[base58] , identifier[...
public static void wipePS(ByteBuffer _in, ByteBuffer out, List<ByteBuffer> spsList, List<ByteBuffer> ppsList) { ByteBuffer dup = _in.duplicate(); while (dup.hasRemaining()) { ByteBuffer buf = H264Utils.nextNALUnit(dup); if (buf == null) break; NALUni...
class class_name[name] begin[{] method[wipePS, return_type[void], modifier[public static], parameter[_in, out, spsList, ppsList]] begin[{] local_variable[type[ByteBuffer], dup] while[call[dup.hasRemaining, parameter[]]] begin[{] local_variable[type[ByteBuffer], buf] ...
Keyword[public] Keyword[static] Keyword[void] identifier[wipePS] operator[SEP] identifier[ByteBuffer] identifier[_in] , identifier[ByteBuffer] identifier[out] , identifier[List] operator[<] identifier[ByteBuffer] operator[>] identifier[spsList] , identifier[List] operator[<] identifier[ByteBuffer] operator[>] identi...
public static Integer getInteger(String name, Integer def, Level logLevel) { String v = getString(name); if (v != null) { try { return Integer.decode(v); } catch (NumberFormatException e) { // Ignore, fallback to default if ...
class class_name[name] begin[{] method[getInteger, return_type[type[Integer]], modifier[public static], parameter[name, def, logLevel]] begin[{] local_variable[type[String], v] if[binary_operation[member[.v], !=, literal[null]]] begin[{] TryStatement(block=[ReturnStatement(e...
Keyword[public] Keyword[static] identifier[Integer] identifier[getInteger] operator[SEP] identifier[String] identifier[name] , identifier[Integer] identifier[def] , identifier[Level] identifier[logLevel] operator[SEP] { identifier[String] identifier[v] operator[=] identifier[getString] operator[SEP] identifier...