code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public com.squareup.okhttp.Call getCharactersCharacterIdWalletAsync(Integer characterId, String datasource, String ifNoneMatch, String token, final ApiCallback<Double> callback) throws ApiException { com.squareup.okhttp.Call call = getCharactersCharacterIdWalletValidateBeforeCall(characterId, datas...
class class_name[name] begin[{] method[getCharactersCharacterIdWalletAsync, return_type[type[com]], modifier[public], parameter[characterId, datasource, ifNoneMatch, token, callback]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] call[ap...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getCharactersCharacterIdWalletAsync] operator[SEP] identifier[Integer] identifier[characterId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNon...
public final void setTransactionOutcome(boolean commit, GlobalTransaction globalTransaction, boolean local) { TransactionStatistics txs = getTransactionStatistic(globalTransaction, local); if (txs == null) { log.outcomeOnUnexistingTransaction(globalTransaction == null ? "null" : globalTransaction.g...
class class_name[name] begin[{] method[setTransactionOutcome, return_type[void], modifier[final public], parameter[commit, globalTransaction, local]] begin[{] local_variable[type[TransactionStatistics], txs] if[binary_operation[member[.txs], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[final] Keyword[void] identifier[setTransactionOutcome] operator[SEP] Keyword[boolean] identifier[commit] , identifier[GlobalTransaction] identifier[globalTransaction] , Keyword[boolean] identifier[local] operator[SEP] { identifier[TransactionStatistics] identifier[txs] operator[=] ident...
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeByte(this.type); switch (this.type) { case HIJRI: this.writeHijri(out); break; case PERSIAN: this.writePersian(out); b...
class class_name[name] begin[{] method[writeExternal, return_type[void], modifier[public], parameter[out]] begin[{] call[out.writeByte, parameter[THIS[member[None.type]]]] SwitchStatement(cases=[SwitchStatementCase(case=['HIJRI'], statements=[StatementExpression(expression=This(postfix_...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeExternal] operator[SEP] identifier[ObjectOutput] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[writeByte] operator[SEP] Keyword[this] operator[SEP] identifier[type] ...
public static List<File> getReports(Configuration settings, final File moduleBaseDir, String reportPathKey) { String[] reportPaths = settings.getStringArray(reportPathKey); if (reportPaths == null || reportPaths.length == 0) { LOG.info("Undefined report path value for key '{}'", reportPathKey); ...
class class_name[name] begin[{] method[getReports, return_type[type[List]], modifier[public static], parameter[settings, moduleBaseDir, reportPathKey]] begin[{] local_variable[type[String], reportPaths] if[binary_operation[binary_operation[member[.reportPaths], ==, literal[null]], ||, b...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[File] operator[>] identifier[getReports] operator[SEP] identifier[Configuration] identifier[settings] , Keyword[final] identifier[File] identifier[moduleBaseDir] , identifier[String] identifier[reportPathKey] operator[SEP] { identifier[Str...
public <T> int del(T pk) throws SQLException { if (pk == null) { return 0; } return this.del(Entity.create(tableName).set(primaryKeyField, pk)); }
class class_name[name] begin[{] method[del, return_type[type[int]], modifier[public], parameter[pk]] begin[{] if[binary_operation[member[.pk], ==, literal[null]]] begin[{] return[literal[0]] else begin[{] None end[}] return[THIS[call[None.del, parameter[call[...
Keyword[public] operator[<] identifier[T] operator[>] Keyword[int] identifier[del] operator[SEP] identifier[T] identifier[pk] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[pk] operator[==] Other[null] operator[SEP] { Keyword[return] Other[0] operator[SEP...
@Override protected String serialize(InvocationContext context, Object input) { if(unavailable || incompatible) { throw new IllegalStateException(unavailable? ERROR_CONTEXT_UNAVAILABLE :ERROR_CONTEXT_INCOMPATIBLE); } try { return input == null? null :(String) Gson_toJson.invoke( gson, in...
class class_name[name] begin[{] method[serialize, return_type[type[String]], modifier[protected], parameter[context, input]] begin[{] if[binary_operation[member[.unavailable], ||, member[.incompatible]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[TernaryExpression(co...
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[serialize] operator[SEP] identifier[InvocationContext] identifier[context] , identifier[Object] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[unavailable] operator[||] identifier[incompatible] operator[S...
public void marshall(UpdateEncryption updateEncryption, ProtocolMarshaller protocolMarshaller) { if (updateEncryption == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateEncryption.getAlgorithm()...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateEncryption, protocolMarshaller]] begin[{] if[binary_operation[member[.updateEncryption], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateEncryption] identifier[updateEncryption] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateEncryption] operator[==] Other[null] operator[SEP] { Ke...
private void enableMenu(final JMenu menu) { menu.setEnabled(true); for (final Component c : menu.getMenuComponents()) { if (c instanceof JMenu) { enableMenu((JMenu) c); } else if (c instanceof JMenuItem) { ((JMenuItem) c).setEnabled(true); } } }
class class_name[name] begin[{] method[enableMenu, return_type[void], modifier[private], parameter[menu]] begin[{] call[menu.setEnabled, parameter[literal[true]]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(memb...
Keyword[private] Keyword[void] identifier[enableMenu] operator[SEP] Keyword[final] identifier[JMenu] identifier[menu] operator[SEP] { identifier[menu] operator[SEP] identifier[setEnabled] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Component] id...
public String printRelative( Instant instant, ZoneId zoneId ) { return this.printRelative(Moment.from(instant), Timezone.of(zoneId.getId()), TimeUnit.SECONDS); }
class class_name[name] begin[{] method[printRelative, return_type[type[String]], modifier[public], parameter[instant, zoneId]] begin[{] return[THIS[call[None.printRelative, parameter[call[Moment.from, parameter[member[.instant]]], call[Timezone.of, parameter[call[zoneId.getId, parameter[]]]], member[Ti...
Keyword[public] identifier[String] identifier[printRelative] operator[SEP] identifier[Instant] identifier[instant] , identifier[ZoneId] identifier[zoneId] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[printRelative] operator[SEP] identifier[Moment] operator[SEP] identifier[from] operato...
private void processRstFrame() { int error = ((FrameRstStream) currentFrame).getErrorCode(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "processRstFrame: error received from peer: " + utils.getErrorFromCode(error)); } this.updateStreamStat...
class class_name[name] begin[{] method[processRstFrame, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], error] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[processRstFrame] operator[SEP] operator[SEP] { Keyword[int] identifier[error] operator[=] operator[SEP] operator[SEP] identifier[FrameRstStream] operator[SEP] identifier[currentFrame] operator[SEP] operator[SEP] identifier[getErrorCode] operator[SEP] operator[SEP] operat...
private void loadSectionBytes() throws IOException { Preconditions.checkState(size == (int) size, "section is too large to dump into byte array"); try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { raf.seek(offset); byte[] bytes = new byte[(int) size];...
class class_name[name] begin[{] method[loadSectionBytes, return_type[void], modifier[private], parameter[]] begin[{] call[Preconditions.checkState, parameter[binary_operation[member[.size], ==, Cast(expression=MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, s...
Keyword[private] Keyword[void] identifier[loadSectionBytes] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] identifier[size] operator[==] operator[SEP] Keyword[int] operator[SEP] identifier[size] , literal[String]...
public ServiceFuture<ImageInner> getByResourceGroupAsync(String resourceGroupName, String imageName, String expand, final ServiceCallback<ImageInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, imageName, expand), serviceCallback); }
class class_name[name] begin[{] method[getByResourceGroupAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, imageName, expand, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getByResourceGroupWithServiceResponseAsync, parameter[me...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[ImageInner] operator[>] identifier[getByResourceGroupAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[imageName] , identifier[String] identifier[expand] , Keyword[final] identifier[ServiceCallback] o...
public Integer getIndex4SqlTable(final SQLTable _sqlTable) { final Integer ret; if (this.sqlTable2Index.containsKey(_sqlTable)) { ret = this.sqlTable2Index.get(_sqlTable); } else { Integer max = 0; for (final Integer index : this.sqlTable2Index.values()) {...
class class_name[name] begin[{] method[getIndex4SqlTable, return_type[type[Integer]], modifier[public], parameter[_sqlTable]] begin[{] local_variable[type[Integer], ret] if[THIS[member[None.sqlTable2Index]call[None.containsKey, parameter[member[._sqlTable]]]]] begin[{] ...
Keyword[public] identifier[Integer] identifier[getIndex4SqlTable] operator[SEP] Keyword[final] identifier[SQLTable] identifier[_sqlTable] operator[SEP] { Keyword[final] identifier[Integer] identifier[ret] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[sqlTable2Index] operator[SEP]...
@Override public Collection<Timer> getTimers() throws IllegalStateException, EJBException { assertTimerServiceState(); Object pk = currentPrimaryKey(); final Set<Timer> activeTimers = new HashSet<Timer>(); // get all active timers for this timerservice synchronized (this.time...
class class_name[name] begin[{] method[getTimers, return_type[type[Collection]], modifier[public], parameter[]] begin[{] call[.assertTimerServiceState, parameter[]] local_variable[type[Object], pk] local_variable[type[Set], activeTimers] SYNCHRONIZED[THIS[member[...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[Timer] operator[>] identifier[getTimers] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] , identifier[EJBException] { identifier[assertTimerServiceState] operator[SEP] operator[SEP] ope...
public void addCustomTrackingParameter(String key, Object value){ if (key == null){ throw new NullPointerException("Key cannot be null."); } if (value == null){ throw new NullPointerException("Cannot add a null custom tracking parameter."); } else{ ...
class class_name[name] begin[{] method[addCustomTrackingParameter, return_type[void], modifier[public], parameter[key, value]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pref...
Keyword[public] Keyword[void] identifier[addCustomTrackingParameter] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPo...
public static void setTemporaryCloudStorageDirectory(Configuration configuration, String path) { configuration.set(BigQueryConfiguration.TEMP_GCS_PATH_KEY, path); }
class class_name[name] begin[{] method[setTemporaryCloudStorageDirectory, return_type[void], modifier[public static], parameter[configuration, path]] begin[{] call[configuration.set, parameter[member[BigQueryConfiguration.TEMP_GCS_PATH_KEY], member[.path]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setTemporaryCloudStorageDirectory] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[String] identifier[path] operator[SEP] { identifier[configuration] operator[SEP] identifier[set] operator[SEP] identifier[BigQueryConfigurati...
public void wipeBundle (boolean deleteJar) { // clear out our cache directory if (_cache != null) { FileUtil.recursiveClean(_cache); } // delete our unpack stamp file if (_unpacked != null) { _unpacked.delete(); } // clear out any .ja...
class class_name[name] begin[{] method[wipeBundle, return_type[void], modifier[public], parameter[deleteJar]] begin[{] if[binary_operation[member[._cache], !=, literal[null]]] begin[{] call[FileUtil.recursiveClean, parameter[member[._cache]]] else begin[{] None ...
Keyword[public] Keyword[void] identifier[wipeBundle] operator[SEP] Keyword[boolean] identifier[deleteJar] operator[SEP] { Keyword[if] operator[SEP] identifier[_cache] operator[!=] Other[null] operator[SEP] { identifier[FileUtil] operator[SEP] identifier[recursiveClean] operator[SEP] identifier[_cache]...
public void convertToMultipart() { this.method = "POST"; String boundary = UUID.randomUUID().toString().replaceAll("-", ""); setHeader("Content-Type", "multipart/form-data; boundary=----" + boundary); //add parameters, if available StringBuilder bodyBuilder = n...
class class_name[name] begin[{] method[convertToMultipart, return_type[void], modifier[public], parameter[]] begin[{] assign[THIS[member[None.method]], literal["POST"]] local_variable[type[String], boundary] call[.setHeader, parameter[literal["Content-Type"], binary_oper...
Keyword[public] Keyword[void] identifier[convertToMultipart] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[method] operator[=] literal[String] operator[SEP] identifier[String] identifier[boundary] operator[=] identifier[UUID] operator[SEP] identifier[randomUUID] operator[SEP] operator[SEP]...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { if (m_isInitialized || tryToInitialize()) { if (request instanceof HttpServletRequest) { HttpServletRequest req = (HttpServletRequest)request; ...
class class_name[name] begin[{] method[doFilter, return_type[void], modifier[public], parameter[request, response, chain]] begin[{] if[binary_operation[member[.m_isInitialized], ||, call[.tryToInitialize, parameter[]]]] begin[{] if[binary_operation[member[.request], inst...
Keyword[public] Keyword[void] identifier[doFilter] operator[SEP] identifier[ServletRequest] identifier[request] , identifier[ServletResponse] identifier[response] , identifier[FilterChain] identifier[chain] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] { Keyword[if] oper...
public <U extends T, A, B, C> InitialMatching3<T, U, A, B, C> when( DecomposableMatchBuilder3<U, A, B, C> decomposableMatchBuilder) { return new InitialMatching3<>(decomposableMatchBuilder.build(), value); }
class class_name[name] begin[{] method[when, return_type[type[InitialMatching3]], modifier[public], parameter[decomposableMatchBuilder]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=build, postfix_operators=[], prefix_operators=[], qualifier=decomposableMatchBuilder, se...
Keyword[public] operator[<] identifier[U] Keyword[extends] identifier[T] , identifier[A] , identifier[B] , identifier[C] operator[>] identifier[InitialMatching3] operator[<] identifier[T] , identifier[U] , identifier[A] , identifier[B] , identifier[C] operator[>] identifier[when] operator[SEP] identifier[Decompo...
public void setTimecodeBase(int timecodeBase) { if (timecodeBase < 0) { timecodeBase = 0; } if (this.timecodeBase > 0 && timecodeBase != this.timecodeBase) { this.frames = (int) Math.round((double) this.frames * timecodeBase / this.timecodeBase); } th...
class class_name[name] begin[{] method[setTimecodeBase, return_type[void], modifier[public], parameter[timecodeBase]] begin[{] if[binary_operation[member[.timecodeBase], <, literal[0]]] begin[{] assign[member[.timecodeBase], literal[0]] else begin[{] None ...
Keyword[public] Keyword[void] identifier[setTimecodeBase] operator[SEP] Keyword[int] identifier[timecodeBase] operator[SEP] { Keyword[if] operator[SEP] identifier[timecodeBase] operator[<] Other[0] operator[SEP] { identifier[timecodeBase] operator[=] Other[0] operator[SEP] } Keyword[if] ...
public void removeWebSocketScope(WebSocketScope webSocketScope) { log.info("removeWebSocketScope: {}", webSocketScope); WebSocketScope wsScope = scopes.remove(webSocketScope.getPath()); if (wsScope != null) { notifyListeners(WebSocketEvent.SCOPE_REMOVED, wsScope); } }
class class_name[name] begin[{] method[removeWebSocketScope, return_type[void], modifier[public], parameter[webSocketScope]] begin[{] call[log.info, parameter[literal["removeWebSocketScope: {}"], member[.webSocketScope]]] local_variable[type[WebSocketScope], wsScope] if[...
Keyword[public] Keyword[void] identifier[removeWebSocketScope] operator[SEP] identifier[WebSocketScope] identifier[webSocketScope] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[webSocketScope] operator[SEP] operator[SEP] identifier[WebSocketScope] iden...
public static void waitUntilElementIsInvisible(final String elementLocator) { logger.entering(elementLocator); By by = HtmlElementUtils.resolveByType(elementLocator); ExpectedCondition<Boolean> condition = ExpectedConditions.invisibilityOfElementLocated(by); waitForCondition(condition); ...
class class_name[name] begin[{] method[waitUntilElementIsInvisible, return_type[void], modifier[public static], parameter[elementLocator]] begin[{] call[logger.entering, parameter[member[.elementLocator]]] local_variable[type[By], by] local_variable[type[ExpectedCondition], cond...
Keyword[public] Keyword[static] Keyword[void] identifier[waitUntilElementIsInvisible] operator[SEP] Keyword[final] identifier[String] identifier[elementLocator] operator[SEP] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[elementLocator] operator[SEP] operator[SEP] identifier[By...
public String getSemtype() { if (SurfaceForm_Type.featOkTst && ((SurfaceForm_Type)jcasType).casFeat_semtype == null) jcasType.jcas.throwFeatMissing("semtype", "ch.epfl.bbp.uima.types.SurfaceForm"); return jcasType.ll_cas.ll_getStringValue(addr, ((SurfaceForm_Type)jcasType).casFeatCode_semtype);}
class class_name[name] begin[{] method[getSemtype, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[SurfaceForm_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] identifier[String] identifier[getSemtype] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[SurfaceForm_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[SurfaceForm_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] i...
private static int[] determineSeparatorCounts(String from, int single_quote) { int[] result = new int[separators.length]; byte[] bits = from.getBytes(); boolean in_quote = false; for( int j=0; j< bits.length; j++ ) { byte c = bits[j]; if( (c == single_quote) || (c == CHAR_DOUBLE_QUOTE) ) ...
class class_name[name] begin[{] method[determineSeparatorCounts, return_type[type[int]], modifier[private static], parameter[from, single_quote]] begin[{] local_variable[type[int], result] local_variable[type[byte], bits] local_variable[type[boolean], in_quote] ForStatement(body...
Keyword[private] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[determineSeparatorCounts] operator[SEP] identifier[String] identifier[from] , Keyword[int] identifier[single_quote] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[in...
public Map<String, Collection<String>> queries() { Map<String, Collection<String>> queryMap = new LinkedHashMap<>(); this.queries.forEach((key, queryTemplate) -> { List<String> values = new ArrayList<>(queryTemplate.getValues()); /* add the expanded collection, but lock it */ queryMap.put(key...
class class_name[name] begin[{] method[queries, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], queryMap] THIS[member[None.queries]call[None.forEach, parameter[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[Variable...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Collection] operator[<] identifier[String] operator[>] operator[>] identifier[queries] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Collection] operator[<] identifier[String] operator[>] ope...
public static void load(Class<?> restrictionClass) { if(MASTER_CACHE == null) { initialize(); } if(MASTER_CACHE.isEmpty()) { return; } Iterator<Class<?>> iter = MASTER_CACHE.iterator(); while(iter.hasNext()) { Class<?> clazz = iter.next(); // Skip other classes. if(...
class class_name[name] begin[{] method[load, return_type[void], modifier[public static], parameter[restrictionClass]] begin[{] if[binary_operation[member[.MASTER_CACHE], ==, literal[null]]] begin[{] call[.initialize, parameter[]] else begin[{] None end[}]...
Keyword[public] Keyword[static] Keyword[void] identifier[load] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[restrictionClass] operator[SEP] { Keyword[if] operator[SEP] identifier[MASTER_CACHE] operator[==] Other[null] operator[SEP] { identifier[initialize] operator[SE...
int readVarint32() { byte b; // negative number implies MSB set if ((b = readByte()) >= 0) { return b; } int result = b & 0x7f; if ((b = readByte()) >= 0) { return result | b << 7; } result |= (b & 0x7f) << 7; if ((b = readByte()) >= 0) { return result | b << 14; ...
class class_name[name] begin[{] method[readVarint32, return_type[type[int]], modifier[default], parameter[]] begin[{] local_variable[type[byte], b] if[binary_operation[assign[member[.b], call[.readByte, parameter[]]], >=, literal[0]]] begin[{] return[member[.b]] else...
Keyword[int] identifier[readVarint32] operator[SEP] operator[SEP] { Keyword[byte] identifier[b] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[b] operator[=] identifier[readByte] operator[SEP] operator[SEP] operator[SEP] operator[>=] Other[0] operator[SEP] { Keyword[return] identifie...
public boolean addLogger(Logger logger) { final String name = logger.getName(); if (name == null) { throw new NullPointerException(); } drainLoggerRefQueueBounded(); LoggerContext cx = getUserContext(); if (cx.addLocalLogger(logger, this)) { // Do ...
class class_name[name] begin[{] method[addLogger, return_type[type[boolean]], modifier[public], parameter[logger]] begin[{] local_variable[type[String], name] if[binary_operation[member[.name], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[],...
Keyword[public] Keyword[boolean] identifier[addLogger] operator[SEP] identifier[Logger] identifier[logger] operator[SEP] { Keyword[final] identifier[String] identifier[name] operator[=] identifier[logger] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identi...
public void setText(final String text, final Serializable... args) { WComponent body = getBody(); if (body instanceof WText) { ((WText) body).setText(text, args); } else if (body instanceof WLabel) { ((WLabel) body).setText(text, args); } else if (body instanceof WButton) { ((WButton) body).setText(te...
class class_name[name] begin[{] method[setText, return_type[void], modifier[public], parameter[text, args]] begin[{] local_variable[type[WComponent], body] if[binary_operation[member[.body], instanceof, type[WText]]] begin[{] Cast(expression=MemberReference(membe...
Keyword[public] Keyword[void] identifier[setText] operator[SEP] Keyword[final] identifier[String] identifier[text] , Keyword[final] identifier[Serializable] operator[...] identifier[args] operator[SEP] { identifier[WComponent] identifier[body] operator[=] identifier[getBody] operator[SEP] operator[SEP] operator...
private KeyScope resolveIntermediate(final KeyScope scope) { final Map<String, KeyDef> keys = new HashMap<>(scope.keyDefinition); for (final Map.Entry<String, KeyDef> e: scope.keyDefinition.entrySet()) { final KeyDef res = resolveIntermediate(scope, e.getValue(), Collections.singletonList(e....
class class_name[name] begin[{] method[resolveIntermediate, return_type[type[KeyScope]], modifier[private], parameter[scope]] begin[{] local_variable[type[Map], keys] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarato...
Keyword[private] identifier[KeyScope] identifier[resolveIntermediate] operator[SEP] Keyword[final] identifier[KeyScope] identifier[scope] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[KeyDef] operator[>] identifier[keys] operator[=] Keyword[new] identifier[HashMap] o...
public Graph build(){ boolean isStartNode = true; for( Tree<Row> current = root.findPreOrderNext(); current != null; current = current.findPreOrderNext() ){ Node node = nodeBuilder.createNode( current ); if( node == null ){ // The current element does not produce ...
class class_name[name] begin[{] method[build, return_type[type[Graph]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], isStartNode] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions...
Keyword[public] identifier[Graph] identifier[build] operator[SEP] operator[SEP] { Keyword[boolean] identifier[isStartNode] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[Tree] operator[<] identifier[Row] operator[>] identifier[current] operator[=] identifier[root] operator[SEP] ...
public boolean containsSymbol(String symbol) { // search for identical symbol int bucket = hash(symbol) % fTableSize; int length = symbol.length(); OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) { if (length == entry.characters.length) { ...
class class_name[name] begin[{] method[containsSymbol, return_type[type[boolean]], modifier[public], parameter[symbol]] begin[{] local_variable[type[int], bucket] local_variable[type[int], length] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOpera...
Keyword[public] Keyword[boolean] identifier[containsSymbol] operator[SEP] identifier[String] identifier[symbol] operator[SEP] { Keyword[int] identifier[bucket] operator[=] identifier[hash] operator[SEP] identifier[symbol] operator[SEP] operator[%] identifier[fTableSize] operator[SEP] Keyword[int] identifier[leng...
@Override public java.util.List<com.liferay.commerce.product.model.CPDisplayLayout> getCPDisplayLayoutsByUuidAndCompanyId( String uuid, long companyId) { return _cpDisplayLayoutLocalService.getCPDisplayLayoutsByUuidAndCompanyId(uuid, companyId); }
class class_name[name] begin[{] method[getCPDisplayLayoutsByUuidAndCompanyId, return_type[type[java]], modifier[public], parameter[uuid, companyId]] begin[{] return[call[_cpDisplayLayoutLocalService.getCPDisplayLayoutsByUuidAndCompanyId, parameter[member[.uuid], member[.companyId]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CP...
public static String stripSpaces(String s) { StringBuffer buff = new StringBuffer(); for(int i = 0; i < s.length(); i++) { char c = s.charAt(i); if(c != ' ') buff.append(c); } return buff.toString(); }
class class_name[name] begin[{] method[stripSpaces, return_type[type[String]], modifier[public static], parameter[s]] begin[{] local_variable[type[StringBuffer], buff] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarat...
Keyword[public] Keyword[static] identifier[String] identifier[stripSpaces] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[StringBuffer] identifier[buff] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] i...
public IfcControllerTypeEnum createIfcControllerTypeEnumFromString(EDataType eDataType, String initialValue) { IfcControllerTypeEnum result = IfcControllerTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '"...
class class_name[name] begin[{] method[createIfcControllerTypeEnumFromString, return_type[type[IfcControllerTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcControllerTypeEnum], result] if[binary_operation[member[.result], ==, literal[nul...
Keyword[public] identifier[IfcControllerTypeEnum] identifier[createIfcControllerTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcControllerTypeEnum] identifier[result] operator[=] identifier[IfcControllerTyp...
public ElementRef getElementRef() throws IllegalStateException { Page p = page; if(p == null) throw new IllegalStateException("page not set"); PageRef pageRef = p.getPageRef(); String i = getId(); if(i == null) throw new IllegalStateException("page not set so no id generated"); ElementRef er = elementRef; ...
class class_name[name] begin[{] method[getElementRef, return_type[type[ElementRef]], modifier[public], parameter[]] begin[{] local_variable[type[Page], p] if[binary_operation[member[.p], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera...
Keyword[public] identifier[ElementRef] identifier[getElementRef] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalStateException] { identifier[Page] identifier[p] operator[=] identifier[page] operator[SEP] Keyword[if] operator[SEP] identifier[p] operator[==] Other[null] operator[SEP] Keyword[throw] ...
private static void addNamedOutput(JobConf conf, String namedOutput, boolean multi, Class<? extends OutputFormat> outputFormatClass, Class<?> keyClass, Class<?> valueClass) { checkNamedOutputName(namedOutput); checkName...
class class_name[name] begin[{] method[addNamedOutput, return_type[void], modifier[private static], parameter[conf, namedOutput, multi, outputFormatClass, keyClass, valueClass]] begin[{] call[.checkNamedOutputName, parameter[member[.namedOutput]]] call[.checkNamedOutput, paramet...
Keyword[private] Keyword[static] Keyword[void] identifier[addNamedOutput] operator[SEP] identifier[JobConf] identifier[conf] , identifier[String] identifier[namedOutput] , Keyword[boolean] identifier[multi] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[OutputFormat] operator[>] identifier[o...
public void showViewAndWait(Window window, Modality modality) { if (isPrimaryStageView) { showView(modality); // this modality will be ignored anyway return; } if (stage == null || currentStageModality != modality || !Objects.equals(stage.getOwner(), window)) { ...
class class_name[name] begin[{] method[showViewAndWait, return_type[void], modifier[public], parameter[window, modality]] begin[{] if[member[.isPrimaryStageView]] begin[{] call[.showView, parameter[member[.modality]]] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[showViewAndWait] operator[SEP] identifier[Window] identifier[window] , identifier[Modality] identifier[modality] operator[SEP] { Keyword[if] operator[SEP] identifier[isPrimaryStageView] operator[SEP] { identifier[showView] operator[SEP] identifier[modality] op...
private void validateRebalancePlanState(RebalancePlan rebalancePlan) { logger.info("Validating rebalance plan state."); Cluster currentCluster = rebalancePlan.getCurrentCluster(); List<StoreDefinition> currentStores = rebalancePlan.getCurrentStores(); Cluster finalCluster = rebalancePla...
class class_name[name] begin[{] method[validateRebalancePlanState, return_type[void], modifier[private], parameter[rebalancePlan]] begin[{] call[logger.info, parameter[literal["Validating rebalance plan state."]]] local_variable[type[Cluster], currentCluster] local_variable[type...
Keyword[private] Keyword[void] identifier[validateRebalancePlanState] operator[SEP] identifier[RebalancePlan] identifier[rebalancePlan] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Cluster] identifier[currentCluster] operat...
@UiThread @Override public void onBindChildViewHolder(@NonNull HorizontalChildViewHolder childViewHolder, int parentPosition, int childPosition, @NonNull HorizontalChild horizontalChild) { childViewHolder.bind(horizontalChild.getChildText()); }
class class_name[name] begin[{] method[onBindChildViewHolder, return_type[void], modifier[public], parameter[childViewHolder, parentPosition, childPosition, horizontalChild]] begin[{] call[childViewHolder.bind, parameter[call[horizontalChild.getChildText, parameter[]]]] end[}] END[}]
annotation[@] identifier[UiThread] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onBindChildViewHolder] operator[SEP] annotation[@] identifier[NonNull] identifier[HorizontalChildViewHolder] identifier[childViewHolder] , Keyword[int] identifier[parentPosition] , Keyword[int] identifier[ch...
@Nullable public static String setVariantForView(@NonNull View view, @Nullable String variant) { String previousVariant = null; String previousAttribute = null; for (Map.Entry<String, HashMap<Integer, String>> entry : bindings.entrySet()) { if (entry.getValue().containsKey(view.g...
class class_name[name] begin[{] method[setVariantForView, return_type[type[String]], modifier[public static], parameter[view, variant]] begin[{] local_variable[type[String], previousVariant] local_variable[type[String], previousAttribute] ForStatement(body=BlockStatement(label=None, sta...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[String] identifier[setVariantForView] operator[SEP] annotation[@] identifier[NonNull] identifier[View] identifier[view] , annotation[@] identifier[Nullable] identifier[String] identifier[variant] operator[SEP] { identifier[String] ide...
private void setLastApplied(long lastApplied) { // lastApplied should be either equal to or one greater than this.lastApplied. if (lastApplied > this.lastApplied) { Assert.arg(lastApplied == this.lastApplied + 1, "lastApplied must be sequential"); this.lastApplied = lastApplied; // Update th...
class class_name[name] begin[{] method[setLastApplied, return_type[void], modifier[private], parameter[lastApplied]] begin[{] if[binary_operation[member[.lastApplied], >, THIS[member[None.lastApplied]]]] begin[{] call[Assert.arg, parameter[binary_operation[member[.lastAp...
Keyword[private] Keyword[void] identifier[setLastApplied] operator[SEP] Keyword[long] identifier[lastApplied] operator[SEP] { Keyword[if] operator[SEP] identifier[lastApplied] operator[>] Keyword[this] operator[SEP] identifier[lastApplied] operator[SEP] { identifier[Assert] operator[SEP] identifier[ar...
public boolean contains(ReadableInterval interval) { if (interval == null) { return containsNow(); } long otherStart = interval.getStartMillis(); long otherEnd = interval.getEndMillis(); long thisStart = getStartMillis(); long thisEnd = getEndMillis(); ...
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[interval]] begin[{] if[binary_operation[member[.interval], ==, literal[null]]] begin[{] return[call[.containsNow, parameter[]]] else begin[{] None end[}] ...
Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] identifier[ReadableInterval] identifier[interval] operator[SEP] { Keyword[if] operator[SEP] identifier[interval] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[containsNow] operator[SEP] operator[SEP] operator[SEP...
public Observable<Void> beginStartAsync(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName) { return beginStartWithServiceResponseAsync(resourceGroupName, labAccountName, labName, environmentSettingName, environmentName).map(new Func1<ServiceRe...
class class_name[name] begin[{] method[beginStartAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, labAccountName, labName, environmentSettingName, environmentName]] begin[{] return[call[.beginStartWithServiceResponseAsync, parameter[member[.resourceGroupName], member...
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[beginStartAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[labAccountName] , identifier[String] identifier[labName] , identifier[String] identifier[environmentSettingName] ,...
protected void createGenericLoginSuccessEndState(final Flow flow) { val state = createEndState(flow, CasWebflowConstants.STATE_ID_VIEW_GENERIC_LOGIN_SUCCESS, CasWebflowConstants.VIEW_ID_GENERIC_SUCCESS); state.getEntryActionList().add(createEvaluateAction("genericSuccessViewAction")); }
class class_name[name] begin[{] method[createGenericLoginSuccessEndState, return_type[void], modifier[protected], parameter[flow]] begin[{] local_variable[type[val], state] call[state.getEntryActionList, parameter[]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[createGenericLoginSuccessEndState] operator[SEP] Keyword[final] identifier[Flow] identifier[flow] operator[SEP] { identifier[val] identifier[state] operator[=] identifier[createEndState] operator[SEP] identifier[flow] , identifier[CasWebflowConstants] operator[SEP] id...
@Override public void init(EntityManager entityManager, Object entity) { // Initialisation des parametres this.entityManager = entityManager; this.entity = entity; }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[entityManager, entity]] begin[{] assign[THIS[member[None.entityManager]], member[.entityManager]] assign[THIS[member[None.entity]], member[.entity]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[EntityManager] identifier[entityManager] , identifier[Object] identifier[entity] operator[SEP] { Keyword[this] operator[SEP] identifier[entityManager] operator[=] identifier[entityManager] operator[SEP] Ke...
public void init() throws IOException { long now = CurrentTime.getExactTime(); // server/0263 // _nextRolloverCheckTime = now + _rolloverCheckPeriod; Path path = getPath(); if (path != null) { Files.createDirectories(path.getParent()); _rolloverPrefix = path.getName(path.getNam...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[long], now] local_variable[type[Path], path] if[binary_operation[member[.path], !=, literal[null]]] begin[{] call[Files.createDirec...
Keyword[public] Keyword[void] identifier[init] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[now] operator[=] identifier[CurrentTime] operator[SEP] identifier[getExactTime] operator[SEP] operator[SEP] operator[SEP] identifier[Path] identifier[path] operator[=] ide...
public EpollDatagramChannelConfig setReusePort(boolean reusePort) { try { ((EpollDatagramChannel) channel).socket.setReusePort(reusePort); return this; } catch (IOException e) { throw new ChannelException(e); } }
class class_name[name] begin[{] method[setReusePort, return_type[type[EpollDatagramChannelConfig]], modifier[public], parameter[reusePort]] begin[{] TryStatement(block=[StatementExpression(expression=Cast(expression=MemberReference(member=channel, postfix_operators=[], prefix_operators=[], qualifier=, ...
Keyword[public] identifier[EpollDatagramChannelConfig] identifier[setReusePort] operator[SEP] Keyword[boolean] identifier[reusePort] operator[SEP] { Keyword[try] { operator[SEP] operator[SEP] identifier[EpollDatagramChannel] operator[SEP] identifier[channel] operator[SEP] operator[SEP] identifier[sock...
private void negateRange(final short[] buffer, final int startIndex, final int lastIndex, final int startRange, final int lastRange) { // compute the negation into buffer int outPos = 0; int inPos = startIndex; // value here always >= valInRange, // until it is exhausted // n.b., we can start...
class class_name[name] begin[{] method[negateRange, return_type[void], modifier[private], parameter[buffer, startIndex, lastIndex, startRange, lastRange]] begin[{] local_variable[type[int], outPos] local_variable[type[int], inPos] local_variable[type[int], valInRange] ForStateme...
Keyword[private] Keyword[void] identifier[negateRange] operator[SEP] Keyword[final] Keyword[short] operator[SEP] operator[SEP] identifier[buffer] , Keyword[final] Keyword[int] identifier[startIndex] , Keyword[final] Keyword[int] identifier[lastIndex] , Keyword[final] Keyword[int] identifier[startRange] , Keyword[fi...
public Node importNode(Node importedNode, boolean deep) throws DOMException { error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); return null; }
class class_name[name] begin[{] method[importNode, return_type[type[Node]], modifier[public], parameter[importedNode, deep]] begin[{] call[.error, parameter[member[XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED]]] return[literal[null]] end[}] END[}]
Keyword[public] identifier[Node] identifier[importNode] operator[SEP] identifier[Node] identifier[importedNode] , Keyword[boolean] identifier[deep] operator[SEP] Keyword[throws] identifier[DOMException] { identifier[error] operator[SEP] identifier[XMLErrorResources] operator[SEP] identifier[ER_FUNCTION_NOT_SUPP...
private void initializeConfig() { this.varDecay = this.config.varDecay; this.varInc = this.config.varInc; this.ccminMode = this.config.clauseMin; this.restartFirst = this.config.restartFirst; this.restartInc = this.config.restartInc; this.clauseDecay = this.config.clauseDecay; this.removeSat...
class class_name[name] begin[{] method[initializeConfig, return_type[void], modifier[private], parameter[]] begin[{] assign[THIS[member[None.varDecay]], THIS[member[None.config]member[None.varDecay]]] assign[THIS[member[None.varInc]], THIS[member[None.config]member[None.varInc]]...
Keyword[private] Keyword[void] identifier[initializeConfig] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[varDecay] operator[=] Keyword[this] operator[SEP] identifier[config] operator[SEP] identifier[varDecay] operator[SEP] Keyword[this] operator[SEP] identifier[varInc] operator[=] Keyword...
@Override public Task createTask(Task task) throws NameConflictException { try { return taskDao.createTask(task); } catch (DuplicateKeyException e) { throw new NameConflictException("Task name is already in use", e); } }
class class_name[name] begin[{] method[createTask, return_type[type[Task]], modifier[public], parameter[task]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=task, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=c...
annotation[@] identifier[Override] Keyword[public] identifier[Task] identifier[createTask] operator[SEP] identifier[Task] identifier[task] operator[SEP] Keyword[throws] identifier[NameConflictException] { Keyword[try] { Keyword[return] identifier[taskDao] operator[SEP] identifier[createTask] operator[...
public int[] getNonZeroIndices() { int[] indices = new int[values.size()]; for (int i = 0; i < values.size(); ++i) indices[i] = values.get(i).index; return indices; }
class class_name[name] begin[{] method[getNonZeroIndices, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], indices] ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=indices, postfix_operators=[], prefix_opera...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[getNonZeroIndices] operator[SEP] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[indices] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[values] operator[SEP] identifier[size] operator[SEP] operator[SEP] opera...
public FessMessages addConstraintsUriTypeMessage(String property) { assertPropertyNotNull(property); add(property, new UserMessage(CONSTRAINTS_UriType_MESSAGE)); return this; }
class class_name[name] begin[{] method[addConstraintsUriTypeMessage, return_type[type[FessMessages]], modifier[public], parameter[property]] begin[{] call[.assertPropertyNotNull, parameter[member[.property]]] call[.add, parameter[member[.property], ClassCreator(arguments=[Member...
Keyword[public] identifier[FessMessages] identifier[addConstraintsUriTypeMessage] operator[SEP] identifier[String] identifier[property] operator[SEP] { identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[property] , Keyword[ne...
@Deprecated public static <T extends Comparable<?>> DateTemplate<T> dateTemplate(Class<? extends T> cl, String template, ImmutableList<?> args) { return dateTemplate(cl, createTemplate(template), args); }
class class_name[name] begin[{] method[dateTemplate, return_type[type[DateTemplate]], modifier[public static], parameter[cl, template, args]] begin[{] return[call[.dateTemplate, parameter[member[.cl], call[.createTemplate, parameter[member[.template]]], member[.args]]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] operator[?] operator[>] operator[>] identifier[DateTemplate] operator[<] identifier[T] operator[>] identifier[dateTemplate] operator[SEP] identifier[Class] operator[<] opera...
@Override public Color getColorForState(SynthContext ctx, ColorType type) { return style.getColor(ctx, type); }
class class_name[name] begin[{] method[getColorForState, return_type[type[Color]], modifier[public], parameter[ctx, type]] begin[{] return[call[style.getColor, parameter[member[.ctx], member[.type]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Color] identifier[getColorForState] operator[SEP] identifier[SynthContext] identifier[ctx] , identifier[ColorType] identifier[type] operator[SEP] { Keyword[return] identifier[style] operator[SEP] identifier[getColor] operator[SEP] identifier[ctx] , ...
@Override public void removeByUuid_C(String uuid, long companyId) { for (CPFriendlyURLEntry cpFriendlyURLEntry : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpFriendlyURLEntry); } }
class class_name[name] begin[{] method[removeByUuid_C, return_type[void], modifier[public], parameter[uuid, companyId]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cpFriendlyURLEntry, postfix_operato...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeByUuid_C] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] operator[SEP] { Keyword[for] operator[SEP] identifier[CPFriendlyURLEntry] identifier[cpFriendlyURLEntry] operator[:] identifier[fin...
public static Bundle of(String key, long value) { Bundle b = new Bundle(1); b.putLong(key, value); return b; }
class class_name[name] begin[{] method[of, return_type[type[Bundle]], modifier[public static], parameter[key, value]] begin[{] local_variable[type[Bundle], b] call[b.putLong, parameter[member[.key], member[.value]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Bundle] identifier[of] operator[SEP] identifier[String] identifier[key] , Keyword[long] identifier[value] operator[SEP] { identifier[Bundle] identifier[b] operator[=] Keyword[new] identifier[Bundle] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[b] opera...
@Override public CommerceCurrency fetchByG_P_A_First(long groupId, boolean primary, boolean active, OrderByComparator<CommerceCurrency> orderByComparator) { List<CommerceCurrency> list = findByG_P_A(groupId, primary, active, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } retu...
class class_name[name] begin[{] method[fetchByG_P_A_First, return_type[type[CommerceCurrency]], modifier[public], parameter[groupId, primary, active, orderByComparator]] begin[{] local_variable[type[List], list] if[call[list.isEmpty, parameter[]]] begin[{] return[call[list.g...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceCurrency] identifier[fetchByG_P_A_First] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[primary] , Keyword[boolean] identifier[active] , identifier[OrderByComparator] operator[<] identifier[CommerceCurrency] operator...
public void enableOverride(int overrideId, int pathId, String clientUUID) throws Exception { // get profileId from pathId int profileId = PathOverrideService.getInstance().getPath(pathId).getProfileId(); int newPriority = 0; // we want to limit -1, -2 to only be added once since they ar...
class class_name[name] begin[{] method[enableOverride, return_type[void], modifier[public], parameter[overrideId, pathId, clientUUID]] begin[{] local_variable[type[int], profileId] local_variable[type[int], newPriority] if[binary_operation[member[.overrideId], ==, member[Constan...
Keyword[public] Keyword[void] identifier[enableOverride] operator[SEP] Keyword[int] identifier[overrideId] , Keyword[int] identifier[pathId] , identifier[String] identifier[clientUUID] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[profileId] operator[=] identifier[PathOverrideSe...
public int pkHash(DbMapping dbMapping, Map<String, Object> d) { return pkHash(dbMapping, d, null); }
class class_name[name] begin[{] method[pkHash, return_type[type[int]], modifier[public], parameter[dbMapping, d]] begin[{] return[call[.pkHash, parameter[member[.dbMapping], member[.d], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[int] identifier[pkHash] operator[SEP] identifier[DbMapping] identifier[dbMapping] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[d] operator[SEP] { Keyword[return] identifier[pkHash] operator[SEP] identifier[dbMapping] , identifier[d] , Ot...
public static CodedInput newInstance(final byte[] buf, final int off, final int len) { return new CodedInput(buf, off, len, false); }
class class_name[name] begin[{] method[newInstance, return_type[type[CodedInput]], modifier[public static], parameter[buf, off, len]] begin[{] return[ClassCreator(arguments=[MemberReference(member=buf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=off, pos...
Keyword[public] Keyword[static] identifier[CodedInput] identifier[newInstance] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[buf] , Keyword[final] Keyword[int] identifier[off] , Keyword[final] Keyword[int] identifier[len] operator[SEP] { Keyword[return] Keyword[new] identifi...
protected boolean close() { if (isLoaded()) { for (int i = 0; i < stats.length; i++) { if (stats[i] != null) { if (!stats[i].isLoaded()) { stats[i] = null; } } } return false; } else { return true; } ...
class class_name[name] begin[{] method[close, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] if[call[.isLoaded, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(memb...
Keyword[protected] Keyword[boolean] identifier[close] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isLoaded] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[s...
public CollisionFormula getCollisionFormula(String name) { if (formulas.containsKey(name)) { return formulas.get(name); } throw new LionEngineException(ERROR_FORMULA + name); }
class class_name[name] begin[{] method[getCollisionFormula, return_type[type[CollisionFormula]], modifier[public], parameter[name]] begin[{] if[call[formulas.containsKey, parameter[member[.name]]]] begin[{] return[call[formulas.get, parameter[member[.name]]]] else begin[{] N...
Keyword[public] identifier[CollisionFormula] identifier[getCollisionFormula] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[formulas] operator[SEP] identifier[containsKey] operator[SEP] identifier[name] operator[SEP] operator[SEP] { Keyword[retur...
private void pingAtRegularIntervals(WebSocketSession session) { pingTask = new PingTask(session); if (pingScheduledExecutorService != null) { pingScheduledExecutorService.shutdownNow(); } pingScheduledExecutorService = Executors.newSingleThreadScheduledExecutor(); pin...
class class_name[name] begin[{] method[pingAtRegularIntervals, return_type[void], modifier[private], parameter[session]] begin[{] assign[member[.pingTask], ClassCreator(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, c...
Keyword[private] Keyword[void] identifier[pingAtRegularIntervals] operator[SEP] identifier[WebSocketSession] identifier[session] operator[SEP] { identifier[pingTask] operator[=] Keyword[new] identifier[PingTask] operator[SEP] identifier[session] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pi...
public static URL[] getLibJars(Configuration conf) throws IOException { String jars = conf.get("tmpjars"); if(jars==null) { return null; } String[] files = jars.split(","); URL[] cp = new URL[files.length]; for (int i=0;i<cp.length;i++) { Path tmp = new Path(files[i]); cp[i] = ...
class class_name[name] begin[{] method[getLibJars, return_type[type[URL]], modifier[public static], parameter[conf]] begin[{] local_variable[type[String], jars] if[binary_operation[member[.jars], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[URL] operator[SEP] operator[SEP] identifier[getLibJars] operator[SEP] identifier[Configuration] identifier[conf] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[jars] operator[=] identifier[conf] operator[SEP] identifier[get] operat...
@Override public void configure(String driverName, String language, List<String> hints) throws UnknownAsrDriverException, AsrDriverConfigurationException { this.driver = driverManager.getDriver(driverName); this.lang = language; this.hints = hints; }
class class_name[name] begin[{] method[configure, return_type[void], modifier[public], parameter[driverName, language, hints]] begin[{] assign[THIS[member[None.driver]], call[driverManager.getDriver, parameter[member[.driverName]]]] assign[THIS[member[None.lang]], member[.langua...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configure] operator[SEP] identifier[String] identifier[driverName] , identifier[String] identifier[language] , identifier[List] operator[<] identifier[String] operator[>] identifier[hints] operator[SEP] Keyword[throws] identifier[UnknownAsrDr...
@Override public NotificationResponse fetch(HttpServletRequest request) { logger.trace("{} invoked for user '{}', but there is nothing to do", getClass().getSimpleName(), usernameFinder.findUsername(request)); return NotificationResponse.EMPTY_RESPONSE; }
class class_name[name] begin[{] method[fetch, return_type[type[NotificationResponse]], modifier[public], parameter[request]] begin[{] call[logger.trace, parameter[literal["{} invoked for user '{}', but there is nothing to do"], call[.getClass, parameter[]], call[usernameFinder.findUsername, par...
annotation[@] identifier[Override] Keyword[public] identifier[NotificationResponse] identifier[fetch] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[getClass] operator[SEP] operator[SE...
void setLoadedLibrary(String aLibraryName, Long aMajorVersion) { Set<Long> foundVersions = mLoadedLibraries.get(aLibraryName); if (foundVersions == null) { foundVersions = new HashSet<Long>(); mLoadedLibraries.put(aLibraryName, foundVersions); } foundVersions.add(aMajorVersion); }
class class_name[name] begin[{] method[setLoadedLibrary, return_type[void], modifier[default], parameter[aLibraryName, aMajorVersion]] begin[{] local_variable[type[Set], foundVersions] if[binary_operation[member[.foundVersions], ==, literal[null]]] begin[{] assig...
Keyword[void] identifier[setLoadedLibrary] operator[SEP] identifier[String] identifier[aLibraryName] , identifier[Long] identifier[aMajorVersion] operator[SEP] { identifier[Set] operator[<] identifier[Long] operator[>] identifier[foundVersions] operator[=] identifier[mLoadedLibraries] operator[SEP] identifier[g...
@Override public void setProperty(String name, Object value) { if (currentBeanConfig != null) { setPropertyOnBeanConfig(name, value); } }
class class_name[name] begin[{] method[setProperty, return_type[void], modifier[public], parameter[name, value]] begin[{] if[binary_operation[member[.currentBeanConfig], !=, literal[null]]] begin[{] call[.setPropertyOnBeanConfig, parameter[member[.name], member[.value]]]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setProperty] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[currentBeanConfig] operator[!=] Other[null] operator[SEP] { identifier...
public Map<String, String> parseSignatureForGenerics(final String signature, final boolean isInterface) { if (signature == null) { return Collections.emptyMap(); } final Map<String, String> genericsMap = new HashMap<>(); SignatureReader sr = new SignatureReader(signature); StringBuilder sb = new StringB...
class class_name[name] begin[{] method[parseSignatureForGenerics, return_type[type[Map]], modifier[public], parameter[signature, isInterface]] begin[{] if[binary_operation[member[.signature], ==, literal[null]]] begin[{] return[call[Collections.emptyMap, parameter[]]] else b...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parseSignatureForGenerics] operator[SEP] Keyword[final] identifier[String] identifier[signature] , Keyword[final] Keyword[boolean] identifier[isInterface] operator[SEP] { Keyword[if] operator[SEP] identif...
public static Segment newSegment(String algorithm) { if (algorithm == null) { throw new IllegalArgumentException(String.format("非法参数 algorithm == %s", algorithm)); } algorithm = algorithm.toLowerCase(); if ("viterbi".equals(algorithm) || "维特比".equals(algorithm)) ...
class class_name[name] begin[{] method[newSegment, return_type[type[Segment]], modifier[public static], parameter[algorithm]] begin[{] if[binary_operation[member[.algorithm], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[L...
Keyword[public] Keyword[static] identifier[Segment] identifier[newSegment] operator[SEP] identifier[String] identifier[algorithm] operator[SEP] { Keyword[if] operator[SEP] identifier[algorithm] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] op...
private void writePackageFile(File apolloPackageFile) { try { JsonWriter writer = JsonWriter.of(Okio.buffer(Okio.sink(apolloPackageFile))); writer.beginObject(); writer.name("name").value("apollo-android"); writer.name("version").value("0.0.1"); writer.name("description").value("Gene...
class class_name[name] begin[{] method[writePackageFile, return_type[void], modifier[private], parameter[apolloPackageFile]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(argu...
Keyword[private] Keyword[void] identifier[writePackageFile] operator[SEP] identifier[File] identifier[apolloPackageFile] operator[SEP] { Keyword[try] { identifier[JsonWriter] identifier[writer] operator[=] identifier[JsonWriter] operator[SEP] identifier[of] operator[SEP] identifier[Okio] operator[SEP]...
public static String normalizeSpace(final String str) { if (N.isNullOrEmpty(str)) { return str; } return WHITESPACE_PATTERN.matcher(str.trim()).replaceAll(WD.SPACE); }
class class_name[name] begin[{] method[normalizeSpace, return_type[type[String]], modifier[public static], parameter[str]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.str]]]] begin[{] return[member[.str]] else begin[{] None end[}] return[call[WHITESPA...
Keyword[public] Keyword[static] identifier[String] identifier[normalizeSpace] operator[SEP] Keyword[final] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[N] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[str] operator[SEP] operator[SEP] { Keyw...
public void initialisePool() { Properties loginProperties = createLoginProperties(); if (logger.isDebugEnabled()) { logger.debug("about to create pool with user-id : " + this.getJdbcUser()); } ConnectionFactory connectionFactory = createConnectionFactor...
class class_name[name] begin[{] method[initialisePool, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Properties], loginProperties] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[binary_operation...
Keyword[public] Keyword[void] identifier[initialisePool] operator[SEP] operator[SEP] { identifier[Properties] identifier[loginProperties] operator[=] identifier[createLoginProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] o...
public void compileBatch(String []files) throws IOException, ClassNotFoundException { if (_compileParent) { try { if (_loader instanceof Make) ((Make) _loader).make(); } catch (Exception e) { throw new IOException(e); } } if (files.length == 0) return...
class class_name[name] begin[{] method[compileBatch, return_type[void], modifier[public], parameter[files]] begin[{] if[member[._compileParent]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=_loader, postfix_operators=[], prefix_o...
Keyword[public] Keyword[void] identifier[compileBatch] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[files] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { Keyword[if] operator[SEP] identifier[_compileParent] operator[SEP] { Keywo...
protected IAnalysisCache createAnalysisCache() throws IOException { IAnalysisCache analysisCache = ClassFactory.instance().createAnalysisCache(classPath, bugReporter); // Register the "built-in" analysis engines registerBuiltInAnalysisEngines(analysisCache); // Register analysis engine...
class class_name[name] begin[{] method[createAnalysisCache, return_type[type[IAnalysisCache]], modifier[protected], parameter[]] begin[{] local_variable[type[IAnalysisCache], analysisCache] call[.registerBuiltInAnalysisEngines, parameter[member[.analysisCache]]] call[.re...
Keyword[protected] identifier[IAnalysisCache] identifier[createAnalysisCache] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[IAnalysisCache] identifier[analysisCache] operator[=] identifier[ClassFactory] operator[SEP] identifier[instance] operator[SEP] operator[SEP] operator[SEP...
public static BasePackage init() { if (isInited) return (BasePackage)EPackage.Registry.INSTANCE.getEPackage(BasePackage.eNS_URI); // Obtain or create and register package BasePackageImpl theBasePackage = (BasePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof BasePackageImpl ? EPackage.Registry.INST...
class class_name[name] begin[{] method[init, return_type[type[BasePackage]], modifier[public static], parameter[]] begin[{] if[member[.isInited]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=Base...
Keyword[public] Keyword[static] identifier[BasePackage] identifier[init] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isInited] operator[SEP] Keyword[return] operator[SEP] identifier[BasePackage] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[...
private static Method getAccessibleMethodFromSuperclass (Class<?> clazz, String methodName, Class<?>[] parameterTypes) { Class<?> parentClazz = clazz.getSuperclass(); while (parentClazz != null) { if (Modifier.isPublic(parentClazz.getModifiers())) { try { ...
class class_name[name] begin[{] method[getAccessibleMethodFromSuperclass, return_type[type[Method]], modifier[private static], parameter[clazz, methodName, parameterTypes]] begin[{] local_variable[type[Class], parentClazz] while[binary_operation[member[.parentClazz], !=, literal[null]]]...
Keyword[private] Keyword[static] identifier[Method] identifier[getAccessibleMethodFromSuperclass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[methodName] , identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identi...
@Override public final void pi(String target, String instruction) throws IllegalStateException, IllegalArgumentException, IOException { // Check state if (_state != XMLEventListenerStates.BEFORE_XML_DECLARATION && _state != XMLEventListenerStates.BEFORE_DTD_DECLARATION && _state != XMLEventListener...
class class_name[name] begin[{] method[pi, return_type[void], modifier[final public], parameter[target, instruction]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[._state], !=, member[XMLEventListenerStates.BEFORE_XML_D...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[pi] operator[SEP] identifier[String] identifier[target] , identifier[String] identifier[instruction] operator[SEP] Keyword[throws] identifier[IllegalStateException] , identifier[IllegalArgumentException] , identifier[IOExcepti...
private void handleConnectResponse(ConnectResponse response, Throwable error, CompletableFuture<Connection> future) { if (open) { if (error == null) { LOGGER.trace("{} - Received {}", id, response); // If the connection was successfully created, immediately send a keep-alive request //...
class class_name[name] begin[{] method[handleConnectResponse, return_type[void], modifier[private], parameter[response, error, future]] begin[{] if[member[.open]] begin[{] if[binary_operation[member[.error], ==, literal[null]]] begin[{] ca...
Keyword[private] Keyword[void] identifier[handleConnectResponse] operator[SEP] identifier[ConnectResponse] identifier[response] , identifier[Throwable] identifier[error] , identifier[CompletableFuture] operator[<] identifier[Connection] operator[>] identifier[future] operator[SEP] { Keyword[if] operator[SEP] i...
public static String ceylonModuleBaseName(final String groupId, final String artifactId) { if (groupId == null || artifactId == null || "".equals(artifactId) || artifactId.contains(".")) { throw new IllegalArgumentException(" Null or empty, or '.' is not allowed in artifactId"); } ...
class class_name[name] begin[{] method[ceylonModuleBaseName, return_type[type[String]], modifier[public static], parameter[groupId, artifactId]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.groupId], ==, literal[null]], ||, binary_operation[member[.art...
Keyword[public] Keyword[static] identifier[String] identifier[ceylonModuleBaseName] operator[SEP] Keyword[final] identifier[String] identifier[groupId] , Keyword[final] identifier[String] identifier[artifactId] operator[SEP] { Keyword[if] operator[SEP] identifier[groupId] operator[==] Other[null] operator[||] i...
protected static SqlParts sqlToSortIds(Set<String> docIdSet, List<FieldSort> sortDocument, List<Index> indexes) throws QueryException { String chosenIndex = chooseIndexForSort(sortDocument, indexes); if (chosenIndex == null) { ...
class class_name[name] begin[{] method[sqlToSortIds, return_type[type[SqlParts]], modifier[static protected], parameter[docIdSet, sortDocument, indexes]] begin[{] local_variable[type[String], chosenIndex] if[binary_operation[member[.chosenIndex], ==, literal[null]]] begin[{] ...
Keyword[protected] Keyword[static] identifier[SqlParts] identifier[sqlToSortIds] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[docIdSet] , identifier[List] operator[<] identifier[FieldSort] operator[>] identifier[sortDocument] , identifier[List] operator[<] identifier[Index] oper...
public List<Note> getMergeRequestNotes(Object projectIdOrPath, Integer mergeRequestIid, int page, int perPage) throws GitLabApiException { return (getMergeRequestNotes(projectIdOrPath, mergeRequestIid, null, null, page, perPage)); }
class class_name[name] begin[{] method[getMergeRequestNotes, return_type[type[List]], modifier[public], parameter[projectIdOrPath, mergeRequestIid, page, perPage]] begin[{] return[call[.getMergeRequestNotes, parameter[member[.projectIdOrPath], member[.mergeRequestIid], literal[null], literal[null], mem...
Keyword[public] identifier[List] operator[<] identifier[Note] operator[>] identifier[getMergeRequestNotes] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[Integer] identifier[mergeRequestIid] , Keyword[int] identifier[page] , Keyword[int] identifier[perPage] operator[SEP] Keyword[throws] id...
public void setXPEXTENT(Integer newXPEXTENT) { Integer oldXPEXTENT = xpextent; xpextent = newXPEXTENT; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PTD1__XPEXTENT, oldXPEXTENT, xpextent)); }
class class_name[name] begin[{] method[setXPEXTENT, return_type[void], modifier[public], parameter[newXPEXTENT]] begin[{] local_variable[type[Integer], oldXPEXTENT] assign[member[.xpextent], member[.newXPEXTENT]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setXPEXTENT] operator[SEP] identifier[Integer] identifier[newXPEXTENT] operator[SEP] { identifier[Integer] identifier[oldXPEXTENT] operator[=] identifier[xpextent] operator[SEP] identifier[xpextent] operator[=] identifier[newXPEXTENT] operator[SEP] Keyword[if] operator[SE...
public static List<String> readLines(CharSequence self) throws IOException { return IOGroovyMethods.readLines(new StringReader(self.toString())); }
class class_name[name] begin[{] method[readLines, return_type[type[List]], modifier[public static], parameter[self]] begin[{] return[call[IOGroovyMethods.readLines, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=sel...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[readLines] operator[SEP] identifier[CharSequence] identifier[self] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[IOGroovyMethods] operator[SEP] identifier[readLines] operato...
public void setStyle(StyleRow styleRow, GeometryType geometryType) { if (geometryType != null) { if (styleRow != null) { styles.put(geometryType, styleRow); } else { styles.remove(geometryType); } } else { defaultStyle = styleRow; } }
class class_name[name] begin[{] method[setStyle, return_type[void], modifier[public], parameter[styleRow, geometryType]] begin[{] if[binary_operation[member[.geometryType], !=, literal[null]]] begin[{] if[binary_operation[member[.styleRow], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setStyle] operator[SEP] identifier[StyleRow] identifier[styleRow] , identifier[GeometryType] identifier[geometryType] operator[SEP] { Keyword[if] operator[SEP] identifier[geometryType] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifi...
public static base_responses clear(nitro_service client, gslbldnsentries resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { gslbldnsentries clearresources[] = new gslbldnsentries[resources.length]; for (int i=0;i<resources.length;i++){ clearresou...
class class_name[name] begin[{] method[clear, return_type[type[base_responses]], modifier[public static], parameter[client, resources]] begin[{] local_variable[type[base_responses], result] if[binary_operation[binary_operation[member[.resources], !=, literal[null]], &&, binary_operation...
Keyword[public] Keyword[static] identifier[base_responses] identifier[clear] operator[SEP] identifier[nitro_service] identifier[client] , identifier[gslbldnsentries] identifier[resources] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_responses] identifier[resu...
public static final Mem tword_ptr_abs(long target, long disp, SEGMENT segmentPrefix) { return _ptr_build_abs(target, disp, segmentPrefix, SIZE_TWORD); }
class class_name[name] begin[{] method[tword_ptr_abs, return_type[type[Mem]], modifier[final public static], parameter[target, disp, segmentPrefix]] begin[{] return[call[._ptr_build_abs, parameter[member[.target], member[.disp], member[.segmentPrefix], member[.SIZE_TWORD]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[final] identifier[Mem] identifier[tword_ptr_abs] operator[SEP] Keyword[long] identifier[target] , Keyword[long] identifier[disp] , identifier[SEGMENT] identifier[segmentPrefix] operator[SEP] { Keyword[return] identifier[_ptr_build_abs] operator[SEP] identifier[target] , ...
@Override public boolean rename(String newStorageName) { assertConnectionOpen(); if(storageName.equals(newStorageName)) { return false; } blockedStorageClose(StorageType.PRIMARY_STORAGE); blockedStorageClose(StorageType.SECONDARY_STORAGE); try { ...
class class_name[name] begin[{] method[rename, return_type[type[boolean]], modifier[public], parameter[newStorageName]] begin[{] call[.assertConnectionOpen, parameter[]] if[call[storageName.equals, parameter[member[.newStorageName]]]] begin[{] return[literal[false]] ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[rename] operator[SEP] identifier[String] identifier[newStorageName] operator[SEP] { identifier[assertConnectionOpen] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[storageName] operator[SEP] identifier[...
private ItemData updatePathIfNeeded(ItemData data) throws IllegalPathException { if (data == null || changesLog.getAllPathsChanged() == null) return data; List<ItemState> states = changesLog.getAllPathsChanged(); for (int i = 0, length = states.size(); i < length; i++) { Ite...
class class_name[name] begin[{] method[updatePathIfNeeded, return_type[type[ItemData]], modifier[private], parameter[data]] begin[{] if[binary_operation[binary_operation[member[.data], ==, literal[null]], ||, binary_operation[call[changesLog.getAllPathsChanged, parameter[]], ==, literal[null]]]...
Keyword[private] identifier[ItemData] identifier[updatePathIfNeeded] operator[SEP] identifier[ItemData] identifier[data] operator[SEP] Keyword[throws] identifier[IllegalPathException] { Keyword[if] operator[SEP] identifier[data] operator[==] Other[null] operator[||] identifier[changesLog] operator[SEP] identifie...
public String getTableNames(boolean bAddQuotes) { return (m_tableName == null) ? Record.formatTableNames(USER_LOG_FILE, bAddQuotes) : super.getTableNames(bAddQuotes); }
class class_name[name] begin[{] method[getTableNames, return_type[type[String]], modifier[public], parameter[bAddQuotes]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m_tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan...
Keyword[public] identifier[String] identifier[getTableNames] operator[SEP] Keyword[boolean] identifier[bAddQuotes] operator[SEP] { Keyword[return] operator[SEP] identifier[m_tableName] operator[==] Other[null] operator[SEP] operator[?] identifier[Record] operator[SEP] identifier[formatTableNames] operator[SEP] i...
public Observable<List<EntityRole>> getPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId) { return getPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1<ServiceResponse<List<EntityRole>>, List<EntityRole>>() { @Override public Lis...
class class_name[name] begin[{] method[getPatternAnyEntityRolesAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, entityId]] begin[{] return[call[.getPatternAnyEntityRolesWithServiceResponseAsync, parameter[member[.appId], member[.versionId], member[.entityId]]]] en...
Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[EntityRole] operator[>] operator[>] identifier[getPatternAnyEntityRolesAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[entityId] operator[SEP] { ...
public static MessageSecurityMetadataSource createExpressionMessageMetadataSource( LinkedHashMap<MessageMatcher<?>, String> matcherToExpression, SecurityExpressionHandler<Message<Object>> handler) { LinkedHashMap<MessageMatcher<?>, Collection<ConfigAttribute>> matcherToAttrs = new LinkedHashMap<MessageMatcher<?>,...
class class_name[name] begin[{] method[createExpressionMessageMetadataSource, return_type[type[MessageSecurityMetadataSource]], modifier[public static], parameter[matcherToExpression, handler]] begin[{] local_variable[type[LinkedHashMap], matcherToAttrs] ForStatement(body=BlockStatement(label=N...
Keyword[public] Keyword[static] identifier[MessageSecurityMetadataSource] identifier[createExpressionMessageMetadataSource] operator[SEP] identifier[LinkedHashMap] operator[<] identifier[MessageMatcher] operator[<] operator[?] operator[>] , identifier[String] operator[>] identifier[matcherToExpression] , identifier[S...
private ArrayList<Rect> calculateAllBounds(Paint paint) { ArrayList<Rect> list = new ArrayList<Rect>(); //For each views (If no values then add a fake one) final int count = mRecyclerView.getAdapter().getItemCount(); final int width = getWidth(); final int halfWidth = width / 2; ...
class class_name[name] begin[{] method[calculateAllBounds, return_type[type[ArrayList]], modifier[private], parameter[paint]] begin[{] local_variable[type[ArrayList], list] local_variable[type[int], count] local_variable[type[int], width] local_variable[type[int], halfWidth] ...
Keyword[private] identifier[ArrayList] operator[<] identifier[Rect] operator[>] identifier[calculateAllBounds] operator[SEP] identifier[Paint] identifier[paint] operator[SEP] { identifier[ArrayList] operator[<] identifier[Rect] operator[>] identifier[list] operator[=] Keyword[new] identifier[ArrayList] operator[...
public static StringUtils getStringUtils() { if (stringUtils == null) { try { Class clazz = Class.forName(STRING_UTILS); stringUtils = (StringUtils) clazz.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { LOGGER.warn("Cannot ins...
class class_name[name] begin[{] method[getStringUtils, return_type[type[StringUtils]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.stringUtils], ==, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Vari...
Keyword[public] Keyword[static] identifier[StringUtils] identifier[getStringUtils] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[stringUtils] operator[==] Other[null] operator[SEP] { Keyword[try] { identifier[Class] identifier[clazz] operator[=] identifier[Class] op...
@Nonnull public static ICommonsList <String> getSplitToList (@Nullable final CharSequence sText, @Nonnull @RegEx final String sRegEx) { return new CommonsArrayList <> (getSplitToArray (sText, sRegEx)); }
class class_name[name] begin[{] method[getSplitToList, return_type[type[ICommonsList]], modifier[public static], parameter[sText, sRegEx]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=sText, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[ICommonsList] operator[<] identifier[String] operator[>] identifier[getSplitToList] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[CharSequence] identifier[sText] , annotation[@] identifier[Nonnull] annotation[@] i...
private String getObjectOID(org.omg.CORBA.Object object) { String oid = null; try { byte[] oidBytes = this.poa.reference_to_id(object); if (oidBytes != null) oid = new String(oidBytes, StandardCharsets.UTF_8); } catch (Exception e) { IIOPLogger...
class class_name[name] begin[{] method[getObjectOID, return_type[type[String]], modifier[private], parameter[object]] begin[{] local_variable[type[String], oid] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_o...
Keyword[private] identifier[String] identifier[getObjectOID] operator[SEP] identifier[org] operator[SEP] identifier[omg] operator[SEP] identifier[CORBA] operator[SEP] identifier[Object] identifier[object] operator[SEP] { identifier[String] identifier[oid] operator[=] Other[null] operator[SEP] Keyword[try] { ...
public final @NotNull S isGreaterThanOrEqualTo(@Nullable T other) { isNotNull(); if (actual.compareTo(other) >= 0) { return myself(); } failIfCustomMessageIsSet(); throw failure(unexpectedLessThan(actual, other)); }
class class_name[name] begin[{] method[isGreaterThanOrEqualTo, return_type[type[S]], modifier[final public], parameter[other]] begin[{] call[.isNotNull, parameter[]] if[binary_operation[call[actual.compareTo, parameter[member[.other]]], >=, literal[0]]] begin[{] retu...
Keyword[public] Keyword[final] annotation[@] identifier[NotNull] identifier[S] identifier[isGreaterThanOrEqualTo] operator[SEP] annotation[@] identifier[Nullable] identifier[T] identifier[other] operator[SEP] { identifier[isNotNull] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[a...