code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final ComputeThreatListDiffResponse computeThreatListDiff( ThreatType threatType, ByteString versionToken, ComputeThreatListDiffRequest.Constraints constraints) { ComputeThreatListDiffRequest request = ComputeThreatListDiffRequest.newBuilder() .setThreatType(threatType)...
class class_name[name] begin[{] method[computeThreatListDiff, return_type[type[ComputeThreatListDiffResponse]], modifier[final public], parameter[threatType, versionToken, constraints]] begin[{] local_variable[type[ComputeThreatListDiffRequest], request] return[call[.computeThreatListDiff, para...
Keyword[public] Keyword[final] identifier[ComputeThreatListDiffResponse] identifier[computeThreatListDiff] operator[SEP] identifier[ThreatType] identifier[threatType] , identifier[ByteString] identifier[versionToken] , identifier[ComputeThreatListDiffRequest] operator[SEP] identifier[Constraints] identifier[constrain...
@Override public IRingSet getConnectedRings(IRing ring) { logger.debug("Getting connected rings for ring: ", ring); return super.getConnectedRings(ring); }
class class_name[name] begin[{] method[getConnectedRings, return_type[type[IRingSet]], modifier[public], parameter[ring]] begin[{] call[logger.debug, parameter[literal["Getting connected rings for ring: "], member[.ring]]] return[SuperMethodInvocation(arguments=[MemberReference(member=r...
annotation[@] identifier[Override] Keyword[public] identifier[IRingSet] identifier[getConnectedRings] operator[SEP] identifier[IRing] identifier[ring] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[ring] operator[SEP] operator[SEP] Keyword[return] K...
public JobTerminateHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; }
class class_name[name] begin[{] method[withLastModified, return_type[type[JobTerminateHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModified]], literal[nu...
Keyword[public] identifier[JobTerminateHeaders] identifier[withLastModified] operator[SEP] identifier[DateTime] identifier[lastModified] operator[SEP] { Keyword[if] operator[SEP] identifier[lastModified] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[lastModified] oper...
public static Principal getAuthenticatedPrincipalFrom(Assertion assertion) { final List<Authentication> chain = assertion.getChainedAuthentications(); final Principal principal = chain.get(chain.size() - 1).getPrincipal(); return principal; }
class class_name[name] begin[{] method[getAuthenticatedPrincipalFrom, return_type[type[Principal]], modifier[public static], parameter[assertion]] begin[{] local_variable[type[List], chain] local_variable[type[Principal], principal] return[member[.principal]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Principal] identifier[getAuthenticatedPrincipalFrom] operator[SEP] identifier[Assertion] identifier[assertion] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Authentication] operator[>] identifier[chain] operator[=] identifier[assertion] operator...
public static void distribute(Object obj, String fileName, Configuration conf) throws FileNotFoundException, IOException, URISyntaxException { FileSystem fS = FileSystem.get(conf); // set the temporary folder for Pangool instances to the temporary of the // user that is running the Job // This fo...
class class_name[name] begin[{] method[distribute, return_type[void], modifier[public static], parameter[obj, fileName, conf]] begin[{] local_variable[type[FileSystem], fS] local_variable[type[String], tmpHdfsFolder] local_variable[type[Path], toHdfs] if[call[fS.exists, ...
Keyword[public] Keyword[static] Keyword[void] identifier[distribute] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[fileName] , identifier[Configuration] identifier[conf] operator[SEP] Keyword[throws] identifier[FileNotFoundException] , identifier[IOException] , identifier[URISynta...
public void setValue(String attributeName, Object value) { if (attributeName == null || value == null) { throw new NullPointerException(); } values.put(attributeName, value); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[attributeName, value]] begin[{] if[binary_operation[binary_operation[member[.attributeName], ==, literal[null]], ||, binary_operation[member[.value], ==, literal[null]]]] begin[{] ThrowSt...
Keyword[public] Keyword[void] identifier[setValue] operator[SEP] identifier[String] identifier[attributeName] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[attributeName] operator[==] Other[null] operator[||] identifier[value] operator[==] Other[null] operator[SEP] ...
private void setSsoTokenCredential(Subject subject, String principalAccessId) throws CredentialException { try { TokenManager tokenManager = tokenManagerRef.getService(); SingleSignonToken ssoToken = null; Set<Token> tokens = subject.getPrivateCredentials(...
class class_name[name] begin[{] method[setSsoTokenCredential, return_type[void], modifier[private], parameter[subject, principalAccessId]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], memb...
Keyword[private] Keyword[void] identifier[setSsoTokenCredential] operator[SEP] identifier[Subject] identifier[subject] , identifier[String] identifier[principalAccessId] operator[SEP] Keyword[throws] identifier[CredentialException] { Keyword[try] { identifier[TokenManager] identifier[tokenManager] op...
public Kafka sinkPartitionerCustom(Class<? extends FlinkKafkaPartitioner> partitionerClass) { sinkPartitionerType = CONNECTOR_SINK_PARTITIONER_VALUE_CUSTOM; sinkPartitionerClass = Preconditions.checkNotNull(partitionerClass); return this; }
class class_name[name] begin[{] method[sinkPartitionerCustom, return_type[type[Kafka]], modifier[public], parameter[partitionerClass]] begin[{] assign[member[.sinkPartitionerType], member[.CONNECTOR_SINK_PARTITIONER_VALUE_CUSTOM]] assign[member[.sinkPartitionerClass], call[Preco...
Keyword[public] identifier[Kafka] identifier[sinkPartitionerCustom] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[FlinkKafkaPartitioner] operator[>] identifier[partitionerClass] operator[SEP] { identifier[sinkPartitionerType] operator[=] identifier[CONNECTOR_SINK_PARTITIONER...
private static @NotNull TimeUnit pickUnit(final @NotNull Duration iso) { final long millis = iso.toMillis(); // Special-case values under 1 second if (millis < 1000) return TimeUnit.MILLISECONDS; final long SECOND = 1000; final long MINUTE = 60 * SECOND; final long HOUR = 60 * MINUTE; final long DA...
class class_name[name] begin[{] method[pickUnit, return_type[type[TimeUnit]], modifier[private static], parameter[iso]] begin[{] local_variable[type[long], millis] if[binary_operation[member[.millis], <, literal[1000]]] begin[{] return[member[TimeUnit.MILLISECONDS]] else begin[{...
Keyword[private] Keyword[static] annotation[@] identifier[NotNull] identifier[TimeUnit] identifier[pickUnit] operator[SEP] Keyword[final] annotation[@] identifier[NotNull] identifier[Duration] identifier[iso] operator[SEP] { Keyword[final] Keyword[long] identifier[millis] operator[=] identifier[iso] operator[SEP...
Geometry buffer(Geometry geometry, double distance, SpatialReference sr, double densify_dist, int max_vertex_in_complete_circle, ProgressTracker progress_tracker) { if (geometry == null) throw new IllegalArgumentException(); if (densify_dist < 0) throw new IllegalArgumentException(); if (geometry.is...
class class_name[name] begin[{] method[buffer, return_type[type[Geometry]], modifier[default], parameter[geometry, distance, sr, densify_dist, max_vertex_in_complete_circle, progress_tracker]] begin[{] if[binary_operation[member[.geometry], ==, literal[null]]] begin[{] ThrowStatement(expression...
identifier[Geometry] identifier[buffer] operator[SEP] identifier[Geometry] identifier[geometry] , Keyword[double] identifier[distance] , identifier[SpatialReference] identifier[sr] , Keyword[double] identifier[densify_dist] , Keyword[int] identifier[max_vertex_in_complete_circle] , identifier[ProgressTracker] iden...
@NotNull public LongStream mapIndexed(int from, int step, @NotNull IndexedLongUnaryOperator mapper) { return new LongStream(params, new LongMapIndexed( new PrimitiveIndexedIterator.OfLong(from, step, iterator), mapper)); }
class class_name[name] begin[{] method[mapIndexed, return_type[type[LongStream]], modifier[public], parameter[from, step, mapper]] begin[{] return[ClassCreator(arguments=[MemberReference(member=params, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[ClassCr...
annotation[@] identifier[NotNull] Keyword[public] identifier[LongStream] identifier[mapIndexed] operator[SEP] Keyword[int] identifier[from] , Keyword[int] identifier[step] , annotation[@] identifier[NotNull] identifier[IndexedLongUnaryOperator] identifier[mapper] operator[SEP] { Keyword[return] Keyword[new] id...
public DescribableList<ViewProperty,ViewPropertyDescriptor> getProperties() { // readResolve was the best place to do this, but for compatibility reasons, // this class can no longer have readResolve() (the mechanism itself isn't suitable for class hierarchy) // see JENKINS-9431 // ...
class class_name[name] begin[{] method[getProperties, return_type[type[DescribableList]], modifier[public], parameter[]] begin[{] SYNCHRONIZED[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PropertyLis...
Keyword[public] identifier[DescribableList] operator[<] identifier[ViewProperty] , identifier[ViewPropertyDescriptor] operator[>] identifier[getProperties] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[PropertyList] operator[SEP] Keyword[class] operator[SEP] { Keyword[i...
public static boolean isValid( String variant, int yearOfEra, int month, int dayOfMonth ) { EraYearMonthDaySystem<HijriCalendar> calsys = CALSYS.get(variant); return ((calsys != null) && calsys.isValid(HijriEra.ANNO_HEGIRAE, yearOfEra, month, dayOfMonth)); }
class class_name[name] begin[{] method[isValid, return_type[type[boolean]], modifier[public static], parameter[variant, yearOfEra, month, dayOfMonth]] begin[{] local_variable[type[EraYearMonthDaySystem], calsys] return[binary_operation[binary_operation[member[.calsys], !=, literal[null]], &&, c...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValid] operator[SEP] identifier[String] identifier[variant] , Keyword[int] identifier[yearOfEra] , Keyword[int] identifier[month] , Keyword[int] identifier[dayOfMonth] operator[SEP] { identifier[EraYearMonthDaySystem] operator[<] identifier[HijriCa...
@Override public void setCompletedPrefix(long newPrefix) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCompletedPrefix", Long.valueOf(newPrefix)); // If the completedPrefix is updated then update the // other control variables....
class class_name[name] begin[{] method[setCompletedPrefix, return_type[void], modifier[public], parameter[newPrefix]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[T...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setCompletedPrefix] operator[SEP] Keyword[long] identifier[newPrefix] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[...
public static TextArea wrap(final Element element) { // Assert that the element is attached. assert Document.get().getBody().isOrHasChild(element); final TextArea textArea = new TextArea(element); // Mark it attached and remember it for cleanup. textArea.onAttach(); Roo...
class class_name[name] begin[{] method[wrap, return_type[type[TextArea]], modifier[public static], parameter[element]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=Document, selectors=[MethodInvocation(arguments=[], m...
Keyword[public] Keyword[static] identifier[TextArea] identifier[wrap] operator[SEP] Keyword[final] identifier[Element] identifier[element] operator[SEP] { Keyword[assert] identifier[Document] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getBody] operator[SEP] operator[SEP] o...
@Override public long count() throws PersistenceException { logger.debug("enter - count()"); try { Transaction xaction = Transaction.getInstance(true); Counter counter = getCounter(null); try { Map<String,Object> results; long coun...
class class_name[name] begin[{] method[count, return_type[type[long]], modifier[public], parameter[]] begin[{] call[logger.debug, parameter[literal["enter - count()"]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initialize...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[count] operator[SEP] operator[SEP] Keyword[throws] identifier[PersistenceException] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[try] { identifier[Trans...
protected double[] firstHitNB(Instance inst) { int countFired = 0; boolean fired = false; double[] votes = new double[this.numClass]; for (int j = 0; j < this.ruleSet.size(); j++) { if (this.ruleSet.get(j).ruleEvaluate(inst) == true) { countFired = countFired + 1; if (this.ruleSet.get(j).obserClassDi...
class class_name[name] begin[{] method[firstHitNB, return_type[type[double]], modifier[protected], parameter[inst]] begin[{] local_variable[type[int], countFired] local_variable[type[boolean], fired] local_variable[type[double], votes] ForStatement(body=BlockStatement(label=None...
Keyword[protected] Keyword[double] operator[SEP] operator[SEP] identifier[firstHitNB] operator[SEP] identifier[Instance] identifier[inst] operator[SEP] { Keyword[int] identifier[countFired] operator[=] Other[0] operator[SEP] Keyword[boolean] identifier[fired] operator[=] literal[boolean] operator[SEP] Keyword[do...
public void replaceFromWith(int from, java.util.Collection other) { checkRange(from,size); java.util.Iterator e = other.iterator(); int index=from; int limit = Math.min(size-from, other.size()); for (int i=0; i<limit; i++) elements[index++] = e.next(); //delta }
class class_name[name] begin[{] method[replaceFromWith, return_type[void], modifier[public], parameter[from, other]] begin[{] call[.checkRange, parameter[member[.from], member[.size]]] local_variable[type[java], e] local_variable[type[int], index] local_variable[type[int...
Keyword[public] Keyword[void] identifier[replaceFromWith] operator[SEP] Keyword[int] identifier[from] , identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] identifier[other] operator[SEP] { identifier[checkRange] operator[SEP] identifier[from] , identifier[size] operator[SEP] o...
private void checkForOfTypes(NodeTraversal t, Node forOf) { Node lhs = forOf.getFirstChild(); Node iterable = forOf.getSecondChild(); JSType iterableType = getJSType(iterable); JSType actualType; if (forOf.isForAwaitOf()) { Optional<JSType> maybeType = validator.expectAutoboxesToIte...
class class_name[name] begin[{] method[checkForOfTypes, return_type[void], modifier[private], parameter[t, forOf]] begin[{] local_variable[type[Node], lhs] local_variable[type[Node], iterable] local_variable[type[JSType], iterableType] local_variable[type[JSType], actualType] ...
Keyword[private] Keyword[void] identifier[checkForOfTypes] operator[SEP] identifier[NodeTraversal] identifier[t] , identifier[Node] identifier[forOf] operator[SEP] { identifier[Node] identifier[lhs] operator[=] identifier[forOf] operator[SEP] identifier[getFirstChild] operator[SEP] operator[SEP] operator[SEP] i...
public EClass getIfcCoordinatedUniversalTimeOffset() { if (ifcCoordinatedUniversalTimeOffsetEClass == null) { ifcCoordinatedUniversalTimeOffsetEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(121); } return ifcCoordinatedUniversalTimeOffsetECla...
class class_name[name] begin[{] method[getIfcCoordinatedUniversalTimeOffset, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCoordinatedUniversalTimeOffsetEClass], ==, literal[null]]] begin[{] assign[member[.ifcCoordinate...
Keyword[public] identifier[EClass] identifier[getIfcCoordinatedUniversalTimeOffset] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCoordinatedUniversalTimeOffsetEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCoordinatedUniversalTimeOffsetEClass] operator[=] opera...
@Override @CheckReturnValue public WebhookManager reset(long fields) { super.reset(fields); if ((fields & NAME) == NAME) this.name = null; if ((fields & CHANNEL) == CHANNEL) this.channel = null; if ((fields & AVATAR) == AVATAR) this.avatar ...
class class_name[name] begin[{] method[reset, return_type[type[WebhookManager]], modifier[public], parameter[fields]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=fields, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=reset, postfix_operators=[...
annotation[@] identifier[Override] annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[WebhookManager] identifier[reset] operator[SEP] Keyword[long] identifier[fields] operator[SEP] { Keyword[super] operator[SEP] identifier[reset] operator[SEP] identifier[fields] operator[SEP] operator[SEP] Key...
@SuppressWarnings({ "checkstyle:cyclomaticcomplexity", "checkstyle:npathcomplexity", "checkstyle:nestedifdepth", "checkstyle:parameternumber"}) public static void populateInheritanceContext( JvmDeclaredType jvmElement, JvmTypeReference extendedClass, Iterable<JvmTypeReference> extendedInterfaces, M...
class class_name[name] begin[{] method[populateInheritanceContext, return_type[void], modifier[public static], parameter[jvmElement, extendedClass, extendedInterfaces, finalOperations, overridableOperations, inheritedFields, operationsToImplement, superConstructors, sarlSignatureProvider]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] , literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[populateInheritanceContext] operator[SEP] identifier[JvmDeclaredType] identifier[jvmElement] , identifie...
public static <T> Stream<T> ofNullable(T[] nullable) { return null == nullable ? Stream.empty() : Stream.of(nullable); }
class class_name[name] begin[{] method[ofNullable, return_type[type[Stream]], modifier[public static], parameter[nullable]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operandr=MemberR...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Stream] operator[<] identifier[T] operator[>] identifier[ofNullable] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[nullable] operator[SEP] { Keyword[return] Other[null] operator[==] identifier[nullable] operator...
private int setSecDataArr(HashMap m, ArrayList arr) { if (!m.isEmpty()) { for (int j = 0; j < arr.size(); j++) { if (arr.get(j).equals(m)) { return j + 1; } } arr.add(m); return arr.size(); } else { ...
class class_name[name] begin[{] method[setSecDataArr, return_type[type[int]], modifier[private], parameter[m, arr]] begin[{] if[call[m.isEmpty, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberRef...
Keyword[private] Keyword[int] identifier[setSecDataArr] operator[SEP] identifier[HashMap] identifier[m] , identifier[ArrayList] identifier[arr] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[for...
public static void enableAA(final Graphics pGraphics) { ((Graphics2D) pGraphics).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON ); }
class class_name[name] begin[{] method[enableAA, return_type[void], modifier[public static], parameter[pGraphics]] begin[{] Cast(expression=MemberReference(member=pGraphics, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], n...
Keyword[public] Keyword[static] Keyword[void] identifier[enableAA] operator[SEP] Keyword[final] identifier[Graphics] identifier[pGraphics] operator[SEP] { operator[SEP] operator[SEP] identifier[Graphics2D] operator[SEP] identifier[pGraphics] operator[SEP] operator[SEP] identifier[setRenderingHint] operator[SEP] ...
public AssemblyResponse cancelAssembly(String url) throws RequestException, LocalOperationException { Request request = new Request(this); return new AssemblyResponse(request.delete(url, new HashMap<String, Object>())); }
class class_name[name] begin[{] method[cancelAssembly, return_type[type[AssemblyResponse]], modifier[public], parameter[url]] begin[{] local_variable[type[Request], request] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=url, postfix_operators=[], prefix_opera...
Keyword[public] identifier[AssemblyResponse] identifier[cancelAssembly] operator[SEP] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[RequestException] , identifier[LocalOperationException] { identifier[Request] identifier[request] operator[=] Keyword[new] identifier[Request] operato...
public static String filterStackTraces(String txt) { // Check for stack traces, which we may want to trim StackTraceFlags stackTraceFlags = traceFlags.get(); // We have a little thread-local state machine here with four states controlled by two // booleans. Our triggers are { "unknown/us...
class class_name[name] begin[{] method[filterStackTraces, return_type[type[String]], modifier[public static], parameter[txt]] begin[{] local_variable[type[StackTraceFlags], stackTraceFlags] if[call[txt.startsWith, parameter[literal["\tat "]]]] begin[{] local_variable[type[Pa...
Keyword[public] Keyword[static] identifier[String] identifier[filterStackTraces] operator[SEP] identifier[String] identifier[txt] operator[SEP] { identifier[StackTraceFlags] identifier[stackTraceFlags] operator[=] identifier[traceFlags] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyw...
public static authenticationvserver_auditnslogpolicy_binding[] get(nitro_service service, String name) throws Exception{ authenticationvserver_auditnslogpolicy_binding obj = new authenticationvserver_auditnslogpolicy_binding(); obj.set_name(name); authenticationvserver_auditnslogpolicy_binding response[] = (authe...
class class_name[name] begin[{] method[get, return_type[type[authenticationvserver_auditnslogpolicy_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[authenticationvserver_auditnslogpolicy_binding], obj] call[obj.set_name, parameter[member[.name]...
Keyword[public] Keyword[static] identifier[authenticationvserver_auditnslogpolicy_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[authentication...
public String getFilename(int partno, int fileno) throws IOException { Partition part = getPartition(partno); try (GribCollectionImmutable gc = part.getGribCollection()) { return gc.getFilename(fileno); } }
class class_name[name] begin[{] method[getFilename, return_type[type[String]], modifier[public], parameter[partno, fileno]] begin[{] local_variable[type[Partition], part] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=fileno, postfix_operators=...
Keyword[public] identifier[String] identifier[getFilename] operator[SEP] Keyword[int] identifier[partno] , Keyword[int] identifier[fileno] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Partition] identifier[part] operator[=] identifier[getPartition] operator[SEP] identifier[partno] operator...
@Provides protected RendererAdapter<TvShowViewModel> provideTvShowRendererAdapter( LayoutInflater layoutInflater, TvShowCollectionRendererBuilder tvShowCollectionRendererBuilder, TvShowCollectionViewModel tvShowCollectionViewModel) { return new RendererAdapter<TvShowViewModel>(layoutInflater, tvSh...
class class_name[name] begin[{] method[provideTvShowRendererAdapter, return_type[type[RendererAdapter]], modifier[protected], parameter[layoutInflater, tvShowCollectionRendererBuilder, tvShowCollectionViewModel]] begin[{] return[ClassCreator(arguments=[MemberReference(member=layoutInflater, postfix_ope...
annotation[@] identifier[Provides] Keyword[protected] identifier[RendererAdapter] operator[<] identifier[TvShowViewModel] operator[>] identifier[provideTvShowRendererAdapter] operator[SEP] identifier[LayoutInflater] identifier[layoutInflater] , identifier[TvShowCollectionRendererBuilder] identifier[tvShowCollectionRen...
public static void readMapFile (BufferedReader bin, HashMap<String, Integer> map) throws IOException { String line; while ((line = bin.readLine()) != null) { int eidx = line.indexOf(SEP_STR); if (eidx == -1) { throw new IOException("Malformed line, no ...
class class_name[name] begin[{] method[readMapFile, return_type[void], modifier[public static], parameter[bin, map]] begin[{] local_variable[type[String], line] while[binary_operation[assign[member[.line], call[bin.readLine, parameter[]]], !=, literal[null]]] begin[{] local_...
Keyword[public] Keyword[static] Keyword[void] identifier[readMapFile] operator[SEP] identifier[BufferedReader] identifier[bin] , identifier[HashMap] operator[<] identifier[String] , identifier[Integer] operator[>] identifier[map] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identi...
public static Boolean getBooleanProperty(String key, Boolean defaultValue) { String value = getProperty(key); if((null == value) || value.isEmpty() ) { return (null == defaultValue) ? false : defaultValue; } if("null".equals(value.toLowerCase()) && (null != defaultValue) ) { ...
class class_name[name] begin[{] method[getBooleanProperty, return_type[type[Boolean]], modifier[public static], parameter[key, defaultValue]] begin[{] local_variable[type[String], value] if[binary_operation[binary_operation[literal[null], ==, member[.value]], ||, call[value.isEmpty, par...
Keyword[public] Keyword[static] identifier[Boolean] identifier[getBooleanProperty] operator[SEP] identifier[String] identifier[key] , identifier[Boolean] identifier[defaultValue] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[getProperty] operator[SEP] identifier[key] operator[SEP] ...
public Cell createCell(String str) { Cell cell = this.getNextCell(CellType.STRING); cell.setCellValue(str); cell.setCellStyle(this.style.getStringCs()); return cell; }
class class_name[name] begin[{] method[createCell, return_type[type[Cell]], modifier[public], parameter[str]] begin[{] local_variable[type[Cell], cell] call[cell.setCellValue, parameter[member[.str]]] call[cell.setCellStyle, parameter[THIS[member[None.style]call[None.get...
Keyword[public] identifier[Cell] identifier[createCell] operator[SEP] identifier[String] identifier[str] operator[SEP] { identifier[Cell] identifier[cell] operator[=] Keyword[this] operator[SEP] identifier[getNextCell] operator[SEP] identifier[CellType] operator[SEP] identifier[STRING] operator[SEP] operator[SEP...
@Override public UpdateClientCertificateResult updateClientCertificate(UpdateClientCertificateRequest request) { request = beforeClientExecution(request); return executeUpdateClientCertificate(request); }
class class_name[name] begin[{] method[updateClientCertificate, return_type[type[UpdateClientCertificateResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateClientCertificat...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateClientCertificateResult] identifier[updateClientCertificate] operator[SEP] identifier[UpdateClientCertificateRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[...
protected void runAsyncWithoutFencing(Runnable runnable) { if (rpcServer instanceof FencedMainThreadExecutable) { ((FencedMainThreadExecutable) rpcServer).runAsyncWithoutFencing(runnable); } else { throw new RuntimeException("FencedRpcEndpoint has not been started with a FencedMainThreadExecutable RpcServer."...
class class_name[name] begin[{] method[runAsyncWithoutFencing, return_type[void], modifier[protected], parameter[runnable]] begin[{] if[binary_operation[member[.rpcServer], instanceof, type[FencedMainThreadExecutable]]] begin[{] Cast(expression=MemberReference(member=rpc...
Keyword[protected] Keyword[void] identifier[runAsyncWithoutFencing] operator[SEP] identifier[Runnable] identifier[runnable] operator[SEP] { Keyword[if] operator[SEP] identifier[rpcServer] Keyword[instanceof] identifier[FencedMainThreadExecutable] operator[SEP] { operator[SEP] operator[SEP] identifier[...
public static boolean setFeatureStyle(PolylineOptions polylineOptions, FeatureStyleExtension featureStyleExtension, FeatureRow featureRow, float density) { FeatureStyle featureStyle = featureStyleExtension.getFeatureStyle(featureRow); return setFeatureStyle(polylineOptions, featureStyle, density); ...
class class_name[name] begin[{] method[setFeatureStyle, return_type[type[boolean]], modifier[public static], parameter[polylineOptions, featureStyleExtension, featureRow, density]] begin[{] local_variable[type[FeatureStyle], featureStyle] return[call[.setFeatureStyle, parameter[member[.polyline...
Keyword[public] Keyword[static] Keyword[boolean] identifier[setFeatureStyle] operator[SEP] identifier[PolylineOptions] identifier[polylineOptions] , identifier[FeatureStyleExtension] identifier[featureStyleExtension] , identifier[FeatureRow] identifier[featureRow] , Keyword[float] identifier[density] operator[SEP] ...
public boolean estimate() { final PersonVisitor visitor = new PersonVisitor(); person.accept(visitor); if (visitor.hasDeathAttribute()) { // Death attribute found, we're out of here. return false; } else { final BirthDateEstimator bde = new BirthDateEs...
class class_name[name] begin[{] method[estimate, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[PersonVisitor], visitor] call[person.accept, parameter[member[.visitor]]] if[call[visitor.hasDeathAttribute, parameter[]]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[estimate] operator[SEP] operator[SEP] { Keyword[final] identifier[PersonVisitor] identifier[visitor] operator[=] Keyword[new] identifier[PersonVisitor] operator[SEP] operator[SEP] operator[SEP] identifier[person] operator[SEP] identifier[accept] operator[SEP] identifie...
public static AuditEventType create(@Nonnull String type) { if (isNullOrEmpty(type)) { throw new IllegalArgumentException(ARGUMENT_ERROR + type); } final List<String> strings = SPLITTER.splitToList(type); if (strings.size() < 3) { throw new IllegalArgumentExcept...
class class_name[name] begin[{] method[create, return_type[type[AuditEventType]], modifier[public static], parameter[type]] begin[{] if[call[.isNullOrEmpty, parameter[member[.type]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference...
Keyword[public] Keyword[static] identifier[AuditEventType] identifier[create] operator[SEP] annotation[@] identifier[Nonnull] identifier[String] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[type] operator[SEP] operator[SEP] { Keyword[thr...
@VisibleForTesting static Name simple(String name) { switch (name) { case ".": return SELF; case "..": return PARENT; default: return new Name(name, name); } }
class class_name[name] begin[{] method[simple, return_type[type[Name]], modifier[static], parameter[name]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".")], statements=[ReturnStatement(expression=Membe...
annotation[@] identifier[VisibleForTesting] Keyword[static] identifier[Name] identifier[simple] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[switch] operator[SEP] identifier[name] operator[SEP] { Keyword[case] literal[String] operator[:] Keyword[return] identifier[SELF] o...
Symbol findIdent(Env<AttrContext> env, Name name, int kind) { Symbol bestSoFar = typeNotFound; Symbol sym; if ((kind & VAR) != 0) { sym = findVar(env, name); if (sym.exists()) return sym; else if (sym.kind < bestSoFar.kind) bestSoFar = sym; } ...
class class_name[name] begin[{] method[findIdent, return_type[type[Symbol]], modifier[default], parameter[env, name, kind]] begin[{] local_variable[type[Symbol], bestSoFar] local_variable[type[Symbol], sym] if[binary_operation[binary_operation[member[.kind], &, member[.VAR]], !=...
identifier[Symbol] identifier[findIdent] operator[SEP] identifier[Env] operator[<] identifier[AttrContext] operator[>] identifier[env] , identifier[Name] identifier[name] , Keyword[int] identifier[kind] operator[SEP] { identifier[Symbol] identifier[bestSoFar] operator[=] identifier[typeNotFound] operator[SEP] ...
public static byte[] utf8Encode(CharSequence string) { try { ByteBuffer bytes = UTF8.newEncoder().encode(CharBuffer.wrap(string)); byte[] bytesCopy = new byte[bytes.limit()]; System.arraycopy(bytes.array(), 0, bytesCopy, 0, bytes.limit()); return bytesCopy; } catch (CharacterCodingException e) { th...
class class_name[name] begin[{] method[utf8Encode, return_type[type[byte]], modifier[public static], parameter[string]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=newEncoder, post...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[utf8Encode] operator[SEP] identifier[CharSequence] identifier[string] operator[SEP] { Keyword[try] { identifier[ByteBuffer] identifier[bytes] operator[=] identifier[UTF8] operator[SEP] identifier[newEncoder] operator[...
public static String fingerprint(Class cl, String methodName) { return fingerprint(cl.getCanonicalName() + "." + methodName); }
class class_name[name] begin[{] method[fingerprint, return_type[type[String]], modifier[public static], parameter[cl, methodName]] begin[{] return[call[.fingerprint, parameter[binary_operation[binary_operation[call[cl.getCanonicalName, parameter[]], +, literal["."]], +, member[.methodName]]]]] end[...
Keyword[public] Keyword[static] identifier[String] identifier[fingerprint] operator[SEP] identifier[Class] identifier[cl] , identifier[String] identifier[methodName] operator[SEP] { Keyword[return] identifier[fingerprint] operator[SEP] identifier[cl] operator[SEP] identifier[getCanonicalName] operator[SEP] oper...
List<JcrNodeType> registerNodeTypes( Iterable<NodeTypeDefinition> nodeTypeDefns ) throws InvalidNodeTypeDefinitionException, NodeTypeExistsException, RepositoryException { return registerNodeTypes(nodeTypeDefns, true, false, true); }
class class_name[name] begin[{] method[registerNodeTypes, return_type[type[List]], modifier[default], parameter[nodeTypeDefns]] begin[{] return[call[.registerNodeTypes, parameter[member[.nodeTypeDefns], literal[true], literal[false], literal[true]]]] end[}] END[}]
identifier[List] operator[<] identifier[JcrNodeType] operator[>] identifier[registerNodeTypes] operator[SEP] identifier[Iterable] operator[<] identifier[NodeTypeDefinition] operator[>] identifier[nodeTypeDefns] operator[SEP] Keyword[throws] identifier[InvalidNodeTypeDefinitionException] , identifier[NodeTypeExistsExce...
@SuppressWarnings("Duplicates") public static void main(String[] args) { // init logging PropertyConfigurator.configure( IdxReadingExample.class.getResource(PACKAGE + "/log4j.properties")); // read example file, if no files were specified as command line arguments if...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] call[PropertyConfigurator.configure, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[PropertyConfigurator] operator[SEP] identifier[configure] ...
public void updateCapacityBytes(Map<String, Long> capacityBytesOnTiers) { mCapacityBytes = 0; mTotalBytesOnTiers = capacityBytesOnTiers; for (long t : mTotalBytesOnTiers.values()) { mCapacityBytes += t; } }
class class_name[name] begin[{] method[updateCapacityBytes, return_type[void], modifier[public], parameter[capacityBytesOnTiers]] begin[{] assign[member[.mCapacityBytes], literal[0]] assign[member[.mTotalBytesOnTiers], member[.capacityBytesOnTiers]] ForStatement(body=Blo...
Keyword[public] Keyword[void] identifier[updateCapacityBytes] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Long] operator[>] identifier[capacityBytesOnTiers] operator[SEP] { identifier[mCapacityBytes] operator[=] Other[0] operator[SEP] identifier[mTotalBytesOnTiers] operator[=] iden...
@RequestMapping(value = "{projectId}/commit-info/{commit}", method = RequestMethod.GET) public Resource<OntrackGitCommitInfo> commitProjectInfo(@PathVariable ID projectId, @PathVariable String commit) { return Resource.of( gitService.getCommitProjectInfo(projectId, commit), u...
class class_name[name] begin[{] method[commitProjectInfo, return_type[type[Resource]], modifier[public], parameter[projectId, commit]] begin[{] return[call[Resource.of, parameter[call[gitService.getCommitProjectInfo, parameter[member[.projectId], member[.commit]]], call[.uri, parameter[call[.on, parame...
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[GET] operator[SEP] Keyword[public] identifier[Resource] operator[<] identifier[OntrackGitCommitInfo] operator[>] identifier[commitProj...
@Deprecated public static CalibrationDetectorChessboard chessboard(@Nullable ConfigChessboard configDet , ConfigGridDimen configGrid ) { if( configDet == null ) configDet = new ConfigChessboard(); configDet.checkValidity(); return new CalibrationDetectorChessboard(configDet,configGrid); }
class class_name[name] begin[{] method[chessboard, return_type[type[CalibrationDetectorChessboard]], modifier[public static], parameter[configDet, configGrid]] begin[{] if[binary_operation[member[.configDet], ==, literal[null]]] begin[{] assign[member[.configDet], ClassCreator(argum...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[CalibrationDetectorChessboard] identifier[chessboard] operator[SEP] annotation[@] identifier[Nullable] identifier[ConfigChessboard] identifier[configDet] , identifier[ConfigGridDimen] identifier[configGrid] operator[SEP] { Keyword[i...
protected String getEntryType(int flags, boolean all) { for (int i = 0; i < getTypes(all).length; i++) { if ((flags & getTypesInt()[i]) > 0) { return getTypes(all)[i]; } } return UNKNOWN_TYPE; }
class class_name[name] begin[{] method[getEntryType, return_type[type[String]], modifier[protected], parameter[flags, all]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=flags, postfix_ope...
Keyword[protected] identifier[String] identifier[getEntryType] operator[SEP] Keyword[int] identifier[flags] , Keyword[boolean] identifier[all] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[getTypes] operator[SEP] ide...
private void obtainDialogBackground(@NonNull final TypedArray typedArray) { int resourceId = typedArray.getResourceId(R.styleable.DialogPreference_dialogBackground, -1); if (resourceId != -1) { setDialogBackground(resourceId); } else { int color = typedAr...
class class_name[name] begin[{] method[obtainDialogBackground, return_type[void], modifier[private], parameter[typedArray]] begin[{] local_variable[type[int], resourceId] if[binary_operation[member[.resourceId], !=, literal[1]]] begin[{] call[.setDialogBackground...
Keyword[private] Keyword[void] identifier[obtainDialogBackground] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[TypedArray] identifier[typedArray] operator[SEP] { Keyword[int] identifier[resourceId] operator[=] identifier[typedArray] operator[SEP] identifier[getResourceId] operator[SE...
private static void returnBitmapInto(final Bitmap bitmap, final String path, final Object into) { new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { if (into != null && path != null && bitmap != null) { if (into ins...
class class_name[name] begin[{] method[returnBitmapInto, return_type[void], modifier[private static], parameter[bitmap, path, into]] begin[{] ClassCreator(arguments=[MethodInvocation(arguments=[], member=getMainLooper, postfix_operators=[], prefix_operators=[], qualifier=Looper, selectors=[], t...
Keyword[private] Keyword[static] Keyword[void] identifier[returnBitmapInto] operator[SEP] Keyword[final] identifier[Bitmap] identifier[bitmap] , Keyword[final] identifier[String] identifier[path] , Keyword[final] identifier[Object] identifier[into] operator[SEP] { Keyword[new] identifier[Handler] operator[SEP]...
private void wrapLastLocationStep(String selector, int start, boolean bumpLocationStep) throws InvalidXPathSyntaxException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) tc.entry(cclass, "wrapLastL...
class class_name[name] begin[{] method[wrapLastLocationStep, return_type[void], modifier[private], parameter[selector, start, bumpLocationStep]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ca...
Keyword[private] Keyword[void] identifier[wrapLastLocationStep] operator[SEP] identifier[String] identifier[selector] , Keyword[int] identifier[start] , Keyword[boolean] identifier[bumpLocationStep] operator[SEP] Keyword[throws] identifier[InvalidXPathSyntaxException] { Keyword[if] operator[SEP] identifier[Tra...
public static FsInfoSector create(Fat32BootSector bs) throws IOException { final int offset = offset(bs); if (offset == 0) throw new IOException( "creating a FS info sector at offset 0 is strange"); final FsInfoSector result = new FsInfoSector(bs.getDevi...
class class_name[name] begin[{] method[create, return_type[type[FsInfoSector]], modifier[public static], parameter[bs]] begin[{] local_variable[type[int], offset] if[binary_operation[member[.offset], ==, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[static] identifier[FsInfoSector] identifier[create] operator[SEP] identifier[Fat32BootSector] identifier[bs] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[int] identifier[offset] operator[=] identifier[offset] operator[SEP] identifier[bs] operator[SEP] ope...
private Animation buildAnimation(final AnimationType animationType) { Animation animation = null; switch (animationType) { case MOVE_TO_RIGHT: animation = buildHorizontalAnimation(0, 2000, 0, 0); break; case MOVE_TO_LEFT: animation...
class class_name[name] begin[{] method[buildAnimation, return_type[type[Animation]], modifier[private], parameter[animationType]] begin[{] local_variable[type[Animation], animation] SwitchStatement(cases=[SwitchStatementCase(case=['MOVE_TO_RIGHT'], statements=[StatementExpression(expression=Ass...
Keyword[private] identifier[Animation] identifier[buildAnimation] operator[SEP] Keyword[final] identifier[AnimationType] identifier[animationType] operator[SEP] { identifier[Animation] identifier[animation] operator[=] Other[null] operator[SEP] Keyword[switch] operator[SEP] identifier[animationType] operator[SEP...
public static TaskExecutor startTaskManager( Configuration configuration, ResourceID resourceID, RpcService rpcService, HighAvailabilityServices highAvailabilityServices, HeartbeatServices heartbeatServices, MetricRegistry metricRegistry, BlobCacheService blobCacheService, boolean localCommunica...
class class_name[name] begin[{] method[startTaskManager, return_type[type[TaskExecutor]], modifier[public static], parameter[configuration, resourceID, rpcService, highAvailabilityServices, heartbeatServices, metricRegistry, blobCacheService, localCommunicationOnly, fatalErrorHandler]] begin[{] ...
Keyword[public] Keyword[static] identifier[TaskExecutor] identifier[startTaskManager] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[ResourceID] identifier[resourceID] , identifier[RpcService] identifier[rpcService] , identifier[HighAvailabilityServices] identifier[highAvailabilitySer...
@Override public Record cloneRecord(Record record, String sourceIdPostfix) { RecordImpl clonedRecord = ((RecordImpl) record).clone(); HeaderImpl header = clonedRecord.getHeader(); header.setSourceId(header.getSourceId() + "_" + sourceIdPostfix); header.setStagesPath(""); return clonedRecord; }
class class_name[name] begin[{] method[cloneRecord, return_type[type[Record]], modifier[public], parameter[record, sourceIdPostfix]] begin[{] local_variable[type[RecordImpl], clonedRecord] local_variable[type[HeaderImpl], header] call[header.setSourceId, parameter[binary_operati...
annotation[@] identifier[Override] Keyword[public] identifier[Record] identifier[cloneRecord] operator[SEP] identifier[Record] identifier[record] , identifier[String] identifier[sourceIdPostfix] operator[SEP] { identifier[RecordImpl] identifier[clonedRecord] operator[=] operator[SEP] operator[SEP] identifier[Re...
@Override public void rollback(String globalId) throws HeuristicHazardException, HeuristicCommitException, HeuristicMixedException, SystemException { final TransactionWrapper t = TransactionWrapper.getTransactionWrapper(globalId); if (t != null) { t.rollback(); } else { ...
class class_name[name] begin[{] method[rollback, return_type[void], modifier[public], parameter[globalId]] begin[{] local_variable[type[TransactionWrapper], t] if[binary_operation[member[.t], !=, literal[null]]] begin[{] call[t.rollback, parameter[]] else...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[rollback] operator[SEP] identifier[String] identifier[globalId] operator[SEP] Keyword[throws] identifier[HeuristicHazardException] , identifier[HeuristicCommitException] , identifier[HeuristicMixedException] , identifier[SystemException] { ...
private boolean checkInetAddress(InetAddress inetAddress) { // Check if not local host if (! inetAddress.getCanonicalHostName().startsWith("local")) { // Check if name is not the address (???) if (!inetAddress.getCanonicalHostName().equalsIgnoreCase(inetAddress.getHostAddress(...
class class_name[name] begin[{] method[checkInetAddress, return_type[type[boolean]], modifier[private], parameter[inetAddress]] begin[{] if[call[inetAddress.getCanonicalHostName, parameter[]]] begin[{] if[call[inetAddress.getCanonicalHostName, parameter[]]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[checkInetAddress] operator[SEP] identifier[InetAddress] identifier[inetAddress] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[inetAddress] operator[SEP] identifier[getCanonicalHostName] operator[SEP] operator[SEP] operator[SEP] identifier[startsWith...
@Override public boolean accept(File file) { Set<String> fileExtensions = getFileExtensions(); return (fileExtensions.isEmpty() || fileExtensions.contains(FileUtils.getExtension(file).toLowerCase().trim())); }
class class_name[name] begin[{] method[accept, return_type[type[boolean]], modifier[public], parameter[file]] begin[{] local_variable[type[Set], fileExtensions] return[binary_operation[call[fileExtensions.isEmpty, parameter[]], ||, call[fileExtensions.contains, parameter[call[FileUtils.getExten...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[accept] operator[SEP] identifier[File] identifier[file] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[fileExtensions] operator[=] identifier[getFileExtensions] operator[SEP] operator[SEP] operat...
private Chunk setAttribute(String name, Object obj) { if (attributes == null) attributes = new HashMap(); attributes.put(name, obj); return this; }
class class_name[name] begin[{] method[setAttribute, return_type[type[Chunk]], modifier[private], parameter[name, obj]] begin[{] if[binary_operation[member[.attributes], ==, literal[null]]] begin[{] assign[member[.attributes], ClassCreator(arguments=[], body=None, constructor_type_a...
Keyword[private] identifier[Chunk] identifier[setAttribute] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[attributes] operator[==] Other[null] operator[SEP] identifier[attributes] operator[=] Keyword[new] identifier[Ha...
public DependsOnType<T> ejbName(String ... values) { if (values != null) { for(String name: values) { childNode.createChild("ejb-name").text(name); } } return this; }
class class_name[name] begin[{] method[ejbName, return_type[type[DependsOnType]], modifier[public], parameter[values]] begin[{] if[binary_operation[member[.values], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=M...
Keyword[public] identifier[DependsOnType] operator[<] identifier[T] operator[>] identifier[ejbName] operator[SEP] identifier[String] operator[...] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[values] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identif...
public ServiceInstance cloneSession(boolean ignoreCert) throws InvalidLogin, RuntimeFault, RemoteException, MalformedURLException { ServiceInstance oldsi = getServerConnection().getServiceInstance(); ServerConnection oldsc = oldsi.getServerConnection(); String ticket = oldsi.getSessionManager...
class class_name[name] begin[{] method[cloneSession, return_type[type[ServiceInstance]], modifier[public], parameter[ignoreCert]] begin[{] local_variable[type[ServiceInstance], oldsi] local_variable[type[ServerConnection], oldsc] local_variable[type[String], ticket] local_variab...
Keyword[public] identifier[ServiceInstance] identifier[cloneSession] operator[SEP] Keyword[boolean] identifier[ignoreCert] operator[SEP] Keyword[throws] identifier[InvalidLogin] , identifier[RuntimeFault] , identifier[RemoteException] , identifier[MalformedURLException] { identifier[ServiceInstance] identifie...
public void eventProcessingSuccessful(ActivityHandle ah, FireableEventType arg1, Object arg2, Address ad, ReceivableService arg4, int arg5) { }
class class_name[name] begin[{] method[eventProcessingSuccessful, return_type[void], modifier[public], parameter[ah, arg1, arg2, ad, arg4, arg5]] begin[{] end[}] END[}]
Keyword[public] Keyword[void] identifier[eventProcessingSuccessful] operator[SEP] identifier[ActivityHandle] identifier[ah] , identifier[FireableEventType] identifier[arg1] , identifier[Object] identifier[arg2] , identifier[Address] identifier[ad] , identifier[ReceivableService] identifier[arg4] , Keyword[int] ide...
private State offerService() throws Exception { while (running && !shuttingDown) { try { long now = System.currentTimeMillis(); long waitTime = heartbeatInterval - (now - lastHeartbeat); if (waitTime > 0) { // sleeps for the wait time or // until there are empty sl...
class class_name[name] begin[{] method[offerService, return_type[type[State]], modifier[private], parameter[]] begin[{] while[binary_operation[member[.running], &&, member[.shuttingDown]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDec...
Keyword[private] identifier[State] identifier[offerService] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[while] operator[SEP] identifier[running] operator[&&] operator[!] identifier[shuttingDown] operator[SEP] { Keyword[try] { Keyword[long] identifier[now]...
public PetiteConfig setDefaultWiringMode(final WiringMode defaultWiringMode) { if ((defaultWiringMode == null) || (defaultWiringMode == WiringMode.DEFAULT)) { throw new PetiteException("Invalid default wiring mode: " + defaultWiringMode); } this.defaultWiringMode = defaultWiringMode; return this; }
class class_name[name] begin[{] method[setDefaultWiringMode, return_type[type[PetiteConfig]], modifier[public], parameter[defaultWiringMode]] begin[{] if[binary_operation[binary_operation[member[.defaultWiringMode], ==, literal[null]], ||, binary_operation[member[.defaultWiringMode], ==, member...
Keyword[public] identifier[PetiteConfig] identifier[setDefaultWiringMode] operator[SEP] Keyword[final] identifier[WiringMode] identifier[defaultWiringMode] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[defaultWiringMode] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] ident...
@Override public void writePostCommitResponse(int statusCode) throws Exception { addResponseParameter("statusCode", statusCode); addResponseParameter("messages", getMessages()); if (statusCode == StatusCode.OK && !StringUtils.isBlank(getRedirectURL())) { addResponseParameter("redirectURL", getRedire...
class class_name[name] begin[{] method[writePostCommitResponse, return_type[void], modifier[public], parameter[statusCode]] begin[{] call[.addResponseParameter, parameter[literal["statusCode"], member[.statusCode]]] call[.addResponseParameter, parameter[literal["messages"], call...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writePostCommitResponse] operator[SEP] Keyword[int] identifier[statusCode] operator[SEP] Keyword[throws] identifier[Exception] { identifier[addResponseParameter] operator[SEP] literal[String] , identifier[statusCode] operator[SEP] opera...
public static String prettyHexDump(ByteBuf buffer) { return prettyHexDump(buffer, buffer.readerIndex(), buffer.readableBytes()); }
class class_name[name] begin[{] method[prettyHexDump, return_type[type[String]], modifier[public static], parameter[buffer]] begin[{] return[call[.prettyHexDump, parameter[member[.buffer], call[buffer.readerIndex, parameter[]], call[buffer.readableBytes, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[prettyHexDump] operator[SEP] identifier[ByteBuf] identifier[buffer] operator[SEP] { Keyword[return] identifier[prettyHexDump] operator[SEP] identifier[buffer] , identifier[buffer] operator[SEP] identifier[readerIndex] operator[SEP] operator[SEP] , i...
public void setDateTime(String date) { String[] patterns = {RFC_1123_PATTERN, ISO_8601_UTC_PATTERN, ISO_8601_UTC_MILLIS_PATTERN, ISO_8601_PATTERN, ISO_8601_MILLIS_PATTERN, RFC_850_PATTERN, ASCTIME_PATTERN}; for (int i = 0; i < patterns.length; i++) { if (setDateTime(date, patterns[i])) ...
class class_name[name] begin[{] method[setDateTime, return_type[void], modifier[public], parameter[date]] begin[{] local_variable[type[String], patterns] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=date, postf...
Keyword[public] Keyword[void] identifier[setDateTime] operator[SEP] identifier[String] identifier[date] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[patterns] operator[=] { identifier[RFC_1123_PATTERN] , identifier[ISO_8601_UTC_PATTERN] , identifier[ISO_8601_UTC_MILLIS_P...
private Content inheritThrowsDocumentation(Doc holder, Type[] declaredExceptionTypes, Set<String> alreadyDocumented, TagletWriter writer) { Content result = writer.getOutputInstance(); if (holder instanceof MethodDoc) { Set<Tag> declaredExceptionTags = new LinkedHashS...
class class_name[name] begin[{] method[inheritThrowsDocumentation, return_type[type[Content]], modifier[private], parameter[holder, declaredExceptionTypes, alreadyDocumented, writer]] begin[{] local_variable[type[Content], result] if[binary_operation[member[.holder], instanceof, type[Me...
Keyword[private] identifier[Content] identifier[inheritThrowsDocumentation] operator[SEP] identifier[Doc] identifier[holder] , identifier[Type] operator[SEP] operator[SEP] identifier[declaredExceptionTypes] , identifier[Set] operator[<] identifier[String] operator[>] identifier[alreadyDocumented] , identifier[Taglet...
public String getAbsoluteName() { final StringBuilder absolute = new StringBuilder(); if (parent != null) { absolute.append(parent).append(ENTRY_SEPARATOR); } absolute.append(local); return absolute.toString(); }
class class_name[name] begin[{] method[getAbsoluteName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], absolute] if[binary_operation[member[.parent], !=, literal[null]]] begin[{] call[absolute.append, parame...
Keyword[public] identifier[String] identifier[getAbsoluteName] operator[SEP] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[absolute] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[parent] operator[!=] Other[n...
public static Map.Entry<String, Map<String, ?>> setConnectionCommand(long bitMask) { String[] parameters = new String[] {"name", "parameters"}; Object[] values = new Object[] {"network_connection", ImmutableMap.of("type", bitMask)}; return new AbstractMap.SimpleEntry<>( SET_NETWO...
class class_name[name] begin[{] method[setConnectionCommand, return_type[type[Map]], modifier[public static], parameter[bitMask]] begin[{] local_variable[type[String], parameters] local_variable[type[Object], values] return[ClassCreator(arguments=[MemberReference(member=SET_NETWORK_CONN...
Keyword[public] Keyword[static] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] operator[>] identifier[setConnectionCommand] operator[SEP] Keyword[long] identifier[bitMask] operator[SEP] { identifier[Strin...
@Override protected String transformEntityName(EntityNaming entityNaming) { String singular = super.transformEntityName(entityNaming); return transformToPluralForm(singular); }
class class_name[name] begin[{] method[transformEntityName, return_type[type[String]], modifier[protected], parameter[entityNaming]] begin[{] local_variable[type[String], singular] return[call[.transformToPluralForm, parameter[member[.singular]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[String] identifier[transformEntityName] operator[SEP] identifier[EntityNaming] identifier[entityNaming] operator[SEP] { identifier[String] identifier[singular] operator[=] Keyword[super] operator[SEP] identifier[transformEntityName] operator[SEP] i...
public void addFilterAfter(IRuleFilter filter, Class<? extends IRuleFilter> afterFilter) { int index = getIndexOfClass(filters, afterFilter); if (index == -1) { throw new FilterAddException("filter " + afterFilter.getSimpleName() + " has not been added"); } filters.add(index ...
class class_name[name] begin[{] method[addFilterAfter, return_type[void], modifier[public], parameter[filter, afterFilter]] begin[{] local_variable[type[int], index] if[binary_operation[member[.index], ==, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[addFilterAfter] operator[SEP] identifier[IRuleFilter] identifier[filter] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[IRuleFilter] operator[>] identifier[afterFilter] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[getInde...
public static List<double[]> histogramGray( List<File> images ) { List<double[]> points = new ArrayList<>(); GrayU8 gray = new GrayU8(1,1); for( File f : images ) { BufferedImage buffered = UtilImageIO.loadImage(f.getPath()); if( buffered == null ) throw new RuntimeException("Can't load image!"); gray....
class class_name[name] begin[{] method[histogramGray, return_type[type[List]], modifier[public static], parameter[images]] begin[{] local_variable[type[List], points] local_variable[type[GrayU8], gray] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(ann...
Keyword[public] Keyword[static] identifier[List] operator[<] Keyword[double] operator[SEP] operator[SEP] operator[>] identifier[histogramGray] operator[SEP] identifier[List] operator[<] identifier[File] operator[>] identifier[images] operator[SEP] { identifier[List] operator[<] Keyword[double] operator[SEP] oper...
public int getConnectionType() { int iConnectionType = DEFAULT_CONNECTION_TYPE; if (this.getMuffinManager() != null) if (this.getMuffinManager().isServiceAvailable()) iConnectionType = PROXY; // HACK - Webstart gives a warning when using RMI String strConnectio...
class class_name[name] begin[{] method[getConnectionType, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], iConnectionType] if[binary_operation[THIS[call[None.getMuffinManager, parameter[]]], !=, literal[null]]] begin[{] if[THIS[call[...
Keyword[public] Keyword[int] identifier[getConnectionType] operator[SEP] operator[SEP] { Keyword[int] identifier[iConnectionType] operator[=] identifier[DEFAULT_CONNECTION_TYPE] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getMuffinManager] operator[SEP] operator[SEP] operator[!...
public @Nonnull StringAssert doesNotMatch(@Nonnull String regex) { strings.assertDoesNotMatch(description, actual, regex); return this; }
class class_name[name] begin[{] method[doesNotMatch, return_type[type[StringAssert]], modifier[public], parameter[regex]] begin[{] call[strings.assertDoesNotMatch, parameter[member[.description], member[.actual], member[.regex]]] return[THIS[]] end[}] END[}]
Keyword[public] annotation[@] identifier[Nonnull] identifier[StringAssert] identifier[doesNotMatch] operator[SEP] annotation[@] identifier[Nonnull] identifier[String] identifier[regex] operator[SEP] { identifier[strings] operator[SEP] identifier[assertDoesNotMatch] operator[SEP] identifier[description] , identi...
public synchronized Normalizer2Impl ensureCanonIterData() { if(canonIterData==null) { Trie2Writable newData=new Trie2Writable(0, 0); canonStartSets=new ArrayList<UnicodeSet>(); Iterator<Trie2.Range> trieIterator=normTrie.iterator(); Trie2.Range range; ...
class class_name[name] begin[{] method[ensureCanonIterData, return_type[type[Normalizer2Impl]], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[member[.canonIterData], ==, literal[null]]] begin[{] local_variable[type[Trie2Writable], newData] ...
Keyword[public] Keyword[synchronized] identifier[Normalizer2Impl] identifier[ensureCanonIterData] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[canonIterData] operator[==] Other[null] operator[SEP] { identifier[Trie2Writable] identifier[newData] operator[=] Keyword[new] identifier...
public static void setFactory(String factoryName, String implName) { FactoryFinderInstance manager = FACTORIES_CACHE.getApplicationFactoryManager(); manager.addFactory(factoryName, implName); }
class class_name[name] begin[{] method[setFactory, return_type[void], modifier[public static], parameter[factoryName, implName]] begin[{] local_variable[type[FactoryFinderInstance], manager] call[manager.addFactory, parameter[member[.factoryName], member[.implName]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setFactory] operator[SEP] identifier[String] identifier[factoryName] , identifier[String] identifier[implName] operator[SEP] { identifier[FactoryFinderInstance] identifier[manager] operator[=] identifier[FACTORIES_CACHE] operator[SEP] identifier[getApplic...
public Observable<NameAvailabilityInner> checkNameAvailabilityAsync(String location, NameAvailabilityParameters parameters) { return checkNameAvailabilityWithServiceResponseAsync(location, parameters).map(new Func1<ServiceResponse<NameAvailabilityInner>, NameAvailabilityInner>() { @Override ...
class class_name[name] begin[{] method[checkNameAvailabilityAsync, return_type[type[Observable]], modifier[public], parameter[location, parameters]] begin[{] return[call[.checkNameAvailabilityWithServiceResponseAsync, parameter[member[.location], member[.parameters]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[NameAvailabilityInner] operator[>] identifier[checkNameAvailabilityAsync] operator[SEP] identifier[String] identifier[location] , identifier[NameAvailabilityParameters] identifier[parameters] operator[SEP] { Keyword[return] identifier[checkNameAvaila...
public static Object convertClob(Object clob, byte[] value) throws SQLException { ByteArrayInputStream input = new ByteArrayInputStream(value); //OutputStream output = clob.setAsciiStream(1); OutputStream output = null; try { output = (OutputStream) MappingUtils.invokeFunctio...
class class_name[name] begin[{] method[convertClob, return_type[type[Object]], modifier[public static], parameter[clob, value]] begin[{] local_variable[type[ByteArrayInputStream], input] local_variable[type[OutputStream], output] TryStatement(block=[StatementExpression(expression=Assign...
Keyword[public] Keyword[static] identifier[Object] identifier[convertClob] operator[SEP] identifier[Object] identifier[clob] , Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[ByteArrayInputStream] identifier[input] operator[=] Keywo...
public void init(RecordOwner recordOwner) { m_vRecordList = new RecordList(null); m_LinkageList = new Vector<TableLink>(); this.addTables(recordOwner); // Add any query records or overriding records boolean bMainRecord = false; for (int i = 0; i < this.getRecor...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[recordOwner]] begin[{] assign[member[.m_vRecordList], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], body=None, constructor_type_ar...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[RecordOwner] identifier[recordOwner] operator[SEP] { identifier[m_vRecordList] operator[=] Keyword[new] identifier[RecordList] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[m_LinkageList] operator[=] Keyword[new] identifie...
public MapLazyScrollUpdateOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyScrollUpdateOutputHandler(this.processor, (QueryParametersLazyList) outputList); } else { throw new Mjdb...
class class_name[name] begin[{] method[handle, return_type[type[MapLazyScrollUpdateOutputHandler]], modifier[public], parameter[outputList]] begin[{] if[binary_operation[member[.outputList], instanceof, type[QueryParametersLazyList]]] begin[{] return[ClassCreator(arguments=[This(pos...
Keyword[public] identifier[MapLazyScrollUpdateOutputHandler] identifier[handle] operator[SEP] identifier[List] operator[<] identifier[QueryParameters] operator[>] identifier[outputList] operator[SEP] Keyword[throws] identifier[MjdbcException] { Keyword[if] operator[SEP] identifier[outputList] Keyword[instanceof]...
public AnyValue getAsValue(String key) { Object value = getAsObject(key); return new AnyValue(value); }
class class_name[name] begin[{] method[getAsValue, return_type[type[AnyValue]], modifier[public], parameter[key]] begin[{] local_variable[type[Object], value] return[ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body...
Keyword[public] identifier[AnyValue] identifier[getAsValue] operator[SEP] identifier[String] identifier[key] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[getAsObject] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[AnyValue] operato...
public void init(Record record, String mainFieldName, Record fileToRead, int iFileKeyField, String fileKeyAreaName) { m_FileToRead = fileToRead; this.mainFieldName = mainFieldName; m_iFileKeyField = iFileKeyField; this.fileKeyFieldName = fileKeyAreaName; super.init(record); ...
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[record, mainFieldName, fileToRead, iFileKeyField, fileKeyAreaName]] begin[{] assign[member[.m_FileToRead], member[.fileToRead]] assign[THIS[member[None.mainFieldName]], member[.mainFieldN...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Record] identifier[record] , identifier[String] identifier[mainFieldName] , identifier[Record] identifier[fileToRead] , Keyword[int] identifier[iFileKeyField] , identifier[String] identifier[fileKeyAreaName] operator[SEP] { identifier[m_...
public void setClientID(String clientID) { if (clientID == null || clientID.isEmpty()) { this.clientID = DEFAULT_CLIENT_ID; return; } this.clientID = clientID; }
class class_name[name] begin[{] method[setClientID, return_type[void], modifier[public], parameter[clientID]] begin[{] if[binary_operation[binary_operation[member[.clientID], ==, literal[null]], ||, call[clientID.isEmpty, parameter[]]]] begin[{] assign[THIS[member[None.c...
Keyword[public] Keyword[void] identifier[setClientID] operator[SEP] identifier[String] identifier[clientID] operator[SEP] { Keyword[if] operator[SEP] identifier[clientID] operator[==] Other[null] operator[||] identifier[clientID] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { ...
@SuppressWarnings("unchecked") private boolean isIndexRecoveryRequired() throws RepositoryException { // instantiate filters first, if not initialized if (recoveryFilters == null) { recoveryFilters = new ArrayList<AbstractRecoveryFilter>(); log.info("Initializing RecoveryFilter...
class class_name[name] begin[{] method[isIndexRecoveryRequired, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.recoveryFilters], ==, literal[null]]] begin[{] assign[member[.recoveryFilters], ClassCreator(arguments=[], bod...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[boolean] identifier[isIndexRecoveryRequired] operator[SEP] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[if] operator[SEP] identifier[recoveryFilters] operator[==] Other[null]...
public static void fire(final HasSummernoteBlurHandlers source) { if (TYPE != null) { SummernoteBlurEvent event = new SummernoteBlurEvent(); source.fireEvent(event); } }
class class_name[name] begin[{] method[fire, return_type[void], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.TYPE], !=, literal[null]]] begin[{] local_variable[type[SummernoteBlurEvent], event] call[source.fireEvent, parame...
Keyword[public] Keyword[static] Keyword[void] identifier[fire] operator[SEP] Keyword[final] identifier[HasSummernoteBlurHandlers] identifier[source] operator[SEP] { Keyword[if] operator[SEP] identifier[TYPE] operator[!=] Other[null] operator[SEP] { identifier[SummernoteBlurEvent] identifier[event] ope...
@Override public void start() { if(layout == null) { initializationFailed = true; addError("Invalid configuration - No layout for appender: " + name); return; } if(streamName == null) { initializationFailed = true; addError("Invalid configuration - streamName cannot be null ...
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.layout], ==, literal[null]]] begin[{] assign[member[.initializationFailed], literal[true]] call[.addError, paramet...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[start] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[layout] operator[==] Other[null] operator[SEP] { identifier[initializationFailed] operator[=] literal[boolean] operator[SEP] identifier[addError] operat...
public void addInjectionTarget(Class<?> injectionType, String targetName, String targetClassName) throws InjectionException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc....
class class_name[name] begin[{] method[addInjectionTarget, return_type[void], modifier[public], parameter[injectionType, targetName, targetClassName]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] beg...
Keyword[public] Keyword[void] identifier[addInjectionTarget] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[injectionType] , identifier[String] identifier[targetName] , identifier[String] identifier[targetClassName] operator[SEP] Keyword[throws] identifier[InjectionException] { ...
public final Collection<Thread> getExclusiveQueuedThreads() { ArrayList<Thread> list = new ArrayList<>(); for (Node p = tail; p != null; p = p.prev) { if (!p.isShared()) { Thread t = p.thread; if (t != null) list.add(t); } ...
class class_name[name] begin[{] method[getExclusiveQueuedThreads, return_type[type[Collection]], modifier[final public], parameter[]] begin[{] local_variable[type[ArrayList], list] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], memb...
Keyword[public] Keyword[final] identifier[Collection] operator[<] identifier[Thread] operator[>] identifier[getExclusiveQueuedThreads] operator[SEP] operator[SEP] { identifier[ArrayList] operator[<] identifier[Thread] operator[>] identifier[list] operator[=] Keyword[new] identifier[ArrayList] operator[<] operato...
public static List<CPAttachmentFileEntry> findByUuid_C(String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); }
class class_name[name] begin[{] method[findByUuid_C, return_type[type[List]], modifier[public static], parameter[uuid, companyId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CPAttachmentFileEntry] operator[>] identifier[findByUuid_C] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] opera...
protected String parseLock() throws OCommandSQLParsingException { final String lockStrategy = parserNextWord(true); if (!lockStrategy.equalsIgnoreCase("DEFAULT") && !lockStrategy.equalsIgnoreCase("NONE") && !lockStrategy.equalsIgnoreCase("RECORD")) throwParsingException("Invalid " + KEYWORD_...
class class_name[name] begin[{] method[parseLock, return_type[type[String]], modifier[protected], parameter[]] begin[{] local_variable[type[String], lockStrategy] if[binary_operation[binary_operation[call[lockStrategy.equalsIgnoreCase, parameter[literal["DEFAULT"]]], &&, call[lockStrate...
Keyword[protected] identifier[String] identifier[parseLock] operator[SEP] operator[SEP] Keyword[throws] identifier[OCommandSQLParsingException] { Keyword[final] identifier[String] identifier[lockStrategy] operator[=] identifier[parserNextWord] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[if...
public void subDivide() { MemoryWorkspace workspace = workspaceMode == WorkspaceMode.NONE ? new DummyWorkspace() : Nd4j.getWorkspaceManager().getWorkspaceForCurrentThread( workspaceConfigurationExternal, workspaceExternal); ...
class class_name[name] begin[{] method[subDivide, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[MemoryWorkspace], workspace] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(...
Keyword[public] Keyword[void] identifier[subDivide] operator[SEP] operator[SEP] { identifier[MemoryWorkspace] identifier[workspace] operator[=] identifier[workspaceMode] operator[==] identifier[WorkspaceMode] operator[SEP] identifier[NONE] operator[?] Keyword[new] identifier[DummyWorkspace] operator[SEP] operato...
public CmsDecorationBundle createDecorationBundle(List<CmsDecorationMap> decorationMaps, Locale locale) { CmsDecorationBundle decorationBundle = new CmsDecorationBundle(locale); // sort the bundles Collections.sort(decorationMaps); // now process the decoration maps to see which of thos...
class class_name[name] begin[{] method[createDecorationBundle, return_type[type[CmsDecorationBundle]], modifier[public], parameter[decorationMaps, locale]] begin[{] local_variable[type[CmsDecorationBundle], decorationBundle] call[Collections.sort, parameter[member[.decorationMaps]]] ...
Keyword[public] identifier[CmsDecorationBundle] identifier[createDecorationBundle] operator[SEP] identifier[List] operator[<] identifier[CmsDecorationMap] operator[>] identifier[decorationMaps] , identifier[Locale] identifier[locale] operator[SEP] { identifier[CmsDecorationBundle] identifier[decorationBundle] o...
private String getResourceType(Resource resource) { String result; net.sf.mpxj.ResourceType type = resource.getType(); if (type == null) { type = net.sf.mpxj.ResourceType.WORK; } switch (type) { case MATERIAL: { result = "Material"; ...
class class_name[name] begin[{] method[getResourceType, return_type[type[String]], modifier[private], parameter[resource]] begin[{] local_variable[type[String], result] local_variable[type[net], type] if[binary_operation[member[.type], ==, literal[null]]] begin[{] ...
Keyword[private] identifier[String] identifier[getResourceType] operator[SEP] identifier[Resource] identifier[resource] operator[SEP] { identifier[String] identifier[result] operator[SEP] identifier[net] operator[SEP] identifier[sf] operator[SEP] identifier[mpxj] operator[SEP] identifier[ResourceType] identifier...
private static synchronized String[] getZoneIDs() { if (ZONEIDS == null) { try { UResourceBundle top = UResourceBundle.getBundleInstance( ICUData.ICU_BASE_NAME, ZONEINFORESNAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER); ZONEIDS = top.getStringA...
class class_name[name] begin[{] method[getZoneIDs, return_type[type[String]], modifier[synchronized private static], parameter[]] begin[{] if[binary_operation[member[.ZONEIDS], ==, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Var...
Keyword[private] Keyword[static] Keyword[synchronized] identifier[String] operator[SEP] operator[SEP] identifier[getZoneIDs] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ZONEIDS] operator[==] Other[null] operator[SEP] { Keyword[try] { identifier[UResourceBundle] id...
public static void registerShare(Activity context, Entity entity, ShareOptions shareOptions, ShareAddListener listener, SocialNetwork...networks) { proxy.registerShare(context, entity, shareOptions, listener, networks); }
class class_name[name] begin[{] method[registerShare, return_type[void], modifier[public static], parameter[context, entity, shareOptions, listener, networks]] begin[{] call[proxy.registerShare, parameter[member[.context], member[.entity], member[.shareOptions], member[.listener], member[.netwo...
Keyword[public] Keyword[static] Keyword[void] identifier[registerShare] operator[SEP] identifier[Activity] identifier[context] , identifier[Entity] identifier[entity] , identifier[ShareOptions] identifier[shareOptions] , identifier[ShareAddListener] identifier[listener] , identifier[SocialNetwork] operator[...] ide...
public MemberBuilder withProperty(String key, String value) { config.setProperty(key, value); return this; }
class class_name[name] begin[{] method[withProperty, return_type[type[MemberBuilder]], modifier[public], parameter[key, value]] begin[{] call[config.setProperty, parameter[member[.key], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[MemberBuilder] identifier[withProperty] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { identifier[config] operator[SEP] identifier[setProperty] operator[SEP] identifier[key] , identifier[value] operator[SEP] operator[SEP] Keywo...
private void restoreSnapshot(TransactionSnapshot snapshot) { LOG.info("Restoring transaction state from snapshot at " + snapshot.getTimestamp()); Preconditions.checkState(lastSnapshotTime == 0, "lastSnapshotTime has been set!"); Preconditions.checkState(readPointer == 0, "readPointer has been set!"); Pr...
class class_name[name] begin[{] method[restoreSnapshot, return_type[void], modifier[private], parameter[snapshot]] begin[{] call[LOG.info, parameter[binary_operation[literal["Restoring transaction state from snapshot at "], +, call[snapshot.getTimestamp, parameter[]]]]] call[Pre...
Keyword[private] Keyword[void] identifier[restoreSnapshot] operator[SEP] identifier[TransactionSnapshot] identifier[snapshot] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identifier[snapshot] operator[SEP] identifier[getTimestamp] operator[SEP] operator...
public void marshall(ListLoggerDefinitionsRequest listLoggerDefinitionsRequest, ProtocolMarshaller protocolMarshaller) { if (listLoggerDefinitionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listLoggerDefinitionsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listLoggerDefinitionsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListLoggerDefinitionsRequest] identifier[listLoggerDefinitionsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listLoggerDefinitionsRequest] operator[==] Other...
@SuppressWarnings({"deprecation", "WeakerAccess"}) protected boolean isFlagPresent(final AttributeAccess.Flag flag) { if (flags == null) { return false; } for (AttributeAccess.Flag f : flags) { if (f.equals(flag)) { return true; } } return false; }
class class_name[name] begin[{] method[isFlagPresent, return_type[type[boolean]], modifier[protected], parameter[flag]] begin[{] if[binary_operation[member[.flags], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] ForStatement(bod...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[protected] Keyword[boolean] identifier[isFlagPresent] operator[SEP] Keyword[final] identifier[AttributeAccess] operator[SEP] identifier[Flag] identifier[flag] operator[SEP] { Keyword[if...