code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public SplitDataProperties<T> splitsOrderedBy(String orderFields, Order[] orders) { if (orderFields == null || orders == null) { throw new InvalidProgramException("OrderFields or Orders may not be null."); } String[] orderKeysA = orderFields.split(";"); if (orderKeysA.length == 0) { throw new InvalidPro...
class class_name[name] begin[{] method[splitsOrderedBy, return_type[type[SplitDataProperties]], modifier[public], parameter[orderFields, orders]] begin[{] if[binary_operation[binary_operation[member[.orderFields], ==, literal[null]], ||, binary_operation[member[.orders], ==, literal[null]]]] be...
Keyword[public] identifier[SplitDataProperties] operator[<] identifier[T] operator[>] identifier[splitsOrderedBy] operator[SEP] identifier[String] identifier[orderFields] , identifier[Order] operator[SEP] operator[SEP] identifier[orders] operator[SEP] { Keyword[if] operator[SEP] identifier[orderFields] operator...
private void clearMemberData() { m_reader = null; m_file = null; m_eventManager = null; m_root = null; m_resourceMap = null; m_projectDir = null; m_viewDir = null; m_outlineCodeVarData = null; m_fontBases = null; m_taskSubProjects = null; }
class class_name[name] begin[{] method[clearMemberData, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.m_reader], literal[null]] assign[member[.m_file], literal[null]] assign[member[.m_eventManager], literal[null]] assi...
Keyword[private] Keyword[void] identifier[clearMemberData] operator[SEP] operator[SEP] { identifier[m_reader] operator[=] Other[null] operator[SEP] identifier[m_file] operator[=] Other[null] operator[SEP] identifier[m_eventManager] operator[=] Other[null] operator[SEP] identifier[m_root] operator[=] Other[null] ...
public Observable<Void> resendEmailAsync(String resourceGroupName, String certificateOrderName) { return resendEmailWithServiceResponseAsync(resourceGroupName, certificateOrderName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) ...
class class_name[name] begin[{] method[resendEmailAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, certificateOrderName]] begin[{] return[call[.resendEmailWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.certificateOrderName]]]] end[}] END[...
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[resendEmailAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[certificateOrderName] operator[SEP] { Keyword[return] identifier[resendEmailWithServiceResponseAsync] operat...
@Override public Object getObjectInstance(JavaColonNamespace namespace, String name) throws NamingException { // If we have a service reference we know it's safe to return a reference if (userTranSvcRef != null) { if (JavaColonNamespace.COMP.equals(namespace) && "UserTransaction".equals...
class class_name[name] begin[{] method[getObjectInstance, return_type[type[Object]], modifier[public], parameter[namespace, name]] begin[{] if[binary_operation[member[.userTranSvcRef], !=, literal[null]]] begin[{] if[binary_operation[call[JavaColonNamespace.COMP.equals, ...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getObjectInstance] operator[SEP] identifier[JavaColonNamespace] identifier[namespace] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[NamingException] { Keyword[if] operator[SEP] identifier[userTranSv...
public void add(String id, String url, long timestamp, boolean needsUpdate) { final NvdCveInfo item = new NvdCveInfo(); item.setNeedsUpdate(needsUpdate); //the others default to true, to make life easier later this should default to false. item.setId(id); item.setUrl(url); item.s...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[id, url, timestamp, needsUpdate]] begin[{] local_variable[type[NvdCveInfo], item] call[item.setNeedsUpdate, parameter[member[.needsUpdate]]] call[item.setId, parameter[member[.id]]...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[String] identifier[id] , identifier[String] identifier[url] , Keyword[long] identifier[timestamp] , Keyword[boolean] identifier[needsUpdate] operator[SEP] { Keyword[final] identifier[NvdCveInfo] identifier[item] operator[=] Keyword[new] id...
public Response<AccessTokenDetails> refreshAccessToken(final String refreshToken) throws FreesoundClientException { final RefreshOAuth2AccessTokenRequest tokenRequest = new RefreshOAuth2AccessTokenRequest(clientId, clientSecret, refreshToken); return executeQuery(tokenRequest); }
class class_name[name] begin[{] method[refreshAccessToken, return_type[type[Response]], modifier[public], parameter[refreshToken]] begin[{] local_variable[type[RefreshOAuth2AccessTokenRequest], tokenRequest] return[call[.executeQuery, parameter[member[.tokenRequest]]]] end[}] END[}]
Keyword[public] identifier[Response] operator[<] identifier[AccessTokenDetails] operator[>] identifier[refreshAccessToken] operator[SEP] Keyword[final] identifier[String] identifier[refreshToken] operator[SEP] Keyword[throws] identifier[FreesoundClientException] { Keyword[final] identifier[RefreshOAuth2AccessTok...
public Canvas draw (Drawable image, float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh) { image.draw(gc(), dx, dy, dw, dh, sx, sy, sw, sh); isDirty = true; return this; }
class class_name[name] begin[{] method[draw, return_type[type[Canvas]], modifier[public], parameter[image, dx, dy, dw, dh, sx, sy, sw, sh]] begin[{] call[image.draw, parameter[call[.gc, parameter[]], member[.dx], member[.dy], member[.dw], member[.dh], member[.sx], member[.sy], member[.sw], memb...
Keyword[public] identifier[Canvas] identifier[draw] operator[SEP] identifier[Drawable] identifier[image] , Keyword[float] identifier[dx] , Keyword[float] identifier[dy] , Keyword[float] identifier[dw] , Keyword[float] identifier[dh] , Keyword[float] identifier[sx] , Keyword[float] identifier[sy] , Keyword[float]...
@Override public void aggregate() { final IndexedInts keys = keySelector.getRow(); for (int i = 0; i < valueSelectors.length; i++) { values[i] = valueSelectors[i].getDouble(); } synchronized (this) { for (int i = 0, keysSize = keys.size(); i < keysSize; i++) { final String key = ...
class class_name[name] begin[{] method[aggregate, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[IndexedInts], keys] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=values, post...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[aggregate] operator[SEP] operator[SEP] { Keyword[final] identifier[IndexedInts] identifier[keys] operator[=] identifier[keySelector] operator[SEP] identifier[getRow] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Ke...
private void setUpTortoise() { Tortoise.show(); Tortoise.setSpeed(10); Tortoise.setPenColor(PenColors.Greens.Green); Tortoise.setPenWidth(4); // TODO: Generate a unique maze png and set as background for this maze instance //call tortoiseMaze.setupBackground }
class class_name[name] begin[{] method[setUpTortoise, return_type[void], modifier[private], parameter[]] begin[{] call[Tortoise.show, parameter[]] call[Tortoise.setSpeed, parameter[literal[10]]] call[Tortoise.setPenColor, parameter[member[PenColors.Greens.Green]]...
Keyword[private] Keyword[void] identifier[setUpTortoise] operator[SEP] operator[SEP] { identifier[Tortoise] operator[SEP] identifier[show] operator[SEP] operator[SEP] operator[SEP] identifier[Tortoise] operator[SEP] identifier[setSpeed] operator[SEP] Other[10] operator[SEP] operator[SEP] identifier[Tortoise] ope...
@Override public void addDiscriminator(Discriminator d, int weight) throws DiscriminationProcessException { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "addDiscriminator: " + d + " weight=" + weight); } if (status == STARTED) { Disc...
class class_name[name] begin[{] method[addDiscriminator, return_type[void], modifier[public], parameter[d, weight]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, para...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addDiscriminator] operator[SEP] identifier[Discriminator] identifier[d] , Keyword[int] identifier[weight] operator[SEP] Keyword[throws] identifier[DiscriminationProcessException] { Keyword[if] operator[SEP] identifier[TraceComponent] op...
public MessageBuilder stripMentions(Guild guild, Message.MentionType... types) { return this.stripMentions(guild.getJDA(), guild, types); }
class class_name[name] begin[{] method[stripMentions, return_type[type[MessageBuilder]], modifier[public], parameter[guild, types]] begin[{] return[THIS[call[None.stripMentions, parameter[call[guild.getJDA, parameter[]], member[.guild], member[.types]]]]] end[}] END[}]
Keyword[public] identifier[MessageBuilder] identifier[stripMentions] operator[SEP] identifier[Guild] identifier[guild] , identifier[Message] operator[SEP] identifier[MentionType] operator[...] identifier[types] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[stripMentions] operator[SEP] i...
public static TxConfig buildConfig(final Class<?> type, final Method method, final boolean useDefaults) { final Transactional transactional = findAnnotation(type, method, Transactional.class, useDefaults); TxConfig res = null; if (transactional != null) { final TxType txType = findAn...
class class_name[name] begin[{] method[buildConfig, return_type[type[TxConfig]], modifier[public static], parameter[type, method, useDefaults]] begin[{] local_variable[type[Transactional], transactional] local_variable[type[TxConfig], res] if[binary_operation[member[.transaction...
Keyword[public] Keyword[static] identifier[TxConfig] identifier[buildConfig] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , Keyword[final] identifier[Method] identifier[method] , Keyword[final] Keyword[boolean] identifier[useDefaults] operator[SEP] { Keywo...
@PUT @Path("/{repoName}/{repoPath:.*}/") public Response put(@PathParam("repoName") String repoName, @PathParam("repoPath") String repoPath, @HeaderParam(ExtHttpHeaders.LOCKTOKEN) String lockTokenHeader, @HeaderParam(ExtHttpHeaders.IF) String ifHeader, @HeaderParam(ExtHttpHeaders.FILE_NODETYPE) St...
class class_name[name] begin[{] method[put, return_type[type[Response]], modifier[public], parameter[repoName, repoPath, lockTokenHeader, ifHeader, fileNodeTypeHeader, contentNodeTypeHeader, mixinTypes, mediaType, userAgent, inputStream, uriInfo]] begin[{] if[call[log.isDebugEnabled, parameter[...
annotation[@] identifier[PUT] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Response] identifier[put] operator[SEP] annotation[@] identifier[PathParam] operator[SEP] literal[String] operator[SEP] identifier[String] identifier[repoName] , annotation[@] identifier[...
@Override public void engineStore(OutputStream outputStream, char[] chars) throws IOException, NoSuchAlgorithmException, CertificateException { for (SecurityObjectWrapper<?> object : this.aliasObjectMap.values()) { if (object instanceof Storable) { try { ((Storable) object).store(); } catch (Resou...
class class_name[name] begin[{] method[engineStore, return_type[void], modifier[public], parameter[outputStream, chars]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_operators=[], prefix_operators...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[engineStore] operator[SEP] identifier[OutputStream] identifier[outputStream] , Keyword[char] operator[SEP] operator[SEP] identifier[chars] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NoSuchAlgorithmException] , identif...
public int inputStreamToOutputStream(InputStream is, OutputStream os) throws IOException { byte buffer[] = new byte[1024 * 100]; // 100kb int len = -1; int total = 0; while ((len = is.read(buffer)) >= 0) { os.write(buffer, 0, len); total += len; } ...
class class_name[name] begin[{] method[inputStreamToOutputStream, return_type[type[int]], modifier[public], parameter[is, os]] begin[{] local_variable[type[byte], buffer] local_variable[type[int], len] local_variable[type[int], total] while[binary_operation[assign[member...
Keyword[public] Keyword[int] identifier[inputStreamToOutputStream] operator[SEP] identifier[InputStream] identifier[is] , identifier[OutputStream] identifier[os] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] identifier[buffer] operator[SEP] operator[SEP] operator[=] Keyword[new] Keyword[...
int getIndexOfChild(final WComponent childComponent) { ComponentModel model = getComponentModel(); List<WComponent> children = model.getChildren(); return children == null ? -1 : children.indexOf(childComponent); }
class class_name[name] begin[{] method[getIndexOfChild, return_type[type[int]], modifier[default], parameter[childComponent]] begin[{] local_variable[type[ComponentModel], model] local_variable[type[List], children] return[TernaryExpression(condition=BinaryOperation(operandl=MemberRefer...
Keyword[int] identifier[getIndexOfChild] operator[SEP] Keyword[final] identifier[WComponent] identifier[childComponent] operator[SEP] { identifier[ComponentModel] identifier[model] operator[=] identifier[getComponentModel] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[WCompone...
private void addDispatcherServlet() { ServletHolder servletHolder = new ServletHolder(new CitrusMessageDispatcherServlet(this)); servletHolder.setName(getServletName()); servletHolder.setInitParameter("contextConfigLocation", contextConfigLocation); servletHandler.addServlet(servletHold...
class class_name[name] begin[{] method[addDispatcherServlet, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[ServletHolder], servletHolder] call[servletHolder.setName, parameter[call[.getServletName, parameter[]]]] call[servletHolder.setIn...
Keyword[private] Keyword[void] identifier[addDispatcherServlet] operator[SEP] operator[SEP] { identifier[ServletHolder] identifier[servletHolder] operator[=] Keyword[new] identifier[ServletHolder] operator[SEP] Keyword[new] identifier[CitrusMessageDispatcherServlet] operator[SEP] Keyword[this] operator[SEP] oper...
public int attrValCompare(Object val, Attribute that, boolean ignoreCase) throws NamingException { if (that.size() != 1) { NamingEnumeration ne = that.getAll(); if (ne == null) { return -2; } while (ne.hasMore()) { Object o = ne.next(); i...
class class_name[name] begin[{] method[attrValCompare, return_type[type[int]], modifier[public], parameter[val, that, ignoreCase]] begin[{] if[binary_operation[call[that.size, parameter[]], !=, literal[1]]] begin[{] local_variable[type[NamingEnumeration], ne] ...
Keyword[public] Keyword[int] identifier[attrValCompare] operator[SEP] identifier[Object] identifier[val] , identifier[Attribute] identifier[that] , Keyword[boolean] identifier[ignoreCase] operator[SEP] Keyword[throws] identifier[NamingException] { Keyword[if] operator[SEP] identifier[that] operator[SEP] identi...
public int setData(Object state, boolean bDisplayOption, int iMoveMode) { // Must be overidden if (this.getNextConverter() != null) return this.getNextConverter().setData(state, bDisplayOption, iMoveMode); else return super.setData(state, bDisplayOption, iMoveMode); ...
class class_name[name] begin[{] method[setData, return_type[type[int]], modifier[public], parameter[state, bDisplayOption, iMoveMode]] begin[{] if[binary_operation[THIS[call[None.getNextConverter, parameter[]]], !=, literal[null]]] begin[{] return[THIS[call[None.getNextConverter, parameter[]]ca...
Keyword[public] Keyword[int] identifier[setData] operator[SEP] identifier[Object] identifier[state] , Keyword[boolean] identifier[bDisplayOption] , Keyword[int] identifier[iMoveMode] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getNextConverter] operator[SEP] operator[SEP] o...
@Override public Grib1ParamLevel getParamLevel(Grib1SectionProductDefinition pds) { int levelType = pds.getLevelType(); int pds11 = pds.getLevelValue1(); int pds12 = pds.getLevelValue2(); int pds1112 = pds11 << 8 | pds12; switch (levelType) { case 210: return new Grib1ParamLevel(thi...
class class_name[name] begin[{] method[getParamLevel, return_type[type[Grib1ParamLevel]], modifier[public], parameter[pds]] begin[{] local_variable[type[int], levelType] local_variable[type[int], pds11] local_variable[type[int], pds12] local_variable[type[int], pds1112] ...
annotation[@] identifier[Override] Keyword[public] identifier[Grib1ParamLevel] identifier[getParamLevel] operator[SEP] identifier[Grib1SectionProductDefinition] identifier[pds] operator[SEP] { Keyword[int] identifier[levelType] operator[=] identifier[pds] operator[SEP] identifier[getLevelType] operator[SEP] oper...
public static String escapeCssStringMinimal(final String text) { return escapeCssString(text, CssStringEscapeType.BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA, CssStringEscapeLevel.LEVEL_1_BASIC_ESCAPE_SET); }
class class_name[name] begin[{] method[escapeCssStringMinimal, return_type[type[String]], modifier[public static], parameter[text]] begin[{] return[call[.escapeCssString, parameter[member[.text], member[CssStringEscapeType.BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA], member[CssStringEscapeLevel.LEVEL_1_...
Keyword[public] Keyword[static] identifier[String] identifier[escapeCssStringMinimal] operator[SEP] Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] identifier[escapeCssString] operator[SEP] identifier[text] , identifier[CssStringEscapeType] operator[SEP] identifier[BACKSLASH_E...
public static void putDateList(Writer writer, List<Date> values) throws IOException { if (values == null) { writer.write("null"); } else { startArray(writer); for (int i = 0; i < values.size(); i++) { put(writer, values.get(i)); if (i != values.size() - 1) { addSeparator(writer); } } ...
class class_name[name] begin[{] method[putDateList, return_type[void], modifier[public static], parameter[writer, values]] begin[{] if[binary_operation[member[.values], ==, literal[null]]] begin[{] call[writer.write, parameter[literal["null"]]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[putDateList] operator[SEP] identifier[Writer] identifier[writer] , identifier[List] operator[<] identifier[Date] operator[>] identifier[values] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[values] operator[=...
static String fastReplace( String str, String target, String replacement ) { int targetLength = target.length(); if( targetLength == 0 ) { return str; } int idx2 = str.indexOf( target ); if( idx2 < 0 ) { return str; } StringBuilder buffer =...
class class_name[name] begin[{] method[fastReplace, return_type[type[String]], modifier[static], parameter[str, target, replacement]] begin[{] local_variable[type[int], targetLength] if[binary_operation[member[.targetLength], ==, literal[0]]] begin[{] return[member[.str]] ...
Keyword[static] identifier[String] identifier[fastReplace] operator[SEP] identifier[String] identifier[str] , identifier[String] identifier[target] , identifier[String] identifier[replacement] operator[SEP] { Keyword[int] identifier[targetLength] operator[=] identifier[target] operator[SEP] identifier[length] ...
public Observable<Void> enableAsync(String jobScheduleId) { return enableWithServiceResponseAsync(jobScheduleId).map(new Func1<ServiceResponseWithHeaders<Void, JobScheduleEnableHeaders>, Void>() { @Override public Void call(ServiceResponseWithHeaders<Void, JobScheduleEnableHeaders> respo...
class class_name[name] begin[{] method[enableAsync, return_type[type[Observable]], modifier[public], parameter[jobScheduleId]] begin[{] return[call[.enableWithServiceResponseAsync, parameter[member[.jobScheduleId]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[enableAsync] operator[SEP] identifier[String] identifier[jobScheduleId] operator[SEP] { Keyword[return] identifier[enableWithServiceResponseAsync] operator[SEP] identifier[jobScheduleId] operator[SEP] operator[SEP] identif...
private Stream<Type> scopeTypes(GraqlCompute query) { // Get all types if query.inTypes() is empty, else get all scoped types of each meta type. // Only include attributes and implicit "has-xxx" relations when user specifically asked for them. if (query.in().isEmpty()) { ImmutableSet...
class class_name[name] begin[{] method[scopeTypes, return_type[type[Stream]], modifier[private], parameter[query]] begin[{] if[call[query.in, parameter[]]] begin[{] local_variable[type[ImmutableSet], typeBuilder] if[call[.scopeIncludesAttributes, parameter[me...
Keyword[private] identifier[Stream] operator[<] identifier[Type] operator[>] identifier[scopeTypes] operator[SEP] identifier[GraqlCompute] identifier[query] operator[SEP] { Keyword[if] operator[SEP] identifier[query] operator[SEP] identifier[in] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] opera...
public SIMPIterator getMQLinkIterator() { LinkTypeFilter filter = new LinkTypeFilter(); filter.MQLINK = Boolean.TRUE; SIMPIterator linkItr = destinationManager.getLinkIndex().iterator(filter); return new ControllableIterator(linkItr); }
class class_name[name] begin[{] method[getMQLinkIterator, return_type[type[SIMPIterator]], modifier[public], parameter[]] begin[{] local_variable[type[LinkTypeFilter], filter] assign[member[filter.MQLINK], member[Boolean.TRUE]] local_variable[type[SIMPIterator], linkItr] ...
Keyword[public] identifier[SIMPIterator] identifier[getMQLinkIterator] operator[SEP] operator[SEP] { identifier[LinkTypeFilter] identifier[filter] operator[=] Keyword[new] identifier[LinkTypeFilter] operator[SEP] operator[SEP] operator[SEP] identifier[filter] operator[SEP] identifier[MQLINK] operator[=] identifi...
public static byte[] decodeBZRaw(byte[] data) { try { ByteArrayInputStream output = new ByteArrayInputStream(data); BZip2CompressorInputStream compresser = new BZip2CompressorInputStream(output); return IOUtils.toByteArray(compresser); } catch (IOException e) { throw new RuntimeException...
class class_name[name] begin[{] method[decodeBZRaw, return_type[type[byte]], modifier[public static], parameter[data]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=data, po...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decodeBZRaw] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[try] { identifier[ByteArrayInputStream] identifier[output] operator[=] Keyword[new] identifier[ByteArrayInp...
@Override public <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks) { // try to detect environment, if it's SE, we want to null TCCL, otherwise leave it as it is if (Container.getEnvironment().equals(Environments.SE)) { List<Callable<T>> wrapped = new Arr...
class class_name[name] begin[{] method[wrap, return_type[type[Collection]], modifier[public], parameter[tasks]] begin[{] if[call[Container.getEnvironment, parameter[]]] begin[{] local_variable[type[List], wrapped] ForStatement(body=BlockStatement(label=None, statements=[...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[Callable] operator[<] identifier[T] operator[>] operator[>] identifier[wrap] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] i...
private Set< File > getDexInputFiles() throws MojoExecutionException { Set< File > inputs = new HashSet< File >(); if ( obfuscatedJar != null && obfuscatedJar.exists() ) { // proguard has been run, use this jar getLog().debug( "Adding dex input (obfuscatedJar) : " + ...
class class_name[name] begin[{] method[getDexInputFiles, return_type[type[Set]], modifier[private], parameter[]] begin[{] local_variable[type[Set], inputs] if[binary_operation[binary_operation[member[.obfuscatedJar], !=, literal[null]], &&, call[obfuscatedJar.exists, parameter[]]]] begi...
Keyword[private] identifier[Set] operator[<] identifier[File] operator[>] identifier[getDexInputFiles] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { identifier[Set] operator[<] identifier[File] operator[>] identifier[inputs] operator[=] Keyword[new] identifier[HashSet] operator...
public static Timestamp create(long seconds, int nanos) { if (seconds < -MAX_SECONDS) { throw new IllegalArgumentException( "'seconds' is less than minimum (" + -MAX_SECONDS + "): " + seconds); } if (seconds > MAX_SECONDS) { throw new IllegalArgumentException( "'seconds' is g...
class class_name[name] begin[{] method[create, return_type[type[Timestamp]], modifier[public static], parameter[seconds, nanos]] begin[{] if[binary_operation[member[.seconds], <, member[.MAX_SECONDS]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operan...
Keyword[public] Keyword[static] identifier[Timestamp] identifier[create] operator[SEP] Keyword[long] identifier[seconds] , Keyword[int] identifier[nanos] operator[SEP] { Keyword[if] operator[SEP] identifier[seconds] operator[<] operator[-] identifier[MAX_SECONDS] operator[SEP] { Keyword[throw] Keywor...
@Override public Part getPart(String name) { return getWireMockParts().stream().filter(part -> name.equals(part.getName())) .findFirst().get(); }
class class_name[name] begin[{] method[getPart, return_type[type[Part]], modifier[public], parameter[name]] begin[{] return[call[.getWireMockParts, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Part] identifier[getPart] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[getWireMockParts] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[...
public void writeGridInPmeshFormat(String outPutFileName) throws IOException { BufferedWriter writer = new BufferedWriter(new FileWriter(outPutFileName + ".pmesh")); int numberOfGridPoints = grid.length * grid[0].length * grid[0][0].length; writer.write(numberOfGridPoints + "\n"); for (i...
class class_name[name] begin[{] method[writeGridInPmeshFormat, return_type[void], modifier[public], parameter[outPutFileName]] begin[{] local_variable[type[BufferedWriter], writer] local_variable[type[int], numberOfGridPoints] call[writer.write, parameter[binary_operation[member...
Keyword[public] Keyword[void] identifier[writeGridInPmeshFormat] operator[SEP] identifier[String] identifier[outPutFileName] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedWriter] identifier[writer] operator[=] Keyword[new] identifier[BufferedWriter] operator[SEP] Keyword[new] identif...
@Override public HijriCalendar transform(long utcDays) { long realDays = Math.addExact(utcDays, this.adjustment); int monthStart = search(realDays, this.firstOfMonth); if (monthStart >= 0) { if ( (monthStart < this.firstOfMonth.length - 1) || (th...
class class_name[name] begin[{] method[transform, return_type[type[HijriCalendar]], modifier[public], parameter[utcDays]] begin[{] local_variable[type[long], realDays] local_variable[type[int], monthStart] if[binary_operation[member[.monthStart], >=, literal[0]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[HijriCalendar] identifier[transform] operator[SEP] Keyword[long] identifier[utcDays] operator[SEP] { Keyword[long] identifier[realDays] operator[=] identifier[Math] operator[SEP] identifier[addExact] operator[SEP] identifier[utcDays] , Keyword[this] ...
synchronized long systemUpdate(long value) { if (value == currValue) { currValue += increment; return value; } if (increment > 0) { if (value > currValue) { currValue = value + increment; } } else { if (value ...
class class_name[name] begin[{] method[systemUpdate, return_type[type[long]], modifier[synchronized], parameter[value]] begin[{] if[binary_operation[member[.value], ==, member[.currValue]]] begin[{] assign[member[.currValue], member[.increment]] return[member...
Keyword[synchronized] Keyword[long] identifier[systemUpdate] operator[SEP] Keyword[long] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] identifier[currValue] operator[SEP] { identifier[currValue] operator[+=] identifier[increment] operator[SEP] Keyword[retur...
private String getInsertIdForRecord(ELVars elVars, Record record) throws OnRecordErrorException { String recordId = null; RecordEL.setRecordInContext(elVars, record); try { if (!(StringUtils.isEmpty(conf.rowIdExpression))) { recordId = rowIdELEval.eval(elVars, conf.rowIdExpression, String.clas...
class class_name[name] begin[{] method[getInsertIdForRecord, return_type[type[String]], modifier[private], parameter[elVars, record]] begin[{] local_variable[type[String], recordId] call[RecordEL.setRecordInContext, parameter[member[.elVars], member[.record]]] TryStatement(block...
Keyword[private] identifier[String] identifier[getInsertIdForRecord] operator[SEP] identifier[ELVars] identifier[elVars] , identifier[Record] identifier[record] operator[SEP] Keyword[throws] identifier[OnRecordErrorException] { identifier[String] identifier[recordId] operator[=] Other[null] operator[SEP] identi...
@Override public void mutate(Mutation mutation) throws IOException { handleExceptions(); addCallback(helper.mutate(mutation), mutation); }
class class_name[name] begin[{] method[mutate, return_type[void], modifier[public], parameter[mutation]] begin[{] call[.handleExceptions, parameter[]] call[.addCallback, parameter[call[helper.mutate, parameter[member[.mutation]]], member[.mutation]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[mutate] operator[SEP] identifier[Mutation] identifier[mutation] operator[SEP] Keyword[throws] identifier[IOException] { identifier[handleExceptions] operator[SEP] operator[SEP] operator[SEP] identifier[addCallback] operator[SEP] identifi...
protected WritableDataStore<Meta> initializeMeta(Relation<V> relation, double[][] means) { NumberVectorDistanceFunction<? super V> df = getDistanceFunction(); // The actual storage final WritableDataStore<Meta> metas = DataStoreUtil.makeStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT | DataStoreFacto...
class class_name[name] begin[{] method[initializeMeta, return_type[type[WritableDataStore]], modifier[protected], parameter[relation, means]] begin[{] local_variable[type[NumberVectorDistanceFunction], df] local_variable[type[WritableDataStore], metas] ForStatement(body=BlockStatement(l...
Keyword[protected] identifier[WritableDataStore] operator[<] identifier[Meta] operator[>] identifier[initializeMeta] operator[SEP] identifier[Relation] operator[<] identifier[V] operator[>] identifier[relation] , Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[means] operator[SEP] {...
private boolean hasChanged( int[] oldValue, int[] newValue ) { if( oldValue.length == newValue.length ) { for( int i = 0; i < newValue.length; i++ ) { if( oldValue[i] != newValue[i] ) { return true; } } return false; ...
class class_name[name] begin[{] method[hasChanged, return_type[type[boolean]], modifier[private], parameter[oldValue, newValue]] begin[{] if[binary_operation[member[oldValue.length], ==, member[newValue.length]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfSt...
Keyword[private] Keyword[boolean] identifier[hasChanged] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[oldValue] , Keyword[int] operator[SEP] operator[SEP] identifier[newValue] operator[SEP] { Keyword[if] operator[SEP] identifier[oldValue] operator[SEP] identifier[length] operator[==] identi...
private boolean nextFromProlog(boolean isProlog) throws XMLStreamException { int i; // First, do we need to finish currently open token? if (mTokenState < mStTextThreshold) { mTokenState = TOKEN_FULL_COALESCED; i = skipToken(); // note: skipToken(...
class class_name[name] begin[{] method[nextFromProlog, return_type[type[boolean]], modifier[private], parameter[isProlog]] begin[{] local_variable[type[int], i] if[binary_operation[member[.mTokenState], <, member[.mStTextThreshold]]] begin[{] assign[member[.mToke...
Keyword[private] Keyword[boolean] identifier[nextFromProlog] operator[SEP] Keyword[boolean] identifier[isProlog] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[int] identifier[i] operator[SEP] Keyword[if] operator[SEP] identifier[mTokenState] operator[<] identifier[mStTextThreshold] opera...
private void clearAuthorizationTable() { accessIdToRoles.clear(); userToAccessId.clear(); groupToAccessId.clear(); userToRoles.clear(); groupToRoles.clear(); }
class class_name[name] begin[{] method[clearAuthorizationTable, return_type[void], modifier[private], parameter[]] begin[{] call[accessIdToRoles.clear, parameter[]] call[userToAccessId.clear, parameter[]] call[groupToAccessId.clear, parameter[]] c...
Keyword[private] Keyword[void] identifier[clearAuthorizationTable] operator[SEP] operator[SEP] { identifier[accessIdToRoles] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[userToAccessId] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[gr...
private int advanceChar() throws JsonParserException { if (eof) return -1; int c = string.charAt(index); if (c == '\n') { linePos++; rowPos = index + 1; utf8adjust = 0; } index++; if (index >= bufferLength) eof = true; return c; }
class class_name[name] begin[{] method[advanceChar, return_type[type[int]], modifier[private], parameter[]] begin[{] if[member[.eof]] begin[{] return[literal[1]] else begin[{] None end[}] local_variable[type[int], c] if[binary_operation[member[.c], ==, li...
Keyword[private] Keyword[int] identifier[advanceChar] operator[SEP] operator[SEP] Keyword[throws] identifier[JsonParserException] { Keyword[if] operator[SEP] identifier[eof] operator[SEP] Keyword[return] operator[-] Other[1] operator[SEP] Keyword[int] identifier[c] operator[=] identifier[string] operator[SEP] id...
@Override public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); elementUtils = processingEnv.getElementUtils(); filer = processingEnv.getFiler(); messager = processingEnv.getMessager(); typeUtils = processingEnv.getTypeUtils(); // define methods to ignore ex...
class class_name[name] begin[{] method[init, return_type[void], modifier[synchronized public], parameter[processingEnv]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=processingEnv, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_op...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[init] operator[SEP] identifier[ProcessingEnvironment] identifier[processingEnv] operator[SEP] { Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[processingEnv] operator[SEP] operator[SEP] ident...
public boolean remove() { boolean bSuccess = false; try { Record recGrid = this.getMainRecord(); if (recGrid.getEditMode() == Constants.EDIT_CURRENT) recGrid.edit(); if (recGrid.getEditMode() == Constants.EDIT_IN_PROGRESS) recGrid...
class class_name[name] begin[{] method[remove, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], bSuccess] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operato...
Keyword[public] Keyword[boolean] identifier[remove] operator[SEP] operator[SEP] { Keyword[boolean] identifier[bSuccess] operator[=] literal[boolean] operator[SEP] Keyword[try] { identifier[Record] identifier[recGrid] operator[=] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] opera...
public EEnum getExternalAlgorithmRGPADBDRY() { if (externalAlgorithmRGPADBDRYEEnum == null) { externalAlgorithmRGPADBDRYEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(129); } return externalAlgorithmRGPADBDRYEEnum; }
class class_name[name] begin[{] method[getExternalAlgorithmRGPADBDRY, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.externalAlgorithmRGPADBDRYEEnum], ==, literal[null]]] begin[{] assign[member[.externalAlgorithmRGPADBDRYEEn...
Keyword[public] identifier[EEnum] identifier[getExternalAlgorithmRGPADBDRY] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[externalAlgorithmRGPADBDRYEEnum] operator[==] Other[null] operator[SEP] { identifier[externalAlgorithmRGPADBDRYEEnum] operator[=] operator[SEP] identifier[EEnu...
@Override public GetClassifiersResult getClassifiers(GetClassifiersRequest request) { request = beforeClientExecution(request); return executeGetClassifiers(request); }
class class_name[name] begin[{] method[getClassifiers, return_type[type[GetClassifiersResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetClassifiers, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[GetClassifiersResult] identifier[getClassifiers] operator[SEP] identifier[GetClassifiersRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
public static base_responses disable(nitro_service client, service resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { service disableresources[] = new service[resources.length]; for (int i=0;i<resources.length;i++){ disableresources[i] = new serv...
class class_name[name] begin[{] method[disable, return_type[type[base_responses]], modifier[public static], parameter[client, resources]] begin[{] local_variable[type[base_responses], result] if[binary_operation[binary_operation[member[.resources], !=, literal[null]], &&, binary_operati...
Keyword[public] Keyword[static] identifier[base_responses] identifier[disable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[service] identifier[resources] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_responses] identifier[result] op...
@Override public void postVisit(PlanNode node) { try { // --------- check special cases for which we handle post visit differently ---------- // skip data source node (they have no inputs) // also, do nothing for union nodes, we connect them later when gathering the inputs for a task // solution sets...
class class_name[name] begin[{] method[postVisit, return_type[void], modifier[public], parameter[node]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=node, postfix_operators=[], prefix_operators=[], q...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[postVisit] operator[SEP] identifier[PlanNode] identifier[node] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[node] Keyword[instanceof] identifier[SourcePlanNode] operator[||] identifier[node] Keyword[inst...
public ServiceFuture<ZoneInner> updateAsync(String resourceGroupName, String zoneName, String ifMatch, Map<String, String> tags, final ServiceCallback<ZoneInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, zoneName, ifMatch, tags), serviceCallback); ...
class class_name[name] begin[{] method[updateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, zoneName, ifMatch, tags, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateWithServiceResponseAsync, parameter[member[.resourceGrou...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[ZoneInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[zoneName] , identifier[String] identifier[ifMatch] , identifier[Map] operator[<] identifier[String] , identif...
public byte[] read() throws IOException { if (m_exception.get() != null) { throw m_exception.get(); } byte bytes[] = null; if (m_activeConverters.get() == 0) { bytes = m_available.poll(); } else { try { bytes = m_available.take...
class class_name[name] begin[{] method[read, return_type[type[byte]], modifier[public], parameter[]] begin[{] if[binary_operation[call[m_exception.get, parameter[]], !=, literal[null]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[], member=get, postfix_operators=[...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[read] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[m_exception] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[...
@Nonnull @SuppressFBWarnings ("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE") public EChange registerState (@Nonnull @Nonempty final String sStateID, @Nonnull final IHasUIState aNewState) { ValueEnforcer.notEmpty (sStateID, "StateID"); ValueEnforcer.notNull (aNewState, "NewState"); final ObjectType aOT =...
class class_name[name] begin[{] method[registerState, return_type[type[EChange]], modifier[public], parameter[sStateID, aNewState]] begin[{] call[ValueEnforcer.notEmpty, parameter[member[.sStateID], literal["StateID"]]] call[ValueEnforcer.notNull, parameter[member[.aNewState], l...
annotation[@] identifier[Nonnull] annotation[@] identifier[SuppressFBWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EChange] identifier[registerState] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[Nonempty] Keyword[final] identifier[String] identifier[sStateI...
public static boolean canHandle(final ClassLoader classLoader) { return "weblogic.utils.classloaders.ChangeAwareClassLoader".equals(classLoader.getClass().getName()) || "weblogic.utils.classloaders.GenericClassLoader".equals(classLoader.getClass().getName()) || "weblogic.utils.cl...
class class_name[name] begin[{] method[canHandle, return_type[type[boolean]], modifier[public static], parameter[classLoader]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[literal["weblogic.utils.classloaders.ChangeAwareClassLoader"], ||, literal["weblogic.utils.c...
Keyword[public] Keyword[static] Keyword[boolean] identifier[canHandle] operator[SEP] Keyword[final] identifier[ClassLoader] identifier[classLoader] operator[SEP] { Keyword[return] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[classLoader] operator[SEP] identifier[getClass] operator[SE...
@Override public EClass getIfcProtectiveDevice() { if (ifcProtectiveDeviceEClass == null) { ifcProtectiveDeviceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(480); } return ifcProtectiveDeviceEClass; }
class class_name[name] begin[{] method[getIfcProtectiveDevice, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcProtectiveDeviceEClass], ==, literal[null]]] begin[{] assign[member[.ifcProtectiveDeviceEClass], Cast(expressi...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcProtectiveDevice] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcProtectiveDeviceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcProtectiveDeviceEClass] operator[=] operator[SEP...
public Map<String, String> getCustomFields() { Map<String, String> fields = new HashMap<String, String>(); for (CustomField f : customFields) { fields.put(f.getName(), f.getValue()); } return fields; }
class class_name[name] begin[{] method[getCustomFields, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], fields] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argument...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getCustomFields] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[fields] operator[=] Keyword[new] identifier[HashMap] operator[<] i...
public double getAverageKamNodeDegree(String kamName) { final int nodes = getKamNodeCount(kamName); return (nodes != 0 ? ((double) 2 * getKamEdgeCount(kamName)) / nodes : 0.0); }
class class_name[name] begin[{] method[getAverageKamNodeDegree, return_type[type[double]], modifier[public], parameter[kamName]] begin[{] local_variable[type[int], nodes] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=nodes, postfix_operators=[], prefix_opera...
Keyword[public] Keyword[double] identifier[getAverageKamNodeDegree] operator[SEP] identifier[String] identifier[kamName] operator[SEP] { Keyword[final] Keyword[int] identifier[nodes] operator[=] identifier[getKamNodeCount] operator[SEP] identifier[kamName] operator[SEP] operator[SEP] Keyword[return] operator[SEP...
public void handleEOLMessage() { Iv2EndOfLogMessage msg = new Iv2EndOfLogMessage(m_partitionId); MPIEndOfLogTransactionState txnState = new MPIEndOfLogTransactionState(msg); MPIEndOfLogTask task = new MPIEndOfLogTask(m_mailbox, m_pendingTasks, ...
class class_name[name] begin[{] method[handleEOLMessage, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Iv2EndOfLogMessage], msg] local_variable[type[MPIEndOfLogTransactionState], txnState] local_variable[type[MPIEndOfLogTask], task] call[...
Keyword[public] Keyword[void] identifier[handleEOLMessage] operator[SEP] operator[SEP] { identifier[Iv2EndOfLogMessage] identifier[msg] operator[=] Keyword[new] identifier[Iv2EndOfLogMessage] operator[SEP] identifier[m_partitionId] operator[SEP] operator[SEP] identifier[MPIEndOfLogTransactionState] identifier[tx...
@Nullable public static IHCNode getFlagNodeFromLocale (@Nullable final Locale aFlagLocale) { final EFamFamFlagIcon eIcon = getFlagFromLocale (aFlagLocale); return eIcon == null ? null : eIcon.getAsNode (); }
class class_name[name] begin[{] method[getFlagNodeFromLocale, return_type[type[IHCNode]], modifier[public static], parameter[aFlagLocale]] begin[{] local_variable[type[EFamFamFlagIcon], eIcon] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=eIcon, postfix_oper...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[IHCNode] identifier[getFlagNodeFromLocale] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Locale] identifier[aFlagLocale] operator[SEP] { Keyword[final] identifier[EFamFamFlagIcon] identifier[eIcon] operator...
public final Node getDisclosureNode() { if (disclosureNode.get() == null) { final StackPane disclosureNode = new StackPane(); disclosureNode.getStyleClass().setAll("tree-disclosure-node"); disclosureNode.setMouseTransparent(true); final StackPane disclosureNodeAr...
class class_name[name] begin[{] method[getDisclosureNode, return_type[type[Node]], modifier[final public], parameter[]] begin[{] if[binary_operation[call[disclosureNode.get, parameter[]], ==, literal[null]]] begin[{] local_variable[type[StackPane], disclosureNode] ...
Keyword[public] Keyword[final] identifier[Node] identifier[getDisclosureNode] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[disclosureNode] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[final] identifier[StackPane] ident...
public JcCollection<JcValue> labels() { return new JcCollection<JcValue>(null, this, new FunctionInstance(FUNCTION.Node.LABELS, 1)); }
class class_name[name] begin[{] method[labels, return_type[type[JcCollection]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), This(postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] identifier[JcCollection] operator[<] identifier[JcValue] operator[>] identifier[labels] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[JcCollection] operator[<] identifier[JcValue] operator[>] operator[SEP] Other[null] , Keyword[this] , Keyword[new] identifier[FunctionIns...
public static String getObjectScript(String objectName, boolean multiDb, String dialect, WorkspaceEntry wsEntry) throws RepositoryConfigurationException, IOException { String scripts = prepareScripts(wsEntry, dialect); String sql = null; for (String query : JDBCUtils.splitWithSQLDelimiter(sc...
class class_name[name] begin[{] method[getObjectScript, return_type[type[String]], modifier[public static], parameter[objectName, multiDb, dialect, wsEntry]] begin[{] local_variable[type[String], scripts] local_variable[type[String], sql] ForStatement(body=BlockStatement(label=None, sta...
Keyword[public] Keyword[static] identifier[String] identifier[getObjectScript] operator[SEP] identifier[String] identifier[objectName] , Keyword[boolean] identifier[multiDb] , identifier[String] identifier[dialect] , identifier[WorkspaceEntry] identifier[wsEntry] operator[SEP] Keyword[throws] identifier[RepositoryCo...
public static JavadocTags getJavadocTags( TextBlock aCmt, JavadocTagType aTagType ) { final String[] text = aCmt.getText(); final List<JavadocTag> tags = Lists.newArrayList(); final List<InvalidJavadocTag> invalidTags = Lists.newArrayList(); ...
class class_name[name] begin[{] method[getJavadocTags, return_type[type[JavadocTags]], modifier[public static], parameter[aCmt, aTagType]] begin[{] local_variable[type[String], text] local_variable[type[List], tags] local_variable[type[List], invalidTags] local_variable[type[Pat...
Keyword[public] Keyword[static] identifier[JavadocTags] identifier[getJavadocTags] operator[SEP] identifier[TextBlock] identifier[aCmt] , identifier[JavadocTagType] identifier[aTagType] operator[SEP] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[text] operator[=] identifier[aCmt] op...
public RenderBinary name(String attachmentName) { this.name = attachmentName; this.disposition = Disposition.of(S.notBlank(attachmentName)); return this; }
class class_name[name] begin[{] method[name, return_type[type[RenderBinary]], modifier[public], parameter[attachmentName]] begin[{] assign[THIS[member[None.name]], member[.attachmentName]] assign[THIS[member[None.disposition]], call[Disposition.of, parameter[call[S.notBlank, par...
Keyword[public] identifier[RenderBinary] identifier[name] operator[SEP] identifier[String] identifier[attachmentName] operator[SEP] { Keyword[this] operator[SEP] identifier[name] operator[=] identifier[attachmentName] operator[SEP] Keyword[this] operator[SEP] identifier[disposition] operator[=] identifier[Dispos...
public CreateNotificationResponse createNotification(CreateNotificationRequest request) { checkStringNotEmpty(request.getName(), "The parameter name should NOT be null or empty string."); checkStringNotEmpty(request.getEndpoint(), "The parameter endpoint should NOT be nu...
class class_name[name] begin[{] method[createNotification, return_type[type[CreateNotificationResponse]], modifier[public], parameter[request]] begin[{] call[.checkStringNotEmpty, parameter[call[request.getName, parameter[]], literal["The parameter name should NOT be null or empty string."]]] ...
Keyword[public] identifier[CreateNotificationResponse] identifier[createNotification] operator[SEP] identifier[CreateNotificationRequest] identifier[request] operator[SEP] { identifier[checkStringNotEmpty] operator[SEP] identifier[request] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[...
private boolean isEligibleDefinitionFunction(Node definitionFunction) { checkArgument(definitionFunction.isFunction(), definitionFunction); if (definitionFunction.isArrowFunction()) { return false; } for (Node ancestor = definitionFunction.getParent(); ancestor != null; ancestor ...
class class_name[name] begin[{] method[isEligibleDefinitionFunction, return_type[type[boolean]], modifier[private], parameter[definitionFunction]] begin[{] call[.checkArgument, parameter[call[definitionFunction.isFunction, parameter[]], member[.definitionFunction]]] if[call[defi...
Keyword[private] Keyword[boolean] identifier[isEligibleDefinitionFunction] operator[SEP] identifier[Node] identifier[definitionFunction] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[definitionFunction] operator[SEP] identifier[isFunction] operator[SEP] operator[SEP] , identifier[definition...
public static int lastIndexOf(final String value, final String needle) { validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER); return lastIndexOf(value, needle, value.length(), true); }
class class_name[name] begin[{] method[lastIndexOf, return_type[type[int]], modifier[public static], parameter[value, needle]] begin[{] call[.validate, parameter[member[.value], member[.NULL_STRING_PREDICATE], member[.NULL_STRING_MSG_SUPPLIER]]] return[call[.lastIndexOf, parameter[membe...
Keyword[public] Keyword[static] Keyword[int] identifier[lastIndexOf] operator[SEP] Keyword[final] identifier[String] identifier[value] , Keyword[final] identifier[String] identifier[needle] operator[SEP] { identifier[validate] operator[SEP] identifier[value] , identifier[NULL_STRING_PREDICATE] , identifier[NU...
@Override @SuppressWarnings("unchecked") public String execute(Map parameters, String body, RenderContext context) throws MacroException { try { validateParams(parameters); String gpUrl = getParameter(parameters, "gpUrl"); String gpService = getParameter(parameters, "gpService"); String jiraUid = get...
class class_name[name] begin[{] method[execute, return_type[type[String]], modifier[public], parameter[parameters, body, context]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=parameters, postfix_operators=[], prefix_operators=[], qualif...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[execute] operator[SEP] identifier[Map] identifier[parameters] , identifier[String] identifier[body] , identifier[RenderContext] identifier[context] op...
public static @Nonnull List<DetachedPlugin> getDetachedPlugins(@Nonnull VersionNumber since) { return getDetachedPlugins().stream() .filter(detachedPlugin -> !detachedPlugin.getSplitWhen().isOlderThan(since)) .collect(Collectors.toList()); }
class class_name[name] begin[{] method[getDetachedPlugins, return_type[type[List]], modifier[public static], parameter[since]] begin[{] return[call[.getDetachedPlugins, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] annotation[@] identifier[Nonnull] identifier[List] operator[<] identifier[DetachedPlugin] operator[>] identifier[getDetachedPlugins] operator[SEP] annotation[@] identifier[Nonnull] identifier[VersionNumber] identifier[since] operator[SEP] { Keyword[return] identifier[getDetachedPl...
protected void addAppServerProcess(AspImpl aspImpl) throws Exception { aspImpl.setAs(this); appServerProcs.add(aspImpl); this.resetSlsVsAspTable(); }
class class_name[name] begin[{] method[addAppServerProcess, return_type[void], modifier[protected], parameter[aspImpl]] begin[{] call[aspImpl.setAs, parameter[THIS[]]] call[appServerProcs.add, parameter[member[.aspImpl]]] THIS[call[None.resetSlsVsAspTable, parame...
Keyword[protected] Keyword[void] identifier[addAppServerProcess] operator[SEP] identifier[AspImpl] identifier[aspImpl] operator[SEP] Keyword[throws] identifier[Exception] { identifier[aspImpl] operator[SEP] identifier[setAs] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[appServerProcs] opera...
public static BoxFile createFromIdAndName(String fileId, String name) { JsonObject object = new JsonObject(); object.add(BoxItem.FIELD_ID, fileId); object.add(BoxItem.FIELD_TYPE, BoxFile.TYPE); if (!TextUtils.isEmpty(name)) { object.add(BoxItem.FIELD_NAME, name); } ...
class class_name[name] begin[{] method[createFromIdAndName, return_type[type[BoxFile]], modifier[public static], parameter[fileId, name]] begin[{] local_variable[type[JsonObject], object] call[object.add, parameter[member[BoxItem.FIELD_ID], member[.fileId]]] call[object....
Keyword[public] Keyword[static] identifier[BoxFile] identifier[createFromIdAndName] operator[SEP] identifier[String] identifier[fileId] , identifier[String] identifier[name] operator[SEP] { identifier[JsonObject] identifier[object] operator[=] Keyword[new] identifier[JsonObject] operator[SEP] operator[SEP] oper...
@SuppressWarnings("unchecked") public Map<BsonValue, ChangeEvent<BsonDocument>> getEvents() { nsLock.readLock().lock(); final Map<BsonValue, ChangeEvent<BsonDocument>> events; try { events = new HashMap<>(this.events); } finally { nsLock.readLock().unlock(); } nsLock.writeLock().l...
class class_name[name] begin[{] method[getEvents, return_type[type[Map]], modifier[public], parameter[]] begin[{] call[nsLock.readLock, parameter[]] local_variable[type[Map], events] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Map] operator[<] identifier[BsonValue] , identifier[ChangeEvent] operator[<] identifier[BsonDocument] operator[>] operator[>] identifier[getEvents] operator[SEP] operator[SEP] { identifier[nsLock] o...
public static CommerceWishList fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) { return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); }
class class_name[name] begin[{] method[fetchByUUID_G, return_type[type[CommerceWishList]], modifier[public static], parameter[uuid, groupId, retrieveFromCache]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceWishList] identifier[fetchByUUID_G] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] , Keyword[boolean] identifier[retrieveFromCache] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] op...
@Override public <U> U chain(Function<? super LongStreamEx, U> mapper) { return mapper.apply(this); }
class class_name[name] begin[{] method[chain, return_type[type[U]], modifier[public], parameter[mapper]] begin[{] return[call[mapper.apply, parameter[THIS[]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[U] operator[>] identifier[U] identifier[chain] operator[SEP] identifier[Function] operator[<] operator[?] Keyword[super] identifier[LongStreamEx] , identifier[U] operator[>] identifier[mapper] operator[SEP] { Keyword[return] identifier[ma...
public void handleNotification(Notification notification, Object handback) { if (notification instanceof AttributeChangeNotification) { AttributeChangeNotification attributeChangeNotification = (AttributeChangeNotification) notification; JobReport jobReport = (JobReport)attributeChangeNo...
class class_name[name] begin[{] method[handleNotification, return_type[void], modifier[public], parameter[notification, handback]] begin[{] if[binary_operation[member[.notification], instanceof, type[AttributeChangeNotification]]] begin[{] local_variable[type[AttributeChangeNotifica...
Keyword[public] Keyword[void] identifier[handleNotification] operator[SEP] identifier[Notification] identifier[notification] , identifier[Object] identifier[handback] operator[SEP] { Keyword[if] operator[SEP] identifier[notification] Keyword[instanceof] identifier[AttributeChangeNotification] operator[SEP] { ...
protected synchronized void initConfiguration(CmsParameterConfiguration configuration) throws CmsInitException { String serverInfo = configuration.getString("context.servlet.container", null); // output startup message to log file if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info...
class class_name[name] begin[{] method[initConfiguration, return_type[void], modifier[synchronized protected], parameter[configuration]] begin[{] local_variable[type[String], serverInfo] if[call[CmsLog.INIT.isInfoEnabled, parameter[]]] begin[{] call[CmsLog.INIT.i...
Keyword[protected] Keyword[synchronized] Keyword[void] identifier[initConfiguration] operator[SEP] identifier[CmsParameterConfiguration] identifier[configuration] operator[SEP] Keyword[throws] identifier[CmsInitException] { identifier[String] identifier[serverInfo] operator[=] identifier[configuration] operator[...
public Index createResourceIndex() throws Exception { if (!ResourceIndex.INSTANCE.isLoaded()) { // Load resource index defined by the BELFramework instance final SystemConfiguration sysConfig = getSystemConfiguration(); final String resourceIndexURL = sysConfig.getResourceInd...
class class_name[name] begin[{] method[createResourceIndex, return_type[type[Index]], modifier[public], parameter[]] begin[{] if[call[ResourceIndex.INSTANCE.isLoaded, parameter[]]] begin[{] local_variable[type[SystemConfiguration], sysConfig] local_variable[type[String],...
Keyword[public] identifier[Index] identifier[createResourceIndex] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] operator[!] identifier[ResourceIndex] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[isLoaded] operator[SEP] operator[SEP] operator[SEP] { ...
@Override public void rollback() throws DataCorruptedException, IOException, IllegalStateException{ try { tranManager.rollback(t1); } catch (Exception e) { throw new DataCorruptedException("Error trying to rollback a Transaction.", e); } }
class class_name[name] begin[{] method[rollback, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=t1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=rollback, p...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[rollback] operator[SEP] operator[SEP] Keyword[throws] identifier[DataCorruptedException] , identifier[IOException] , identifier[IllegalStateException] { Keyword[try] { identifier[tranManager] operator[SEP] identifier[rollbac...
protected String parserRequiredWord(final boolean iUpperCase, final String iCustomMessage, String iSeparators) { if (iSeparators == null) iSeparators = " ()=><,\r\n"; parserNextWord(iUpperCase, iSeparators); if (parserLastWord.length() == 0) throwSyntaxErrorException(iCustomMessage); if (pa...
class class_name[name] begin[{] method[parserRequiredWord, return_type[type[String]], modifier[protected], parameter[iUpperCase, iCustomMessage, iSeparators]] begin[{] if[binary_operation[member[.iSeparators], ==, literal[null]]] begin[{] assign[member[.iSeparators], literal[" ()=><...
Keyword[protected] identifier[String] identifier[parserRequiredWord] operator[SEP] Keyword[final] Keyword[boolean] identifier[iUpperCase] , Keyword[final] identifier[String] identifier[iCustomMessage] , identifier[String] identifier[iSeparators] operator[SEP] { Keyword[if] operator[SEP] identifier[iSeparators]...
private V getBest(int t, ByteBuffer b, int offset, int len) { int node = t; int o = offset + b.position(); loop: for (int i = 0; i < len; i++) { byte c = (byte) (b.get(o + i) & 0x7f); if (isCaseInsensitive()) c = (byte) StringUtils.lowercases[c]; ...
class class_name[name] begin[{] method[getBest, return_type[type[V]], modifier[private], parameter[t, b, offset, len]] begin[{] local_variable[type[int], node] local_variable[type[int], o] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], ...
Keyword[private] identifier[V] identifier[getBest] operator[SEP] Keyword[int] identifier[t] , identifier[ByteBuffer] identifier[b] , Keyword[int] identifier[offset] , Keyword[int] identifier[len] operator[SEP] { Keyword[int] identifier[node] operator[=] identifier[t] operator[SEP] Keyword[int] identifier[o] o...
@Override public List<Component> resolveComponents(Dependency dependency) { logger.trace("Finding {}", dependency); List<Component> meets = new ArrayList<Component>(); for (Component component : components) { if (dependency.accept(component)) { meets.add(compone...
class class_name[name] begin[{] method[resolveComponents, return_type[type[List]], modifier[public], parameter[dependency]] begin[{] call[logger.trace, parameter[literal["Finding {}"], member[.dependency]]] local_variable[type[List], meets] ForStatement(body=BlockStatement(lab...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Component] operator[>] identifier[resolveComponents] operator[SEP] identifier[Dependency] identifier[dependency] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifie...
synchronized void stopChainInternal(Chain chain, long millisec) throws ChannelException, ChainException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "stopChainInternal: " + chain.getName() + ", time=" + millisec); } RuntimeState chainState = chai...
class class_name[name] begin[{] method[stopChainInternal, return_type[void], modifier[synchronized], parameter[chain, millisec]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[T...
Keyword[synchronized] Keyword[void] identifier[stopChainInternal] operator[SEP] identifier[Chain] identifier[chain] , Keyword[long] identifier[millisec] operator[SEP] Keyword[throws] identifier[ChannelException] , identifier[ChainException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] i...
public static double checkPreconditionD( final double value, final boolean condition, final DoubleFunction<String> describer) { return innerCheckD(value, condition, describer); }
class class_name[name] begin[{] method[checkPreconditionD, return_type[type[double]], modifier[public static], parameter[value, condition, describer]] begin[{] return[call[.innerCheckD, parameter[member[.value], member[.condition], member[.describer]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[checkPreconditionD] operator[SEP] Keyword[final] Keyword[double] identifier[value] , Keyword[final] Keyword[boolean] identifier[condition] , Keyword[final] identifier[DoubleFunction] operator[<] identifier[String] operator[>] identifier[describer] operator[SE...
public String serializeNowFromMap(@Nullable String user, long duration, @Nullable Arr roles, Map<String, Object> nameAndValMap) { return createNowFromMap(user, duration, roles, nameAndValMap).serialize(); }
class class_name[name] begin[{] method[serializeNowFromMap, return_type[type[String]], modifier[public], parameter[user, duration, roles, nameAndValMap]] begin[{] return[call[.createNowFromMap, parameter[member[.user], member[.duration], member[.roles], member[.nameAndValMap]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[serializeNowFromMap] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[user] , Keyword[long] identifier[duration] , annotation[@] identifier[Nullable] identifier[Arr] identifier[roles] , identifier[Map] operator[<] identifier[String] , ident...
private static String highlightToken(String line, Token token) { String newLine = insertChar(line, getLastCharPositionInLine(token), ']'); return insertChar(newLine, token.getCharPositionInLine(), '['); }
class class_name[name] begin[{] method[highlightToken, return_type[type[String]], modifier[private static], parameter[line, token]] begin[{] local_variable[type[String], newLine] return[call[.insertChar, parameter[member[.newLine], call[token.getCharPositionInLine, parameter[]], literal['[']]]]...
Keyword[private] Keyword[static] identifier[String] identifier[highlightToken] operator[SEP] identifier[String] identifier[line] , identifier[Token] identifier[token] operator[SEP] { identifier[String] identifier[newLine] operator[=] identifier[insertChar] operator[SEP] identifier[line] , identifier[getLastCha...
@Override public Cursor runQueryOnBackgroundThread(CharSequence constraint) { if (DBG) Log.d(LOG_TAG, "runQueryOnBackgroundThread(" + constraint + ")"); String query = (constraint == null) ? "" : constraint.toString(); /** * for in app search we show the progress spinner until the c...
class class_name[name] begin[{] method[runQueryOnBackgroundThread, return_type[type[Cursor]], modifier[public], parameter[constraint]] begin[{] if[member[.DBG]] begin[{] call[Log.d, parameter[member[.LOG_TAG], binary_operation[binary_operation[literal["runQueryOnBackgroundThread("],...
annotation[@] identifier[Override] Keyword[public] identifier[Cursor] identifier[runQueryOnBackgroundThread] operator[SEP] identifier[CharSequence] identifier[constraint] operator[SEP] { Keyword[if] operator[SEP] identifier[DBG] operator[SEP] identifier[Log] operator[SEP] identifier[d] operator[SEP] identifier[L...
public static void writeAcmo(String outputPath, HashMap<String, Object> datapackage, String destModel, HashMap<String, String> domeIdHashMap) { if (domeIdHashMap == null) { domeIdHashMap = new HashMap(); } HashMap<String, String> wstClimIdMap = new HashMap<String, String>(); ...
class class_name[name] begin[{] method[writeAcmo, return_type[void], modifier[public static], parameter[outputPath, datapackage, destModel, domeIdHashMap]] begin[{] if[binary_operation[member[.domeIdHashMap], ==, literal[null]]] begin[{] assign[member[.domeIdHashMap], Cl...
Keyword[public] Keyword[static] Keyword[void] identifier[writeAcmo] operator[SEP] identifier[String] identifier[outputPath] , identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[datapackage] , identifier[String] identifier[destModel] , identifier[HashMap] operator[<] ident...
public static /*@pure@*/ int[] sort(/*@non_null@*/ double[] array) { int[] index = new int[array.length]; array = (double[])array.clone(); for (int i = 0; i < index.length; i++) { index[i] = i; if (Double.isNaN(array[i])) { array[i] = Double.MAX_VALUE; } } quickSort(array,...
class class_name[name] begin[{] method[sort, return_type[type[int]], modifier[public static], parameter[array]] begin[{] local_variable[type[int], index] assign[member[.array], Cast(expression=MethodInvocation(arguments=[], member=clone, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[sort] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[array] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[index] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[array] op...
protected static FacesServletMapping calculateFacesServletMapping( String servletPath, String pathInfo) { if (pathInfo != null) { // If there is a "extra path", it's definitely no extension mapping. // Now we just have to determine the path which has been specified ...
class class_name[name] begin[{] method[calculateFacesServletMapping, return_type[type[FacesServletMapping]], modifier[static protected], parameter[servletPath, pathInfo]] begin[{] if[binary_operation[member[.pathInfo], !=, literal[null]]] begin[{] return[call[FacesServletMapping.cre...
Keyword[protected] Keyword[static] identifier[FacesServletMapping] identifier[calculateFacesServletMapping] operator[SEP] identifier[String] identifier[servletPath] , identifier[String] identifier[pathInfo] operator[SEP] { Keyword[if] operator[SEP] identifier[pathInfo] operator[!=] Other[null] operator[SEP] { ...
public static final String name(SimpleGroupPath group, MetricName metric) { return name(Stream.concat(group.getPath().stream(), metric.getPath().stream()) .collect(Collectors.joining("."))); }
class class_name[name] begin[{] method[name, return_type[type[String]], modifier[final public static], parameter[group, metric]] begin[{] return[call[.name, parameter[call[Stream.concat, parameter[call[group.getPath, parameter[]], call[metric.getPath, parameter[]]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[name] operator[SEP] identifier[SimpleGroupPath] identifier[group] , identifier[MetricName] identifier[metric] operator[SEP] { Keyword[return] identifier[name] operator[SEP] identifier[Stream] operator[SEP] identifier[concat] operator[S...
public final void mT__103() throws RecognitionException { try { int _type = T__103; int _channel = DEFAULT_TOKEN_CHANNEL; // BELScript.g:90:8: ( 'increases' ) // BELScript.g:90:10: 'increases' { match("increases"); } ...
class class_name[name] begin[{] method[mT__103, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__103, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__103] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__103] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TO...
public int remainingCapacity() { if (!isBlockingQueue) { throw new UnsupportedOperationException("This operation is only supported on blocking queues."); } return ((java.util.concurrent.BlockingQueue<E>) queue).remainingCapacity(); }
class class_name[name] begin[{] method[remainingCapacity, return_type[type[int]], modifier[public], parameter[]] begin[{] if[member[.isBlockingQueue]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, select...
Keyword[public] Keyword[int] identifier[remainingCapacity] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isBlockingQueue] operator[SEP] { Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] literal[String] operator[SEP] operator[SEP] ...
public void encodeAmf3(Object obj, Amf3Type marker) throws IOException { out.write(marker.ordinal()); if (marker == Amf3Type.NULL) { return; // Null marker is enough } serializeAmf3(obj, marker); }
class class_name[name] begin[{] method[encodeAmf3, return_type[void], modifier[public], parameter[obj, marker]] begin[{] call[out.write, parameter[call[marker.ordinal, parameter[]]]] if[binary_operation[member[.marker], ==, member[Amf3Type.NULL]]] begin[{] return[Non...
Keyword[public] Keyword[void] identifier[encodeAmf3] operator[SEP] identifier[Object] identifier[obj] , identifier[Amf3Type] identifier[marker] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[write] operator[SEP] identifier[marker] operator[SEP] identifier[ordina...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) @SuppressWarnings("unchecked") public static <T> Maybe<T> ambArray(final MaybeSource<? extends T>... sources) { if (sources.length == 0) { return empty(); } if (sources.length == 1) { return wrap((Mayb...
class class_name[name] begin[{] method[ambArray, return_type[type[Maybe]], modifier[public static], parameter[sources]] begin[{] if[binary_operation[member[sources.length], ==, literal[0]]] begin[{] return[call[.empty, parameter[]]] else begin[{] None end[}] ...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] o...
private void initialize() { m_frame = new JFrame(); m_frame.setBounds(100, 100, 900, 451); m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); m_frame.getContentPane().setLayout(new GridLayout(1, 0, 0, 0)); final FileChooserModel fileChooserModel = new FileChooserModel(); fin...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.m_frame], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceT...
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { identifier[m_frame] operator[=] Keyword[new] identifier[JFrame] operator[SEP] operator[SEP] operator[SEP] identifier[m_frame] operator[SEP] identifier[setBounds] operator[SEP] Other[100] , Other[100] , Other[900] , Other[451] ...
public static UserCustomColumn createPrimaryKeyColumn(int index, String name) { return new UserCustomColumn(index, name, GeoPackageDataType.INTEGER, null, true, null, true); }
class class_name[name] begin[{] method[createPrimaryKeyColumn, return_type[type[UserCustomColumn]], modifier[public static], parameter[index, name]] begin[{] return[ClassCreator(arguments=[MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferenc...
Keyword[public] Keyword[static] identifier[UserCustomColumn] identifier[createPrimaryKeyColumn] operator[SEP] Keyword[int] identifier[index] , identifier[String] identifier[name] operator[SEP] { Keyword[return] Keyword[new] identifier[UserCustomColumn] operator[SEP] identifier[index] , identifier[name] , iden...
public ImmutableMap<String, String> validatedMatch(String path, String exceptionMessagePrefix) { ImmutableMap<String, String> matchMap = match(path); if (matchMap == null) { throw new ValidationException( String.format( "%s: Parameter \"%s\" must be in the form \"%s\"", ...
class class_name[name] begin[{] method[validatedMatch, return_type[type[ImmutableMap]], modifier[public], parameter[path, exceptionMessagePrefix]] begin[{] local_variable[type[ImmutableMap], matchMap] if[binary_operation[member[.matchMap], ==, literal[null]]] begin[{] ThrowS...
Keyword[public] identifier[ImmutableMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[validatedMatch] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[exceptionMessagePrefix] operator[SEP] { identifier[ImmutableMap] operator[<] identifier[String] ,...
public void setCount(E key, int count) { if (tempMInteger == null) { tempMInteger = new MutableInteger(); } tempMInteger.set(count); tempMInteger = map.put(key, tempMInteger); totalCount += count; if (tempMInteger != null) { totalCount -= tempMInteger.intValue(); } ...
class class_name[name] begin[{] method[setCount, return_type[void], modifier[public], parameter[key, count]] begin[{] if[binary_operation[member[.tempMInteger], ==, literal[null]]] begin[{] assign[member[.tempMInteger], ClassCreator(arguments=[], body=None, constructor_t...
Keyword[public] Keyword[void] identifier[setCount] operator[SEP] identifier[E] identifier[key] , Keyword[int] identifier[count] operator[SEP] { Keyword[if] operator[SEP] identifier[tempMInteger] operator[==] Other[null] operator[SEP] { identifier[tempMInteger] operator[=] Keyword[new] identifier[Muta...
public static <E> Distribution<E> getDistributionFromLogValues(Counter<E> counter) { ClassicCounter<E> c = new ClassicCounter<E>(); // go through once to get the max // shift all by max so as to minimize the possibility of underflow double max = Counters.max(counter); // Thang 17Feb12: max should op...
class class_name[name] begin[{] method[getDistributionFromLogValues, return_type[type[Distribution]], modifier[public static], parameter[counter]] begin[{] local_variable[type[ClassicCounter], c] local_variable[type[double], max] ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Distribution] operator[<] identifier[E] operator[>] identifier[getDistributionFromLogValues] operator[SEP] identifier[Counter] operator[<] identifier[E] operator[>] identifier[counter] operator[SEP] { identifier[ClassicCounter] oper...
public static void warn(Throwable e, String format, Object... arguments) { warn(LogFactory.indirectGet(), e, StringKit.format(format, arguments)); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public static], parameter[e, format, arguments]] begin[{] call[.warn, parameter[call[LogFactory.indirectGet, parameter[]], member[.e], call[StringKit.format, parameter[member[.format], member[.arguments]]]]] end[}] END...
Keyword[public] Keyword[static] Keyword[void] identifier[warn] operator[SEP] identifier[Throwable] identifier[e] , identifier[String] identifier[format] , identifier[Object] operator[...] identifier[arguments] operator[SEP] { identifier[warn] operator[SEP] identifier[LogFactory] operator[SEP] identifier[indire...
public void getTPTransaction(String API, Transaction.Time time, Transaction.Type type, Callback<List<Transaction>> callback) throws GuildWars2Exception, NullPointerException { isParamValid(new ParamChecker(ParamType.API, API)); if (time == null || type == null) throw new GuildWars2Exception(ErrorCode.TransTime, ...
class class_name[name] begin[{] method[getTPTransaction, return_type[void], modifier[public], parameter[API, time, type, callback]] begin[{] call[.isParamValid, parameter[ClassCreator(arguments=[MemberReference(member=API, postfix_operators=[], prefix_operators=[], qualifier=ParamType, selector...
Keyword[public] Keyword[void] identifier[getTPTransaction] operator[SEP] identifier[String] identifier[API] , identifier[Transaction] operator[SEP] identifier[Time] identifier[time] , identifier[Transaction] operator[SEP] identifier[Type] identifier[type] , identifier[Callback] operator[<] identifier[List] operator[...
public void addCc(Address address) { assertArgumentNotNull("address", address); saveCc(address); try { message.addRecipient(RecipientType.CC, address); } catch (MessagingException e) { String msg = buildAddressSettingFailureMessage("cc", address); thro...
class class_name[name] begin[{] method[addCc, return_type[void], modifier[public], parameter[address]] begin[{] call[.assertArgumentNotNull, parameter[literal["address"], member[.address]]] call[.saveCc, parameter[member[.address]]] TryStatement(block=[StatementExpressio...
Keyword[public] Keyword[void] identifier[addCc] operator[SEP] identifier[Address] identifier[address] operator[SEP] { identifier[assertArgumentNotNull] operator[SEP] literal[String] , identifier[address] operator[SEP] operator[SEP] identifier[saveCc] operator[SEP] identifier[address] operator[SEP] operator[SEP]...
public ServiceFuture<EnvironmentSettingInner> beginCreateOrUpdateAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, EnvironmentSettingInner environmentSetting, final ServiceCallback<EnvironmentSettingInner> serviceCallback) { return ServiceFuture.fromResponse(b...
class class_name[name] begin[{] method[beginCreateOrUpdateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, labAccountName, labName, environmentSettingName, environmentSetting, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.begin...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[EnvironmentSettingInner] operator[>] identifier[beginCreateOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[labAccountName] , identifier[String] identifier[labName] , identifier[String] ident...