code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public S betns(String left, String right) { return betn(left, right).late(); }
class class_name[name] begin[{] method[betns, return_type[type[S]], modifier[public], parameter[left, right]] begin[{] return[call[.betn, parameter[member[.left], member[.right]]]] end[}] END[}]
Keyword[public] identifier[S] identifier[betns] operator[SEP] identifier[String] identifier[left] , identifier[String] identifier[right] operator[SEP] { Keyword[return] identifier[betn] operator[SEP] identifier[left] , identifier[right] operator[SEP] operator[SEP] identifier[late] operator[SEP] operator[SEP] o...
public void addPartial(final String key, final String name) { notNull(key); notNull(name); View view = this.getView(); if (view != null && view instanceof MustacheView) { // First try to not pollute view model object final MustacheView mustacheView = (MustacheView) view; mustacheView.addAlias(key, nam...
class class_name[name] begin[{] method[addPartial, return_type[void], modifier[public], parameter[key, name]] begin[{] call[.notNull, parameter[member[.key]]] call[.notNull, parameter[member[.name]]] local_variable[type[View], view] if[binary_operation[bi...
Keyword[public] Keyword[void] identifier[addPartial] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[name] operator[SEP] { identifier[notNull] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[notNull] operator[SEP] identifier[nam...
public JobInner update(String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { return updateWithServiceResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters).toBlocking().single().body(); }
class class_name[name] begin[{] method[update, return_type[type[JobInner]], modifier[public], parameter[resourceGroupName, accountName, transformName, jobName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.transfor...
Keyword[public] identifier[JobInner] identifier[update] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[transformName] , identifier[String] identifier[jobName] , identifier[JobInner] identifier[parameters] operator[SEP] { ...
@Override public void saveRequest(HttpServletRequest request, HttpServletResponse response) { if (anyRequestMatcher.matches(request) && !ajaxRequestMatcher.matches(request)) { DefaultSavedRequest savedRequest = new DefaultSavedRequest(request, portResolver); HttpUtils.setStateParam(Config.RETURNTO_COOKIE, ...
class class_name[name] begin[{] method[saveRequest, return_type[void], modifier[public], parameter[request, response]] begin[{] if[binary_operation[call[anyRequestMatcher.matches, parameter[member[.request]]], &&, call[ajaxRequestMatcher.matches, parameter[member[.request]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[saveRequest] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] { Keyword[if] operator[SEP] identifier[anyRequestMatcher] operator[SEP] identifier[matche...
public JavaDoubleRDD scoreExamples(JavaRDD<DataSet> data, boolean includeRegularizationTerms, int batchSize) { return data.mapPartitionsToDouble(new ScoreExamplesFunction(sc.broadcast(network.params()), sc.broadcast(conf.toJson()), includeRegularizationTerms, batchSize)); }
class class_name[name] begin[{] method[scoreExamples, return_type[type[JavaDoubleRDD]], modifier[public], parameter[data, includeRegularizationTerms, batchSize]] begin[{] return[call[data.mapPartitionsToDouble, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[],...
Keyword[public] identifier[JavaDoubleRDD] identifier[scoreExamples] operator[SEP] identifier[JavaRDD] operator[<] identifier[DataSet] operator[>] identifier[data] , Keyword[boolean] identifier[includeRegularizationTerms] , Keyword[int] identifier[batchSize] operator[SEP] { Keyword[return] identifier[data] oper...
@SuppressWarnings("unused") private int findEndOfNowikiGreedy (int startBlock) { // NOTE: this method could step back one char from startBlock position int nextBlock=startBlock-3; do { do { nextBlock=wikiText.indexOf("{{{", nextBlock+3); } while (nextB...
class class_name[name] begin[{] method[findEndOfNowikiGreedy, return_type[type[int]], modifier[private], parameter[startBlock]] begin[{] local_variable[type[int], nextBlock] do[binary_operation[member[.nextBlock], <, member[.wikiLength]]] begin[{] do[binary_opera...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[int] identifier[findEndOfNowikiGreedy] operator[SEP] Keyword[int] identifier[startBlock] operator[SEP] { Keyword[int] identifier[nextBlock] operator[=] identifier[startBlock] operator[-] Other[3] opera...
public static <T> Union<T> unionAll(SubQueryExpression<T>... sq) { return new SQLQuery<Void>().unionAll(sq); }
class class_name[name] begin[{] method[unionAll, return_type[type[Union]], modifier[public static], parameter[sq]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[Mem...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Union] operator[<] identifier[T] operator[>] identifier[unionAll] operator[SEP] identifier[SubQueryExpression] operator[<] identifier[T] operator[>] operator[...] identifier[sq] operator[SEP] { Keyword[return] Keyword[new] identifie...
public OvhTask organizationName_service_exchangeService_account_primaryEmailAddress_archive_POST(String organizationName, String exchangeService, String primaryEmailAddress, Long quota) throws IOException { String qPath = "/email/exchange/{organizationName}/service/{exchangeService}/account/{primaryEmailAddress}/arch...
class class_name[name] begin[{] method[organizationName_service_exchangeService_account_primaryEmailAddress_archive_POST, return_type[type[OvhTask]], modifier[public], parameter[organizationName, exchangeService, primaryEmailAddress, quota]] begin[{] local_variable[type[String], qPath] local_va...
Keyword[public] identifier[OvhTask] identifier[organizationName_service_exchangeService_account_primaryEmailAddress_archive_POST] operator[SEP] identifier[String] identifier[organizationName] , identifier[String] identifier[exchangeService] , identifier[String] identifier[primaryEmailAddress] , identifier[Long] iden...
public IfcCurtainWallTypeEnum createIfcCurtainWallTypeEnumFromString(EDataType eDataType, String initialValue) { IfcCurtainWallTypeEnum result = IfcCurtainWallTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator o...
class class_name[name] begin[{] method[createIfcCurtainWallTypeEnumFromString, return_type[type[IfcCurtainWallTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcCurtainWallTypeEnum], result] if[binary_operation[member[.result], ==, literal[...
Keyword[public] identifier[IfcCurtainWallTypeEnum] identifier[createIfcCurtainWallTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcCurtainWallTypeEnum] identifier[result] operator[=] identifier[IfcCurtainWal...
public void evaluateAnalogies(Matrix projection, String inputFileName, String outputFileName) { try { Scanner sc = new Scanner(new File(inputFileName)); PrintStream out = new PrintStream(new FileOutputStream(outputFileName)); while (sc.hasNext()) { ...
class class_name[name] begin[{] method[evaluateAnalogies, return_type[void], modifier[public], parameter[projection, inputFileName, outputFileName]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[C...
Keyword[public] Keyword[void] identifier[evaluateAnalogies] operator[SEP] identifier[Matrix] identifier[projection] , identifier[String] identifier[inputFileName] , identifier[String] identifier[outputFileName] operator[SEP] { Keyword[try] { identifier[Scanner] identifier[sc] operator[=] Keyword[new...
@Deprecated @Override public StringBuffer format(final Calendar calendar, final StringBuffer buf) { return printer.format(calendar, buf); }
class class_name[name] begin[{] method[format, return_type[type[StringBuffer]], modifier[public], parameter[calendar, buf]] begin[{] return[call[printer.format, parameter[member[.calendar], member[.buf]]]] end[}] END[}]
annotation[@] identifier[Deprecated] annotation[@] identifier[Override] Keyword[public] identifier[StringBuffer] identifier[format] operator[SEP] Keyword[final] identifier[Calendar] identifier[calendar] , Keyword[final] identifier[StringBuffer] identifier[buf] operator[SEP] { Keyword[return] identifier[printer]...
public final void readLELongs(long lbuf[], int n) throws IOException { int nLeft = n; int lCount = 0; int nToRead = kLongs; while (nLeft > 0) { if (nToRead > nLeft) nToRead = nLeft; readFully(byteWorkSpace, 0, 8 * nToRead); int j = 0; for (int i = 0; i < nToRead; i++) { ...
class class_name[name] begin[{] method[readLELongs, return_type[void], modifier[final public], parameter[lbuf, n]] begin[{] local_variable[type[int], nLeft] local_variable[type[int], lCount] local_variable[type[int], nToRead] while[binary_operation[member[.nLeft], >, lit...
Keyword[public] Keyword[final] Keyword[void] identifier[readLELongs] operator[SEP] Keyword[long] identifier[lbuf] operator[SEP] operator[SEP] , Keyword[int] identifier[n] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[nLeft] operator[=] identifier[n] operator[SEP] Keyword[int] i...
@XmlElementDecl(namespace = "", name = "besichtigungstermin_2") @XmlJavaTypeAdapter(Adapter4 .class) public JAXBElement<Calendar> createBesichtigungstermin2(Calendar value) { return new JAXBElement<Calendar>(_Besichtigungstermin2_QNAME, Calendar.class, null, value); }
class class_name[name] begin[{] method[createBesichtigungstermin2, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Besichtigungstermin2_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassR...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] annotation[@] identifier[XmlJavaTypeAdapter] operator[SEP] identifier[Adapter4] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAX...
private RtfHeaderFooterGroup convertHeaderFooter(HeaderFooter hf, int type) { if(hf != null) { if(hf instanceof RtfHeaderFooterGroup) { return new RtfHeaderFooterGroup(this.document, (RtfHeaderFooterGroup) hf, type); } else if(hf instanceof RtfHeaderFooter) { ...
class class_name[name] begin[{] method[convertHeaderFooter, return_type[type[RtfHeaderFooterGroup]], modifier[private], parameter[hf, type]] begin[{] if[binary_operation[member[.hf], !=, literal[null]]] begin[{] if[binary_operation[member[.hf], instanceof, type[RtfHeader...
Keyword[private] identifier[RtfHeaderFooterGroup] identifier[convertHeaderFooter] operator[SEP] identifier[HeaderFooter] identifier[hf] , Keyword[int] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[hf] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifie...
public void marshall(GetDeviceDefinitionVersionRequest getDeviceDefinitionVersionRequest, ProtocolMarshaller protocolMarshaller) { if (getDeviceDefinitionVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getDeviceDefinitionVersionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getDeviceDefinitionVersionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=Cla...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetDeviceDefinitionVersionRequest] identifier[getDeviceDefinitionVersionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getDeviceDefinitionVersionRequest] ope...
public void write(Writer writer) throws IOException { BufferedWriter bw = new BufferedWriter(writer); if (vtzlines != null) { for (String line : vtzlines) { if (line.startsWith(ICAL_TZURL + COLON)) { if (tzurl != null) { bw.write(IC...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[writer]] begin[{] local_variable[type[BufferedWriter], bw] if[binary_operation[member[.vtzlines], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements...
Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedWriter] identifier[bw] operator[=] Keyword[new] identifier[BufferedWriter] operator[SEP] identifier[writer] operator[SEP] operator[SEP] Ke...
public Bundle saveInstanceState(@Nullable Bundle savedInstanceState, String prefix) { // handle our extensions for (IAdapterExtension<Item> ext : mExtensions.values()) { ext.saveInstanceState(savedInstanceState, prefix); } return savedInstanceState; }
class class_name[name] begin[{] method[saveInstanceState, return_type[type[Bundle]], modifier[public], parameter[savedInstanceState, prefix]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=savedInstance...
Keyword[public] identifier[Bundle] identifier[saveInstanceState] operator[SEP] annotation[@] identifier[Nullable] identifier[Bundle] identifier[savedInstanceState] , identifier[String] identifier[prefix] operator[SEP] { Keyword[for] operator[SEP] identifier[IAdapterExtension] operator[<] identifier[Item] operat...
public void setValueTypes(List<ValueType<?>> valueTypes) { Validate.noNullElements(valueTypes); this.sqlExecutor.setValueTypes(valueTypes); this.callExecutor.setValueTypes(valueTypes); }
class class_name[name] begin[{] method[setValueTypes, return_type[void], modifier[public], parameter[valueTypes]] begin[{] call[Validate.noNullElements, parameter[member[.valueTypes]]] THIS[member[None.sqlExecutor]call[None.setValueTypes, parameter[member[.valueTypes]]]] ...
Keyword[public] Keyword[void] identifier[setValueTypes] operator[SEP] identifier[List] operator[<] identifier[ValueType] operator[<] operator[?] operator[>] operator[>] identifier[valueTypes] operator[SEP] { identifier[Validate] operator[SEP] identifier[noNullElements] operator[SEP] identifier[valueTypes] operat...
public SortedMap<String,Table> getTables() throws SQLException { synchronized(getTablesLock) { if(getTablesCache==null) { SortedMap<String,Table> newTables = new TreeMap<>(DatabaseMetaData.getCollator()); try (ResultSet results = catalog.getMetaData().getMetaData().getTables(catalog.getName(), name, null, ...
class class_name[name] begin[{] method[getTables, return_type[type[SortedMap]], modifier[public], parameter[]] begin[{] SYNCHRONIZED[member[.getTablesLock]] BEGIN[{] if[binary_operation[member[.getTablesCache], ==, literal[null]]] begin[{] local_variable[...
Keyword[public] identifier[SortedMap] operator[<] identifier[String] , identifier[Table] operator[>] identifier[getTables] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[synchronized] operator[SEP] identifier[getTablesLock] operator[SEP] { Keyword[if] operator[SEP] ide...
public static ResourceRecordSet<SSHFPData> sshfp(String name, String sshfpdata) { return new SSHFPBuilder().name(name).add(sshfpdata).build(); }
class class_name[name] begin[{] method[sshfp, return_type[type[ResourceRecordSet]], modifier[public static], parameter[name, sshfpdata]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInv...
Keyword[public] Keyword[static] identifier[ResourceRecordSet] operator[<] identifier[SSHFPData] operator[>] identifier[sshfp] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[sshfpdata] operator[SEP] { Keyword[return] Keyword[new] identifier[SSHFPBuilder] operator[SEP] operator[...
private HttpUriRequest makeRequest(URI uri, final String requestBody) { HttpPost post = new HttpPost(uri); post.setEntity(new StringEntity(requestBody, m_contentType)); return post; }
class class_name[name] begin[{] method[makeRequest, return_type[type[HttpUriRequest]], modifier[private], parameter[uri, requestBody]] begin[{] local_variable[type[HttpPost], post] call[post.setEntity, parameter[ClassCreator(arguments=[MemberReference(member=requestBody, postfix_operato...
Keyword[private] identifier[HttpUriRequest] identifier[makeRequest] operator[SEP] identifier[URI] identifier[uri] , Keyword[final] identifier[String] identifier[requestBody] operator[SEP] { identifier[HttpPost] identifier[post] operator[=] Keyword[new] identifier[HttpPost] operator[SEP] identifier[uri] operator...
private void readFromStream(InputStream in) throws IOException { document = DocumentFactory.newDocument(Json.read(in)); }
class class_name[name] begin[{] method[readFromStream, return_type[void], modifier[private], parameter[in]] begin[{] assign[member[.document], call[DocumentFactory.newDocument, parameter[call[Json.read, parameter[member[.in]]]]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[readFromStream] operator[SEP] identifier[InputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { identifier[document] operator[=] identifier[DocumentFactory] operator[SEP] identifier[newDocument] operator[SEP] identifier[Json] operator[SEP] id...
private String getRespData(BroadcastResponse resp) { StringBuilder respdata = new StringBuilder(400); if (resp != null) { Status status = resp.getStatus(); if (null != status) { respdata.append(status.name()); respdata.append("-"); ...
class class_name[name] begin[{] method[getRespData, return_type[type[String]], modifier[private], parameter[resp]] begin[{] local_variable[type[StringBuilder], respdata] if[binary_operation[member[.resp], !=, literal[null]]] begin[{] local_variable[type[Status], status] ...
Keyword[private] identifier[String] identifier[getRespData] operator[SEP] identifier[BroadcastResponse] identifier[resp] operator[SEP] { identifier[StringBuilder] identifier[respdata] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[400] operator[SEP] operator[SEP] Keyword[if] operator[SEP]...
public final Cache2kBuilder<K, V> with(ConfigurationSectionBuilder<? extends ConfigurationSection>... sectionBuilders) { for (ConfigurationSectionBuilder<? extends ConfigurationSection> b : sectionBuilders) { config().getSections().add(b.buildConfigurationSection()); } return this; }
class class_name[name] begin[{] method[with, return_type[type[Cache2kBuilder]], modifier[final public], parameter[sectionBuilders]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=config, postfix_operators=[], prefix...
Keyword[public] Keyword[final] identifier[Cache2kBuilder] operator[<] identifier[K] , identifier[V] operator[>] identifier[with] operator[SEP] identifier[ConfigurationSectionBuilder] operator[<] operator[?] Keyword[extends] identifier[ConfigurationSection] operator[>] operator[...] identifier[sectionBuilders] operator...
@SuppressWarnings("deprecation") public Credential createAndStoreCredential(TokenResponse response, String userId) throws IOException { Credential credential = newCredential(userId).setFromTokenResponse(response); if (credentialStore != null) { credentialStore.store(userId, credential); } ...
class class_name[name] begin[{] method[createAndStoreCredential, return_type[type[Credential]], modifier[public], parameter[response, userId]] begin[{] local_variable[type[Credential], credential] if[binary_operation[member[.credentialStore], !=, literal[null]]] begin[{] ...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Credential] identifier[createAndStoreCredential] operator[SEP] identifier[TokenResponse] identifier[response] , identifier[String] identifier[userId] operator[SEP] Keyword[throws] identifier[IOException] ...
public Vector<Object> updateReference(Vector<Object> oldReferenceParams, Vector<Object> newReferenceParams) { try { Reference oldReference = XmlRpcDataMarshaller.toReference( oldReferenceParams ); Reference newReference = XmlRpcDataMarshaller.toReference( newReferenceParams ...
class class_name[name] begin[{] method[updateReference, return_type[type[Vector]], modifier[public], parameter[oldReferenceParams, newReferenceParams]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argum...
Keyword[public] identifier[Vector] operator[<] identifier[Object] operator[>] identifier[updateReference] operator[SEP] identifier[Vector] operator[<] identifier[Object] operator[>] identifier[oldReferenceParams] , identifier[Vector] operator[<] identifier[Object] operator[>] identifier[newReferenceParams] operator[SE...
private void setupBranchingEnumerators() { //Getting required sequence of differences (mutations) final byte[] bSequence = branchingSequences[branchingSequenceIndex]; //Ensure number of branching enumerators ensureCapacity(bSequence.length); //Setting up initial branching enume...
class class_name[name] begin[{] method[setupBranchingEnumerators, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[byte], bSequence] call[.ensureCapacity, parameter[member[bSequence.length]]] local_variable[type[byte], previous] ForStatemen...
Keyword[private] Keyword[void] identifier[setupBranchingEnumerators] operator[SEP] operator[SEP] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[bSequence] operator[=] identifier[branchingSequences] operator[SEP] identifier[branchingSequenceIndex] operator[SEP] operator[SEP] identifier[ensu...
public String getStringValue() { if (value == null) { return null; } if (value.contains("`")) { return value.replaceAll("\\\\`", "`"); } return value; }
class class_name[name] begin[{] method[getStringValue, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[call[value.co...
Keyword[public] identifier[String] identifier[getStringValue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[value] operator[SEP] identifie...
@Override public PersistentTreeMap<K,V> without(K key) { Box<Node<K,V>> found = new Box<>(null); Node<K,V> t = remove(tree, key, found); if (t == null) { //null == doesn't contain key if (found.val == null) { return this; } //empty ...
class class_name[name] begin[{] method[without, return_type[type[PersistentTreeMap]], modifier[public], parameter[key]] begin[{] local_variable[type[Box], found] local_variable[type[Node], t] if[binary_operation[member[.t], ==, literal[null]]] begin[{] if...
annotation[@] identifier[Override] Keyword[public] identifier[PersistentTreeMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[without] operator[SEP] identifier[K] identifier[key] operator[SEP] { identifier[Box] operator[<] identifier[Node] operator[<] identifier[K] , identifier[V] operator[...
public void writeTransactionIdFileToStorage(long txid, FSImage image) throws IOException { // Write txid marker in all storage directories List<StorageDirectory> badSDs = new ArrayList<StorageDirectory>(); for (StorageDirectory sd : storageDirs) { try { writeTransactionIdFile(sd, txid); ...
class class_name[name] begin[{] method[writeTransactionIdFileToStorage, return_type[void], modifier[public], parameter[txid, image]] begin[{] local_variable[type[List], badSDs] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvo...
Keyword[public] Keyword[void] identifier[writeTransactionIdFileToStorage] operator[SEP] Keyword[long] identifier[txid] , identifier[FSImage] identifier[image] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[StorageDirectory] operator[>] identifier[badSDs] operator...
public boolean init(String[] args) throws ParseException { CommandLine cliParser = new GnuParser().parse(jstormClientContext.opts, args); if (cliParser.hasOption(JOYConstants.HELP)) { printUsage(); return false; } jstormClientContext.appName = cliParser.getOption...
class class_name[name] begin[{] method[init, return_type[type[boolean]], modifier[public], parameter[args]] begin[{] local_variable[type[CommandLine], cliParser] if[call[cliParser.hasOption, parameter[member[JOYConstants.HELP]]]] begin[{] call[.printUsage, parame...
Keyword[public] Keyword[boolean] identifier[init] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[CommandLine] identifier[cliParser] operator[=] Keyword[new] identifier[GnuParser] operator[SEP] operator[SEP] opera...
public void skipIgnored(int options) { if ((options & SKIP_WHITESPACE) != 0) { for (;;) { int a = _current(); if (!PatternProps.isWhiteSpace(a)) break; _advance(UTF16.getCharCount(a)); } } }
class class_name[name] begin[{] method[skipIgnored, return_type[void], modifier[public], parameter[options]] begin[{] if[binary_operation[binary_operation[member[.options], &, member[.SKIP_WHITESPACE]], !=, literal[0]]] begin[{] ForStatement(body=BlockStatement(label=None, statement...
Keyword[public] Keyword[void] identifier[skipIgnored] operator[SEP] Keyword[int] identifier[options] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[options] operator[&] identifier[SKIP_WHITESPACE] operator[SEP] operator[!=] Other[0] operator[SEP] { Keyword[for] operator[SEP] operat...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); response.setHeader("Pragma", "no-cache"); PrintWriter out = response.getWriter(); out.println("<html><head...
class class_name[name] begin[{] method[doGet, return_type[void], modifier[protected], parameter[request, response]] begin[{] call[response.setContentType, parameter[literal["text/html"]]] call[response.setHeader, parameter[literal["Pragma"], literal["no-cache"]]] local_v...
Keyword[protected] Keyword[void] identifier[doGet] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] { identifier[response] operator[SEP] identifier[setCont...
public boolean inCache() { boolean inCache = false; synchronized (ivBucket) { // Non-negative pin value indicates the object is in the cache. if (pinned >= 0) { ((WrapperBucket) ivBucket).ivWrapperCache.touch(this); inCache...
class class_name[name] begin[{] method[inCache, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], inCache] SYNCHRONIZED[member[.ivBucket]] BEGIN[{] if[binary_operation[member[.pinned], >=, literal[0]]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[inCache] operator[SEP] operator[SEP] { Keyword[boolean] identifier[inCache] operator[=] literal[boolean] operator[SEP] Keyword[synchronized] operator[SEP] identifier[ivBucket] operator[SEP] { Keyword[if] operator[SEP] identifier[pinned] operator[>=] Other[0]...
public void copyMetaDataFrom(EncodedImage encodedImage) { mImageFormat = encodedImage.getImageFormat(); mWidth = encodedImage.getWidth(); mHeight = encodedImage.getHeight(); mRotationAngle = encodedImage.getRotationAngle(); mExifOrientation = encodedImage.getExifOrientation(); mSampleSize = enco...
class class_name[name] begin[{] method[copyMetaDataFrom, return_type[void], modifier[public], parameter[encodedImage]] begin[{] assign[member[.mImageFormat], call[encodedImage.getImageFormat, parameter[]]] assign[member[.mWidth], call[encodedImage.getWidth, parameter[]]] ...
Keyword[public] Keyword[void] identifier[copyMetaDataFrom] operator[SEP] identifier[EncodedImage] identifier[encodedImage] operator[SEP] { identifier[mImageFormat] operator[=] identifier[encodedImage] operator[SEP] identifier[getImageFormat] operator[SEP] operator[SEP] operator[SEP] identifier[mWidth] operator[=...
public Pager<Namespace> getNamespaces(int itemsPerPage) throws GitLabApiException { return (new Pager<Namespace>(this, Namespace.class, itemsPerPage, null, "namespaces")); }
class class_name[name] begin[{] method[getNamespaces, return_type[type[Pager]], modifier[public], parameter[itemsPerPage]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[Pager] operator[<] identifier[Namespace] operator[>] identifier[getNamespaces] operator[SEP] Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[return] operator[SEP] Keyword[new] identifier[Pager] operator[<] identifier[Namespac...
RuleReturnScope invoke(Parser parser) throws Exception { assert parser != null; return (RuleReturnScope)method.invoke(parser, arguments); }
class class_name[name] begin[{] method[invoke, return_type[type[RuleReturnScope]], modifier[default], parameter[parser]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=parser, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(post...
identifier[RuleReturnScope] identifier[invoke] operator[SEP] identifier[Parser] identifier[parser] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[assert] identifier[parser] operator[!=] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[RuleReturnScope] operator[SEP] identifier[met...
private Map /* String, String */ parseHeaders(String headerPart) { final int len = headerPart.length(); Map<String, String> headers = new HashMap<String, String>(); int start = 0; for (; ;) { int end = parseEndOfLine(headerPart, start); if (start == end) { ...
class class_name[name] begin[{] method[parseHeaders, return_type[type[Map]], modifier[private], parameter[headerPart]] begin[{] local_variable[type[int], len] local_variable[type[Map], headers] local_variable[type[int], start] ForStatement(body=BlockStatement(label=None, stateme...
Keyword[private] identifier[Map] identifier[parseHeaders] operator[SEP] identifier[String] identifier[headerPart] operator[SEP] { Keyword[final] Keyword[int] identifier[len] operator[=] identifier[headerPart] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] i...
public static Source source(File file) throws FileNotFoundException { if (file == null) throw new IllegalArgumentException("file == null"); return source(new FileInputStream(file)); }
class class_name[name] begin[{] method[source, return_type[type[Source]], modifier[public static], parameter[file]] begin[{] if[binary_operation[member[.file], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[static] identifier[Source] identifier[source] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[FileNotFoundException] { Keyword[if] operator[SEP] identifier[file] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalA...
public static void configure(TokenBasedAuthConfiguration configuration) { encryptor.setPoolSize(configuration.getPoolSize()); // This would be a good value for a 4-core system if (configuration.getServerPassword().equals("auto")) { encryptor.setPassword(UUID.randomUUID().toString())...
class class_name[name] begin[{] method[configure, return_type[void], modifier[public static], parameter[configuration]] begin[{] call[encryptor.setPoolSize, parameter[call[configuration.getPoolSize, parameter[]]]] if[call[configuration.getServerPassword, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[configure] operator[SEP] identifier[TokenBasedAuthConfiguration] identifier[configuration] operator[SEP] { identifier[encryptor] operator[SEP] identifier[setPoolSize] operator[SEP] identifier[configuration] operator[SEP] identifier[getPoolSize] operator[SE...
public void addForbiddenInjectionPrefix(String prefix) { if (!Strings.isEmpty(prefix)) { final String real = prefix.endsWith(".") ? prefix.substring(0, prefix.length() - 1) : prefix; //$NON-NLS-1$ this.forbiddenInjectionPrefixes.add(real); } }
class class_name[name] begin[{] method[addForbiddenInjectionPrefix, return_type[void], modifier[public], parameter[prefix]] begin[{] if[call[Strings.isEmpty, parameter[member[.prefix]]]] begin[{] local_variable[type[String], real] THIS[member[None.forbiddenIn...
Keyword[public] Keyword[void] identifier[addForbiddenInjectionPrefix] operator[SEP] identifier[String] identifier[prefix] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[Strings] operator[SEP] identifier[isEmpty] operator[SEP] identifier[prefix] operator[SEP] operator[SEP] { Keyword[f...
private synchronized ZNames loadTimeZoneNames(String tzID) { ZNames tznames = _tzNamesMap.get(tzID); if (tznames == null) { ZNamesLoader loader = new ZNamesLoader(); loader.loadTimeZone(_zoneStrings, tzID); tznames = ZNames.createTimeZoneAndPutInCache(_tzNamesMap, loa...
class class_name[name] begin[{] method[loadTimeZoneNames, return_type[type[ZNames]], modifier[synchronized private], parameter[tzID]] begin[{] local_variable[type[ZNames], tznames] if[binary_operation[member[.tznames], ==, literal[null]]] begin[{] local_variable[type[ZNamesL...
Keyword[private] Keyword[synchronized] identifier[ZNames] identifier[loadTimeZoneNames] operator[SEP] identifier[String] identifier[tzID] operator[SEP] { identifier[ZNames] identifier[tznames] operator[=] identifier[_tzNamesMap] operator[SEP] identifier[get] operator[SEP] identifier[tzID] operator[SEP] operator[...
protected void checkLPSEnablement() { if (tc.isEntryEnabled()) Tr.entry(tc, "checkLPSEnablement"); // If this is in a tran enabled for LPS via beginLPSEnabledTx return without // checking for LPS enablement if (_LPSEnabledTx) { if (tc.isEntryEnabled()) ...
class class_name[name] begin[{] method[checkLPSEnablement, return_type[void], modifier[protected], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["checkLPSEnablement"]]] else begin[{] None end[}] ...
Keyword[protected] Keyword[void] identifier[checkLPSEnablement] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] ...
protected static final BeanContextChild getChildBeanContextChild(Object child) { if (child instanceof BeanContextChild) { if (child instanceof BeanContextProxy) { throw new IllegalArgumentException(Messages.getString("beans.6C")); } return (BeanContextChild) child; } if (child instanceof BeanCo...
class class_name[name] begin[{] method[getChildBeanContextChild, return_type[type[BeanContextChild]], modifier[final static protected], parameter[child]] begin[{] if[binary_operation[member[.child], instanceof, type[BeanContextChild]]] begin[{] if[binary_operation[member...
Keyword[protected] Keyword[static] Keyword[final] identifier[BeanContextChild] identifier[getChildBeanContextChild] operator[SEP] identifier[Object] identifier[child] operator[SEP] { Keyword[if] operator[SEP] identifier[child] Keyword[instanceof] identifier[BeanContextChild] operator[SEP] { Keyword[if...
public void addAllGroups(Collection<TimelineGroup> groups) { if (groups == null) { groups = new ArrayList<>(); } groups.addAll(groups); }
class class_name[name] begin[{] method[addAllGroups, return_type[void], modifier[public], parameter[groups]] begin[{] if[binary_operation[member[.groups], ==, literal[null]]] begin[{] assign[member[.groups], ClassCreator(arguments=[], body=None, constructor_type_argument...
Keyword[public] Keyword[void] identifier[addAllGroups] operator[SEP] identifier[Collection] operator[<] identifier[TimelineGroup] operator[>] identifier[groups] operator[SEP] { Keyword[if] operator[SEP] identifier[groups] operator[==] Other[null] operator[SEP] { identifier[groups] operator[=] Keyword[...
public final Condition beginsWith(final V value) { return new Condition().withComparisonOperator(BEGINS_WITH).withAttributeValueList(convert(value)); }
class class_name[name] begin[{] method[beginsWith, return_type[type[Condition]], modifier[final public], parameter[value]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(argume...
Keyword[public] Keyword[final] identifier[Condition] identifier[beginsWith] operator[SEP] Keyword[final] identifier[V] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[Condition] operator[SEP] operator[SEP] operator[SEP] identifier[withComparisonOperator] operator[SEP] identifier[BEGINS_...
public static void cleanIneligibleKeys(Map<ByteArray, Map<Value, Set<ClusterNode>>> keyVersionNodeSetMap, int requiredWrite) { Set<ByteArray> keysToDelete = new HashSet<ByteArray>(); for (Map.Entry<ByteArray, Map<Value, Set<ClusterNode>>> entry : keyVersionNodeSetMap.entrySet()) { ...
class class_name[name] begin[{] method[cleanIneligibleKeys, return_type[void], modifier[public static], parameter[keyVersionNodeSetMap, requiredWrite]] begin[{] local_variable[type[Set], keysToDelete] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=...
Keyword[public] Keyword[static] Keyword[void] identifier[cleanIneligibleKeys] operator[SEP] identifier[Map] operator[<] identifier[ByteArray] , identifier[Map] operator[<] identifier[Value] , identifier[Set] operator[<] identifier[ClusterNode] operator[>] operator[>] operator[>] identifier[keyVersionNodeSetMap] , Ke...
public static String toUnicode(String str, boolean isSkipAscii) { if (StrUtil.isEmpty(str)) { return str; } final int len = str.length(); final StrBuilder unicode = StrBuilder.create(str.length() * 6); char c; for (int i = 0; i < len; i++) { c = str.charAt(i); if(isSkipAscii && CharUtil....
class class_name[name] begin[{] method[toUnicode, return_type[type[String]], modifier[public static], parameter[str, isSkipAscii]] begin[{] if[call[StrUtil.isEmpty, parameter[member[.str]]]] begin[{] return[member[.str]] else begin[{] None end[}] local_variab...
Keyword[public] Keyword[static] identifier[String] identifier[toUnicode] operator[SEP] identifier[String] identifier[str] , Keyword[boolean] identifier[isSkipAscii] operator[SEP] { Keyword[if] operator[SEP] identifier[StrUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[str] operator[SEP] operato...
private Drawable getActivityIconWithCache(ComponentName component) { // First check the icon cache String componentIconKey = component.flattenToShortString(); // Using containsKey() since we also store null values. if (mOutsideDrawablesCache.containsKey(componentIconKey)) { D...
class class_name[name] begin[{] method[getActivityIconWithCache, return_type[type[Drawable]], modifier[private], parameter[component]] begin[{] local_variable[type[String], componentIconKey] if[call[mOutsideDrawablesCache.containsKey, parameter[member[.componentIconKey]]]] begin[{] ...
Keyword[private] identifier[Drawable] identifier[getActivityIconWithCache] operator[SEP] identifier[ComponentName] identifier[component] operator[SEP] { identifier[String] identifier[componentIconKey] operator[=] identifier[component] operator[SEP] identifier[flattenToShortString] operator[SEP] operator[SEP] ope...
public final void entryRuleAssignableAlternatives() throws RecognitionException { try { // InternalXtext.g:971:1: ( ruleAssignableAlternatives EOF ) // InternalXtext.g:972:1: ruleAssignableAlternatives EOF { before(grammarAccess.getAssignableAlternativesRule()); ...
class class_name[name] begin[{] method[entryRuleAssignableAlternatives, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAssigna...
Keyword[public] Keyword[final] Keyword[void] identifier[entryRuleAssignableAlternatives] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { { identifier[before] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAssignableAlter...
private void createDictionaries(String file, String conllFormat) throws IOException { long start = System.currentTimeMillis(); logger.debug("Creating dictionariesSet ... "); dictionariesSet.setCounters(); DependencyReader reader = DependencyReader.createDependencyReader(conllFormat...
class class_name[name] begin[{] method[createDictionaries, return_type[void], modifier[private], parameter[file, conllFormat]] begin[{] local_variable[type[long], start] call[logger.debug, parameter[literal["Creating dictionariesSet ... "]]] call[dictionariesSet.setCount...
Keyword[private] Keyword[void] identifier[createDictionaries] operator[SEP] identifier[String] identifier[file] , identifier[String] identifier[conllFormat] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[start] operator[=] identifier[System] operator[SEP] identifier[currentTime...
private void buildMethodFieldModifiers(ClassContext classContext) { FieldModifier fm = new FieldModifier(); fm.visitClassContext(classContext); methodFieldModifiers = fm.getMethodFieldModifiers(); }
class class_name[name] begin[{] method[buildMethodFieldModifiers, return_type[void], modifier[private], parameter[classContext]] begin[{] local_variable[type[FieldModifier], fm] call[fm.visitClassContext, parameter[member[.classContext]]] assign[member[.methodFieldModifi...
Keyword[private] Keyword[void] identifier[buildMethodFieldModifiers] operator[SEP] identifier[ClassContext] identifier[classContext] operator[SEP] { identifier[FieldModifier] identifier[fm] operator[=] Keyword[new] identifier[FieldModifier] operator[SEP] operator[SEP] operator[SEP] identifier[fm] operator[SEP] i...
@Override public IoBuffer getKeyframe() { IoBuffer result = IoBuffer.allocate(1024); result.setAutoExpand(true); // Header result.put((byte) (FLV_FRAME_KEY | VideoCodec.SCREEN_VIDEO.getId())); // Frame size result.putShort((short) this.widthInfo); ...
class class_name[name] begin[{] method[getKeyframe, return_type[type[IoBuffer]], modifier[public], parameter[]] begin[{] local_variable[type[IoBuffer], result] call[result.setAutoExpand, parameter[literal[true]]] call[result.put, parameter[Cast(expression=BinaryOperation...
annotation[@] identifier[Override] Keyword[public] identifier[IoBuffer] identifier[getKeyframe] operator[SEP] operator[SEP] { identifier[IoBuffer] identifier[result] operator[=] identifier[IoBuffer] operator[SEP] identifier[allocate] operator[SEP] Other[1024] operator[SEP] operator[SEP] identifier[result] operat...
public static <T> Procedure1<T> andThen(final Procedure1<? super T> before, final Procedure1<? super T> after) { if (after == null) throw new NullPointerException("after"); if (before == null) throw new NullPointerException("before"); return new Procedures.Procedure1<T>() { @Override public void apply...
class class_name[name] begin[{] method[andThen, return_type[type[Procedure1]], modifier[public static], parameter[before, after]] begin[{] if[binary_operation[member[.after], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Procedure1] operator[<] identifier[T] operator[>] identifier[andThen] operator[SEP] Keyword[final] identifier[Procedure1] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[before] , Keyword[final] identifier[Proc...
public static ntp_param[] get_filtered(nitro_service service, String filter) throws Exception { ntp_param obj = new ntp_param(); options option = new options(); option.set_filter(filter); ntp_param[] response = (ntp_param[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[ntp_param]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[ntp_param], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] ...
Keyword[public] Keyword[static] identifier[ntp_param] 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[ntp_param] identifier[obj] operator[=] K...
protected ResponseEntity buildNotFoundResponseEntity(final String message) { return new ResponseEntity<>(CollectionUtils.wrap("message", message), HttpStatus.NOT_FOUND); }
class class_name[name] begin[{] method[buildNotFoundResponseEntity, return_type[type[ResponseEntity]], modifier[protected], parameter[message]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="mes...
Keyword[protected] identifier[ResponseEntity] identifier[buildNotFoundResponseEntity] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] { Keyword[return] Keyword[new] identifier[ResponseEntity] operator[<] operator[>] operator[SEP] identifier[CollectionUtils] operator[SEP] identif...
protected void addBranchesAsChildren( Git git, CallSpecification spec, DocumentWriter writer ) throws GitAPIException { Set<String> remoteBranchPrefixes = remoteBranchPrefixes(); if (remoteBranchPrefixes.isEmpty()) { ...
class class_name[name] begin[{] method[addBranchesAsChildren, return_type[void], modifier[protected], parameter[git, spec, writer]] begin[{] local_variable[type[Set], remoteBranchPrefixes] if[call[remoteBranchPrefixes.isEmpty, parameter[]]] begin[{] local_variable[type[ListB...
Keyword[protected] Keyword[void] identifier[addBranchesAsChildren] operator[SEP] identifier[Git] identifier[git] , identifier[CallSpecification] identifier[spec] , identifier[DocumentWriter] identifier[writer] operator[SEP] Keyword[throws] identifier[GitAPIException] { identifier[Set] operator[<] identifier[St...
public Charset getCharsetParameter() { String value = getParameter("charset"); return value == null ? null : Charset.forName(value); }
class class_name[name] begin[{] method[getCharsetParameter, return_type[type[Charset]], modifier[public], parameter[]] begin[{] local_variable[type[String], value] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[]...
Keyword[public] identifier[Charset] identifier[getCharsetParameter] operator[SEP] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[getParameter] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[value] operator[==] Other[null] operator[?] Other[null] ...
public static <A, B> B safeLookup(Map<A, B> map, A key) { if (map == null) { return null; } return map.get(key); }
class class_name[name] begin[{] method[safeLookup, return_type[type[B]], modifier[public static], parameter[map, key]] begin[{] if[binary_operation[member[.map], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[map.get,...
Keyword[public] Keyword[static] operator[<] identifier[A] , identifier[B] operator[>] identifier[B] identifier[safeLookup] operator[SEP] identifier[Map] operator[<] identifier[A] , identifier[B] operator[>] identifier[map] , identifier[A] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[ma...
protected final PrcPrepaymentFromCopy<RS> createPutPrcPrepaymentFromCopy( final Map<String, Object> pAddParam) throws Exception { PrcPrepaymentFromCopy<RS> proc = new PrcPrepaymentFromCopy<RS>(); @SuppressWarnings("unchecked") IEntityProcessor<PrepaymentFrom, Long> procDlg = (IEntityProcessor<Prep...
class class_name[name] begin[{] method[createPutPrcPrepaymentFromCopy, return_type[type[PrcPrepaymentFromCopy]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcPrepaymentFromCopy], proc] local_variable[type[IEntityProcessor], procDlg] call[proc....
Keyword[protected] Keyword[final] identifier[PrcPrepaymentFromCopy] operator[<] identifier[RS] operator[>] identifier[createPutPrcPrepaymentFromCopy] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] identifi...
@Override public Result call(Route route, RequestContext context) throws Exception { if (getMembers().isEmpty()) { return context.proceed(); } else { return super.call(route, context); } }
class class_name[name] begin[{] method[call, return_type[type[Result]], modifier[public], parameter[route, context]] begin[{] if[call[.getMembers, parameter[]]] begin[{] return[call[context.proceed, parameter[]]] else begin[{] return[SuperMethodInvocation(argumen...
annotation[@] identifier[Override] Keyword[public] identifier[Result] identifier[call] operator[SEP] identifier[Route] identifier[route] , identifier[RequestContext] identifier[context] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[getMembers] operator[SEP] operator[...
public ServiceFuture<VaultExtendedInfoResourceInner> updateAsync(String resourceGroupName, String vaultName, VaultExtendedInfoResourceInner resourceResourceExtendedInfoDetails, final ServiceCallback<VaultExtendedInfoResourceInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsy...
class class_name[name] begin[{] method[updateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, vaultName, resourceResourceExtendedInfoDetails, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateWithServiceResponseAsync, paramet...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[VaultExtendedInfoResourceInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vaultName] , identifier[VaultExtendedInfoResourceInner] identifier[resourceResourceExtende...
@CheckReturnValue @NonNull @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) public final Flowable<T> mergeWith(@NonNull MaybeSource<? extends T> other) { ObjectHelper.requireNonNull(other, "other is null"); return RxJavaPlugins.onAssembly(new FlowableM...
class class_name[name] begin[{] method[mergeWith, return_type[type[Flowable]], modifier[final public], parameter[other]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.other], literal["other is null"]]] return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(arguments...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[NonNull] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifie...
public void elemAdd(VTensor other) { checkEqualSize(this, other); for (int c = 0; c < this.size(); c++) { addValue(c, other.getValue(c)); } }
class class_name[name] begin[{] method[elemAdd, return_type[void], modifier[public], parameter[other]] begin[{] call[.checkEqualSize, parameter[THIS[], member[.other]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Me...
Keyword[public] Keyword[void] identifier[elemAdd] operator[SEP] identifier[VTensor] identifier[other] operator[SEP] { identifier[checkEqualSize] operator[SEP] Keyword[this] , identifier[other] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[c] operator[=] Other[0] operator[SEP] id...
@Override public String writeSingle(String spaceId, String chunkChecksum, ChunkInputStream chunk, Map<String, String> properties) throws NotFoundException { AddContentResult result = writeContent(spaceId, ...
class class_name[name] begin[{] method[writeSingle, return_type[type[String]], modifier[public], parameter[spaceId, chunkChecksum, chunk, properties]] begin[{] local_variable[type[AddContentResult], result] local_variable[type[String], finalChecksum] if[binary_operation[binary_o...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[writeSingle] operator[SEP] identifier[String] identifier[spaceId] , identifier[String] identifier[chunkChecksum] , identifier[ChunkInputStream] identifier[chunk] , identifier[Map] operator[<] identifier[String] , identifier[String] ope...
public com.google.rpc.Help.Link getLinks(int index) { return links_.get(index); }
class class_name[name] begin[{] method[getLinks, return_type[type[com]], modifier[public], parameter[index]] begin[{] return[call[links_.get, parameter[member[.index]]]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[rpc] operator[SEP] identifier[Help] operator[SEP] identifier[Link] identifier[getLinks] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[return] identifier[links_] operator[SEP] identifier[get] operator[...
void log(Level level, String msg, Exception e) { if (e != null) logger.log(level, msg, e); }
class class_name[name] begin[{] method[log, return_type[void], modifier[default], parameter[level, msg, e]] begin[{] if[binary_operation[member[.e], !=, literal[null]]] begin[{] call[logger.log, parameter[member[.level], member[.msg], member[.e]]] else begin[{] None ...
Keyword[void] identifier[log] operator[SEP] identifier[Level] identifier[level] , identifier[String] identifier[msg] , identifier[Exception] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[e] operator[!=] Other[null] operator[SEP] identifier[logger] operator[SEP] identifier[log] operator[SEP...
protected Node getFolderNode() throws EFapsException, RepositoryException { Node ret = getSession().getRootNode(); if (getProperties().containsKey(JCRStoreResource.PROPERTY_BASEFOLDER)) { if (ret.hasNode(getProperties().get(JCRStoreResource.PROPERTY_BASEFOLDER))) { ...
class class_name[name] begin[{] method[getFolderNode, return_type[type[Node]], modifier[protected], parameter[]] begin[{] local_variable[type[Node], ret] if[call[.getProperties, parameter[]]] begin[{] if[call[ret.hasNode, parameter[call[.getProperties, parameter[...
Keyword[protected] identifier[Node] identifier[getFolderNode] operator[SEP] operator[SEP] Keyword[throws] identifier[EFapsException] , identifier[RepositoryException] { identifier[Node] identifier[ret] operator[=] identifier[getSession] operator[SEP] operator[SEP] operator[SEP] identifier[getRootNode] operator[...
public ServiceFuture<SecurityRuleInner> getAsync(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, final ServiceCallback<SecurityRuleInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, networkSecurityGroupName, securityRule...
class class_name[name] begin[{] method[getAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, networkSecurityGroupName, securityRuleName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getWithServiceResponseAsync, parameter[member[...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[SecurityRuleInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkSecurityGroupName] , identifier[String] identifier[securityRuleName] , Keyword[final] identifier[S...
protected SSLContext getSSLContextForLink(VirtualConnection vc, String host, String port, String endPoint, Boolean isZWebContainerChain, SSLConnectionLink link) throws ChannelException { if (TraceComponent.isAnyTracingEn...
class class_name[name] begin[{] method[getSSLContextForLink, return_type[type[SSLContext]], modifier[protected], parameter[vc, host, port, endPoint, isZWebContainerChain, link]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, param...
Keyword[protected] identifier[SSLContext] identifier[getSSLContextForLink] operator[SEP] identifier[VirtualConnection] identifier[vc] , identifier[String] identifier[host] , identifier[String] identifier[port] , identifier[String] identifier[endPoint] , identifier[Boolean] identifier[isZWebContainerChain] , identi...
public static void createTemplate(RestClient client, String template, boolean force) throws Exception { String json = TemplateSettingsReader.readTemplate(template); createTemplateWithJson(client, template, json, force); }
class class_name[name] begin[{] method[createTemplate, return_type[void], modifier[public static], parameter[client, template, force]] begin[{] local_variable[type[String], json] call[.createTemplateWithJson, parameter[member[.client], member[.template], member[.json], member[.force]]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[createTemplate] operator[SEP] identifier[RestClient] identifier[client] , identifier[String] identifier[template] , Keyword[boolean] identifier[force] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[json] operator[=] i...
public ListAppStreamsResponse listAppStreams(ListAppStreamsRequest request) { checkNotNull(request, "The parameter request should NOT be null."); checkStringNotEmpty(request.getApp(), "The parameter app should NOT be null or empty string."); InternalRequest internalRequest = createRequest(HttpMe...
class class_name[name] begin[{] method[listAppStreams, return_type[type[ListAppStreamsResponse]], modifier[public], parameter[request]] begin[{] call[.checkNotNull, parameter[member[.request], literal["The parameter request should NOT be null."]]] call[.checkStringNotEmpty, para...
Keyword[public] identifier[ListAppStreamsResponse] identifier[listAppStreams] operator[SEP] identifier[ListAppStreamsRequest] identifier[request] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[checkStringNotEmpty] operator[SEP]...
public JvmOperation getElement() { if (element != null && element.eIsProxy()) { InternalEObject oldElement = (InternalEObject)element; element = (JvmOperation)eResolveProxy(oldElement); if (element != oldElement) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.R...
class class_name[name] begin[{] method[getElement, return_type[type[JvmOperation]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.element], !=, literal[null]], &&, call[element.eIsProxy, parameter[]]]] begin[{] local_variable[type[InternalEObje...
Keyword[public] identifier[JvmOperation] identifier[getElement] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[element] operator[!=] Other[null] operator[&&] identifier[element] operator[SEP] identifier[eIsProxy] operator[SEP] operator[SEP] operator[SEP] { identifier[InternalEObjec...
public static long queryNumEntries(SQLiteDatabase db, String table, String selection, String[] selectionArgs) { String s = (!TextUtils.isEmpty(selection)) ? " where " + selection : ""; return longForQuery(db, "select count(*) from " + table + s, selectionArgs); }
class class_name[name] begin[{] method[queryNumEntries, return_type[type[long]], modifier[public static], parameter[db, table, selection, selectionArgs]] begin[{] local_variable[type[String], s] return[call[.longForQuery, parameter[member[.db], binary_operation[binary_operation[literal["select ...
Keyword[public] Keyword[static] Keyword[long] identifier[queryNumEntries] operator[SEP] identifier[SQLiteDatabase] identifier[db] , identifier[String] identifier[table] , identifier[String] identifier[selection] , identifier[String] operator[SEP] operator[SEP] identifier[selectionArgs] operator[SEP] { identif...
public void setSizeConstraints(java.util.Collection<SizeConstraint> sizeConstraints) { if (sizeConstraints == null) { this.sizeConstraints = null; return; } this.sizeConstraints = new java.util.ArrayList<SizeConstraint>(sizeConstraints); }
class class_name[name] begin[{] method[setSizeConstraints, return_type[void], modifier[public], parameter[sizeConstraints]] begin[{] if[binary_operation[member[.sizeConstraints], ==, literal[null]]] begin[{] assign[THIS[member[None.sizeConstraints]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setSizeConstraints] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[SizeConstraint] operator[>] identifier[sizeConstraints] operator[SEP] { Keyword[if] operator[SEP] identifier[sizeConstraints] oper...
public boolean ping(Jid jid, long pingTimeout) throws NotConnectedException, NoResponseException, InterruptedException { final XMPPConnection connection = connection(); // Packet collector for IQs needs an connection that was at least authenticated once, // otherwise the client JID will be null ...
class class_name[name] begin[{] method[ping, return_type[type[boolean]], modifier[public], parameter[jid, pingTimeout]] begin[{] local_variable[type[XMPPConnection], connection] if[call[connection.isAuthenticated, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator...
Keyword[public] Keyword[boolean] identifier[ping] operator[SEP] identifier[Jid] identifier[jid] , Keyword[long] identifier[pingTimeout] operator[SEP] Keyword[throws] identifier[NotConnectedException] , identifier[NoResponseException] , identifier[InterruptedException] { Keyword[final] identifier[XMPPConnectio...
private ResourceIterator<Node> singlePropertyIdFindEntities(GraphDatabaseService executionEngine, EntityKey[] keys) { Object[] paramsValues = new Object[keys.length]; for ( int i = 0; i < keys.length; i++ ) { paramsValues[i] = keys[i].getColumnValues()[0]; } Map<String, Object> params = Collections.singleton...
class class_name[name] begin[{] method[singlePropertyIdFindEntities, return_type[type[ResourceIterator]], modifier[private], parameter[executionEngine, keys]] begin[{] local_variable[type[Object], paramsValues] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(express...
Keyword[private] identifier[ResourceIterator] operator[<] identifier[Node] operator[>] identifier[singlePropertyIdFindEntities] operator[SEP] identifier[GraphDatabaseService] identifier[executionEngine] , identifier[EntityKey] operator[SEP] operator[SEP] identifier[keys] operator[SEP] { identifier[Object] opera...
@Override public void configure(final String name, final Object value, final Logger logger) { if (ROOT.equals(name)) { if (value instanceof String) { root = (String) value; logger.logInfo("Configured root DN for directory server: " + root); } }...
class class_name[name] begin[{] method[configure, return_type[void], modifier[public], parameter[name, value, logger]] begin[{] if[call[ROOT.equals, parameter[member[.name]]]] begin[{] if[binary_operation[member[.value], instanceof, type[String]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configure] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Object] identifier[value] , Keyword[final] identifier[Logger] identifier[logger] operator[SEP] { Keyword[if] operator[SEP] identifi...
public Time getTime(int columnIndex, Calendar cal) throws SQLException { TimeData t = (TimeData) getColumnInType(columnIndex, Type.SQL_TIME); if (t == null) { return null; } long millis = t.getSeconds() * 1000; if (resultMetaData.columnTypes[--columnIndex] ...
class class_name[name] begin[{] method[getTime, return_type[type[Time]], modifier[public], parameter[columnIndex, cal]] begin[{] local_variable[type[TimeData], t] if[binary_operation[member[.t], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] identifier[Time] identifier[getTime] operator[SEP] Keyword[int] identifier[columnIndex] , identifier[Calendar] identifier[cal] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[TimeData] identifier[t] operator[=] operator[SEP] identifier[TimeData] operator[SEP] identifier[getCo...
private ElementUI getVisibleChild(boolean first) { int count = getChildCount(); int start = first ? 0 : count - 1; int inc = first ? 1 : -1; for (int i = start; i >= 0 && i < count; i += inc) { ElementUI child = (ElementUI) getChild(i); if (child.isVisib...
class class_name[name] begin[{] method[getVisibleChild, return_type[type[ElementUI]], modifier[private], parameter[first]] begin[{] local_variable[type[int], count] local_variable[type[int], start] local_variable[type[int], inc] ForStatement(body=BlockStatement(label=None, state...
Keyword[private] identifier[ElementUI] identifier[getVisibleChild] operator[SEP] Keyword[boolean] identifier[first] operator[SEP] { Keyword[int] identifier[count] operator[=] identifier[getChildCount] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[start] operator[=] identifier[first] operator[...
public void downLoadFile(String fullFilename, OutputStream outputStream) { TrackerServer trackerServer = null; StorageClient1 storageClient1 = null; try { trackerServer = fastDfsClientPool.borrowObject(); String suffx = fullFilename.substring(fullFilename.lastIndexOf(EXT_...
class class_name[name] begin[{] method[downLoadFile, return_type[void], modifier[public], parameter[fullFilename, outputStream]] begin[{] local_variable[type[TrackerServer], trackerServer] local_variable[type[StorageClient1], storageClient1] TryStatement(block=[StatementExpression(expre...
Keyword[public] Keyword[void] identifier[downLoadFile] operator[SEP] identifier[String] identifier[fullFilename] , identifier[OutputStream] identifier[outputStream] operator[SEP] { identifier[TrackerServer] identifier[trackerServer] operator[=] Other[null] operator[SEP] identifier[StorageClient1] identifier[sto...
public void addClientNotificationListener(RESTRequest request, NotificationRegistration notificationRegistration, JSONConverter converter) { String objectNameStr = notificationRegistration.objectName.getCanonicalName(); NotificationTargetInformation nti = toNotificationTargetInformation(request, object...
class class_name[name] begin[{] method[addClientNotificationListener, return_type[void], modifier[public], parameter[request, notificationRegistration, converter]] begin[{] local_variable[type[String], objectNameStr] local_variable[type[NotificationTargetInformation], nti] local_variabl...
Keyword[public] Keyword[void] identifier[addClientNotificationListener] operator[SEP] identifier[RESTRequest] identifier[request] , identifier[NotificationRegistration] identifier[notificationRegistration] , identifier[JSONConverter] identifier[converter] operator[SEP] { identifier[String] identifier[objectNam...
private static boolean supportsTransform3d() { if (transform == null) { return false; } String rotate = "rotateY(1deg)"; divStyle.setProperty(transform, rotate); rotate = divStyle.getProperty(transform); return rotate != null && !rotate.isEmpty(); }
class class_name[name] begin[{] method[supportsTransform3d, return_type[type[boolean]], modifier[private static], parameter[]] begin[{] if[binary_operation[member[.transform], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] local...
Keyword[private] Keyword[static] Keyword[boolean] identifier[supportsTransform3d] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[transform] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[String] identifier[rotate] ...
public Sbgn createSBGN(Model model) { assert model.getLevel().equals(BioPAXLevel.L3) : "This method only supports L3 graphs"; glyphMap = new HashMap<String, Glyph>(); compartmentMap = new HashMap<String, Glyph>(); arcMap = new HashMap<String, Arc>(); ubiqueSet = new HashSet<Glyph>(); int n = 0; //approxim...
class class_name[name] begin[{] method[createSBGN, return_type[type[Sbgn]], modifier[public], parameter[model]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=getLevel, postfix_operators=[], prefix_operators=[], qualifier=model, selectors=[MethodInvocation(arguments=[MemberRef...
Keyword[public] identifier[Sbgn] identifier[createSBGN] operator[SEP] identifier[Model] identifier[model] operator[SEP] { Keyword[assert] identifier[model] operator[SEP] identifier[getLevel] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[BioPAXLevel] operator[SEP] identifie...
public static void main( String[] args ) throws Exception { ChatServer chatserver = new ChatServer( 8887 ); // Firefox does allow multible ssl connection only via port 443 //tested on FF16 // load up the key store String STORETYPE = "JKS"; String KEYSTORE = "keystore.jks"; String STOREPASSWORD = "storepasswo...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[ChatServer], chatserver] local_variable[type[String], STORETYPE] local_variable[type[String], KEYSTORE] local_variable[type[String], STOREPASSWO...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ChatServer] identifier[chatserver] operator[=] Keyword[new] identifier[ChatServer] operator[SEP] Other[8887...
public static void pruneMenus(BaseComponent parent) { while (parent != null && parent instanceof BaseMenuComponent) { if (parent.getChildren().isEmpty()) { BaseComponent newParent = parent.getParent(); parent.destroy(); parent = newParent; ...
class class_name[name] begin[{] method[pruneMenus, return_type[void], modifier[public static], parameter[parent]] begin[{] while[binary_operation[binary_operation[member[.parent], !=, literal[null]], &&, binary_operation[member[.parent], instanceof, type[BaseMenuComponent]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[pruneMenus] operator[SEP] identifier[BaseComponent] identifier[parent] operator[SEP] { Keyword[while] operator[SEP] identifier[parent] operator[!=] Other[null] operator[&&] identifier[parent] Keyword[instanceof] identifier[BaseMenuComponent] operator[SEP] ...
public static void visit(File directory, Predicate<File> predicate, Visitor<File> visitor) { if (directory.exists()) { List<File> files = visit(directory, predicate); for (File file : files) { visitor.visit(file); } } }
class class_name[name] begin[{] method[visit, return_type[void], modifier[public static], parameter[directory, predicate, visitor]] begin[{] if[call[directory.exists, parameter[]]] begin[{] local_variable[type[List], files] ForStatement(body=BlockStatement(label=None, st...
Keyword[public] Keyword[static] Keyword[void] identifier[visit] operator[SEP] identifier[File] identifier[directory] , identifier[Predicate] operator[<] identifier[File] operator[>] identifier[predicate] , identifier[Visitor] operator[<] identifier[File] operator[>] identifier[visitor] operator[SEP] { Keyword[...
public final void clear() { for (int i = 0; i < subMaps.length; i++) { synchronized (subMaps[i]) { subMaps[i].clear(); } // synchronized (subMaps[i]). } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[final public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[SynchronizedStatement(block=[StatementExpression(expression=MemberReference(member=subMaps, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[final] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[subMaps] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SE...
public byte[] getRL2Image( Geometry geom, String geomEpsg, int width, int height ) throws Exception { String sql; String rasterName = getName(); if (geomEpsg != null) { sql = "select GetMapImageFromRaster('" + rasterName + "', ST_Transform(ST_GeomFromText('" + geom.toText() + "', " ...
class class_name[name] begin[{] method[getRL2Image, return_type[type[byte]], modifier[public], parameter[geom, geomEpsg, width, height]] begin[{] local_variable[type[String], sql] local_variable[type[String], rasterName] if[binary_operation[member[.geomEpsg], !=, literal[null]]]...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getRL2Image] operator[SEP] identifier[Geometry] identifier[geom] , identifier[String] identifier[geomEpsg] , Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] Keyword[throws] identifier[Exception] { identifier[St...
public static Class<?> findGenericClass(final Class<?> mainClass, final Class<?>[] excludedClasses) { final boolean excludeMode = excludedClasses.length > 1; // Retrieve the generic super class Parameterized type final ParameterizedType paramType = (ParameterizedType) mainClass.getGenericSuper...
class class_name[name] begin[{] method[findGenericClass, return_type[type[Class]], modifier[public static], parameter[mainClass, excludedClasses]] begin[{] local_variable[type[boolean], excludeMode] local_variable[type[ParameterizedType], paramType] local_variable[type[Class], genericCl...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[findGenericClass] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[mainClass] , Keyword[final] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] ...
public List<CorporationMemberTrackingResponse> getCorporationsCorporationIdMembertracking(Integer corporationId, String datasource, String ifNoneMatch, String token) throws ApiException { ApiResponse<List<CorporationMemberTrackingResponse>> resp = getCorporationsCorporationIdMembertrackingWithHttpIn...
class class_name[name] begin[{] method[getCorporationsCorporationIdMembertracking, return_type[type[List]], modifier[public], parameter[corporationId, datasource, ifNoneMatch, token]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[CorporationMemberTrackingResponse] operator[>] identifier[getCorporationsCorporationIdMembertracking] operator[SEP] identifier[Integer] identifier[corporationId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] , identifi...
@Pure public static <T> int indexOf(List<T> list, Comparator<? super T> comparator, T elt) { try { assert comparator != null; assert list != null; if (elt == null) { return -1; } int first = 0; int last = list.size() - 1; while (last >= first) { int center = (first + last) / 2; fin...
class class_name[name] begin[{] method[indexOf, return_type[type[int]], modifier[public static], parameter[list, comparator, elt]] begin[{] TryStatement(block=[AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=comparator, postfix_operators=[], prefix_operators=[], qualifier=, se...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[int] identifier[indexOf] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[list] , identifier[Comparator] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifie...
public Object callWithDomain(Object securityDomain, Context cx, final Callable callable, Scriptable scope, final Scriptable thisObj, final Object[] args) { return execWithDomain(cx, scope, new Script() { @Override ...
class class_name[name] begin[{] method[callWithDomain, return_type[type[Object]], modifier[public], parameter[securityDomain, cx, callable, scope, thisObj, args]] begin[{] return[call[.execWithDomain, parameter[member[.cx], member[.scope], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=...
Keyword[public] identifier[Object] identifier[callWithDomain] operator[SEP] identifier[Object] identifier[securityDomain] , identifier[Context] identifier[cx] , Keyword[final] identifier[Callable] identifier[callable] , identifier[Scriptable] identifier[scope] , Keyword[final] identifier[Scriptable] identifier[this...
public AwsSecurityFindingFilters withResourceAwsEc2InstanceType(StringFilter... resourceAwsEc2InstanceType) { if (this.resourceAwsEc2InstanceType == null) { setResourceAwsEc2InstanceType(new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceType.length)); } for (StringFilter el...
class class_name[name] begin[{] method[withResourceAwsEc2InstanceType, return_type[type[AwsSecurityFindingFilters]], modifier[public], parameter[resourceAwsEc2InstanceType]] begin[{] if[binary_operation[THIS[member[None.resourceAwsEc2InstanceType]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[AwsSecurityFindingFilters] identifier[withResourceAwsEc2InstanceType] operator[SEP] identifier[StringFilter] operator[...] identifier[resourceAwsEc2InstanceType] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[resourceAwsEc2InstanceType] operator[==] Ot...
private void join(ParserRuleContext ctx, Class<? extends Join> type) { QueryNode left = relationChain.get(relationIdx); QueryNode right = relationChain.get(relationIdx+1); try { Constructor<? extends Join> c = type.getConstructor(QueryNode.class); Join newJoin = c.newInstance(right); ...
class class_name[name] begin[{] method[join, return_type[void], modifier[private], parameter[ctx, type]] begin[{] local_variable[type[QueryNode], left] local_variable[type[QueryNode], right] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dim...
Keyword[private] Keyword[void] identifier[join] operator[SEP] identifier[ParserRuleContext] identifier[ctx] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Join] operator[>] identifier[type] operator[SEP] { identifier[QueryNode] identifier[left] operator[=] identifier[relationChain] oper...
private synchronized void fetchCredentials() { if (!needsToLoadCredentials()) return; JsonNode accessKey; JsonNode secretKey; JsonNode node; JsonNode token; try { lastInstanceProfileCheck = new Date(); String credentialsResponse = EC2CredentialsU...
class class_name[name] begin[{] method[fetchCredentials, return_type[void], modifier[synchronized private], parameter[]] begin[{] if[call[.needsToLoadCredentials, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[JsonNode], accessKey] ...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[fetchCredentials] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[needsToLoadCredentials] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[JsonNode] identifier[accessKey] operator[SEP]...
private BufferedImage resample(BufferedImage pSource, BufferedImage pDest, InterpolationFilter pFilter) { final int dstWidth = pDest.getWidth(); final int dstHeight = pDest.getHeight(); final int srcWidth = pSource.getWidth(); final int srcHeight = pSource.getHeight(); /...
class class_name[name] begin[{] method[resample, return_type[type[BufferedImage]], modifier[private], parameter[pSource, pDest, pFilter]] begin[{] local_variable[type[int], dstWidth] local_variable[type[int], dstHeight] local_variable[type[int], srcWidth] local_variable[type[int...
Keyword[private] identifier[BufferedImage] identifier[resample] operator[SEP] identifier[BufferedImage] identifier[pSource] , identifier[BufferedImage] identifier[pDest] , identifier[InterpolationFilter] identifier[pFilter] operator[SEP] { Keyword[final] Keyword[int] identifier[dstWidth] operator[=] identifier...
@Override public CoOccurrenceWeight<T> nextObject() { String line = iterator.nextSentence(); if (line == null || line.isEmpty()) { return null; } String[] strings = line.split(" "); CoOccurrenceWeight<T> object = new CoOccurrenceWeight<>(); object.setElem...
class class_name[name] begin[{] method[nextObject, return_type[type[CoOccurrenceWeight]], modifier[public], parameter[]] begin[{] local_variable[type[String], line] if[binary_operation[binary_operation[member[.line], ==, literal[null]], ||, call[line.isEmpty, parameter[]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[CoOccurrenceWeight] operator[<] identifier[T] operator[>] identifier[nextObject] operator[SEP] operator[SEP] { identifier[String] identifier[line] operator[=] identifier[iterator] operator[SEP] identifier[nextSentence] operator[SEP] operator[SEP] oper...
protected synchronized Date getBuildTimestamp() throws IOException { Date now = (Date) getPluginContext().get(CONTEXT_KEY_BUILD_TIMESTAMP); if (now == null) { now = getReferenceDate(); getPluginContext().put(CONTEXT_KEY_BUILD_TIMESTAMP,now); } return now; }
class class_name[name] begin[{] method[getBuildTimestamp, return_type[type[Date]], modifier[synchronized protected], parameter[]] begin[{] local_variable[type[Date], now] if[binary_operation[member[.now], ==, literal[null]]] begin[{] assign[member[.now], call[.ge...
Keyword[protected] Keyword[synchronized] identifier[Date] identifier[getBuildTimestamp] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Date] identifier[now] operator[=] operator[SEP] identifier[Date] operator[SEP] identifier[getPluginContext] operator[SEP] operator[SEP] operator...
private boolean isSupported(Class<?> t) { if (Boolean.class.equals(t) || boolean.class.equals(t) || Byte.class.equals(t) || byte.class.equals(t) || Short.class.equals(t) || short.class.equals(t) || Integer.class.equals(t) || int.class.equals(t) || Long.class.equals(t) ||...
class class_name[name] begin[{] method[isSupported, return_type[type[boolean]], modifier[private], parameter[t]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[...
Keyword[private] Keyword[boolean] identifier[isSupported] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[t] operator[SEP] { Keyword[if] operator[SEP] identifier[Boolean] operator[SEP] Keyword[class] operator[SEP] identifier[equals] operator[SEP] identifier[t] operator[SEP] operato...