code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public ClusterData createClusterData(boolean localOnly) { if (localOnly) return new VertxClusterData(vertx); HazelcastInstance hazelcast = ClusterListenerFactory.getHazelcastInstance(vertx); if (hazelcast != null) { return new HazelcastClusterData(hazelcast); } else { return new VertxCluster...
class class_name[name] begin[{] method[createClusterData, return_type[type[ClusterData]], modifier[public], parameter[localOnly]] begin[{] if[member[.localOnly]] begin[{] return[ClassCreator(arguments=[MemberReference(member=vertx, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] identifier[ClusterData] identifier[createClusterData] operator[SEP] Keyword[boolean] identifier[localOnly] operator[SEP] { Keyword[if] operator[SEP] identifier[localOnly] operator[SEP] Keyword[return] Keyword[new] identifier[VertxClusterData] operator[SEP] identifier[vertx] operator[SEP] operator...
public OpenPgpV4Fingerprint restoreSecretKeyServerBackup(AskForBackupCodeCallback codeCallback) throws InterruptedException, PubSubException.NotALeafNodeException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException, InvalidBacku...
class class_name[name] begin[{] method[restoreSecretKeyServerBackup, return_type[type[OpenPgpV4Fingerprint]], modifier[public], parameter[codeCallback]] begin[{] call[.throwIfNoProviderSet, parameter[]] call[.throwIfNotAuthenticated, parameter[]] local_variable[type[Secr...
Keyword[public] identifier[OpenPgpV4Fingerprint] identifier[restoreSecretKeyServerBackup] operator[SEP] identifier[AskForBackupCodeCallback] identifier[codeCallback] operator[SEP] Keyword[throws] identifier[InterruptedException] , identifier[PubSubException] operator[SEP] identifier[NotALeafNodeException] , identifie...
public ParsedNode addChildren(Map<String, Object> child) throws ParsedNodeException { if ((child == null) || child.isEmpty()) { return this; //do nothing } for (Map.Entry<String, Object> entry : child.entrySet()) { this.addChild(null, entry.getKey(), entry.getValue()); ...
class class_name[name] begin[{] method[addChildren, return_type[type[ParsedNode]], modifier[public], parameter[child]] begin[{] if[binary_operation[binary_operation[member[.child], ==, literal[null]], ||, call[child.isEmpty, parameter[]]]] begin[{] return[THIS[]] else begin[...
Keyword[public] identifier[ParsedNode] identifier[addChildren] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[child] operator[SEP] Keyword[throws] identifier[ParsedNodeException] { Keyword[if] operator[SEP] operator[SEP] identifier[child] operator[==] Ot...
private void obtainButtonTextColor(@StyleRes final int themeResourceId) { TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId, new int[]{R.attr.materialDialogButtonTextColor}); ColorStateList colorStateList = typedArray.getColorStateList(0); if...
class class_name[name] begin[{] method[obtainButtonTextColor, return_type[void], modifier[private], parameter[themeResourceId]] begin[{] local_variable[type[TypedArray], typedArray] local_variable[type[ColorStateList], colorStateList] if[binary_operation[member[.colorStateList],...
Keyword[private] Keyword[void] identifier[obtainButtonTextColor] operator[SEP] annotation[@] identifier[StyleRes] Keyword[final] Keyword[int] identifier[themeResourceId] operator[SEP] { identifier[TypedArray] identifier[typedArray] operator[=] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] iden...
private String nextQuotedValue(ByteString runTerminator) throws IOException { StringBuilder builder = null; while (true) { long index = source.indexOfElement(runTerminator); if (index == -1L) throw syntaxError("Unterminated string"); // If we've got an escape character, we're going to need a ...
class class_name[name] begin[{] method[nextQuotedValue, return_type[type[String]], modifier[private], parameter[runTerminator]] begin[{] local_variable[type[StringBuilder], builder] while[literal[true]] begin[{] local_variable[type[long], index] if[bi...
Keyword[private] identifier[String] identifier[nextQuotedValue] operator[SEP] identifier[ByteString] identifier[runTerminator] operator[SEP] Keyword[throws] identifier[IOException] { identifier[StringBuilder] identifier[builder] operator[=] Other[null] operator[SEP] Keyword[while] operator[SEP] literal[boolean] ...
@Override public void run() { super.subjectRepository.deleteSubject(subject, new SubjectRepository.SubjectUseCase() { @Override public void onMissionAccomplished(final Subject subject) { DeleteSubjectUseCaseImp.super.mainThread.post(new Runnable() { ...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] SuperMemberReference(member=subjectRepository, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=subject, postfix_operato...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[subjectRepository] operator[SEP] identifier[deleteSubject] operator[SEP] identifier[subject] , Keyword[new] identifier[SubjectRepository] operator[SEP] identifie...
public void nextDoubles(double[] d, double lo, double hi) { real.nextDoubles(d); double l = hi - lo; int n = d.length; for (int i = 0; i < n; i++) { d[i] = lo + l * d[i]; } }
class class_name[name] begin[{] method[nextDoubles, return_type[void], modifier[public], parameter[d, lo, hi]] begin[{] call[real.nextDoubles, parameter[member[.d]]] local_variable[type[double], l] local_variable[type[int], n] ForStatement(body=BlockStatement(label=None,...
Keyword[public] Keyword[void] identifier[nextDoubles] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[d] , Keyword[double] identifier[lo] , Keyword[double] identifier[hi] operator[SEP] { identifier[real] operator[SEP] identifier[nextDoubles] operator[SEP] identifier[d] operator[SEP] operat...
public void notifyStateChangeToUnavailable() { final List<ConsumerStateListener> onprepear = consumerConfig.getOnAvailable(); if (onprepear != null) { AsyncRuntime.getAsyncThreadPool().execute(new Runnable() { @Override public void run() { ...
class class_name[name] begin[{] method[notifyStateChangeToUnavailable, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[List], onprepear] if[binary_operation[member[.onprepear], !=, literal[null]]] begin[{] call[AsyncRuntime.getAsync...
Keyword[public] Keyword[void] identifier[notifyStateChangeToUnavailable] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[ConsumerStateListener] operator[>] identifier[onprepear] operator[=] identifier[consumerConfig] operator[SEP] identifier[getOnAvailable] operator[SEP] oper...
public void unregisterNodeType(final InternalQName nodeTypeName) throws RepositoryException { final NodeTypeData nodeType = this.nodeTypeRepository.getNodeType(nodeTypeName); if (nodeType == null) { throw new NoSuchNodeTypeException(nodeTypeName.getAsString()); } // ch...
class class_name[name] begin[{] method[unregisterNodeType, return_type[void], modifier[public], parameter[nodeTypeName]] begin[{] local_variable[type[NodeTypeData], nodeType] if[binary_operation[member[.nodeType], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassC...
Keyword[public] Keyword[void] identifier[unregisterNodeType] operator[SEP] Keyword[final] identifier[InternalQName] identifier[nodeTypeName] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[final] identifier[NodeTypeData] identifier[nodeType] operator[=] Keyword[this] operator[SEP] identif...
protected List<String> params(String name, List<FormItem> formItems){ List<String> vals = new ArrayList<String>(); for (FormItem formItem : formItems) { if(!formItem.isFile() && name.equals(formItem.getFieldName())){ vals.add(formItem.getStreamAsString()); } ...
class class_name[name] begin[{] method[params, return_type[type[List]], modifier[protected], parameter[name, formItems]] begin[{] local_variable[type[List], vals] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[...
Keyword[protected] identifier[List] operator[<] identifier[String] operator[>] identifier[params] operator[SEP] identifier[String] identifier[name] , identifier[List] operator[<] identifier[FormItem] operator[>] identifier[formItems] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] id...
public static CPSpecificationOption[] findByCPOptionCategoryId_PrevAndNext( long CPSpecificationOptionId, long CPOptionCategoryId, OrderByComparator<CPSpecificationOption> orderByComparator) throws com.liferay.commerce.product.exception.NoSuchCPSpecificationOptionException { return getPersistence() .find...
class class_name[name] begin[{] method[findByCPOptionCategoryId_PrevAndNext, return_type[type[CPSpecificationOption]], modifier[public static], parameter[CPSpecificationOptionId, CPOptionCategoryId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPSpecificationOption] operator[SEP] operator[SEP] identifier[findByCPOptionCategoryId_PrevAndNext] operator[SEP] Keyword[long] identifier[CPSpecificationOptionId] , Keyword[long] identifier[CPOptionCategoryId] , identifier[OrderByComparator] operator[<] identifier[CPSpecifi...
public Label updateLabel(Object projectIdOrPath, String name, String newName, String color, String description, Integer priority) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm() .withParam("name", name, true) .withParam("new_name", newName) ...
class class_name[name] begin[{] method[updateLabel, return_type[type[Label]], modifier[public], parameter[projectIdOrPath, name, newName, color, description, priority]] begin[{] local_variable[type[GitLabApiForm], formData] local_variable[type[Response], response] return[call[response.r...
Keyword[public] identifier[Label] identifier[updateLabel] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[String] identifier[name] , identifier[String] identifier[newName] , identifier[String] identifier[color] , identifier[String] identifier[description] , identifier[Integer] identifier[...
final protected String getTrimmedString() throws BadMessage { if (_bufferPosition == 0) return ""; int start = 0; boolean quoted = false; // Look for start while (start < _bufferPosition) { final char ch = _internalBuffer[start]; if (ch == '"') { ...
class class_name[name] begin[{] method[getTrimmedString, return_type[type[String]], modifier[final protected], parameter[]] begin[{] if[binary_operation[member[._bufferPosition], ==, literal[0]]] begin[{] return[literal[""]] else begin[{] None end[}] local_variable[type[...
Keyword[final] Keyword[protected] identifier[String] identifier[getTrimmedString] operator[SEP] operator[SEP] Keyword[throws] identifier[BadMessage] { Keyword[if] operator[SEP] identifier[_bufferPosition] operator[==] Other[0] operator[SEP] Keyword[return] literal[String] operator[SEP] Keyword[int] identifier[st...
URLClassLoader createUrlClassLoader( final List<String> classpathElements, final ClassLoader contextClassLoader) throws MojoExecutionException { try { final URL[] urls = new URL[classpathElements.size()]; int i = 0; for (final String classp...
class class_name[name] begin[{] method[createUrlClassLoader, return_type[type[URLClassLoader]], modifier[default], parameter[classpathElements, contextClassLoader]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCrea...
identifier[URLClassLoader] identifier[createUrlClassLoader] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[classpathElements] , Keyword[final] identifier[ClassLoader] identifier[contextClassLoader] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { ...
public static <T> T fromJson(String json, Class<T> clazz) { Objects.requireNonNull(json, Required.JSON.toString()); Objects.requireNonNull(clazz, Required.CLASS.toString()); T object = null; try { object = mapper.readValue(json, clazz); } catch (IOException e...
class class_name[name] begin[{] method[fromJson, return_type[type[T]], modifier[public static], parameter[json, clazz]] begin[{] call[Objects.requireNonNull, parameter[member[.json], call[Required.JSON.toString, parameter[]]]] call[Objects.requireNonNull, parameter[member[.clazz...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[fromJson] operator[SEP] identifier[String] identifier[json] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] oper...
private Object jsonToObject(String recordValue) throws JsonParseException, JsonMappingException, IOException{ ObjectMapper mapper = new ObjectMapper(); Object json = mapper.readValue(recordValue, Object.class); return json; }
class class_name[name] begin[{] method[jsonToObject, return_type[type[Object]], modifier[private], parameter[recordValue]] begin[{] local_variable[type[ObjectMapper], mapper] local_variable[type[Object], json] return[member[.json]] end[}] END[}]
Keyword[private] identifier[Object] identifier[jsonToObject] operator[SEP] identifier[String] identifier[recordValue] operator[SEP] Keyword[throws] identifier[JsonParseException] , identifier[JsonMappingException] , identifier[IOException] { identifier[ObjectMapper] identifier[mapper] operator[=] Keyword[new] ...
private Sql[] generateMSSQLSql(AddPrimaryKeyStatementMSSQL statement, Database database, SqlGeneratorChain sqlGeneratorChain) { String sql; if (statement.getConstraintName() == null) { sql = "ALTER TABLE " + database.escapeTableName(statement.getCatalogName(), statement.getSchemaName(), statement.getTable...
class class_name[name] begin[{] method[generateMSSQLSql, return_type[type[Sql]], modifier[private], parameter[statement, database, sqlGeneratorChain]] begin[{] local_variable[type[String], sql] if[binary_operation[call[statement.getConstraintName, parameter[]], ==, literal[null]]] begin...
Keyword[private] identifier[Sql] operator[SEP] operator[SEP] identifier[generateMSSQLSql] operator[SEP] identifier[AddPrimaryKeyStatementMSSQL] identifier[statement] , identifier[Database] identifier[database] , identifier[SqlGeneratorChain] identifier[sqlGeneratorChain] operator[SEP] { identifier[String] iden...
public static IReactionSet extractTopReactions(IReactionScheme reactionScheme) { IReactionSet reactionSet = reactionScheme.getBuilder().newInstance(IReactionSet.class); IReactionSet allSet = getAllReactions(reactionScheme); for (IReaction reaction : allSet.reactions()) { IReactionSe...
class class_name[name] begin[{] method[extractTopReactions, return_type[type[IReactionSet]], modifier[public static], parameter[reactionScheme]] begin[{] local_variable[type[IReactionSet], reactionSet] local_variable[type[IReactionSet], allSet] ForStatement(body=BlockStatement(label=Non...
Keyword[public] Keyword[static] identifier[IReactionSet] identifier[extractTopReactions] operator[SEP] identifier[IReactionScheme] identifier[reactionScheme] operator[SEP] { identifier[IReactionSet] identifier[reactionSet] operator[=] identifier[reactionScheme] operator[SEP] identifier[getBuilder] operator[SEP] ...
public static com.liferay.commerce.notification.model.CommerceNotificationTemplateUserSegmentRel createCommerceNotificationTemplateUserSegmentRel( long commerceNotificationTemplateUserSegmentRelId) { return getService() .createCommerceNotificationTemplateUserSegmentRel(commerceNotificationTemplateUserSegment...
class class_name[name] begin[{] method[createCommerceNotificationTemplateUserSegmentRel, return_type[type[com]], modifier[public static], parameter[commerceNotificationTemplateUserSegmentRelId]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[notification] operator[SEP] identifier[model] operator[SEP] identifier[CommerceNotificationTemplateUserSegmentRel] identifier[createCommerceNotificationTemplateUserSegmentRel] op...
static AuthScope uriToAuthScope(URI uri) { assert (uri != null); return new AuthScope(uri.getHost(), uri.getPort(), AuthScope.ANY_REALM, uri.getScheme()); }
class class_name[name] begin[{] method[uriToAuthScope, return_type[type[AuthScope]], modifier[static], parameter[uri]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=uri, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_o...
Keyword[static] identifier[AuthScope] identifier[uriToAuthScope] operator[SEP] identifier[URI] identifier[uri] operator[SEP] { Keyword[assert] operator[SEP] identifier[uri] operator[!=] Other[null] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[AuthScope] operator[SEP] identifier[uri] operat...
public void marshall(PutEventsResultEntry putEventsResultEntry, ProtocolMarshaller protocolMarshaller) { if (putEventsResultEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putEventsResultEntr...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[putEventsResultEntry, protocolMarshaller]] begin[{] if[binary_operation[member[.putEventsResultEntry], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PutEventsResultEntry] identifier[putEventsResultEntry] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[putEventsResultEntry] operator[==] Other[null] operator[SEP] { ...
public void openDatagramChannel(final AtomicCounter statusIndicator) { try { sendDatagramChannel = DatagramChannel.open(udpChannel.protocolFamily()); receiveDatagramChannel = sendDatagramChannel; if (udpChannel.isMulticast()) { if (nul...
class class_name[name] begin[{] method[openDatagramChannel, return_type[void], modifier[public], parameter[statusIndicator]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=sendDatagramChannel, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[void] identifier[openDatagramChannel] operator[SEP] Keyword[final] identifier[AtomicCounter] identifier[statusIndicator] operator[SEP] { Keyword[try] { identifier[sendDatagramChannel] operator[=] identifier[DatagramChannel] operator[SEP] identifier[open] operator[SEP] identifie...
private void start() { System.out.print("Starting " + DISPLAY_NAME + "..."); System.out.flush(); // Consume configuration from Grakn config file into Cassandra config file initialiseConfig(); Future<Executor.Result> result = daemonExecutor.executeAsync(storageCommand(), graknHo...
class class_name[name] begin[{] method[start, return_type[void], modifier[private], parameter[]] begin[{] call[System.out.print, parameter[binary_operation[binary_operation[literal["Starting "], +, member[.DISPLAY_NAME]], +, literal["..."]]]] call[System.out.flush, parameter[]] ...
Keyword[private] Keyword[void] identifier[start] operator[SEP] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[print] operator[SEP] literal[String] operator[+] identifier[DISPLAY_NAME] operator[+] literal[String] operator[SEP] operator[SEP] identifier[System] operator[SE...
public void setVBaselineIncrement(Integer newVBaselineIncrement) { Integer oldVBaselineIncrement = vBaselineIncrement; vBaselineIncrement = newVBaselineIncrement; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.METRIC_ADJUSTMENT__VBASELINE_INCREMENT, oldVBaselin...
class class_name[name] begin[{] method[setVBaselineIncrement, return_type[void], modifier[public], parameter[newVBaselineIncrement]] begin[{] local_variable[type[Integer], oldVBaselineIncrement] assign[member[.vBaselineIncrement], member[.newVBaselineIncrement]] if[call[...
Keyword[public] Keyword[void] identifier[setVBaselineIncrement] operator[SEP] identifier[Integer] identifier[newVBaselineIncrement] operator[SEP] { identifier[Integer] identifier[oldVBaselineIncrement] operator[=] identifier[vBaselineIncrement] operator[SEP] identifier[vBaselineIncrement] operator[=] identifier[...
public static int getNumericType(int t1, int t2, boolean canBeNonNumeric) { if (t1 == t2) return t1; if (canBeNonNumeric && (t1 == NONNUMERIC || t2 == NONNUMERIC || t1 == CHAR || t2 == CHAR)) return NONNUMERIC; if (t1 == NONNUMERIC) t1 = DOUBLE; // Try to interpret strings as doubles... ...
class class_name[name] begin[{] method[getNumericType, return_type[type[int]], modifier[public static], parameter[t1, t2, canBeNonNumeric]] begin[{] if[binary_operation[member[.t1], ==, member[.t2]]] begin[{] return[member[.t1]] else begin[{] None end[}] if[binar...
Keyword[public] Keyword[static] Keyword[int] identifier[getNumericType] operator[SEP] Keyword[int] identifier[t1] , Keyword[int] identifier[t2] , Keyword[boolean] identifier[canBeNonNumeric] operator[SEP] { Keyword[if] operator[SEP] identifier[t1] operator[==] identifier[t2] operator[SEP] Keyword[return] ident...
public void resume() throws ResumeException { if (rpcService != null) { try { rpcService.executeCommandOnAllNodes(resume, true); } catch (SecurityException e) { throw new ResumeException(e); } catch (RPCException e) ...
class class_name[name] begin[{] method[resume, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.rpcService], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=resum...
Keyword[public] Keyword[void] identifier[resume] operator[SEP] operator[SEP] Keyword[throws] identifier[ResumeException] { Keyword[if] operator[SEP] identifier[rpcService] operator[!=] Other[null] operator[SEP] { Keyword[try] { identifier[rpcService] operator[SEP] identifier[executeComm...
private static void expungeStaleExceptions() { for (Object x; (x = exceptionTableRefQueue.poll()) != null;) { if (x instanceof ExceptionNode) { int hashCode = ((ExceptionNode)x).hashCode; ExceptionNode[] t = exceptionTable; int i = hashCode & (t.length...
class class_name[name] begin[{] method[expungeStaleExceptions, return_type[void], modifier[private static], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], ...
Keyword[private] Keyword[static] Keyword[void] identifier[expungeStaleExceptions] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[x] operator[SEP] operator[SEP] identifier[x] operator[=] identifier[exceptionTableRefQueue] operator[SEP] identifier[poll] operator[SEP] operato...
private synchronized void stopCache() { Object[] pTables = m_setTableCacheList.toArray(); for (Object objTable : pTables) { PTable pTable = (PTable)objTable; pTable.removePTableOwner(this, true); m_setTableCacheList.remove(pTable); } m_setT...
class class_name[name] begin[{] method[stopCache, return_type[void], modifier[synchronized private], parameter[]] begin[{] local_variable[type[Object], pTables] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dime...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[stopCache] operator[SEP] operator[SEP] { identifier[Object] operator[SEP] operator[SEP] identifier[pTables] operator[=] identifier[m_setTableCacheList] operator[SEP] identifier[toArray] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator...
public java.util.Map<String, java.util.List<String>> getAttributes() { return attributes; }
class class_name[name] begin[{] method[getAttributes, return_type[type[java]], modifier[public], parameter[]] begin[{] return[member[.attributes]] end[}] END[}]
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[getAttributes] operator[SEP] operator[SEP] { ...
@SuppressWarnings("unchecked") public static <T> T[] insert(T element, T[] array, int index) { Assert.notNull(array, "Array is required"); assertThat(index).throwing(new ArrayIndexOutOfBoundsException( String.format("[%1$d] is not a valid index [0, %2$d] in the array", index, array.length))) ....
class class_name[name] begin[{] method[insert, return_type[type[T]], modifier[public static], parameter[element, array, index]] begin[{] call[Assert.notNull, parameter[member[.array], literal["Array is required"]]] call[.assertThat, parameter[member[.index]]] local_varia...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[insert] operator[SEP] identifier[T] identifier[element] , identifier[T] operator[SEP] operator[SEP] identifie...
public JavaClass readFromClassPath(String classFile) throws IOException { Thread thread = Thread.currentThread(); ClassLoader loader = thread.getContextClassLoader(); InputStream is = loader.getResourceAsStream(classFile); try { return parse(is); } finally { is.close(); } ...
class class_name[name] begin[{] method[readFromClassPath, return_type[type[JavaClass]], modifier[public], parameter[classFile]] begin[{] local_variable[type[Thread], thread] local_variable[type[ClassLoader], loader] local_variable[type[InputStream], is] TryStatement(block=[Retur...
Keyword[public] identifier[JavaClass] identifier[readFromClassPath] operator[SEP] identifier[String] identifier[classFile] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Thread] identifier[thread] operator[=] identifier[Thread] operator[SEP] identifier[currentThread] operator[SEP] operator[SE...
@Override public CommercePriceList findByUuid_First(String uuid, OrderByComparator<CommercePriceList> orderByComparator) throws NoSuchPriceListException { CommercePriceList commercePriceList = fetchByUuid_First(uuid, orderByComparator); if (commercePriceList != null) { return commercePriceList; } ...
class class_name[name] begin[{] method[findByUuid_First, return_type[type[CommercePriceList]], modifier[public], parameter[uuid, orderByComparator]] begin[{] local_variable[type[CommercePriceList], commercePriceList] if[binary_operation[member[.commercePriceList], !=, literal[null]]] be...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceList] identifier[findByUuid_First] operator[SEP] identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CommercePriceList] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[No...
protected Optional<ExpirationPolicy> getExpirationPolicyFor(final TicketState ticketState) { val name = getExpirationPolicyNameFor(ticketState); LOGGER.trace("Received expiration policy name [{}] to activate", name); if (StringUtils.isNotBlank(name) && policies.containsKey(name)) { v...
class class_name[name] begin[{] method[getExpirationPolicyFor, return_type[type[Optional]], modifier[protected], parameter[ticketState]] begin[{] local_variable[type[val], name] call[LOGGER.trace, parameter[literal["Received expiration policy name [{}] to activate"], member[.name]]] ...
Keyword[protected] identifier[Optional] operator[<] identifier[ExpirationPolicy] operator[>] identifier[getExpirationPolicyFor] operator[SEP] Keyword[final] identifier[TicketState] identifier[ticketState] operator[SEP] { identifier[val] identifier[name] operator[=] identifier[getExpirationPolicyNameFor] operator...
public static MultipleVersionRange parseMultipleVersionRange(String intersection) throws VersionException { Assert.notNull(intersection, "Version range must not be null."); List<VersionRange> ranges = new ArrayList<VersionRange>(); String process = intersection; Version upperBound = null; ...
class class_name[name] begin[{] method[parseMultipleVersionRange, return_type[type[MultipleVersionRange]], modifier[public static], parameter[intersection]] begin[{] call[Assert.notNull, parameter[member[.intersection], literal["Version range must not be null."]]] local_variable[type[Li...
Keyword[public] Keyword[static] identifier[MultipleVersionRange] identifier[parseMultipleVersionRange] operator[SEP] identifier[String] identifier[intersection] operator[SEP] Keyword[throws] identifier[VersionException] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[intersection]...
public void annotateTypeParameterSecondStage(JCTree tree, List<JCAnnotation> annotations) { typeAnnotation(() -> { List<Attribute.TypeCompound> compounds = fromAnnotations(annotations); Assert.check(annotations.size() == compounds.size()); }); }
class class_name[name] begin[{] method[annotateTypeParameterSecondStage, return_type[void], modifier[public], parameter[tree, annotations]] begin[{] call[.typeAnnotation, parameter[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], ini...
Keyword[public] Keyword[void] identifier[annotateTypeParameterSecondStage] operator[SEP] identifier[JCTree] identifier[tree] , identifier[List] operator[<] identifier[JCAnnotation] operator[>] identifier[annotations] operator[SEP] { identifier[typeAnnotation] operator[SEP] operator[SEP] operator[SEP] operator[-...
public static String[] chop(String string, int length) { if(string.length() == 0) { return new String[0]; } int chunkCount = string.length() / length + 1; String[] chunks = new String[chunkCount]; for(int i = 0; i < chunkCount; i++) { chunks[i] = string.substring(i * length, Math.min(string.length(), (...
class class_name[name] begin[{] method[chop, return_type[type[String]], modifier[public static], parameter[string, length]] begin[{] if[binary_operation[call[string.length, parameter[]], ==, literal[0]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_o...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[chop] operator[SEP] identifier[String] identifier[string] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[string] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator...
@Override @FFDCIgnore({ ExecutionException.class }) public boolean isCancelled() { Future<Future<R>> resultFuture = getResultFuture(); if (resultFuture.isDone()) { if (resultFuture.isCancelled()) { return true; } else { try { ...
class class_name[name] begin[{] method[isCancelled, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[Future], resultFuture] if[call[resultFuture.isDone, parameter[]]] begin[{] if[call[resultFuture.isCancelled, parameter[]]] ...
annotation[@] identifier[Override] annotation[@] identifier[FFDCIgnore] operator[SEP] { identifier[ExecutionException] operator[SEP] Keyword[class] } operator[SEP] Keyword[public] Keyword[boolean] identifier[isCancelled] operator[SEP] operator[SEP] { identifier[Future] operator[<] identifier[Future] op...
public void add(int index, E element) { if (index > size || index < 0) throw new IndexOutOfBoundsException(outOfBoundsMsg(index)); ensureCapacityInternal(size + 1); // Increments modCount!! System.arraycopy(elementData, index, elementData, index + 1, size -...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[index, element]] begin[{] if[binary_operation[binary_operation[member[.index], >, member[.size]], ||, binary_operation[member[.index], <, literal[0]]]] begin[{] ThrowStatement(expression=ClassCreator(argu...
Keyword[public] Keyword[void] identifier[add] operator[SEP] Keyword[int] identifier[index] , identifier[E] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[>] identifier[size] operator[||] identifier[index] operator[<] Other[0] operator[SEP] Keyword[throw] Keyword[new] id...
public void marshall(BatchListObjectParents batchListObjectParents, ProtocolMarshaller protocolMarshaller) { if (batchListObjectParents == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(batchListObje...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[batchListObjectParents, protocolMarshaller]] begin[{] if[binary_operation[member[.batchListObjectParents], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[L...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BatchListObjectParents] identifier[batchListObjectParents] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[batchListObjectParents] operator[==] Other[null] operator[SE...
public Annotation[][] getAnnotations() { Annotation[][] copy = new Annotation[mParameterAnnotations.size()][]; for (int i=copy.length; --i>=0; ) { Vector<Annotation> annotations = mParameterAnnotations.get(i); if (annotations == null) { copy[i] = new Annotation[0]...
class class_name[name] begin[{] method[getAnnotations, return_type[type[Annotation]], modifier[public], parameter[]] begin[{] local_variable[type[Annotation], copy] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(...
Keyword[public] identifier[Annotation] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getAnnotations] operator[SEP] operator[SEP] { identifier[Annotation] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[copy] operator[=] Keyword[new] identifier[Annotation] operator[SEP] ide...
private void unregisterHandlers(RaftServerProtocol protocol) { protocol.unregisterOpenSessionHandler(); protocol.unregisterCloseSessionHandler(); protocol.unregisterKeepAliveHandler(); protocol.unregisterMetadataHandler(); protocol.unregisterConfigureHandler(); protocol.unregisterInstallHandler(...
class class_name[name] begin[{] method[unregisterHandlers, return_type[void], modifier[private], parameter[protocol]] begin[{] call[protocol.unregisterOpenSessionHandler, parameter[]] call[protocol.unregisterCloseSessionHandler, parameter[]] call[protocol.unregis...
Keyword[private] Keyword[void] identifier[unregisterHandlers] operator[SEP] identifier[RaftServerProtocol] identifier[protocol] operator[SEP] { identifier[protocol] operator[SEP] identifier[unregisterOpenSessionHandler] operator[SEP] operator[SEP] operator[SEP] identifier[protocol] operator[SEP] identifier[unreg...
public static base_response update(nitro_service client, transformprofile resource) throws Exception { transformprofile updateresource = new transformprofile(); updateresource.name = resource.name; updateresource.type = resource.type; updateresource.onlytransformabsurlinbody = resource.onlytransformabsurlinbody...
class class_name[name] begin[{] method[update, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[transformprofile], updateresource] assign[member[updateresource.name], member[resource.name]] assign[member...
Keyword[public] Keyword[static] identifier[base_response] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[transformprofile] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[transformprofile] identifier[updateresource] operator[=] Ke...
protected static void printToConsole(FilemakerLayoutDocument doc) throws JAXBException { LOGGER.info("> process layout document"); FMPXMLLAYOUT layout = doc.toObject(); LOGGER.info("> error code : " + layout.getERRORCODE()); if (layout.getPRODUCT() != null) { LOGGER.inf...
class class_name[name] begin[{] method[printToConsole, return_type[void], modifier[static protected], parameter[doc]] begin[{] call[LOGGER.info, parameter[literal["> process layout document"]]] local_variable[type[FMPXMLLAYOUT], layout] call[LOGGER.info, parameter[binary...
Keyword[protected] Keyword[static] Keyword[void] identifier[printToConsole] operator[SEP] identifier[FilemakerLayoutDocument] identifier[doc] operator[SEP] Keyword[throws] identifier[JAXBException] { identifier[LOGGER] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] ident...
protected org.opensaml.ws.soap.soap11.Envelope getSoapMessage(HttpEntity entity) throws ClientProtocolException, IllegalStateException, IOException { Envelope soapEnvelope = (Envelope) unmarshallMessage(parserPool, entity.getContent()); EntityUtils.consumeQuietly(entity); r...
class class_name[name] begin[{] method[getSoapMessage, return_type[type[org]], modifier[protected], parameter[entity]] begin[{] local_variable[type[Envelope], soapEnvelope] call[EntityUtils.consumeQuietly, parameter[member[.entity]]] return[member[.soapEnvelope]] end[}] END[...
Keyword[protected] identifier[org] operator[SEP] identifier[opensaml] operator[SEP] identifier[ws] operator[SEP] identifier[soap] operator[SEP] identifier[soap11] operator[SEP] identifier[Envelope] identifier[getSoapMessage] operator[SEP] identifier[HttpEntity] identifier[entity] operator[SEP] Keyword[throws] identifie...
public CmsStaticExportData getVfsNameInternal(CmsObject cms, String rfsName) throws CmsVfsResourceNotFoundException { String storedSiteRoot = cms.getRequestContext().getSiteRoot(); CmsSite currentSite = OpenCms.getSiteManager().getSiteForSiteRoot(storedSiteRoot); try { cms.getRe...
class class_name[name] begin[{] method[getVfsNameInternal, return_type[type[CmsStaticExportData]], modifier[public], parameter[cms, rfsName]] begin[{] local_variable[type[String], storedSiteRoot] local_variable[type[CmsSite], currentSite] TryStatement(block=[StatementExpression(expressi...
Keyword[public] identifier[CmsStaticExportData] identifier[getVfsNameInternal] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[rfsName] operator[SEP] Keyword[throws] identifier[CmsVfsResourceNotFoundException] { identifier[String] identifier[storedSiteRoot] operator[=] identi...
protected MapConfiguration createTmsMap(String crs, CrsType type, Bbox bounds, int minTileSize, int nrOfZoomLevels) { MapConfigurationImpl mapConfiguration; mapConfiguration = new MapConfigurationImpl(); mapConfiguration.setCrs(crs, type); double minSize = bounds.getWidth() >= bounds.getHeight() ? bounds.get...
class class_name[name] begin[{] method[createTmsMap, return_type[type[MapConfiguration]], modifier[protected], parameter[crs, type, bounds, minTileSize, nrOfZoomLevels]] begin[{] local_variable[type[MapConfigurationImpl], mapConfiguration] assign[member[.mapConfiguration], ClassCreator(...
Keyword[protected] identifier[MapConfiguration] identifier[createTmsMap] operator[SEP] identifier[String] identifier[crs] , identifier[CrsType] identifier[type] , identifier[Bbox] identifier[bounds] , Keyword[int] identifier[minTileSize] , Keyword[int] identifier[nrOfZoomLevels] operator[SEP] { identifier[Ma...
@Override public void onMetadataChange(JobExecutionState state, String key, Object oldValue, Object newValue) { if (this.filter.apply(state.getJobSpec())) { this.delegate.onMetadataChange(state, key, oldValue, newValue); } }
class class_name[name] begin[{] method[onMetadataChange, return_type[void], modifier[public], parameter[state, key, oldValue, newValue]] begin[{] if[THIS[member[None.filter]call[None.apply, parameter[call[state.getJobSpec, parameter[]]]]]] begin[{] THIS[member[None.deleg...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onMetadataChange] operator[SEP] identifier[JobExecutionState] identifier[state] , identifier[String] identifier[key] , identifier[Object] identifier[oldValue] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[if] opera...
public static Character toCharacter(Object o, Character defaultValue) { if (o instanceof Character) return (Character) o; if (defaultValue != null) return new Character(toCharValue(o, defaultValue.charValue())); char res = toCharValue(o, Character.MIN_VALUE); if (res == Character.MIN_VALUE) return defaultValue; r...
class class_name[name] begin[{] method[toCharacter, return_type[type[Character]], modifier[public static], parameter[o, defaultValue]] begin[{] if[binary_operation[member[.o], instanceof, type[Character]]] begin[{] return[Cast(expression=MemberReference(member=o, postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] identifier[Character] identifier[toCharacter] operator[SEP] identifier[Object] identifier[o] , identifier[Character] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[o] Keyword[instanceof] identifier[Character] operator[SEP] Keyword[return] operator[S...
public static String putFileType(String fileStreamHexHead, String extName) { return fileTypeMap.put(fileStreamHexHead.toLowerCase(), extName); }
class class_name[name] begin[{] method[putFileType, return_type[type[String]], modifier[public static], parameter[fileStreamHexHead, extName]] begin[{] return[call[fileTypeMap.put, parameter[call[fileStreamHexHead.toLowerCase, parameter[]], member[.extName]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[putFileType] operator[SEP] identifier[String] identifier[fileStreamHexHead] , identifier[String] identifier[extName] operator[SEP] { Keyword[return] identifier[fileTypeMap] operator[SEP] identifier[put] operator[SEP] identifier[fileStreamHexHead] ope...
public static boolean isBeanValidationAvailable() { if (beanValidationAvailable == null) { try { try { beanValidationAvailable = (Class.forName("javax.validation.Validation") != null); } catch...
class class_name[name] begin[{] method[isBeanValidationAvailable, return_type[type[boolean]], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.beanValidationAvailable], ==, literal[null]]] begin[{] TryStatement(block=[TryStatement(block=[StatementExpression...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isBeanValidationAvailable] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[beanValidationAvailable] operator[==] Other[null] operator[SEP] { Keyword[try] { Keyword[try] { identifier[beanVal...
public boolean getBit(int index) throws IndexOutOfBoundsException { index = translateIndex(index); logger.debug("Get bit #{}", index); return ((data[byteIndex(index)] & (0x01 << bitIndex(index))) != 0 ); }
class class_name[name] begin[{] method[getBit, return_type[type[boolean]], modifier[public], parameter[index]] begin[{] assign[member[.index], call[.translateIndex, parameter[member[.index]]]] call[logger.debug, parameter[literal["Get bit #{}"], member[.index]]] return[b...
Keyword[public] Keyword[boolean] identifier[getBit] operator[SEP] Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[IndexOutOfBoundsException] { identifier[index] operator[=] identifier[translateIndex] operator[SEP] identifier[index] operator[SEP] operator[SEP] identifier[logger] operator[S...
public static Weekmodel of(Locale locale) { if (locale.equals(Locale.ROOT)) { return Weekmodel.ISO; } Weekmodel model = CACHE.get(locale); if (model != null) { return model; } WeekdataProvider p = LOCALIZED_WEEKDATA; model = ...
class class_name[name] begin[{] method[of, return_type[type[Weekmodel]], modifier[public static], parameter[locale]] begin[{] if[call[locale.equals, parameter[member[Locale.ROOT]]]] begin[{] return[member[Weekmodel.ISO]] else begin[{] None end[}] local_variab...
Keyword[public] Keyword[static] identifier[Weekmodel] identifier[of] operator[SEP] identifier[Locale] identifier[locale] operator[SEP] { Keyword[if] operator[SEP] identifier[locale] operator[SEP] identifier[equals] operator[SEP] identifier[Locale] operator[SEP] identifier[ROOT] operator[SEP] operator[SEP] { ...
public static URLConnection prepareURLConnection(String url, int timeout) throws IOException { URLConnection connection = new URL(url).openConnection(); connection.setReadTimeout(timeout); connection.setConnectTimeout(timeout); return connection; }
class class_name[name] begin[{] method[prepareURLConnection, return_type[type[URLConnection]], modifier[public static], parameter[url, timeout]] begin[{] local_variable[type[URLConnection], connection] call[connection.setReadTimeout, parameter[member[.timeout]]] call[con...
Keyword[public] Keyword[static] identifier[URLConnection] identifier[prepareURLConnection] operator[SEP] identifier[String] identifier[url] , Keyword[int] identifier[timeout] operator[SEP] Keyword[throws] identifier[IOException] { identifier[URLConnection] identifier[connection] operator[=] Keyword[new] identif...
public Observable<ReplicationInner> beginCreateAsync(String resourceGroupName, String registryName, String replicationName, ReplicationInner replication) { return beginCreateWithServiceResponseAsync(resourceGroupName, registryName, replicationName, replication).map(new Func1<ServiceResponse<ReplicationInner>, R...
class class_name[name] begin[{] method[beginCreateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, replicationName, replication]] begin[{] return[call[.beginCreateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], mem...
Keyword[public] identifier[Observable] operator[<] identifier[ReplicationInner] operator[>] identifier[beginCreateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[replicationName] , identifier[ReplicationInner] identif...
@Override protected Graph doConvert(final VisualizationWrappedRootDoc toConvert) { final Graph toReturn = new Graph(); // Create subgraphs for each package and add them to the returned Graph. toConvert.sortClassesPerPackage().forEach((packageDoc, classDocs) -> toReturn.add(...
class class_name[name] begin[{] method[doConvert, return_type[type[Graph]], modifier[protected], parameter[toConvert]] begin[{] local_variable[type[Graph], toReturn] call[toConvert.sortClassesPerPackage, parameter[]] return[member[.toReturn]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[Graph] identifier[doConvert] operator[SEP] Keyword[final] identifier[VisualizationWrappedRootDoc] identifier[toConvert] operator[SEP] { Keyword[final] identifier[Graph] identifier[toReturn] operator[=] Keyword[new] identifier[Graph] operator[SEP] o...
public static boolean fEq( float a, float b, float epsilon ) { if (isNaN(a) && isNaN(b)) { return true; } float diffAbs = abs(a - b); return a == b ? true : diffAbs < epsilon ? true : diffAbs / Math.max(abs(a), abs(b)) < epsilon; }
class class_name[name] begin[{] method[fEq, return_type[type[boolean]], modifier[public static], parameter[a, b, epsilon]] begin[{] if[binary_operation[call[.isNaN, parameter[member[.a]]], &&, call[.isNaN, parameter[member[.b]]]]] begin[{] return[literal[true]] else begin[{]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[fEq] operator[SEP] Keyword[float] identifier[a] , Keyword[float] identifier[b] , Keyword[float] identifier[epsilon] operator[SEP] { Keyword[if] operator[SEP] identifier[isNaN] operator[SEP] identifier[a] operator[SEP] operator[&&] identifier[isNaN] op...
public void exportView( Node node, OutputStream os, boolean skipBinary, boolean noRecurse ) throws IOException, RepositoryException { try { exportView(node, new StreamingContentHandler(os, UNEXPORTABLE_NAMESPACES), s...
class class_name[name] begin[{] method[exportView, return_type[void], modifier[public], parameter[node, os, skipBinary, noRecurse]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[public] Keyword[void] identifier[exportView] operator[SEP] identifier[Node] identifier[node] , identifier[OutputStream] identifier[os] , Keyword[boolean] identifier[skipBinary] , Keyword[boolean] identifier[noRecurse] operator[SEP] Keyword[throws] identifier[IOException] , identifier[RepositoryException] {...
@Trivial public void unsetSslSupport(ServiceReference<ChannelFactoryProvider> ref) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.entry(this, tc, "unsetSslSupport", new Object[] { ref.getProperty("type"), ref }); } // see if its for the same service ref, ...
class class_name[name] begin[{] method[unsetSslSupport, return_type[void], modifier[public], parameter[ref]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[T...
annotation[@] identifier[Trivial] Keyword[public] Keyword[void] identifier[unsetSslSupport] operator[SEP] identifier[ServiceReference] operator[<] identifier[ChannelFactoryProvider] operator[>] identifier[ref] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTrac...
private static List<UberData> extractLinks(Links links) { return urlRelMap(links).entrySet().stream() // .map(entry -> new UberData() // .withUrl(entry.getKey()) // .withRel(entry.getValue().getRels())) // .collect(Collectors.toList()); }
class class_name[name] begin[{] method[extractLinks, return_type[type[List]], modifier[private static], parameter[links]] begin[{] return[call[.urlRelMap, parameter[member[.links]]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[UberData] operator[>] identifier[extractLinks] operator[SEP] identifier[Links] identifier[links] operator[SEP] { Keyword[return] identifier[urlRelMap] operator[SEP] identifier[links] operator[SEP] operator[SEP] identifier[entrySet] operator...
private void updateStateAndNotifyListener(UploadState uploadState) throws IOException { this.uploadState = uploadState; if (progressListener != null) { progressListener.progressChanged(this); } }
class class_name[name] begin[{] method[updateStateAndNotifyListener, return_type[void], modifier[private], parameter[uploadState]] begin[{] assign[THIS[member[None.uploadState]], member[.uploadState]] if[binary_operation[member[.progressListener], !=, literal[null]]] begin[{] ...
Keyword[private] Keyword[void] identifier[updateStateAndNotifyListener] operator[SEP] identifier[UploadState] identifier[uploadState] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[this] operator[SEP] identifier[uploadState] operator[=] identifier[uploadState] operator[SEP] Keyword[if] operator[...
public void readObject (ObjectInputStream in) throws IOException, ClassNotFoundException { int ecount = in.readInt(); ensureCapacity(ecount); for (int ii = 0; ii < ecount; ii++) { int key = in.readInt(); put(key, in.readInt()); } }
class class_name[name] begin[{] method[readObject, return_type[void], modifier[public], parameter[in]] begin[{] local_variable[type[int], ecount] call[.ensureCapacity, parameter[member[.ecount]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(a...
Keyword[public] Keyword[void] identifier[readObject] operator[SEP] identifier[ObjectInputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { Keyword[int] identifier[ecount] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] ...
private static String getFileName(@Nullable final MapPrinter mapPrinter, final PJsonObject spec) { String fileName = spec.optString(Constants.OUTPUT_FILENAME_KEY); if (fileName != null) { return fileName; } if (mapPrinter != null) { final Configuration config = m...
class class_name[name] begin[{] method[getFileName, return_type[type[String]], modifier[private static], parameter[mapPrinter, spec]] begin[{] local_variable[type[String], fileName] if[binary_operation[member[.fileName], !=, literal[null]]] begin[{] return[member[.fileName]]...
Keyword[private] Keyword[static] identifier[String] identifier[getFileName] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[MapPrinter] identifier[mapPrinter] , Keyword[final] identifier[PJsonObject] identifier[spec] operator[SEP] { identifier[String] identifier[fileName] operator[=] ...
public static Logger getLog(Class<?> clazz) { synchronized (LOGS) { if (SLF4J_ENABLED) return LoggerFactory.getLogger(clazz); return LOGS.computeIfAbsent(clazz.getName(), (n) -> new SimpleLogger(clazz.getSimpleName())); } }
class class_name[name] begin[{] method[getLog, return_type[type[Logger]], modifier[public static], parameter[clazz]] begin[{] SYNCHRONIZED[member[.LOGS]] BEGIN[{] if[member[.SLF4J_ENABLED]] begin[{] return[call[LoggerFactory.getLogger, parameter[member[.clazz]]]] ...
Keyword[public] Keyword[static] identifier[Logger] identifier[getLog] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[LOGS] operator[SEP] { Keyword[if] operator[SEP] identifier[SLF4J_ENABLED] operator[...
void handleAgentLogoffEvent(AgentLogoffEvent event) { AsteriskAgentImpl agent = getAgentByAgentId("Agent/" + event.getAgent()); if (agent == null) { logger.error("Ignored AgentLogoffEvent for unknown agent " + event.getAgent() + ". Agents: " ...
class class_name[name] begin[{] method[handleAgentLogoffEvent, return_type[void], modifier[default], parameter[event]] begin[{] local_variable[type[AsteriskAgentImpl], agent] if[binary_operation[member[.agent], ==, literal[null]]] begin[{] call[logger.error, para...
Keyword[void] identifier[handleAgentLogoffEvent] operator[SEP] identifier[AgentLogoffEvent] identifier[event] operator[SEP] { identifier[AsteriskAgentImpl] identifier[agent] operator[=] identifier[getAgentByAgentId] operator[SEP] literal[String] operator[+] identifier[event] operator[SEP] identifier[getAgent] op...
public ResourceFactory createChild() { ResourceFactory child = new ResourceFactory(this); this.chidren.add(new WeakReference<>(child)); return child; }
class class_name[name] begin[{] method[createChild, return_type[type[ResourceFactory]], modifier[public], parameter[]] begin[{] local_variable[type[ResourceFactory], child] THIS[member[None.chidren]call[None.add, parameter[ClassCreator(arguments=[MemberReference(member=child, postfix_op...
Keyword[public] identifier[ResourceFactory] identifier[createChild] operator[SEP] operator[SEP] { identifier[ResourceFactory] identifier[child] operator[=] Keyword[new] identifier[ResourceFactory] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[chidren] operator[SEP...
public static <T> T fromList( List<?> argList, Class<T> clazz ) { return mapper.fromList(argList, clazz); }
class class_name[name] begin[{] method[fromList, return_type[type[T]], modifier[public static], parameter[argList, clazz]] begin[{] return[call[mapper.fromList, parameter[member[.argList], member[.clazz]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[fromList] operator[SEP] identifier[List] operator[<] operator[?] operator[>] identifier[argList] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] { Keyword[return] identifier[m...
@Override public EClass getIfcPipeFittingType() { if (ifcPipeFittingTypeEClass == null) { ifcPipeFittingTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(420); } return ifcPipeFittingTypeEClass; }
class class_name[name] begin[{] method[getIfcPipeFittingType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcPipeFittingTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcPipeFittingTypeEClass], Cast(expression=...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcPipeFittingType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcPipeFittingTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcPipeFittingTypeEClass] operator[=] operator[SEP] i...
public void validateFileDoesNotExist(UIInput<String> directory, UIInput<String> fileName, UIValidationContext validator) { String resourcePath = CamelXmlHelper.createFileName(directory, fileName); if (files.contains(resourcePath)) { validator.addValidationError(fileName, "A file with that na...
class class_name[name] begin[{] method[validateFileDoesNotExist, return_type[void], modifier[public], parameter[directory, fileName, validator]] begin[{] local_variable[type[String], resourcePath] if[call[files.contains, parameter[member[.resourcePath]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[validateFileDoesNotExist] operator[SEP] identifier[UIInput] operator[<] identifier[String] operator[>] identifier[directory] , identifier[UIInput] operator[<] identifier[String] operator[>] identifier[fileName] , identifier[UIValidationContext] identifier[validator] operator[S...
public void setImage(BufferedImage img) { this.img = img; Dimension dim; if (img != null) { dim = new Dimension(img.getWidth(), img.getHeight()); } else { dim = new Dimension(DEFAULT_WIDTH, DEFAULT_HEIGHT); } setSize(dim); setPreferredSize...
class class_name[name] begin[{] method[setImage, return_type[void], modifier[public], parameter[img]] begin[{] assign[THIS[member[None.img]], member[.img]] local_variable[type[Dimension], dim] if[binary_operation[member[.img], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setImage] operator[SEP] identifier[BufferedImage] identifier[img] operator[SEP] { Keyword[this] operator[SEP] identifier[img] operator[=] identifier[img] operator[SEP] identifier[Dimension] identifier[dim] operator[SEP] Keyword[if] operator[SEP] identifier[img] operator[!...
public void getAll(BoundingBox bounds, Handler<GpsTrackpoint> handler, int page) { if(page < 0) throw new IllegalArgumentException("Page number must be greater than or equal to 0"); String query = "trackpoints?bbox="+bounds.getAsLeftBottomRightTopString() + "&page=" + page; try { osm.makeReque...
class class_name[name] begin[{] method[getAll, return_type[void], modifier[public], parameter[bounds, handler, page]] begin[{] if[binary_operation[member[.page], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] Keyword[void] identifier[getAll] operator[SEP] identifier[BoundingBox] identifier[bounds] , identifier[Handler] operator[<] identifier[GpsTrackpoint] operator[>] identifier[handler] , Keyword[int] identifier[page] operator[SEP] { Keyword[if] operator[SEP] identifier[page] operator[<] Other[0] o...
public Observable<NetworkInterfaceIPConfigurationInner> getAsync(String resourceGroupName, String networkInterfaceName, String ipConfigurationName) { return getWithServiceResponseAsync(resourceGroupName, networkInterfaceName, ipConfigurationName).map(new Func1<ServiceResponse<NetworkInterfaceIPConfigurationInne...
class class_name[name] begin[{] method[getAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, networkInterfaceName, ipConfigurationName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.networkInterfaceName], member[.ipCo...
Keyword[public] identifier[Observable] operator[<] identifier[NetworkInterfaceIPConfigurationInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkInterfaceName] , identifier[String] identifier[ipConfigurationName] operator[SEP] ...
public VoiceFileStatusResult get(String fid) throws HTTPException, JSONException, IOException { long random = SmsSenderUtil.getRandom(); long now = SmsSenderUtil.getCurrentTime(); JSONObject body = new JSONObject() .put("fid", fid) .put("sig", SmsSenderUtil.c...
class class_name[name] begin[{] method[get, return_type[type[VoiceFileStatusResult]], modifier[public], parameter[fid]] begin[{] local_variable[type[long], random] local_variable[type[long], now] local_variable[type[JSONObject], body] local_variable[type[HTTPRequest], req] ...
Keyword[public] identifier[VoiceFileStatusResult] identifier[get] operator[SEP] identifier[String] identifier[fid] operator[SEP] Keyword[throws] identifier[HTTPException] , identifier[JSONException] , identifier[IOException] { Keyword[long] identifier[random] operator[=] identifier[SmsSenderUtil] operator[SEP]...
@Override public int read(char[] chr) throws IOException { try { beforeRead(chr != null ? chr.length : 0); int n = in.read(chr); afterRead(n); return n; } catch (IOException e) { handleIOException(e); return -1; } }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[chr]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=chr, postfix_operators=[], prefix_op...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[read] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[chr] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[beforeRead] operator[SEP] identifier[chr] operator[!=] Other[null] ...
public static <L1, L2, I> OneSEVPA<Pair<L1, L2>, I> impl(final OneSEVPA<L1, I> sevpa1, final OneSEVPA<L2, I> sevpa2, final VPDAlphabet<I> alphabet) { return combine(sevpa1, sevpa2, alphabet,...
class class_name[name] begin[{] method[impl, return_type[type[OneSEVPA]], modifier[public static], parameter[sevpa1, sevpa2, alphabet]] begin[{] return[call[.combine, parameter[member[.sevpa1], member[.sevpa2], member[.alphabet], member[AcceptanceCombiner.IMPL]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[L1] , identifier[L2] , identifier[I] operator[>] identifier[OneSEVPA] operator[<] identifier[Pair] operator[<] identifier[L1] , identifier[L2] operator[>] , identifier[I] operator[>] identifier[impl] operator[SEP] Keyword[final] identifier[OneSEVPA] operator[<]...
public ExtendedRegisterableItemsFactory build() { return new NoopExtendedRegisterableItemsFactory() { private RuntimeEngine _runtime; private List<EventListener> _listeners = new ArrayList<EventListener>(); private synchronized List<EventListener> listeners(RuntimeEngine run...
class class_name[name] begin[{] method[build, return_type[type[ExtendedRegisterableItemsFactory]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=_runtime)], documenta...
Keyword[public] identifier[ExtendedRegisterableItemsFactory] identifier[build] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[NoopExtendedRegisterableItemsFactory] operator[SEP] operator[SEP] { Keyword[private] identifier[RuntimeEngine] identifier[_runtime] operator[SEP] Keyword...
@Nullable public static String getCanonicalPathOrNull (@Nullable final Path aFile) { if (aFile != null) try { // Note: toRealPath may be a bottleneck on Unix based file // systems! return aFile.toRealPath ().toString (); } catch (final IOException ex) { ...
class class_name[name] begin[{] method[getCanonicalPathOrNull, return_type[type[String]], modifier[public static], parameter[aFile]] begin[{] if[binary_operation[member[.aFile], !=, literal[null]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=toR...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[String] identifier[getCanonicalPathOrNull] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Path] identifier[aFile] operator[SEP] { Keyword[if] operator[SEP] identifier[aFile] operator[!=] Other[null] operator...
protected void beforeInsertDummies(int index, int length) { if (index > size || index < 0) throw new IndexOutOfBoundsException("Index: "+index+", Size: "+size); if (length > 0) { ensureCapacity(size + length); setSizeRaw(size + length); replaceFromToWithFrom(index+length,size-1,this,index); } }
class class_name[name] begin[{] method[beforeInsertDummies, return_type[void], modifier[protected], parameter[index, length]] begin[{] if[binary_operation[binary_operation[member[.index], >, member[.size]], ||, binary_operation[member[.index], <, literal[0]]]] begin[{] ThrowStatement(expression...
Keyword[protected] Keyword[void] identifier[beforeInsertDummies] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[>] identifier[size] operator[||] identifier[index] operator[<] Other[0] operator[SEP] Keyword[throw...
public void ensureNumBuffersReturned(final int minRequiredAvailable) { if (minRequiredAvailable > this.availableMemory.size() + this.buildSpillRetBufferNumbers) { throw new IllegalArgumentException("More buffers requested available than totally available."); } try { while (this.availableMemory.size() < min...
class class_name[name] begin[{] method[ensureNumBuffersReturned, return_type[void], modifier[public], parameter[minRequiredAvailable]] begin[{] if[binary_operation[member[.minRequiredAvailable], >, binary_operation[THIS[member[None.availableMemory]call[None.size, parameter[]]], +, THIS[member[N...
Keyword[public] Keyword[void] identifier[ensureNumBuffersReturned] operator[SEP] Keyword[final] Keyword[int] identifier[minRequiredAvailable] operator[SEP] { Keyword[if] operator[SEP] identifier[minRequiredAvailable] operator[>] Keyword[this] operator[SEP] identifier[availableMemory] operator[SEP] identifier[siz...
private FPTree getLocalFPTree(FPTree.Node node, int[] localItemSupport, int[] prefixItemset) { FPTree tree = new FPTree(localItemSupport, minSupport); while (node != null) { Node parent = node.parent; int i = prefixItemset.length; while (parent != null) { ...
class class_name[name] begin[{] method[getLocalFPTree, return_type[type[FPTree]], modifier[private], parameter[node, localItemSupport, prefixItemset]] begin[{] local_variable[type[FPTree], tree] while[binary_operation[member[.node], !=, literal[null]]] begin[{] local_variabl...
Keyword[private] identifier[FPTree] identifier[getLocalFPTree] operator[SEP] identifier[FPTree] operator[SEP] identifier[Node] identifier[node] , Keyword[int] operator[SEP] operator[SEP] identifier[localItemSupport] , Keyword[int] operator[SEP] operator[SEP] identifier[prefixItemset] operator[SEP] { identifier...
public <R> AnimaQuery<T> order(TypeFunction<T, R> function, OrderBy orderBy) { String columnName = AnimaUtils.getLambdaColumnName(function); return order(columnName, orderBy); }
class class_name[name] begin[{] method[order, return_type[type[AnimaQuery]], modifier[public], parameter[function, orderBy]] begin[{] local_variable[type[String], columnName] return[call[.order, parameter[member[.columnName], member[.orderBy]]]] end[}] END[}]
Keyword[public] operator[<] identifier[R] operator[>] identifier[AnimaQuery] operator[<] identifier[T] operator[>] identifier[order] operator[SEP] identifier[TypeFunction] operator[<] identifier[T] , identifier[R] operator[>] identifier[function] , identifier[OrderBy] identifier[orderBy] operator[SEP] { identi...
public static int getVersionId(String version) throws IllegalStateException { int versionID = 0; if ("4.0".equals(version)) { versionID = 40; }else if ("3.1".equals(version)) { versionID = 31; } else if ("3.0".equals(version)) { versionID = 30; ...
class class_name[name] begin[{] method[getVersionId, return_type[type[int]], modifier[public static], parameter[version]] begin[{] local_variable[type[int], versionID] if[literal["4.0"]] begin[{] assign[member[.versionID], literal[40]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[int] identifier[getVersionId] operator[SEP] identifier[String] identifier[version] operator[SEP] Keyword[throws] identifier[IllegalStateException] { Keyword[int] identifier[versionID] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] literal[String] operator[SEP...
@Programmatic public EmailAddress findByEmailAddress( final CommunicationChannelOwner owner, final String emailAddress) { final List<CommunicationChannelOwnerLink> links = communicationChannelOwnerLinkRepository.findByOwnerAndCommunicationChannelType(owner, Communic...
class class_name[name] begin[{] method[findByEmailAddress, return_type[type[EmailAddress]], modifier[public], parameter[owner, emailAddress]] begin[{] local_variable[type[List], links] local_variable[type[Iterable], emailAddresses] local_variable[type[Optional], emailAddressIfFound] ...
annotation[@] identifier[Programmatic] Keyword[public] identifier[EmailAddress] identifier[findByEmailAddress] operator[SEP] Keyword[final] identifier[CommunicationChannelOwner] identifier[owner] , Keyword[final] identifier[String] identifier[emailAddress] operator[SEP] { Keyword[final] identifier[List] operato...
protected int setInParameter(final PreparedStatement preparedStatement, final int index, final BindParameterMapperManager parameterMapperManager) throws SQLException { int parameterIndex = index; if (value instanceof List) { for (Object e : (List<?>) value) { setParameterObject(preparedStatement, paramete...
class class_name[name] begin[{] method[setInParameter, return_type[type[int]], modifier[protected], parameter[preparedStatement, index, parameterMapperManager]] begin[{] local_variable[type[int], parameterIndex] if[binary_operation[member[.value], instanceof, type[List]]] begin[{] ...
Keyword[protected] Keyword[int] identifier[setInParameter] operator[SEP] Keyword[final] identifier[PreparedStatement] identifier[preparedStatement] , Keyword[final] Keyword[int] identifier[index] , Keyword[final] identifier[BindParameterMapperManager] identifier[parameterMapperManager] operator[SEP] Keyword[throws] i...
public void writeInt(int v) throws IOException { _os.write(v >> 24); _os.write(v >> 16); _os.write(v >> 8); _os.write(v); }
class class_name[name] begin[{] method[writeInt, return_type[void], modifier[public], parameter[v]] begin[{] call[_os.write, parameter[binary_operation[member[.v], >>, literal[24]]]] call[_os.write, parameter[binary_operation[member[.v], >>, literal[16]]]] call[_...
Keyword[public] Keyword[void] identifier[writeInt] operator[SEP] Keyword[int] identifier[v] operator[SEP] Keyword[throws] identifier[IOException] { identifier[_os] operator[SEP] identifier[write] operator[SEP] identifier[v] operator[>] operator[>] Other[24] operator[SEP] operator[SEP] identifier[_os] operator[SE...
public boolean isIndexed(FeatureIndexType type) { boolean indexed = false; if (type == null) { indexed = isIndexed(); } else { switch (type) { case GEOPACKAGE: indexed = featureTableIndex.isIndexed(); break; case RTREE: indexed = rTreeIndexTableDao.has(); break; default: throw n...
class class_name[name] begin[{] method[isIndexed, return_type[type[boolean]], modifier[public], parameter[type]] begin[{] local_variable[type[boolean], indexed] if[binary_operation[member[.type], ==, literal[null]]] begin[{] assign[member[.indexed], call[.isIndex...
Keyword[public] Keyword[boolean] identifier[isIndexed] operator[SEP] identifier[FeatureIndexType] identifier[type] operator[SEP] { Keyword[boolean] identifier[indexed] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { identif...
@Override public void endElement(String uri, String local, String raw) { logger.debug("end element: ", raw); if ("isotope".equals(local)) { if (workingIsotope != null) isotopes.add(workingIsotope); workingIsotope = null; } else if ("isotopeList".equals(local)) { ...
class class_name[name] begin[{] method[endElement, return_type[void], modifier[public], parameter[uri, local, raw]] begin[{] call[logger.debug, parameter[literal["end element: "], member[.raw]]] if[literal["isotope"]] begin[{] if[binary_operation[member[....
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[endElement] operator[SEP] identifier[String] identifier[uri] , identifier[String] identifier[local] , identifier[String] identifier[raw] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] ,...
public String getNewSigName() { AcroFields af = writer.getAcroFields(); String name = "Signature"; int step = 0; boolean found = false; while (!found) { ++step; String n1 = name + step; if (af.getFieldItem(n1) != null) { continu...
class class_name[name] begin[{] method[getNewSigName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[AcroFields], af] local_variable[type[String], name] local_variable[type[int], step] local_variable[type[boolean], found] w...
Keyword[public] identifier[String] identifier[getNewSigName] operator[SEP] operator[SEP] { identifier[AcroFields] identifier[af] operator[=] identifier[writer] operator[SEP] identifier[getAcroFields] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[name] operator[=] literal[String] operato...
public void setRPuBase(Integer newRPuBase) { Integer oldRPuBase = rPuBase; rPuBase = newRPuBase; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FONT_RESOLUTION__RPU_BASE, oldRPuBase, rPuBase)); }
class class_name[name] begin[{] method[setRPuBase, return_type[void], modifier[public], parameter[newRPuBase]] begin[{] local_variable[type[Integer], oldRPuBase] assign[member[.rPuBase], member[.newRPuBase]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setRPuBase] operator[SEP] identifier[Integer] identifier[newRPuBase] operator[SEP] { identifier[Integer] identifier[oldRPuBase] operator[=] identifier[rPuBase] operator[SEP] identifier[rPuBase] operator[=] identifier[newRPuBase] operator[SEP] Keyword[if] operator[SEP] ide...
public Node previousSibling() { if (parentNode == null) return null; // root if (siblingIndex > 0) return parentNode.ensureChildNodes().get(siblingIndex-1); else return null; }
class class_name[name] begin[{] method[previousSibling, return_type[type[Node]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.parentNode], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[memb...
Keyword[public] identifier[Node] identifier[previousSibling] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[parentNode] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[siblingIndex] operator[>] Other[0] operator[SEP] Keywor...
static public int indexOf(String[] strings, String targetString) { if (strings == null) return -1; for (int i = 0; i < strings.length; i++) { if (strings[i] == null) { if (targetString == null) { return i; } } else {...
class class_name[name] begin[{] method[indexOf, return_type[type[int]], modifier[public static], parameter[strings, targetString]] begin[{] if[binary_operation[member[.strings], ==, literal[null]]] begin[{] return[literal[1]] else begin[{] None end[}] ForStatement(body=B...
Keyword[static] Keyword[public] Keyword[int] identifier[indexOf] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[strings] , identifier[String] identifier[targetString] operator[SEP] { Keyword[if] operator[SEP] identifier[strings] operator[==] Other[null] operator[SEP] Keyword[return] ope...
public static IUnitizingAnnotationUnit findNextUnit( final Iterator<IUnitizingAnnotationUnit> units, final Object category) { return findNextUnit(units, -1, category); }
class class_name[name] begin[{] method[findNextUnit, return_type[type[IUnitizingAnnotationUnit]], modifier[public static], parameter[units, category]] begin[{] return[call[.findNextUnit, parameter[member[.units], literal[1], member[.category]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[IUnitizingAnnotationUnit] identifier[findNextUnit] operator[SEP] Keyword[final] identifier[Iterator] operator[<] identifier[IUnitizingAnnotationUnit] operator[>] identifier[units] , Keyword[final] identifier[Object] identifier[category] operator[SEP] { Keyword[return] ...
public double min(double... values) { double min = Double.MAX_VALUE; for (int i = 0; i < values.length; i++) { if (i == 0 || values[i] < min) { min = values[i]; } } return min; }
class class_name[name] begin[{] method[min, return_type[type[double]], modifier[public], parameter[values]] begin[{] local_variable[type[double], min] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference...
Keyword[public] Keyword[double] identifier[min] operator[SEP] Keyword[double] operator[...] identifier[values] operator[SEP] { Keyword[double] identifier[min] operator[=] identifier[Double] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0...
public JobDescription into(final ImageView imageView) { if (data.placeholder != Dali.NO_RESID) { imageView.setImageResource(data.placeholder); } return start(new BlurWorker.BlurWorkerListener() { @Override public void onResult(final BlurWorker.Result result) ...
class class_name[name] begin[{] method[into, return_type[type[JobDescription]], modifier[public], parameter[imageView]] begin[{] if[binary_operation[member[data.placeholder], !=, member[Dali.NO_RESID]]] begin[{] call[imageView.setImageResource, parameter[member[data.plac...
Keyword[public] identifier[JobDescription] identifier[into] operator[SEP] Keyword[final] identifier[ImageView] identifier[imageView] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[SEP] identifier[placeholder] operator[!=] identifier[Dali] operator[SEP] identifier[NO_RESID] operator[SEP] { ...
public CreateServerRequest withEngineAttributes(EngineAttribute... engineAttributes) { if (this.engineAttributes == null) { setEngineAttributes(new java.util.ArrayList<EngineAttribute>(engineAttributes.length)); } for (EngineAttribute ele : engineAttributes) { this.engine...
class class_name[name] begin[{] method[withEngineAttributes, return_type[type[CreateServerRequest]], modifier[public], parameter[engineAttributes]] begin[{] if[binary_operation[THIS[member[None.engineAttributes]], ==, literal[null]]] begin[{] call[.setEngineAttributes, p...
Keyword[public] identifier[CreateServerRequest] identifier[withEngineAttributes] operator[SEP] identifier[EngineAttribute] operator[...] identifier[engineAttributes] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[engineAttributes] operator[==] Other[null] operator[SEP] { ...
public String mac(String message) { return Util.toHexString(mac(message.getBytes(StandardCharsets.UTF_8))); }
class class_name[name] begin[{] method[mac, return_type[type[String]], modifier[public], parameter[message]] begin[{] return[call[Util.toHexString, parameter[call[.mac, parameter[call[message.getBytes, parameter[member[StandardCharsets.UTF_8]]]]]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[mac] operator[SEP] identifier[String] identifier[message] operator[SEP] { Keyword[return] identifier[Util] operator[SEP] identifier[toHexString] operator[SEP] identifier[mac] operator[SEP] identifier[message] operator[SEP] identifier[getBytes] operator[SEP] identifie...
@NonNull public static SourceParams createThreeDSecureParams( @IntRange(from = 0) long amount, @NonNull String currency, @NonNull String returnUrl, @NonNull String cardID) { return new SourceParams() .setType(Source.THREE_D_SECURE) ...
class class_name[name] begin[{] method[createThreeDSecureParams, return_type[type[SourceParams]], modifier[public static], parameter[amount, currency, returnUrl, cardID]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qu...
annotation[@] identifier[NonNull] Keyword[public] Keyword[static] identifier[SourceParams] identifier[createThreeDSecureParams] operator[SEP] annotation[@] identifier[IntRange] operator[SEP] identifier[from] operator[=] Other[0] operator[SEP] Keyword[long] identifier[amount] , annotation[@] identifier[NonNull] identif...
private static Map<String, String> createMapFromListVote(final List<VoteDataEmbeddedId> list) { final Map<String, String> map = new ConcurrentHashMap<>(); for (final VoteDataEmbeddedId documentElement : list) { map.put(documentElement.getBallotId(), documentElement.getBallotId()); } return map; }
class class_name[name] begin[{] method[createMapFromListVote, return_type[type[Map]], modifier[private static], parameter[list]] begin[{] local_variable[type[Map], map] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvo...
Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[createMapFromListVote] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[VoteDataEmbeddedId] operator[>] identifier[list] operator[SEP] { Keyword[final] identifier[Map] ...
public static boolean hasEntry(Object list) { if (list == null) return false; if (list instanceof List) return !((List<?>) list).isEmpty(); return true; }
class class_name[name] begin[{] method[hasEntry, return_type[type[boolean]], modifier[public static], parameter[list]] begin[{] if[binary_operation[member[.list], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[me...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasEntry] operator[SEP] identifier[Object] identifier[list] operator[SEP] { Keyword[if] operator[SEP] identifier[list] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[list] Keywo...
public List<List<Object>> queryResults(String sql, String[] args) { return db.queryResults(sql, args); }
class class_name[name] begin[{] method[queryResults, return_type[type[List]], modifier[public], parameter[sql, args]] begin[{] return[call[db.queryResults, parameter[member[.sql], member[.args]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[Object] operator[>] operator[>] identifier[queryResults] operator[SEP] identifier[String] identifier[sql] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { Keyword[return] identifier[db] operator...
private AFTPClient actionOpen() throws IOException, PageException { required("server", server); required("username", username); // required("password", password); AFTPClient client = getClient(); writeCfftp(client); return client; }
class class_name[name] begin[{] method[actionOpen, return_type[type[AFTPClient]], modifier[private], parameter[]] begin[{] call[.required, parameter[literal["server"], member[.server]]] call[.required, parameter[literal["username"], member[.username]]] local_variable[typ...
Keyword[private] identifier[AFTPClient] identifier[actionOpen] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[PageException] { identifier[required] operator[SEP] literal[String] , identifier[server] operator[SEP] operator[SEP] identifier[required] operator[SEP] literal[String]...