code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static LinearRing convert(LineString lineString,int dimension) { return gf.createLinearRing(convertSequence(lineString.getCoordinates(),dimension)); }
class class_name[name] begin[{] method[convert, return_type[type[LinearRing]], modifier[public static], parameter[lineString, dimension]] begin[{] return[call[gf.createLinearRing, parameter[call[.convertSequence, parameter[call[lineString.getCoordinates, parameter[]], member[.dimension]]]]]] end[}]...
Keyword[public] Keyword[static] identifier[LinearRing] identifier[convert] operator[SEP] identifier[LineString] identifier[lineString] , Keyword[int] identifier[dimension] operator[SEP] { Keyword[return] identifier[gf] operator[SEP] identifier[createLinearRing] operator[SEP] identifier[convertSequence] operator...
public void requestBroadcast (String message) { message = filter(message, null, true); if (message == null) { displayFeedback(_bundle, MessageBundle.compose("m.broadcast_failed", "m.filtered")); return; } _cservice.broadcast(message, new ChatService.Invocation...
class class_name[name] begin[{] method[requestBroadcast, return_type[void], modifier[public], parameter[message]] begin[{] assign[member[.message], call[.filter, parameter[member[.message], literal[null], literal[true]]]] if[binary_operation[member[.message], ==, literal[null]]]...
Keyword[public] Keyword[void] identifier[requestBroadcast] operator[SEP] identifier[String] identifier[message] operator[SEP] { identifier[message] operator[=] identifier[filter] operator[SEP] identifier[message] , Other[null] , literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[...
public static String regexFindFirst(String pattern, String str) { return regexFindFirst(Pattern.compile(pattern), str, 1); }
class class_name[name] begin[{] method[regexFindFirst, return_type[type[String]], modifier[public static], parameter[pattern, str]] begin[{] return[call[.regexFindFirst, parameter[call[Pattern.compile, parameter[member[.pattern]]], member[.str], literal[1]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[regexFindFirst] operator[SEP] identifier[String] identifier[pattern] , identifier[String] identifier[str] operator[SEP] { Keyword[return] identifier[regexFindFirst] operator[SEP] identifier[Pattern] operator[SEP] identifier[compile] operator[SEP] ide...
static public boolean isUnCaughtExceptionDetected () { if (context == null) { if (!context_null_msg_already_printed) { Log.w(LOG_TAG_NAME, CONTEXT_NULL_MSG); context_null_msg_already_printed = true; } return false; } return cont...
class class_name[name] begin[{] method[isUnCaughtExceptionDetected, return_type[type[boolean]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.context], ==, literal[null]]] begin[{] if[member[.context_null_msg_already_printed]] begin[{] ...
Keyword[static] Keyword[public] Keyword[boolean] identifier[isUnCaughtExceptionDetected] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[context_null_msg_already_printed] operator[SEP]...
@Override public Set<byte[]> keys(final byte[] pattern) { checkIsInMultiOrPipeline(); client.keys(pattern); return SetFromList.of(client.getBinaryMultiBulkReply()); }
class class_name[name] begin[{] method[keys, return_type[type[Set]], modifier[public], parameter[pattern]] begin[{] call[.checkIsInMultiOrPipeline, parameter[]] call[client.keys, parameter[member[.pattern]]] return[call[SetFromList.of, parameter[call[client.getBinaryMult...
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[keys] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[pattern] operator[SEP] { identifier[checkIsInMultiOrPipeline] operator[SEP] opera...
@Override public void query(final Query query, final Consumer<QueryResult> onSuccess, final Consumer<Throwable> onFailure) { final Call<QueryResult> call = callQuery(query); call.enqueue(new Callback<QueryResult>() { @Override public void onResponse(final Call<QueryResult> call, final Response<Que...
class class_name[name] begin[{] method[query, return_type[void], modifier[public], parameter[query, onSuccess, onFailure]] begin[{] local_variable[type[Call], call] call[call.enqueue, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[query] operator[SEP] Keyword[final] identifier[Query] identifier[query] , Keyword[final] identifier[Consumer] operator[<] identifier[QueryResult] operator[>] identifier[onSuccess] , Keyword[final] identifier[Consumer] operator[<] identifier[T...
@SuppressWarnings("rawtypes") public static boolean isEmpty(@Nullable final Object obj) { if (obj == null) { return true; } if (obj instanceof Optional) { return !((Optional) obj).isPresent(); } if (obj instanceof CharSequence) { return ((CharSequence) obj).length() == 0; } ...
class class_name[name] begin[{] method[isEmpty, return_type[type[boolean]], modifier[public static], parameter[obj]] begin[{] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_oper...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[isEmpty] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[obj] ...
public HttpSession resolve(ServerSocket socket) { ServerTransport transport = socket.unwrap(ServerTransport.class); ServerWebSocket ws = transport.unwrap(ServerWebSocket.class); if (ws != null) { String key = HttpSession.class.getName(); return (HttpSession) ws.unwrap(Session.class).getUserProp...
class class_name[name] begin[{] method[resolve, return_type[type[HttpSession]], modifier[public], parameter[socket]] begin[{] local_variable[type[ServerTransport], transport] local_variable[type[ServerWebSocket], ws] if[binary_operation[member[.ws], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[HttpSession] identifier[resolve] operator[SEP] identifier[ServerSocket] identifier[socket] operator[SEP] { identifier[ServerTransport] identifier[transport] operator[=] identifier[socket] operator[SEP] identifier[unwrap] operator[SEP] identifier[ServerTransport] operator[SEP] Keyword[c...
@SuppressWarnings("unchecked") private String getFilteredXml(Document document, String xpathExpression) { logger.entering(new Object[] { document, xpathExpression }); List<Node> nodes = (List<Node>) document.selectNodes(xpathExpression); StringBuilder newDocument = new StringBuilder(documen...
class class_name[name] begin[{] method[getFilteredXml, return_type[type[String]], modifier[private], parameter[document, xpathExpression]] begin[{] call[logger.entering, parameter[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=document, postfix...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[String] identifier[getFilteredXml] operator[SEP] identifier[Document] identifier[document] , identifier[String] identifier[xpathExpression] operator[SEP] { identifier[logger] operator[SEP] identifi...
@CheckReturnValue public final ParallelFlowable<T> filter(@NonNull Predicate<? super T> predicate, @NonNull ParallelFailureHandling errorHandler) { ObjectHelper.requireNonNull(predicate, "predicate"); ObjectHelper.requireNonNull(errorHandler, "errorHandler is null"); return RxJavaPlugins.onA...
class class_name[name] begin[{] method[filter, return_type[type[ParallelFlowable]], modifier[final public], parameter[predicate, errorHandler]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.predicate], literal["predicate"]]] call[ObjectHelper.requireNonNull, param...
annotation[@] identifier[CheckReturnValue] Keyword[public] Keyword[final] identifier[ParallelFlowable] operator[<] identifier[T] operator[>] identifier[filter] operator[SEP] annotation[@] identifier[NonNull] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[predicate] , ...
public static long optLong(@Nullable Bundle bundle, @Nullable String key, long fallback) { if (bundle == null) { return fallback; } return bundle.getLong(key, fallback); }
class class_name[name] begin[{] method[optLong, return_type[type[long]], modifier[public static], parameter[bundle, key, fallback]] begin[{] if[binary_operation[member[.bundle], ==, literal[null]]] begin[{] return[member[.fallback]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] Keyword[long] identifier[optLong] operator[SEP] annotation[@] identifier[Nullable] identifier[Bundle] identifier[bundle] , annotation[@] identifier[Nullable] identifier[String] identifier[key] , Keyword[long] identifier[fallback] operator[SEP] { Keyword[if] operator[SEP] identif...
public Observable<ServiceResponse<BuildInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String registryName, String buildId) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.")...
class class_name[name] begin[{] method[beginUpdateWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, buildId]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] beg...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[BuildInner] operator[>] operator[>] identifier[beginUpdateWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] id...
public void init(String st, int minsize, int maxsize) { super.init(buildString(st.trim(), minsize), minsize, maxsize); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[st, minsize, maxsize]] begin[{] SuperMethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=trim, postfix_operators=[], prefix_operators=[], qualifier=st, selectors...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[String] identifier[st] , Keyword[int] identifier[minsize] , Keyword[int] identifier[maxsize] operator[SEP] { Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[buildString] operator[SEP] identifier[st] operator[SEP] ide...
public static String slug(String input, String separator) { String slug = adaptSlug(input, separator); return slug.toLowerCase(Locale.ENGLISH); }
class class_name[name] begin[{] method[slug, return_type[type[String]], modifier[public static], parameter[input, separator]] begin[{] local_variable[type[String], slug] return[call[slug.toLowerCase, parameter[member[Locale.ENGLISH]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[slug] operator[SEP] identifier[String] identifier[input] , identifier[String] identifier[separator] operator[SEP] { identifier[String] identifier[slug] operator[=] identifier[adaptSlug] operator[SEP] identifier[input] , identifier[separator] operato...
public void redo() { if (!m_redo.isEmpty()) { m_undo.push(m_current); m_current = m_redo.pop(); changeEntityContentValues( m_current.getEntityData(), m_current.getEntityId(), m_current.getAttributeName(), m_curr...
class class_name[name] begin[{] method[redo, return_type[void], modifier[public], parameter[]] begin[{] if[call[m_redo.isEmpty, parameter[]]] begin[{] call[m_undo.push, parameter[member[.m_current]]] assign[member[.m_current], call[m_redo.pop, par...
Keyword[public] Keyword[void] identifier[redo] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_redo] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[m_undo] operator[SEP] identifier[push] operator[SEP] identifier[m_current] oper...
public static final <T extends BaseDateTime> Function<T[], Interval> baseDateTimeFieldArrayToInterval(DateTimeZone dateTimeZone) { return FnInterval.baseDateTimeFieldArrayToInterval(dateTimeZone); }
class class_name[name] begin[{] method[baseDateTimeFieldArrayToInterval, return_type[type[Function]], modifier[final public static], parameter[dateTimeZone]] begin[{] return[call[FnInterval.baseDateTimeFieldArrayToInterval, parameter[member[.dateTimeZone]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] Keyword[extends] identifier[BaseDateTime] operator[>] identifier[Function] operator[<] identifier[T] operator[SEP] operator[SEP] , identifier[Interval] operator[>] identifier[baseDateTimeFieldArrayToInterval] operator[SEP] identifier[DateTimeZone...
@Override public void destroy() { ensureParentInitialized(); // execute Output Mappings (if they exist). ensureActivityInitialized(); if (activity != null && activity.getIoMapping() != null && !skipIoMapping) { activity.getIoMapping().executeOutputParameters(this); } clearExecution();...
class class_name[name] begin[{] method[destroy, return_type[void], modifier[public], parameter[]] begin[{] call[.ensureParentInitialized, parameter[]] call[.ensureActivityInitialized, parameter[]] if[binary_operation[binary_operation[binary_operation[member[.acti...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] { identifier[ensureParentInitialized] operator[SEP] operator[SEP] operator[SEP] identifier[ensureActivityInitialized] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[act...
public List<String> getRolesForUser(String name) { try { return model.model.get("g").get("g").rm.getRoles(name); } catch (Error e) { if (!e.getMessage().equals("error: name does not exist")) { throw e; } } return null; }
class class_name[name] begin[{] method[getRolesForUser, return_type[type[List]], modifier[public], parameter[name]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="g")], member=ge...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getRolesForUser] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[try] { Keyword[return] identifier[model] operator[SEP] identifier[model] operator[SEP] identifier[get] operator[SEP] literal...
public static <T extends Object> T getFieldValue(Object context, Class<T> expectedType, Field field) { if (!field.isAccessible()) { StringBuilder msg = new StringBuilder(); msg.append("Forcing accessibility for field "); msg.append(field.getName()); msg.append(" on "); ...
class class_name[name] begin[{] method[getFieldValue, return_type[type[T]], modifier[public static], parameter[context, expectedType, field]] begin[{] if[call[field.isAccessible, parameter[]]] begin[{] local_variable[type[StringBuilder], msg] call[msg.append,...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Object] operator[>] identifier[T] identifier[getFieldValue] operator[SEP] identifier[Object] identifier[context] , identifier[Class] operator[<] identifier[T] operator[>] identifier[expectedType] , identifier[Field] identifier[field...
public List<Type> intersect(List<Type> cl1, List<Type> cl2) { if (cl1 == cl2) return cl1; if (cl1.isEmpty() || cl2.isEmpty()) return List.nil(); if (cl1.head.tsym.precedes(cl2.head.tsym, this)) return intersect(cl1.tail, cl2); if (cl2.head.tsym.precede...
class class_name[name] begin[{] method[intersect, return_type[type[List]], modifier[public], parameter[cl1, cl2]] begin[{] if[binary_operation[member[.cl1], ==, member[.cl2]]] begin[{] return[member[.cl1]] else begin[{] None end[}] if[binary_operation[call[cl1.is...
Keyword[public] identifier[List] operator[<] identifier[Type] operator[>] identifier[intersect] operator[SEP] identifier[List] operator[<] identifier[Type] operator[>] identifier[cl1] , identifier[List] operator[<] identifier[Type] operator[>] identifier[cl2] operator[SEP] { Keyword[if] operator[SEP] identifier...
public static DefaultConnectionFactory newLdaptiveConnectionFactory(final AbstractLdapProperties l) { LOGGER.debug("Creating LDAP connection factory for [{}]", l.getLdapUrl()); val cc = newLdaptiveConnectionConfig(l); val bindCf = new DefaultConnectionFactory(cc); if (l.getProviderClass(...
class class_name[name] begin[{] method[newLdaptiveConnectionFactory, return_type[type[DefaultConnectionFactory]], modifier[public static], parameter[l]] begin[{] call[LOGGER.debug, parameter[literal["Creating LDAP connection factory for [{}]"], call[l.getLdapUrl, parameter[]]]] local_va...
Keyword[public] Keyword[static] identifier[DefaultConnectionFactory] identifier[newLdaptiveConnectionFactory] operator[SEP] Keyword[final] identifier[AbstractLdapProperties] identifier[l] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[l] operator[SE...
public static TimingInfo unmodifiableTimingInfo(long startEpochTimeMilli, long startTimeNano, Long endTimeNano) { return new TimingInfoUnmodifiable(startEpochTimeMilli, startTimeNano, endTimeNano); }
class class_name[name] begin[{] method[unmodifiableTimingInfo, return_type[type[TimingInfo]], modifier[public static], parameter[startEpochTimeMilli, startTimeNano, endTimeNano]] begin[{] return[ClassCreator(arguments=[MemberReference(member=startEpochTimeMilli, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] identifier[TimingInfo] identifier[unmodifiableTimingInfo] operator[SEP] Keyword[long] identifier[startEpochTimeMilli] , Keyword[long] identifier[startTimeNano] , identifier[Long] identifier[endTimeNano] operator[SEP] { Keyword[return] Keyword[new] identifier[TimingInfoUnmodifiab...
public OWLOntology loadOntologyFromFile(File file) throws OWLIOException { try { return owlOntologyManager.loadOntologyFromOntologyDocument(file); } catch (OWLOntologyCreationException ex) { throw new OWLIOException(ioErrorMsg, ex); } }
class class_name[name] begin[{] method[loadOntologyFromFile, return_type[type[OWLOntology]], modifier[public], parameter[file]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[public] identifier[OWLOntology] identifier[loadOntologyFromFile] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[OWLIOException] { Keyword[try] { Keyword[return] identifier[owlOntologyManager] operator[SEP] identifier[loadOntologyFromOntologyDocument] o...
@Override public boolean cancel(final String appName, final String id, final boolean isReplication) { if (super.cancel(appName, id, isReplication)) { replicateToPeers(Action.Cancel, appName, id, null, null, isReplication); synchronized (lock) { ...
class class_name[name] begin[{] method[cancel, return_type[type[boolean]], modifier[public], parameter[appName, id, isReplication]] begin[{] if[SuperMethodInvocation(arguments=[MemberReference(member=appName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[cancel] operator[SEP] Keyword[final] identifier[String] identifier[appName] , Keyword[final] identifier[String] identifier[id] , Keyword[final] Keyword[boolean] identifier[isReplication] operator[SEP] { Keyword[if] operator[SEP] Key...
private static DateValue[] removeDuplicates(DateValue[] dates) { int k = 0; for (int i = 1; i < dates.length; ++i) { if (!dates[i].equals(dates[k])) { dates[++k] = dates[i]; } } if (++k < dates.length) { DateValue[] uniqueDates = new DateValue[k]; System.arraycopy(dates, 0, uniqueDates, 0, k); ...
class class_name[name] begin[{] method[removeDuplicates, return_type[type[DateValue]], modifier[private static], parameter[dates]] begin[{] local_variable[type[int], k] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=dates, postfix_operators...
Keyword[private] Keyword[static] identifier[DateValue] operator[SEP] operator[SEP] identifier[removeDuplicates] operator[SEP] identifier[DateValue] operator[SEP] operator[SEP] identifier[dates] operator[SEP] { Keyword[int] identifier[k] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] i...
@NonNull public IconicsDrawable shadowDp( @Dimension(unit = DP) float radiusDp, @Dimension(unit = DP) float dxDp, @Dimension(unit = DP) float dyDp, @ColorInt int color) { return shadowPx( Utils.convertDpToPx(mContext, radiusDp), ...
class class_name[name] begin[{] method[shadowDp, return_type[type[IconicsDrawable]], modifier[public], parameter[radiusDp, dxDp, dyDp, color]] begin[{] return[call[.shadowPx, parameter[call[Utils.convertDpToPx, parameter[member[.mContext], member[.radiusDp]]], call[Utils.convertDpToPx, parameter[member...
annotation[@] identifier[NonNull] Keyword[public] identifier[IconicsDrawable] identifier[shadowDp] operator[SEP] annotation[@] identifier[Dimension] operator[SEP] identifier[unit] operator[=] identifier[DP] operator[SEP] Keyword[float] identifier[radiusDp] , annotation[@] identifier[Dimension] operator[SEP] identifier...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Observable<T> error(final Throwable exception) { ObjectHelper.requireNonNull(exception, "e is null"); return error(Functions.justCallable(exception)); }
class class_name[name] begin[{] method[error, return_type[type[Observable]], modifier[public static], parameter[exception]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.exception], literal["e is null"]]] return[call[.error, parameter[call[Functions.justCallable, paramete...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Observable] operator[<] identifier[T] operator[>] identifier[erro...
public List<TreeItem> getTree(Object projectIdOrPath, String filePath, String refName) throws GitLabApiException { return (getTree(projectIdOrPath, filePath, refName, false)); }
class class_name[name] begin[{] method[getTree, return_type[type[List]], modifier[public], parameter[projectIdOrPath, filePath, refName]] begin[{] return[call[.getTree, parameter[member[.projectIdOrPath], member[.filePath], member[.refName], literal[false]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[TreeItem] operator[>] identifier[getTree] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[String] identifier[filePath] , identifier[String] identifier[refName] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keywor...
static int cmpEquivFold(CharSequence cs1, CharSequence cs2, int options) { Normalizer2Impl nfcImpl; UCaseProps csp; /* current-level start/limit - s1/s2 as current */ int s1, s2, limit1, limit2; /* decomposition and case folding variables */ int length; /* stac...
class class_name[name] begin[{] method[cmpEquivFold, return_type[type[int]], modifier[static], parameter[cs1, cs2, options]] begin[{] local_variable[type[Normalizer2Impl], nfcImpl] local_variable[type[UCaseProps], csp] local_variable[type[int], s1] local_variable[type[int], leng...
Keyword[static] Keyword[int] identifier[cmpEquivFold] operator[SEP] identifier[CharSequence] identifier[cs1] , identifier[CharSequence] identifier[cs2] , Keyword[int] identifier[options] operator[SEP] { identifier[Normalizer2Impl] identifier[nfcImpl] operator[SEP] identifier[UCaseProps] identifier[csp] operato...
public void initTransfer(Properties properties) { super.initTransfer(properties); m_strRootPath = properties.getProperty(SOURCE_ROOT_PATHNAME_PARAM); m_iCurrentLevel = -1; }
class class_name[name] begin[{] method[initTransfer, return_type[void], modifier[public], parameter[properties]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initTransfer, postfix_opera...
Keyword[public] Keyword[void] identifier[initTransfer] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] { Keyword[super] operator[SEP] identifier[initTransfer] operator[SEP] identifier[properties] operator[SEP] operator[SEP] identifier[m_strRootPath] operator[=] identifier[properties] op...
private void initGUI() { Font fFont = new Font("Dialog", Font.PLAIN, 12); setLayout(new BorderLayout()); Panel p = new Panel(); p.setBackground(SystemColor.control); p.setLayout(new GridLayout(16, 1)); tSourceTable = new TextField(); tSourceTable.setEnabled(...
class class_name[name] begin[{] method[initGUI, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Font], fFont] call[.setLayout, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qual...
Keyword[private] Keyword[void] identifier[initGUI] operator[SEP] operator[SEP] { identifier[Font] identifier[fFont] operator[=] Keyword[new] identifier[Font] operator[SEP] literal[String] , identifier[Font] operator[SEP] identifier[PLAIN] , Other[12] operator[SEP] operator[SEP] identifier[setLayout] operator[S...
public static void writeCSV(DataObjectModel model, Collection<? extends DataObject> collection, OutputStream os) throws IOException { BufferedOutputStream bos = new BufferedOutputStream(os); OutputStreamWriter osw = new OutputStreamWriter(bos, "ISO-8859-1"); CSVWriter writer = new CSVWri...
class class_name[name] begin[{] method[writeCSV, return_type[void], modifier[public static], parameter[model, collection, os]] begin[{] local_variable[type[BufferedOutputStream], bos] local_variable[type[OutputStreamWriter], osw] local_variable[type[CSVWriter], writer] local_var...
Keyword[public] Keyword[static] Keyword[void] identifier[writeCSV] operator[SEP] identifier[DataObjectModel] identifier[model] , identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[DataObject] operator[>] identifier[collection] , identifier[OutputStream] identifier[os] operator[SEP] Keyword[thr...
private void handleScriptField(MethodField method) throws SqlParseException { List<KVValue> params = method.getParams(); if (params.size() == 2) { String f = params.get(0).value.toString(); fieldNames.add(f); request.addScriptField(f, new Script(params.get(1).value.toString())); ...
class class_name[name] begin[{] method[handleScriptField, return_type[void], modifier[private], parameter[method]] begin[{] local_variable[type[List], params] if[binary_operation[call[params.size, parameter[]], ==, literal[2]]] begin[{] local_variable[type[String], f] ...
Keyword[private] Keyword[void] identifier[handleScriptField] operator[SEP] identifier[MethodField] identifier[method] operator[SEP] Keyword[throws] identifier[SqlParseException] { identifier[List] operator[<] identifier[KVValue] operator[>] identifier[params] operator[=] identifier[method] operator[SEP] identifi...
@GwtIncompatible public static PathSubject assertThat(@NullableDecl Path target) { return assertAbout(PathSubject.paths()).that(target); }
class class_name[name] begin[{] method[assertThat, return_type[type[PathSubject]], modifier[public static], parameter[target]] begin[{] return[call[.assertAbout, parameter[call[PathSubject.paths, parameter[]]]]] end[}] END[}]
annotation[@] identifier[GwtIncompatible] Keyword[public] Keyword[static] identifier[PathSubject] identifier[assertThat] operator[SEP] annotation[@] identifier[NullableDecl] identifier[Path] identifier[target] operator[SEP] { Keyword[return] identifier[assertAbout] operator[SEP] identifier[PathSubject] operator[...
public static vpnclientlessaccesspolicy[] get(nitro_service service) throws Exception{ vpnclientlessaccesspolicy obj = new vpnclientlessaccesspolicy(); vpnclientlessaccesspolicy[] response = (vpnclientlessaccesspolicy[])obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[vpnclientlessaccesspolicy]], modifier[public static], parameter[service]] begin[{] local_variable[type[vpnclientlessaccesspolicy], obj] local_variable[type[vpnclientlessaccesspolicy], response] return[member[.response]] en...
Keyword[public] Keyword[static] identifier[vpnclientlessaccesspolicy] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[vpnclientlessaccesspolicy] identifier[obj] operator[=] Keyword[new] identi...
public Future<RankedStats> getRankedStats(long summoner, Season season) { return new ApiFuture<>(() -> handler.getRankedStats(summoner, season)); }
class class_name[name] begin[{] method[getRankedStats, return_type[type[Future]], modifier[public], parameter[summoner, season]] begin[{] return[ClassCreator(arguments=[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=summoner, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] identifier[Future] operator[<] identifier[RankedStats] operator[>] identifier[getRankedStats] operator[SEP] Keyword[long] identifier[summoner] , identifier[Season] identifier[season] operator[SEP] { Keyword[return] Keyword[new] identifier[ApiFuture] operator[<] operator[>] operator[SEP] operator...
void addModuleResource(String moduleResource) { CmsModuleResourceSelectField resField = createModuleResourceField(moduleResource); if (resField != null) { m_moduleResourcesGroup.addRow(resField); } }
class class_name[name] begin[{] method[addModuleResource, return_type[void], modifier[default], parameter[moduleResource]] begin[{] local_variable[type[CmsModuleResourceSelectField], resField] if[binary_operation[member[.resField], !=, literal[null]]] begin[{] ca...
Keyword[void] identifier[addModuleResource] operator[SEP] identifier[String] identifier[moduleResource] operator[SEP] { identifier[CmsModuleResourceSelectField] identifier[resField] operator[=] identifier[createModuleResourceField] operator[SEP] identifier[moduleResource] operator[SEP] operator[SEP] Keyword[if] ...
public static void copyFromBytes( MemorySegment[] segments, int offset, byte[] bytes, int bytesOffset, int numBytes) { if (segments.length == 1) { segments[0].put(offset, bytes, bytesOffset, numBytes); } else { copyMultiSegmentsFromBytes(segments, offset, bytes, bytesOffset, numBytes); } }
class class_name[name] begin[{] method[copyFromBytes, return_type[void], modifier[public static], parameter[segments, offset, bytes, bytesOffset, numBytes]] begin[{] if[binary_operation[member[segments.length], ==, literal[1]]] begin[{] member[.segments] else beg...
Keyword[public] Keyword[static] Keyword[void] identifier[copyFromBytes] operator[SEP] identifier[MemorySegment] operator[SEP] operator[SEP] identifier[segments] , Keyword[int] identifier[offset] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[bytesOffset] , Keyword[int] ident...
@java.lang.Deprecated public java.util.Map<java.lang.String, io.grafeas.v1beta1.provenance.FileHashes> getFileHashes() { return getFileHashesMap(); }
class class_name[name] begin[{] method[getFileHashes, return_type[type[java]], modifier[public], parameter[]] begin[{] return[call[.getFileHashesMap, parameter[]]] end[}] END[}]
annotation[@] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Deprecated] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] , identifier[io] operator[SEP] id...
@CheckReturnValue @NonNull @BackpressureSupport(BackpressureKind.ERROR) @SchedulerSupport(SchedulerSupport.NONE) public final <U> Flowable<T> sample(Publisher<U> sampler) { ObjectHelper.requireNonNull(sampler, "sampler is null"); return RxJavaPlugins.onAssembly(new FlowableSamplePublishe...
class class_name[name] begin[{] method[sample, return_type[type[Flowable]], modifier[final public], parameter[sampler]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.sampler], literal["sampler is null"]]] return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(argume...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[NonNull] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[ERROR] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifi...
public String attr(String attributeKey) { Validate.notNull(attributeKey); if (!hasAttributes()) return EmptyString; String val = attributes().getIgnoreCase(attributeKey); if (val.length() > 0) return val; else if (attributeKey.startsWith("abs:")) ...
class class_name[name] begin[{] method[attr, return_type[type[String]], modifier[public], parameter[attributeKey]] begin[{] call[Validate.notNull, parameter[member[.attributeKey]]] if[call[.hasAttributes, parameter[]]] begin[{] return[member[.EmptyString]] else begin[{] ...
Keyword[public] identifier[String] identifier[attr] operator[SEP] identifier[String] identifier[attributeKey] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[attributeKey] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[hasAttributes] o...
public static Bitmap clipCircle(@NonNull final Bitmap bitmap, final int size) { Bitmap squareBitmap = clipSquare(bitmap, size); int squareSize = squareBitmap.getWidth(); float radius = (float) squareSize / 2.0f; Bitmap clippedBitmap = Bitmap.createBitmap(squareSize, squareSize, Bitmap.Co...
class class_name[name] begin[{] method[clipCircle, return_type[type[Bitmap]], modifier[public static], parameter[bitmap, size]] begin[{] local_variable[type[Bitmap], squareBitmap] local_variable[type[int], squareSize] local_variable[type[float], radius] local_variable[type[Bitma...
Keyword[public] Keyword[static] identifier[Bitmap] identifier[clipCircle] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[Bitmap] identifier[bitmap] , Keyword[final] Keyword[int] identifier[size] operator[SEP] { identifier[Bitmap] identifier[squareBitmap] operator[=] identifier[clipSqu...
public boolean unprotectDocument(String pwd) { boolean result = false; if (this.protectionHash.equals(RtfProtection.generateHash(pwd))) { this.protectionLevel = RtfProtection.LEVEL_NONE; this.protectionHash = null; result = true; } return result; }
class class_name[name] begin[{] method[unprotectDocument, return_type[type[boolean]], modifier[public], parameter[pwd]] begin[{] local_variable[type[boolean], result] if[THIS[member[None.protectionHash]call[None.equals, parameter[call[RtfProtection.generateHash, parameter[member[.pwd]]]...
Keyword[public] Keyword[boolean] identifier[unprotectDocument] operator[SEP] identifier[String] identifier[pwd] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[protectionHash] operator[SEP] identifier[...
@Override protected void processConditions(final BuildData buildData, final SpecTopic specTopic, final Document doc) { if (buildData.getContentSpec().getPublicanCfg() == null || !buildData.getContentSpec().getPublicanCfg().contains("condition:")) { super.processConditions(buildData, specTopic, d...
class class_name[name] begin[{] method[processConditions, return_type[void], modifier[protected], parameter[buildData, specTopic, doc]] begin[{] if[binary_operation[binary_operation[call[buildData.getContentSpec, parameter[]], ==, literal[null]], ||, call[buildData.getContentSpec, parameter[]]]...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[processConditions] operator[SEP] Keyword[final] identifier[BuildData] identifier[buildData] , Keyword[final] identifier[SpecTopic] identifier[specTopic] , Keyword[final] identifier[Document] identifier[doc] operator[SEP] { Keyword[i...
@Override public CancelRetrievalResult cancelRetrieval(CancelRetrievalRequest request) { request = beforeClientExecution(request); return executeCancelRetrieval(request); }
class class_name[name] begin[{] method[cancelRetrieval, return_type[type[CancelRetrievalResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCancelRetrieval, parameter[member[.req...
annotation[@] identifier[Override] Keyword[public] identifier[CancelRetrievalResult] identifier[cancelRetrieval] operator[SEP] identifier[CancelRetrievalRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] o...
public int getCalculatedStyle() { int style = this.style; if (style == UNDEFINED) { style = NORMAL; } if (baseFont != null) return style; if (family == SYMBOL || family == ZAPFDINGBATS) return style; else return style & (~BOLDITALIC); }
class class_name[name] begin[{] method[getCalculatedStyle, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], style] if[binary_operation[member[.style], ==, member[.UNDEFINED]]] begin[{] assign[member[.style], member[.NORMAL...
Keyword[public] Keyword[int] identifier[getCalculatedStyle] operator[SEP] operator[SEP] { Keyword[int] identifier[style] operator[=] Keyword[this] operator[SEP] identifier[style] operator[SEP] Keyword[if] operator[SEP] identifier[style] operator[==] identifier[UNDEFINED] operator[SEP] { identifier[sty...
public final ParallelFlux<T> doOnComplete(Runnable onComplete) { Objects.requireNonNull(onComplete, "onComplete"); return doOnSignal(this, null, null, null, onComplete, null, null, null, null); }
class class_name[name] begin[{] method[doOnComplete, return_type[type[ParallelFlux]], modifier[final public], parameter[onComplete]] begin[{] call[Objects.requireNonNull, parameter[member[.onComplete], literal["onComplete"]]] return[call[.doOnSignal, parameter[THIS[], literal[null], lit...
Keyword[public] Keyword[final] identifier[ParallelFlux] operator[<] identifier[T] operator[>] identifier[doOnComplete] operator[SEP] identifier[Runnable] identifier[onComplete] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[onComplete] , literal[String] ope...
@Override public EClass getIfcSanitaryTerminalType() { if (ifcSanitaryTerminalTypeEClass == null) { ifcSanitaryTerminalTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(585); } return ifcSanitaryTerminalTypeEClass; }
class class_name[name] begin[{] method[getIfcSanitaryTerminalType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcSanitaryTerminalTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcSanitaryTerminalTypeEClass], C...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcSanitaryTerminalType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcSanitaryTerminalTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcSanitaryTerminalTypeEClass] operator[=] ...
public static void verifyCondition(@Nullable ErrorCollector errorCollector, @Nullable ValueRecorder recorder, @Nullable String text, int line, int column, @Nullable Object message, @Nullable Object condition) { if (!GroovyRuntimeUtil.isTruthy(condition)) { final ConditionNotSatisfiedError conditionNotSa...
class class_name[name] begin[{] method[verifyCondition, return_type[void], modifier[public static], parameter[errorCollector, recorder, text, line, column, message, condition]] begin[{] if[call[GroovyRuntimeUtil.isTruthy, parameter[member[.condition]]]] begin[{] local_variable[type[...
Keyword[public] Keyword[static] Keyword[void] identifier[verifyCondition] operator[SEP] annotation[@] identifier[Nullable] identifier[ErrorCollector] identifier[errorCollector] , annotation[@] identifier[Nullable] identifier[ValueRecorder] identifier[recorder] , annotation[@] identifier[Nullable] identifier[String] i...
public static String getBodyFromApptentivePush(Bundle bundle) { try { if (!ApptentiveInternal.checkRegistered()) { return null; } if (bundle == null) { return null; } if (bundle.containsKey(ApptentiveInternal.BODY_DEFAULT)) { return bundle.getString(ApptentiveInternal.BODY_DEFAULT); } ...
class class_name[name] begin[{] method[getBodyFromApptentivePush, return_type[type[String]], modifier[public static], parameter[bundle]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=checkRegistered, postfix_operators=[], prefix_operators=['!'], qualifier=Appt...
Keyword[public] Keyword[static] identifier[String] identifier[getBodyFromApptentivePush] operator[SEP] identifier[Bundle] identifier[bundle] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[ApptentiveInternal] operator[SEP] identifier[checkRegistered] operator[SEP] opera...
public static Object sim( String file, String ll, String cmd ) throws Exception { String f = CLI.readFile(file); Object o = CLI.createSim(f, false, ll); return CLI.invoke(o, cmd); }
class class_name[name] begin[{] method[sim, return_type[type[Object]], modifier[public static], parameter[file, ll, cmd]] begin[{] local_variable[type[String], f] local_variable[type[Object], o] return[call[CLI.invoke, parameter[member[.o], member[.cmd]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[sim] operator[SEP] identifier[String] identifier[file] , identifier[String] identifier[ll] , identifier[String] identifier[cmd] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[f] operator[=] identifier[CLI] operat...
public Observable<Void> beginDownloadUpdatesAsync(String deviceName, String resourceGroupName) { return beginDownloadUpdatesWithServiceResponseAsync(deviceName, resourceGroupName).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void call(ServiceResponse<Void> response) { ...
class class_name[name] begin[{] method[beginDownloadUpdatesAsync, return_type[type[Observable]], modifier[public], parameter[deviceName, resourceGroupName]] begin[{] return[call[.beginDownloadUpdatesWithServiceResponseAsync, parameter[member[.deviceName], member[.resourceGroupName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[beginDownloadUpdatesAsync] operator[SEP] identifier[String] identifier[deviceName] , identifier[String] identifier[resourceGroupName] operator[SEP] { Keyword[return] identifier[beginDownloadUpdatesWithServiceResponseAsync...
public void nextItem() { moveToNext(); if (currentItemIndex == -1) { return; } IPlayItem item = null; do { try { PlayItemEntry entry = items.get(currentItemIndex); if (entry != null) { item = en...
class class_name[name] begin[{] method[nextItem, return_type[void], modifier[public], parameter[]] begin[{] call[.moveToNext, parameter[]] if[binary_operation[member[.currentItemIndex], ==, literal[1]]] begin[{] return[None] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[nextItem] operator[SEP] operator[SEP] { identifier[moveToNext] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[currentItemIndex] operator[==] operator[-] Other[1] operator[SEP] { Keyword[return] operator[SEP] } ident...
public Slug getSlugInfo(String appName, String slugId) { return connection.execute(new SlugInfo(appName, slugId), apiKey); }
class class_name[name] begin[{] method[getSlugInfo, return_type[type[Slug]], modifier[public], parameter[appName, slugId]] begin[{] return[call[connection.execute, parameter[ClassCreator(arguments=[MemberReference(member=appName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem...
Keyword[public] identifier[Slug] identifier[getSlugInfo] operator[SEP] identifier[String] identifier[appName] , identifier[String] identifier[slugId] operator[SEP] { Keyword[return] identifier[connection] operator[SEP] identifier[execute] operator[SEP] Keyword[new] identifier[SlugInfo] operator[SEP] identifier[...
public void setCommerceWishListService( com.liferay.commerce.wish.list.service.CommerceWishListService commerceWishListService) { this.commerceWishListService = commerceWishListService; }
class class_name[name] begin[{] method[setCommerceWishListService, return_type[void], modifier[public], parameter[commerceWishListService]] begin[{] assign[THIS[member[None.commerceWishListService]], member[.commerceWishListService]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setCommerceWishListService] operator[SEP] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[wish] operator[SEP] identifier[list] operator[SEP] identifier[service] operator[SEP] identifier[CommerceWishListService] identi...
public Observable<OpenShiftManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, OpenShiftManagedClusterInner parameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters).map(new Func1<ServiceResponse<OpenShiftManagedCluster...
class class_name[name] begin[{] method[beginCreateOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, resourceName, parameters]] begin[{] return[call[.beginCreateOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName], membe...
Keyword[public] identifier[Observable] operator[<] identifier[OpenShiftManagedClusterInner] operator[>] identifier[beginCreateOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[OpenShiftManagedClusterInner] identifier[parameters] op...
public static Dynamic bootstrap(String name, Constructor<?> constructor, Object... rawArgument) { return bootstrap(name, constructor, Arrays.asList(rawArgument)); }
class class_name[name] begin[{] method[bootstrap, return_type[type[Dynamic]], modifier[public static], parameter[name, constructor, rawArgument]] begin[{] return[call[.bootstrap, parameter[member[.name], member[.constructor], call[Arrays.asList, parameter[member[.rawArgument]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Dynamic] identifier[bootstrap] operator[SEP] identifier[String] identifier[name] , identifier[Constructor] operator[<] operator[?] operator[>] identifier[constructor] , identifier[Object] operator[...] identifier[rawArgument] operator[SEP] { Keyword[return] identifier...
public static String convertDateToTimeString(Date date) { if (date == null) { return null; } else { // DateFormat df = new SimpleDateFormat("HH:mm:ss.SSS'Z'"); DateTimeFormatter df = FORMATTER_SECONDS_Z; return df.print(date.getTime()); } }
class class_name[name] begin[{] method[convertDateToTimeString, return_type[type[String]], modifier[public static], parameter[date]] begin[{] if[binary_operation[member[.date], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] local_variable[type[D...
Keyword[public] Keyword[static] identifier[String] identifier[convertDateToTimeString] 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[e...
public void parametersAreDefined(Report report) throws ParameterNotFoundException { String[] paramNames; String sql = report.getSql(); if (sql == null) { sql = report.getQuery().toString(); } Query query = new Query(sql); paramNames = query.getParameterNames()...
class class_name[name] begin[{] method[parametersAreDefined, return_type[void], modifier[public], parameter[report]] begin[{] local_variable[type[String], paramNames] local_variable[type[String], sql] if[binary_operation[member[.sql], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[parametersAreDefined] operator[SEP] identifier[Report] identifier[report] operator[SEP] Keyword[throws] identifier[ParameterNotFoundException] { identifier[String] operator[SEP] operator[SEP] identifier[paramNames] operator[SEP] identifier[String] identifier[sql] operator...
private static RecordType typeFromChar(char recChar) { for (int i=0; i < numRecChars; i++) { if (recordChars[i] == recChar) { return recordTypes[i]; } } throw new BitsyException(BitsyErrorCodes.INTERNAL_ERROR, "Unrecognized record type " + recChar...
class class_name[name] begin[{] method[typeFromChar, return_type[type[RecordType]], modifier[private static], parameter[recChar]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=recordChars, postfix_operators=[], pr...
Keyword[private] Keyword[static] identifier[RecordType] identifier[typeFromChar] operator[SEP] Keyword[char] identifier[recChar] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[numRecChars] operator[SEP] identifier[i] o...
public CrawlDatum next(){ int topN = getConf().getTopN(); int maxExecuteCount = getConf().getOrDefault(Configuration.KEY_MAX_EXECUTE_COUNT, Integer.MAX_VALUE); if(topN > 0 && totalGenerate >= topN){ return null; } CrawlDatum datum; while (true) { ...
class class_name[name] begin[{] method[next, return_type[type[CrawlDatum]], modifier[public], parameter[]] begin[{] local_variable[type[int], topN] local_variable[type[int], maxExecuteCount] if[binary_operation[binary_operation[member[.topN], >, literal[0]], &&, binary_operation...
Keyword[public] identifier[CrawlDatum] identifier[next] operator[SEP] operator[SEP] { Keyword[int] identifier[topN] operator[=] identifier[getConf] operator[SEP] operator[SEP] operator[SEP] identifier[getTopN] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[maxExecuteCount] operator[=] identifi...
private void commitServices() { PartitionMigrationEvent event = getPartitionMigrationEvent(); for (MigrationAwareService service : getMigrationAwareServices()) { try { service.commitMigration(event); } catch (Throwable e) { logger.warning("While pr...
class class_name[name] begin[{] method[commitServices, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[PartitionMigrationEvent], event] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(ar...
Keyword[private] Keyword[void] identifier[commitServices] operator[SEP] operator[SEP] { identifier[PartitionMigrationEvent] identifier[event] operator[=] identifier[getPartitionMigrationEvent] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[MigrationAwareService] identifier[servic...
public static String getVersion() { String rev = getBuildRevision(); Date date = getBuildDate(); StringBuilder result = new StringBuilder(); result.append(getReleaseName()); if (!"".equals(rev) || date != null) { result.append(" ("); boolean added = false; if (!"".equals(re...
class class_name[name] begin[{] method[getVersion, return_type[type[String]], modifier[public static], parameter[]] begin[{] local_variable[type[String], rev] local_variable[type[Date], date] local_variable[type[StringBuilder], result] call[result.append, parameter[call[...
Keyword[public] Keyword[static] identifier[String] identifier[getVersion] operator[SEP] operator[SEP] { identifier[String] identifier[rev] operator[=] identifier[getBuildRevision] operator[SEP] operator[SEP] operator[SEP] identifier[Date] identifier[date] operator[=] identifier[getBuildDate] operator[SEP] operat...
public Postcard withCharSequence(@Nullable String key, @Nullable CharSequence value) { mBundle.putCharSequence(key, value); return this; }
class class_name[name] begin[{] method[withCharSequence, return_type[type[Postcard]], modifier[public], parameter[key, value]] begin[{] call[mBundle.putCharSequence, parameter[member[.key], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[Postcard] identifier[withCharSequence] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[key] , annotation[@] identifier[Nullable] identifier[CharSequence] identifier[value] operator[SEP] { identifier[mBundle] operator[SEP] identifier[putCharSequence] oper...
public void matches(Session other) throws ClientException { compareTransferParams(other); compareServerMode(other); if (needsGridFTP() && transferMode != MODE_EBLOCK) { throw new ClientException(ClientException.BAD_MODE, "Extended block mode necessary"); ...
class class_name[name] begin[{] method[matches, return_type[void], modifier[public], parameter[other]] begin[{] call[.compareTransferParams, parameter[member[.other]]] call[.compareServerMode, parameter[member[.other]]] if[binary_operation[call[.needsGridFTP, par...
Keyword[public] Keyword[void] identifier[matches] operator[SEP] identifier[Session] identifier[other] operator[SEP] Keyword[throws] identifier[ClientException] { identifier[compareTransferParams] operator[SEP] identifier[other] operator[SEP] operator[SEP] identifier[compareServerMode] operator[SEP] identifier[ot...
public CompartmentDefinition addResource(CompartmentDefinitionResourceComponent t) { //3 if (t == null) return this; if (this.resource == null) this.resource = new ArrayList<CompartmentDefinitionResourceComponent>(); this.resource.add(t); return this; }
class class_name[name] begin[{] method[addResource, return_type[type[CompartmentDefinition]], modifier[public], parameter[t]] begin[{] if[binary_operation[member[.t], ==, literal[null]]] begin[{] return[THIS[]] else begin[{] None end[}] if[binary_operation[THIS[m...
Keyword[public] identifier[CompartmentDefinition] identifier[addResource] operator[SEP] identifier[CompartmentDefinitionResourceComponent] identifier[t] operator[SEP] { Keyword[if] operator[SEP] identifier[t] operator[==] Other[null] operator[SEP] Keyword[return] Keyword[this] operator[SEP] Keyword[if] operator[...
public MediaServiceInner create(String resourceGroupName, String mediaServiceName, MediaServiceInner parameters) { return createWithServiceResponseAsync(resourceGroupName, mediaServiceName, parameters).toBlocking().single().body(); }
class class_name[name] begin[{] method[create, return_type[type[MediaServiceInner]], modifier[public], parameter[resourceGroupName, mediaServiceName, parameters]] begin[{] return[call[.createWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.mediaServiceName], member[.parameters]]]...
Keyword[public] identifier[MediaServiceInner] identifier[create] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[mediaServiceName] , identifier[MediaServiceInner] identifier[parameters] operator[SEP] { Keyword[return] identifier[createWithServiceResponseAsync] ope...
public String compose(final ReceivedEmail receivedEmail) { Message msg = receivedEmail.originalMessage(); final ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); try { msg.writeTo(outputStream); } catch (IOException | MessagingException e) { throw new MailException(e); } return outp...
class class_name[name] begin[{] method[compose, return_type[type[String]], modifier[public], parameter[receivedEmail]] begin[{] local_variable[type[Message], msg] local_variable[type[ByteArrayOutputStream], outputStream] TryStatement(block=[StatementExpression(expression=MethodInvocatio...
Keyword[public] identifier[String] identifier[compose] operator[SEP] Keyword[final] identifier[ReceivedEmail] identifier[receivedEmail] operator[SEP] { identifier[Message] identifier[msg] operator[=] identifier[receivedEmail] operator[SEP] identifier[originalMessage] operator[SEP] operator[SEP] operator[SEP] Key...
public static alluxio.grpc.FileInfo toProto(FileInfo fileInfo) { List<alluxio.grpc.FileBlockInfo> fileBlockInfos = new ArrayList<>(); for (FileBlockInfo fileBlockInfo : fileInfo.getFileBlockInfos()) { fileBlockInfos.add(toProto(fileBlockInfo)); } alluxio.grpc.FileInfo.Builder builder = alluxio.grp...
class class_name[name] begin[{] method[toProto, return_type[type[alluxio]], modifier[public static], parameter[fileInfo]] begin[{] local_variable[type[List], fileBlockInfos] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Metho...
Keyword[public] Keyword[static] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[FileInfo] identifier[toProto] operator[SEP] identifier[FileInfo] identifier[fileInfo] operator[SEP] { identifier[List] operator[<] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifie...
Segment getSegment(int vertex) { if (m_segments != null) { int vindex = getVertexIndex(vertex); return m_segments.get(vindex); } return null; }
class class_name[name] begin[{] method[getSegment, return_type[type[Segment]], modifier[default], parameter[vertex]] begin[{] if[binary_operation[member[.m_segments], !=, literal[null]]] begin[{] local_variable[type[int], vindex] return[call[m_segments.get, parameter[mem...
identifier[Segment] identifier[getSegment] operator[SEP] Keyword[int] identifier[vertex] operator[SEP] { Keyword[if] operator[SEP] identifier[m_segments] operator[!=] Other[null] operator[SEP] { Keyword[int] identifier[vindex] operator[=] identifier[getVertexIndex] operator[SEP] identifier[vertex] ope...
public static PayloadReader reader(final String pathAccountSid, final String pathReferenceSid, final String pathAddOnResultSid) { return new PayloadReader(pathAccountSid, pathReferenceSid, pathAddOnResultSid); }
class class_name[name] begin[{] method[reader, return_type[type[PayloadReader]], modifier[public static], parameter[pathAccountSid, pathReferenceSid, pathAddOnResultSid]] begin[{] return[ClassCreator(arguments=[MemberReference(member=pathAccountSid, postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] Keyword[static] identifier[PayloadReader] identifier[reader] operator[SEP] Keyword[final] identifier[String] identifier[pathAccountSid] , Keyword[final] identifier[String] identifier[pathReferenceSid] , Keyword[final] identifier[String] identifier[pathAddOnResultSid] operator[SEP] { Keyword[ret...
private <T> List<T> readCSVByMapHandler(InputStream is, Class<T> clazz) throws IOException, Excel4JException { List<T> records = new ArrayList<>(); List<ExcelHeader> headers = Utils.getHeaderList(clazz); if (null == headers || headers.size() <= 0) { throw new Excel4jRea...
class class_name[name] begin[{] method[readCSVByMapHandler, return_type[type[List]], modifier[private], parameter[is, clazz]] begin[{] local_variable[type[List], records] local_variable[type[List], headers] if[binary_operation[binary_operation[literal[null], ==, member[.headers]...
Keyword[private] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[readCSVByMapHandler] operator[SEP] identifier[InputStream] identifier[is] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] Keyword[throws] identifier[IOExcep...
public XEvent set(int index, XEvent event) { try { XEvent result = events.replace(event, index); return result; } catch (IOException e) { e.printStackTrace(); return null; } }
class class_name[name] begin[{] method[set, return_type[type[XEvent]], modifier[public], parameter[index, event]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=event, po...
Keyword[public] identifier[XEvent] identifier[set] operator[SEP] Keyword[int] identifier[index] , identifier[XEvent] identifier[event] operator[SEP] { Keyword[try] { identifier[XEvent] identifier[result] operator[=] identifier[events] operator[SEP] identifier[replace] operator[SEP] identifier[event] ...
public List<String> getValuesOfColumn(final int columnNumber, final String sqlQuery) throws SQLException { LOG.info("Connecting to: " + this.dbString + " with " + this.usr + " and " + this.pwd); LOG.info("Executing: " + sqlQuery); List<String> result = new ArrayList<String>(); List<List<String>> allResul...
class class_name[name] begin[{] method[getValuesOfColumn, return_type[type[List]], modifier[public], parameter[columnNumber, sqlQuery]] begin[{] call[LOG.info, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Connecting to: "], +, THIS[memb...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getValuesOfColumn] operator[SEP] Keyword[final] Keyword[int] identifier[columnNumber] , Keyword[final] identifier[String] identifier[sqlQuery] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[LOG] operator[...
public final double[] getDpiSuggestions() { if (this.dpiSuggestions == null) { List<Double> list = new ArrayList<>(); for (double suggestion: DEFAULT_DPI_VALUES) { if (suggestion <= this.maxDpi) { list.add(suggestion); } } ...
class class_name[name] begin[{] method[getDpiSuggestions, return_type[type[double]], modifier[final public], parameter[]] begin[{] if[binary_operation[THIS[member[None.dpiSuggestions]], ==, literal[null]]] begin[{] local_variable[type[List], list] ForStatement(body=Block...
Keyword[public] Keyword[final] Keyword[double] operator[SEP] operator[SEP] identifier[getDpiSuggestions] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[dpiSuggestions] operator[==] Other[null] operator[SEP] { identifier[List] operator[<] identifier[Doubl...
private void fastDoubleFormat(double d, boolean negative) { char[] container = fastPathData.fastPathContainer; /* * The principle of the algorithm is to : * - Break the passed double into its integral and fractional parts * converted into...
class class_name[name] begin[{] method[fastDoubleFormat, return_type[void], modifier[private], parameter[d, negative]] begin[{] local_variable[type[char], container] local_variable[type[int], integralPartAsInt] local_variable[type[double], exactFractionalPart] local_variable[typ...
Keyword[private] Keyword[void] identifier[fastDoubleFormat] operator[SEP] Keyword[double] identifier[d] , Keyword[boolean] identifier[negative] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[container] operator[=] identifier[fastPathData] operator[SEP] identifier[fastPathContainer] operato...
protected void updateForNewConfiguration(CmsGitConfiguration gitConfig) { if (!m_checkinBean.setCurrentConfiguration(gitConfig)) { Notification.show( CmsVaadinUtils.getMessageText(Messages.GUI_GIT_CONFIGURATION_SWITCH_FAILED_0), CmsVaadinUtils.getMessageText(Messages...
class class_name[name] begin[{] method[updateForNewConfiguration, return_type[void], modifier[protected], parameter[gitConfig]] begin[{] if[call[m_checkinBean.setCurrentConfiguration, parameter[member[.gitConfig]]]] begin[{] call[Notification.show, parameter[call[CmsVaad...
Keyword[protected] Keyword[void] identifier[updateForNewConfiguration] operator[SEP] identifier[CmsGitConfiguration] identifier[gitConfig] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_checkinBean] operator[SEP] identifier[setCurrentConfiguration] operator[SEP] identifier[gitConfig] operator...
public Map<Integer, List<Row>> createTimeEntryMap(List<Row> rows) { Map<Integer, List<Row>> map = new HashMap<Integer, List<Row>>(); for (Row row : rows) { Integer workPatternID = row.getInteger("TIME_ENTRYID"); List<Row> list = map.get(workPatternID); if (list == null) ...
class class_name[name] begin[{] method[createTimeEntryMap, return_type[type[Map]], modifier[public], parameter[rows]] begin[{] local_variable[type[Map], map] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensi...
Keyword[public] identifier[Map] operator[<] identifier[Integer] , identifier[List] operator[<] identifier[Row] operator[>] operator[>] identifier[createTimeEntryMap] operator[SEP] identifier[List] operator[<] identifier[Row] operator[>] identifier[rows] operator[SEP] { identifier[Map] operator[<] identifier[Int...
private static final void checkTempDirs(final String[] tempDirs) throws Exception { for (int i = 0; i < tempDirs.length; ++i) { final String dir = tempDirs[i]; if (dir == null) { throw new Exception("Temporary file directory #" + (i + 1) + " is null."); } final File f = new File(dir); if (!f.ex...
class class_name[name] begin[{] method[checkTempDirs, return_type[void], modifier[final private static], parameter[tempDirs]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberRefer...
Keyword[private] Keyword[static] Keyword[final] Keyword[void] identifier[checkTempDirs] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[tempDirs] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0]...
@BetaApi public final ListInstancesRegionInstanceGroupsPagedResponse listInstancesRegionInstanceGroups( String instanceGroup, RegionInstanceGroupsListInstancesRequest regionInstanceGroupsListInstancesRequestResource) { ListInstancesRegionInstanceGroupsHttpRequest request = ListInstancesRegionI...
class class_name[name] begin[{] method[listInstancesRegionInstanceGroups, return_type[type[ListInstancesRegionInstanceGroupsPagedResponse]], modifier[final public], parameter[instanceGroup, regionInstanceGroupsListInstancesRequestResource]] begin[{] local_variable[type[ListInstancesRegionInstanceGroups...
annotation[@] identifier[BetaApi] Keyword[public] Keyword[final] identifier[ListInstancesRegionInstanceGroupsPagedResponse] identifier[listInstancesRegionInstanceGroups] operator[SEP] identifier[String] identifier[instanceGroup] , identifier[RegionInstanceGroupsListInstancesRequest] identifier[regionInstanceGroupsList...
protected SofaRouteException unavailableProviderException(String serviceKey, String providerInfo) { return new SofaRouteException(LogCodes.getLog(LogCodes.ERROR_TARGET_URL_INVALID, serviceKey, providerInfo)); }
class class_name[name] begin[{] method[unavailableProviderException, return_type[type[SofaRouteException]], modifier[protected], parameter[serviceKey, providerInfo]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ERROR_TARGET_URL_INVALID, postfix_operators=[]...
Keyword[protected] identifier[SofaRouteException] identifier[unavailableProviderException] operator[SEP] identifier[String] identifier[serviceKey] , identifier[String] identifier[providerInfo] operator[SEP] { Keyword[return] Keyword[new] identifier[SofaRouteException] operator[SEP] identifier[LogCodes] operator...
public void removeLine (final Line aLine) { if (aLine.m_aPrevious == null) m_aLines = aLine.m_aNext; else aLine.m_aPrevious.m_aNext = aLine.m_aNext; if (aLine.m_aNext == null) m_aLineTail = aLine.m_aPrevious; else aLine.m_aNext.m_aPrevious = aLine.m_aPrevious; aLine.m_aPrev...
class class_name[name] begin[{] method[removeLine, return_type[void], modifier[public], parameter[aLine]] begin[{] if[binary_operation[member[aLine.m_aPrevious], ==, literal[null]]] begin[{] assign[member[.m_aLines], member[aLine.m_aNext]] else begin[{] assign[me...
Keyword[public] Keyword[void] identifier[removeLine] operator[SEP] Keyword[final] identifier[Line] identifier[aLine] operator[SEP] { Keyword[if] operator[SEP] identifier[aLine] operator[SEP] identifier[m_aPrevious] operator[==] Other[null] operator[SEP] identifier[m_aLines] operator[=] identifier[aLine] operator...
public Optional<String> getLabel(final Object targetObj) { ArgUtils.notNull(targetObj, "targetObj"); return labelGetter.map(getter -> getter.get(targetObj)).orElse(Optional.empty()); }
class class_name[name] begin[{] method[getLabel, return_type[type[Optional]], modifier[public], parameter[targetObj]] begin[{] call[ArgUtils.notNull, parameter[member[.targetObj], literal["targetObj"]]] return[call[labelGetter.map, parameter[LambdaExpression(body=MethodInvocation(argume...
Keyword[public] identifier[Optional] operator[<] identifier[String] operator[>] identifier[getLabel] operator[SEP] Keyword[final] identifier[Object] identifier[targetObj] operator[SEP] { identifier[ArgUtils] operator[SEP] identifier[notNull] operator[SEP] identifier[targetObj] , literal[String] operator[SEP] op...
public final EObject ruleEnumLiterals() throws RecognitionException { EObject current = null; Token otherlv_2=null; EObject this_EnumLiteralDeclaration_0 = null; EObject lv_elements_3_0 = null; enterRule(); try { // InternalXtext.g:3652:2: ( (this_EnumL...
class class_name[name] begin[{] method[ruleEnumLiterals, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_2] local_variable[type[EObject], this_EnumLiteralDeclaration_0] local_var...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleEnumLiterals] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_2] operator[=] Other[null] operator[SEP...
final public ThenExpressionBuilder<T> ifExp() { return new ThenExpressionBuilder<T>(new ExpressionHandler<ThenBuilder<T>>() { public ThenBuilder<T> handleExpression(final Expression e) { return new ThenBuilder<T>(e, new IfStatementHandler<T>() { public T handleStatement(IfStatement ifStateme...
class class_name[name] begin[{] method[ifExp, return_type[type[ThenExpressionBuilder]], modifier[final public], parameter[]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[ReturnStatement(expression=ClassCreator(arguments=[MemberReferenc...
Keyword[final] Keyword[public] identifier[ThenExpressionBuilder] operator[<] identifier[T] operator[>] identifier[ifExp] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ThenExpressionBuilder] operator[<] identifier[T] operator[>] operator[SEP] Keyword[new] identifier[ExpressionHandler] oper...
public List<LocationInner> listLocations(String subscriptionId) { return listLocationsWithServiceResponseAsync(subscriptionId).toBlocking().single().body(); }
class class_name[name] begin[{] method[listLocations, return_type[type[List]], modifier[public], parameter[subscriptionId]] begin[{] return[call[.listLocationsWithServiceResponseAsync, parameter[member[.subscriptionId]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[LocationInner] operator[>] identifier[listLocations] operator[SEP] identifier[String] identifier[subscriptionId] operator[SEP] { Keyword[return] identifier[listLocationsWithServiceResponseAsync] operator[SEP] identifier[subscriptionId] operator[SEP] operato...
public void findCandidateSubsForWildcardExpr(String topicExpression, String topicStem, Set consumerSet) throws SIDiscriminatorSyntaxException { if (tc.isEntryEnabled()) SibTr.entry( ...
class class_name[name] begin[{] method[findCandidateSubsForWildcardExpr, return_type[void], modifier[public], parameter[topicExpression, topicStem, consumerSet]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["findCandidat...
Keyword[public] Keyword[void] identifier[findCandidateSubsForWildcardExpr] operator[SEP] identifier[String] identifier[topicExpression] , identifier[String] identifier[topicStem] , identifier[Set] identifier[consumerSet] operator[SEP] Keyword[throws] identifier[SIDiscriminatorSyntaxException] { Keyword[if] ope...
public static <T> T invoke(Object obj, String methodName, Object... args) throws UtilException { final Method method = getMethodOfObj(obj, methodName, args); if (null == method) { throw new UtilException(StrUtil.format("No such method: [{}]", methodName)); } return invoke(obj, method, args); }
class class_name[name] begin[{] method[invoke, return_type[type[T]], modifier[public static], parameter[obj, methodName, args]] begin[{] local_variable[type[Method], method] if[binary_operation[literal[null], ==, member[.method]]] begin[{] ThrowStatement(expression=ClassCrea...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[invoke] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[methodName] , identifier[Object] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[UtilException] { Keywo...
public Datatype.Builder setBuilderFactory(Optional<? extends BuilderFactory> builderFactory) { if (builderFactory.isPresent()) { return setBuilderFactory(builderFactory.get()); } else { return clearBuilderFactory(); } }
class class_name[name] begin[{] method[setBuilderFactory, return_type[type[Datatype]], modifier[public], parameter[builderFactory]] begin[{] if[call[builderFactory.isPresent, parameter[]]] begin[{] return[call[.setBuilderFactory, parameter[call[builderFactory.get, parameter[]]]]] ...
Keyword[public] identifier[Datatype] operator[SEP] identifier[Builder] identifier[setBuilderFactory] operator[SEP] identifier[Optional] operator[<] operator[?] Keyword[extends] identifier[BuilderFactory] operator[>] identifier[builderFactory] operator[SEP] { Keyword[if] operator[SEP] identifier[builderFactory] o...
@AroundInvoke public Object never(final InvocationContext context) throws Exception { if (getUOWM().getUOWType() == UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION) { throw new TransactionalException("TxType.NEVER method called within a global tx", new InvalidTransactionException()); ...
class class_name[name] begin[{] method[never, return_type[type[Object]], modifier[public], parameter[context]] begin[{] if[binary_operation[call[.getUOWM, parameter[]], ==, member[UOWSynchronizationRegistry.UOW_TYPE_GLOBAL_TRANSACTION]]] begin[{] ThrowStatement(expression=ClassCreat...
annotation[@] identifier[AroundInvoke] Keyword[public] identifier[Object] identifier[never] operator[SEP] Keyword[final] identifier[InvocationContext] identifier[context] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[getUOWM] operator[SEP] operator[SEP] operator[SEP] ...
private Collection<KeyReader> findReader(final Class<? extends Saga> sagaClazz, final Class<?> messageClazz) { Saga saga = sagaProviderFactory.createProvider(sagaClazz).get(); Collection<KeyReader> readers = saga.keyReaders(); if (readers == null) { // return empty list in case saga ...
class class_name[name] begin[{] method[findReader, return_type[type[Collection]], modifier[private], parameter[sagaClazz, messageClazz]] begin[{] local_variable[type[Saga], saga] local_variable[type[Collection], readers] if[binary_operation[member[.readers], ==, literal[null]]] ...
Keyword[private] identifier[Collection] operator[<] identifier[KeyReader] operator[>] identifier[findReader] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Saga] operator[>] identifier[sagaClazz] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] ...
Item set(final int type, final String strVal1, final String strVal2, final String strVal3) { this.type = type; this.strVal1 = strVal1; this.strVal2 = strVal2; this.strVal3 = strVal3; switch (type) { case ClassWriter.UTF8: ...
class class_name[name] begin[{] method[set, return_type[type[Item]], modifier[default], parameter[type, strVal1, strVal2, strVal3]] begin[{] assign[THIS[member[None.type]], member[.type]] assign[THIS[member[None.strVal1]], member[.strVal1]] assign[THIS[member[Non...
identifier[Item] identifier[set] operator[SEP] Keyword[final] Keyword[int] identifier[type] , Keyword[final] identifier[String] identifier[strVal1] , Keyword[final] identifier[String] identifier[strVal2] , Keyword[final] identifier[String] identifier[strVal3] operator[SEP] { Keyword[this] operator[SEP] identi...
public Iterator<ISO9660Directory> sortedIterator() { if (sortedIterator == null) { sortedIterator = new ISO9660DirectoryIterator(this, true); } sortedIterator.reset(); return sortedIterator; }
class class_name[name] begin[{] method[sortedIterator, return_type[type[Iterator]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.sortedIterator], ==, literal[null]]] begin[{] assign[member[.sortedIterator], ClassCreator(arguments=[This(postfix_oper...
Keyword[public] identifier[Iterator] operator[<] identifier[ISO9660Directory] operator[>] identifier[sortedIterator] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[sortedIterator] operator[==] Other[null] operator[SEP] { identifier[sortedIterator] operator[=] Keyword[new] identifie...
public static JsonSchema createFromDatabase(final App app, final List<String> types) throws FrameworkException, URISyntaxException { try (final Tx tx = app.tx()) { final JsonSchema schema = StructrSchemaDefinition.initializeFromDatabase(app, types); tx.success(); return schema; } }
class class_name[name] begin[{] method[createFromDatabase, return_type[type[JsonSchema]], modifier[public static], parameter[app, types]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRe...
Keyword[public] Keyword[static] identifier[JsonSchema] identifier[createFromDatabase] operator[SEP] Keyword[final] identifier[App] identifier[app] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[types] operator[SEP] Keyword[throws] identifier[FrameworkException] , identifier[UR...
@XmlElementDecl(namespace = "http://www.tibco.com/xmlns/ApplicationManagement", name = "application") public JAXBElement<ApplicationType> createApplication(ApplicationType value) { return new JAXBElement<ApplicationType>(_Application_QNAME, ApplicationType.class, null, value); }
class class_name[name] begin[{] method[createApplication, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Application_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_o...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[ApplicationType] operator[>] identifier[createApplication] operator[SEP] identifier[Applic...
public com.google.privacy.dlp.v2.TransformationSummary.SummaryResult getResults(int index) { return results_.get(index); }
class class_name[name] begin[{] method[getResults, return_type[type[com]], modifier[public], parameter[index]] begin[{] return[call[results_.get, parameter[member[.index]]]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[TransformationSummary] operator[SEP] identifier[SummaryResult] identifier[getResults] operator[SEP] Keyword[int] identifier[index] operat...
private void outputSamples() { int samples; while ((samples = vorbisDspState.synthesis_pcmout(_pcmf, _index)) > 0) { float[][] pcmf = _pcmf[0]; bout = (samples < convsize ? samples : convsize); // convert doubles to 16 bit signed ints (host order) and // i...
class class_name[name] begin[{] method[outputSamples, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], samples] while[binary_operation[assign[member[.samples], call[vorbisDspState.synthesis_pcmout, parameter[member[._pcmf], member[._index]]]], >, lit...
Keyword[private] Keyword[void] identifier[outputSamples] operator[SEP] operator[SEP] { Keyword[int] identifier[samples] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[samples] operator[=] identifier[vorbisDspState] operator[SEP] identifier[synthesis_pcmout] operator[SEP] identifier[_pcmf] , ...
public long tick() { long tick = _clock.currentTimeMillis(); long diff = tick - _tick; _tick = tick; return diff; }
class class_name[name] begin[{] method[tick, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[long], tick] local_variable[type[long], diff] assign[member[._tick], member[.tick]] return[member[.diff]] end[}] END[}]
Keyword[public] Keyword[long] identifier[tick] operator[SEP] operator[SEP] { Keyword[long] identifier[tick] operator[=] identifier[_clock] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[diff] operator[=] identifier[tick] operator[-] identifier[_tick...
public static final ConfigurationSourceKey jsonFile(final String name){ return new ConfigurationSourceKey(Type.FILE, Format.JSON, name); }
class class_name[name] begin[{] method[jsonFile, return_type[type[ConfigurationSourceKey]], modifier[final public static], parameter[name]] begin[{] return[ClassCreator(arguments=[MemberReference(member=FILE, postfix_operators=[], prefix_operators=[], qualifier=Type, selectors=[]), MemberReference(memb...
Keyword[public] Keyword[static] Keyword[final] identifier[ConfigurationSourceKey] identifier[jsonFile] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { Keyword[return] Keyword[new] identifier[ConfigurationSourceKey] operator[SEP] identifier[Type] operator[SEP] identifier[FILE] , ...
public static String repeatChars(final char ch, final int count) { return CharBuffer.allocate(count).toString().replace('\0', ch); }
class class_name[name] begin[{] method[repeatChars, return_type[type[String]], modifier[public static], parameter[ch, count]] begin[{] return[call[CharBuffer.allocate, parameter[member[.count]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[repeatChars] operator[SEP] Keyword[final] Keyword[char] identifier[ch] , Keyword[final] Keyword[int] identifier[count] operator[SEP] { Keyword[return] identifier[CharBuffer] operator[SEP] identifier[allocate] operator[SEP] identifier[count] operator[...