code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static xen_upgrade[] get_filtered(nitro_service service, String filter) throws Exception { xen_upgrade obj = new xen_upgrade(); options option = new options(); option.set_filter(filter); xen_upgrade[] response = (xen_upgrade[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[xen_upgrade]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[xen_upgrade], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] ...
Keyword[public] Keyword[static] identifier[xen_upgrade] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[xen_upgrade] identifier[obj] operator[...
public static boolean isValid( int kullishay, int vahid, int yearOfVahid, BadiDivision division, int day ) { if ((kullishay < 1) || (kullishay > 3)) { return false; } else if ((vahid < 1) || (vahid > 19)) { return false; } else...
class class_name[name] begin[{] method[isValid, return_type[type[boolean]], modifier[public static], parameter[kullishay, vahid, yearOfVahid, division, day]] begin[{] if[binary_operation[binary_operation[member[.kullishay], <, literal[1]], ||, binary_operation[member[.kullishay], >, literal[3]]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValid] operator[SEP] Keyword[int] identifier[kullishay] , Keyword[int] identifier[vahid] , Keyword[int] identifier[yearOfVahid] , identifier[BadiDivision] identifier[division] , Keyword[int] identifier[day] operator[SEP] { Keyword[if] operator[SEP...
@Override public GetFolderPathResult getFolderPath(GetFolderPathRequest request) { request = beforeClientExecution(request); return executeGetFolderPath(request); }
class class_name[name] begin[{] method[getFolderPath, return_type[type[GetFolderPathResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetFolderPath, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[GetFolderPathResult] identifier[getFolderPath] operator[SEP] identifier[GetFolderPathRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
@Override public boolean isHistoryLevelAtLeast(HistoryLevel level) { if (log.isDebugEnabled()) { log.debug("Current history level: {}, level required: {}", historyLevel, level); } // Comparing enums actually compares the location of values declared in // the enum return historyLevel.isAtLeas...
class class_name[name] begin[{] method[isHistoryLevelAtLeast, return_type[type[boolean]], modifier[public], parameter[level]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[literal["Current history level: {}, level required: {}"], m...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isHistoryLevelAtLeast] operator[SEP] identifier[HistoryLevel] identifier[level] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { ...
public static void addReferencingOutsideClosure(HollowReadStateEngine stateEngine, Map<String, BitSet> matches) { List<HollowSchema> orderedSchemas = HollowSchemaSorter.dependencyOrderedSchemaList(stateEngine); for(HollowSchema referencerSchema : orderedSchemas) { for(HollowSchema reference...
class class_name[name] begin[{] method[addReferencingOutsideClosure, return_type[void], modifier[public static], parameter[stateEngine, matches]] begin[{] local_variable[type[List], orderedSchemas] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=N...
Keyword[public] Keyword[static] Keyword[void] identifier[addReferencingOutsideClosure] operator[SEP] identifier[HollowReadStateEngine] identifier[stateEngine] , identifier[Map] operator[<] identifier[String] , identifier[BitSet] operator[>] identifier[matches] operator[SEP] { identifier[List] operator[<] ident...
@Deprecated public void warn(String message, Throwable t) { log.warn(message, t); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public], parameter[message, t]] begin[{] call[log.warn, parameter[member[.message], member[.t]]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[t] operator[SEP] { identifier[log] operator[SEP] identifier[warn] operator[SEP] identifier[message] , identifier[t] operator[SEP] operator[...
public void computeSetsBounds(Relation<V> points, int minSplitSize, DBIDs ptList) { this.minSplitSize = minSplitSize; final int size = points.size(); final int dim = RelationUtil.dimensionality(points); this.points = points; // perform O(log N+log dim) splits of the entire point sets projections ...
class class_name[name] begin[{] method[computeSetsBounds, return_type[void], modifier[public], parameter[points, minSplitSize, ptList]] begin[{] assign[THIS[member[None.minSplitSize]], member[.minSplitSize]] local_variable[type[int], size] local_variable[type[int], dim] ...
Keyword[public] Keyword[void] identifier[computeSetsBounds] operator[SEP] identifier[Relation] operator[<] identifier[V] operator[>] identifier[points] , Keyword[int] identifier[minSplitSize] , identifier[DBIDs] identifier[ptList] operator[SEP] { Keyword[this] operator[SEP] identifier[minSplitSize] operator[=]...
@Override public int getSuccessCount() { int success = 0; for (Future<Boolean> future : futures) { try { if (future.isDone() && future.get().equals(Boolean.TRUE)) { success++; } } catch (Exception e) { log.er...
class class_name[name] begin[{] method[getSuccessCount, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], success] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[getSuccessCount] operator[SEP] operator[SEP] { Keyword[int] identifier[success] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Future] operator[<] identifier[Boolean] operator[>] identifier[future] operator[:] i...
public static CommercePriceList findByUuid_First(String uuid, OrderByComparator<CommercePriceList> orderByComparator) throws com.liferay.commerce.price.list.exception.NoSuchPriceListException { return getPersistence().findByUuid_First(uuid, orderByComparator); }
class class_name[name] begin[{] method[findByUuid_First, return_type[type[CommercePriceList]], modifier[public static], parameter[uuid, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommercePriceList] identifier[findByUuid_First] operator[SEP] identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CommercePriceList] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[com] operator[SEP] id...
public static CompletableFuture<Void> runAfterwardsAsync(CompletableFuture<?> future, RunnableWithException runnable) { return runAfterwardsAsync(future, runnable, ForkJoinPool.commonPool()); }
class class_name[name] begin[{] method[runAfterwardsAsync, return_type[type[CompletableFuture]], modifier[public static], parameter[future, runnable]] begin[{] return[call[.runAfterwardsAsync, parameter[member[.future], member[.runnable], call[ForkJoinPool.commonPool, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[runAfterwardsAsync] operator[SEP] identifier[CompletableFuture] operator[<] operator[?] operator[>] identifier[future] , identifier[RunnableWithException] identifier[runnable] operator[SEP] { Keywor...
public String getLabel(HasOther e) { List<LangString> labels = ((HasLabel) e).getLabel(); if ((labels == null) || (labels.isEmpty())) return null; if (e instanceof HasLabel) return labels.get(0).getValue(); return "pFact: label TODO"; }
class class_name[name] begin[{] method[getLabel, return_type[type[String]], modifier[public], parameter[e]] begin[{] local_variable[type[List], labels] if[binary_operation[binary_operation[member[.labels], ==, literal[null]], ||, call[labels.isEmpty, parameter[]]]] begin[{] return[liter...
Keyword[public] identifier[String] identifier[getLabel] operator[SEP] identifier[HasOther] identifier[e] operator[SEP] { identifier[List] operator[<] identifier[LangString] operator[>] identifier[labels] operator[=] operator[SEP] operator[SEP] identifier[HasLabel] operator[SEP] identifier[e] operator[SEP] operat...
static String stripMappingPath(String url, UriMapping mapping) { String relativeUrl = url; // Uri mapping String mappingPath; if (mapping == null) { mappingPath = null; } else { mappingPath = mapping.getPath(); } // Remove mapping path ...
class class_name[name] begin[{] method[stripMappingPath, return_type[type[String]], modifier[static], parameter[url, mapping]] begin[{] local_variable[type[String], relativeUrl] local_variable[type[String], mappingPath] if[binary_operation[member[.mapping], ==, literal[null]]] b...
Keyword[static] identifier[String] identifier[stripMappingPath] operator[SEP] identifier[String] identifier[url] , identifier[UriMapping] identifier[mapping] operator[SEP] { identifier[String] identifier[relativeUrl] operator[=] identifier[url] operator[SEP] identifier[String] identifier[mappingPath] operator[S...
@GwtCompatible(serializable = true) public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet(Iterable<E> elements) { if (elements instanceof ImmutableEnumSet) { return (ImmutableEnumSet<E>) elements; } else if (elements instanceof Collection) { Collection<E> collection = (Collection<E>) ...
class class_name[name] begin[{] method[immutableEnumSet, return_type[type[ImmutableSet]], modifier[public static], parameter[elements]] begin[{] if[binary_operation[member[.elements], instanceof, type[ImmutableEnumSet]]] begin[{] return[Cast(expression=MemberReference(member=element...
annotation[@] identifier[GwtCompatible] operator[SEP] identifier[serializable] operator[=] literal[boolean] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Enum] operator[<] identifier[E] operator[>] operator[>] identifier[ImmutableSet] operator[<] identifier[E] opera...
@SuppressWarnings("unchecked") public static <T extends Number> T parseNumber(String text, Class<T> targetClass) { Assert.notNull(text, "Text must not be null"); Assert.notNull(targetClass, "Target class must not be null"); String trimmed = StringUtils.trimAllWhitespace(text); if (B...
class class_name[name] begin[{] method[parseNumber, return_type[type[T]], modifier[public static], parameter[text, targetClass]] begin[{] call[Assert.notNull, parameter[member[.text], literal["Text must not be null"]]] call[Assert.notNull, parameter[member[.targetClass], literal...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Number] operator[>] identifier[T] identifier[parseNumber] operator[SEP] identifier[String] identifier[text] , identifier[Class] operator[<] identi...
public void transferBackToVocabCache(VocabCache cache, boolean emptyHolder) { if (!(cache instanceof InMemoryLookupCache)) throw new IllegalStateException("Sorry, only InMemoryLookupCache use implemented."); // make sure that huffman codes are updated before transfer List<Vocabulary...
class class_name[name] begin[{] method[transferBackToVocabCache, return_type[void], modifier[public], parameter[cache, emptyHolder]] begin[{] if[binary_operation[member[.cache], instanceof, type[InMemoryLookupCache]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op...
Keyword[public] Keyword[void] identifier[transferBackToVocabCache] operator[SEP] identifier[VocabCache] identifier[cache] , Keyword[boolean] identifier[emptyHolder] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[cache] Keyword[instanceof] identifier[InMemoryLookupCache] operator[...
public String writeFeature(SimpleGeometry geom) { if (geom instanceof Point) return writePoint((Point)geom); else if (geom instanceof Line) return writeLine((Line)geom); else if (geom instanceof Polygon) return writePolygon((Polygon)geom); else return null; }
class class_name[name] begin[{] method[writeFeature, return_type[type[String]], modifier[public], parameter[geom]] begin[{] if[binary_operation[member[.geom], instanceof, type[Point]]] begin[{] return[call[.writePoint, parameter[Cast(expression=MemberReference(member=geom, postfix_operators=[],...
Keyword[public] identifier[String] identifier[writeFeature] operator[SEP] identifier[SimpleGeometry] identifier[geom] operator[SEP] { Keyword[if] operator[SEP] identifier[geom] Keyword[instanceof] identifier[Point] operator[SEP] Keyword[return] identifier[writePoint] operator[SEP] operator[SEP] identifier[Point]...
public static Map<String, String> backRequestByMap(Map<String, String> reqData) { return SDKUtil.convertResultStringToMap(backRequest(reqData)); }
class class_name[name] begin[{] method[backRequestByMap, return_type[type[Map]], modifier[public static], parameter[reqData]] begin[{] return[call[SDKUtil.convertResultStringToMap, parameter[call[.backRequest, parameter[member[.reqData]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[backRequestByMap] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[reqData] operator[SEP] { Keyword[return] identifier[SDKUtil] oper...
public ArchiveCoordinateModel getSingleOrCreate(String groupId, String artifactId, String version) { ArchiveCoordinateModel archive = findSingle(groupId, artifactId, version); if (archive != null) return archive; else return create().setGroupId(groupId).setArtifactId(...
class class_name[name] begin[{] method[getSingleOrCreate, return_type[type[ArchiveCoordinateModel]], modifier[public], parameter[groupId, artifactId, version]] begin[{] local_variable[type[ArchiveCoordinateModel], archive] if[binary_operation[member[.archive], !=, literal[null]]] begin[...
Keyword[public] identifier[ArchiveCoordinateModel] identifier[getSingleOrCreate] operator[SEP] identifier[String] identifier[groupId] , identifier[String] identifier[artifactId] , identifier[String] identifier[version] operator[SEP] { identifier[ArchiveCoordinateModel] identifier[archive] operator[=] identifie...
public static void listStatusForLeafDir(FileSystem fs, FileStatus pathStatus, List<FileStatus> acc) throws IOException { if (!pathStatus.isDir()) return; FileStatus[] fileStatusResults = fs.listStatus(pathStatus.getPath()); if (fileStatusResults == null) { throw new IOException("Path...
class class_name[name] begin[{] method[listStatusForLeafDir, return_type[void], modifier[public static], parameter[fs, pathStatus, acc]] begin[{] if[call[pathStatus.isDir, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[FileStatus], file...
Keyword[public] Keyword[static] Keyword[void] identifier[listStatusForLeafDir] operator[SEP] identifier[FileSystem] identifier[fs] , identifier[FileStatus] identifier[pathStatus] , identifier[List] operator[<] identifier[FileStatus] operator[>] identifier[acc] operator[SEP] Keyword[throws] identifier[IOException] { ...
private void checkForeignKeyForM2M(SQLiteDatabaseSchema currentSchema, final SQLiteEntity currentEntity, ClassName m2mEntity) { // check for m2m relationship if (m2mEntity != null) { SQLiteEntity temp = currentSchema.getEntity(m2mEntity.toString()); AssertKripton.asserTrueOrForeignKeyNotFound(currentEntity...
class class_name[name] begin[{] method[checkForeignKeyForM2M, return_type[void], modifier[private], parameter[currentSchema, currentEntity, m2mEntity]] begin[{] if[binary_operation[member[.m2mEntity], !=, literal[null]]] begin[{] local_variable[type[SQLiteEntity], temp] ...
Keyword[private] Keyword[void] identifier[checkForeignKeyForM2M] operator[SEP] identifier[SQLiteDatabaseSchema] identifier[currentSchema] , Keyword[final] identifier[SQLiteEntity] identifier[currentEntity] , identifier[ClassName] identifier[m2mEntity] operator[SEP] { Keyword[if] operator[SEP] identifier[m2mEnt...
private byte[] getClientProof() { byte[] clientKey = hmac(saltedPassword, CLIENT_KEY); byte[] storedKey = digest.digest(clientKey); byte[] clientSignature = hmac(storedKey, getAuthMessage().getBytes()); xor(clientKey, clientSignature); return clientKey; }
class class_name[name] begin[{] method[getClientProof, return_type[type[byte]], modifier[private], parameter[]] begin[{] local_variable[type[byte], clientKey] local_variable[type[byte], storedKey] local_variable[type[byte], clientSignature] call[.xor, parameter[member[.c...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[getClientProof] operator[SEP] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[clientKey] operator[=] identifier[hmac] operator[SEP] identifier[saltedPassword] , identifier[CLIENT_KEY] operator[SEP] operator[SEP] Keyword[b...
public void marshall(AllocatePrivateVirtualInterfaceRequest allocatePrivateVirtualInterfaceRequest, ProtocolMarshaller protocolMarshaller) { if (allocatePrivateVirtualInterfaceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[allocatePrivateVirtualInterfaceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.allocatePrivateVirtualInterfaceRequest], ==, literal[null]]] begin[{] ThrowStatement(expr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AllocatePrivateVirtualInterfaceRequest] identifier[allocatePrivateVirtualInterfaceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[allocatePrivateVirtualInterf...
public static int cuMemsetD2D32(CUdeviceptr dstDevice, long dstPitch, int ui, long Width, long Height) { return checkResult(cuMemsetD2D32Native(dstDevice, dstPitch, ui, Width, Height)); }
class class_name[name] begin[{] method[cuMemsetD2D32, return_type[type[int]], modifier[public static], parameter[dstDevice, dstPitch, ui, Width, Height]] begin[{] return[call[.checkResult, parameter[call[.cuMemsetD2D32Native, parameter[member[.dstDevice], member[.dstPitch], member[.ui], member[.Width],...
Keyword[public] Keyword[static] Keyword[int] identifier[cuMemsetD2D32] operator[SEP] identifier[CUdeviceptr] identifier[dstDevice] , Keyword[long] identifier[dstPitch] , Keyword[int] identifier[ui] , Keyword[long] identifier[Width] , Keyword[long] identifier[Height] operator[SEP] { Keyword[return] identifier...
public boolean duplicatesInStack(LinkedList<SchemaTableTree> distinctQueryStack) { Set<SchemaTable> alreadyVisited = new HashSet<>(); for (SchemaTableTree schemaTableTree : distinctQueryStack) { if (!alreadyVisited.contains(schemaTableTree.getSchemaTable())) { alreadyVisited....
class class_name[name] begin[{] method[duplicatesInStack, return_type[type[boolean]], modifier[public], parameter[distinctQueryStack]] begin[{] local_variable[type[Set], alreadyVisited] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Me...
Keyword[public] Keyword[boolean] identifier[duplicatesInStack] operator[SEP] identifier[LinkedList] operator[<] identifier[SchemaTableTree] operator[>] identifier[distinctQueryStack] operator[SEP] { identifier[Set] operator[<] identifier[SchemaTable] operator[>] identifier[alreadyVisited] operator[=] Keyword[new...
public static long[] xorI(long[] v, long[] o) { assert (o.length <= v.length) : "Bit set sizes do not agree."; for(int i = 0; i < o.length; i++) { v[i] ^= o[i]; } return v; }
class class_name[name] begin[{] method[xorI, return_type[type[long]], modifier[public static], parameter[v, o]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=o, selectors=[]), operandr=MemberReference(memb...
Keyword[public] Keyword[static] Keyword[long] operator[SEP] operator[SEP] identifier[xorI] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[v] , Keyword[long] operator[SEP] operator[SEP] identifier[o] operator[SEP] { Keyword[assert] operator[SEP] identifier[o] operator[SEP] identifier[length] ...
@Override public CommercePriceList fetchByCompanyId_First(long companyId, OrderByComparator<CommercePriceList> orderByComparator) { List<CommercePriceList> list = findByCompanyId(companyId, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
class class_name[name] begin[{] method[fetchByCompanyId_First, return_type[type[CommercePriceList]], modifier[public], parameter[companyId, orderByComparator]] begin[{] local_variable[type[List], list] if[call[list.isEmpty, parameter[]]] begin[{] return[call[list.get, parame...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceList] identifier[fetchByCompanyId_First] operator[SEP] Keyword[long] identifier[companyId] , identifier[OrderByComparator] operator[<] identifier[CommercePriceList] operator[>] identifier[orderByComparator] operator[SEP] { identifier[Lis...
public void setGeoMatchSets(java.util.Collection<GeoMatchSetSummary> geoMatchSets) { if (geoMatchSets == null) { this.geoMatchSets = null; return; } this.geoMatchSets = new java.util.ArrayList<GeoMatchSetSummary>(geoMatchSets); }
class class_name[name] begin[{] method[setGeoMatchSets, return_type[void], modifier[public], parameter[geoMatchSets]] begin[{] if[binary_operation[member[.geoMatchSets], ==, literal[null]]] begin[{] assign[THIS[member[None.geoMatchSets]], literal[null]] retur...
Keyword[public] Keyword[void] identifier[setGeoMatchSets] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[GeoMatchSetSummary] operator[>] identifier[geoMatchSets] operator[SEP] { Keyword[if] operator[SEP] identifier[geoMatchSets] operator[...
private boolean delete(final File f) throws IOException { if (f.isDirectory()) { final File[] files = f.listFiles(); if (files != null) { for (File file : files) { final boolean del = delete(file); if (!del) { return false; } } } } else { return f.delete(); } // Now di...
class class_name[name] begin[{] method[delete, return_type[type[boolean]], modifier[private], parameter[f]] begin[{] if[call[f.isDirectory, parameter[]]] begin[{] local_variable[type[File], files] if[binary_operation[member[.files], !=, literal[null]]] begin[...
Keyword[private] Keyword[boolean] identifier[delete] operator[SEP] Keyword[final] identifier[File] identifier[f] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[f] operator[SEP] identifier[isDirectory] operator[SEP] operator[SEP] operator[SEP] { Keyword[fin...
public Map<String, INDArray> feedForward(INDArray[] input, boolean train) { return feedForward(input, train, true); }
class class_name[name] begin[{] method[feedForward, return_type[type[Map]], modifier[public], parameter[input, train]] begin[{] return[call[.feedForward, parameter[member[.input], member[.train], literal[true]]]] end[}] END[}]
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[INDArray] operator[>] identifier[feedForward] operator[SEP] identifier[INDArray] operator[SEP] operator[SEP] identifier[input] , Keyword[boolean] identifier[train] operator[SEP] { Keyword[return] identifier[feedForward] operator[SEP] i...
public void marshall(UpdateAcceleratorRequest updateAcceleratorRequest, ProtocolMarshaller protocolMarshaller) { if (updateAcceleratorRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateA...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateAcceleratorRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateAcceleratorRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateAcceleratorRequest] identifier[updateAcceleratorRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateAcceleratorRequest] operator[==] Other[null] opera...
@TargetApi(Build.VERSION_CODES.FROYO) public static boolean hasBluetoothFeature(PackageManager manager) { return manager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); }
class class_name[name] begin[{] method[hasBluetoothFeature, return_type[type[boolean]], modifier[public static], parameter[manager]] begin[{] return[call[manager.hasSystemFeature, parameter[member[PackageManager.FEATURE_BLUETOOTH]]]] end[}] END[}]
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[FROYO] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[hasBluetoothFeature] operator[SEP] identifier[PackageManager] identifier[manager] operator[SEP] { K...
public void startNewKeyGroup(int keyGroupId) throws IOException { if (isKeyGroupAlreadyStarted(keyGroupId)) { throw new IOException("Key group " + keyGroupId + " already registered!"); } keyGroupRangeOffsets.setKeyGroupOffset(keyGroupId, delegate.getPos()); currentKeyGroup = keyGroupId; }
class class_name[name] begin[{] method[startNewKeyGroup, return_type[void], modifier[public], parameter[keyGroupId]] begin[{] if[call[.isKeyGroupAlreadyStarted, parameter[member[.keyGroupId]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Binar...
Keyword[public] Keyword[void] identifier[startNewKeyGroup] operator[SEP] Keyword[int] identifier[keyGroupId] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[isKeyGroupAlreadyStarted] operator[SEP] identifier[keyGroupId] operator[SEP] operator[SEP] { Keyword...
public String getTableNames(boolean bAddQuotes) { return (m_tableName == null) ? Record.formatTableNames(JNLP_FILE_FILE, bAddQuotes) : super.getTableNames(bAddQuotes); }
class class_name[name] begin[{] method[getTableNames, return_type[type[String]], modifier[public], parameter[bAddQuotes]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m_tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan...
Keyword[public] identifier[String] identifier[getTableNames] operator[SEP] Keyword[boolean] identifier[bAddQuotes] operator[SEP] { Keyword[return] operator[SEP] identifier[m_tableName] operator[==] Other[null] operator[SEP] operator[?] identifier[Record] operator[SEP] identifier[formatTableNames] operator[SEP] i...
public MetadataBuilder addDataSource(@NotNull InputStream dataSource, String path, boolean closeAfterBuild) { checkHashingResultIsNotSet(); filesPaths.add(path); dataSources.add(new StreamBasedHolderImpl(dataSource, closeAfterBuild)); return this; }
class class_name[name] begin[{] method[addDataSource, return_type[type[MetadataBuilder]], modifier[public], parameter[dataSource, path, closeAfterBuild]] begin[{] call[.checkHashingResultIsNotSet, parameter[]] call[filesPaths.add, parameter[member[.path]]] call[d...
Keyword[public] identifier[MetadataBuilder] identifier[addDataSource] operator[SEP] annotation[@] identifier[NotNull] identifier[InputStream] identifier[dataSource] , identifier[String] identifier[path] , Keyword[boolean] identifier[closeAfterBuild] operator[SEP] { identifier[checkHashingResultIsNotSet] operat...
public static <D, V> AnnotationId<D, V> get(TypeId<D> declaringType, TypeId<V> type, ElementType annotatedElement) { if (annotatedElement != ElementType.TYPE && annotatedElement != ElementType.METHOD && annotatedElement != ElementTy...
class class_name[name] begin[{] method[get, return_type[type[AnnotationId]], modifier[public static], parameter[declaringType, type, annotatedElement]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.annotatedElement], !=, member[ElementType.TYPE]], &&, b...
Keyword[public] Keyword[static] operator[<] identifier[D] , identifier[V] operator[>] identifier[AnnotationId] operator[<] identifier[D] , identifier[V] operator[>] identifier[get] operator[SEP] identifier[TypeId] operator[<] identifier[D] operator[>] identifier[declaringType] , identifier[TypeId] operator[<] identi...
@Override public CommerceNotificationQueueEntry fetchByPrimaryKey( Serializable primaryKey) { Serializable serializable = entityCache.getResult(CommerceNotificationQueueEntryModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationQueueEntryImpl.class, primaryKey); if (serializable == nullModel) { return null...
class class_name[name] begin[{] method[fetchByPrimaryKey, return_type[type[CommerceNotificationQueueEntry]], modifier[public], parameter[primaryKey]] begin[{] local_variable[type[Serializable], serializable] if[binary_operation[member[.serializable], ==, member[.nullModel]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceNotificationQueueEntry] identifier[fetchByPrimaryKey] operator[SEP] identifier[Serializable] identifier[primaryKey] operator[SEP] { identifier[Serializable] identifier[serializable] operator[=] identifier[entityCache] operator[SEP] identifier[...
public List<ICalendar> all() throws IOException { StreamReader reader = constructReader(); if (index != null) { reader.setScribeIndex(index); } try { List<ICalendar> icals = new ArrayList<ICalendar>(); ICalendar ical; while ((ical = reader.readNext()) != null) { if (warnings != null) { war...
class class_name[name] begin[{] method[all, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[StreamReader], reader] if[binary_operation[member[.index], !=, literal[null]]] begin[{] call[reader.setScribeIndex, parameter[member[....
Keyword[public] identifier[List] operator[<] identifier[ICalendar] operator[>] identifier[all] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[StreamReader] identifier[reader] operator[=] identifier[constructReader] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[S...
private static byte[] writeExtendingClass(Class<?> type) { String parentClazz = ClassUtils.classNameToInternalClassName(type.getName()); String clazz = parentClazz + SUFFIX; ByteArrayOutputStream bIn = new ByteArrayOutputStream(1000); // 1000 should be large enough to fit the entire class try(D...
class class_name[name] begin[{] method[writeExtendingClass, return_type[type[byte]], modifier[private static], parameter[type]] begin[{] local_variable[type[String], parentClazz] local_variable[type[String], clazz] local_variable[type[ByteArrayOutputStream], bIn] TryStatement(bl...
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[writeExtendingClass] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { identifier[String] identifier[parentClazz] operator[=] identifier[ClassUtils] operator[SEP] identifier[cl...
public int fromInputStream(final InputStream in) throws IOException { final OMemoryStream out = new OMemoryStream(); try { final byte[] buffer = new byte[OMemoryStream.DEF_SIZE]; int readBytesCount; while (true) { readBytesCount = in.read(buffer, 0, buffer.length); if (r...
class class_name[name] begin[{] method[fromInputStream, return_type[type[int]], modifier[public], parameter[in]] begin[{] local_variable[type[OMemoryStream], out] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator...
Keyword[public] Keyword[int] identifier[fromInputStream] operator[SEP] Keyword[final] identifier[InputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[OMemoryStream] identifier[out] operator[=] Keyword[new] identifier[OMemoryStream] operator[SEP] operator[S...
protected static WstxInputSource sourceFrom(WstxInputSource parent, ReaderConfig cfg, String refName, int xmlVersion, Object o) throws IllegalArgumentException, IOException, XMLStreamException { if (o instanceof Source) { if (o instanceof StreamSource) { retur...
class class_name[name] begin[{] method[sourceFrom, return_type[type[WstxInputSource]], modifier[static protected], parameter[parent, cfg, refName, xmlVersion, o]] begin[{] if[binary_operation[member[.o], instanceof, type[Source]]] begin[{] if[binary_operation[member[.o],...
Keyword[protected] Keyword[static] identifier[WstxInputSource] identifier[sourceFrom] operator[SEP] identifier[WstxInputSource] identifier[parent] , identifier[ReaderConfig] identifier[cfg] , identifier[String] identifier[refName] , Keyword[int] identifier[xmlVersion] , identifier[Object] identifier[o] operator[SEP...
@NotNull public static <T> ComparatorCompat<T> nullsFirst(@Nullable Comparator<? super T> comparator) { return nullsComparator(true, comparator); }
class class_name[name] begin[{] method[nullsFirst, return_type[type[ComparatorCompat]], modifier[public static], parameter[comparator]] begin[{] return[call[.nullsComparator, parameter[literal[true], member[.comparator]]]] end[}] END[}]
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ComparatorCompat] operator[<] identifier[T] operator[>] identifier[nullsFirst] operator[SEP] annotation[@] identifier[Nullable] identifier[Comparator] operator[<] operator[?] Keyword[super] identifier[T] o...
public Object unmarshalRootElement(Node node, BaseXmlTrxMessageIn soapTrxMessage) throws Exception { /* try { // create a JAXBContext capable of handling classes generated into // the primer.po package String strSOAPPackage = (String)((TrxMessageHeader)soapTrxMessage.getMe...
class class_name[name] begin[{] method[unmarshalRootElement, return_type[type[Object]], modifier[public], parameter[node, soapTrxMessage]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(...
Keyword[public] identifier[Object] identifier[unmarshalRootElement] operator[SEP] identifier[Node] identifier[node] , identifier[BaseXmlTrxMessageIn] identifier[soapTrxMessage] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] Keyword[super] operator[SEP] identifier[unmarshalRootElement] ope...
public T min() { TObjectIntIterator<T> iter = counts.iterator(); int minCount = Integer.MAX_VALUE; T min = null; while (iter.hasNext()) { iter.advance(); int count = iter.value(); if (count < minCount) { min = iter.key(); ...
class class_name[name] begin[{] method[min, return_type[type[T]], modifier[public], parameter[]] begin[{] local_variable[type[TObjectIntIterator], iter] local_variable[type[int], minCount] local_variable[type[T], min] while[call[iter.hasNext, parameter[]]] begin[{] ...
Keyword[public] identifier[T] identifier[min] operator[SEP] operator[SEP] { identifier[TObjectIntIterator] operator[<] identifier[T] operator[>] identifier[iter] operator[=] identifier[counts] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[minCount] operator[...
public static int rawUncompress(byte[] input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException { if (input == null || output == null) { throw new NullPointerException("input or output is null"); } return impl.rawUncompress(input, i...
class class_name[name] begin[{] method[rawUncompress, return_type[type[int]], modifier[public static], parameter[input, inputOffset, inputLength, output, outputOffset]] begin[{] if[binary_operation[binary_operation[member[.input], ==, literal[null]], ||, binary_operation[member[.output], ==, li...
Keyword[public] Keyword[static] Keyword[int] identifier[rawUncompress] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[input] , Keyword[int] identifier[inputOffset] , Keyword[int] identifier[inputLength] , identifier[Object] identifier[output] , Keyword[int] identifier[outputOffset] operator[SEP]...
@Given("^I connect to Zookeeper at '(.+)'$") public void connectToZk(String zookeeperHosts) throws InterruptedException { commonspec.getZookeeperSecClient().setZookeeperSecConnection(zookeeperHosts, 3000); commonspec.getZookeeperSecClient().connectZk(); }
class class_name[name] begin[{] method[connectToZk, return_type[void], modifier[public], parameter[zookeeperHosts]] begin[{] call[commonspec.getZookeeperSecClient, parameter[]] call[commonspec.getZookeeperSecClient, parameter[]] end[}] END[}]
annotation[@] identifier[Given] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[connectToZk] operator[SEP] identifier[String] identifier[zookeeperHosts] operator[SEP] Keyword[throws] identifier[InterruptedException] { identifier[commonspec] operator[SEP] identifier[getZookeep...
private AccessResult checkExceptionDestinationAccess(JsMessage msg, ConnectionImpl conn, String alternateUser, boolean defaultInUse) { if...
class class_name[name] begin[{] method[checkExceptionDestinationAccess, return_type[type[AccessResult]], modifier[private], parameter[msg, conn, alternateUser, defaultInUse]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, paramete...
Keyword[private] identifier[AccessResult] identifier[checkExceptionDestinationAccess] operator[SEP] identifier[JsMessage] identifier[msg] , identifier[ConnectionImpl] identifier[conn] , identifier[String] identifier[alternateUser] , Keyword[boolean] identifier[defaultInUse] operator[SEP] { Keyword[if] operato...
protected String renderLink(String fullPath) { renderedLinks.add(new RenderedLink(fullPath, bundler.getConfig().isDebugModeOn())); return fullPath; }
class class_name[name] begin[{] method[renderLink, return_type[type[String]], modifier[protected], parameter[fullPath]] begin[{] call[renderedLinks.add, parameter[ClassCreator(arguments=[MemberReference(member=fullPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Metho...
Keyword[protected] identifier[String] identifier[renderLink] operator[SEP] identifier[String] identifier[fullPath] operator[SEP] { identifier[renderedLinks] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[RenderedLink] operator[SEP] identifier[fullPath] , identifier[bundler] operator[SEP] id...
public Val exec(AstRoot ast, AstFunction scope) { sanity_check_refs(null); // Execute Env env = new Env(this); env._scope = scope; Val val = ast.exec(env); // Execute assert env.sp() == 0; // Stack balanced at end sanity_check_refs(val); return val; // Can ret...
class class_name[name] begin[{] method[exec, return_type[type[Val]], modifier[public], parameter[ast, scope]] begin[{] call[.sanity_check_refs, parameter[literal[null]]] local_variable[type[Env], env] assign[member[env._scope], member[.scope]] local_variable[type...
Keyword[public] identifier[Val] identifier[exec] operator[SEP] identifier[AstRoot] identifier[ast] , identifier[AstFunction] identifier[scope] operator[SEP] { identifier[sanity_check_refs] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[Env] identifier[env] operator[=] Keyword[new] identifier[E...
public static List toList( JSONArray jsonArray, Class objectClass, Map classMap ) { JsonConfig jsonConfig = new JsonConfig(); jsonConfig.setRootClass( objectClass ); jsonConfig.setClassMap( classMap ); return toList( jsonArray, jsonConfig ); }
class class_name[name] begin[{] method[toList, return_type[type[List]], modifier[public static], parameter[jsonArray, objectClass, classMap]] begin[{] local_variable[type[JsonConfig], jsonConfig] call[jsonConfig.setRootClass, parameter[member[.objectClass]]] call[jsonCon...
Keyword[public] Keyword[static] identifier[List] identifier[toList] operator[SEP] identifier[JSONArray] identifier[jsonArray] , identifier[Class] identifier[objectClass] , identifier[Map] identifier[classMap] operator[SEP] { identifier[JsonConfig] identifier[jsonConfig] operator[=] Keyword[new] identifier[Json...
public static AbstractUserObject getUserObject(final String _name) throws EFapsException { AbstractUserObject ret = UUIDUtil.isUUID(_name) ? Role.get(UUID.fromString(_name)) : Role.get(_name); if (ret == null) { ret = UUIDUtil.isUUID(_name) ? Group.get(UUID.fromString(_name)) : G...
class class_name[name] begin[{] method[getUserObject, return_type[type[AbstractUserObject]], modifier[public static], parameter[_name]] begin[{] local_variable[type[AbstractUserObject], ret] if[binary_operation[member[.ret], ==, literal[null]]] begin[{] assign[me...
Keyword[public] Keyword[static] identifier[AbstractUserObject] identifier[getUserObject] operator[SEP] Keyword[final] identifier[String] identifier[_name] operator[SEP] Keyword[throws] identifier[EFapsException] { identifier[AbstractUserObject] identifier[ret] operator[=] identifier[UUIDUtil] operator[SEP] ident...
public static ExpectedCondition<Boolean> urlToBe(final String url) { return new ExpectedCondition<Boolean>() { private String currentUrl = ""; @Override public Boolean apply(WebDriver driver) { currentUrl = driver.getCurrentUrl(); return currentUrl != null && currentUrl.equals(url...
class class_name[name] begin[{] method[urlToBe, return_type[type[ExpectedCondition]], modifier[public static], parameter[url]] begin[{] return[ClassCreator(arguments=[], body=[FieldDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[ExpectedCondition] operator[<] identifier[Boolean] operator[>] identifier[urlToBe] operator[SEP] Keyword[final] identifier[String] identifier[url] operator[SEP] { Keyword[return] Keyword[new] identifier[ExpectedCondition] operator[<] identifier[Boolean] operator[>] oper...
private void init(Op operator, Object[] values) { this.operator = operator; this.values = Sets.newHashSetWithExpectedSize(values.length); for(Object v:values) this.values.add(v); }
class class_name[name] begin[{] method[init, return_type[void], modifier[private], parameter[operator, values]] begin[{] assign[THIS[member[None.operator]], member[.operator]] assign[THIS[member[None.values]], call[Sets.newHashSetWithExpectedSize, parameter[member[values.length]...
Keyword[private] Keyword[void] identifier[init] operator[SEP] identifier[Op] identifier[operator] , identifier[Object] operator[SEP] operator[SEP] identifier[values] operator[SEP] { Keyword[this] operator[SEP] identifier[operator] operator[=] identifier[operator] operator[SEP] Keyword[this] operator[SEP] identi...
public FinishRequest toFinishRequest(boolean includeHeaders) { if (includeHeaders) { return new FinishRequest(body, copyHeaders(headers), statusCode); } else { String mime = null; if (body!=null) { mime = "text/plain"; if (headers!=null...
class class_name[name] begin[{] method[toFinishRequest, return_type[type[FinishRequest]], modifier[public], parameter[includeHeaders]] begin[{] if[member[.includeHeaders]] begin[{] return[ClassCreator(arguments=[MemberReference(member=body, postfix_operators=[], prefix_operators=[],...
Keyword[public] identifier[FinishRequest] identifier[toFinishRequest] operator[SEP] Keyword[boolean] identifier[includeHeaders] operator[SEP] { Keyword[if] operator[SEP] identifier[includeHeaders] operator[SEP] { Keyword[return] Keyword[new] identifier[FinishRequest] operator[SEP] identifier[body] , ...
public static Locale makeLocale(final String val) throws Throwable { String lang = null; String country = ""; // NOT null for Locale String variant = ""; if (val == null) { throw new Exception("Bad Locale: NULL"); } if (val.length() == 2) { lang = val; } else { int pos = ...
class class_name[name] begin[{] method[makeLocale, return_type[type[Locale]], modifier[public static], parameter[val]] begin[{] local_variable[type[String], lang] local_variable[type[String], country] local_variable[type[String], variant] if[binary_operation[member[.val]...
Keyword[public] Keyword[static] identifier[Locale] identifier[makeLocale] operator[SEP] Keyword[final] identifier[String] identifier[val] operator[SEP] Keyword[throws] identifier[Throwable] { identifier[String] identifier[lang] operator[=] Other[null] operator[SEP] identifier[String] identifier[country] operator...
public AccessTokenInfo validateAccessToken( AuthleteApi api, String accessToken, String[] requiredScopes, String requiredSubject, String clientCertificate) throws WebApplicationException { try { // Validate the access token and obtain the information about it. ret...
class class_name[name] begin[{] method[validateAccessToken, return_type[type[AccessTokenInfo]], modifier[public], parameter[api, accessToken, requiredScopes, requiredSubject, clientCertificate]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=api, ...
Keyword[public] identifier[AccessTokenInfo] identifier[validateAccessToken] operator[SEP] identifier[AuthleteApi] identifier[api] , identifier[String] identifier[accessToken] , identifier[String] operator[SEP] operator[SEP] identifier[requiredScopes] , identifier[String] identifier[requiredSubject] , identifier[Str...
public void setClientInfo( Properties properties) throws SQLClientInfoException { try { validate(); } catch (SQLException e) { throw new SQLClientInfoException(e.getMessage(), e.getSQLState(), e.getErrorCode(), (Map<String, ClientInfoStatus>) null...
class class_name[name] begin[{] method[setClientInfo, return_type[void], modifier[public], parameter[properties]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=validate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_argumen...
Keyword[public] Keyword[void] identifier[setClientInfo] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] Keyword[throws] identifier[SQLClientInfoException] { Keyword[try] { identifier[validate] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[S...
public static RecordingTransactionBase wrap(TransactionBase txb, Predicate<LogEntry> filter) { return new RecordingTransactionBase(txb, filter); }
class class_name[name] begin[{] method[wrap, return_type[type[RecordingTransactionBase]], modifier[public static], parameter[txb, filter]] begin[{] return[ClassCreator(arguments=[MemberReference(member=txb, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fil...
Keyword[public] Keyword[static] identifier[RecordingTransactionBase] identifier[wrap] operator[SEP] identifier[TransactionBase] identifier[txb] , identifier[Predicate] operator[<] identifier[LogEntry] operator[>] identifier[filter] operator[SEP] { Keyword[return] Keyword[new] identifier[RecordingTransactionBase...
@Override public List<ChannelInformation> listChannels() { List<Channel> channels = channelDirectory.getChannels(); List<ChannelInformation> channelInformationList = new LinkedList<ChannelInformation>(); for (Channel channel : channels) { ChannelInformation channelInfo = new Ch...
class class_name[name] begin[{] method[listChannels, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], channels] local_variable[type[List], channelInformationList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[ChannelInformation] operator[>] identifier[listChannels] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Channel] operator[>] identifier[channels] operator[=] identifier[channelDirectory] operator[SEP...
@Override public IVersion getMaximum() { switch (operator) { case "<": return version.getPrevVersion(); case "<=": return version; case ">": return version.getNextVersion(); case ">=": return null; default: throw new IllegalArgumentException(...
class class_name[name] begin[{] method[getMaximum, return_type[type[IVersion]], modifier[public], parameter[]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="<")], statements=[ReturnStatement(expression=M...
annotation[@] identifier[Override] Keyword[public] identifier[IVersion] identifier[getMaximum] operator[SEP] operator[SEP] { Keyword[switch] operator[SEP] identifier[operator] operator[SEP] { Keyword[case] literal[String] operator[:] Keyword[return] identifier[version] operator[SEP] identifier[getPre...
public synchronized void rewind() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "rewind"); checkReleased(); if (receivedBuffer != null) { receivedBuffer.rewind(); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled...
class class_name[name] begin[{] method[rewind, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], m...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[rewind] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] op...
public static PlotCanvas plot(double[][] data, int xbins, int ybins) { return plot(data, xbins, ybins, null); }
class class_name[name] begin[{] method[plot, return_type[type[PlotCanvas]], modifier[public static], parameter[data, xbins, ybins]] begin[{] return[call[.plot, parameter[member[.data], member[.xbins], member[.ybins], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[PlotCanvas] identifier[plot] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[xbins] , Keyword[int] identifier[ybins] operator[SEP] { Keyword[return] identifier[plot] operator[SEP] identif...
@Override public Sql[] generateSql(final InsertStatement statement, final Database database, final SqlGeneratorChain sqlGeneratorChain) { for (final Entry<String, Object> entry : statement.getColumnValues().entrySet()) { entry.setValue(handleColumnValue(entry.getValue(), database)); } ...
class class_name[name] begin[{] method[generateSql, return_type[type[Sql]], modifier[public], parameter[statement, database, sqlGeneratorChain]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Metho...
annotation[@] identifier[Override] Keyword[public] identifier[Sql] operator[SEP] operator[SEP] identifier[generateSql] operator[SEP] Keyword[final] identifier[InsertStatement] identifier[statement] , Keyword[final] identifier[Database] identifier[database] , Keyword[final] identifier[SqlGeneratorChain] identifier[sql...
void exit(final OtpErlangPid from, final OtpErlangPid to, final OtpErlangObject reason) { try { super.sendExit(from, to, reason); } catch (final Exception e) { } }
class class_name[name] begin[{] method[exit, return_type[void], modifier[default], parameter[from, to, reason]] begin[{] TryStatement(block=[StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=from, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
Keyword[void] identifier[exit] operator[SEP] Keyword[final] identifier[OtpErlangPid] identifier[from] , Keyword[final] identifier[OtpErlangPid] identifier[to] , Keyword[final] identifier[OtpErlangObject] identifier[reason] operator[SEP] { Keyword[try] { Keyword[super] operator[SEP] identifier[sendEx...
private static String removeQuotes( String classpath ) { if( classpath.startsWith( "\"" ) ) { classpath = classpath.substring( 1 ); } if( classpath.endsWith( "\"" ) ) { classpath = classpath.substring( 0, classpath.length()-1 ); } return classpath; }
class class_name[name] begin[{] method[removeQuotes, return_type[type[String]], modifier[private static], parameter[classpath]] begin[{] if[call[classpath.startsWith, parameter[literal["\""]]]] begin[{] assign[member[.classpath], call[classpath.substring, parameter[liter...
Keyword[private] Keyword[static] identifier[String] identifier[removeQuotes] operator[SEP] identifier[String] identifier[classpath] operator[SEP] { Keyword[if] operator[SEP] identifier[classpath] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifie...
private static QName getPortQName(ClassInfo classInfo, String namespace, String wsName, String wsPortName, String suffix) { String portName; if (wsPortName != null && !wsPortName.isEmpty()) { portName = wsPortName.trim(); } else { if (wsName != null && !wsName.isEmpty()) ...
class class_name[name] begin[{] method[getPortQName, return_type[type[QName]], modifier[private static], parameter[classInfo, namespace, wsName, wsPortName, suffix]] begin[{] local_variable[type[String], portName] if[binary_operation[binary_operation[member[.wsPortName], !=, literal[nul...
Keyword[private] Keyword[static] identifier[QName] identifier[getPortQName] operator[SEP] identifier[ClassInfo] identifier[classInfo] , identifier[String] identifier[namespace] , identifier[String] identifier[wsName] , identifier[String] identifier[wsPortName] , identifier[String] identifier[suffix] operator[SEP] ...
protected LocaleResolver resolveLocale() { LocaleResolver localeResolver = null; String localeResolverBeanId = getSetting(RequestRule.LOCALE_RESOLVER_SETTING_NAME); if (localeResolverBeanId != null) { localeResolver = getBean(localeResolverBeanId, LocaleResolver.class); l...
class class_name[name] begin[{] method[resolveLocale, return_type[type[LocaleResolver]], modifier[protected], parameter[]] begin[{] local_variable[type[LocaleResolver], localeResolver] local_variable[type[String], localeResolverBeanId] if[binary_operation[member[.localeResolverB...
Keyword[protected] identifier[LocaleResolver] identifier[resolveLocale] operator[SEP] operator[SEP] { identifier[LocaleResolver] identifier[localeResolver] operator[=] Other[null] operator[SEP] identifier[String] identifier[localeResolverBeanId] operator[=] identifier[getSetting] operator[SEP] identifier[Request...
public void registerSearchView(@NonNull Activity activity, SearchBoxViewModel searchBoxViewModel) { this.searchBoxViewModel = searchBoxViewModel; final SearchViewFacade searchView = searchBoxViewModel.getSearchView(); final SearchManager searchManager = (SearchManager) searchView.getContext().ge...
class class_name[name] begin[{] method[registerSearchView, return_type[void], modifier[public], parameter[activity, searchBoxViewModel]] begin[{] assign[THIS[member[None.searchBoxViewModel]], member[.searchBoxViewModel]] local_variable[type[SearchViewFacade], searchView] local_v...
Keyword[public] Keyword[void] identifier[registerSearchView] operator[SEP] annotation[@] identifier[NonNull] identifier[Activity] identifier[activity] , identifier[SearchBoxViewModel] identifier[searchBoxViewModel] operator[SEP] { Keyword[this] operator[SEP] identifier[searchBoxViewModel] operator[=] identifier...
public void setText(String strText) { if ((strText == null) || (strText.length() == 0)) { if (!m_bInFocus) { strText = m_strDescription; this.changeFont(true); } } else this.changeFont(false); sup...
class class_name[name] begin[{] method[setText, return_type[void], modifier[public], parameter[strText]] begin[{] if[binary_operation[binary_operation[member[.strText], ==, literal[null]], ||, binary_operation[call[strText.length, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setText] operator[SEP] identifier[String] identifier[strText] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[strText] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[strText] operator[SEP] identifier[length] operator[SEP] o...
public void readByteArray(byte [] b, int off, int len) throws WireParseException { require(len); byteBuffer.get(b, off, len); }
class class_name[name] begin[{] method[readByteArray, return_type[void], modifier[public], parameter[b, off, len]] begin[{] call[.require, parameter[member[.len]]] call[byteBuffer.get, parameter[member[.b], member[.off], member[.len]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[readByteArray] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[WireParseException] { identifier[require] operator[SEP] identifier[len] operator[S...
protected int _documentRoot(int nodeIdentifier) { if(nodeIdentifier==NULL) return NULL; for (int parent=_parent(nodeIdentifier); parent!=NULL; nodeIdentifier=parent,parent=_parent(nodeIdentifier)) ; return nodeIdentifier; }
class class_name[name] begin[{] method[_documentRoot, return_type[type[int]], modifier[protected], parameter[nodeIdentifier]] begin[{] if[binary_operation[member[.nodeIdentifier], ==, member[.NULL]]] begin[{] return[member[.NULL]] else begin[{] None end[}] ForStatement(b...
Keyword[protected] Keyword[int] identifier[_documentRoot] operator[SEP] Keyword[int] identifier[nodeIdentifier] operator[SEP] { Keyword[if] operator[SEP] identifier[nodeIdentifier] operator[==] identifier[NULL] operator[SEP] Keyword[return] identifier[NULL] operator[SEP] Keyword[for] operator[SEP] Keyword[int] i...
public boolean load(InputStream settingStream) throws IOException { super.clear(); BufferedReader reader = null; try { reader = IoUtil.getReader(settingStream, charset); // 分组 String group = null; LinkedHashSet<String> valueSet = null; while (true) { String line = reader.readLine(); ...
class class_name[name] begin[{] method[load, return_type[type[boolean]], modifier[public], parameter[settingStream]] begin[{] SuperMethodInvocation(arguments=[], member=clear, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) local_variable[ty...
Keyword[public] Keyword[boolean] identifier[load] operator[SEP] identifier[InputStream] identifier[settingStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[super] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[BufferedReader] identifier[reader] operator...
@Override public SearchResult getGroups(String pattern, int limit) throws RegistryException { if (pattern == null) { throw new IllegalArgumentException("pattern is null"); } if (pattern.isEmpty()) { throw new IllegalArgumentException("pattern is an empty String"); ...
class class_name[name] begin[{] method[getGroups, return_type[type[SearchResult]], modifier[public], parameter[pattern, limit]] begin[{] if[binary_operation[member[.pattern], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],...
annotation[@] identifier[Override] Keyword[public] identifier[SearchResult] identifier[getGroups] operator[SEP] identifier[String] identifier[pattern] , Keyword[int] identifier[limit] operator[SEP] Keyword[throws] identifier[RegistryException] { Keyword[if] operator[SEP] identifier[pattern] operator[==] Other[n...
public static ConnectionInformation fromDriver(Driver driver, Connection connection, long timeToGetConnectionNs) { final ConnectionInformation connectionInformation = new ConnectionInformation(); connectionInformation.driver = driver; connectionInformation.connection = connection; connectionInformation....
class class_name[name] begin[{] method[fromDriver, return_type[type[ConnectionInformation]], modifier[public static], parameter[driver, connection, timeToGetConnectionNs]] begin[{] local_variable[type[ConnectionInformation], connectionInformation] assign[member[connectionInformation.dri...
Keyword[public] Keyword[static] identifier[ConnectionInformation] identifier[fromDriver] operator[SEP] identifier[Driver] identifier[driver] , identifier[Connection] identifier[connection] , Keyword[long] identifier[timeToGetConnectionNs] operator[SEP] { Keyword[final] identifier[ConnectionInformation] identif...
public boolean canMerge(Space other) { if (!hasJoinedEdge(other)) { return false; } if ((x == other.x) && (width == other.width)) { return true; } if ((y == other.y) && (height == other.height)) { return true; } return false; }
class class_name[name] begin[{] method[canMerge, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[call[.hasJoinedEdge, parameter[member[.other]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation...
Keyword[public] Keyword[boolean] identifier[canMerge] operator[SEP] identifier[Space] identifier[other] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[hasJoinedEdge] operator[SEP] identifier[other] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } ...
public Iterable<? extends WindupVertexFrame> findVariable(String name, int maxDepth) { int currentDepth = 0; Iterable<? extends WindupVertexFrame> result = null; for (Map<String, Iterable<? extends WindupVertexFrame>> frame : deque) { result = frame.get(name); ...
class class_name[name] begin[{] method[findVariable, return_type[type[Iterable]], modifier[public], parameter[name, maxDepth]] begin[{] local_variable[type[int], currentDepth] local_variable[type[Iterable], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpres...
Keyword[public] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[WindupVertexFrame] operator[>] identifier[findVariable] operator[SEP] identifier[String] identifier[name] , Keyword[int] identifier[maxDepth] operator[SEP] { Keyword[int] identifier[currentDepth] operator[=] Other[0] operat...
public String encodeIntArray(int[] input) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); int length = input.length; dos.writeInt(length); for (int i=0; i < length; i++) { dos.writeInt(inp...
class class_name[name] begin[{] method[encodeIntArray, return_type[type[String]], modifier[public], parameter[input]] begin[{] local_variable[type[ByteArrayOutputStream], bos] local_variable[type[DataOutputStream], dos] local_variable[type[int], length] call[dos.writeInt...
Keyword[public] identifier[String] identifier[encodeIntArray] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[input] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteArrayOutputStream] identifier[bos] operator[=] Keyword[new] identifier[ByteArrayOutputStream] operator[SEP]...
public String getProperty(final String name) { String property = null; if (customProperties != null) { property = customProperties.getProperty(name); } if (property == null) { property = SSLConfigManager.getInstance().getGlobalProperty(name); } r...
class class_name[name] begin[{] method[getProperty, return_type[type[String]], modifier[public], parameter[name]] begin[{] local_variable[type[String], property] if[binary_operation[member[.customProperties], !=, literal[null]]] begin[{] assign[member[.property],...
Keyword[public] identifier[String] identifier[getProperty] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { identifier[String] identifier[property] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[customProperties] operator[!=] Other[null] operator[SEP] ...
public static <S> void removeSolutionsFromList(List<S> solutionList, int numberOfSolutionsToRemove) { if (solutionList.size() < numberOfSolutionsToRemove) { throw new JMetalException("The list size (" + solutionList.size() + ") is lower than " + "the number of solutions to remove (" + numberOfSoluti...
class class_name[name] begin[{] method[removeSolutionsFromList, return_type[void], modifier[public static], parameter[solutionList, numberOfSolutionsToRemove]] begin[{] if[binary_operation[call[solutionList.size, parameter[]], <, member[.numberOfSolutionsToRemove]]] begin[{] ThrowSt...
Keyword[public] Keyword[static] operator[<] identifier[S] operator[>] Keyword[void] identifier[removeSolutionsFromList] operator[SEP] identifier[List] operator[<] identifier[S] operator[>] identifier[solutionList] , Keyword[int] identifier[numberOfSolutionsToRemove] operator[SEP] { Keyword[if] operator[SEP] ide...
public static KeyStore loadKeyStore(InputStream keyStore, String password) throws CertificateException, NoSuchAlgorithmException, IOException, KeyStoreException { try { KeyStore trustStore = KeyStore.getInstance("JKS"); trustStore.load(keyStore, password.toCharArray()); ...
class class_name[name] begin[{] method[loadKeyStore, return_type[type[KeyStore]], modifier[public static], parameter[keyStore, password]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(...
Keyword[public] Keyword[static] identifier[KeyStore] identifier[loadKeyStore] operator[SEP] identifier[InputStream] identifier[keyStore] , identifier[String] identifier[password] operator[SEP] Keyword[throws] identifier[CertificateException] , identifier[NoSuchAlgorithmException] , identifier[IOException] , identif...
private void removeObjectId(int dtx, int dty) { final int tw = transformable.getWidth() / map.getTileWidth(); final int th = transformable.getHeight() / map.getTileHeight(); for (int tx = dtx; tx < dtx + tw; tx++) { for (int ty = dty; ty < dty + th; ty++) { ...
class class_name[name] begin[{] method[removeObjectId, return_type[void], modifier[private], parameter[dtx, dty]] begin[{] local_variable[type[int], tw] local_variable[type[int], th] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, st...
Keyword[private] Keyword[void] identifier[removeObjectId] operator[SEP] Keyword[int] identifier[dtx] , Keyword[int] identifier[dty] operator[SEP] { Keyword[final] Keyword[int] identifier[tw] operator[=] identifier[transformable] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[/] identifi...
@Override public synchronized void init(HiveConf hiveConf) { ensureCurrentState(STATE.NOTINITED); this.hiveConf = hiveConf; changeState(STATE.INITED); LOG.info("Service:" + getName() + " is inited."); }
class class_name[name] begin[{] method[init, return_type[void], modifier[synchronized public], parameter[hiveConf]] begin[{] call[.ensureCurrentState, parameter[member[STATE.NOTINITED]]] assign[THIS[member[None.hiveConf]], member[.hiveConf]] call[.changeState, pa...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[init] operator[SEP] identifier[HiveConf] identifier[hiveConf] operator[SEP] { identifier[ensureCurrentState] operator[SEP] identifier[STATE] operator[SEP] identifier[NOTINITED] operator[SEP] operator[SEP] Keyword[th...
public long getCount(Date fromWhen, Date toWhen) { return getCount(fromWhen.getTime(), toWhen.getTime(), true, false); }
class class_name[name] begin[{] method[getCount, return_type[type[long]], modifier[public], parameter[fromWhen, toWhen]] begin[{] return[call[.getCount, parameter[call[fromWhen.getTime, parameter[]], call[toWhen.getTime, parameter[]], literal[true], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[long] identifier[getCount] operator[SEP] identifier[Date] identifier[fromWhen] , identifier[Date] identifier[toWhen] operator[SEP] { Keyword[return] identifier[getCount] operator[SEP] identifier[fromWhen] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] , identifier[toWhen]...
private static int getTimeToLive(final Ticket ticket) { val expTime = ticket.getExpirationPolicy().getTimeToLive().intValue(); if (TimeUnit.SECONDS.toDays(expTime) >= MAX_EXP_TIME_IN_DAYS) { LOGGER.warn("Any expiration time larger than [{}] days in seconds is considered absolute (as in a Uni...
class class_name[name] begin[{] method[getTimeToLive, return_type[type[int]], modifier[private static], parameter[ticket]] begin[{] local_variable[type[val], expTime] if[binary_operation[call[TimeUnit.SECONDS.toDays, parameter[member[.expTime]]], >=, member[.MAX_EXP_TIME_IN_DAYS]]] begi...
Keyword[private] Keyword[static] Keyword[int] identifier[getTimeToLive] operator[SEP] Keyword[final] identifier[Ticket] identifier[ticket] operator[SEP] { identifier[val] identifier[expTime] operator[=] identifier[ticket] operator[SEP] identifier[getExpirationPolicy] operator[SEP] operator[SEP] operator[SEP] ide...
public DescribeRepositoriesRequest withRepositoryNames(String... repositoryNames) { if (this.repositoryNames == null) { setRepositoryNames(new java.util.ArrayList<String>(repositoryNames.length)); } for (String ele : repositoryNames) { this.repositoryNames.add(ele); ...
class class_name[name] begin[{] method[withRepositoryNames, return_type[type[DescribeRepositoriesRequest]], modifier[public], parameter[repositoryNames]] begin[{] if[binary_operation[THIS[member[None.repositoryNames]], ==, literal[null]]] begin[{] call[.setRepositoryName...
Keyword[public] identifier[DescribeRepositoriesRequest] identifier[withRepositoryNames] operator[SEP] identifier[String] operator[...] identifier[repositoryNames] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[repositoryNames] operator[==] Other[null] operator[SEP] { ...
@Override public void addListener(PromiseListener<Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> listener) { _task.addListener(listener); }
class class_name[name] begin[{] method[addListener, return_type[void], modifier[public], parameter[listener]] begin[{] call[_task.addListener, parameter[member[.listener]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addListener] operator[SEP] identifier[PromiseListener] operator[<] identifier[Tuple13] operator[<] identifier[T1] , identifier[T2] , identifier[T3] , identifier[T4] , identifier[T5] , identifier[T6] , identifier[T7] , identifier[T8] , i...
@Override public ListSmartHomeAppliancesResult listSmartHomeAppliances(ListSmartHomeAppliancesRequest request) { request = beforeClientExecution(request); return executeListSmartHomeAppliances(request); }
class class_name[name] begin[{] method[listSmartHomeAppliances, return_type[type[ListSmartHomeAppliancesResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListSmartHomeAppliance...
annotation[@] identifier[Override] Keyword[public] identifier[ListSmartHomeAppliancesResult] identifier[listSmartHomeAppliances] operator[SEP] identifier[ListSmartHomeAppliancesRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[...
public void joinThread(long timeout) { // take local ref copy, so can reliably check if ref is null, Thread local_thread_ref = thread; if (local_thread_ref != null) { try { long millis = 0l; if (log.isDebugEnabled()) ...
class class_name[name] begin[{] method[joinThread, return_type[void], modifier[public], parameter[timeout]] begin[{] local_variable[type[Thread], local_thread_ref] if[binary_operation[member[.local_thread_ref], !=, literal[null]]] begin[{] TryStatement(block=[LocalVariableDe...
Keyword[public] Keyword[void] identifier[joinThread] operator[SEP] Keyword[long] identifier[timeout] operator[SEP] { identifier[Thread] identifier[local_thread_ref] operator[=] identifier[thread] operator[SEP] Keyword[if] operator[SEP] identifier[local_thread_ref] operator[!=] Other[null] operator[SEP] { ...
private void addToUsedVariables(final java.util.List<VariableAndValue> usedVariables, final MethodAndParameter top, final Variable variable) { VariableAndValue variableAndValue = new VariableAndValue(variable, top.getParameter()); if (!usedVariables.contains(variableAndValue)) { usedVariable...
class class_name[name] begin[{] method[addToUsedVariables, return_type[void], modifier[private], parameter[usedVariables, top, variable]] begin[{] local_variable[type[VariableAndValue], variableAndValue] if[call[usedVariables.contains, parameter[member[.variableAndValue]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[addToUsedVariables] operator[SEP] Keyword[final] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[VariableAndValue] operator[>] identifier[usedVariables] , Keyword[final] identifier[MethodAndParameter] identifier[top] , Key...
public static <T, E extends Throwable> Set<T> filter(Set<T> coll, APredicate<? super T, E> pred) throws E { final Set<T> result = createEmptySetOfType(coll, false); for(T o: coll) { if(pred.apply(o)) { result.add(o); } } return result; }
class class_name[name] begin[{] method[filter, return_type[type[Set]], modifier[public static], parameter[coll, pred]] begin[{] local_variable[type[Set], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=o, ...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[E] Keyword[extends] identifier[Throwable] operator[>] identifier[Set] operator[<] identifier[T] operator[>] identifier[filter] operator[SEP] identifier[Set] operator[<] identifier[T] operator[>] identifier[coll] , identifier[APredicate] operator[<...
private static void checkRange(int fromIndex, int toIndex) { if (fromIndex < 0) throw new IndexOutOfBoundsException("fromIndex < 0: " + fromIndex); if (toIndex < 0) throw new IndexOutOfBoundsException("toIndex < 0: " + toIndex); if (fromIndex > toIndex) throw new IndexOutOfBoundsException("fromIndex: " +...
class class_name[name] begin[{] method[checkRange, return_type[void], modifier[private static], parameter[fromIndex, toIndex]] begin[{] if[binary_operation[member[.fromIndex], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_ope...
Keyword[private] Keyword[static] Keyword[void] identifier[checkRange] operator[SEP] Keyword[int] identifier[fromIndex] , Keyword[int] identifier[toIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[fromIndex] operator[<] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsExce...
private static Get generateTokenRequest(Intoken intoken, String title) { return new ApiRequestBuilder() // .action("query") // .formatXml() // .param("prop", "info") // .param("intoken", intoken.toString().toLowerCase()) // .param("titles", MediaWiki.urlEncode(title)) // ...
class class_name[name] begin[{] method[generateTokenRequest, return_type[type[Get]], modifier[private static], parameter[intoken, title]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodIn...
Keyword[private] Keyword[static] identifier[Get] identifier[generateTokenRequest] operator[SEP] identifier[Intoken] identifier[intoken] , identifier[String] identifier[title] operator[SEP] { Keyword[return] Keyword[new] identifier[ApiRequestBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[action] o...
@Beta public <T> T GroovyMock( @NamedParams({ @NamedParam(value = "name", type = String.class), @NamedParam(value = "additionalInterfaces", type = List.class), @NamedParam(value = "defaultResponse", type = IDefaultResponse.class), @NamedParam(value = "verified", type = Boolean.class), ...
class class_name[name] begin[{] method[GroovyMock, return_type[type[T]], modifier[public], parameter[options, type, interactions]] begin[{] call[.invalidMockCreation, parameter[]] return[literal[null]] end[}] END[}]
annotation[@] identifier[Beta] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[GroovyMock] operator[SEP] annotation[@] identifier[NamedParams] operator[SEP] { annotation[@] identifier[NamedParam] operator[SEP] identifier[value] operator[=] literal[String] , identifier[type] operat...
private static void removeMethodByName(Method method, List<Method> methods) { if(methods != null) { Iterator<Method> itr = methods.iterator(); Method aMethod = null; while(itr.hasNext()) { aMethod = itr.next(); if(aMethod.getName().equals(method.getName())) { itr.remove()...
class class_name[name] begin[{] method[removeMethodByName, return_type[void], modifier[private static], parameter[method, methods]] begin[{] if[binary_operation[member[.methods], !=, literal[null]]] begin[{] local_variable[type[Iterator], itr] local_variable[type[Method]...
Keyword[private] Keyword[static] Keyword[void] identifier[removeMethodByName] operator[SEP] identifier[Method] identifier[method] , identifier[List] operator[<] identifier[Method] operator[>] identifier[methods] operator[SEP] { Keyword[if] operator[SEP] identifier[methods] operator[!=] Other[null] operator[SEP]...
public static java.util.List<com.liferay.commerce.product.model.CPSpecificationOption> getCPSpecificationOptions( int start, int end) { return getService().getCPSpecificationOptions(start, end); }
class class_name[name] begin[{] method[getCPSpecificationOptions, return_type[type[java]], modifier[public static], parameter[start, end]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[model] operator[SEP] identifier[CPSpecificationOption...
public QYResultType delete(String userId){ BeanUtil.requireNonNull(userId, "userId is null"); String url = BASE_API_URL + "cgi-bin/user/delete?access_token=#&userid=" + userId; BaseResponse response = executeGet(url); return QYResultType.get(response.getErrcode()); }
class class_name[name] begin[{] method[delete, return_type[type[QYResultType]], modifier[public], parameter[userId]] begin[{] call[BeanUtil.requireNonNull, parameter[member[.userId], literal["userId is null"]]] local_variable[type[String], url] local_variable[type[BaseResponse],...
Keyword[public] identifier[QYResultType] identifier[delete] operator[SEP] identifier[String] identifier[userId] operator[SEP] { identifier[BeanUtil] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[userId] , literal[String] operator[SEP] operator[SEP] identifier[String] identifier[url] operator...
public static String[] splitSuffix(String suffix) { String theSuffix = suffix; String[] parts; if (StringUtils.isBlank(theSuffix)) { // no suffix given - return empty list parts = new String[0]; } else { // remove leading slash if (theSuffix.startsWith(ESCAPED_SLASH)) { ...
class class_name[name] begin[{] method[splitSuffix, return_type[type[String]], modifier[public static], parameter[suffix]] begin[{] local_variable[type[String], theSuffix] local_variable[type[String], parts] if[call[StringUtils.isBlank, parameter[member[.theSuffix]]]] begin[{] ...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[splitSuffix] operator[SEP] identifier[String] identifier[suffix] operator[SEP] { identifier[String] identifier[theSuffix] operator[=] identifier[suffix] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifie...
public void start(int mode) { final String methodName = "start"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } final Set listeners; synchronized (ACTIVE_MESSAGING_ENGINES) { // Do we already have a set of active MEs on this bus?...
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[mode]] begin[{] local_variable[type[String], methodName] if[call[TRACE.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.TRACE], member[....
Keyword[public] Keyword[void] identifier[start] operator[SEP] Keyword[int] identifier[mode] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[TRACE] operator[SEP] identifier[isEntryEnabled] operator[SEP] operato...
public static boolean isArrayOfUnboundedTypeVariablesOrObjects(Type[] types) { for (Type type : types) { if (Object.class.equals(type)) { continue; } if (type instanceof TypeVariable<?>) { Type[] bounds = ((TypeVariable<?>) type).getBounds(); ...
class class_name[name] begin[{] method[isArrayOfUnboundedTypeVariablesOrObjects, return_type[type[boolean]], modifier[public static], parameter[types]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isArrayOfUnboundedTypeVariablesOrObjects] operator[SEP] identifier[Type] operator[SEP] operator[SEP] identifier[types] operator[SEP] { Keyword[for] operator[SEP] identifier[Type] identifier[type] operator[:] identifier[types] operator[SEP] { ...
public GenericDictionaryEntry parse(String entry) { String[] fields = parseLine(entry); String surface = fields[0]; short leftId = Short.parseShort(fields[1]); short rightId = Short.parseShort(fields[2]); short wordCost = Short.parseShort(fields[3]); List<String> pos = ...
class class_name[name] begin[{] method[parse, return_type[type[GenericDictionaryEntry]], modifier[public], parameter[entry]] begin[{] local_variable[type[String], fields] local_variable[type[String], surface] local_variable[type[short], leftId] local_variable[type[short], rightI...
Keyword[public] identifier[GenericDictionaryEntry] identifier[parse] operator[SEP] identifier[String] identifier[entry] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[fields] operator[=] identifier[parseLine] operator[SEP] identifier[entry] operator[SEP] operator[SEP] identifier[String...
public static <F1, T1, F2, T2, KeyT extends F1, TestT extends F2> Function<EvalPair<? extends KeyT, ? extends TestT>, EvalPair<T1, T2>> functionsOnBoth( final Function<F1, T1> keyFunc, final Function<F2,T2> testFunc) { return new Function<EvalPair<? extends KeyT, ? extends TestT>, EvalPair<T1, T2>>() { ...
class class_name[name] begin[{] method[functionsOnBoth, return_type[type[Function]], modifier[public static], parameter[keyFunc, testFunc]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodIn...
Keyword[public] Keyword[static] operator[<] identifier[F1] , identifier[T1] , identifier[F2] , identifier[T2] , identifier[KeyT] Keyword[extends] identifier[F1] , identifier[TestT] Keyword[extends] identifier[F2] operator[>] identifier[Function] operator[<] identifier[EvalPair] operator[<] operator[?] Keyword[exte...