code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public SlicePredicate toThrift() { SlicePredicate pred = new SlicePredicate(); switch (predicateType) { case ColumnNames: if (columnNames == null ) { return null; } pred.setColumn_names(toThriftColumnNames(columnNames)); break; case Range: Assert.isTrue(countSet, "...
class class_name[name] begin[{] method[toThrift, return_type[type[SlicePredicate]], modifier[public], parameter[]] begin[{] local_variable[type[SlicePredicate], pred] SwitchStatement(cases=[SwitchStatementCase(case=['ColumnNames'], statements=[IfStatement(condition=BinaryOperation(operandl=Memb...
Keyword[public] identifier[SlicePredicate] identifier[toThrift] operator[SEP] operator[SEP] { identifier[SlicePredicate] identifier[pred] operator[=] Keyword[new] identifier[SlicePredicate] operator[SEP] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[predicateType] operator[SEP] { ...
private static Set<Class<?>> findEnumClassesWithFile(final String packageName, final Path dir) { Set<Class<?>> classes = new HashSet<>(); try (Stream<Path> stream = Files.walk(dir)) { stream.filter(entry -> entry.getFileName().toString().endsWith(".class")).forEach(file -> { StringJoiner joiner = new StringJ...
class class_name[name] begin[{] method[findEnumClassesWithFile, return_type[type[Set]], modifier[private static], parameter[packageName, dir]] begin[{] local_variable[type[Set], classes] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[LambdaExpression(body=MethodI...
Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[findEnumClassesWithFile] operator[SEP] Keyword[final] identifier[String] identifier[packageName] , Keyword[final] identifier[Path] identifier[dir] operator[SEP] { identifier[...
public boolean hasChildNodes(int nodeHandle) { int identity = makeNodeIdentity(nodeHandle); int firstChild = _firstch(identity); return firstChild != DTM.NULL; }
class class_name[name] begin[{] method[hasChildNodes, return_type[type[boolean]], modifier[public], parameter[nodeHandle]] begin[{] local_variable[type[int], identity] local_variable[type[int], firstChild] return[binary_operation[member[.firstChild], !=, member[DTM.NULL]]] end[}] EN...
Keyword[public] Keyword[boolean] identifier[hasChildNodes] operator[SEP] Keyword[int] identifier[nodeHandle] operator[SEP] { Keyword[int] identifier[identity] operator[=] identifier[makeNodeIdentity] operator[SEP] identifier[nodeHandle] operator[SEP] operator[SEP] Keyword[int] identifier[firstChild] operator[=] ...
private Context getContext() { Context context = mContext.get(); if (context == null) { throw new IllegalStateException("Context used by the instance has been destroyed."); } return context; }
class class_name[name] begin[{] method[getContext, return_type[type[Context]], modifier[private], parameter[]] begin[{] local_variable[type[Context], context] if[binary_operation[member[.context], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[private] identifier[Context] identifier[getContext] operator[SEP] operator[SEP] { identifier[Context] identifier[context] operator[=] identifier[mContext] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operato...
public boolean connectIfPossible( MonitoringPoint monitoringPoint ) { // check if the other point has this as related id if (ID == monitoringPoint.getRelatedID()) { pfafRelatedMonitoringPointsTable.put(monitoringPoint.getPfatstetterNumber().toString(), monitoringPoint); ...
class class_name[name] begin[{] method[connectIfPossible, return_type[type[boolean]], modifier[public], parameter[monitoringPoint]] begin[{] if[binary_operation[member[.ID], ==, call[monitoringPoint.getRelatedID, parameter[]]]] begin[{] call[pfafRelatedMonitoringPointsTa...
Keyword[public] Keyword[boolean] identifier[connectIfPossible] operator[SEP] identifier[MonitoringPoint] identifier[monitoringPoint] operator[SEP] { Keyword[if] operator[SEP] identifier[ID] operator[==] identifier[monitoringPoint] operator[SEP] identifier[getRelatedID] operator[SEP] operator[SEP] operator[SEP] ...
public static byte[] encodeBytesURL(byte[] source, int pos, int limit, boolean wrap) { return Encoder.encodeBytes(source, pos, limit, wrap, true); }
class class_name[name] begin[{] method[encodeBytesURL, return_type[type[byte]], modifier[public static], parameter[source, pos, limit, wrap]] begin[{] return[call[Encoder.encodeBytes, parameter[member[.source], member[.pos], member[.limit], member[.wrap], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[encodeBytesURL] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[source] , Keyword[int] identifier[pos] , Keyword[int] identifier[limit] , Keyword[boolean] identifier[wrap] operator[SEP] { Keyword[return] id...
public Term getArgument(int index) { if ((arguments == null) || (index > (arguments.length - 1))) { return null; } else { return arguments[index]; } }
class class_name[name] begin[{] method[getArgument, return_type[type[Term]], modifier[public], parameter[index]] begin[{] if[binary_operation[binary_operation[member[.arguments], ==, literal[null]], ||, binary_operation[member[.index], >, binary_operation[member[arguments.length], -, literal[1]...
Keyword[public] identifier[Term] identifier[getArgument] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[arguments] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[index] operator[>] operator[SEP] identifier[arguments] o...
@Override public StartCrawlerResult startCrawler(StartCrawlerRequest request) { request = beforeClientExecution(request); return executeStartCrawler(request); }
class class_name[name] begin[{] method[startCrawler, return_type[type[StartCrawlerResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeStartCrawler, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[StartCrawlerResult] identifier[startCrawler] operator[SEP] identifier[StartCrawlerRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...
public static ValidationMessage<Origin> info(String messageKey, Object... params) { return ValidationMessage.message(Severity.INFO, messageKey, params); }
class class_name[name] begin[{] method[info, return_type[type[ValidationMessage]], modifier[public static], parameter[messageKey, params]] begin[{] return[call[ValidationMessage.message, parameter[member[Severity.INFO], member[.messageKey], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[ValidationMessage] operator[<] identifier[Origin] operator[>] identifier[info] operator[SEP] identifier[String] identifier[messageKey] , identifier[Object] operator[...] identifier[params] operator[SEP] { Keyword[return] identifier[ValidationMessage] operator[SEP] iden...
@Deprecated public WaitConditionBuilder message(String name) { MessageCondition condition = new MessageCondition(); condition.setMessageName(name); container.setCondition(condition); this.buildAndRun(); return new WaitMessageConditionBuilder(condition, this); }
class class_name[name] begin[{] method[message, return_type[type[WaitConditionBuilder]], modifier[public], parameter[name]] begin[{] local_variable[type[MessageCondition], condition] call[condition.setMessageName, parameter[member[.name]]] call[container.setCondition, pa...
annotation[@] identifier[Deprecated] Keyword[public] identifier[WaitConditionBuilder] identifier[message] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[MessageCondition] identifier[condition] operator[=] Keyword[new] identifier[MessageCondition] operator[SEP] operator[SEP] operator...
@PostMapping(path = "{limit}",produces = "application/json") public String queryLimit(@RequestBody String query, @PathVariable int limit) throws Exception { if(query == null || query.length() ==0) return null; try { query = this.appendLimit(query, limit); Logger logger = LogManager.getLo...
class class_name[name] begin[{] method[queryLimit, return_type[type[String]], modifier[public], parameter[query, limit]] begin[{] if[binary_operation[binary_operation[member[.query], ==, literal[null]], ||, binary_operation[call[query.length, parameter[]], ==, literal[0]]]] begin[{] return[lite...
annotation[@] identifier[PostMapping] operator[SEP] identifier[path] operator[=] literal[String] , identifier[produces] operator[=] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[queryLimit] operator[SEP] annotation[@] identifier[RequestBody] identifier[String] identifier[query] , annotat...
public MessageBufferInput reset(MessageBufferInput in) throws IOException { MessageBufferInput newIn = checkNotNull(in, "MessageBufferInput is null"); // Reset the internal states MessageBufferInput old = this.in; this.in = newIn; this.buffer = EMPTY_BUFFER; ...
class class_name[name] begin[{] method[reset, return_type[type[MessageBufferInput]], modifier[public], parameter[in]] begin[{] local_variable[type[MessageBufferInput], newIn] local_variable[type[MessageBufferInput], old] assign[THIS[member[None.in]], member[.newIn]] ...
Keyword[public] identifier[MessageBufferInput] identifier[reset] operator[SEP] identifier[MessageBufferInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { identifier[MessageBufferInput] identifier[newIn] operator[=] identifier[checkNotNull] operator[SEP] identifier[in] , literal[String...
private void nabla_mask( RandomIter elevationIter, WritableRaster nablaRaster, double thNabla ) { int y; double[] z = new double[9]; double derivate2; int[][] v = ModelsEngine.DIR; // grid contains the dimension of pixels according with flow directions double[] grid = ne...
class class_name[name] begin[{] method[nabla_mask, return_type[void], modifier[private], parameter[elevationIter, nablaRaster, thNabla]] begin[{] local_variable[type[int], y] local_variable[type[double], z] local_variable[type[double], derivate2] local_variable[type[int], v] ...
Keyword[private] Keyword[void] identifier[nabla_mask] operator[SEP] identifier[RandomIter] identifier[elevationIter] , identifier[WritableRaster] identifier[nablaRaster] , Keyword[double] identifier[thNabla] operator[SEP] { Keyword[int] identifier[y] operator[SEP] Keyword[double] operator[SEP] operator[SEP] id...
@Pure public static URL getAttributeURLWithDefault(Node document, boolean caseSensitive, URL defaultValue, String... path) { assert document != null : AssertMessages.notNullParameter(0); final String v = getAttributeValue(document, caseSensitive, 0, path); if (v != null && !v.isEmpty()) { final URL url = File...
class class_name[name] begin[{] method[getAttributeURLWithDefault, return_type[type[URL]], modifier[public static], parameter[document, caseSensitive, defaultValue, path]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=document, postfix_operators=[], prefix_operators...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] identifier[URL] identifier[getAttributeURLWithDefault] operator[SEP] identifier[Node] identifier[document] , Keyword[boolean] identifier[caseSensitive] , identifier[URL] identifier[defaultValue] , identifier[String] operator[...] identifier[path] operato...
public Observable<ServiceResponse<Void>> beginExportDataWithServiceResponseAsync(String resourceGroupName, String name, ExportRDBParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } ...
class class_name[name] begin[{] method[beginExportDataWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name, parameters]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ThrowStatement(expre...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Void] operator[>] operator[>] identifier[beginExportDataWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[name] , identifier[ExportRDBParameters]...
public static String getPreference( String preferenceKey, String defaultValue ) { Preferences preferences = Preferences.userRoot().node(PREFS_NODE_NAME); String preference = preferences.get(preferenceKey, defaultValue); return preference; }
class class_name[name] begin[{] method[getPreference, return_type[type[String]], modifier[public static], parameter[preferenceKey, defaultValue]] begin[{] local_variable[type[Preferences], preferences] local_variable[type[String], preference] return[member[.preference]] end[}] END[}...
Keyword[public] Keyword[static] identifier[String] identifier[getPreference] operator[SEP] identifier[String] identifier[preferenceKey] , identifier[String] identifier[defaultValue] operator[SEP] { identifier[Preferences] identifier[preferences] operator[=] identifier[Preferences] operator[SEP] identifier[userR...
private static Method findMethod(Class<?> clazz, Method method) { try { return clazz.getMethod(method.getName(), method.getParameterTypes()); } catch (NoSuchMethodException e) { return null; } }
class class_name[name] begin[{] method[findMethod, return_type[type[Method]], modifier[private static], parameter[clazz, method]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[],...
Keyword[private] Keyword[static] identifier[Method] identifier[findMethod] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[Method] identifier[method] operator[SEP] { Keyword[try] { Keyword[return] identifier[clazz] operator[SEP] identifier[getMethod]...
protected void processPlainSelect(PlainSelect plainSelect, int level) { if (level > 1) { if (isNotEmptyList(plainSelect.getOrderByElements())) { if (plainSelect.getTop() == null) { plainSelect.setTop(TOP100_PERCENT); } } } ...
class class_name[name] begin[{] method[processPlainSelect, return_type[void], modifier[protected], parameter[plainSelect, level]] begin[{] if[binary_operation[member[.level], >, literal[1]]] begin[{] if[call[.isNotEmptyList, parameter[call[plainSelect.getOrderByElements,...
Keyword[protected] Keyword[void] identifier[processPlainSelect] operator[SEP] identifier[PlainSelect] identifier[plainSelect] , Keyword[int] identifier[level] operator[SEP] { Keyword[if] operator[SEP] identifier[level] operator[>] Other[1] operator[SEP] { Keyword[if] operator[SEP] identifier[isNotEmp...
public static SecretKey newSecretKey(final char[] password, final String algorithm) throws NoSuchAlgorithmException, InvalidKeySpecException { final PBEKeySpec pbeKeySpec = new PBEKeySpec(password); final SecretKeyFactory secretKeyFactory = SecretKeyFactory.getInstance(algorithm); final SecretKey secretKey = s...
class class_name[name] begin[{] method[newSecretKey, return_type[type[SecretKey]], modifier[public static], parameter[password, algorithm]] begin[{] local_variable[type[PBEKeySpec], pbeKeySpec] local_variable[type[SecretKeyFactory], secretKeyFactory] local_variable[type[SecretKey], secr...
Keyword[public] Keyword[static] identifier[SecretKey] identifier[newSecretKey] operator[SEP] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[password] , Keyword[final] identifier[String] identifier[algorithm] operator[SEP] Keyword[throws] identifier[NoSuchAlgorithmException] , identifier[InvalidKe...
public static <T> T await(CompletableFuture<T> future) throws ExecutionException, InterruptedException { try { return Objects.requireNonNull(future, "Completable Future must be non-null.").get(BIG_DELAY_NANOS, TimeUnit.NANOSECONDS); } catch (java.util.concurrent.TimeoutException e) { throw...
class class_name[name] begin[{] method[await, return_type[type[T]], modifier[public static], parameter[future]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=future, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Litera...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[await] operator[SEP] identifier[CompletableFuture] operator[<] identifier[T] operator[>] identifier[future] operator[SEP] Keyword[throws] identifier[ExecutionException] , identifier[InterruptedException] { Keyword[try...
public DevicePipe writeReadPipe(DeviceProxy deviceProxy, DevicePipe devicePipe) throws DevFailed { // ToDo build_connection(deviceProxy); if (deviceProxy.idl_version<5) Except.throw_exception("TangoApi_NOT_SUPPORTED", "Pipe not supported in IDL " + deviceProxy.id...
class class_name[name] begin[{] method[writeReadPipe, return_type[type[DevicePipe]], modifier[public], parameter[deviceProxy, devicePipe]] begin[{] call[.build_connection, parameter[member[.deviceProxy]]] if[binary_operation[member[deviceProxy.idl_version], <, literal[5]]] begin...
Keyword[public] identifier[DevicePipe] identifier[writeReadPipe] operator[SEP] identifier[DeviceProxy] identifier[deviceProxy] , identifier[DevicePipe] identifier[devicePipe] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[build_connection] operator[SEP] identifier[deviceProxy] operator[SEP] op...
public static <T> Function0<T> memoizeSupplier(final Supplier<T> s) { AtomicReference value = new AtomicReference<>( UNSET); return ()->{ Object val = value.get(); if (val == UNSET) { synchronized (UNSET){ if(value.get()==UNSET) { ...
class class_name[name] begin[{] method[memoizeSupplier, return_type[type[Function0]], modifier[public static], parameter[s]] begin[{] local_variable[type[AtomicReference], value] return[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[]...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Function0] operator[<] identifier[T] operator[>] identifier[memoizeSupplier] operator[SEP] Keyword[final] identifier[Supplier] operator[<] identifier[T] operator[>] identifier[s] operator[SEP] { identifier[AtomicReference] identifie...
protected void close() { if (!m_enabled) { return; } m_openClose.setDown(false); m_popup.hide(); m_selectBoxState.setValue(I_CmsLayoutBundle.INSTANCE.generalCss().cornerAll()); }
class class_name[name] begin[{] method[close, return_type[void], modifier[protected], parameter[]] begin[{] if[member[.m_enabled]] begin[{] return[None] else begin[{] None end[}] call[m_openClose.setDown, parameter[literal[false]]] cal...
Keyword[protected] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_enabled] operator[SEP] { Keyword[return] operator[SEP] } identifier[m_openClose] operator[SEP] identifier[setDown] operator[SEP] literal[boolean] operator[S...
private void addInitializedType(final int abstractType) { // Create and/or resize the initializations array if necessary. if (initializations == null) { initializations = new int[2]; } int initializationsLength = initializations.length; if (initializationCount >= initializationsLength) { ...
class class_name[name] begin[{] method[addInitializedType, return_type[void], modifier[private], parameter[abstractType]] begin[{] if[binary_operation[member[.initializations], ==, literal[null]]] begin[{] assign[member[.initializations], ArrayCreator(dimensions=[Literal...
Keyword[private] Keyword[void] identifier[addInitializedType] operator[SEP] Keyword[final] Keyword[int] identifier[abstractType] operator[SEP] { Keyword[if] operator[SEP] identifier[initializations] operator[==] Other[null] operator[SEP] { identifier[initializations] operator[=] Keyword[new] Keyword[i...
@Pure public static Class<?> getContextClass() throws AndroidException { try { final ClassLoader loader = ClassLoaderFinder.findClassLoader(); return Class.forName("android.content.Context", true, loader); //$NON-NLS-1$ } catch (Throwable e) { throw new AndroidException(e); } }
class class_name[name] begin[{] method[getContextClass, return_type[type[Class]], modifier[public static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=findClassLoader,...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[getContextClass] operator[SEP] operator[SEP] Keyword[throws] identifier[AndroidException] { Keyword[try] { Keyword[final] identifier[ClassLoader] identifier[loader] operator[...
protected void bicoCFUpdate(ClusteringTreeNode x) { // Starts with the global root node as the current root node ClusteringTreeNode r = this.root; int i = 1; while (true) { ClusteringTreeNode y = r.nearestChild(x.getCenter()); // Checks if the node can not be merged to the current level if (r.hasNoChil...
class class_name[name] begin[{] method[bicoCFUpdate, return_type[void], modifier[protected], parameter[x]] begin[{] local_variable[type[ClusteringTreeNode], r] local_variable[type[int], i] while[literal[true]] begin[{] local_variable[type[ClusteringTreeNode], y] ...
Keyword[protected] Keyword[void] identifier[bicoCFUpdate] operator[SEP] identifier[ClusteringTreeNode] identifier[x] operator[SEP] { identifier[ClusteringTreeNode] identifier[r] operator[=] Keyword[this] operator[SEP] identifier[root] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] Ke...
public List<Class<Enum>> getOptionGroups() { return getOptions().stream().<Class<Enum>>map(Enum::getDeclaringClass).distinct() .sorted(Comparator.comparing(Class::getSimpleName)) .collect(Collectors.toList()); }
class class_name[name] begin[{] method[getOptionGroups, return_type[type[List]], modifier[public], parameter[]] begin[{] return[call[.getOptions, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Class] operator[<] identifier[Enum] operator[>] operator[>] identifier[getOptionGroups] operator[SEP] operator[SEP] { Keyword[return] identifier[getOptions] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SE...
public static boolean hasAnonymousKeyReference(ClassDescriptor cld, ObjectReferenceDescriptor rds) { boolean result = false; FieldDescriptor[] fkFields = rds.getForeignKeyFieldDescriptors(cld); for(int i = 0; i < fkFields.length; i++) { FieldDescriptor fkField = fkF...
class class_name[name] begin[{] method[hasAnonymousKeyReference, return_type[type[boolean]], modifier[public static], parameter[cld, rds]] begin[{] local_variable[type[boolean], result] local_variable[type[FieldDescriptor], fkFields] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasAnonymousKeyReference] operator[SEP] identifier[ClassDescriptor] identifier[cld] , identifier[ObjectReferenceDescriptor] identifier[rds] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] identifier[FieldD...
@Nullable protected final SSLSession sslSession() { checkState(!sessionProtocol.isTls() || sslSession != null, "sslSession must be set for a TLS-enabled protocol: %s", sessionProtocol); return sessionProtocol.isTls() ? sslSession : null; }
class class_name[name] begin[{] method[sslSession, return_type[type[SSLSession]], modifier[final protected], parameter[]] begin[{] call[.checkState, parameter[binary_operation[call[sessionProtocol.isTls, parameter[]], ||, binary_operation[member[.sslSession], !=, literal[null]]], literal["sslSe...
annotation[@] identifier[Nullable] Keyword[protected] Keyword[final] identifier[SSLSession] identifier[sslSession] operator[SEP] operator[SEP] { identifier[checkState] operator[SEP] operator[!] identifier[sessionProtocol] operator[SEP] identifier[isTls] operator[SEP] operator[SEP] operator[||] identifier[sslSess...
public boolean removeReference(K key, ServiceReference<V> reference) { if (key == null || reference == null) return false; ConcurrentServiceReferenceElement<V> element = new ConcurrentServiceReferenceElement<V>(referenceName, reference); return elementMap.remove(key, element); }
class class_name[name] begin[{] method[removeReference, return_type[type[boolean]], modifier[public], parameter[key, reference]] begin[{] if[binary_operation[binary_operation[member[.key], ==, literal[null]], ||, binary_operation[member[.reference], ==, literal[null]]]] begin[{] return[literal[...
Keyword[public] Keyword[boolean] identifier[removeReference] operator[SEP] identifier[K] identifier[key] , identifier[ServiceReference] operator[<] identifier[V] operator[>] identifier[reference] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[||] identifier[reference...
@Override protected void _from(ObjectInput in) throws IOException, ClassNotFoundException { documentTable = new DocumentTable(); documentTable.readExternal(in); namespaceTable = new NamespaceTable(); namespaceTable.readExternal(in); parameterTable = new ParameterT...
class class_name[name] begin[{] method[_from, return_type[void], modifier[protected], parameter[in]] begin[{] assign[member[.documentTable], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Refer...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[_from] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { identifier[documentTable] operator[=] Keyword[new] identifier[DocumentTable] ope...
public static AirlineFlightUpdateTemplateBuilder addAirlineFlightUpdateTemplate( String introMessage, String locale, String pnrNumber, UpdateType updateType) { return new AirlineFlightUpdateTemplateBuilder(introMessage, locale, pnrNumber, updateType); }
class class_name[name] begin[{] method[addAirlineFlightUpdateTemplate, return_type[type[AirlineFlightUpdateTemplateBuilder]], modifier[public static], parameter[introMessage, locale, pnrNumber, updateType]] begin[{] return[ClassCreator(arguments=[MemberReference(member=introMessage, postfix_operators=[...
Keyword[public] Keyword[static] identifier[AirlineFlightUpdateTemplateBuilder] identifier[addAirlineFlightUpdateTemplate] operator[SEP] identifier[String] identifier[introMessage] , identifier[String] identifier[locale] , identifier[String] identifier[pnrNumber] , identifier[UpdateType] identifier[updateType] operat...
@Override public String recv(InputStream ins) throws IOException { FileOutputStream out = null; InputStream in = null; try { out = new FileOutputStream(fileName); in = new BufferedInputStream(ins); // 通过ioutil 对接输入输出流,实现文件下载 IOUtils.copy(in, ou...
class class_name[name] begin[{] method[recv, return_type[type[String]], modifier[public], parameter[ins]] begin[{] local_variable[type[FileOutputStream], out] local_variable[type[InputStream], in] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[recv] operator[SEP] identifier[InputStream] identifier[ins] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileOutputStream] identifier[out] operator[=] Other[null] operator[SEP] identifier[InputStream] identifie...
@Before public void setUp() { defineApplicationLocales(); clearKeys(); List<Key> keys = new ArrayList<>(); keys.add(createKey(KEY_DEFAULT, false, false, false)); Key outdatedKey = createKey(KEY_OUTDATED, false, false, false); outdatedKey.setOutdated(); keys...
class class_name[name] begin[{] method[setUp, return_type[void], modifier[public], parameter[]] begin[{] call[.defineApplicationLocales, parameter[]] call[.clearKeys, parameter[]] local_variable[type[List], keys] call[keys.add, parameter[call[.createKey, ...
annotation[@] identifier[Before] Keyword[public] Keyword[void] identifier[setUp] operator[SEP] operator[SEP] { identifier[defineApplicationLocales] operator[SEP] operator[SEP] operator[SEP] identifier[clearKeys] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Key] operator[>] id...
public void startProcessing(Database db, HashMap<Table, String> matViewMap, TreeSet<String> exportTableNames) throws VoltCompilerException { HashSet <String> viewTableNames = new HashSet<>(); for (Entry<Table, String> entry : matViewMap.entrySet()) { viewTableNames.add(entry.getK...
class class_name[name] begin[{] method[startProcessing, return_type[void], modifier[public], parameter[db, matViewMap, exportTableNames]] begin[{] local_variable[type[HashSet], viewTableNames] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocati...
Keyword[public] Keyword[void] identifier[startProcessing] operator[SEP] identifier[Database] identifier[db] , identifier[HashMap] operator[<] identifier[Table] , identifier[String] operator[>] identifier[matViewMap] , identifier[TreeSet] operator[<] identifier[String] operator[>] identifier[exportTableNames] operato...
@Override public NutMap pickBy(Pattern p, boolean isNot) { // 一定不匹配 if (null == p) { return isNot ? this.duplicate() : new NutMap(); } // 挑选 NutMap re = new NutMap(); for (Map.Entry<String, Object> en : this.entrySet()) { String key ...
class class_name[name] begin[{] method[pickBy, return_type[type[NutMap]], modifier[public], parameter[p, isNot]] begin[{] if[binary_operation[literal[null], ==, member[.p]]] begin[{] return[TernaryExpression(condition=MemberReference(member=isNot, postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] identifier[NutMap] identifier[pickBy] operator[SEP] identifier[Pattern] identifier[p] , Keyword[boolean] identifier[isNot] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[p] operator[SEP] { Keyword[return] identifier[isN...
public boolean analyzeRound(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { parseBindType(roundEnv); // Put all @BindSqlType elements in beanElements for (Element item : roundEnv.getElementsAnnotatedWith(BindSqlType.class)) { if (item.getKind() != ElementKind.CLASS) { String msg = Str...
class class_name[name] begin[{] method[analyzeRound, return_type[type[boolean]], modifier[public], parameter[annotations, roundEnv]] begin[{] call[.parseBindType, parameter[member[.roundEnv]]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation...
Keyword[public] Keyword[boolean] identifier[analyzeRound] operator[SEP] identifier[Set] operator[<] operator[?] Keyword[extends] identifier[TypeElement] operator[>] identifier[annotations] , identifier[RoundEnvironment] identifier[roundEnv] operator[SEP] { identifier[parseBindType] operator[SEP] identifier[roun...
private static void writeObjectByReflection(final Kryo kryo, final Output output, final Object obj) { val className = obj.getClass().getCanonicalName(); kryo.writeObject(output, className); kryo.writeObject(output, obj); }
class class_name[name] begin[{] method[writeObjectByReflection, return_type[void], modifier[private static], parameter[kryo, output, obj]] begin[{] local_variable[type[val], className] call[kryo.writeObject, parameter[member[.output], member[.className]]] call[kryo.write...
Keyword[private] Keyword[static] Keyword[void] identifier[writeObjectByReflection] operator[SEP] Keyword[final] identifier[Kryo] identifier[kryo] , Keyword[final] identifier[Output] identifier[output] , Keyword[final] identifier[Object] identifier[obj] operator[SEP] { identifier[val] identifier[className] oper...
protected void loadImplementationsInJar( String parentPackage, InputStream parentFileStream, ClassLoader loader, String parentFileName, String grandparentFileName) throws IOException { Set<String> classFiles = classFilesByLocation.get(parentFileName); ...
class class_name[name] begin[{] method[loadImplementationsInJar, return_type[void], modifier[protected], parameter[parentPackage, parentFileStream, loader, parentFileName, grandparentFileName]] begin[{] local_variable[type[Set], classFiles] if[binary_operation[member[.classFiles], ==, l...
Keyword[protected] Keyword[void] identifier[loadImplementationsInJar] operator[SEP] identifier[String] identifier[parentPackage] , identifier[InputStream] identifier[parentFileStream] , identifier[ClassLoader] identifier[loader] , identifier[String] identifier[parentFileName] , identifier[String] identifier[grandpa...
public UnknownGenericException rethrowWithType(final Class<?> type) { final boolean sameType = contextType != null && contextType.equals(type); if (!sameType && contextType != null) { // not allow changing type if it's already set throw new IllegalStateException("Context type can...
class class_name[name] begin[{] method[rethrowWithType, return_type[type[UnknownGenericException]], modifier[public], parameter[type]] begin[{] local_variable[type[boolean], sameType] if[binary_operation[member[.sameType], &&, binary_operation[member[.contextType], !=, literal[null]]]] ...
Keyword[public] identifier[UnknownGenericException] identifier[rethrowWithType] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { Keyword[final] Keyword[boolean] identifier[sameType] operator[=] identifier[contextType] operator[!=] Other[null] ope...
protected Object decode(ChannelHandlerContext ctx, ByteBuf in) throws Exception { if (discardingTooLongFrame) { long bytesToDiscard = this.bytesToDiscard; int localBytesToDiscard = (int) Math.min(bytesToDiscard, in.readableBytes()); in.skipBytes(localBytesToDiscard); bytesToDiscard -= localB...
class class_name[name] begin[{] method[decode, return_type[type[Object]], modifier[protected], parameter[ctx, in]] begin[{] if[member[.discardingTooLongFrame]] begin[{] local_variable[type[long], bytesToDiscard] local_variable[type[int], localBytesToDiscard] ...
Keyword[protected] identifier[Object] identifier[decode] operator[SEP] identifier[ChannelHandlerContext] identifier[ctx] , identifier[ByteBuf] identifier[in] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[discardingTooLongFrame] operator[SEP] { Keyword[long...
private AFTPClient actionGetCurrentURL() throws PageException, IOException { AFTPClient client = getClient(); String pwd = client.printWorkingDirectory(); Struct cfftp = writeCfftp(client); cfftp.setEL("returnValue", client.getPrefix() + "://" + client.getRemoteAddress().getHostName() + pwd); return client; }
class class_name[name] begin[{] method[actionGetCurrentURL, return_type[type[AFTPClient]], modifier[private], parameter[]] begin[{] local_variable[type[AFTPClient], client] local_variable[type[String], pwd] local_variable[type[Struct], cfftp] call[cfftp.setEL, parameter[...
Keyword[private] identifier[AFTPClient] identifier[actionGetCurrentURL] operator[SEP] operator[SEP] Keyword[throws] identifier[PageException] , identifier[IOException] { identifier[AFTPClient] identifier[client] operator[=] identifier[getClient] operator[SEP] operator[SEP] operator[SEP] identifier[String] ident...
public CMASnapshot fetchOneSnapshot(CMAEntry entry, String snapshotId) { assertNotNull(entry, "entry"); assertNotNull(snapshotId, "snapshotId"); final String entryId = getResourceIdOrThrow(entry, "entry"); final String spaceId = getSpaceIdOrThrow(entry, "entry"); final String environmentId = entry....
class class_name[name] begin[{] method[fetchOneSnapshot, return_type[type[CMASnapshot]], modifier[public], parameter[entry, snapshotId]] begin[{] call[.assertNotNull, parameter[member[.entry], literal["entry"]]] call[.assertNotNull, parameter[member[.snapshotId], literal["snapsh...
Keyword[public] identifier[CMASnapshot] identifier[fetchOneSnapshot] operator[SEP] identifier[CMAEntry] identifier[entry] , identifier[String] identifier[snapshotId] operator[SEP] { identifier[assertNotNull] operator[SEP] identifier[entry] , literal[String] operator[SEP] operator[SEP] identifier[assertNotNull]...
public void addTangoAttConfigListener(ITangoAttConfigListener listener, String attrName, boolean stateless) throws DevFailed { addTangoAttConfigListener(listener, attrName, new String[0], stateless); }
class class_name[name] begin[{] method[addTangoAttConfigListener, return_type[void], modifier[public], parameter[listener, attrName, stateless]] begin[{] call[.addTangoAttConfigListener, parameter[member[.listener], member[.attrName], ArrayCreator(dimensions=[Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[void] identifier[addTangoAttConfigListener] operator[SEP] identifier[ITangoAttConfigListener] identifier[listener] , identifier[String] identifier[attrName] , Keyword[boolean] identifier[stateless] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[addTangoAttConfigListene...
public DescribeConfigurationRecordersResult withConfigurationRecorders(ConfigurationRecorder... configurationRecorders) { if (this.configurationRecorders == null) { setConfigurationRecorders(new com.amazonaws.internal.SdkInternalList<ConfigurationRecorder>(configurationRecorders.length)); } ...
class class_name[name] begin[{] method[withConfigurationRecorders, return_type[type[DescribeConfigurationRecordersResult]], modifier[public], parameter[configurationRecorders]] begin[{] if[binary_operation[THIS[member[None.configurationRecorders]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[DescribeConfigurationRecordersResult] identifier[withConfigurationRecorders] operator[SEP] identifier[ConfigurationRecorder] operator[...] identifier[configurationRecorders] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[configurationRecorders] operato...
@Override public void writeHeader() throws IOException { // create a buffer ByteBuffer buf = ByteBuffer.allocate(HEADER_LENGTH + 4); // FLVHeader (9 bytes) + PreviousTagSize0 (4 bytes) // instance an flv header FLVHeader flvHeader = new FLVHeader(); flvHeader.setFlagAudio(aud...
class class_name[name] begin[{] method[writeHeader, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ByteBuffer], buf] local_variable[type[FLVHeader], flvHeader] call[flvHeader.setFlagAudio, parameter[TernaryExpression(condition=BinaryOperation(oper...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeHeader] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteBuffer] identifier[buf] operator[=] identifier[ByteBuffer] operator[SEP] identifier[allocate] operator[SEP] identifier[HEADER_LENGTH] opera...
@Override public void onBrowserEvent(Event event) { switch (DOM.eventGetType(event)) { case Event.ONMOUSEUP: Event.releaseCapture(getElement()); m_capturedMouse = false; break; case Event.ONMOUSEDOWN: Event.set...
class class_name[name] begin[{] method[onBrowserEvent, return_type[void], modifier[public], parameter[event]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=ONMOUSEUP, postfix_operators=[], prefix_operators=[], qualifier=Event, selectors=[])], statements=[StatementExpr...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onBrowserEvent] operator[SEP] identifier[Event] identifier[event] operator[SEP] { Keyword[switch] operator[SEP] identifier[DOM] operator[SEP] identifier[eventGetType] operator[SEP] identifier[event] operator[SEP] operator[SEP] { ...
public static <C> C getInstanceOf( Object argument, Class<C> expectedClass, String name ) { isInstanceOf(argument, expectedClass, name); return expectedClass.cast(argument); }
class class_name[name] begin[{] method[getInstanceOf, return_type[type[C]], modifier[public static], parameter[argument, expectedClass, name]] begin[{] call[.isInstanceOf, parameter[member[.argument], member[.expectedClass], member[.name]]] return[call[expectedClass.cast, parameter[memb...
Keyword[public] Keyword[static] operator[<] identifier[C] operator[>] identifier[C] identifier[getInstanceOf] operator[SEP] identifier[Object] identifier[argument] , identifier[Class] operator[<] identifier[C] operator[>] identifier[expectedClass] , identifier[String] identifier[name] operator[SEP] { identifie...
@GwtIncompatible // reflection public static Field getField(Enum<?> enumValue) { Class<?> clazz = enumValue.getDeclaringClass(); try { return clazz.getDeclaredField(enumValue.name()); } catch (NoSuchFieldException impossible) { throw new AssertionError(impossible); } }
class class_name[name] begin[{] method[getField, return_type[type[Field]], modifier[public static], parameter[enumValue]] begin[{] local_variable[type[Class], clazz] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=name, postfix_op...
annotation[@] identifier[GwtIncompatible] Keyword[public] Keyword[static] identifier[Field] identifier[getField] operator[SEP] identifier[Enum] operator[<] operator[?] operator[>] identifier[enumValue] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[=] identifier[...
public static Matcher<ExpressionTree> methodReturnsNonNull() { return anyOf( instanceMethod().onDescendantOf("java.lang.Object").named("toString"), instanceMethod().onExactClass("java.lang.String"), staticMethod().onClass("java.lang.String"), instanceMethod().onExactClass("java.util....
class class_name[name] begin[{] method[methodReturnsNonNull, return_type[type[Matcher]], modifier[public static], parameter[]] begin[{] return[call[.anyOf, parameter[call[.instanceMethod, parameter[]], call[.instanceMethod, parameter[]], call[.staticMethod, parameter[]], call[.instanceMethod, parameter...
Keyword[public] Keyword[static] identifier[Matcher] operator[<] identifier[ExpressionTree] operator[>] identifier[methodReturnsNonNull] operator[SEP] operator[SEP] { Keyword[return] identifier[anyOf] operator[SEP] identifier[instanceMethod] operator[SEP] operator[SEP] operator[SEP] identifier[onDescendantOf] ope...
private static boolean envelopeTouchesEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (env_a.getHeight() <= tolerance && env_a.getWidth() <= tolerance) {// treat // env_a // as // point Point2D pt_...
class class_name[name] begin[{] method[envelopeTouchesEnvelope_, return_type[type[boolean]], modifier[private static], parameter[env_a, env_b, tolerance, progress_tracker]] begin[{] if[binary_operation[binary_operation[call[env_a.getHeight, parameter[]], <=, member[.tolerance]], &&, binary_oper...
Keyword[private] Keyword[static] Keyword[boolean] identifier[envelopeTouchesEnvelope_] operator[SEP] identifier[Envelope2D] identifier[env_a] , identifier[Envelope2D] identifier[env_b] , Keyword[double] identifier[tolerance] , identifier[ProgressTracker] identifier[progress_tracker] operator[SEP] { Keyword[if...
public String printExceptionMessage(Exception e, String message, String level) { if (e.getMessage() != null) message += "\n" + e.getClass().getName() + " - " + e.getMessage(); else message += "\n" + e.getClass().getName(); switch (level) { case "debug": this.messageHandler.debug(this...
class class_name[name] begin[{] method[printExceptionMessage, return_type[type[String]], modifier[public], parameter[e, message, level]] begin[{] if[binary_operation[call[e.getMessage, parameter[]], !=, literal[null]]] begin[{] assign[member[.message], binary_operation[binary_operat...
Keyword[public] identifier[String] identifier[printExceptionMessage] operator[SEP] identifier[Exception] identifier[e] , identifier[String] identifier[message] , identifier[String] identifier[level] operator[SEP] { Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] opera...
@Override public Request<ReplaceNetworkAclAssociationRequest> getDryRunRequest() { Request<ReplaceNetworkAclAssociationRequest> request = new ReplaceNetworkAclAssociationRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
class class_name[name] begin[{] method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{] local_variable[type[Request], request] call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]] return[m...
annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[ReplaceNetworkAclAssociationRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] { identifier[Request] operator[<] identifier[ReplaceNetworkAclAssociationRequest] operator[>] identifier[request]...
public static <T1> Func1<T1, Observable<Void>> toAsync(Action1<? super T1> action) { return toAsync(action, Schedulers.computation()); }
class class_name[name] begin[{] method[toAsync, return_type[type[Func1]], modifier[public static], parameter[action]] begin[{] return[call[.toAsync, parameter[member[.action], call[Schedulers.computation, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T1] operator[>] identifier[Func1] operator[<] identifier[T1] , identifier[Observable] operator[<] identifier[Void] operator[>] operator[>] identifier[toAsync] operator[SEP] identifier[Action1] operator[<] operator[?] Keyword[super] identifier[T1] operator[>] ident...
public static void pass(String message) { if (Boolean.getBoolean("visibleassertions.silence") || Boolean.getBoolean("visibleassertions.silence.passes")) { return; } System.out.println(" " + green(TICK_MARK + " " + message)); }
class class_name[name] begin[{] method[pass, return_type[void], modifier[public static], parameter[message]] begin[{] if[binary_operation[call[Boolean.getBoolean, parameter[literal["visibleassertions.silence"]]], ||, call[Boolean.getBoolean, parameter[literal["visibleassertions.silence.passes"]...
Keyword[public] Keyword[static] Keyword[void] identifier[pass] operator[SEP] identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[Boolean] operator[SEP] identifier[getBoolean] operator[SEP] literal[String] operator[SEP] operator[||] identifier[Boolean] operator[SEP] identif...
public static AttributeType get(final long _id) throws CacheReloadException { final Cache<Long, AttributeType> cache = InfinispanCache.get().<Long, AttributeType>getCache( AttributeType.IDCACHE); if (!cache.containsKey(_id)) { AttributeType.getAttributeTyp...
class class_name[name] begin[{] method[get, return_type[type[AttributeType]], modifier[public static], parameter[_id]] begin[{] local_variable[type[Cache], cache] if[call[cache.containsKey, parameter[member[._id]]]] begin[{] call[AttributeType.getAttributeTypeFro...
Keyword[public] Keyword[static] identifier[AttributeType] identifier[get] operator[SEP] Keyword[final] Keyword[long] identifier[_id] operator[SEP] Keyword[throws] identifier[CacheReloadException] { Keyword[final] identifier[Cache] operator[<] identifier[Long] , identifier[AttributeType] operator[>] identifier[c...
public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if ((MenuConstants.FORMLINK.equalsIgnoreCase(strCommand)) || (MenuConstants.FORM.equalsIgnoreCase(strCommand))) return true; // Ignore these commands return super.doCommand(strCommand, sourceS...
class class_name[name] begin[{] method[doCommand, return_type[type[boolean]], modifier[public], parameter[strCommand, sourceSField, iCommandOptions]] begin[{] if[binary_operation[call[MenuConstants.FORMLINK.equalsIgnoreCase, parameter[member[.strCommand]]], ||, call[MenuConstants.FORM.equalsIgn...
Keyword[public] Keyword[boolean] identifier[doCommand] operator[SEP] identifier[String] identifier[strCommand] , identifier[ScreenField] identifier[sourceSField] , Keyword[int] identifier[iCommandOptions] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[MenuConstants] operator[SEP] identifier...
protected static <T extends TcpResources> T getOrCreate(AtomicReference<T> ref, @Nullable LoopResources loops, @Nullable ConnectionProvider provider, BiFunction<LoopResources, ConnectionProvider, T> onNew, String name) { T update; for (; ; ) { T resources = ref.get(); if (resources == null || loop...
class class_name[name] begin[{] method[getOrCreate, return_type[type[T]], modifier[static protected], parameter[ref, loops, provider, onNew, name]] begin[{] local_variable[type[T], update] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarat...
Keyword[protected] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[TcpResources] operator[>] identifier[T] identifier[getOrCreate] operator[SEP] identifier[AtomicReference] operator[<] identifier[T] operator[>] identifier[ref] , annotation[@] identifier[Nullable] identifier[LoopResources] identif...
private void dumpNode(final Node node, final TransformContext transformContext, final StringBuilder builder) { if (node == null) { return; } if (node instanceof ASTProperty) { ASTProperty prop = (ASTProperty) node; if (!StringFunction.SHORT_NAME.equals(prop.toString())) { try { Object value = Og...
class class_name[name] begin[{] method[dumpNode, return_type[void], modifier[private], parameter[node, transformContext, builder]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[binar...
Keyword[private] Keyword[void] identifier[dumpNode] operator[SEP] Keyword[final] identifier[Node] identifier[node] , Keyword[final] identifier[TransformContext] identifier[transformContext] , Keyword[final] identifier[StringBuilder] identifier[builder] operator[SEP] { Keyword[if] operator[SEP] identifier[node]...
public ConstructorFilterBuilder isDefault() { add(new NegationConstructorFilter(new ModifierConstructorFilter(Modifier.PUBLIC & Modifier.PROTECTED & Modifier.PRIVATE))); return this; }
class class_name[name] begin[{] method[isDefault, return_type[type[ConstructorFilterBuilder]], modifier[public], parameter[]] begin[{] call[.add, parameter[ClassCreator(arguments=[ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=PUBLIC, postfix_op...
Keyword[public] identifier[ConstructorFilterBuilder] identifier[isDefault] operator[SEP] operator[SEP] { identifier[add] operator[SEP] Keyword[new] identifier[NegationConstructorFilter] operator[SEP] Keyword[new] identifier[ModifierConstructorFilter] operator[SEP] identifier[Modifier] operator[SEP] identifier[PU...
private boolean pruneKeys(List<Set<ChainedProperty<S>>> keys, ChainedProperty<S> property) { boolean result = false; for (Set<ChainedProperty<S>> key : keys) { key.remove(property); if (key.size() == 0) { result = true; continue; ...
class class_name[name] begin[{] method[pruneKeys, return_type[type[boolean]], modifier[private], parameter[keys, property]] begin[{] local_variable[type[boolean], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberRe...
Keyword[private] Keyword[boolean] identifier[pruneKeys] operator[SEP] identifier[List] operator[<] identifier[Set] operator[<] identifier[ChainedProperty] operator[<] identifier[S] operator[>] operator[>] operator[>] identifier[keys] , identifier[ChainedProperty] operator[<] identifier[S] operator[>] identifier[proper...
public void addAll(int index, T... items) { List<T> collection = Arrays.asList(items); synchronized (mLock) { if (mOriginalValues != null) { mOriginalValues.addAll(index, collection); } else { mObjects.addAll(index, collection); } ...
class class_name[name] begin[{] method[addAll, return_type[void], modifier[public], parameter[index, items]] begin[{] local_variable[type[List], collection] SYNCHRONIZED[member[.mLock]] BEGIN[{] if[binary_operation[member[.mOriginalValues], !=, literal[null]]] be...
Keyword[public] Keyword[void] identifier[addAll] operator[SEP] Keyword[int] identifier[index] , identifier[T] operator[...] identifier[items] operator[SEP] { identifier[List] operator[<] identifier[T] operator[>] identifier[collection] operator[=] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP...
public final ImmutableList<Parameter> getParameters() { Type[] parameterTypes = getGenericParameterTypes(); Annotation[][] annotations = getParameterAnnotations(); AnnotatedType[] annotatedTypes = getAnnotatedParameterTypes(); ImmutableList.Builder<Parameter> builder = ImmutableList.builder(); for (...
class class_name[name] begin[{] method[getParameters, return_type[type[ImmutableList]], modifier[final public], parameter[]] begin[{] local_variable[type[Type], parameterTypes] local_variable[type[Annotation], annotations] local_variable[type[AnnotatedType], annotatedTypes] loca...
Keyword[public] Keyword[final] identifier[ImmutableList] operator[<] identifier[Parameter] operator[>] identifier[getParameters] operator[SEP] operator[SEP] { identifier[Type] operator[SEP] operator[SEP] identifier[parameterTypes] operator[=] identifier[getGenericParameterTypes] operator[SEP] operator[SEP] opera...
public static Socket connect(final String hostname, final int port, final int connectionTimeout) throws IOException { final Socket socket = new Socket(); if (connectionTimeout <= 0) { socket.connect(new InetSocketAddress(hostname, port)); } else { socket.connect(new InetSocketAddress(hostname, port), conn...
class class_name[name] begin[{] method[connect, return_type[type[Socket]], modifier[public static], parameter[hostname, port, connectionTimeout]] begin[{] local_variable[type[Socket], socket] if[binary_operation[member[.connectionTimeout], <=, literal[0]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Socket] identifier[connect] operator[SEP] Keyword[final] identifier[String] identifier[hostname] , Keyword[final] Keyword[int] identifier[port] , Keyword[final] Keyword[int] identifier[connectionTimeout] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[...
public void addClassReference(final String className, final MetadataElement classReference) { classReference.setRef(getNamespaceValue(classReference.getRef())); for (MetadataItem item : classList) { if (item.getName().equals(className) && item.getNamespace().equals(getCurrentNamespace()) ...
class class_name[name] begin[{] method[addClassReference, return_type[void], modifier[public], parameter[className, classReference]] begin[{] call[classReference.setRef, parameter[call[.getNamespaceValue, parameter[call[classReference.getRef, parameter[]]]]]] ForStatement(body=BlockStat...
Keyword[public] Keyword[void] identifier[addClassReference] operator[SEP] Keyword[final] identifier[String] identifier[className] , Keyword[final] identifier[MetadataElement] identifier[classReference] operator[SEP] { identifier[classReference] operator[SEP] identifier[setRef] operator[SEP] identifier[getNamesp...
@Override public void supplyValue(JsonObjectBuilder builder) { try { setJsonValue(builder, getValue().get()); } catch (InterruptedException | ExecutionException e) { logger.error("Error retrieving value", e); setJsonValue(builder, getDefault()); } }
class class_name[name] begin[{] method[supplyValue, return_type[void], modifier[public], parameter[builder]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=builder, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Meth...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[supplyValue] operator[SEP] identifier[JsonObjectBuilder] identifier[builder] operator[SEP] { Keyword[try] { identifier[setJsonValue] operator[SEP] identifier[builder] , identifier[getValue] operator[SEP] operator[SEP] operato...
public static String transformCsvContent(CmsObject cms, String xsltFile, String csvContent, String delimiter) throws CmsException, CmsXmlException { String xmlContent = ""; try { xmlContent = getTableHtml(csvContent, delimiter); } catch (IOException e) { throw new Cm...
class class_name[name] begin[{] method[transformCsvContent, return_type[type[String]], modifier[public static], parameter[cms, xsltFile, csvContent, delimiter]] begin[{] local_variable[type[String], xmlContent] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberRefe...
Keyword[public] Keyword[static] identifier[String] identifier[transformCsvContent] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[xsltFile] , identifier[String] identifier[csvContent] , identifier[String] identifier[delimiter] operator[SEP] Keyword[throws] identifier[CmsException...
public Object[] valuesForColumns(T bo, String... columns) { Map<String, ColAttrMapping> columnAttributeMappings = getColumnAttributeMappings(); Object[] result = new Object[columns.length]; for (int i = 0; i < columns.length; i++) { ColAttrMapping colAttrMapping = columnAttributeMapp...
class class_name[name] begin[{] method[valuesForColumns, return_type[type[Object]], modifier[public], parameter[bo, columns]] begin[{] local_variable[type[Map], columnAttributeMappings] local_variable[type[Object], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVa...
Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[valuesForColumns] operator[SEP] identifier[T] identifier[bo] , identifier[String] operator[...] identifier[columns] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[ColAttrMapping] operator[>] identifier[column...
@Override public String validate(String unit) { assert unit != null : paramError("validate", "unit", "must not be null"); try { new ExpressionParser(model).parse(unit); return null; } catch (Exception e) { return e.getMessage(); } }
class class_name[name] begin[{] method[validate, return_type[type[String]], modifier[public], parameter[unit]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=unit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[validate] operator[SEP] identifier[String] identifier[unit] operator[SEP] { Keyword[assert] identifier[unit] operator[!=] Other[null] operator[:] identifier[paramError] operator[SEP] literal[String] , literal[String] , literal[St...
public static String createResourceForCollector( CmsObject cms, String newLink, Locale locale, String referenceResource, String modelFile, String mode, String postCreateHandler) throws CmsException { // get the collector used to create the new content...
class class_name[name] begin[{] method[createResourceForCollector, return_type[type[String]], modifier[public static], parameter[cms, newLink, locale, referenceResource, modelFile, mode, postCreateHandler]] begin[{] local_variable[type[int], pos] local_variable[type[String], collectorName] ...
Keyword[public] Keyword[static] identifier[String] identifier[createResourceForCollector] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[newLink] , identifier[Locale] identifier[locale] , identifier[String] identifier[referenceResource] , identifier[String] identifier[modelFile]...
public final void mT__134() throws RecognitionException { try { int _type = T__134; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalSARL.g:120:8: ( 'false' ) // InternalSARL.g:120:10: 'false' { match("false"); } ...
class class_name[name] begin[{] method[mT__134, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=T__134, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[final] Keyword[void] identifier[mT__134] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[T__134] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TO...
public static BufferedImage recolorImage ( BufferedImage image, Color rootColor, float[] dists, float[] offsets) { return recolorImage(image, new Colorization[] { new Colorization(-1, rootColor, dists, offsets) }); }
class class_name[name] begin[{] method[recolorImage, return_type[type[BufferedImage]], modifier[public static], parameter[image, rootColor, dists, offsets]] begin[{] return[call[.recolorImage, parameter[member[.image], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[ClassCrea...
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[recolorImage] operator[SEP] identifier[BufferedImage] identifier[image] , identifier[Color] identifier[rootColor] , Keyword[float] operator[SEP] operator[SEP] identifier[dists] , Keyword[float] operator[SEP] operator[SEP] identifier[offsets] operat...
protected void queueBuffers (int buffers) { for (int ii = 0; ii < buffers; ii++) { Buffer buffer = _buffers[(_qidx + _qlen) % _buffers.length]; if (populateBuffer(buffer)) { _source.queueBuffers(buffer); _qlen++; } else { br...
class class_name[name] begin[{] method[queueBuffers, return_type[void], modifier[protected], parameter[buffers]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=_...
Keyword[protected] Keyword[void] identifier[queueBuffers] operator[SEP] Keyword[int] identifier[buffers] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[ii] operator[=] Other[0] operator[SEP] identifier[ii] operator[<] identifier[buffers] operator[SEP] identifier[ii] operator[++] operator[SEP]...
double evaluateBy(ScoreEvaluation eval) { return eval.evaluate(new DBIDsTest(DBIDUtil.ensureSet(scores.getDBIDs())), new OutlierScoreAdapter(this)); }
class class_name[name] begin[{] method[evaluateBy, return_type[type[double]], modifier[default], parameter[eval]] begin[{] return[call[eval.evaluate, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDBIDs, postfix_operators=[], prefix_operators=[], ...
Keyword[double] identifier[evaluateBy] operator[SEP] identifier[ScoreEvaluation] identifier[eval] operator[SEP] { Keyword[return] identifier[eval] operator[SEP] identifier[evaluate] operator[SEP] Keyword[new] identifier[DBIDsTest] operator[SEP] identifier[DBIDUtil] operator[SEP] identifier[ensureSet] operator[SE...
@Override public Collection<ResourceBundle> bundles() { Set<ResourceBundle> bundles = new LinkedHashSet<>(); for (I18nExtension extension : extensions) { bundles.add(extension.bundle()); } return bundles; }
class class_name[name] begin[{] method[bundles, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[Set], bundles] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argument...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[ResourceBundle] operator[>] identifier[bundles] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[ResourceBundle] operator[>] identifier[bundles] operator[=] Keyword[new] identifier[LinkedHashSet] ...
public static Cell newTimestamp(long rawTimestampValue) { final Cell cell = new Cell(); cell.initTimestamp(rawTimestampValue); return cell; }
class class_name[name] begin[{] method[newTimestamp, return_type[type[Cell]], modifier[public static], parameter[rawTimestampValue]] begin[{] local_variable[type[Cell], cell] call[cell.initTimestamp, parameter[member[.rawTimestampValue]]] return[member[.cell]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Cell] identifier[newTimestamp] operator[SEP] Keyword[long] identifier[rawTimestampValue] operator[SEP] { Keyword[final] identifier[Cell] identifier[cell] operator[=] Keyword[new] identifier[Cell] operator[SEP] operator[SEP] operator[SEP] identifier[cell] operator[SEP] i...
@Private void ringRead(int position, byte[] buffer, int offset, int count) throws IOException { position = wrapPosition(position); if (position + count <= fileLength) { raf.seek(position); raf.readFully(buffer, offset, count); } else { // The read overlaps the EOF. // # of bytes to...
class class_name[name] begin[{] method[ringRead, return_type[void], modifier[default], parameter[position, buffer, offset, count]] begin[{] assign[member[.position], call[.wrapPosition, parameter[member[.position]]]] if[binary_operation[binary_operation[member[.position], +, mem...
annotation[@] identifier[Private] Keyword[void] identifier[ringRead] operator[SEP] Keyword[int] identifier[position] , Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[offset] , Keyword[int] identifier[count] operator[SEP] Keyword[throws] identifier[IOException] { identif...
public Properties findProperties(String uri) throws IOException { String fulluri = path + uri; URL resource = getResource(fulluri); if (resource == null) { throw new IOException("Could not find resource: " + fulluri); } return loadProperties(resource); }
class class_name[name] begin[{] method[findProperties, return_type[type[Properties]], modifier[public], parameter[uri]] begin[{] local_variable[type[String], fulluri] local_variable[type[URL], resource] if[binary_operation[member[.resource], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Properties] identifier[findProperties] operator[SEP] identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[fulluri] operator[=] identifier[path] operator[+] identifier[uri] operator[SEP] identifier[URL] identifier[resou...
public static SiftDetector sift( @Nullable ConfigSiftScaleSpace configSS , @Nullable ConfigSiftDetector configDetector ) { if( configSS == null ) configSS = new ConfigSiftScaleSpace(); if( configDetector == null ) configDetector = new ConfigSiftDetector(); NonMaxLimiter nonmax = FactoryFeatureExtractor.n...
class class_name[name] begin[{] method[sift, return_type[type[SiftDetector]], modifier[public static], parameter[configSS, configDetector]] begin[{] if[binary_operation[member[.configSS], ==, literal[null]]] begin[{] assign[member[.configSS], ClassCreator(arguments=[], body=None, co...
Keyword[public] Keyword[static] identifier[SiftDetector] identifier[sift] operator[SEP] annotation[@] identifier[Nullable] identifier[ConfigSiftScaleSpace] identifier[configSS] , annotation[@] identifier[Nullable] identifier[ConfigSiftDetector] identifier[configDetector] operator[SEP] { Keyword[if] operator[SEP...
public void addIdentity(Identity identity) { identities.add(identity); identitiesSet.add(identity.getKey()); }
class class_name[name] begin[{] method[addIdentity, return_type[void], modifier[public], parameter[identity]] begin[{] call[identities.add, parameter[member[.identity]]] call[identitiesSet.add, parameter[call[identity.getKey, parameter[]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addIdentity] operator[SEP] identifier[Identity] identifier[identity] operator[SEP] { identifier[identities] operator[SEP] identifier[add] operator[SEP] identifier[identity] operator[SEP] operator[SEP] identifier[identitiesSet] operator[SEP] identifier[add] operator[SEP] i...
private Resource findComponentResourceBundleLocaleMatch(FacesContext context, String resourceName, String libraryName) { Resource result = null; ResourceBundle resourceBundle = null; int i; if (-1 != (i = resourceName.lastIndexOf("."))) { resourceName = resourceN...
class class_name[name] begin[{] method[findComponentResourceBundleLocaleMatch, return_type[type[Resource]], modifier[private], parameter[context, resourceName, libraryName]] begin[{] local_variable[type[Resource], result] local_variable[type[ResourceBundle], resourceBundle] local_variab...
Keyword[private] identifier[Resource] identifier[findComponentResourceBundleLocaleMatch] operator[SEP] identifier[FacesContext] identifier[context] , identifier[String] identifier[resourceName] , identifier[String] identifier[libraryName] operator[SEP] { identifier[Resource] identifier[result] operator[=] Othe...
@javax.annotation.Nonnull public static JsonArray getJson(@javax.annotation.Nonnull final int[] kernelDims) { @javax.annotation.Nonnull final JsonArray array = new JsonArray(); for (final int k : kernelDims) { array.add(new JsonPrimitive(k)); } return array; }
class class_name[name] begin[{] method[getJson, return_type[type[JsonArray]], modifier[public static], parameter[kernelDims]] begin[{] local_variable[type[JsonArray], array] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Class...
annotation[@] identifier[javax] operator[SEP] identifier[annotation] operator[SEP] identifier[Nonnull] Keyword[public] Keyword[static] identifier[JsonArray] identifier[getJson] operator[SEP] annotation[@] identifier[javax] operator[SEP] identifier[annotation] operator[SEP] identifier[Nonnull] Keyword[final] Keyword[int...
public ArrayList<String> zone_zoneName_dynHost_login_GET(String zoneName, String login, String subDomain) throws IOException { String qPath = "/domain/zone/{zoneName}/dynHost/login"; StringBuilder sb = path(qPath, zoneName); query(sb, "login", login); query(sb, "subDomain", subDomain); String resp = exec(qPat...
class class_name[name] begin[{] method[zone_zoneName_dynHost_login_GET, return_type[type[ArrayList]], modifier[public], parameter[zoneName, login, subDomain]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb],...
Keyword[public] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[zone_zoneName_dynHost_login_GET] operator[SEP] identifier[String] identifier[zoneName] , identifier[String] identifier[login] , identifier[String] identifier[subDomain] operator[SEP] Keyword[throws] identifier[IOException] { ...
public String dateToStringDateFormat(Date date) { if (date == null) return null; return gDateFormat.format(date); }
class class_name[name] begin[{] method[dateToStringDateFormat, return_type[type[String]], modifier[public], parameter[date]] begin[{] if[binary_operation[member[.date], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[gDateFormat.f...
Keyword[public] identifier[String] identifier[dateToStringDateFormat] operator[SEP] identifier[Date] identifier[date] operator[SEP] { Keyword[if] operator[SEP] identifier[date] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[return] identifier[gDateFormat] operator[SEP] i...
public PathImpl fsWalk(String userPath, Map<String,Object> attributes, String uri) { String path; String query = null; int queryIndex = uri.indexOf('?'); if (queryIndex >= 0) { path = uri.substring(0, queryIndex); query = uri.substring(queryIndex +...
class class_name[name] begin[{] method[fsWalk, return_type[type[PathImpl]], modifier[public], parameter[userPath, attributes, uri]] begin[{] local_variable[type[String], path] local_variable[type[String], query] local_variable[type[int], queryIndex] if[binary_operation[m...
Keyword[public] identifier[PathImpl] identifier[fsWalk] operator[SEP] identifier[String] identifier[userPath] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[attributes] , identifier[String] identifier[uri] operator[SEP] { identifier[String] identifier[path] operat...
public RunList<R> filter(Predicate<R> predicate) { size = null; first = null; base = Iterables.filter(base,predicate); return this; }
class class_name[name] begin[{] method[filter, return_type[type[RunList]], modifier[public], parameter[predicate]] begin[{] assign[member[.size], literal[null]] assign[member[.first], literal[null]] assign[member[.base], call[Iterables.filter, parameter[member[.b...
Keyword[public] identifier[RunList] operator[<] identifier[R] operator[>] identifier[filter] operator[SEP] identifier[Predicate] operator[<] identifier[R] operator[>] identifier[predicate] operator[SEP] { identifier[size] operator[=] Other[null] operator[SEP] identifier[first] operator[=] Other[null] operator[SE...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.MCC__RG: return rg != null && !rg.isEmpty(); } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MCC__RG, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Re...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[MCC__RG] operator...
public void addData(int index, byte[] data) throws InternalLogException { if (tc.isEntryEnabled()) Tr.entry(tc, "addData",new java.lang.Object[] {new Integer(index), RLSUtils.toHexString(data,RLSUtils.MAX_DISPLAY_BYTES), this}); // If the parent recovery log instance has experienced a serious internal error ...
class class_name[name] begin[{] method[addData, return_type[void], modifier[public], parameter[index, data]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["addData"], ArrayCreator(dimensions=[None], initializer=ArrayInitiali...
Keyword[public] Keyword[void] identifier[addData] operator[SEP] Keyword[int] identifier[index] , Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] Keyword[throws] identifier[InternalLogException] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[...
@Override public void move( EightyPath source, EightyPath target ) { MemoryFS targetFS = (MemoryFS) ( target._getFileSystem() ).get80(); // todo different filestore ? getStore( source ).getData().move( source, targetFS.getStore( target ).getData(), target ); // todo tested ? // ...
class class_name[name] begin[{] method[move, return_type[void], modifier[public], parameter[source, target]] begin[{] local_variable[type[MemoryFS], targetFS] call[.getStore, parameter[member[.source]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[move] operator[SEP] identifier[EightyPath] identifier[source] , identifier[EightyPath] identifier[target] operator[SEP] { identifier[MemoryFS] identifier[targetFS] operator[=] operator[SEP] identifier[MemoryFS] operator[SEP] operator[SE...
public void signalEvent(String compensationType, Object activityRefStr) { if( activityRefStr == null || ! (activityRefStr instanceof String) ) { throw new WorkflowRuntimeException(null, getProcessInstance(), "Compensation can only be triggered with String events, not an event o...
class class_name[name] begin[{] method[signalEvent, return_type[void], modifier[public], parameter[compensationType, activityRefStr]] begin[{] if[binary_operation[binary_operation[member[.activityRefStr], ==, literal[null]], ||, binary_operation[member[.activityRefStr], instanceof, type[String]...
Keyword[public] Keyword[void] identifier[signalEvent] operator[SEP] identifier[String] identifier[compensationType] , identifier[Object] identifier[activityRefStr] operator[SEP] { Keyword[if] operator[SEP] identifier[activityRefStr] operator[==] Other[null] operator[||] operator[!] operator[SEP] identifier[acti...
public Calendar calendarValue() { Calendar cal = new GregorianCalendar(_Private_Utils.UTC); long millis = getMillis(); Integer offset = _offset; if (offset != null && offset != 0) { int offsetMillis = offset * 60 * 1000; millis += offsetMillis; ...
class class_name[name] begin[{] method[calendarValue, return_type[type[Calendar]], modifier[public], parameter[]] begin[{] local_variable[type[Calendar], cal] local_variable[type[long], millis] local_variable[type[Integer], offset] if[binary_operation[binary_operation[me...
Keyword[public] identifier[Calendar] identifier[calendarValue] operator[SEP] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] Keyword[new] identifier[GregorianCalendar] operator[SEP] identifier[_Private_Utils] operator[SEP] identifier[UTC] operator[SEP] operator[SEP] Keyword[long] identifier[mill...
private void parseLastConsonant() { if (!validViSyll) return; if (iCurPos > strSyllable.length()) strLastConsonant = ZERO; String strCon = strSyllable.substring(iCurPos, strSyllable.length()); if (strCon.length() > 3) { validViSyll = false; return; } Iterator iter = alLastConsonants.iterator()...
class class_name[name] begin[{] method[parseLastConsonant, return_type[void], modifier[private], parameter[]] begin[{] if[member[.validViSyll]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[member[.iCurPos], >, call[strSyllable.length, param...
Keyword[private] Keyword[void] identifier[parseLastConsonant] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[validViSyll] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifier[iCurPos] operator[>] identifier[strSyllable] operator[SEP] identifier[length] ...
public void trimToSize() { modCount++; while ((bucketDepth > 0) && (bucketSize << ((bucketDepth-1)*bucketExp) >= size)) { bucket = (Object[]) bucket[0]; } }
class class_name[name] begin[{] method[trimToSize, return_type[void], modifier[public], parameter[]] begin[{] member[.modCount] while[binary_operation[binary_operation[member[.bucketDepth], >, literal[0]], &&, binary_operation[binary_operation[member[.bucketSize], <<, binary_ope...
Keyword[public] Keyword[void] identifier[trimToSize] operator[SEP] operator[SEP] { identifier[modCount] operator[++] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[bucketDepth] operator[>] Other[0] operator[SEP] operator[&&] operator[SEP] identifier[bucketSize] operator[<<] operator[SEP] ope...
@SafeVarargs public static void update(DataSet... dataSets) { foreach(dataSets, DBSetup::update, CallInfo.create()); }
class class_name[name] begin[{] method[update, return_type[void], modifier[public static], parameter[dataSets]] begin[{] call[.foreach, parameter[member[.dataSets], MethodReference(expression=MemberReference(member=DBSetup, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), m...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] Keyword[void] identifier[update] operator[SEP] identifier[DataSet] operator[...] identifier[dataSets] operator[SEP] { identifier[foreach] operator[SEP] identifier[dataSets] , identifier[DBSetup] operator[::] identifier[update] , identifier[C...
public static void handleSetPropertyExpression( Object bean, String prop, String expression, PageContext pageContext, ProtectedFunctionMapper functionMapper) throws JspCoreException { try { Method method = getWriteMethod(bean.getClass(), prop); ...
class class_name[name] begin[{] method[handleSetPropertyExpression, return_type[void], modifier[public static], parameter[bean, prop, expression, pageContext, functionMapper]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initialize...
Keyword[public] Keyword[static] Keyword[void] identifier[handleSetPropertyExpression] operator[SEP] identifier[Object] identifier[bean] , identifier[String] identifier[prop] , identifier[String] identifier[expression] , identifier[PageContext] identifier[pageContext] , identifier[ProtectedFunctionMapper] identifier...
public TemplateFilter names(String... names) { allItemsNotNull(names, "Template names"); predicate = predicate.and(combine( TemplateMetadata::getName, in(names) )); return this; }
class class_name[name] begin[{] method[names, return_type[type[TemplateFilter]], modifier[public], parameter[names]] begin[{] call[.allItemsNotNull, parameter[member[.names], literal["Template names"]]] assign[member[.predicate], call[predicate.and, parameter[call[.combine, para...
Keyword[public] identifier[TemplateFilter] identifier[names] operator[SEP] identifier[String] operator[...] identifier[names] operator[SEP] { identifier[allItemsNotNull] operator[SEP] identifier[names] , literal[String] operator[SEP] operator[SEP] identifier[predicate] operator[=] identifier[predicate] operator...
@SuppressWarnings("unchecked") public EList<IfcProperty> getRelatedProperties() { return (EList<IfcProperty>) eGet( Ifc2x3tc1Package.Literals.IFC_PROPERTY_CONSTRAINT_RELATIONSHIP__RELATED_PROPERTIES, true); }
class class_name[name] begin[{] method[getRelatedProperties, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_PROPERTY_CONSTRAINT_RELATIONSHIP__RELATED_PROPERTIES, postfix_operators=[], prefix_operators=[], q...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcProperty] operator[>] identifier[getRelatedProperties] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator[<] identifier[IfcPropert...
public static boolean checkOpenTagClosesOptional(TagName openTag, TagName optionalOpenTag) { checkArgument(optionalOpenTag.isDefinitelyOptional(), "Open tag is not optional."); if (!(openTag.isStatic() && optionalOpenTag.isStatic())) { return false; } String optionalTagName = optionalOpenTag.getSt...
class class_name[name] begin[{] method[checkOpenTagClosesOptional, return_type[type[boolean]], modifier[public static], parameter[openTag, optionalOpenTag]] begin[{] call[.checkArgument, parameter[call[optionalOpenTag.isDefinitelyOptional, parameter[]], literal["Open tag is not optional."]]] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[checkOpenTagClosesOptional] operator[SEP] identifier[TagName] identifier[openTag] , identifier[TagName] identifier[optionalOpenTag] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[optionalOpenTag] operator[SEP] identifier[isDefinitel...
public Label createLabel(BaseComponent parent, Object value, String prefix, String style) { return createLabel(parent, value, prefix, style, false); }
class class_name[name] begin[{] method[createLabel, return_type[type[Label]], modifier[public], parameter[parent, value, prefix, style]] begin[{] return[call[.createLabel, parameter[member[.parent], member[.value], member[.prefix], member[.style], literal[false]]]] end[}] END[}]
Keyword[public] identifier[Label] identifier[createLabel] operator[SEP] identifier[BaseComponent] identifier[parent] , identifier[Object] identifier[value] , identifier[String] identifier[prefix] , identifier[String] identifier[style] operator[SEP] { Keyword[return] identifier[createLabel] operator[SEP] ident...
public void setMedia(String mediaDesc) { if (mediaDesc != null) linkParams.set(MEDIA.paramName, mediaDesc); else linkParams.remove(MEDIA.paramName); }
class class_name[name] begin[{] method[setMedia, return_type[void], modifier[public], parameter[mediaDesc]] begin[{] if[binary_operation[member[.mediaDesc], !=, literal[null]]] begin[{] call[linkParams.set, parameter[member[MEDIA.paramName], member[.mediaDesc]]] else begin[{...
Keyword[public] Keyword[void] identifier[setMedia] operator[SEP] identifier[String] identifier[mediaDesc] operator[SEP] { Keyword[if] operator[SEP] identifier[mediaDesc] operator[!=] Other[null] operator[SEP] identifier[linkParams] operator[SEP] identifier[set] operator[SEP] identifier[MEDIA] operator[SEP] ident...