code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public int getValue(final K key) { @DoNotSub final int mask = values.length - 1; @DoNotSub int index = Hashing.hash(key, mask); int value; while (missingValue != (value = values[index])) { if (key.equals(keys[index])) { break; ...
class class_name[name] begin[{] method[getValue, return_type[type[int]], modifier[public], parameter[key]] begin[{] local_variable[type[int], mask] local_variable[type[int], index] local_variable[type[int], value] while[binary_operation[member[.missingValue], !=, assign[...
Keyword[public] Keyword[int] identifier[getValue] operator[SEP] Keyword[final] identifier[K] identifier[key] operator[SEP] { annotation[@] identifier[DoNotSub] Keyword[final] Keyword[int] identifier[mask] operator[=] identifier[values] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] annotatio...
public boolean isAfter(ReadableInterval interval) { long endMillis; if (interval == null) { endMillis = DateTimeUtils.currentTimeMillis(); } else { endMillis = interval.getEndMillis(); } return (getStartMillis() >= endMillis); }
class class_name[name] begin[{] method[isAfter, return_type[type[boolean]], modifier[public], parameter[interval]] begin[{] local_variable[type[long], endMillis] if[binary_operation[member[.interval], ==, literal[null]]] begin[{] assign[member[.endMillis], call[D...
Keyword[public] Keyword[boolean] identifier[isAfter] operator[SEP] identifier[ReadableInterval] identifier[interval] operator[SEP] { Keyword[long] identifier[endMillis] operator[SEP] Keyword[if] operator[SEP] identifier[interval] operator[==] Other[null] operator[SEP] { identifier[endMillis] operator[...
private float calculateDy(float distanceY) { int currentY = view.getScrollY(); float nextY = distanceY + currentY; boolean isInsideVertically = nextY >= minY && nextY <= maxY; return isInsideVertically ? distanceY : 0; }
class class_name[name] begin[{] method[calculateDy, return_type[type[float]], modifier[private], parameter[distanceY]] begin[{] local_variable[type[int], currentY] local_variable[type[float], nextY] local_variable[type[boolean], isInsideVertically] return[TernaryExpression(condi...
Keyword[private] Keyword[float] identifier[calculateDy] operator[SEP] Keyword[float] identifier[distanceY] operator[SEP] { Keyword[int] identifier[currentY] operator[=] identifier[view] operator[SEP] identifier[getScrollY] operator[SEP] operator[SEP] operator[SEP] Keyword[float] identifier[nextY] operator[=] ide...
public static int nvgraphWidestPath( nvgraphHandle handle, nvgraphGraphDescr descrG, long weight_index, Pointer source_vert, long widest_path_index) { return checkResult(nvgraphWidestPathNative(handle, descrG, weight_index, source_vert, widest_path_index)); }
class class_name[name] begin[{] method[nvgraphWidestPath, return_type[type[int]], modifier[public static], parameter[handle, descrG, weight_index, source_vert, widest_path_index]] begin[{] return[call[.checkResult, parameter[call[.nvgraphWidestPathNative, parameter[member[.handle], member[.descrG], mem...
Keyword[public] Keyword[static] Keyword[int] identifier[nvgraphWidestPath] operator[SEP] identifier[nvgraphHandle] identifier[handle] , identifier[nvgraphGraphDescr] identifier[descrG] , Keyword[long] identifier[weight_index] , identifier[Pointer] identifier[source_vert] , Keyword[long] identifier[widest_path_index...
public String[] getColumnTexts(int columnIndex) { int count = getCount(); if (count > 0) { String[] texts = new String[count]; for (int i = 1; i <= count; i++) { texts[i - 1] = getText(i, columnIndex); } return texts; } else...
class class_name[name] begin[{] method[getColumnTexts, return_type[type[String]], modifier[public], parameter[columnIndex]] begin[{] local_variable[type[int], count] if[binary_operation[member[.count], >, literal[0]]] begin[{] local_variable[type[String], texts] ...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getColumnTexts] operator[SEP] Keyword[int] identifier[columnIndex] operator[SEP] { Keyword[int] identifier[count] operator[=] identifier[getCount] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[count] operat...
private void createIntervalList(){ synchronized(intervalLock){ if (_cachedIntervalInfos!=null) return; List<Interval> intervals = intervalRegistry.getIntervals(); _cachedIntervalInfos = new ArrayList<IntervalInfo>(intervals.size()); for (Interval interval : intervals) { _cachedIntervalInfos.add(ne...
class class_name[name] begin[{] method[createIntervalList, return_type[void], modifier[private], parameter[]] begin[{] SYNCHRONIZED[member[.intervalLock]] BEGIN[{] if[binary_operation[member[._cachedIntervalInfos], !=, literal[null]]] begin[{] return[None] el...
Keyword[private] Keyword[void] identifier[createIntervalList] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[intervalLock] operator[SEP] { Keyword[if] operator[SEP] identifier[_cachedIntervalInfos] operator[!=] Other[null] operator[SEP] Keyword[return] operator[SEP] ident...
@Override public int start(String name) { Integer id = re.groupId(name); if (id == null) throw new IllegalArgumentException("<" + name + "> isn't defined"); return start(id); }
class class_name[name] begin[{] method[start, return_type[type[int]], modifier[public], parameter[name]] begin[{] local_variable[type[Integer], id] if[binary_operation[member[.id], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Bi...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[start] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[Integer] identifier[id] operator[=] identifier[re] operator[SEP] identifier[groupId] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if...
public void setEnterpriseDuration(int index, Duration value) { set(selectField(AssignmentFieldLists.ENTERPRISE_DURATION, index), value); }
class class_name[name] begin[{] method[setEnterpriseDuration, return_type[void], modifier[public], parameter[index, value]] begin[{] call[.set, parameter[call[.selectField, parameter[member[AssignmentFieldLists.ENTERPRISE_DURATION], member[.index]]], member[.value]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setEnterpriseDuration] operator[SEP] Keyword[int] identifier[index] , identifier[Duration] identifier[value] operator[SEP] { identifier[set] operator[SEP] identifier[selectField] operator[SEP] identifier[AssignmentFieldLists] operator[SEP] identifier[ENTERPRISE_DURATION]...
private void rebuild() { pollact = null; pollSize = pollers.size(); if (pollset != null) { pollset.close(); } pollset = context.poller(pollSize); assert (pollset != null); pollact = new SPoller[pollSize]; int itemNbr = 0; for (SP...
class class_name[name] begin[{] method[rebuild, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.pollact], literal[null]] assign[member[.pollSize], call[pollers.size, parameter[]]] if[binary_operation[member[.pollset], !=, literal[null]]...
Keyword[private] Keyword[void] identifier[rebuild] operator[SEP] operator[SEP] { identifier[pollact] operator[=] Other[null] operator[SEP] identifier[pollSize] operator[=] identifier[pollers] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pollset] op...
public static int sum( InterleavedS8 img ) { if( BoofConcurrency.USE_CONCURRENT ) { return ImplImageStatistics_MT.sum(img); } else { return ImplImageStatistics.sum(img); } }
class class_name[name] begin[{] method[sum, return_type[type[int]], modifier[public static], parameter[img]] begin[{] if[member[BoofConcurrency.USE_CONCURRENT]] begin[{] return[call[ImplImageStatistics_MT.sum, parameter[member[.img]]]] else begin[{] return[call[I...
Keyword[public] Keyword[static] Keyword[int] identifier[sum] operator[SEP] identifier[InterleavedS8] identifier[img] operator[SEP] { Keyword[if] operator[SEP] identifier[BoofConcurrency] operator[SEP] identifier[USE_CONCURRENT] operator[SEP] { Keyword[return] identifier[ImplImageStatistics_MT] operato...
@XmlElementDecl(namespace = "https://adwords.google.com/api/adwords/o/v201809", name = "RequestHeader") public JAXBElement<SoapHeader> createRequestHeader(SoapHeader value) { return new JAXBElement<SoapHeader>(_RequestHeader_QNAME, SoapHeader.class, null, value); }
class class_name[name] begin[{] method[createRequestHeader, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_RequestHeader_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postf...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[SoapHeader] operator[>] identifier[createRequestHeader] operator[SEP] identifier[SoapHeade...
private boolean isDenyUncoveredHttpMethods(List<SecurityConstraint> scList) { for (SecurityConstraint sc : scList) { List<WebResourceCollection> wrcList = sc.getWebResourceCollections(); for (WebResourceCollection wrc : wrcList) { if (wrc.getDenyUncoveredHttpMethods()) { ...
class class_name[name] begin[{] method[isDenyUncoveredHttpMethods, return_type[type[boolean]], modifier[private], parameter[scList]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth...
Keyword[private] Keyword[boolean] identifier[isDenyUncoveredHttpMethods] operator[SEP] identifier[List] operator[<] identifier[SecurityConstraint] operator[>] identifier[scList] operator[SEP] { Keyword[for] operator[SEP] identifier[SecurityConstraint] identifier[sc] operator[:] identifier[scList] operator[SEP] ...
public static Calendar addMinutes(Calendar origin, int value) { Calendar cal = sync((Calendar) origin.clone()); cal.add(Calendar.MINUTE, value); return sync(cal); }
class class_name[name] begin[{] method[addMinutes, return_type[type[Calendar]], modifier[public static], parameter[origin, value]] begin[{] local_variable[type[Calendar], cal] call[cal.add, parameter[member[Calendar.MINUTE], member[.value]]] return[call[.sync, parameter[member[....
Keyword[public] Keyword[static] identifier[Calendar] identifier[addMinutes] operator[SEP] identifier[Calendar] identifier[origin] , Keyword[int] identifier[value] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] identifier[sync] operator[SEP] operator[SEP] identifier[Calendar] operator[SEP] iden...
public static Boolean getBoolean(boolean validate, String key) { return Boolean.valueOf(getString(validate, key)); }
class class_name[name] begin[{] method[getBoolean, return_type[type[Boolean]], modifier[public static], parameter[validate, key]] begin[{] return[call[Boolean.valueOf, parameter[call[.getString, parameter[member[.validate], member[.key]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Boolean] identifier[getBoolean] operator[SEP] Keyword[boolean] identifier[validate] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[Boolean] operator[SEP] identifier[valueOf] operator[SEP] identifier[getString] operator[SEP] identifier[v...
private void loadAllWithAsyncLoader(final CacheOperationCompletionListener _listener, final Set<K> _keysToLoad) { final AtomicInteger _countDown = new AtomicInteger(_keysToLoad.size()); EntryAction.ActionCompletedCallback cb = new EntryAction.ActionCompletedCallback() { @Override public void entryAc...
class class_name[name] begin[{] method[loadAllWithAsyncLoader, return_type[void], modifier[private], parameter[_listener, _keysToLoad]] begin[{] local_variable[type[AtomicInteger], _countDown] local_variable[type[EntryAction], cb] ForStatement(body=BlockStatement(label=None, statements=...
Keyword[private] Keyword[void] identifier[loadAllWithAsyncLoader] operator[SEP] Keyword[final] identifier[CacheOperationCompletionListener] identifier[_listener] , Keyword[final] identifier[Set] operator[<] identifier[K] operator[>] identifier[_keysToLoad] operator[SEP] { Keyword[final] identifier[AtomicInteger...
@Nonnull public static String replaceMultipleAsString (@Nullable final String sInputString, @Nonnull final char [] aSearchChars, final char cReplacementChar) { ValueEnforcer.notNull (aSearchChars, "SearchChars"); ...
class class_name[name] begin[{] method[replaceMultipleAsString, return_type[type[String]], modifier[public static], parameter[sInputString, aSearchChars, cReplacementChar]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aSearchChars], literal["SearchChars"]]] if[call[.ha...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[String] identifier[replaceMultipleAsString] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sInputString] , annotation[@] identifier[Nonnull] Keyword[final] Keyword[char] operator[SEP] operator[SE...
private SimpleHash buildModel(ValueStack stack, Component component) { Map<?, ?> context = stack.getContext(); HttpServletRequest req = (HttpServletRequest) context.get(ServletActionContext.HTTP_REQUEST); // build hash SimpleHash model = (SimpleHash) req.getAttribute(FreemarkerManager.ATTR_TEMPLATE_MODE...
class class_name[name] begin[{] method[buildModel, return_type[type[SimpleHash]], modifier[private], parameter[stack, component]] begin[{] local_variable[type[Map], context] local_variable[type[HttpServletRequest], req] local_variable[type[SimpleHash], model] if[binary_o...
Keyword[private] identifier[SimpleHash] identifier[buildModel] operator[SEP] identifier[ValueStack] identifier[stack] , identifier[Component] identifier[component] operator[SEP] { identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[context] operator[=] identifier[stack] operator[SEP] i...
static void lowLevelUncompressPairs( final int[] pairArray, // output final int numPairsToDecode, // input, size of output, must be int final int numBaseBits, // input, cannot exceed 6 bits final int[] compressedWords, // input final long numCompressedWords) { ...
class class_name[name] begin[{] method[lowLevelUncompressPairs, return_type[void], modifier[static], parameter[pairArray, numPairsToDecode, numBaseBits, compressedWords, numCompressedWords]] begin[{] local_variable[type[int], pairIndex] local_variable[type[long], ptrArr] local_variable[...
Keyword[static] Keyword[void] identifier[lowLevelUncompressPairs] operator[SEP] Keyword[final] Keyword[int] operator[SEP] operator[SEP] identifier[pairArray] , Keyword[final] Keyword[int] identifier[numPairsToDecode] , Keyword[final] Keyword[int] identifier[numBaseBits] , Keyword[final] Keyword[int] operator[SEP] op...
public void ifPresentOrElse(@NotNull Consumer<? super T> consumer, @NotNull Runnable emptyAction) { if (value != null) { consumer.accept(value); } else { emptyAction.run(); } }
class class_name[name] begin[{] method[ifPresentOrElse, return_type[void], modifier[public], parameter[consumer, emptyAction]] begin[{] if[binary_operation[member[.value], !=, literal[null]]] begin[{] call[consumer.accept, parameter[member[.value]]] else begin[{]...
Keyword[public] Keyword[void] identifier[ifPresentOrElse] operator[SEP] annotation[@] identifier[NotNull] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[consumer] , annotation[@] identifier[NotNull] identifier[Runnable] identifier[emptyAction] operator[SEP] { Ke...
public long addBoxObstacle(float[] center, float[] extents, float yRadians) { TileCacheObstacle ob = allocObstacle(); ob.type = TileCacheObstacleType.ORIENTED_BOX; vCopy(ob.center, center); vCopy(ob.extents, extents); float coshalf = (float) Math.cos(0.5f * yRadians); float sinhalf = (float) Math.sin(-0.5f ...
class class_name[name] begin[{] method[addBoxObstacle, return_type[type[long]], modifier[public], parameter[center, extents, yRadians]] begin[{] local_variable[type[TileCacheObstacle], ob] assign[member[ob.type], member[TileCacheObstacleType.ORIENTED_BOX]] call[.vCopy, p...
Keyword[public] Keyword[long] identifier[addBoxObstacle] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[center] , Keyword[float] operator[SEP] operator[SEP] identifier[extents] , Keyword[float] identifier[yRadians] operator[SEP] { identifier[TileCacheObstacle] identifier[ob] operator[=] id...
private boolean isQuotableParam(String name){ boolean isQuotableParameter = false; List<String> params = getQuotableParams(); for (String param : params){ if (param.equalsIgnoreCase(name)){ isQuotableParameter = true; break; ...
class class_name[name] begin[{] method[isQuotableParam, return_type[type[boolean]], modifier[private], parameter[name]] begin[{] local_variable[type[boolean], isQuotableParameter] local_variable[type[List], params] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(con...
Keyword[private] Keyword[boolean] identifier[isQuotableParam] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[boolean] identifier[isQuotableParameter] operator[=] literal[boolean] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[params] operator[=] id...
public static double getLimitByUserAndCounter(EntityManager em, PrincipalUser user, PolicyCounter counter) { PolicyLimit pLimit = findPolicyLimitByUserAndCounter(em, user, counter); if (pLimit != null) { return pLimit.getLimit(); } return counter.getDefaultValue(); }
class class_name[name] begin[{] method[getLimitByUserAndCounter, return_type[type[double]], modifier[public static], parameter[em, user, counter]] begin[{] local_variable[type[PolicyLimit], pLimit] if[binary_operation[member[.pLimit], !=, literal[null]]] begin[{] return[call...
Keyword[public] Keyword[static] Keyword[double] identifier[getLimitByUserAndCounter] operator[SEP] identifier[EntityManager] identifier[em] , identifier[PrincipalUser] identifier[user] , identifier[PolicyCounter] identifier[counter] operator[SEP] { identifier[PolicyLimit] identifier[pLimit] operator[=] identif...
public void write(@NonNull Normalizer normalizer, @NonNull File file) throws IOException { try (OutputStream out = new BufferedOutputStream(new FileOutputStream(file))) { write(normalizer, out); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[normalizer, file]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=normalizer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[void] identifier[write] operator[SEP] annotation[@] identifier[NonNull] identifier[Normalizer] identifier[normalizer] , annotation[@] identifier[NonNull] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] operator[SEP] identifier[Output...
private UserProfile readProfile(String userName, Node profileNode) throws RepositoryException { UserProfile profile = createUserProfileInstance(userName); PropertyIterator attributes = profileNode.getProperties(); while (attributes.hasNext()) { Property prop = attributes.nextPropert...
class class_name[name] begin[{] method[readProfile, return_type[type[UserProfile]], modifier[private], parameter[userName, profileNode]] begin[{] local_variable[type[UserProfile], profile] local_variable[type[PropertyIterator], attributes] while[call[attributes.hasNext, paramete...
Keyword[private] identifier[UserProfile] identifier[readProfile] operator[SEP] identifier[String] identifier[userName] , identifier[Node] identifier[profileNode] operator[SEP] Keyword[throws] identifier[RepositoryException] { identifier[UserProfile] identifier[profile] operator[=] identifier[createUserProfileIn...
@VisibleForTesting static void register(final SpanExporter spanExporter, final SpanExporter.Handler handler) { spanExporter.registerHandler(REGISTER_NAME, handler); }
class class_name[name] begin[{] method[register, return_type[void], modifier[static], parameter[spanExporter, handler]] begin[{] call[spanExporter.registerHandler, parameter[member[.REGISTER_NAME], member[.handler]]] end[}] END[}]
annotation[@] identifier[VisibleForTesting] Keyword[static] Keyword[void] identifier[register] operator[SEP] Keyword[final] identifier[SpanExporter] identifier[spanExporter] , Keyword[final] identifier[SpanExporter] operator[SEP] identifier[Handler] identifier[handler] operator[SEP] { identifier[spanExporter] o...
boolean trySetCancelled() { synchronized (lock) { if (complete) { return false; } complete = true; cancelled = true; lock.notifyAll(); runContinuations(); return true; } }
class class_name[name] begin[{] method[trySetCancelled, return_type[type[boolean]], modifier[default], parameter[]] begin[{] SYNCHRONIZED[member[.lock]] BEGIN[{] if[member[.complete]] begin[{] return[literal[false]] else begin[{] None ...
Keyword[boolean] identifier[trySetCancelled] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[lock] operator[SEP] { Keyword[if] operator[SEP] identifier[complete] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifie...
public static Long executeForGeneratedKey(Connection conn, String sql, Map<String, Object> paramMap) throws SQLException { final NamedSql namedSql = new NamedSql(sql, paramMap); return executeForGeneratedKey(conn, namedSql.getSql(), namedSql.getParams()); }
class class_name[name] begin[{] method[executeForGeneratedKey, return_type[type[Long]], modifier[public static], parameter[conn, sql, paramMap]] begin[{] local_variable[type[NamedSql], namedSql] return[call[.executeForGeneratedKey, parameter[member[.conn], call[namedSql.getSql, parameter[]], ca...
Keyword[public] Keyword[static] identifier[Long] identifier[executeForGeneratedKey] operator[SEP] identifier[Connection] identifier[conn] , identifier[String] identifier[sql] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[paramMap] operator[SEP] Keyword[throws] identifie...
public void createSpace(StorageProvider targetProvider, String storeId, String spaceId) throws StorageException { targetProvider.createSpace(spaceId); }
class class_name[name] begin[{] method[createSpace, return_type[void], modifier[public], parameter[targetProvider, storeId, spaceId]] begin[{] call[targetProvider.createSpace, parameter[member[.spaceId]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[createSpace] operator[SEP] identifier[StorageProvider] identifier[targetProvider] , identifier[String] identifier[storeId] , identifier[String] identifier[spaceId] operator[SEP] Keyword[throws] identifier[StorageException] { identifier[targetProvider] operator[SEP] iden...
public Map getMapOfValue(Object key) { for (Scope cur=this; cur!=null; cur=cur.parent) { if (cur.data != null && cur.data.containsKey(key)) { return cur.data; } } return null; }
class class_name[name] begin[{] method[getMapOfValue, return_type[type[Map]], modifier[public], parameter[key]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=data, postfix_operators=[], pr...
Keyword[public] identifier[Map] identifier[getMapOfValue] operator[SEP] identifier[Object] identifier[key] operator[SEP] { Keyword[for] operator[SEP] identifier[Scope] identifier[cur] operator[=] Keyword[this] operator[SEP] identifier[cur] operator[!=] Other[null] operator[SEP] identifier[cur] operator[=] identi...
public void addHeaderItemRule(ItemRule headerItemRule) { if (headerItemRuleMap == null) { headerItemRuleMap = new ItemRuleMap(); } headerItemRuleMap.putItemRule(headerItemRule); }
class class_name[name] begin[{] method[addHeaderItemRule, return_type[void], modifier[public], parameter[headerItemRule]] begin[{] if[binary_operation[member[.headerItemRuleMap], ==, literal[null]]] begin[{] assign[member[.headerItemRuleMap], ClassCreator(arguments=[], b...
Keyword[public] Keyword[void] identifier[addHeaderItemRule] operator[SEP] identifier[ItemRule] identifier[headerItemRule] operator[SEP] { Keyword[if] operator[SEP] identifier[headerItemRuleMap] operator[==] Other[null] operator[SEP] { identifier[headerItemRuleMap] operator[=] Keyword[new] identifier[I...
public static long getTxInfoCacheWeight(FluoConfiguration conf) { long size = conf.getLong(TX_INFO_CACHE_WEIGHT, TX_INFO_CACHE_WEIGHT_DEFAULT); if (size <= 0) { throw new IllegalArgumentException("Cache size must be positive for " + TX_INFO_CACHE_WEIGHT); } return size; }
class class_name[name] begin[{] method[getTxInfoCacheWeight, return_type[type[long]], modifier[public static], parameter[conf]] begin[{] local_variable[type[long], size] if[binary_operation[member[.size], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[public] Keyword[static] Keyword[long] identifier[getTxInfoCacheWeight] operator[SEP] identifier[FluoConfiguration] identifier[conf] operator[SEP] { Keyword[long] identifier[size] operator[=] identifier[conf] operator[SEP] identifier[getLong] operator[SEP] identifier[TX_INFO_CACHE_WEIGHT] , identifier[TX...
public double readDouble(double defaultValue, String attribute) { return Double.parseDouble(getValue(String.valueOf(defaultValue), attribute)); }
class class_name[name] begin[{] method[readDouble, return_type[type[double]], modifier[public], parameter[defaultValue, attribute]] begin[{] return[call[Double.parseDouble, parameter[call[.getValue, parameter[call[String.valueOf, parameter[member[.defaultValue]]], member[.attribute]]]]]] end[}] END...
Keyword[public] Keyword[double] identifier[readDouble] operator[SEP] Keyword[double] identifier[defaultValue] , identifier[String] identifier[attribute] operator[SEP] { Keyword[return] identifier[Double] operator[SEP] identifier[parseDouble] operator[SEP] identifier[getValue] operator[SEP] identifier[String] op...
protected AddressArray createAddressArray(File homeDir, int batchSize, int numSyncBatches, boolean indexesCached) throws Exception { AddressArrayFactory factory = new Address...
class class_name[name] begin[{] method[createAddressArray, return_type[type[AddressArray]], modifier[protected], parameter[homeDir, batchSize, numSyncBatches, indexesCached]] begin[{] local_variable[type[AddressArrayFactory], factory] local_variable[type[AddressArray], addrArray] return...
Keyword[protected] identifier[AddressArray] identifier[createAddressArray] operator[SEP] identifier[File] identifier[homeDir] , Keyword[int] identifier[batchSize] , Keyword[int] identifier[numSyncBatches] , Keyword[boolean] identifier[indexesCached] operator[SEP] Keyword[throws] identifier[Exception] { identi...
public static String buildCleanedParametersURIRepresentation(org.apache.commons.httpclient.URI uri, SpiderParam.HandleParametersOption handleParameters, boolean handleODataParametersVisited) throws URIException { // If the option is set to use all the information, just use the default string representation if (h...
class class_name[name] begin[{] method[buildCleanedParametersURIRepresentation, return_type[type[String]], modifier[public static], parameter[uri, handleParameters, handleODataParametersVisited]] begin[{] if[call[handleParameters.equals, parameter[member[HandleParametersOption.USE_ALL]]]] begin...
Keyword[public] Keyword[static] identifier[String] identifier[buildCleanedParametersURIRepresentation] operator[SEP] identifier[org] operator[SEP] identifier[apache] operator[SEP] identifier[commons] operator[SEP] identifier[httpclient] operator[SEP] identifier[URI] identifier[uri] , identifier[SpiderParam] operator[S...
public static String resolveTemplate(String rawString, Table table) { if (StringUtils.isBlank(rawString)) { return rawString; } return StringUtils.replaceEach(rawString, new String[] { DATABASE_TOKEN, TABLE_TOKEN }, new String[] { table.getDbName(), table.getTableName() }); }
class class_name[name] begin[{] method[resolveTemplate, return_type[type[String]], modifier[public static], parameter[rawString, table]] begin[{] if[call[StringUtils.isBlank, parameter[member[.rawString]]]] begin[{] return[member[.rawString]] else begin[{] None end[}...
Keyword[public] Keyword[static] identifier[String] identifier[resolveTemplate] operator[SEP] identifier[String] identifier[rawString] , identifier[Table] identifier[table] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[rawString] oper...
public static List<Number> findIndexValues(Object self, Number startIndex, Closure closure) { List<Number> result = new ArrayList<Number>(); long count = 0; long startCount = startIndex.longValue(); BooleanClosureWrapper bcw = new BooleanClosureWrapper(closure); for (Iterator ite...
class class_name[name] begin[{] method[findIndexValues, return_type[type[List]], modifier[public static], parameter[self, startIndex, closure]] begin[{] local_variable[type[List], result] local_variable[type[long], count] local_variable[type[long], startCount] local_variable[typ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Number] operator[>] identifier[findIndexValues] operator[SEP] identifier[Object] identifier[self] , identifier[Number] identifier[startIndex] , identifier[Closure] identifier[closure] operator[SEP] { identifier[List] operator[<] identifier...
public static ImmutableList<SoyMsgPart> convertMsgPartsToEmbeddedIcuSyntax( ImmutableList<SoyMsgPart> origMsgParts) { // If origMsgParts doesn't have plural/select parts, simply return it. if (!MsgPartUtils.hasPlrselPart(origMsgParts)) { return origMsgParts; } // Build the new msg parts. ...
class class_name[name] begin[{] method[convertMsgPartsToEmbeddedIcuSyntax, return_type[type[ImmutableList]], modifier[public static], parameter[origMsgParts]] begin[{] if[call[MsgPartUtils.hasPlrselPart, parameter[member[.origMsgParts]]]] begin[{] return[member[.origMsgParts]] ...
Keyword[public] Keyword[static] identifier[ImmutableList] operator[<] identifier[SoyMsgPart] operator[>] identifier[convertMsgPartsToEmbeddedIcuSyntax] operator[SEP] identifier[ImmutableList] operator[<] identifier[SoyMsgPart] operator[>] identifier[origMsgParts] operator[SEP] { Keyword[if] operator[SEP] operato...
public static <T extends ImageGray<T>, TD extends TupleDesc> DetectDescribePoint<T, TD> createFromPremade( Class<T> imageType ) { return (DetectDescribePoint)FactoryDetectDescribe.surfStable( new ConfigFastHessian(1, 2, 200, 1, 9, 4, 4), null,null, imageType); // return (DetectDescribePoint)FactoryDetectDescrib...
class class_name[name] begin[{] method[createFromPremade, return_type[type[DetectDescribePoint]], modifier[public static], parameter[imageType]] begin[{] return[Cast(expression=MethodInvocation(arguments=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selecto...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageGray] operator[<] identifier[T] operator[>] , identifier[TD] Keyword[extends] identifier[TupleDesc] operator[>] identifier[DetectDescribePoint] operator[<] identifier[T] , identifier[TD] operator[>] identifier[createFromPremade...
public Map<Class<?>, ThreadLocalProxy<?>> getConstructorProxies() { if (constructorProxiesAvailable) { return getConstructorProxyMap(false).get(serviceClass); } return null; }
class class_name[name] begin[{] method[getConstructorProxies, return_type[type[Map]], modifier[public], parameter[]] begin[{] if[member[.constructorProxiesAvailable]] begin[{] return[call[.getConstructorProxyMap, parameter[literal[false]]]] else begin[{] None end[}] ...
Keyword[public] identifier[Map] operator[<] identifier[Class] operator[<] operator[?] operator[>] , identifier[ThreadLocalProxy] operator[<] operator[?] operator[>] operator[>] identifier[getConstructorProxies] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[constructorProxiesAvailable] opera...
public void marshall(LogPublishingOption logPublishingOption, ProtocolMarshaller protocolMarshaller) { if (logPublishingOption == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(logPublishingOption.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[logPublishingOption, protocolMarshaller]] begin[{] if[binary_operation[member[.logPublishingOption], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[LogPublishingOption] identifier[logPublishingOption] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[logPublishingOption] operator[==] Other[null] operator[SEP] { ...
public void runTask(Handler<Task> task) { if (currentTask == null) { currentTask = new Task(this); task.handle(currentTask); } else { queue.add(task); } }
class class_name[name] begin[{] method[runTask, return_type[void], modifier[public], parameter[task]] begin[{] if[binary_operation[member[.currentTask], ==, literal[null]]] begin[{] assign[member[.currentTask], ClassCreator(arguments=[This(postfix_operators=[], prefix_op...
Keyword[public] Keyword[void] identifier[runTask] operator[SEP] identifier[Handler] operator[<] identifier[Task] operator[>] identifier[task] operator[SEP] { Keyword[if] operator[SEP] identifier[currentTask] operator[==] Other[null] operator[SEP] { identifier[currentTask] operator[=] Keyword[new] iden...
@Override public JsonElement serialize(DateMidnight src, Type typeOfSrc, JsonSerializationContext context) { final DateTimeFormatter fmt = ISODateTimeFormat.dateTime(); return new JsonPrimitive(fmt.print(src)); }
class class_name[name] begin[{] method[serialize, return_type[type[JsonElement]], modifier[public], parameter[src, typeOfSrc, context]] begin[{] local_variable[type[DateTimeFormatter], fmt] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=src, postfix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[JsonElement] identifier[serialize] operator[SEP] identifier[DateMidnight] identifier[src] , identifier[Type] identifier[typeOfSrc] , identifier[JsonSerializationContext] identifier[context] operator[SEP] { Keyword[final] identifier[DateTimeFormatter...
public ManagedConnection matchManagedConnections(@SuppressWarnings("rawtypes") final Set connectionSet, final Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTr...
class class_name[name] begin[{] method[matchManagedConnections, return_type[type[ManagedConnection]], modifier[public], parameter[connectionSet, subject, cxRequestInfo]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled,...
Keyword[public] identifier[ManagedConnection] identifier[matchManagedConnections] operator[SEP] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[final] identifier[Set] identifier[connectionSet] , Keyword[final] identifier[Subject] identifier[subject] , identifier[Connecti...
public static double angle(Circle circle, double x, double y) { return angle(circle.getX(), circle.getY(), x, y); }
class class_name[name] begin[{] method[angle, return_type[type[double]], modifier[public static], parameter[circle, x, y]] begin[{] return[call[.angle, parameter[call[circle.getX, parameter[]], call[circle.getY, parameter[]], member[.x], member[.y]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[angle] operator[SEP] identifier[Circle] identifier[circle] , Keyword[double] identifier[x] , Keyword[double] identifier[y] operator[SEP] { Keyword[return] identifier[angle] operator[SEP] identifier[circle] operator[SEP] identifier[getX] operator[SEP] o...
public static Distribution guessSigma(DataSet d, DistanceMetric dist) { //we will use a simple strategy of estimating the mean sigma to test based on the pair wise distances of random points //to avoid n^2 work for this, we will use a sqrt(n) sized sample as n increases so that we only do O(n) work...
class class_name[name] begin[{] method[guessSigma, return_type[type[Distribution]], modifier[public static], parameter[d, dist]] begin[{] local_variable[type[List], allVecs] local_variable[type[int], toSample] if[binary_operation[member[.toSample], >, literal[5000]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Distribution] identifier[guessSigma] operator[SEP] identifier[DataSet] identifier[d] , identifier[DistanceMetric] identifier[dist] operator[SEP] { identifier[List] operator[<] identifier[Vec] operator[>] identifier[allVecs] operator[=] identifier[d] operator[SEP] ident...
public void loadAndShow() { CmsRpcAction<CmsRenameInfoBean> infoAction = new CmsRpcAction<CmsRenameInfoBean>() { @Override public void execute() { start(0, true); CmsCoreProvider.getVfsService().getRenameInfo(m_structureId, this); }...
class class_name[name] begin[{] method[loadAndShow, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[CmsRpcAction], infoAction] call[infoAction.execute, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[loadAndShow] operator[SEP] operator[SEP] { identifier[CmsRpcAction] operator[<] identifier[CmsRenameInfoBean] operator[>] identifier[infoAction] operator[=] Keyword[new] identifier[CmsRpcAction] operator[<] identifier[CmsRenameInfoBean] operator[>] operator[SEP] operator[...
public static Version parse(String version) { Assert.hasText(version, "Version must not be null o empty!"); String[] parts = version.trim().split("\\."); int[] intParts = new int[parts.length]; for (int i = 0; i < parts.length; i++) { String input = i == parts.length - 1 ? parts[i].replaceAll(...
class class_name[name] begin[{] method[parse, return_type[type[Version]], modifier[public static], parameter[version]] begin[{] call[Assert.hasText, parameter[member[.version], literal["Version must not be null o empty!"]]] local_variable[type[String], parts] local_variable[type...
Keyword[public] Keyword[static] identifier[Version] identifier[parse] operator[SEP] identifier[String] identifier[version] operator[SEP] { identifier[Assert] operator[SEP] identifier[hasText] operator[SEP] identifier[version] , literal[String] operator[SEP] operator[SEP] identifier[String] operator[SEP] operato...
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.adwords.axis.v201809.rm.AdwordsUserListServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.adwords.axis.v201809.rm.A...
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.adwords.axis.v201809.rm, selectors=[M...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
public static double BrayCurtis(double x1, double y1, double x2, double y2) { double sumN = Math.abs(x1 - x2) + Math.abs(y1 - y2); double sumP = Math.abs(x1 + x2) + Math.abs(y1 + y2); return sumN / sumP; }
class class_name[name] begin[{] method[BrayCurtis, return_type[type[double]], modifier[public static], parameter[x1, y1, x2, y2]] begin[{] local_variable[type[double], sumN] local_variable[type[double], sumP] return[binary_operation[member[.sumN], /, member[.sumP]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[BrayCurtis] operator[SEP] Keyword[double] identifier[x1] , Keyword[double] identifier[y1] , Keyword[double] identifier[x2] , Keyword[double] identifier[y2] operator[SEP] { Keyword[double] identifier[sumN] operator[=] identifier[Math] operator[SEP] ide...
public boolean isInstrumentableClass() { // Don't instrument interfaces if (isInterface) { return false; } // Don't instrument methods that are not in the source if (isSynthetic) { return false; } // Stay away from java.lang.Object ...
class class_name[name] begin[{] method[isInstrumentableClass, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[member[.isInterface]] begin[{] return[literal[false]] else begin[{] None end[}] if[member[.isSynthetic]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[isInstrumentableClass] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isInterface] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[isSynthetic] operator[SEP] { ...
public static void printAllVirtualDns() { List<Host> list = dns.list(); for (Host host : list) { System.out.println(host); } }
class class_name[name] begin[{] method[printAllVirtualDns, return_type[void], modifier[public static], parameter[]] begin[{] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(membe...
Keyword[public] Keyword[static] Keyword[void] identifier[printAllVirtualDns] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Host] operator[>] identifier[list] operator[=] identifier[dns] operator[SEP] identifier[list] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] ide...
public int[] toArray(int[] dest) { if (dest == null || dest.length < size()) { dest = new int[size]; } System.arraycopy(data, 0, dest, 0, size); return dest; }
class class_name[name] begin[{] method[toArray, return_type[type[int]], modifier[public], parameter[dest]] begin[{] if[binary_operation[binary_operation[member[.dest], ==, literal[null]], ||, binary_operation[member[dest.length], <, call[.size, parameter[]]]]] begin[{] a...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[dest] operator[SEP] { Keyword[if] operator[SEP] identifier[dest] operator[==] Other[null] operator[||] identifier[dest] operator[SEP] identifier[length] operator[<] ident...
public void actionRename(I_CmsReport report) { m_report = report; List locales = OpenCms.getLocaleManager().getAvailableLocales(); List xmlPages = getXmlPages(); if (ALL.equals(getParamLocale())) { Iterator i = locales.iterator(); while (i.hasNext()) { ...
class class_name[name] begin[{] method[actionRename, return_type[void], modifier[public], parameter[report]] begin[{] assign[member[.m_report], member[.report]] local_variable[type[List], locales] local_variable[type[List], xmlPages] if[call[ALL.equals, parameter...
Keyword[public] Keyword[void] identifier[actionRename] operator[SEP] identifier[I_CmsReport] identifier[report] operator[SEP] { identifier[m_report] operator[=] identifier[report] operator[SEP] identifier[List] identifier[locales] operator[=] identifier[OpenCms] operator[SEP] identifier[getLocaleManager] operato...
public static IMessageSession acceptSessionFromConnectionStringBuilder(ConnectionStringBuilder amqpConnectionStringBuilder, String sessionId, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException { return Utils.completeFuture(acceptSessionFromConnectionStringBuilderAsync(amqpConnectionString...
class class_name[name] begin[{] method[acceptSessionFromConnectionStringBuilder, return_type[type[IMessageSession]], modifier[public static], parameter[amqpConnectionStringBuilder, sessionId, receiveMode]] begin[{] return[call[Utils.completeFuture, parameter[call[.acceptSessionFromConnectionStringBuild...
Keyword[public] Keyword[static] identifier[IMessageSession] identifier[acceptSessionFromConnectionStringBuilder] operator[SEP] identifier[ConnectionStringBuilder] identifier[amqpConnectionStringBuilder] , identifier[String] identifier[sessionId] , identifier[ReceiveMode] identifier[receiveMode] operator[SEP] Keyword[...
public static byte[] intArrayToBytes(Collection<Integer> values) { ByteBuffer buffer = ByteBuffer.allocate(values.size() * Integer.BYTES); for (int value : values) { buffer.putInt(value); } return buffer.array(); }
class class_name[name] begin[{] method[intArrayToBytes, return_type[type[byte]], modifier[public static], parameter[values]] begin[{] local_variable[type[ByteBuffer], buffer] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Memb...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[intArrayToBytes] operator[SEP] identifier[Collection] operator[<] identifier[Integer] operator[>] identifier[values] operator[SEP] { identifier[ByteBuffer] identifier[buffer] operator[=] identifier[ByteBuffer] operator[SEP] iden...
public static Treenode findNodeByLabel(Treeview tree, String label, boolean caseSensitive) { for (Treenode item : tree.getChildren(Treenode.class)) { if (caseSensitive ? label.equals(item.getLabel()) : label.equalsIgnoreCase(item.getLabel())) { return item; } } ...
class class_name[name] begin[{] method[findNodeByLabel, return_type[type[Treenode]], modifier[public static], parameter[tree, label, caseSensitive]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=TernaryExpression(condition=MemberReference(member=caseSensitive, ...
Keyword[public] Keyword[static] identifier[Treenode] identifier[findNodeByLabel] operator[SEP] identifier[Treeview] identifier[tree] , identifier[String] identifier[label] , Keyword[boolean] identifier[caseSensitive] operator[SEP] { Keyword[for] operator[SEP] identifier[Treenode] identifier[item] operator[:] ...
public ItemRule newParameterItemRule(String parameterName) { ItemRule itemRule = new ItemRule(); itemRule.setName(parameterName); addParameterItemRule(itemRule); return itemRule; }
class class_name[name] begin[{] method[newParameterItemRule, return_type[type[ItemRule]], modifier[public], parameter[parameterName]] begin[{] local_variable[type[ItemRule], itemRule] call[itemRule.setName, parameter[member[.parameterName]]] call[.addParameterItemRule, p...
Keyword[public] identifier[ItemRule] identifier[newParameterItemRule] operator[SEP] identifier[String] identifier[parameterName] operator[SEP] { identifier[ItemRule] identifier[itemRule] operator[=] Keyword[new] identifier[ItemRule] operator[SEP] operator[SEP] operator[SEP] identifier[itemRule] operator[SEP] ide...
public final void setDividerColor(@ColorInt final int color) { this.seekBarColor = color; try { Field divider = getClass().getSuperclass().getDeclaredField("mSelectionDivider"); divider.setAccessible(true); divider.set(this, new ColorDrawable(color)); } catch...
class class_name[name] begin[{] method[setDividerColor, return_type[void], modifier[final public], parameter[color]] begin[{] assign[THIS[member[None.seekBarColor]], member[.color]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[...
Keyword[public] Keyword[final] Keyword[void] identifier[setDividerColor] operator[SEP] annotation[@] identifier[ColorInt] Keyword[final] Keyword[int] identifier[color] operator[SEP] { Keyword[this] operator[SEP] identifier[seekBarColor] operator[=] identifier[color] operator[SEP] Keyword[try] { identi...
public static HttpURLConnection update(final URI rootUri, final TableRequestOptions tableOptions, final UriQueryBuilder queryBuilder, final OperationContext opContext, final String tableName, final String identity, final String eTag) throws IOException, URISyntaxException, StorageException { ...
class class_name[name] begin[{] method[update, return_type[type[HttpURLConnection]], modifier[public static], parameter[rootUri, tableOptions, queryBuilder, opContext, tableName, identity, eTag]] begin[{] local_variable[type[HttpURLConnection], retConnection] call[retConnection.setDoOut...
Keyword[public] Keyword[static] identifier[HttpURLConnection] identifier[update] operator[SEP] Keyword[final] identifier[URI] identifier[rootUri] , Keyword[final] identifier[TableRequestOptions] identifier[tableOptions] , Keyword[final] identifier[UriQueryBuilder] identifier[queryBuilder] , Keyword[final] identifier...
private String ensurePadding(String base64) { int length = base64.length(); if (length % 4 != 0) { StringBuilder sb = new StringBuilder(base64); for (int i = 0; i < length % 4; ++i) { sb.append('='); } base64 = sb.toString(); } ...
class class_name[name] begin[{] method[ensurePadding, return_type[type[String]], modifier[private], parameter[base64]] begin[{] local_variable[type[int], length] if[binary_operation[binary_operation[member[.length], %, literal[4]], !=, literal[0]]] begin[{] local_variable[ty...
Keyword[private] identifier[String] identifier[ensurePadding] operator[SEP] identifier[String] identifier[base64] operator[SEP] { Keyword[int] identifier[length] operator[=] identifier[base64] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[length] ...
@SafeVarargs private static Map<Pattern, Pass> asMap( final Map.Entry<Pattern, Pass>... entries) { final Map<Pattern, Pass> map = new HashMap<>(entries.length); for (final Map.Entry<Pattern, Pass> ent : entries) { map.put(ent.getKey(), ent.getValue()); } return ma...
class class_name[name] begin[{] method[asMap, return_type[type[Map]], modifier[private static], parameter[entries]] begin[{] local_variable[type[Map], map] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argume...
annotation[@] identifier[SafeVarargs] Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[Pattern] , identifier[Pass] operator[>] identifier[asMap] operator[SEP] Keyword[final] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Pattern] , identifier[Pass] operator[>] operator[....
public static LocalDate of(int year, Month month, int dayOfMonth) { YEAR.checkValidValue(year); Objects.requireNonNull(month, "month"); DAY_OF_MONTH.checkValidValue(dayOfMonth); return create(year, month.getValue(), dayOfMonth); }
class class_name[name] begin[{] method[of, return_type[type[LocalDate]], modifier[public static], parameter[year, month, dayOfMonth]] begin[{] call[YEAR.checkValidValue, parameter[member[.year]]] call[Objects.requireNonNull, parameter[member[.month], literal["month"]]] ...
Keyword[public] Keyword[static] identifier[LocalDate] identifier[of] operator[SEP] Keyword[int] identifier[year] , identifier[Month] identifier[month] , Keyword[int] identifier[dayOfMonth] operator[SEP] { identifier[YEAR] operator[SEP] identifier[checkValidValue] operator[SEP] identifier[year] operator[SEP] op...
public Observable<ServiceResponse<IotHubDescriptionInner>> updateWithServiceResponseAsync(String resourceGroupName, String resourceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); ...
class class_name[name] begin[{] method[updateWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, resourceName]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[IotHubDescriptionInner] operator[>] operator[>] identifier[updateWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] operator[SEP] { ...
public void marshall(DeleteSamplingRuleRequest deleteSamplingRuleRequest, ProtocolMarshaller protocolMarshaller) { if (deleteSamplingRuleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(dele...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteSamplingRuleRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteSamplingRuleRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteSamplingRuleRequest] identifier[deleteSamplingRuleRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteSamplingRuleRequest] operator[==] Other[null] op...
public int getAdIndex(int position) { int index = -1; if(position >= getOffsetValue()) index = (position - getOffsetValue()) / (getNoOfDataBetweenAds()+1); //Log.d("POSITION", "index " + index + " for position " + position); return index; }
class class_name[name] begin[{] method[getAdIndex, return_type[type[int]], modifier[public], parameter[position]] begin[{] local_variable[type[int], index] if[binary_operation[member[.position], >=, call[.getOffsetValue, parameter[]]]] begin[{] assign[member[.index], binary_...
Keyword[public] Keyword[int] identifier[getAdIndex] operator[SEP] Keyword[int] identifier[position] operator[SEP] { Keyword[int] identifier[index] operator[=] operator[-] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[position] operator[>=] identifier[getOffsetValue] operator[SEP] operator[SEP] oper...
@NonNull public Observable<T> autoConnect(int numberOfSubscribers, @NonNull Consumer<? super Disposable> connection) { if (numberOfSubscribers <= 0) { this.connect(connection); return RxJavaPlugins.onAssembly(this); } return RxJavaPlugins.onAssembly(new ObservableAuto...
class class_name[name] begin[{] method[autoConnect, return_type[type[Observable]], modifier[public], parameter[numberOfSubscribers, connection]] begin[{] if[binary_operation[member[.numberOfSubscribers], <=, literal[0]]] begin[{] THIS[call[None.connect, parameter[member[...
annotation[@] identifier[NonNull] Keyword[public] identifier[Observable] operator[<] identifier[T] operator[>] identifier[autoConnect] operator[SEP] Keyword[int] identifier[numberOfSubscribers] , annotation[@] identifier[NonNull] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[Disposable] operat...
public String getSkeleton(String pattern) { synchronized (this) { // synchronized since a getter must be thread-safe current.set(pattern, fp, false); return current.toString(); } }
class class_name[name] begin[{] method[getSkeleton, return_type[type[String]], modifier[public], parameter[pattern]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] call[current.set, parameter[member[.pattern], member[.fp], literal[false]]] return[call[current.toStrin...
Keyword[public] identifier[String] identifier[getSkeleton] operator[SEP] identifier[String] identifier[pattern] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { identifier[current] operator[SEP] identifier[set] operator[SEP] identifier[pattern] , identifier[fp] , lit...
public void log(LogLevel level, String msg, Throwable t) { if (level != LogLevel.OFF && level.level <= logLevel.level) logger.add(writers, name, level, msg, t); }
class class_name[name] begin[{] method[log, return_type[void], modifier[public], parameter[level, msg, t]] begin[{] if[binary_operation[binary_operation[member[.level], !=, member[LogLevel.OFF]], &&, binary_operation[member[level.level], <=, member[logLevel.level]]]] begin[{] call[l...
Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[LogLevel] identifier[level] , identifier[String] identifier[msg] , identifier[Throwable] identifier[t] operator[SEP] { Keyword[if] operator[SEP] identifier[level] operator[!=] identifier[LogLevel] operator[SEP] identifier[OFF] operator[&&] ...
public static int findTab(byte [] utf) { return org.apache.hadoop.util.UTF8ByteArrayUtils.findNthByte(utf, 0, utf.length, (byte)'\t', 1); }
class class_name[name] begin[{] method[findTab, return_type[type[int]], modifier[public static], parameter[utf]] begin[{] return[call[org.apache.hadoop.util.UTF8ByteArrayUtils.findNthByte, parameter[member[.utf], literal[0], member[utf.length], Cast(expression=Literal(postfix_operators=[], prefix_opera...
Keyword[public] Keyword[static] Keyword[int] identifier[findTab] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[utf] operator[SEP] { Keyword[return] identifier[org] operator[SEP] identifier[apache] operator[SEP] identifier[hadoop] operator[SEP] identifier[util] operator[SEP] identifier[UTF8By...
public com.google.api.ads.adwords.axis.v201809.cm.SharedSetStatus getStatus() { return status; }
class class_name[name] begin[{] method[getStatus, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.status]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] identifier[SharedSetStatus] identifier[getStatus] ope...
@Override public UpdateGcmChannelResult updateGcmChannel(UpdateGcmChannelRequest request) { request = beforeClientExecution(request); return executeUpdateGcmChannel(request); }
class class_name[name] begin[{] method[updateGcmChannel, return_type[type[UpdateGcmChannelResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateGcmChannel, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[UpdateGcmChannelResult] identifier[updateGcmChannel] operator[SEP] identifier[UpdateGcmChannelRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
public char[] loadPassword(String account) { byte[] pwBytes = loadPassword0(account.getBytes(UTF_8)); if (pwBytes == null) { return null; } else { CharBuffer pwBuf = UTF_8.decode(ByteBuffer.wrap(pwBytes)); char[] pw = new char[pwBuf.remaining()]; pwBuf.get(pw); Arrays.fill(pwBytes, (byte) 0x00); ...
class class_name[name] begin[{] method[loadPassword, return_type[type[char]], modifier[public], parameter[account]] begin[{] local_variable[type[byte], pwBytes] if[binary_operation[member[.pwBytes], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] ...
Keyword[public] Keyword[char] operator[SEP] operator[SEP] identifier[loadPassword] operator[SEP] identifier[String] identifier[account] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[pwBytes] operator[=] identifier[loadPassword0] operator[SEP] identifier[account] operator[SEP] identifier[ge...
static private String resolve(String structure, String representation) throws IOException { String host = "cactus.nci.nih.gov"; String path = "/chemical/structure/" + structure + "/" + representation; RequestConfig config = RequestConfig.custom() .setConnectTimeout(10*1000) .setSocketTimeout(2*1000).bui...
class class_name[name] begin[{] method[resolve, return_type[type[String]], modifier[private static], parameter[structure, representation]] begin[{] local_variable[type[String], host] local_variable[type[String], path] local_variable[type[RequestConfig], config] local_variable[ty...
Keyword[static] Keyword[private] identifier[String] identifier[resolve] operator[SEP] identifier[String] identifier[structure] , identifier[String] identifier[representation] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[host] operator[=] literal[String] operator[SEP] ide...
@Override public Stream<GroupMetadata> findLazy(GroupFilter groupCriteria) { checkNotNull(groupCriteria, "Criteria must be not null"); return groupCriteria.applyFindLazy(criteria -> { if (isAlwaysTruePredicate(criteria.getPredicate()) && isAlwaysTrueP...
class class_name[name] begin[{] method[findLazy, return_type[type[Stream]], modifier[public], parameter[groupCriteria]] begin[{] call[.checkNotNull, parameter[member[.groupCriteria], literal["Criteria must be not null"]]] return[call[groupCriteria.applyFindLazy, parameter[LambdaExpressi...
annotation[@] identifier[Override] Keyword[public] identifier[Stream] operator[<] identifier[GroupMetadata] operator[>] identifier[findLazy] operator[SEP] identifier[GroupFilter] identifier[groupCriteria] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[groupCriteria] , literal[String] operator...
private long doWrap(ByteBuffer[] userBuffers, int off, int len) throws IOException { if(anyAreSet(state, FLAG_CLOSED)) { throw new ClosedChannelException(); } if(outstandingTasks > 0) { return 0; } if(anyAreSet(state, FLAG_WRITE_REQUIRES_READ)) { ...
class class_name[name] begin[{] method[doWrap, return_type[type[long]], modifier[private], parameter[userBuffers, off, len]] begin[{] if[call[.anyAreSet, parameter[member[.state], member[.FLAG_CLOSED]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constr...
Keyword[private] Keyword[long] identifier[doWrap] operator[SEP] identifier[ByteBuffer] operator[SEP] operator[SEP] identifier[userBuffers] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[anyAreSet] operat...
public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance, matchCond); }
class class_name[name] begin[{] method[assignDOM, return_type[type[StyleMap]], modifier[final public static], parameter[doc, encoding, base, media, useInheritance, matchCond]] begin[{] return[call[.assignDOM, parameter[member[.doc], member[.encoding], member[.base], ClassCreator(arguments=[MemberRefere...
Keyword[public] Keyword[static] Keyword[final] identifier[StyleMap] identifier[assignDOM] operator[SEP] identifier[Document] identifier[doc] , identifier[String] identifier[encoding] , identifier[URL] identifier[base] , identifier[String] identifier[media] , Keyword[boolean] identifier[useInheritance] , Keyword[fi...
public MapBuilder addMap(String fieldName, boolean include, Supplier<Map<String, ?>> supplier) { if (include) { Map<String, ?> value = supplier.get(); if (value != null && !value.isEmpty()) { map.put(getFieldName(fieldName), value); } } return ...
class class_name[name] begin[{] method[addMap, return_type[type[MapBuilder]], modifier[public], parameter[fieldName, include, supplier]] begin[{] if[member[.include]] begin[{] local_variable[type[Map], value] if[binary_operation[binary_operation[member[.value...
Keyword[public] identifier[MapBuilder] identifier[addMap] operator[SEP] identifier[String] identifier[fieldName] , Keyword[boolean] identifier[include] , identifier[Supplier] operator[<] identifier[Map] operator[<] identifier[String] , operator[?] operator[>] operator[>] identifier[supplier] operator[SEP] { K...
public static byte[] add(byte[] b1, int off1, int len1, byte[] b2, int off2, int len2) { byte[] b = new byte[len1 + len2]; System.arraycopy(b1, off1, b, 0, len1); System.arraycopy(b2, off2, b, len1, len2); return b; }
class class_name[name] begin[{] method[add, return_type[type[byte]], modifier[public static], parameter[b1, off1, len1, b2, off2, len2]] begin[{] local_variable[type[byte], b] call[System.arraycopy, parameter[member[.b1], member[.off1], member[.b], literal[0], member[.len1]]] ...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[add] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b1] , Keyword[int] identifier[off1] , Keyword[int] identifier[len1] , Keyword[byte] operator[SEP] operator[SEP] identifier[b2] , Keyword[int] identifier[off2] ...
@Override public UpdateGatewaySoftwareNowResult updateGatewaySoftwareNow(UpdateGatewaySoftwareNowRequest request) { request = beforeClientExecution(request); return executeUpdateGatewaySoftwareNow(request); }
class class_name[name] begin[{] method[updateGatewaySoftwareNow, return_type[type[UpdateGatewaySoftwareNowResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateGatewaySoftwar...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateGatewaySoftwareNowResult] identifier[updateGatewaySoftwareNow] operator[SEP] identifier[UpdateGatewaySoftwareNowRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
public void marshall(ListDevEndpointsRequest listDevEndpointsRequest, ProtocolMarshaller protocolMarshaller) { if (listDevEndpointsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listDevEnd...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listDevEndpointsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listDevEndpointsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListDevEndpointsRequest] identifier[listDevEndpointsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listDevEndpointsRequest] operator[==] Other[null] operator...
private void notifyUserProfileInitialized(String deviceID) { deviceID = (deviceID != null) ? deviceID : getCleverTapID(); if (deviceID == null) return; final SyncListener sl; try { sl = getSyncListener(); if (sl != null) { sl.profileDidInitialize...
class class_name[name] begin[{] method[notifyUserProfileInitialized, return_type[void], modifier[private], parameter[deviceID]] begin[{] assign[member[.deviceID], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=deviceID, postfix_operators=[], prefix_operators=[], qua...
Keyword[private] Keyword[void] identifier[notifyUserProfileInitialized] operator[SEP] identifier[String] identifier[deviceID] operator[SEP] { identifier[deviceID] operator[=] operator[SEP] identifier[deviceID] operator[!=] Other[null] operator[SEP] operator[?] identifier[deviceID] operator[:] identifier[getClev...
@Override public DaoResult updateOrCreate(T bo) { if (bo == null) { return new DaoResult(DaoOperationStatus.NOT_FOUND); } try (Connection conn = getConnection(upsertInTransaction)) { return updateOrCreate(conn, bo); } catch (SQLException e) { throw...
class class_name[name] begin[{] method[updateOrCreate, return_type[type[DaoResult]], modifier[public], parameter[bo]] begin[{] if[binary_operation[member[.bo], ==, literal[null]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=NOT_FOUND, postfix_operators=[], prefix_...
annotation[@] identifier[Override] Keyword[public] identifier[DaoResult] identifier[updateOrCreate] operator[SEP] identifier[T] identifier[bo] operator[SEP] { Keyword[if] operator[SEP] identifier[bo] operator[==] Other[null] operator[SEP] { Keyword[return] Keyword[new] identifier[DaoResult] operator[S...
@Override public MediaPicture toPicture(MediaPicture output, final BufferedImage input, long timestamp) { // validate the image validateImage(input); if (output == null) { output = MediaPicture.make(mPictureWidth, mPictureHeight, getPictureType()); } // get the image b...
class class_name[name] begin[{] method[toPicture, return_type[type[MediaPicture]], modifier[public], parameter[output, input, timestamp]] begin[{] call[.validateImage, parameter[member[.input]]] if[binary_operation[member[.output], ==, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[MediaPicture] identifier[toPicture] operator[SEP] identifier[MediaPicture] identifier[output] , Keyword[final] identifier[BufferedImage] identifier[input] , Keyword[long] identifier[timestamp] operator[SEP] { identifier[validateImage] operator[SEP] ...
@Override public String asString(Object object) { // at this point object is guaranteed to be enumeration Enum<?> e = (Enum<?>)object; if(object instanceof OrdinalEnum) { return Integer.toString(e.ordinal()); } return e.name(); }
class class_name[name] begin[{] method[asString, return_type[type[String]], modifier[public], parameter[object]] begin[{] local_variable[type[Enum], e] if[binary_operation[member[.object], instanceof, type[OrdinalEnum]]] begin[{] return[call[Integer.toString, parameter[call[...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[asString] operator[SEP] identifier[Object] identifier[object] operator[SEP] { identifier[Enum] operator[<] operator[?] operator[>] identifier[e] operator[=] operator[SEP] identifier[Enum] operator[<] operator[?] operator[>] operator...
public com.google.api.ads.adwords.axis.v201809.rm.AccountUserListStatus getAccountUserListStatus() { return accountUserListStatus; }
class class_name[name] begin[{] method[getAccountUserListStatus, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.accountUserListStatus]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[rm] operator[SEP] identifier[AccountUserListStatus] identifier[getAccou...
public String xsdToString(final XmlSchema xsd, final String xsltFileName) throws XsdGenerationException { if (_log.isDebugEnabled()) { StringWriter writer = new StringWriter(); xsd.write(writer); _log.debug("6. Writing XML Schema: {}", writer.toString()); ...
class class_name[name] begin[{] method[xsdToString, return_type[type[String]], modifier[public], parameter[xsd, xsltFileName]] begin[{] if[call[_log.isDebugEnabled, parameter[]]] begin[{] local_variable[type[StringWriter], writer] call[xsd.write, parameter[me...
Keyword[public] identifier[String] identifier[xsdToString] operator[SEP] Keyword[final] identifier[XmlSchema] identifier[xsd] , Keyword[final] identifier[String] identifier[xsltFileName] operator[SEP] Keyword[throws] identifier[XsdGenerationException] { Keyword[if] operator[SEP] identifier[_log] operator[SEP] i...
static List<String> flaggedKeyValues(final String flagName, @Nullable Map<?, ?> keyValueMapping) { List<String> result = Lists.newArrayList(); if (keyValueMapping != null && keyValueMapping.size() > 0) { for (Map.Entry<?, ?> entry : keyValueMapping.entrySet()) { result.addAll(string(flagName, entr...
class class_name[name] begin[{] method[flaggedKeyValues, return_type[type[List]], modifier[static], parameter[flagName, keyValueMapping]] begin[{] local_variable[type[List], result] if[binary_operation[binary_operation[member[.keyValueMapping], !=, literal[null]], &&, binary_operation[c...
Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[flaggedKeyValues] operator[SEP] Keyword[final] identifier[String] identifier[flagName] , annotation[@] identifier[Nullable] identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[keyValueMapping] operator[SEP]...
public void sendOnAirCommand(Set<Integer> deviceNumbersOnAir) throws IOException { ensureRunning(); byte[] payload = new byte[CHANNELS_ON_AIR_PAYLOAD.length]; System.arraycopy(CHANNELS_ON_AIR_PAYLOAD, 0, payload, 0, CHANNELS_ON_AIR_PAYLOAD.length); payload[2] = getDeviceNumber(); ...
class class_name[name] begin[{] method[sendOnAirCommand, return_type[void], modifier[public], parameter[deviceNumbersOnAir]] begin[{] call[.ensureRunning, parameter[]] local_variable[type[byte], payload] call[System.arraycopy, parameter[member[.CHANNELS_ON_AIR_PAYLOAD], ...
Keyword[public] Keyword[void] identifier[sendOnAirCommand] operator[SEP] identifier[Set] operator[<] identifier[Integer] operator[>] identifier[deviceNumbersOnAir] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ensureRunning] operator[SEP] operator[SEP] operator[SEP] Keyword[byte] operator[SE...
public void initEndpoints() { switch (this.getVersion()) { case 1: // get number of instances for all command classes on this node. for (ZWaveCommandClass commandClass : this.getNode().getCommandClasses()) { if (commandClass.getCommandClass() == CommandClass.NO_OPERATION) continue; t...
class class_name[name] begin[{] method[initEndpoints, return_type[void], modifier[public], parameter[]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[ForStatement(body=BlockStatement(labe...
Keyword[public] Keyword[void] identifier[initEndpoints] operator[SEP] operator[SEP] { Keyword[switch] operator[SEP] Keyword[this] operator[SEP] identifier[getVersion] operator[SEP] operator[SEP] operator[SEP] { Keyword[case] Other[1] operator[:] Keyword[for] operator[SEP] identifier[ZWaveCommandClass...
public void downloadFile(int fileId, java.io.File target, FileSize size) throws IOException { WebResource builder = getResourceFactory() .getFileResource("/" + fileId); if (size != null) { builder = builder.path("/" + size.name().toLowerCase()); } byte[] data = builder.get(byte[].class); FileUtils.w...
class class_name[name] begin[{] method[downloadFile, return_type[void], modifier[public], parameter[fileId, target, size]] begin[{] local_variable[type[WebResource], builder] if[binary_operation[member[.size], !=, literal[null]]] begin[{] assign[member[.builder],...
Keyword[public] Keyword[void] identifier[downloadFile] operator[SEP] Keyword[int] identifier[fileId] , identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[File] identifier[target] , identifier[FileSize] identifier[size] operator[SEP] Keyword[throws] identifier[IOException] { identifier[WebRe...
public static CommerceTierPriceEntry findByC_ERC(long companyId, String externalReferenceCode) throws com.liferay.commerce.price.list.exception.NoSuchTierPriceEntryException { return getPersistence().findByC_ERC(companyId, externalReferenceCode); }
class class_name[name] begin[{] method[findByC_ERC, return_type[type[CommerceTierPriceEntry]], modifier[public static], parameter[companyId, externalReferenceCode]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceTierPriceEntry] identifier[findByC_ERC] operator[SEP] Keyword[long] identifier[companyId] , identifier[String] identifier[externalReferenceCode] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator...
@Override public boolean disallowRewrites() { boolean rc = getLink().disallowRewrites(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Rewrites disabled: " + rc); } return rc; }
class class_name[name] begin[{] method[disallowRewrites, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], rc] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[disallowRewrites] operator[SEP] operator[SEP] { Keyword[boolean] identifier[rc] operator[=] identifier[getLink] operator[SEP] operator[SEP] operator[SEP] identifier[disallowRewrites] operator[SEP] operator[SEP] operator[SEP] Keyword[i...
protected boolean redirectMatches(String requestedRedirect, String redirectUri) { UriComponents requestedRedirectUri = UriComponentsBuilder.fromUriString(requestedRedirect).build(); UriComponents registeredRedirectUri = UriComponentsBuilder.fromUriString(redirectUri).build(); boolean schemeMatch = isEqual(regist...
class class_name[name] begin[{] method[redirectMatches, return_type[type[boolean]], modifier[protected], parameter[requestedRedirect, redirectUri]] begin[{] local_variable[type[UriComponents], requestedRedirectUri] local_variable[type[UriComponents], registeredRedirectUri] local_variabl...
Keyword[protected] Keyword[boolean] identifier[redirectMatches] operator[SEP] identifier[String] identifier[requestedRedirect] , identifier[String] identifier[redirectUri] operator[SEP] { identifier[UriComponents] identifier[requestedRedirectUri] operator[=] identifier[UriComponentsBuilder] operator[SEP] identi...
private boolean backtrack() { // if B = bottom_of_stack if (bp == 0) { // then fail_and_exit_program return true; } else { // B0 <- STACK[B + STACK[B} + 7] b0 = data.get(bp + data.get(bp) + 7); // P <- STAC...
class class_name[name] begin[{] method[backtrack, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.bp], ==, literal[0]]] begin[{] return[literal[true]] else begin[{] assign[member[.b0], call[data.get, pa...
Keyword[private] Keyword[boolean] identifier[backtrack] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[bp] operator[==] Other[0] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[else] { identifier[b0] operator[=] identifier[data] ope...
private void processFilePath(File file) { try { if (file.getCanonicalPath().toLowerCase().endsWith(".jar") || file.getCanonicalPath().toLowerCase().endsWith(".zip")) { ZipFile zip = new ZipFile(file); Enumeration<? extends ZipEntry> entries = zip....
class class_name[name] begin[{] method[processFilePath, return_type[void], modifier[private], parameter[file]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getCanonicalPath, postfix_operators=[], prefix_operators=[], qualifier=file, s...
Keyword[private] Keyword[void] identifier[processFilePath] operator[SEP] identifier[File] identifier[file] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[getCanonicalPath] operator[SEP] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP...
private void removeNode(TreeNode treeNode) { removeNodeFromIndex(treeNode.getQueryNode()); TreeNode parentNode = getParentTreeNode(treeNode); if (parentNode != null) { accessChildrenRelation(parentNode).removeChild(treeNode); } parentIndex.remove(treeNode); /...
class class_name[name] begin[{] method[removeNode, return_type[void], modifier[private], parameter[treeNode]] begin[{] call[.removeNodeFromIndex, parameter[call[treeNode.getQueryNode, parameter[]]]] local_variable[type[TreeNode], parentNode] if[binary_operation[member[.p...
Keyword[private] Keyword[void] identifier[removeNode] operator[SEP] identifier[TreeNode] identifier[treeNode] operator[SEP] { identifier[removeNodeFromIndex] operator[SEP] identifier[treeNode] operator[SEP] identifier[getQueryNode] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[TreeNode] iden...
static void encode(DerOutputStream out, AlgorithmId algid, BitArray key) throws IOException { DerOutputStream tmp = new DerOutputStream(); algid.encode(tmp); tmp.putUnalignedBitString(key); out.write(DerValue.tag_Sequence, tmp); }
class class_name[name] begin[{] method[encode, return_type[void], modifier[static], parameter[out, algid, key]] begin[{] local_variable[type[DerOutputStream], tmp] call[algid.encode, parameter[member[.tmp]]] call[tmp.putUnalignedBitString, parameter[member[.key]]] ...
Keyword[static] Keyword[void] identifier[encode] operator[SEP] identifier[DerOutputStream] identifier[out] , identifier[AlgorithmId] identifier[algid] , identifier[BitArray] identifier[key] operator[SEP] Keyword[throws] identifier[IOException] { identifier[DerOutputStream] identifier[tmp] operator[=] Keyword[n...
@PrefMetadata(type = CmsHiddenBuiltinPreference.class) public String getExplorerFileEntryOptions() { if (m_settings.getExplorerFileEntryOptions() == null) { return ""; } else { return "" + m_settings.getExplorerFileEntryOptions(); } }
class class_name[name] begin[{] method[getExplorerFileEntryOptions, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[call[m_settings.getExplorerFileEntryOptions, parameter[]], ==, literal[null]]] begin[{] return[literal[""]] else begin[{...
annotation[@] identifier[PrefMetadata] operator[SEP] identifier[type] operator[=] identifier[CmsHiddenBuiltinPreference] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[String] identifier[getExplorerFileEntryOptions] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_setti...
public final static int convertToUTF8Bytes(int unicodeScalar, byte[] outputBytes, int offset, int maxLength) { int dst = offset; int end = offset + maxLength; switch (getUTF8ByteCount(unicodeScalar)) { case 1: if (dst >= end) throw new ArrayIndexOutOfBoundsException(); ...
class class_name[name] begin[{] method[convertToUTF8Bytes, return_type[type[int]], modifier[final public static], parameter[unicodeScalar, outputBytes, offset, maxLength]] begin[{] local_variable[type[int], dst] local_variable[type[int], end] SwitchStatement(cases=[SwitchStatementCase(c...
Keyword[public] Keyword[final] Keyword[static] Keyword[int] identifier[convertToUTF8Bytes] operator[SEP] Keyword[int] identifier[unicodeScalar] , Keyword[byte] operator[SEP] operator[SEP] identifier[outputBytes] , Keyword[int] identifier[offset] , Keyword[int] identifier[maxLength] operator[SEP] { Keyword[int...
private void commitPrepared(Xid xid) throws XAException { try { // Check preconditions. The connection mustn't be used for another // other XA or local transaction, or the COMMIT PREPARED command // would mess it up. if (state != STATE_IDLE || conn.getTransaction().hasBufferedMutations(...
class class_name[name] begin[{] method[commitPrepared, return_type[void], modifier[private], parameter[xid]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[private] Keyword[void] identifier[commitPrepared] operator[SEP] identifier[Xid] identifier[xid] operator[SEP] Keyword[throws] identifier[XAException] { Keyword[try] { Keyword[if] operator[SEP] identifier[state] operator[!=] identifier[STATE_IDLE] operator[||] identifier[conn] operator[SEP] ide...