code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public Expression<java.sql.Date> lte(java.sql.Date value) { SimpleDateFormat formatter = getDateFormatter(); String valueString = "'" + formatter.format(value) + "'"; return new Expression<java.sql.Date>(this, Operation.lte, valueString); }
class class_name[name] begin[{] method[lte, return_type[type[Expression]], modifier[public], parameter[value]] begin[{] local_variable[type[SimpleDateFormat], formatter] local_variable[type[String], valueString] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=...
Keyword[public] identifier[Expression] operator[<] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[Date] operator[>] identifier[lte] operator[SEP] identifier[java] operator[SEP] identifier[sql] operator[SEP] identifier[Date] identifier[value] operator[SEP] { identifier[SimpleDateFormat] i...
public com.squareup.okhttp.Call getCorporationsCorporationIdOrdersAsync(Integer corporationId, String datasource, String ifNoneMatch, Integer page, String token, final ApiCallback<List<CorporationOrdersResponse>> callback) throws ApiException { com.squareup.okhttp.Call call = getCorpora...
class class_name[name] begin[{] method[getCorporationsCorporationIdOrdersAsync, return_type[type[com]], modifier[public], parameter[corporationId, datasource, ifNoneMatch, page, token, callback]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] ...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getCorporationsCorporationIdOrdersAsync] operator[SEP] identifier[Integer] identifier[corporationId] , identifier[String] identifier[datasource] , identifier[String] identifier...
public final ListTablesPagedResponse listTables(InstanceName parent) { ListTablesRequest request = ListTablesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); return listTables(request); }
class class_name[name] begin[{] method[listTables, return_type[type[ListTablesPagedResponse]], modifier[final public], parameter[parent]] begin[{] local_variable[type[ListTablesRequest], request] return[call[.listTables, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[ListTablesPagedResponse] identifier[listTables] operator[SEP] identifier[InstanceName] identifier[parent] operator[SEP] { identifier[ListTablesRequest] identifier[request] operator[=] identifier[ListTablesRequest] operator[SEP] identifier[newBuilder] operator[SEP] operat...
public static <A extends Annotation> A getAnnotation(final Method method, final Class<A> annotationCls, final boolean searchSupers, final boolean ignoreAccess) { Validate.isTrue(method != null, "The method must not be null"); Validate.isTrue(anno...
class class_name[name] begin[{] method[getAnnotation, return_type[type[A]], modifier[public static], parameter[method, annotationCls, searchSupers, ignoreAccess]] begin[{] call[Validate.isTrue, parameter[binary_operation[member[.method], !=, literal[null]], literal["The method must not be null"...
Keyword[public] Keyword[static] operator[<] identifier[A] Keyword[extends] identifier[Annotation] operator[>] identifier[A] identifier[getAnnotation] operator[SEP] Keyword[final] identifier[Method] identifier[method] , Keyword[final] identifier[Class] operator[<] identifier[A] operator[>] identifier[annotationCls] , ...
public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { EObject current = null; EObject iv_ruleXTryCatchFinallyExpression = null; try { // InternalPureXbase.g:201:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) ...
class class_name[name] begin[{] method[entryRuleXTryCatchFinallyExpression, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleXTryCatchFinallyExpression] TryStatement(block=[BlockStatemen...
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleXTryCatchFinallyExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleXTryCatchFinallyExp...
@Override public Set<String> getPossibleUserAttributeNames() { final Set<String> names = new HashSet<String>(); names.addAll(this.possibleUserAttributes); names.addAll(localAccountDao.getCurrentAttributeNames()); names.add(displayNameAttribute); return names; }
class class_name[name] begin[{] method[getPossibleUserAttributeNames, return_type[type[Set]], modifier[public], parameter[]] begin[{] local_variable[type[Set], names] call[names.addAll, parameter[THIS[member[None.possibleUserAttributes]]]] call[names.addAll, parameter[ca...
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getPossibleUserAttributeNames] operator[SEP] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[names] operator[=] Keyword[new] identifier[Has...
public List<FunctionColumn> getFunctionColumns(final String catalog, final String schemaPattern, final String functionNamePattern, final String columnNamePattern) throws SQLException { final List<FunctionColumn> list = new ArrayList<>(); try...
class class_name[name] begin[{] method[getFunctionColumns, return_type[type[List]], modifier[public], parameter[catalog, schemaPattern, functionNamePattern, columnNamePattern]] begin[{] local_variable[type[List], list] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberRef...
Keyword[public] identifier[List] operator[<] identifier[FunctionColumn] operator[>] identifier[getFunctionColumns] operator[SEP] Keyword[final] identifier[String] identifier[catalog] , Keyword[final] identifier[String] identifier[schemaPattern] , Keyword[final] identifier[String] identifier[functionNamePattern] , Ke...
public String transform(CharSequence text, byte inParaLevel, Order inOrder, byte outParaLevel, Order outOrder, Mirroring doMirroring, int shapingOptions) { if (text == null || inOrder == null || outOrder == null || doMirroring == null) { throw new IllegalArgum...
class class_name[name] begin[{] method[transform, return_type[type[String]], modifier[public], parameter[text, inParaLevel, inOrder, outParaLevel, outOrder, doMirroring, shapingOptions]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.text], ==, literal[n...
Keyword[public] identifier[String] identifier[transform] operator[SEP] identifier[CharSequence] identifier[text] , Keyword[byte] identifier[inParaLevel] , identifier[Order] identifier[inOrder] , Keyword[byte] identifier[outParaLevel] , identifier[Order] identifier[outOrder] , identifier[Mirroring] identifier[doMir...
private List<Flow> createFromResults(Scan scan, boolean populateTasks, int maxCount) throws IOException { List<Flow> flows = new ArrayList<Flow>(); ResultScanner scanner = null; try { Stopwatch timer = new Stopwatch().start(); Stopwatch timerJob = new Stopwatch(); int rowCount = 0; ...
class class_name[name] begin[{] method[createFromResults, return_type[type[List]], modifier[private], parameter[scan, populateTasks, maxCount]] begin[{] local_variable[type[List], flows] local_variable[type[ResultScanner], scanner] TryStatement(block=[LocalVariableDeclaration(annotation...
Keyword[private] identifier[List] operator[<] identifier[Flow] operator[>] identifier[createFromResults] operator[SEP] identifier[Scan] identifier[scan] , Keyword[boolean] identifier[populateTasks] , Keyword[int] identifier[maxCount] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] oper...
static int decodeLiteral(byte tag, ByteBuf in, ByteBuf out) { in.markReaderIndex(); int length; switch(tag >> 2 & 0x3F) { case 60: if (!in.isReadable()) { return NOT_ENOUGH_INPUT; } length = in.readUnsignedByte(); break; ...
class class_name[name] begin[{] method[decodeLiteral, return_type[type[int]], modifier[static], parameter[tag, in, out]] begin[{] call[in.markReaderIndex, parameter[]] local_variable[type[int], length] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[]...
Keyword[static] Keyword[int] identifier[decodeLiteral] operator[SEP] Keyword[byte] identifier[tag] , identifier[ByteBuf] identifier[in] , identifier[ByteBuf] identifier[out] operator[SEP] { identifier[in] operator[SEP] identifier[markReaderIndex] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifie...
void setResponse(HttpResponse response) { if (isResponseAborted) { // This means that we already tried to close the request, so abort the response immediately. if (!response.isComplete()) { response.abort(); } } else { this.response = respo...
class class_name[name] begin[{] method[setResponse, return_type[void], modifier[default], parameter[response]] begin[{] if[member[.isResponseAborted]] begin[{] if[call[response.isComplete, parameter[]]] begin[{] call[response.abort, parame...
Keyword[void] identifier[setResponse] operator[SEP] identifier[HttpResponse] identifier[response] operator[SEP] { Keyword[if] operator[SEP] identifier[isResponseAborted] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[response] operator[SEP] identifier[isComplete] operator[SEP] operat...
static CopticDate ofEpochDay(final long epochDay) { EPOCH_DAY.range().checkValidValue(epochDay, EPOCH_DAY); // validate outer bounds long copticED = epochDay + EPOCH_DAY_DIFFERENCE; int adjustment = 0; if (copticED < 0) { copticED = copticED + (1461L * (1_000_000L / 4)); ...
class class_name[name] begin[{] method[ofEpochDay, return_type[type[CopticDate]], modifier[static], parameter[epochDay]] begin[{] call[EPOCH_DAY.range, parameter[]] local_variable[type[long], copticED] local_variable[type[int], adjustment] if[binary_operation[mem...
Keyword[static] identifier[CopticDate] identifier[ofEpochDay] operator[SEP] Keyword[final] Keyword[long] identifier[epochDay] operator[SEP] { identifier[EPOCH_DAY] operator[SEP] identifier[range] operator[SEP] operator[SEP] operator[SEP] identifier[checkValidValue] operator[SEP] identifier[epochDay] , identifie...
public long foldLeft(long seed, LongBinaryOperator accumulator) { long[] box = new long[] { seed }; forEachOrdered(t -> box[0] = accumulator.applyAsLong(box[0], t)); return box[0]; }
class class_name[name] begin[{] method[foldLeft, return_type[type[long]], modifier[public], parameter[seed, accumulator]] begin[{] local_variable[type[long], box] call[.forEachOrdered, parameter[LambdaExpression(body=Assignment(expressionl=MemberReference(member=box, postfix_operators=[...
Keyword[public] Keyword[long] identifier[foldLeft] operator[SEP] Keyword[long] identifier[seed] , identifier[LongBinaryOperator] identifier[accumulator] operator[SEP] { Keyword[long] operator[SEP] operator[SEP] identifier[box] operator[=] Keyword[new] Keyword[long] operator[SEP] operator[SEP] { ident...
private boolean grow() { if (objects.length == MAXIMUM_CAPACITY) { // Cannot grow beyond the maximum capacity return false; } int newsize = objects.length + increment; if (newsize > MAXIMUM_CAPACITY) { newsize = MAXIMUM_CAPACITY; } Object[] temp = new Object[newsize]; Syste...
class class_name[name] begin[{] method[grow, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[binary_operation[member[objects.length], ==, member[.MAXIMUM_CAPACITY]]] begin[{] return[literal[false]] else begin[{] None end[}] local_varia...
Keyword[private] Keyword[boolean] identifier[grow] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[objects] operator[SEP] identifier[length] operator[==] identifier[MAXIMUM_CAPACITY] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[int] identifi...
private void parseSecondaryVowel() { if (!validViSyll) return; // get the current and next character in the syllable string char curChar, nextChar; if (iCurPos > strSyllable.length() - 1) { validViSyll = false; return; } curChar = strSyllable.charAt(iCurPos); if (iCurPos == strSyllable.length() ...
class class_name[name] begin[{] method[parseSecondaryVowel, return_type[void], modifier[private], parameter[]] begin[{] if[member[.validViSyll]] begin[{] return[None] else begin[{] None end[}] local_variable[type[char], curChar] if[binary_operation[member...
Keyword[private] Keyword[void] identifier[parseSecondaryVowel] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[validViSyll] operator[SEP] Keyword[return] operator[SEP] Keyword[char] identifier[curChar] , identifier[nextChar] operator[SEP] Keyword[if] operator[SEP] identifier[iCurP...
@InterfaceAudience.Public public List<String> getAllDatabaseNames() { String[] databaseFiles = directoryFile.list(new FilenameFilter() { @Override public boolean accept(File dir, String filename) { if (filename.endsWith(Manager.kDBExtension)) { re...
class class_name[name] begin[{] method[getAllDatabaseNames, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[String], databaseFiles] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(a...
annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Public] Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getAllDatabaseNames] operator[SEP] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[databaseFiles] operator[=] identifier[di...
public <T extends Element> Set<String> getIndexedKeys(final Class<T> elementClass, final boolean includeClassNames) { makeActive(); if (elementClass == null) throw ExceptionFactory.classForElementCannotBeNull(); final OSchema schema = getRawGraph().getMetadata().getImmutableSchemaSnapshot(); fin...
class class_name[name] begin[{] method[getIndexedKeys, return_type[type[Set]], modifier[public], parameter[elementClass, includeClassNames]] begin[{] call[.makeActive, parameter[]] if[binary_operation[member[.elementClass], ==, literal[null]]] begin[{] ThrowStatement(expression=...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Element] operator[>] identifier[Set] operator[<] identifier[String] operator[>] identifier[getIndexedKeys] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[elementClass] , Keyword[final] Keyword[boolean...
@Override @SuppressWarnings("unchecked") public RARArchiveImpl resourceAdapter(final String key, final ResourceAdapterConsumer consumer) { final ResourceAdapter<?> ra = new ResourceAdapter(key); consumer.accept(ra); resourceAdapter(ra); return this; }
class class_name[name] begin[{] method[resourceAdapter, return_type[type[RARArchiveImpl]], modifier[public], parameter[key, consumer]] begin[{] local_variable[type[ResourceAdapter], ra] call[consumer.accept, parameter[member[.ra]]] call[.resourceAdapter, parameter[member...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[RARArchiveImpl] identifier[resourceAdapter] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[ResourceAdapterConsumer] identifie...
public MailSessionType<WebAppType<T>> getOrCreateMailSession() { List<Node> nodeList = childNode.get("mail-session"); if (nodeList != null && nodeList.size() > 0) { return new MailSessionTypeImpl<WebAppType<T>>(this, "mail-session", childNode, nodeList.get(0)); } return create...
class class_name[name] begin[{] method[getOrCreateMailSession, return_type[type[MailSessionType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList....
Keyword[public] identifier[MailSessionType] operator[<] identifier[WebAppType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateMailSession] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNode] operat...
public BoundingBox increaseByScale(final float pBoundingboxPaddingRelativeScale) { if (pBoundingboxPaddingRelativeScale <= 0) throw new IllegalArgumentException("pBoundingboxPaddingRelativeScale must be positive"); final TileSystem tileSystem = org.osmdroid.views.MapView.getTileSystem(); ...
class class_name[name] begin[{] method[increaseByScale, return_type[type[BoundingBox]], modifier[public], parameter[pBoundingboxPaddingRelativeScale]] begin[{] if[binary_operation[member[.pBoundingboxPaddingRelativeScale], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(argumen...
Keyword[public] identifier[BoundingBox] identifier[increaseByScale] operator[SEP] Keyword[final] Keyword[float] identifier[pBoundingboxPaddingRelativeScale] operator[SEP] { Keyword[if] operator[SEP] identifier[pBoundingboxPaddingRelativeScale] operator[<=] Other[0] operator[SEP] Keyword[throw] Keyword[new] ident...
private void finalizeDiscriminator(AbstractBaseDTNode<I, D> blockRoot, Splitter<I, D> splitter) { assert blockRoot.isBlockRoot(); notifyPreFinalizeDiscriminator(blockRoot, splitter); Word<I> succDiscr = splitter.getDiscriminator().prepend(alphabet.getSymbol(splitter.symbolIdx)); if (!...
class class_name[name] begin[{] method[finalizeDiscriminator, return_type[void], modifier[private], parameter[blockRoot, splitter]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=isBlockRoot, postfix_operators=[], prefix_operators=[], qualifier=blockRoot, selectors=[], type_ar...
Keyword[private] Keyword[void] identifier[finalizeDiscriminator] operator[SEP] identifier[AbstractBaseDTNode] operator[<] identifier[I] , identifier[D] operator[>] identifier[blockRoot] , identifier[Splitter] operator[<] identifier[I] , identifier[D] operator[>] identifier[splitter] operator[SEP] { Keyword[as...
@SuppressWarnings("unchecked") public <T extends StatementDocument> T nullEdit(T currentDocument) throws IOException, MediaWikiApiErrorException { StatementUpdate statementUpdate = new StatementUpdate(currentDocument, Collections.<Statement>emptyList(), Collections.<Statement>emptyList()); statementUpdate.s...
class class_name[name] begin[{] method[nullEdit, return_type[type[T]], modifier[public], parameter[currentDocument]] begin[{] local_variable[type[StatementUpdate], statementUpdate] call[statementUpdate.setGuidGenerator, parameter[member[.guidGenerator]]] return[Cast(expression=T...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[StatementDocument] operator[>] identifier[T] identifier[nullEdit] operator[SEP] identifier[T] identifier[currentDocument] operator[SEP] Keyword[throws] identifier[...
public Map getNodeSettings(InetAddress addr) { IPRangeNode<Map> ipr = this.get(addr); if (ipr != null) { Map result = ipr.getData(); if (result != null) return result; } return EMPTY; }
class class_name[name] begin[{] method[getNodeSettings, return_type[type[Map]], modifier[public], parameter[addr]] begin[{] local_variable[type[IPRangeNode], ipr] if[binary_operation[member[.ipr], !=, literal[null]]] begin[{] local_variable[type[Map], result] ...
Keyword[public] identifier[Map] identifier[getNodeSettings] operator[SEP] identifier[InetAddress] identifier[addr] operator[SEP] { identifier[IPRangeNode] operator[<] identifier[Map] operator[>] identifier[ipr] operator[=] Keyword[this] operator[SEP] identifier[get] operator[SEP] identifier[addr] operator[SEP] o...
public void close() throws IOException { unlock(); _fileChannel = null; InputStream is = _is; _is = null; if (is != null) is.close(); }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] call[.unlock, parameter[]] assign[member[._fileChannel], literal[null]] local_variable[type[InputStream], is] assign[member[._is], literal[null]] ...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[unlock] operator[SEP] operator[SEP] operator[SEP] identifier[_fileChannel] operator[=] Other[null] operator[SEP] identifier[InputStream] identifier[is] operator[=] identifier[_is] oper...
public static SumChartCost create(ChartCost ... filters) { List<ChartCost> nonNullFilters = Lists.newArrayList(); for (ChartCost filter : filters) { if (filter != null) { nonNullFilters.add(filter); } } if (nonNullFilters.size() > 0) { return new SumChartCost(nonNullFilter...
class class_name[name] begin[{] method[create, return_type[type[SumChartCost]], modifier[public static], parameter[filters]] begin[{] local_variable[type[List], nonNullFilters] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReferenc...
Keyword[public] Keyword[static] identifier[SumChartCost] identifier[create] operator[SEP] identifier[ChartCost] operator[...] identifier[filters] operator[SEP] { identifier[List] operator[<] identifier[ChartCost] operator[>] identifier[nonNullFilters] operator[=] identifier[Lists] operator[SEP] identifier[newArr...
public static byte[] decodeToBytes(String encoded) { try { byte[] bytes = encoded.getBytes("UTF-8"); Base64Decoder in = new Base64Decoder(new ByteArrayInputStream(bytes)); ByteArrayOutputStream out = new ByteArrayOutputStream((int) (bytes.length * 0.67)); try { byte[] buf = new byt...
class class_name[name] begin[{] method[decodeToBytes, return_type[type[byte]], modifier[public static], parameter[encoded]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operat...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decodeToBytes] operator[SEP] identifier[String] identifier[encoded] operator[SEP] { Keyword[try] { Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] identifier[encoded] operator[SEP] identifier[g...
public void deleteDevicePipe(Database database, String deviceName, String pipeName) throws DevFailed { String[] array = new String[] { deviceName, pipeName }; DeviceData argIn = new DeviceData(); argIn.insert(array); database.command_inout("DbDeleteDevicePipe", argIn); }
class class_name[name] begin[{] method[deleteDevicePipe, return_type[void], modifier[public], parameter[database, deviceName, pipeName]] begin[{] local_variable[type[String], array] local_variable[type[DeviceData], argIn] call[argIn.insert, parameter[member[.array]]] ...
Keyword[public] Keyword[void] identifier[deleteDevicePipe] operator[SEP] identifier[Database] identifier[database] , identifier[String] identifier[deviceName] , identifier[String] identifier[pipeName] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[String] operator[SEP] operator[SEP] identifie...
protected double computeAverageCharWidth( FontMetrics metrics, String testString) { int width = metrics.stringWidth(testString); double average = (double) width / testString.length(); //System.out.println("Average width of '" + testString + "'=" + average); return...
class class_name[name] begin[{] method[computeAverageCharWidth, return_type[type[double]], modifier[protected], parameter[metrics, testString]] begin[{] local_variable[type[int], width] local_variable[type[double], average] return[member[.average]] end[}] END[}]
Keyword[protected] Keyword[double] identifier[computeAverageCharWidth] operator[SEP] identifier[FontMetrics] identifier[metrics] , identifier[String] identifier[testString] operator[SEP] { Keyword[int] identifier[width] operator[=] identifier[metrics] operator[SEP] identifier[stringWidth] operator[SEP] identifi...
public static boolean areAnyGranted(String authorities) throws IOException { AuthorizeFaceletsTag authorizeTag = new AuthorizeFaceletsTag(); authorizeTag.setIfAnyGranted(authorities); return authorizeTag.authorize(); }
class class_name[name] begin[{] method[areAnyGranted, return_type[type[boolean]], modifier[public static], parameter[authorities]] begin[{] local_variable[type[AuthorizeFaceletsTag], authorizeTag] call[authorizeTag.setIfAnyGranted, parameter[member[.authorities]]] return[call[au...
Keyword[public] Keyword[static] Keyword[boolean] identifier[areAnyGranted] operator[SEP] identifier[String] identifier[authorities] operator[SEP] Keyword[throws] identifier[IOException] { identifier[AuthorizeFaceletsTag] identifier[authorizeTag] operator[=] Keyword[new] identifier[AuthorizeFaceletsTag] operator[...
public void marshall(GetDatasetContentRequest getDatasetContentRequest, ProtocolMarshaller protocolMarshaller) { if (getDatasetContentRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getData...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getDatasetContentRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getDatasetContentRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetDatasetContentRequest] identifier[getDatasetContentRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getDatasetContentRequest] operator[==] Other[null] opera...
public FileStatus getFileStatus(final Path f, final boolean useStandby) throws IOException { return new StandbyCaller<FileStatus>() { @Override FileStatus call(DistributedFileSystem fs) throws IOException { return fs.getFileStatus(f); } }.callFS(useStandby); }
class class_name[name] begin[{] method[getFileStatus, return_type[type[FileStatus]], modifier[public], parameter[f, useStandby]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(ar...
Keyword[public] identifier[FileStatus] identifier[getFileStatus] operator[SEP] Keyword[final] identifier[Path] identifier[f] , Keyword[final] Keyword[boolean] identifier[useStandby] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] Keyword[new] identifier[StandbyCaller] operator[<] identif...
@SuppressWarnings("unchecked") @Override protected void _from(ObjectInput in) throws IOException, ClassNotFoundException { final int size = in.readInt(); for (int i = 0; i < size; ++i) { final String label = readString(in); final int termIndex = in.readInt(); ...
class class_name[name] begin[{] method[_from, return_type[void], modifier[protected], parameter[in]] begin[{] local_variable[type[int], size] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initiali...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[_from] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] {...
public String getAce_class() { if (Entity_Type.featOkTst && ((Entity_Type)jcasType).casFeat_ace_class == null) jcasType.jcas.throwFeatMissing("ace_class", "de.julielab.jules.types.ace.Entity"); return jcasType.ll_cas.ll_getStringValue(addr, ((Entity_Type)jcasType).casFeatCode_ace_class);}
class class_name[name] begin[{] method[getAce_class, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Entity_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[public] identifier[String] identifier[getAce_class] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Entity_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Entity_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifie...
@Override public <T> void createCollection(Class<T> entityClass) { createCollection(Util.determineCollectionName(entityClass)); }
class class_name[name] begin[{] method[createCollection, return_type[void], modifier[public], parameter[entityClass]] begin[{] call[.createCollection, parameter[call[Util.determineCollectionName, parameter[member[.entityClass]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[createCollection] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[entityClass] operator[SEP] { identifier[createCollection] operator[SEP] identifier[Util] operator[SE...
public static <P> NearestNeighbor<P> kdRandomForest( KdTreeDistance<P> distance , int maxNodesSearched , int numTrees , int numConsiderSplit , long randomSeed ) { Random rand = new Random(randomSeed); return new KdForestBbfSearch<>(numTrees,maxNodesSearched,distance, new AxisS...
class class_name[name] begin[{] method[kdRandomForest, return_type[type[NearestNeighbor]], modifier[public static], parameter[distance, maxNodesSearched, numTrees, numConsiderSplit, randomSeed]] begin[{] local_variable[type[Random], rand] return[ClassCreator(arguments=[MemberReference(member=nu...
Keyword[public] Keyword[static] operator[<] identifier[P] operator[>] identifier[NearestNeighbor] operator[<] identifier[P] operator[>] identifier[kdRandomForest] operator[SEP] identifier[KdTreeDistance] operator[<] identifier[P] operator[>] identifier[distance] , Keyword[int] identifier[maxNodesSearched] , Keyword[i...
public static <K, V> MapEntryLite<K, V> newDefaultInstance(WireFormat.FieldType keyType, K defaultKey, WireFormat.FieldType valueType, V defaultValue) { return new MapEntryLite<K, V>(keyType, defaultKey, valueType, defaultValue); }
class class_name[name] begin[{] method[newDefaultInstance, return_type[type[MapEntryLite]], modifier[public static], parameter[keyType, defaultKey, valueType, defaultValue]] begin[{] return[ClassCreator(arguments=[MemberReference(member=keyType, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[MapEntryLite] operator[<] identifier[K] , identifier[V] operator[>] identifier[newDefaultInstance] operator[SEP] identifier[WireFormat] operator[SEP] identifier[FieldType] identifier[keyType] , identifier[K] identifier[d...
public static void updateLocale(final HasComponents ui, final Locale locale, final ResourceBundle rb) { // locale may not be null, however the current UI Locale may be null! if (locale.equals(ui.getLocale())) { return; } final long time = System.currentTim...
class class_name[name] begin[{] method[updateLocale, return_type[void], modifier[public static], parameter[ui, locale, rb]] begin[{] if[call[locale.equals, parameter[call[ui.getLocale, parameter[]]]]] begin[{] return[None] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[static] Keyword[void] identifier[updateLocale] operator[SEP] Keyword[final] identifier[HasComponents] identifier[ui] , Keyword[final] identifier[Locale] identifier[locale] , Keyword[final] identifier[ResourceBundle] identifier[rb] operator[SEP] { Keyword[if] operator[SEP] identifier[loc...
public static streamselector get(nitro_service service, String name) throws Exception{ streamselector obj = new streamselector(); obj.set_name(name); streamselector response = (streamselector) obj.get_resource(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[streamselector]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[streamselector], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[streamselector], response] ...
Keyword[public] Keyword[static] identifier[streamselector] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[streamselector] identifier[obj] operator[=] Keyword[new] identifier[stream...
public void postInvoke(ContainerTx tx, BeanO bean) { bean.getActivationStrategy().atPostInvoke(tx, bean); }
class class_name[name] begin[{] method[postInvoke, return_type[void], modifier[public], parameter[tx, bean]] begin[{] call[bean.getActivationStrategy, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[postInvoke] operator[SEP] identifier[ContainerTx] identifier[tx] , identifier[BeanO] identifier[bean] operator[SEP] { identifier[bean] operator[SEP] identifier[getActivationStrategy] operator[SEP] operator[SEP] operator[SEP] identifier[atPostInvoke] operator[SEP] identif...
boolean canCastToTypeAndSatisfyConstraints( Value value, JcrSession session ) { try { assert value instanceof JcrValue : "Illegal implementation of Value interface"; ((JcrValue)value).asType(getRequiredType()); // throws ValueFormatExceptio...
class class_name[name] begin[{] method[canCastToTypeAndSatisfyConstraints, return_type[type[boolean]], modifier[default], parameter[value, session]] begin[{] TryStatement(block=[AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], q...
Keyword[boolean] identifier[canCastToTypeAndSatisfyConstraints] operator[SEP] identifier[Value] identifier[value] , identifier[JcrSession] identifier[session] operator[SEP] { Keyword[try] { Keyword[assert] identifier[value] Keyword[instanceof] identifier[JcrValue] operator[:] literal[String] operato...
public static Supplier<ExpressionTree> receiverInstance() { return new Supplier<ExpressionTree>() { @Override public ExpressionTree get(VisitorState state) { MethodInvocationTree method = (MethodInvocationTree) state.getPath().getLeaf(); return ((JCFieldAccess) method.getMethodSelect())....
class class_name[name] begin[{] method[receiverInstance, return_type[type[Supplier]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], declarator...
Keyword[public] Keyword[static] identifier[Supplier] operator[<] identifier[ExpressionTree] operator[>] identifier[receiverInstance] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Supplier] operator[<] identifier[ExpressionTree] operator[>] operator[SEP] operator[SEP] { annotati...
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/appearance/1.0", name = "_GenericApplicationPropertyOfTexture") public JAXBElement<Object> create_GenericApplicationPropertyOfTexture(Object value) { return new JAXBElement<Object>(__GenericApplicationPropertyOfTexture_QNAME, Object.class, null, va...
class class_name[name] begin[{] method[create_GenericApplicationPropertyOfTexture, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=__GenericApplicationPropertyOfTexture_QNAME, postfix_operators=[], prefix_operators=[], q...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Object] operator[>] identifier[create_GenericApplicationPropertyOfTexture] operator[SEP] i...
@Override protected @Nullable Set<Object> actualAsSet() { return actual == null ? null : newLinkedHashSet(actual.toArray()); }
class class_name[name] begin[{] method[actualAsSet, return_type[type[Set]], modifier[protected], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=actual, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfi...
annotation[@] identifier[Override] Keyword[protected] annotation[@] identifier[Nullable] identifier[Set] operator[<] identifier[Object] operator[>] identifier[actualAsSet] operator[SEP] operator[SEP] { Keyword[return] identifier[actual] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[new...
public static ConstantExpression transformBinaryConstantExpression(BinaryExpression be, ClassNode targetType) { ClassNode wrapperType = ClassHelper.getWrapper(targetType); if (isTypeOrArrayOfType(targetType, ClassHelper.STRING_TYPE, false)) { if (be.getOperation().getType() == PLUS) { ...
class class_name[name] begin[{] method[transformBinaryConstantExpression, return_type[type[ConstantExpression]], modifier[public static], parameter[be, targetType]] begin[{] local_variable[type[ClassNode], wrapperType] if[call[.isTypeOrArrayOfType, parameter[member[.targetType], member[...
Keyword[public] Keyword[static] identifier[ConstantExpression] identifier[transformBinaryConstantExpression] operator[SEP] identifier[BinaryExpression] identifier[be] , identifier[ClassNode] identifier[targetType] operator[SEP] { identifier[ClassNode] identifier[wrapperType] operator[=] identifier[ClassHelper] ...
public static Properties getFilteredProperties (final Properties source, String prefix) { final String dprefix = prefix + "."; return new Properties() { @Override public String getProperty (String key) { return getProperty(key, null); } @Override p...
class class_name[name] begin[{] method[getFilteredProperties, return_type[type[Properties]], modifier[public static], parameter[source, prefix]] begin[{] local_variable[type[String], dprefix] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Ov...
Keyword[public] Keyword[static] identifier[Properties] identifier[getFilteredProperties] operator[SEP] Keyword[final] identifier[Properties] identifier[source] , identifier[String] identifier[prefix] operator[SEP] { Keyword[final] identifier[String] identifier[dprefix] operator[=] identifier[prefix] operator[+]...
private Map<String, Resource> getClassPathResources(String mimetype, Collection<String> paths) { // If no paths are provided, just return an empty map if (paths == null) return Collections.<String, Resource>emptyMap(); // Add classpath resource for each path provided Map<S...
class class_name[name] begin[{] method[getClassPathResources, return_type[type[Map]], modifier[private], parameter[mimetype, paths]] begin[{] if[binary_operation[member[.paths], ==, literal[null]]] begin[{] return[call[.Collections, parameter[]]] else begin[{] None end[}] ...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[Resource] operator[>] identifier[getClassPathResources] operator[SEP] identifier[String] identifier[mimetype] , identifier[Collection] operator[<] identifier[String] operator[>] identifier[paths] operator[SEP] { Keyword[if] operator[S...
@Override public void run() { while(!stop) { try { EventModel<?> event = events.take(); processEvent(event); } catch (InterruptedException e) { log.warn("interrupted", e); } } }
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] while[member[.stop]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[],...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] operator[!] identifier[stop] operator[SEP] { Keyword[try] { identifier[EventModel] operator[<] operator[?] operator[>] identifier[event] operator[=...
@CommandArgument public void stat(int index) { if (this.jobProgressStates == null) { System.err.println("Server not running"); return; } if (index == 0) { List<ProgressState> progress = new ArrayList<ProgressState>(this.jobProgressStates); if (progress != null) { System.out...
class class_name[name] begin[{] method[stat, return_type[void], modifier[public], parameter[index]] begin[{] if[binary_operation[THIS[member[None.jobProgressStates]], ==, literal[null]]] begin[{] call[System.err.println, parameter[literal["Server not running"]]] ...
annotation[@] identifier[CommandArgument] Keyword[public] Keyword[void] identifier[stat] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[jobProgressStates] operator[==] Other[null] operator[SEP] { identifier[System] operator...
public DateMidnight plusWeeks(int weeks) { if (weeks == 0) { return this; } long instant = getChronology().weeks().add(getMillis(), weeks); return withMillis(instant); }
class class_name[name] begin[{] method[plusWeeks, return_type[type[DateMidnight]], modifier[public], parameter[weeks]] begin[{] if[binary_operation[member[.weeks], ==, literal[0]]] begin[{] return[THIS[]] else begin[{] None end[}] local_variable[type[long], i...
Keyword[public] identifier[DateMidnight] identifier[plusWeeks] operator[SEP] Keyword[int] identifier[weeks] operator[SEP] { Keyword[if] operator[SEP] identifier[weeks] operator[==] Other[0] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } Keyword[long] identifier[instant] op...
public java.util.List<SolutionStackDescription> getSolutionStackDetails() { if (solutionStackDetails == null) { solutionStackDetails = new com.amazonaws.internal.SdkInternalList<SolutionStackDescription>(); } return solutionStackDetails; }
class class_name[name] begin[{] method[getSolutionStackDetails, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.solutionStackDetails], ==, literal[null]]] begin[{] assign[member[.solutionStackDetails], ClassCreator(arguments=[...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[SolutionStackDescription] operator[>] identifier[getSolutionStackDetails] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[solutionStackDetails] operator[==] Other[null] operato...
public static HtmlTree META(String name, String content) { HtmlTree htmltree = new HtmlTree(HtmlTag.META); htmltree.addAttr(HtmlAttr.NAME, nullCheck(name)); htmltree.addAttr(HtmlAttr.CONTENT, nullCheck(content)); return htmltree; }
class class_name[name] begin[{] method[META, return_type[type[HtmlTree]], modifier[public static], parameter[name, content]] begin[{] local_variable[type[HtmlTree], htmltree] call[htmltree.addAttr, parameter[member[HtmlAttr.NAME], call[.nullCheck, parameter[member[.name]]]]] ...
Keyword[public] Keyword[static] identifier[HtmlTree] identifier[META] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[content] operator[SEP] { identifier[HtmlTree] identifier[htmltree] operator[=] Keyword[new] identifier[HtmlTree] operator[SEP] identifier[HtmlTag] operator[SEP]...
private static Process action(final String fileName, String parameters, boolean waitForTermination) throws IOException { Process process = null; if (parameters.trim().length() > 0) { parameters = " " + parameters.trim(); } else { parameters = ""; } if (acroread != null) { process = Runtime.getRu...
class class_name[name] begin[{] method[action, return_type[type[Process]], modifier[private static], parameter[fileName, parameters, waitForTermination]] begin[{] local_variable[type[Process], process] if[binary_operation[call[parameters.trim, parameter[]], >, literal[0]]] begin[{] ...
Keyword[private] Keyword[static] identifier[Process] identifier[action] operator[SEP] Keyword[final] identifier[String] identifier[fileName] , identifier[String] identifier[parameters] , Keyword[boolean] identifier[waitForTermination] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Process] ...
static List<DeepTokenRange> mergeTokenRanges(Map<String, Iterable<Comparable>> tokens, final Session session, final IPartitioner p) { final Iterable<Comparable> allRanges = Ordering.natural().sortedCopy(concat(toke...
class class_name[name] begin[{] method[mergeTokenRanges, return_type[type[List]], modifier[static], parameter[tokens, session, p]] begin[{] local_variable[type[Iterable], allRanges] local_variable[type[Comparable], maxValue] local_variable[type[Comparable], minValue] local_varia...
Keyword[static] identifier[List] operator[<] identifier[DeepTokenRange] operator[>] identifier[mergeTokenRanges] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Iterable] operator[<] identifier[Comparable] operator[>] operator[>] identifier[tokens] , Keyword[final] identifier[Session] identi...
public void register(final InstanceInfo info) throws Exception { long expiryTime = System.currentTimeMillis() + getLeaseRenewalOf(info); batchingDispatcher.process( taskId("register", info), new InstanceReplicationTask(targetHost, Action.Register, info, null, true) { ...
class class_name[name] begin[{] method[register, return_type[void], modifier[public], parameter[info]] begin[{] local_variable[type[long], expiryTime] call[batchingDispatcher.process, parameter[call[.taskId, parameter[literal["register"], member[.info]]], ClassCreator(arguments=[MemberR...
Keyword[public] Keyword[void] identifier[register] operator[SEP] Keyword[final] identifier[InstanceInfo] identifier[info] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[long] identifier[expiryTime] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SE...
public static ImmutableVector4 createVector(final double x, final double y, final double z, final double h) { return new ImmutableVector4(new ImmutableData(4, 1) { @Override public double getQuick(int row, int col) { switch (row) { case 0: return x; case 1: return y; case 2: ...
class class_name[name] begin[{] method[createVector, return_type[type[ImmutableVector4]], modifier[public static], parameter[x, y, z, h]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), Literal(po...
Keyword[public] Keyword[static] identifier[ImmutableVector4] identifier[createVector] operator[SEP] Keyword[final] Keyword[double] identifier[x] , Keyword[final] Keyword[double] identifier[y] , Keyword[final] Keyword[double] identifier[z] , Keyword[final] Keyword[double] identifier[h] operator[SEP] { Keyword[...
@NonNull public static UpdateStart update(@Nullable String keyspace, @NonNull String table) { return update( keyspace == null ? null : CqlIdentifier.fromCql(keyspace), CqlIdentifier.fromCql(table)); }
class class_name[name] begin[{] method[update, return_type[type[UpdateStart]], modifier[public static], parameter[keyspace, table]] begin[{] return[call[.update, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=keyspace, postfix_operators=[], prefix_operators=[], qu...
annotation[@] identifier[NonNull] Keyword[public] Keyword[static] identifier[UpdateStart] identifier[update] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[keyspace] , annotation[@] identifier[NonNull] identifier[String] identifier[table] operator[SEP] { Keyword[return] identifie...
public boolean isLoggable(Level level) { if (level.intValue() < levelValue || levelValue == offValue) { return false; } return true; }
class class_name[name] begin[{] method[isLoggable, return_type[type[boolean]], modifier[public], parameter[level]] begin[{] if[binary_operation[binary_operation[call[level.intValue, parameter[]], <, member[.levelValue]], ||, binary_operation[member[.levelValue], ==, member[.offValue]]]] begin[{...
Keyword[public] Keyword[boolean] identifier[isLoggable] operator[SEP] identifier[Level] identifier[level] operator[SEP] { Keyword[if] operator[SEP] identifier[level] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[<] identifier[levelValue] operator[||] identifier[levelValue] operator[==] ...
@Override public List<SpatialReferenceSystem> queryForMatching( SpatialReferenceSystem matchObj) throws SQLException { List<SpatialReferenceSystem> srsList = super.queryForMatching(matchObj); setDefinition_12_063(srsList); return srsList; }
class class_name[name] begin[{] method[queryForMatching, return_type[type[List]], modifier[public], parameter[matchObj]] begin[{] local_variable[type[List], srsList] call[.setDefinition_12_063, parameter[member[.srsList]]] return[member[.srsList]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[SpatialReferenceSystem] operator[>] identifier[queryForMatching] operator[SEP] identifier[SpatialReferenceSystem] identifier[matchObj] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[List] operator[<] i...
private static Result<?> decodePayload( ByteBuf buffer, MqttMessageType messageType, int bytesRemainingInVariablePart, Object variableHeader) { switch (messageType) { case CONNECT: return decodeConnectionPayload(buffer, (MqttConnectVari...
class class_name[name] begin[{] method[decodePayload, return_type[type[Result]], modifier[private static], parameter[buffer, messageType, bytesRemainingInVariablePart, variableHeader]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['CONNECT'], statements=[ReturnStatement(expression=MethodInv...
Keyword[private] Keyword[static] identifier[Result] operator[<] operator[?] operator[>] identifier[decodePayload] operator[SEP] identifier[ByteBuf] identifier[buffer] , identifier[MqttMessageType] identifier[messageType] , Keyword[int] identifier[bytesRemainingInVariablePart] , identifier[Object] identifier[variable...
private void setIndicatorMeasure(View indicator, int width, int height, int margin) { if (indicator != null) { ViewGroup.LayoutParams layoutParams = indicator.getLayoutParams(); layoutParams.width = width; layoutParams.height = height; if (margin > 0) { ...
class class_name[name] begin[{] method[setIndicatorMeasure, return_type[void], modifier[private], parameter[indicator, width, height, margin]] begin[{] if[binary_operation[member[.indicator], !=, literal[null]]] begin[{] local_variable[type[ViewGroup], layoutParams] ...
Keyword[private] Keyword[void] identifier[setIndicatorMeasure] operator[SEP] identifier[View] identifier[indicator] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[int] identifier[margin] operator[SEP] { Keyword[if] operator[SEP] identifier[indicator] operator[!=] Other[null] oper...
@Override public BreakpointInfo findAnotherInfoFromCompare(@NonNull DownloadTask task, @NonNull BreakpointInfo ignored) { final SparseArray<BreakpointInfo> clonedMap; synchronized (this) { clonedMap = storedInfos.clone(); } ...
class class_name[name] begin[{] method[findAnotherInfoFromCompare, return_type[type[BreakpointInfo]], modifier[public], parameter[task, ignored]] begin[{] local_variable[type[SparseArray], clonedMap] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[.clonedMap], call[s...
annotation[@] identifier[Override] Keyword[public] identifier[BreakpointInfo] identifier[findAnotherInfoFromCompare] operator[SEP] annotation[@] identifier[NonNull] identifier[DownloadTask] identifier[task] , annotation[@] identifier[NonNull] identifier[BreakpointInfo] identifier[ignored] operator[SEP] { Keywor...
public void onClick(MenuItemClickEvent event) { FeatureTransaction featureTransaction = mapWidget.getMapModel().getFeatureEditor().getFeatureTransaction(); mapWidget.render(featureTransaction, RenderGroup.VECTOR, RenderStatus.DELETE); featureTransaction.undoLastOperation(); mapWidget.render(featureTransaction, ...
class class_name[name] begin[{] method[onClick, return_type[void], modifier[public], parameter[event]] begin[{] local_variable[type[FeatureTransaction], featureTransaction] call[mapWidget.render, parameter[member[.featureTransaction], member[RenderGroup.VECTOR], member[RenderStatus.DELE...
Keyword[public] Keyword[void] identifier[onClick] operator[SEP] identifier[MenuItemClickEvent] identifier[event] operator[SEP] { identifier[FeatureTransaction] identifier[featureTransaction] operator[=] identifier[mapWidget] operator[SEP] identifier[getMapModel] operator[SEP] operator[SEP] operator[SEP] identifi...
protected void moveSelectionDown() { final IStructuredSelection selection = this.list.getStructuredSelection(); final int index = this.conversions.indexOf(selection.getFirstElement()); if (index >= 0 && (index + selection.size()) < this.conversions.size()) { final ConversionMapping next = this.conversions.remo...
class class_name[name] begin[{] method[moveSelectionDown, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[IStructuredSelection], selection] local_variable[type[int], index] if[binary_operation[binary_operation[member[.index], >=, literal[0]], &&...
Keyword[protected] Keyword[void] identifier[moveSelectionDown] operator[SEP] operator[SEP] { Keyword[final] identifier[IStructuredSelection] identifier[selection] operator[=] Keyword[this] operator[SEP] identifier[list] operator[SEP] identifier[getStructuredSelection] operator[SEP] operator[SEP] operator[SEP] Ke...
private void populateRelations(EntityMetadata m, Object entity, Map<String, Object> relationMap, Node node, Map<Long, Object> nodeIdToEntityMap) { // Populate all relationship entities that are in Neo4J for (Relation relation : m.getRelations()) { if (relation != null...
class class_name[name] begin[{] method[populateRelations, return_type[void], modifier[private], parameter[m, entity, relationMap, node, nodeIdToEntityMap]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=relation, p...
Keyword[private] Keyword[void] identifier[populateRelations] operator[SEP] identifier[EntityMetadata] identifier[m] , identifier[Object] identifier[entity] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[relationMap] , identifier[Node] identifier[node] , identifier[Map]...
public final hqlParser.identPrimary_return identPrimary() throws RecognitionException { hqlParser.identPrimary_return retval = new hqlParser.identPrimary_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token o=null; Token op=null; Token DOT259=null; Token CLOSE262=null; ParserRuleRetur...
class class_name[name] begin[{] method[identPrimary, return_type[type[hqlParser]], modifier[final public], parameter[]] begin[{] local_variable[type[hqlParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree], root_0] ...
Keyword[public] Keyword[final] identifier[hqlParser] operator[SEP] identifier[identPrimary_return] identifier[identPrimary] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[hqlParser] operator[SEP] identifier[identPrimary_return] identifier[retval] operator[=] Keyword[new...
public Observable<ServiceResponse<Void>> deleteIterationWithServiceResponseAsync(UUID projectId, UUID iterationId) { if (projectId == null) { throw new IllegalArgumentException("Parameter projectId is required and cannot be null."); } if (iterationId == null) { throw new ...
class class_name[name] begin[{] method[deleteIterationWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[projectId, iterationId]] begin[{] if[binary_operation[member[.projectId], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Void] operator[>] operator[>] identifier[deleteIterationWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[projectId] , identifier[UUID] identifier[iterationId] operator[SEP] { Keyword[if] oper...
public StructuredQueryDefinition value(TextIndex index, FragmentScope scope, String[] options, double weight, Boolean value) { return new ValueQuery(index, scope, options, weight, new Object[] {value}); }
class class_name[name] begin[{] method[value, return_type[type[StructuredQueryDefinition]], modifier[public], parameter[index, scope, options, weight, value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Memb...
Keyword[public] identifier[StructuredQueryDefinition] identifier[value] operator[SEP] identifier[TextIndex] identifier[index] , identifier[FragmentScope] identifier[scope] , identifier[String] operator[SEP] operator[SEP] identifier[options] , Keyword[double] identifier[weight] , identifier[Boolean] identifier[value...
public void marshall(FaceSearchSettings faceSearchSettings, ProtocolMarshaller protocolMarshaller) { if (faceSearchSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(faceSearchSettings.getCol...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[faceSearchSettings, protocolMarshaller]] begin[{] if[binary_operation[member[.faceSearchSettings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[FaceSearchSettings] identifier[faceSearchSettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[faceSearchSettings] operator[==] Other[null] operator[SEP] { ...
public OkCoinOrderResult getOrder(String symbol, Integer type, String orderIds) throws IOException { OkCoinOrderResult orderResult = okCoin.getOrders(apikey, type, orderIds, symbol, signatureCreator()); return returnOrThrow(orderResult); }
class class_name[name] begin[{] method[getOrder, return_type[type[OkCoinOrderResult]], modifier[public], parameter[symbol, type, orderIds]] begin[{] local_variable[type[OkCoinOrderResult], orderResult] return[call[.returnOrThrow, parameter[member[.orderResult]]]] end[}] END[}]
Keyword[public] identifier[OkCoinOrderResult] identifier[getOrder] operator[SEP] identifier[String] identifier[symbol] , identifier[Integer] identifier[type] , identifier[String] identifier[orderIds] operator[SEP] Keyword[throws] identifier[IOException] { identifier[OkCoinOrderResult] identifier[orderResult] o...
public PrecompileDef createPrecompile() throws BuildException { final Project p = getProject(); if (isReference()) { throw noChildrenAllowed(); } final PrecompileDef precomp = new PrecompileDef(); precomp.setProject(p); this.precompileDefs.addElement(precomp); return precomp; }
class class_name[name] begin[{] method[createPrecompile, return_type[type[PrecompileDef]], modifier[public], parameter[]] begin[{] local_variable[type[Project], p] if[call[.isReference, parameter[]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[], member=no...
Keyword[public] identifier[PrecompileDef] identifier[createPrecompile] operator[SEP] operator[SEP] Keyword[throws] identifier[BuildException] { Keyword[final] identifier[Project] identifier[p] operator[=] identifier[getProject] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isRefe...
public static gslbrunningconfig get(nitro_service service) throws Exception{ gslbrunningconfig obj = new gslbrunningconfig(); gslbrunningconfig[] response = (gslbrunningconfig[])obj.get_resources(service); return response[0]; }
class class_name[name] begin[{] method[get, return_type[type[gslbrunningconfig]], modifier[public static], parameter[service]] begin[{] local_variable[type[gslbrunningconfig], obj] local_variable[type[gslbrunningconfig], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[gslbrunningconfig] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[gslbrunningconfig] identifier[obj] operator[=] Keyword[new] identifier[gslbrunningconfig] operator[SEP] operat...
@Override public boolean endWrite(OutputStream os) { boolean endSuccess = false; try { this.workbook.write(os); endSuccess = true; } catch (IOException e) { e.printStackTrace(); } return endSuccess; }
class class_name[name] begin[{] method[endWrite, return_type[type[boolean]], modifier[public], parameter[os]] begin[{] local_variable[type[boolean], endSuccess] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberRe...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[endWrite] operator[SEP] identifier[OutputStream] identifier[os] operator[SEP] { Keyword[boolean] identifier[endSuccess] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[this] operator[SEP] identifier[workbo...
public static <T extends CharSequence> T checkArgNotNullOrEmpty(final T arg, final String argNameOrErrorMsg) { if (N.isNullOrEmpty(arg)) { if (argNameOrErrorMsg.indexOf(' ') == N.INDEX_NOT_FOUND) { throw new IllegalArgumentException("'" + argNameOrErrorMsg + "' can not be null or ...
class class_name[name] begin[{] method[checkArgNotNullOrEmpty, return_type[type[T]], modifier[public static], parameter[arg, argNameOrErrorMsg]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.arg]]]] begin[{] if[binary_operation[call[argNameOrErrorMsg.indexOf, param...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[CharSequence] operator[>] identifier[T] identifier[checkArgNotNullOrEmpty] operator[SEP] Keyword[final] identifier[T] identifier[arg] , Keyword[final] identifier[String] identifier[argNameOrErrorMsg] operator[SEP] { Keyword[if...
static IntTupleIncrementor incrementor(Order order) { if (order == null) { return null; } switch (order) { case LEXICOGRAPHICAL: return lexicographicalIncrementor(); case COLEXICOGRAPHICAL: return ...
class class_name[name] begin[{] method[incrementor, return_type[type[IntTupleIncrementor]], modifier[static], parameter[order]] begin[{] if[binary_operation[member[.order], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] SwitchSta...
Keyword[static] identifier[IntTupleIncrementor] identifier[incrementor] operator[SEP] identifier[Order] identifier[order] operator[SEP] { Keyword[if] operator[SEP] identifier[order] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[switch] opera...
private byte[] calculateHash(String data) throws NoSuchAlgorithmException, UnsupportedEncodingException { MessageDigest md = MessageDigest.getInstance(HASH_ALGORITHM); md.update(data.getBytes(ENCODING)); return md.digest(); }
class class_name[name] begin[{] method[calculateHash, return_type[type[byte]], modifier[private], parameter[data]] begin[{] local_variable[type[MessageDigest], md] call[md.update, parameter[call[data.getBytes, parameter[member[.ENCODING]]]]] return[call[md.digest, parameter[]]] ...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[calculateHash] operator[SEP] identifier[String] identifier[data] operator[SEP] Keyword[throws] identifier[NoSuchAlgorithmException] , identifier[UnsupportedEncodingException] { identifier[MessageDigest] identifier[md] operator[=] identifier[M...
@Pure public static Integer getPreferredRoadBorderSize(boolean useSystemValue) { final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkLayerConstants.class); if (prefs != null) { final int size = prefs.getInt("ROAD_BORDER_SIZE", -1); //$NON-NLS-1$ if (size >= 0) { return size; } } if...
class class_name[name] begin[{] method[getPreferredRoadBorderSize, return_type[type[Integer]], modifier[public static], parameter[useSystemValue]] begin[{] local_variable[type[Preferences], prefs] if[binary_operation[member[.prefs], !=, literal[null]]] begin[{] local_variabl...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] identifier[Integer] identifier[getPreferredRoadBorderSize] operator[SEP] Keyword[boolean] identifier[useSystemValue] operator[SEP] { Keyword[final] identifier[Preferences] identifier[prefs] operator[=] identifier[Preferences] operator[SEP] identifier...
public EClass getIfcEvaporativeCoolerType() { if (ifcEvaporativeCoolerTypeEClass == null) { ifcEvaporativeCoolerTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(211); } return ifcEvaporativeCoolerTypeEClass; }
class class_name[name] begin[{] method[getIfcEvaporativeCoolerType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcEvaporativeCoolerTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcEvaporativeCoolerTypeEClass]...
Keyword[public] identifier[EClass] identifier[getIfcEvaporativeCoolerType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcEvaporativeCoolerTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcEvaporativeCoolerTypeEClass] operator[=] operator[SEP] identifier[EClass]...
public final void setColumnValue(final String columnName, final Object columnValue) { SQLExpression sqlExpression = values[getColumnIndex(columnName)]; if (sqlExpression instanceof SQLParameterMarkerExpression) { parameters[getParameterIndex(sqlExpression)] = columnValue; } else { ...
class class_name[name] begin[{] method[setColumnValue, return_type[void], modifier[final public], parameter[columnName, columnValue]] begin[{] local_variable[type[SQLExpression], sqlExpression] if[binary_operation[member[.sqlExpression], instanceof, type[SQLParameterMarkerExpression]]] ...
Keyword[public] Keyword[final] Keyword[void] identifier[setColumnValue] operator[SEP] Keyword[final] identifier[String] identifier[columnName] , Keyword[final] identifier[Object] identifier[columnValue] operator[SEP] { identifier[SQLExpression] identifier[sqlExpression] operator[=] identifier[values] operator[S...
public void setPropertiesClass(Class<?> propertiesClass) { Validate.notNull(propertiesClass); setProperty(SOABaseProperty.PROPERTIES_CLASS, propertiesClass.getName()); }
class class_name[name] begin[{] method[setPropertiesClass, return_type[void], modifier[public], parameter[propertiesClass]] begin[{] call[Validate.notNull, parameter[member[.propertiesClass]]] call[.setProperty, parameter[member[SOABaseProperty.PROPERTIES_CLASS], call[properties...
Keyword[public] Keyword[void] identifier[setPropertiesClass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[propertiesClass] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[propertiesClass] operator[SEP] operator[SEP] identifier[setP...
public Grib1Parameter getLocalParameter(int id) { if (parameters == null) { parameters = readParameterTable(); } return parameters.get(id); }
class class_name[name] begin[{] method[getLocalParameter, return_type[type[Grib1Parameter]], modifier[public], parameter[id]] begin[{] if[binary_operation[member[.parameters], ==, literal[null]]] begin[{] assign[member[.parameters], call[.readParameterTable, parameter[]]...
Keyword[public] identifier[Grib1Parameter] identifier[getLocalParameter] operator[SEP] Keyword[int] identifier[id] operator[SEP] { Keyword[if] operator[SEP] identifier[parameters] operator[==] Other[null] operator[SEP] { identifier[parameters] operator[=] identifier[readParameterTable] operator[SEP] o...
public int actionCost(Action action, int dependency, State state) { if (!ArcEager.canDo(action, state)) return Integer.MAX_VALUE; int cost = 0; // added by me to take care of labels if (action == Action.LeftArc) { // left arc int bufferHead = state.bu...
class class_name[name] begin[{] method[actionCost, return_type[type[int]], modifier[public], parameter[action, dependency, state]] begin[{] if[call[ArcEager.canDo, parameter[member[.action], member[.state]]]] begin[{] return[member[Integer.MAX_VALUE]] else begin[{] None end[}] ...
Keyword[public] Keyword[int] identifier[actionCost] operator[SEP] identifier[Action] identifier[action] , Keyword[int] identifier[dependency] , identifier[State] identifier[state] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[ArcEager] operator[SEP] identifier[canDo] operator[SEP] identifier...
public boolean canBeIgnoredFor(AnalyzedSentence sentence) { return (!simpleRuleTokens.isEmpty() && !sentence.getTokenSet().containsAll(simpleRuleTokens)) || (!inflectedRuleTokens.isEmpty() && !sentence.getLemmaSet().containsAll(inflectedRuleTokens)); }
class class_name[name] begin[{] method[canBeIgnoredFor, return_type[type[boolean]], modifier[public], parameter[sentence]] begin[{] return[binary_operation[binary_operation[call[simpleRuleTokens.isEmpty, parameter[]], &&, call[sentence.getTokenSet, parameter[]]], ||, binary_operation[call[inflectedRule...
Keyword[public] Keyword[boolean] identifier[canBeIgnoredFor] operator[SEP] identifier[AnalyzedSentence] identifier[sentence] operator[SEP] { Keyword[return] operator[SEP] operator[!] identifier[simpleRuleTokens] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[sen...
public static String md5(String s) { if (s == null) { return ""; } try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(s.getBytes()); byte[] byteData = md.digest(); //convert the byte to hex format method 1 StringBuilder sb = new StringBuilder(); for (int i = 0; i < byteDat...
class class_name[name] begin[{] method[md5, return_type[type[String]], modifier[public static], parameter[s]] begin[{] if[binary_operation[member[.s], ==, literal[null]]] begin[{] return[literal[""]] else begin[{] None end[}] TryStatement(block=[LocalVariable...
Keyword[public] Keyword[static] identifier[String] identifier[md5] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[try] { ide...
public static Predicate and(Predicate left, Predicate right) { left = (Predicate) extract(left); right = (Predicate) extract(right); if (left == null) { return right; } else if (right == null) { return left; } else { return predicate(Ops.AND, l...
class class_name[name] begin[{] method[and, return_type[type[Predicate]], modifier[public static], parameter[left, right]] begin[{] assign[member[.left], Cast(expression=MethodInvocation(arguments=[MemberReference(member=left, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[static] identifier[Predicate] identifier[and] operator[SEP] identifier[Predicate] identifier[left] , identifier[Predicate] identifier[right] operator[SEP] { identifier[left] operator[=] operator[SEP] identifier[Predicate] operator[SEP] identifier[extract] operator[SEP] identifier[left] o...
@Override public void started(Container moduleContainer) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(this, tc, "application started. moduleContainer: " + moduleContainer.getName()); WebAppConfiguration webAppConfig; try { webAppConfig...
class class_name[name] begin[{] method[started, return_type[void], modifier[public], parameter[moduleContainer]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[THIS[], m...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[started] operator[SEP] identifier[Container] identifier[moduleContainer] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifi...
public static Package newInstance(Package aPackage) { Package packageCopy = new Package(aPackage.getEntityType()); packageCopy.setId(aPackage.getId()); packageCopy.setLabel(aPackage.getLabel()); packageCopy.setDescription(aPackage.getDescription()); Package parent = aPackage.getParent(); package...
class class_name[name] begin[{] method[newInstance, return_type[type[Package]], modifier[public static], parameter[aPackage]] begin[{] local_variable[type[Package], packageCopy] call[packageCopy.setId, parameter[call[aPackage.getId, parameter[]]]] call[packageCopy.setLab...
Keyword[public] Keyword[static] identifier[Package] identifier[newInstance] operator[SEP] identifier[Package] identifier[aPackage] operator[SEP] { identifier[Package] identifier[packageCopy] operator[=] Keyword[new] identifier[Package] operator[SEP] identifier[aPackage] operator[SEP] identifier[getEntityType] op...
public static List<Method> retrieveMethodList(final Class<?> cls, final String methodName) { final List<Method> methodList = new ArrayList<>(); final String camelCasedMethodName = underscoreToCamelCase(methodName); for (final Method m : cls.getMethods()) { if (m.getName().equals(came...
class class_name[name] begin[{] method[retrieveMethodList, return_type[type[List]], modifier[public static], parameter[cls, methodName]] begin[{] local_variable[type[List], methodList] local_variable[type[String], camelCasedMethodName] ForStatement(body=BlockStatement(label=None, statem...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Method] operator[>] identifier[retrieveMethodList] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] , Keyword[final] identifier[String] identifier[methodName] operator[SEP] { Keyword[final] ...
TreeSet<TreeEntry> fillEntries(TableKelp table) { TreeSet<TreeEntry> set = new TreeSet<>(); for (BlockTree block : _blocks) { block.fillEntries(table, set, block.getIndex()); } return set; }
class class_name[name] begin[{] method[fillEntries, return_type[type[TreeSet]], modifier[default], parameter[table]] begin[{] local_variable[type[TreeSet], set] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(me...
identifier[TreeSet] operator[<] identifier[TreeEntry] operator[>] identifier[fillEntries] operator[SEP] identifier[TableKelp] identifier[table] operator[SEP] { identifier[TreeSet] operator[<] identifier[TreeEntry] operator[>] identifier[set] operator[=] Keyword[new] identifier[TreeSet] operator[<] operator[>] op...
public DirectoryConnectSettings withCustomerDnsIps(String... customerDnsIps) { if (this.customerDnsIps == null) { setCustomerDnsIps(new com.amazonaws.internal.SdkInternalList<String>(customerDnsIps.length)); } for (String ele : customerDnsIps) { this.customerDnsIps.add(el...
class class_name[name] begin[{] method[withCustomerDnsIps, return_type[type[DirectoryConnectSettings]], modifier[public], parameter[customerDnsIps]] begin[{] if[binary_operation[THIS[member[None.customerDnsIps]], ==, literal[null]]] begin[{] call[.setCustomerDnsIps, para...
Keyword[public] identifier[DirectoryConnectSettings] identifier[withCustomerDnsIps] operator[SEP] identifier[String] operator[...] identifier[customerDnsIps] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[customerDnsIps] operator[==] Other[null] operator[SEP] { identi...
String getIndexRoots() { String roots = StringUtil.getList(getIndexRootsArray(), " ", ""); StringBuffer s = new StringBuffer(roots); /* s.append(' '); s.append(identitySequence.peek()); */ return s.toString(); }
class class_name[name] begin[{] method[getIndexRoots, return_type[type[String]], modifier[default], parameter[]] begin[{] local_variable[type[String], roots] local_variable[type[StringBuffer], s] return[call[s.toString, parameter[]]] end[}] END[}]
identifier[String] identifier[getIndexRoots] operator[SEP] operator[SEP] { identifier[String] identifier[roots] operator[=] identifier[StringUtil] operator[SEP] identifier[getList] operator[SEP] identifier[getIndexRootsArray] operator[SEP] operator[SEP] , literal[String] , literal[String] operator[SEP] operato...
private void _connect() throws IOException { curatorFramework = CuratorFrameworkFactory.newClient(connectString, sessionTimeout, 5000, new RetryNTimes(3, 2000)); curatorFramework.start(); }
class class_name[name] begin[{] method[_connect, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.curatorFramework], call[CuratorFrameworkFactory.newClient, parameter[member[.connectString], member[.sessionTimeout], literal[5000], ClassCreator(arguments=[Literal(postfi...
Keyword[private] Keyword[void] identifier[_connect] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[curatorFramework] operator[=] identifier[CuratorFrameworkFactory] operator[SEP] identifier[newClient] operator[SEP] identifier[connectString] , identifier[sessionTimeout] , Other...
public static String generateHelp(final int columnWidth, final boolean sort, final Object... objs) throws IOException { final List<Arg> allArgs = Colls.list(); final HashMap<String, Arg> shortArgs = new HashMap<String, Arg>(); final HashMap<String, Arg> longArgs = new HashMap<Str...
class class_name[name] begin[{] method[generateHelp, return_type[type[String]], modifier[public static], parameter[columnWidth, sort, objs]] begin[{] local_variable[type[List], allArgs] local_variable[type[HashMap], shortArgs] local_variable[type[HashMap], longArgs] call...
Keyword[public] Keyword[static] identifier[String] identifier[generateHelp] operator[SEP] Keyword[final] Keyword[int] identifier[columnWidth] , Keyword[final] Keyword[boolean] identifier[sort] , Keyword[final] identifier[Object] operator[...] identifier[objs] operator[SEP] Keyword[throws] identifier[IOException] { ...
public CmsUrlNameMappingFilter filterStructureId(CmsUUID structureId) { if (structureId == null) { throw new IllegalArgumentException(); } CmsUrlNameMappingFilter result = new CmsUrlNameMappingFilter(this); result.m_structureId = structureId; return result; }
class class_name[name] begin[{] method[filterStructureId, return_type[type[CmsUrlNameMappingFilter]], modifier[public], parameter[structureId]] begin[{] if[binary_operation[member[.structureId], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=N...
Keyword[public] identifier[CmsUrlNameMappingFilter] identifier[filterStructureId] operator[SEP] identifier[CmsUUID] identifier[structureId] operator[SEP] { Keyword[if] operator[SEP] identifier[structureId] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentE...
public static String cutEnd(String data, int maxLength) { if (data.length() > maxLength) { return data.substring(0, maxLength) + "..."; } else { return data; } }
class class_name[name] begin[{] method[cutEnd, return_type[type[String]], modifier[public static], parameter[data, maxLength]] begin[{] if[binary_operation[call[data.length, parameter[]], >, member[.maxLength]]] begin[{] return[binary_operation[call[data.substring, parameter[literal...
Keyword[public] Keyword[static] identifier[String] identifier[cutEnd] operator[SEP] identifier[String] identifier[data] , Keyword[int] identifier[maxLength] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] identifier[maxLength] o...
private boolean resetActivePointToTerminal() { if (activeEdge != null && activeEdge.getLength() == activeLength && activeEdge.isTerminating()) { activeNode = activeEdge.getTerminal(); activeEdge = null; activeLength = 0; return true; } return false...
class class_name[name] begin[{] method[resetActivePointToTerminal, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.activeEdge], !=, literal[null]], &&, binary_operation[call[activeEdge.getLength, parameter[]], ==...
Keyword[private] Keyword[boolean] identifier[resetActivePointToTerminal] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[activeEdge] operator[!=] Other[null] operator[&&] identifier[activeEdge] operator[SEP] identifier[getLength] operator[SEP] operator[SEP] operator[==] identifier[activeLength...
public static TableRef valueOf(String[] components) { if (components == null) { throw new IllegalArgumentException("Null argument not allowed."); } switch (components.length) { case 1: return new TableRef(null, null, components[0]); case 2: ...
class class_name[name] begin[{] method[valueOf, return_type[type[TableRef]], modifier[public static], parameter[components]] begin[{] if[binary_operation[member[.components], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],...
Keyword[public] Keyword[static] identifier[TableRef] identifier[valueOf] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[components] operator[SEP] { Keyword[if] operator[SEP] identifier[components] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[...
private int sectionToWire(DNSOutput out, int section, Compression c, int maxLength) { int n = sections[section].size(); int pos = out.current(); int rendered = 0; Record lastrec = null; for (int i = 0; i < n; i++) { Record rec = (Record)sections[section].get(i); if (lastrec != null && !sameSet(rec, las...
class class_name[name] begin[{] method[sectionToWire, return_type[type[int]], modifier[private], parameter[out, section, c, maxLength]] begin[{] local_variable[type[int], n] local_variable[type[int], pos] local_variable[type[int], rendered] local_variable[type[Record], lastrec] ...
Keyword[private] Keyword[int] identifier[sectionToWire] operator[SEP] identifier[DNSOutput] identifier[out] , Keyword[int] identifier[section] , identifier[Compression] identifier[c] , Keyword[int] identifier[maxLength] operator[SEP] { Keyword[int] identifier[n] operator[=] identifier[sections] operator[SEP] ...
@SuppressWarnings("CatchMayIgnoreException") protected static Image createPropertyImage(String id, int pos) { // create an example image Image img = FACTORY.createImagesTypeImage(); img.setId(pos); try { img.setUrl(new URI("http://website.com/property/" + id + "/image_" +...
class class_name[name] begin[{] method[createPropertyImage, return_type[type[Image]], modifier[static protected], parameter[id, pos]] begin[{] local_variable[type[Image], img] call[img.setId, parameter[member[.pos]]] TryStatement(block=[StatementExpression(expression=MethodInvoc...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[static] identifier[Image] identifier[createPropertyImage] operator[SEP] identifier[String] identifier[id] , Keyword[int] identifier[pos] operator[SEP] { identifier[Image] identifier[img] operator[=]...
private void clearInternal(boolean clearMeta) { // Close all known segments for(int segId = 0, cnt = _segList.size(); segId < cnt; segId++) { Segment seg = _segList.get(segId); if(seg != null) { try { if(seg.getMode() == Segment.Mode.READ_WRITE...
class class_name[name] begin[{] method[clearInternal, return_type[void], modifier[private], parameter[clearMeta]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argume...
Keyword[private] Keyword[void] identifier[clearInternal] operator[SEP] Keyword[boolean] identifier[clearMeta] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[segId] operator[=] Other[0] , identifier[cnt] operator[=] identifier[_segList] operator[SEP] identifier[size] operator[SEP] operator[SE...
private void initConnectionSettings(Configuration conf, ClientConfiguration clientConf) throws IOException { clientConf.setMaxConnections(Utils.getInt(conf, FS_COS, FS_ALT_KEYS, MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)); clientConf.setClientExecutionTimeout(Utils.getInt(conf, FS_COS, FS_A...
class class_name[name] begin[{] method[initConnectionSettings, return_type[void], modifier[private], parameter[conf, clientConf]] begin[{] call[clientConf.setMaxConnections, parameter[call[Utils.getInt, parameter[member[.conf], member[.FS_COS], member[.FS_ALT_KEYS], member[.MAXIMUM_CONNECTIONS]...
Keyword[private] Keyword[void] identifier[initConnectionSettings] operator[SEP] identifier[Configuration] identifier[conf] , identifier[ClientConfiguration] identifier[clientConf] operator[SEP] Keyword[throws] identifier[IOException] { identifier[clientConf] operator[SEP] identifier[setMaxConnections] operator[...