code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected /*@pure@*/ int rangeSingle(/*@non_null@*/String singleSelection) { String single = singleSelection.trim(); if (single.toLowerCase().equals("first")) { return 0; } if (single.toLowerCase().equals("last") || single.toLowerCase().equals("-1")) { return -1;...
class class_name[name] begin[{] method[rangeSingle, return_type[type[int]], modifier[protected], parameter[singleSelection]] begin[{] local_variable[type[String], single] if[call[single.toLowerCase, parameter[]]] begin[{] return[literal[0]] else begin[{] None ...
Keyword[protected] Keyword[int] identifier[rangeSingle] operator[SEP] identifier[String] identifier[singleSelection] operator[SEP] { identifier[String] identifier[single] operator[=] identifier[singleSelection] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ide...
public DatabaseVulnerabilityAssessmentRuleBaselineInner createOrUpdate(String resourceGroupName, String managedInstanceName, String databaseName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, List<DatabaseVulnerabilityAssessmentRuleBaselineItem> baselineResults) { return createOrUpdateW...
class class_name[name] begin[{] method[createOrUpdate, return_type[type[DatabaseVulnerabilityAssessmentRuleBaselineInner]], modifier[public], parameter[resourceGroupName, managedInstanceName, databaseName, ruleId, baselineName, baselineResults]] begin[{] return[call[.createOrUpdateWithServiceResponseAs...
Keyword[public] identifier[DatabaseVulnerabilityAssessmentRuleBaselineInner] identifier[createOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[managedInstanceName] , identifier[String] identifier[databaseName] , identifier[String] identifier[ruleId] , identifi...
public static void sqlminute(StringBuilder buf, List<? extends CharSequence> parsedArgs) throws SQLException { singleArgumentFunctionCall(buf, "extract(minute from ", "minute", parsedArgs); }
class class_name[name] begin[{] method[sqlminute, return_type[void], modifier[public static], parameter[buf, parsedArgs]] begin[{] call[.singleArgumentFunctionCall, parameter[member[.buf], literal["extract(minute from "], literal["minute"], member[.parsedArgs]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[sqlminute] operator[SEP] identifier[StringBuilder] identifier[buf] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[CharSequence] operator[>] identifier[parsedArgs] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[...
private HorizontalLayout getLayoutFromResult(final CmsResourceTypeStatResult statResult) { HorizontalLayout hLayout = new HorizontalLayout(); hLayout.setWidth("100%"); hLayout.setHeight("60px"); hLayout.addStyleName("o-report"); Label result = new Label(); result.setCon...
class class_name[name] begin[{] method[getLayoutFromResult, return_type[type[HorizontalLayout]], modifier[private], parameter[statResult]] begin[{] local_variable[type[HorizontalLayout], hLayout] call[hLayout.setWidth, parameter[literal["100%"]]] call[hLayout.setHeight, ...
Keyword[private] identifier[HorizontalLayout] identifier[getLayoutFromResult] operator[SEP] Keyword[final] identifier[CmsResourceTypeStatResult] identifier[statResult] operator[SEP] { identifier[HorizontalLayout] identifier[hLayout] operator[=] Keyword[new] identifier[HorizontalLayout] operator[SEP] operator[SEP...
public static void write(InputStream in, Path path) { write(in, path, StandardCopyOption.REPLACE_EXISTING); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[in, path]] begin[{] call[.write, parameter[member[.in], member[.path], member[StandardCopyOption.REPLACE_EXISTING]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] identifier[InputStream] identifier[in] , identifier[Path] identifier[path] operator[SEP] { identifier[write] operator[SEP] identifier[in] , identifier[path] , identifier[StandardCopyOption] operator[SEP] identifier[REPLACE_EXISTING]...
@Override public Collection<BioPAXElement> generate(Match match, int... ind) { Collection<BioPAXElement> gen = new HashSet<BioPAXElement> ( con[0].generate(match, ind)); Set<BioPAXElement> input = new HashSet<BioPAXElement>(); Set<BioPAXElement> output = new HashSet<BioPAXElement>(gen); int[] tempInd = {...
class class_name[name] begin[{] method[generate, return_type[type[Collection]], modifier[public], parameter[match, ind]] begin[{] local_variable[type[Collection], gen] local_variable[type[Set], input] local_variable[type[Set], output] local_variable[type[int], tempInd] F...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[BioPAXElement] operator[>] identifier[generate] operator[SEP] identifier[Match] identifier[match] , Keyword[int] operator[...] identifier[ind] operator[SEP] { identifier[Collection] operator[<] identifier[BioPAXElem...
public static <Q> LockingLazyVar<Q> make( final LazyVarInit<Q> init ) { return new LockingLazyVar<Q>(){ protected Q init() { return init.init(); } }; }
class class_name[name] begin[{] method[make, return_type[type[LockingLazyVar]], modifier[public static], parameter[init]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=init, postfix_operators=[],...
Keyword[public] Keyword[static] operator[<] identifier[Q] operator[>] identifier[LockingLazyVar] operator[<] identifier[Q] operator[>] identifier[make] operator[SEP] Keyword[final] identifier[LazyVarInit] operator[<] identifier[Q] operator[>] identifier[init] operator[SEP] { Keyword[return] Keyword[new] identifi...
public static double max(final double... array) { // Validates input validateArray(array); // Finds and returns max double max = array[0]; for (int j = 1; j < array.length; j++) { if (Double.isNaN(array[j])) { return Double.NaN; } ...
class class_name[name] begin[{] method[max, return_type[type[double]], modifier[public static], parameter[array]] begin[{] call[.validateArray, parameter[member[.array]]] local_variable[type[double], max] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condi...
Keyword[public] Keyword[static] Keyword[double] identifier[max] operator[SEP] Keyword[final] Keyword[double] operator[...] identifier[array] operator[SEP] { identifier[validateArray] operator[SEP] identifier[array] operator[SEP] operator[SEP] Keyword[double] identifier[max] operator[=] identifier[array] operator...
public void createIconRelationship(String featureTable) { createStyleRelationship( getMappingTableName(TABLE_MAPPING_ICON, featureTable), featureTable, featureTable, IconTable.TABLE_NAME); }
class class_name[name] begin[{] method[createIconRelationship, return_type[void], modifier[public], parameter[featureTable]] begin[{] call[.createStyleRelationship, parameter[call[.getMappingTableName, parameter[member[.TABLE_MAPPING_ICON], member[.featureTable]]], member[.featureTable], member...
Keyword[public] Keyword[void] identifier[createIconRelationship] operator[SEP] identifier[String] identifier[featureTable] operator[SEP] { identifier[createStyleRelationship] operator[SEP] identifier[getMappingTableName] operator[SEP] identifier[TABLE_MAPPING_ICON] , identifier[featureTable] operator[SEP] , id...
private Resolved resolve(Record record, ReadConsistency consistency) { return resolve(record, consistency, true); }
class class_name[name] begin[{] method[resolve, return_type[type[Resolved]], modifier[private], parameter[record, consistency]] begin[{] return[call[.resolve, parameter[member[.record], member[.consistency], literal[true]]]] end[}] END[}]
Keyword[private] identifier[Resolved] identifier[resolve] operator[SEP] identifier[Record] identifier[record] , identifier[ReadConsistency] identifier[consistency] operator[SEP] { Keyword[return] identifier[resolve] operator[SEP] identifier[record] , identifier[consistency] , literal[boolean] operator[SEP] op...
private Configuration getMimeTypeConfiguration() { return new AbstractConfiguration() { @Override public void configure(WebAppContext context) throws Exception { MimeTypes mimeTypes = context.getMimeTypes(); for (MimeMappings.Mapping mapping : getMimeMappings()) { mimeTypes.addMimeMapping(mapping....
class class_name[name] begin[{] method[getMimeTypeConfiguration, return_type[type[Configuration]], modifier[private], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], dec...
Keyword[private] identifier[Configuration] identifier[getMimeTypeConfiguration] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractConfiguration] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configure] operator[SEP...
protected double readDouble(final String doubleString, final double min, final double max) { return Math.max(Math.min(Double.parseDouble(doubleString), max), min); }
class class_name[name] begin[{] method[readDouble, return_type[type[double]], modifier[protected], parameter[doubleString, min, max]] begin[{] return[call[Math.max, parameter[call[Math.min, parameter[call[Double.parseDouble, parameter[member[.doubleString]]], member[.max]]], member[.min]]]] end[}] ...
Keyword[protected] Keyword[double] identifier[readDouble] operator[SEP] Keyword[final] identifier[String] identifier[doubleString] , Keyword[final] Keyword[double] identifier[min] , Keyword[final] Keyword[double] identifier[max] operator[SEP] { Keyword[return] identifier[Math] operator[SEP] identifier[max] ope...
public ColumnResult<ConstructorResult<T>> getOrCreateColumn() { List<Node> nodeList = childNode.get("column"); if (nodeList != null && nodeList.size() > 0) { return new ColumnResultImpl<ConstructorResult<T>>(this, "column", childNode, nodeList.get(0)); } return createColumn();...
class class_name[name] begin[{] method[getOrCreateColumn, return_type[type[ColumnResult]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[call[nodeList.size, pa...
Keyword[public] identifier[ColumnResult] operator[<] identifier[ConstructorResult] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateColumn] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=] identifier[childNode] operato...
public Configuration removeConfiguration(String name) { Configuration conf = getConfiguration(name); if (conf != null && !conf.equals(containerConfiguration)) { configList.remove(conf); namedConfigurations.remove(name); } else if (conf != null && conf.equals(c...
class class_name[name] begin[{] method[removeConfiguration, return_type[type[Configuration]], modifier[public], parameter[name]] begin[{] local_variable[type[Configuration], conf] if[binary_operation[binary_operation[member[.conf], !=, literal[null]], &&, call[conf.equals, parameter[mem...
Keyword[public] identifier[Configuration] identifier[removeConfiguration] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[Configuration] identifier[conf] operator[=] identifier[getConfiguration] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] iden...
public synchronized ListenableFuture<?> add(Page page) { checkState(!isFull(), "PageBuffer is full!"); pages.offer(page); if (isFull()) { if (settableFuture == null) { settableFuture = SettableFuture.create(); } return settableFuture; ...
class class_name[name] begin[{] method[add, return_type[type[ListenableFuture]], modifier[synchronized public], parameter[page]] begin[{] call[.checkState, parameter[call[.isFull, parameter[]], literal["PageBuffer is full!"]]] call[pages.offer, parameter[member[.page]]] ...
Keyword[public] Keyword[synchronized] identifier[ListenableFuture] operator[<] operator[?] operator[>] identifier[add] operator[SEP] identifier[Page] identifier[page] operator[SEP] { identifier[checkState] operator[SEP] operator[!] identifier[isFull] operator[SEP] operator[SEP] , literal[String] operator[SEP] o...
void duptraverse(State s, State stmp) { Arc a; if (s.tmp != null) { return; /* already done */ } s.tmp = (stmp == null) ? newstate() : stmp; if (s.tmp == null) { return; } for (a = s.outs; a != null; a = a.outchain) { dup...
class class_name[name] begin[{] method[duptraverse, return_type[void], modifier[default], parameter[s, stmp]] begin[{] local_variable[type[Arc], a] if[binary_operation[member[s.tmp], !=, literal[null]]] begin[{] return[None] else begin[{] None end[}] ...
Keyword[void] identifier[duptraverse] operator[SEP] identifier[State] identifier[s] , identifier[State] identifier[stmp] operator[SEP] { identifier[Arc] identifier[a] operator[SEP] Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[tmp] operator[!=] Other[null] operator[SEP] { Keyword[r...
public String getAbbreviation() { if (ConceptType_Type.featOkTst && ((ConceptType_Type)jcasType).casFeat_abbreviation == null) jcasType.jcas.throwFeatMissing("abbreviation", "edu.cmu.lti.oaqa.type.kb.ConceptType"); return jcasType.ll_cas.ll_getStringValue(addr, ((ConceptType_Type)jcasType).casFeatCode_abb...
class class_name[name] begin[{] method[getAbbreviation, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[ConceptType_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[String] identifier[getAbbreviation] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ConceptType_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[ConceptType_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[S...
public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) { if (iterable1 instanceof Collection && iterable2 instanceof Collection) { Collection<?> collection1 = (Collection<?>) iterable1; Collection<?> collection2 = (Collection<?>) iterable2; if (collection1.size() != coll...
class class_name[name] begin[{] method[elementsEqual, return_type[type[boolean]], modifier[public static], parameter[iterable1, iterable2]] begin[{] if[binary_operation[binary_operation[member[.iterable1], instanceof, type[Collection]], &&, binary_operation[member[.iterable2], instanceof, type[...
Keyword[public] Keyword[static] Keyword[boolean] identifier[elementsEqual] operator[SEP] identifier[Iterable] operator[<] operator[?] operator[>] identifier[iterable1] , identifier[Iterable] operator[<] operator[?] operator[>] identifier[iterable2] operator[SEP] { Keyword[if] operator[SEP] identifier[iterable1]...
public JdrReport standaloneCollect(CLI cli, String protocol, String host, int port) throws OperationFailedException { return new JdrRunner(cli, protocol, host, port, null, null).collect(); }
class class_name[name] begin[{] method[standaloneCollect, return_type[type[JdrReport]], modifier[public], parameter[cli, protocol, host, port]] begin[{] return[ClassCreator(arguments=[MemberReference(member=cli, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(membe...
Keyword[public] identifier[JdrReport] identifier[standaloneCollect] operator[SEP] identifier[CLI] identifier[cli] , identifier[String] identifier[protocol] , identifier[String] identifier[host] , Keyword[int] identifier[port] operator[SEP] Keyword[throws] identifier[OperationFailedException] { Keyword[return]...
private long newMoonBefore(long utcDays) { Moment m = MoonPhase.NEW_MOON.before(this.midnight(utcDays)); return m.toZonalTimestamp(this.getOffset(utcDays)).toDate().getDaysSinceEpochUTC(); }
class class_name[name] begin[{] method[newMoonBefore, return_type[type[long]], modifier[private], parameter[utcDays]] begin[{] local_variable[type[Moment], m] return[call[m.toZonalTimestamp, parameter[THIS[call[None.getOffset, parameter[member[.utcDays]]]]]]] end[}] END[}]
Keyword[private] Keyword[long] identifier[newMoonBefore] operator[SEP] Keyword[long] identifier[utcDays] operator[SEP] { identifier[Moment] identifier[m] operator[=] identifier[MoonPhase] operator[SEP] identifier[NEW_MOON] operator[SEP] identifier[before] operator[SEP] Keyword[this] operator[SEP] identifier[midn...
public void createScheduler (final String schedulerName, final String schedulerInstanceId, final IThreadPool threadPool, final IJobStore jobStore, final Map <String, ISchedulerPlugin> schedulerPlu...
class class_name[name] begin[{] method[createScheduler, return_type[void], modifier[public], parameter[schedulerName, schedulerInstanceId, threadPool, jobStore, schedulerPluginMap, idleWaitTime]] begin[{] call[.createScheduler, parameter[member[.schedulerName], member[.schedulerInstanceId], mem...
Keyword[public] Keyword[void] identifier[createScheduler] operator[SEP] Keyword[final] identifier[String] identifier[schedulerName] , Keyword[final] identifier[String] identifier[schedulerInstanceId] , Keyword[final] identifier[IThreadPool] identifier[threadPool] , Keyword[final] identifier[IJobStore] identifier[job...
public @NonNull Query setAroundLatLng(@Nullable LatLng location) { if (location == null) { return set(KEY_AROUND_LAT_LNG, null); } else { return set(KEY_AROUND_LAT_LNG, location.lat + "," + location.lng); } }
class class_name[name] begin[{] method[setAroundLatLng, return_type[type[Query]], modifier[public], parameter[location]] begin[{] if[binary_operation[member[.location], ==, literal[null]]] begin[{] return[call[.set, parameter[member[.KEY_AROUND_LAT_LNG], literal[null]]]] els...
Keyword[public] annotation[@] identifier[NonNull] identifier[Query] identifier[setAroundLatLng] operator[SEP] annotation[@] identifier[Nullable] identifier[LatLng] identifier[location] operator[SEP] { Keyword[if] operator[SEP] identifier[location] operator[==] Other[null] operator[SEP] { Keyword[retur...
public DescribeDirectConnectGatewayAssociationProposalsResult withDirectConnectGatewayAssociationProposals( DirectConnectGatewayAssociationProposal... directConnectGatewayAssociationProposals) { if (this.directConnectGatewayAssociationProposals == null) { setDirectConnectGatewayAssociati...
class class_name[name] begin[{] method[withDirectConnectGatewayAssociationProposals, return_type[type[DescribeDirectConnectGatewayAssociationProposalsResult]], modifier[public], parameter[directConnectGatewayAssociationProposals]] begin[{] if[binary_operation[THIS[member[None.directConnectGatew...
Keyword[public] identifier[DescribeDirectConnectGatewayAssociationProposalsResult] identifier[withDirectConnectGatewayAssociationProposals] operator[SEP] identifier[DirectConnectGatewayAssociationProposal] operator[...] identifier[directConnectGatewayAssociationProposals] operator[SEP] { Keyword[if] operator[SEP...
private static PropertyMap getChecksums(final File file, final java.io.File fileOnDisk) throws IOException { final PropertyMap propertiesWithChecksums = new PropertyMap(); Folder parentFolder = file.getParent(); String checksums = null; while (parentFolder != null && checksums == null) { checksums = p...
class class_name[name] begin[{] method[getChecksums, return_type[type[PropertyMap]], modifier[private static], parameter[file, fileOnDisk]] begin[{] local_variable[type[PropertyMap], propertiesWithChecksums] local_variable[type[Folder], parentFolder] local_variable[type[String], checksu...
Keyword[private] Keyword[static] identifier[PropertyMap] identifier[getChecksums] operator[SEP] Keyword[final] identifier[File] identifier[file] , Keyword[final] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[File] identifier[fileOnDisk] operator[SEP] Keyword[throws] identifier[IOException] { ...
@NullSafe public static boolean createDirectory(File path) { return (path != null && !path.isFile() && (path.isDirectory() || path.mkdirs())); }
class class_name[name] begin[{] method[createDirectory, return_type[type[boolean]], modifier[public static], parameter[path]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.path], !=, literal[null]], &&, call[path.isFile, parameter[]]], &&, binary_operation[call[path.isDirec...
annotation[@] identifier[NullSafe] Keyword[public] Keyword[static] Keyword[boolean] identifier[createDirectory] operator[SEP] identifier[File] identifier[path] operator[SEP] { Keyword[return] operator[SEP] identifier[path] operator[!=] Other[null] operator[&&] operator[!] identifier[path] operator[SEP] identifie...
final TreeMapEntry<K,V> getLastEntry() { TreeMapEntry<K,V> p = root; if (p != null) while (p.right != null) p = p.right; return p; }
class class_name[name] begin[{] method[getLastEntry, return_type[type[TreeMapEntry]], modifier[final], parameter[]] begin[{] local_variable[type[TreeMapEntry], p] if[binary_operation[member[.p], !=, literal[null]]] begin[{] while[binary_operation[member[p.right], !=, literal...
Keyword[final] identifier[TreeMapEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[getLastEntry] operator[SEP] operator[SEP] { identifier[TreeMapEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[p] operator[=] identifier[root] operator[SEP] Keyword[if] operator[SEP] ...
public boolean waitForEmptyActivityStack(int timeout) { if(config.commandLogging){ Log.d(config.commandLoggingTag, "waitForEmptyActivityStack("+timeout+")"); } return waiter.waitForCondition( new Condition(){ @Override public boolean isSatisfied() { return activityUtils.isActivityStackE...
class class_name[name] begin[{] method[waitForEmptyActivityStack, return_type[type[boolean]], modifier[public], parameter[timeout]] begin[{] if[member[config.commandLogging]] begin[{] call[Log.d, parameter[member[config.commandLoggingTag], binary_operation[binary_operati...
Keyword[public] Keyword[boolean] identifier[waitForEmptyActivityStack] operator[SEP] Keyword[int] identifier[timeout] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[commandLogging] operator[SEP] { identifier[Log] operator[SEP] identifier[d] operator[SEP] identifi...
public java.lang.String getInfoClass() { return (java.lang.String) getStateHelper().eval(PropertyKeys.infoClass); }
class class_name[name] begin[{] method[getInfoClass, return_type[type[java]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[], member=getStateHelper, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReferenc...
Keyword[public] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[getInfoClass] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] operator[SEP] identifier[getStateHelper] operator[...
public static Years years(int years) { switch (years) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case Integer.MAX_VALUE: return MA...
class class_name[name] begin[{] method[years, return_type[type[Years]], modifier[public static], parameter[years]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[ReturnStatement(expression...
Keyword[public] Keyword[static] identifier[Years] identifier[years] operator[SEP] Keyword[int] identifier[years] operator[SEP] { Keyword[switch] operator[SEP] identifier[years] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[return] identifier[ZERO] operator[SEP] Keyword[case] Other[1] ope...
@Override public String text( Locale locale, Object... arguments ) { try { String rawText = rawText(locale == null ? Locale.getDefault() : locale); return StringUtil.createString(rawText, arguments); } catch (IllegalArgumentException err) { ...
class class_name[name] begin[{] method[text, return_type[type[String]], modifier[public], parameter[locale, arguments]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[TernaryExpression(conditio...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[text] operator[SEP] identifier[Locale] identifier[locale] , identifier[Object] operator[...] identifier[arguments] operator[SEP] { Keyword[try] { identifier[String] identifier[rawText] operator[=] identifier[rawText] ope...
private boolean validAsset(OrchidPage asset, String targetExtension) { return asset.getReference().getOutputExtension().equalsIgnoreCase(targetExtension); }
class class_name[name] begin[{] method[validAsset, return_type[type[boolean]], modifier[private], parameter[asset, targetExtension]] begin[{] return[call[asset.getReference, parameter[]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[validAsset] operator[SEP] identifier[OrchidPage] identifier[asset] , identifier[String] identifier[targetExtension] operator[SEP] { Keyword[return] identifier[asset] operator[SEP] identifier[getReference] operator[SEP] operator[SEP] operator[SEP] identifier[getOutput...
private static void exploreExtensions(ByteBuffer input, List<String> alpnProtocols, ByteArrayOutputStream out) throws SSLException { ByteArrayOutputStream extensionOut = out == null ? null : new ByteArrayOutputStream(); int length = getInt16(input); // length of extensions ...
class class_name[name] begin[{] method[exploreExtensions, return_type[void], modifier[private static], parameter[input, alpnProtocols, out]] begin[{] local_variable[type[ByteArrayOutputStream], extensionOut] local_variable[type[int], length] call[.writeInt16, parameter[member[.e...
Keyword[private] Keyword[static] Keyword[void] identifier[exploreExtensions] operator[SEP] identifier[ByteBuffer] identifier[input] , identifier[List] operator[<] identifier[String] operator[>] identifier[alpnProtocols] , identifier[ByteArrayOutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[SSLEx...
public String getCanonicalForm(Dimension nativeSize, ImageApiProfile profile) throws ResolvingException { Dimension resolved = this.resolve(nativeSize, profile); // "w," requests are already canonical double nativeRatio = nativeSize.getWidth() / nativeSize.getHeight(); double resolvedRatio = resolved.ge...
class class_name[name] begin[{] method[getCanonicalForm, return_type[type[String]], modifier[public], parameter[nativeSize, profile]] begin[{] local_variable[type[Dimension], resolved] local_variable[type[double], nativeRatio] local_variable[type[double], resolvedRatio] ...
Keyword[public] identifier[String] identifier[getCanonicalForm] operator[SEP] identifier[Dimension] identifier[nativeSize] , identifier[ImageApiProfile] identifier[profile] operator[SEP] Keyword[throws] identifier[ResolvingException] { identifier[Dimension] identifier[resolved] operator[=] Keyword[this] operato...
public byte[] getByteArray(Integer id, Integer type) { return (getByteArray(m_meta.getOffset(id, type))); }
class class_name[name] begin[{] method[getByteArray, return_type[type[byte]], modifier[public], parameter[id, type]] begin[{] return[call[.getByteArray, parameter[call[m_meta.getOffset, parameter[member[.id], member[.type]]]]]] end[}] END[}]
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[getByteArray] operator[SEP] identifier[Integer] identifier[id] , identifier[Integer] identifier[type] operator[SEP] { Keyword[return] operator[SEP] identifier[getByteArray] operator[SEP] identifier[m_meta] operator[SEP] identifier[getOffset] o...
public void checkPermission(final String permission, UserIdentityContext userIdentityContext) { //checkAuthenticatedAccount(); // ok there is a valid authenticated account if ( checkPermission(permission, userIdentityContext.getEffectiveAccountRoles()) != AuthOutcome.OK ) throw n...
class class_name[name] begin[{] method[checkPermission, return_type[void], modifier[public], parameter[permission, userIdentityContext]] begin[{] if[binary_operation[call[.checkPermission, parameter[member[.permission], call[userIdentityContext.getEffectiveAccountRoles, parameter[]]]], !=, memb...
Keyword[public] Keyword[void] identifier[checkPermission] operator[SEP] Keyword[final] identifier[String] identifier[permission] , identifier[UserIdentityContext] identifier[userIdentityContext] operator[SEP] { Keyword[if] operator[SEP] identifier[checkPermission] operator[SEP] identifier[permission] , identif...
public AgentRoster getAgentRoster() throws NotConnectedException, InterruptedException { if (agentRoster == null) { agentRoster = new AgentRoster(connection, workgroupJID); } // This might be the first time the user has asked for the roster. If so, we // want to wait up to 2...
class class_name[name] begin[{] method[getAgentRoster, return_type[type[AgentRoster]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.agentRoster], ==, literal[null]]] begin[{] assign[member[.agentRoster], ClassCreator(arguments=[MemberReference(memb...
Keyword[public] identifier[AgentRoster] identifier[getAgentRoster] operator[SEP] operator[SEP] Keyword[throws] identifier[NotConnectedException] , identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[agentRoster] operator[==] Other[null] operator[SEP] { identifier[agentRoster] oper...
public void marshall(GetJobRequest getJobRequest, ProtocolMarshaller protocolMarshaller) { if (getJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getJobRequest.getJobName(), JOBNAME_BIND...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getJobRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getJobRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_ope...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetJobRequest] identifier[getJobRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getJobRequest] operator[==] Other[null] operator[SEP] { Keyword[thr...
public void prepare() { this.token_array = this.prepareTokenArray(); SuffixData suffixData = SuffixArrays.createWithLCP(token_array, new SAIS(), comparator); this.suffix_array = suffixData.getSuffixArray(); this.LCP_array = suffixData.getLCP(); this.blocks = splitLCP_ArrayIntoInt...
class class_name[name] begin[{] method[prepare, return_type[void], modifier[public], parameter[]] begin[{] assign[THIS[member[None.token_array]], THIS[call[None.prepareTokenArray, parameter[]]]] local_variable[type[SuffixData], suffixData] assign[THIS[member[None.suffix_...
Keyword[public] Keyword[void] identifier[prepare] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[token_array] operator[=] Keyword[this] operator[SEP] identifier[prepareTokenArray] operator[SEP] operator[SEP] operator[SEP] identifier[SuffixData] identifier[suffixData] operator[=] identifier[...
protected void zBatchUpdateForSameSourceAttribute(List<UpdateOperation> updateOperations, BatchUpdateOperation batchUpdateOperation) { UpdateOperation firstOperation = updateOperations.get(0); MithraDataObject firstData = this.getDataForUpdate(firstOperation); Object source = this.getSou...
class class_name[name] begin[{] method[zBatchUpdateForSameSourceAttribute, return_type[void], modifier[protected], parameter[updateOperations, batchUpdateOperation]] begin[{] local_variable[type[UpdateOperation], firstOperation] local_variable[type[MithraDataObject], firstData] local_va...
Keyword[protected] Keyword[void] identifier[zBatchUpdateForSameSourceAttribute] operator[SEP] identifier[List] operator[<] identifier[UpdateOperation] operator[>] identifier[updateOperations] , identifier[BatchUpdateOperation] identifier[batchUpdateOperation] operator[SEP] { identifier[UpdateOperation] identifi...
public Iterable<DRow> getRows(String storeName, Collection<String> rowKeys) { List<DRow> rows = new ArrayList<>(rowKeys.size()); for(String rowKey: rowKeys) { rows.add(new DRow(m_tenant, storeName, rowKey)); } return rows; }
class class_name[name] begin[{] method[getRows, return_type[type[Iterable]], modifier[public], parameter[storeName, rowKeys]] begin[{] local_variable[type[List], rows] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreato...
Keyword[public] identifier[Iterable] operator[<] identifier[DRow] operator[>] identifier[getRows] operator[SEP] identifier[String] identifier[storeName] , identifier[Collection] operator[<] identifier[String] operator[>] identifier[rowKeys] operator[SEP] { identifier[List] operator[<] identifier[DRow] operator[...
public static <T> MutableByteCollection collectByte( Iterable<T> iterable, ByteFunction<? super T> byteFunction) { if (iterable instanceof MutableCollection) { return ((MutableCollection<T>) iterable).collectByte(byteFunction); } if (iterable insta...
class class_name[name] begin[{] method[collectByte, return_type[type[MutableByteCollection]], modifier[public static], parameter[iterable, byteFunction]] begin[{] if[binary_operation[member[.iterable], instanceof, type[MutableCollection]]] begin[{] return[Cast(expression=MemberRefer...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[MutableByteCollection] identifier[collectByte] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] , identifier[ByteFunction] operator[<] operator[?] Keyword[super] identifier[T] operator[>] ident...
public FSArray getPubTypeList() { if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_pubTypeList == null) jcasType.jcas.throwFeatMissing("pubTypeList", "de.julielab.jules.types.Header"); return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Header_Type)jcasType)....
class class_name[name] begin[{] method[getPubTypeList, return_type[type[FSArray]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Header_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] identifier[FSArray] identifier[getPubTypeList] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Header_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Header_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identi...
void writeFeedId(Object entity, NavigationProperty property) throws XMLStreamException, ODataEdmException { xmlWriter.writeStartElement(ATOM_ID); if (entity != null) { xmlWriter.writeCharacters(String.format("%s/%s/%s", oDataUri.serviceRoot(), getEntityWithKey(entity), ...
class class_name[name] begin[{] method[writeFeedId, return_type[void], modifier[default], parameter[entity, property]] begin[{] call[xmlWriter.writeStartElement, parameter[member[.ATOM_ID]]] if[binary_operation[member[.entity], !=, literal[null]]] begin[{] ...
Keyword[void] identifier[writeFeedId] operator[SEP] identifier[Object] identifier[entity] , identifier[NavigationProperty] identifier[property] operator[SEP] Keyword[throws] identifier[XMLStreamException] , identifier[ODataEdmException] { identifier[xmlWriter] operator[SEP] identifier[writeStartElement] operat...
public SortedSet<Literal> getCompleteBackbone() { final SortedSet<Literal> completeBackbone = new TreeSet<>(); if (hasPositiveBackboneResult()) { completeBackbone.addAll(this.positiveBackbone); } if (hasNegativeBackboneResult()) { for (final Variable var : this.ne...
class class_name[name] begin[{] method[getCompleteBackbone, return_type[type[SortedSet]], modifier[public], parameter[]] begin[{] local_variable[type[SortedSet], completeBackbone] if[call[.hasPositiveBackboneResult, parameter[]]] begin[{] call[completeBackbone.ad...
Keyword[public] identifier[SortedSet] operator[<] identifier[Literal] operator[>] identifier[getCompleteBackbone] operator[SEP] operator[SEP] { Keyword[final] identifier[SortedSet] operator[<] identifier[Literal] operator[>] identifier[completeBackbone] operator[=] Keyword[new] identifier[TreeSet] operator[<] op...
public Database getDatabase(String strDBName, int iDatabaseType, Map<String, Object> properties) { if ((strDBName == null) || (strDBName.length() == 0)) return null; Database database = this.getDatabaseList(iDatabaseType).get(strDBName); if (database == null) { ...
class class_name[name] begin[{] method[getDatabase, return_type[type[Database]], modifier[public], parameter[strDBName, iDatabaseType, properties]] begin[{] if[binary_operation[binary_operation[member[.strDBName], ==, literal[null]], ||, binary_operation[call[strDBName.length, parameter[]], ==,...
Keyword[public] identifier[Database] identifier[getDatabase] operator[SEP] identifier[String] identifier[strDBName] , Keyword[int] identifier[iDatabaseType] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[SEP] { Keyword[if] operator[SEP] operat...
static void editorPaneHyperlinkUpdate(HyperlinkEvent evt) {// GEN-FIRST:event_editorPaneHyperlinkUpdate try { if (evt.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED)) { URL url = evt.getURL(); LaunchBrowser.showDocument(url); } } catch (E...
class class_name[name] begin[{] method[editorPaneHyperlinkUpdate, return_type[void], modifier[static], parameter[evt]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=getEventType, postfix_operators=[], prefix_operators=[], qualifier=evt, selectors=[MethodInvoca...
Keyword[static] Keyword[void] identifier[editorPaneHyperlinkUpdate] operator[SEP] identifier[HyperlinkEvent] identifier[evt] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[evt] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] operator[SEP] identifier[equals] oper...
public int subscribe_event(int event, CallBack callback, String[] filters) throws DevFailed { return dev.subscribe_event(deviceName, event, callback, filters); }
class class_name[name] begin[{] method[subscribe_event, return_type[type[int]], modifier[public], parameter[event, callback, filters]] begin[{] return[call[dev.subscribe_event, parameter[member[.deviceName], member[.event], member[.callback], member[.filters]]]] end[}] END[}]
Keyword[public] Keyword[int] identifier[subscribe_event] operator[SEP] Keyword[int] identifier[event] , identifier[CallBack] identifier[callback] , identifier[String] operator[SEP] operator[SEP] identifier[filters] operator[SEP] Keyword[throws] identifier[DevFailed] { Keyword[return] identifier[dev] operator[S...
private double createZoom(RouteInformation routeInformation) { CameraPosition position = createCameraPosition(routeInformation.location(), routeInformation.routeProgress()); if (position.zoom > MAX_CAMERA_ZOOM) { return MAX_CAMERA_ZOOM; } else if (position.zoom < MIN_CAMERA_ZOOM) { return MIN_CA...
class class_name[name] begin[{] method[createZoom, return_type[type[double]], modifier[private], parameter[routeInformation]] begin[{] local_variable[type[CameraPosition], position] if[binary_operation[member[position.zoom], >, member[.MAX_CAMERA_ZOOM]]] begin[{] return[memb...
Keyword[private] Keyword[double] identifier[createZoom] operator[SEP] identifier[RouteInformation] identifier[routeInformation] operator[SEP] { identifier[CameraPosition] identifier[position] operator[=] identifier[createCameraPosition] operator[SEP] identifier[routeInformation] operator[SEP] identifier[location...
public void finish() throws IOException { ensureOpen(); if (finished) { return; } if (xentries.isEmpty()) { throw new ZipException("No entries"); } if (current != null) { closeEntry(); } // write central directory ...
class class_name[name] begin[{] method[finish, return_type[void], modifier[public], parameter[]] begin[{] call[.ensureOpen, parameter[]] if[member[.finished]] begin[{] return[None] else begin[{] None end[}] if[call[xentries.isEmpty, pa...
Keyword[public] Keyword[void] identifier[finish] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ensureOpen] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[finished] operator[SEP] { Keyword[return] operator[SEP] } Keyword[i...
public static String toFirstLower( String name ) { if ( isEmpty( name )) { return name; } return "" + name.toLowerCase( Locale.ROOT ).charAt(0) + name.substring(1); }
class class_name[name] begin[{] method[toFirstLower, return_type[type[String]], modifier[public static], parameter[name]] begin[{] if[call[.isEmpty, parameter[member[.name]]]] begin[{] return[member[.name]] else begin[{] None end[}] return[binary_operation[bi...
Keyword[public] Keyword[static] identifier[String] identifier[toFirstLower] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[name] operator[SEP] operator[SEP] { Keyword[return] identifier[name] operator[SEP] ...
public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) { final boolean isMultiStream = componentBuilder.getDescriptor().isMultiStreamComponent(); final JPopupMenu popup = new JPopupMenu(); final JMenuItem configureComponentMenuItem = new JMenuItem("Co...
class class_name[name] begin[{] method[onComponentRightClicked, return_type[void], modifier[public], parameter[componentBuilder, me]] begin[{] local_variable[type[boolean], isMultiStream] local_variable[type[JPopupMenu], popup] local_variable[type[JMenuItem], configureComponentMenuItem]...
Keyword[public] Keyword[void] identifier[onComponentRightClicked] operator[SEP] Keyword[final] identifier[ComponentBuilder] identifier[componentBuilder] , Keyword[final] identifier[MouseEvent] identifier[me] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isMultiStream] operator[=] identifier[compone...
public static int compare( String s1, String s2) { if (s1 == null && s2 == null) { return 0; } else if (s1 == null && s2 != null) { return -1; } else if (s1 != null && s2 == null) { return 1; } else { return s1.compareTo(s2); } }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public static], parameter[s1, s2]] begin[{] if[binary_operation[binary_operation[member[.s1], ==, literal[null]], &&, binary_operation[member[.s2], ==, literal[null]]]] begin[{] return[literal[0]] ...
Keyword[public] Keyword[static] Keyword[int] identifier[compare] operator[SEP] identifier[String] identifier[s1] , identifier[String] identifier[s2] operator[SEP] { Keyword[if] operator[SEP] identifier[s1] operator[==] Other[null] operator[&&] identifier[s2] operator[==] Other[null] operator[SEP] { K...
public static UserBean unmarshallUser(Map<String, Object> source) { if (source == null) { return null; } UserBean bean = new UserBean(); bean.setUsername(asString(source.get("username"))); bean.setEmail(asString(source.get("email"))); bean.setFullName(asString...
class class_name[name] begin[{] method[unmarshallUser, return_type[type[UserBean]], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_va...
Keyword[public] Keyword[static] identifier[UserBean] identifier[unmarshallUser] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[source] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] { Keywor...
public static CommerceShipmentItem remove(long commerceShipmentItemId) throws com.liferay.commerce.exception.NoSuchShipmentItemException { return getPersistence().remove(commerceShipmentItemId); }
class class_name[name] begin[{] method[remove, return_type[type[CommerceShipmentItem]], modifier[public static], parameter[commerceShipmentItemId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceShipmentItem] identifier[remove] operator[SEP] Keyword[long] identifier[commerceShipmentItemId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[exception] operator[SEP] identifi...
public void engineReloaded(Object objectSent) { final JsMessagingEngine engine = (JsMessagingEngine)objectSent; final String methodName = "engineReloaded"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, engine); } RELOADING_MESSAGING_ENGINES.r...
class class_name[name] begin[{] method[engineReloaded, return_type[void], modifier[public], parameter[objectSent]] begin[{] local_variable[type[JsMessagingEngine], engine] local_variable[type[String], methodName] if[call[TRACE.isEntryEnabled, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[engineReloaded] operator[SEP] identifier[Object] identifier[objectSent] operator[SEP] { Keyword[final] identifier[JsMessagingEngine] identifier[engine] operator[=] operator[SEP] identifier[JsMessagingEngine] operator[SEP] identifier[objectSent] operator[SEP] Keyword[final...
public void endContextClassLoader(ClassLoader raClassLoader, ClassLoader previousClassLoader) { if (raClassLoader != null) { AccessController.doPrivileged(new GetAndSetContextClassLoader(previousClassLoader)); } }
class class_name[name] begin[{] method[endContextClassLoader, return_type[void], modifier[public], parameter[raClassLoader, previousClassLoader]] begin[{] if[binary_operation[member[.raClassLoader], !=, literal[null]]] begin[{] call[AccessController.doPrivileged, paramet...
Keyword[public] Keyword[void] identifier[endContextClassLoader] operator[SEP] identifier[ClassLoader] identifier[raClassLoader] , identifier[ClassLoader] identifier[previousClassLoader] operator[SEP] { Keyword[if] operator[SEP] identifier[raClassLoader] operator[!=] Other[null] operator[SEP] { identi...
private static void prepareConfig() { Config config = getInstance(Config.class); int bitLength = getBitLength(config.getApplicationSecret()); if (bitLength < KEY_MIN_BIT_LENGTH) { LOG.error("Application requires a 512 bit application secret. The current property for applicat...
class class_name[name] begin[{] method[prepareConfig, return_type[void], modifier[private static], parameter[]] begin[{] local_variable[type[Config], config] local_variable[type[int], bitLength] if[binary_operation[member[.bitLength], <, member[.KEY_MIN_BIT_LENGTH]]] begin[{] ...
Keyword[private] Keyword[static] Keyword[void] identifier[prepareConfig] operator[SEP] operator[SEP] { identifier[Config] identifier[config] operator[=] identifier[getInstance] operator[SEP] identifier[Config] operator[SEP] Keyword[class] operator[SEP] operator[SEP] Keyword[int] identifier[bitLength] operator[=]...
private void processOperation(CompletableOperation operation) throws Exception { Preconditions.checkState(!operation.isDone(), "The Operation has already been processed."); Operation entry = operation.getOperation(); synchronized (this.stateLock) { // Update Metadata and Operations ...
class class_name[name] begin[{] method[processOperation, return_type[void], modifier[private], parameter[operation]] begin[{] call[Preconditions.checkState, parameter[call[operation.isDone, parameter[]], literal["The Operation has already been processed."]]] local_variable[type[Operatio...
Keyword[private] Keyword[void] identifier[processOperation] operator[SEP] identifier[CompletableOperation] identifier[operation] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] operator[!] identifier[operation] operator[SEP] ident...
public static Set<URL> getBootstrappedLibraries() { final String name = PREFIX + SREBootstrap.class.getName(); final Set<URL> result = new TreeSet<>(); try { final Enumeration<URL> enumr = ClassLoader.getSystemResources(name); while (enumr.hasMoreElements()) { final URL url = enumr.nextElement(); if...
class class_name[name] begin[{] method[getBootstrappedLibraries, return_type[type[Set]], modifier[public static], parameter[]] begin[{] local_variable[type[String], name] local_variable[type[Set], result] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Variable...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[URL] operator[>] identifier[getBootstrappedLibraries] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[name] operator[=] identifier[PREFIX] operator[+] identifier[SREBootstrap] operator[SEP] Keyword[class] operator[S...
public static String getShortName(Class<?> c) { String qname = getQualifiedName(c); int start = qname.lastIndexOf('$'); if (start == -1) { start = qname.lastIndexOf('.'); } return qname.substring(start + 1); }
class class_name[name] begin[{] method[getShortName, return_type[type[String]], modifier[public static], parameter[c]] begin[{] local_variable[type[String], qname] local_variable[type[int], start] if[binary_operation[member[.start], ==, literal[1]]] begin[{] ...
Keyword[public] Keyword[static] identifier[String] identifier[getShortName] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[c] operator[SEP] { identifier[String] identifier[qname] operator[=] identifier[getQualifiedName] operator[SEP] identifier[c] operator[SEP] operator[SEP] Keywo...
public List<List<Writable>> executeSequence(List<List<Writable>> inputSequence) { return executeSequenceToSequence(inputSequence); }
class class_name[name] begin[{] method[executeSequence, return_type[type[List]], modifier[public], parameter[inputSequence]] begin[{] return[call[.executeSequenceToSequence, parameter[member[.inputSequence]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[List] operator[<] identifier[Writable] operator[>] operator[>] identifier[executeSequence] operator[SEP] identifier[List] operator[<] identifier[List] operator[<] identifier[Writable] operator[>] operator[>] identifier[inputSequence] operator[SEP] { Keyword...
public CalibratedCurves getCloneShifted(Pattern symbolRegExp, double shift) throws SolverException, CloneNotSupportedException { // Clone calibration specs, shifting the desired symbol List<CalibrationSpec> calibrationSpecsShifted = new ArrayList<CalibrationSpec>(); for(CalibrationSpec calibrationSpec : calibrat...
class class_name[name] begin[{] method[getCloneShifted, return_type[type[CalibratedCurves]], modifier[public], parameter[symbolRegExp, shift]] begin[{] local_variable[type[List], calibrationSpecsShifted] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotatio...
Keyword[public] identifier[CalibratedCurves] identifier[getCloneShifted] operator[SEP] identifier[Pattern] identifier[symbolRegExp] , Keyword[double] identifier[shift] operator[SEP] Keyword[throws] identifier[SolverException] , identifier[CloneNotSupportedException] { identifier[List] operator[<] identifier[Ca...
public void trimToSize(int maxSize) { while (true) { K key; V value; synchronized (this) { if (size < 0 || map.isEmpty() && size != 0) { throw new IllegalStateException(getClass().getName() + ".sizeOf() is reporting inconsistent results!");...
class class_name[name] begin[{] method[trimToSize, return_type[void], modifier[public], parameter[maxSize]] begin[{] while[literal[true]] begin[{] local_variable[type[K], key] local_variable[type[V], value] SYNCHRONIZED[THIS[]] BEGIN[{] ...
Keyword[public] Keyword[void] identifier[trimToSize] operator[SEP] Keyword[int] identifier[maxSize] operator[SEP] { Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[K] identifier[key] operator[SEP] identifier[V] identifier[value] operator[SEP] Keyword[synchronized] operator[SEP...
public static <T extends Actor> T AsActor(Class<T> actorClazz) { return (T) instance.newProxy(actorClazz, defaultScheduler.get(), -1); }
class class_name[name] begin[{] method[AsActor, return_type[type[T]], modifier[public static], parameter[actorClazz]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=actorClazz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arg...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Actor] operator[>] identifier[T] identifier[AsActor] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[actorClazz] operator[SEP] { Keyword[return] operator[SEP] identifier[T] operator[SEP] identif...
static void init(String configName) { MAIN = DbKit.getConfig(configName).dbProFactory.getDbPro(configName); // new DbPro(configName); map.put(configName, MAIN); }
class class_name[name] begin[{] method[init, return_type[void], modifier[static], parameter[configName]] begin[{] assign[member[.MAIN], call[DbKit.getConfig, parameter[member[.configName]]]] call[map.put, parameter[member[.configName], member[.MAIN]]] end[}] END[}]
Keyword[static] Keyword[void] identifier[init] operator[SEP] identifier[String] identifier[configName] operator[SEP] { identifier[MAIN] operator[=] identifier[DbKit] operator[SEP] identifier[getConfig] operator[SEP] identifier[configName] operator[SEP] operator[SEP] identifier[dbProFactory] operator[SEP] identif...
public boolean isSurveyActive(int surveyId) throws LimesurveyRCException { LsApiBody.LsApiParams params = getParamsWithKey(surveyId); List<String> surveySettings = new ArrayList<>(); surveySettings.add("active"); params.setSurveySettings(surveySettings); return "Y".equals(callRC...
class class_name[name] begin[{] method[isSurveyActive, return_type[type[boolean]], modifier[public], parameter[surveyId]] begin[{] local_variable[type[LsApiBody], params] local_variable[type[List], surveySettings] call[surveySettings.add, parameter[literal["active"]]] ...
Keyword[public] Keyword[boolean] identifier[isSurveyActive] operator[SEP] Keyword[int] identifier[surveyId] operator[SEP] Keyword[throws] identifier[LimesurveyRCException] { identifier[LsApiBody] operator[SEP] identifier[LsApiParams] identifier[params] operator[=] identifier[getParamsWithKey] operator[SEP] ident...
public Request multipleQueriesAsync(final @NonNull List<Query> queries, @Nullable final Client.MultipleQueriesStrategy strategy, @NonNull CompletionHandler completionHandler) { final List<Query> queriesCopy = new ArrayList<>(queries); return getClient().new AsyncTaskRequest(completionHandler) { ...
class class_name[name] begin[{] method[multipleQueriesAsync, return_type[type[Request]], modifier[public], parameter[queries, strategy, completionHandler]] begin[{] local_variable[type[List], queriesCopy] return[call[.getClient, parameter[]]] end[}] END[}]
Keyword[public] identifier[Request] identifier[multipleQueriesAsync] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[List] operator[<] identifier[Query] operator[>] identifier[queries] , annotation[@] identifier[Nullable] Keyword[final] identifier[Client] operator[SEP] identifier[MultipleQuer...
public static TaskEntity createAndInsert(VariableScope execution) { TaskEntity task = create(); if (execution instanceof ExecutionEntity) { ExecutionEntity executionEntity = (ExecutionEntity) execution; task.setExecution(executionEntity); task.skipCustomListeners = executionEntity.isSkipCusto...
class class_name[name] begin[{] method[createAndInsert, return_type[type[TaskEntity]], modifier[public static], parameter[execution]] begin[{] local_variable[type[TaskEntity], task] if[binary_operation[member[.execution], instanceof, type[ExecutionEntity]]] begin[{] local_va...
Keyword[public] Keyword[static] identifier[TaskEntity] identifier[createAndInsert] operator[SEP] identifier[VariableScope] identifier[execution] operator[SEP] { identifier[TaskEntity] identifier[task] operator[=] identifier[create] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ex...
public GetCelebrityInfoResult withUrls(String... urls) { if (this.urls == null) { setUrls(new java.util.ArrayList<String>(urls.length)); } for (String ele : urls) { this.urls.add(ele); } return this; }
class class_name[name] begin[{] method[withUrls, return_type[type[GetCelebrityInfoResult]], modifier[public], parameter[urls]] begin[{] if[binary_operation[THIS[member[None.urls]], ==, literal[null]]] begin[{] call[.setUrls, parameter[ClassCreator(arguments=[MemberRefere...
Keyword[public] identifier[GetCelebrityInfoResult] identifier[withUrls] operator[SEP] identifier[String] operator[...] identifier[urls] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[urls] operator[==] Other[null] operator[SEP] { identifier[setUrls] operator[SEP] Keyw...
public List<Reference> getPath() { if (_path == null) { return Collections.emptyList(); } return Collections.unmodifiableList(_path); }
class class_name[name] begin[{] method[getPath, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._path], ==, literal[null]]] begin[{] return[call[Collections.emptyList, parameter[]]] else begin[{] None end[}] return...
Keyword[public] identifier[List] operator[<] identifier[Reference] operator[>] identifier[getPath] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_path] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[Collections] operator[SEP] identifier[emptyList] operator[SEP...
public static CellValue fromTypeAndObject(final TableCell.Type type, final Object o) { // TODO: use the type hint, with a switch... return CellValue.fromObject(o); }
class class_name[name] begin[{] method[fromTypeAndObject, return_type[type[CellValue]], modifier[public static], parameter[type, o]] begin[{] return[call[CellValue.fromObject, parameter[member[.o]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CellValue] identifier[fromTypeAndObject] operator[SEP] Keyword[final] identifier[TableCell] operator[SEP] identifier[Type] identifier[type] , Keyword[final] identifier[Object] identifier[o] operator[SEP] { Keyword[return] identifier[CellValue] operator[SEP] identifier[...
public String[] getDeviceList(final String serverName, final String className) { String[] result = new String[0]; final Server server = servers.get(serverName); if (server != null) { final String[] devices = server.getDevices(className); if (devices != null) { ...
class class_name[name] begin[{] method[getDeviceList, return_type[type[String]], modifier[public], parameter[serverName, className]] begin[{] local_variable[type[String], result] local_variable[type[Server], server] if[binary_operation[member[.server], !=, literal[null]]] begin[...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getDeviceList] operator[SEP] Keyword[final] identifier[String] identifier[serverName] , Keyword[final] identifier[String] identifier[className] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[result] operator[=] ...
@SuppressWarnings("rawtypes") public static <T, B extends ThreadLocalBuilder<T>> T buildGeneric( final Class<? extends ThreadLocalBuilder> threadLocalBuilderClass, final Consumer<B> builderConsumer) { // Look-up the thread local builder's instance queue @SuppressWarnings("un...
class class_name[name] begin[{] method[buildGeneric, return_type[type[T]], modifier[public static], parameter[threadLocalBuilderClass, builderConsumer]] begin[{] local_variable[type[Class], genericThreadLocalBuilderClass] local_variable[type[Queue], instanceQueue] local_variable[type[Th...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[B] Keyword[extends] identifier[ThreadLocalBuilder] operator[<] identifier[T] operator[>] operator[>] identifier[T] identifier[buildGeneric] operator[SEP] Keyword...
protected TokenList.Token parseBlockNoParentheses(TokenList tokens, Sequence sequence, boolean insideMatrixConstructor) { // search for matrix bracket operations if( !insideMatrixConstructor ) { parseBracketCreateMatrix(tokens, sequence); } // First create sequences from an...
class class_name[name] begin[{] method[parseBlockNoParentheses, return_type[type[TokenList]], modifier[protected], parameter[tokens, sequence, insideMatrixConstructor]] begin[{] if[member[.insideMatrixConstructor]] begin[{] call[.parseBracketCreateMatrix, parameter[membe...
Keyword[protected] identifier[TokenList] operator[SEP] identifier[Token] identifier[parseBlockNoParentheses] operator[SEP] identifier[TokenList] identifier[tokens] , identifier[Sequence] identifier[sequence] , Keyword[boolean] identifier[insideMatrixConstructor] operator[SEP] { Keyword[if] operator[SEP] operat...
private static boolean equalAsInts(Vec2d a, Vec2d b) { return ((int) a.x) == ((int) b.x) && ((int) a.y) == ((int) b.y); }
class class_name[name] begin[{] method[equalAsInts, return_type[type[boolean]], modifier[private static], parameter[a, b]] begin[{] return[binary_operation[binary_operation[Cast(expression=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[]), type=BasicType(di...
Keyword[private] Keyword[static] Keyword[boolean] identifier[equalAsInts] operator[SEP] identifier[Vec2d] identifier[a] , identifier[Vec2d] identifier[b] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] Keyword[int] operator[SEP] identifier[a] operator[SEP] identifier[x] operator[SEP] operator[==] op...
public String getValue(String property) { String value = null; List<String> values = getValues(property); if (!values.isEmpty()) { value = values.get(0); } return value; }
class class_name[name] begin[{] method[getValue, return_type[type[String]], modifier[public], parameter[property]] begin[{] local_variable[type[String], value] local_variable[type[List], values] if[call[values.isEmpty, parameter[]]] begin[{] assign[member...
Keyword[public] identifier[String] identifier[getValue] operator[SEP] identifier[String] identifier[property] operator[SEP] { identifier[String] identifier[value] operator[=] Other[null] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[=] identifier[getValues]...
@Override public CPInstance findByGroupId_First(long groupId, OrderByComparator<CPInstance> orderByComparator) throws NoSuchCPInstanceException { CPInstance cpInstance = fetchByGroupId_First(groupId, orderByComparator); if (cpInstance != null) { return cpInstance; } StringBundler msg = new StringBundl...
class class_name[name] begin[{] method[findByGroupId_First, return_type[type[CPInstance]], modifier[public], parameter[groupId, orderByComparator]] begin[{] local_variable[type[CPInstance], cpInstance] if[binary_operation[member[.cpInstance], !=, literal[null]]] begin[{] ret...
annotation[@] identifier[Override] Keyword[public] identifier[CPInstance] identifier[findByGroupId_First] operator[SEP] Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CPInstance] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[NoSuchCPInstanc...
public static String createSummary(final TasksResult result) { StringBuilder summary = new StringBuilder(); int tasks = result.getNumberOfAnnotations(); summary.append(Messages.Tasks_ResultAction_Summary()); summary.append(" "); if (tasks > 0) { summary.append("<a hr...
class class_name[name] begin[{] method[createSummary, return_type[type[String]], modifier[public static], parameter[result]] begin[{] local_variable[type[StringBuilder], summary] local_variable[type[int], tasks] call[summary.append, parameter[call[Messages.Tasks_ResultAction_Sum...
Keyword[public] Keyword[static] identifier[String] identifier[createSummary] operator[SEP] Keyword[final] identifier[TasksResult] identifier[result] operator[SEP] { identifier[StringBuilder] identifier[summary] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[i...
public static StreamExecutionEnvironment createRemoteEnvironment( String host, int port, String... jarFiles) { return new RemoteStreamEnvironment(host, port, jarFiles); }
class class_name[name] begin[{] method[createRemoteEnvironment, return_type[type[StreamExecutionEnvironment]], modifier[public static], parameter[host, port, jarFiles]] begin[{] return[ClassCreator(arguments=[MemberReference(member=host, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
Keyword[public] Keyword[static] identifier[StreamExecutionEnvironment] identifier[createRemoteEnvironment] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[String] operator[...] identifier[jarFiles] operator[SEP] { Keyword[return] Keyword[new] identifier[RemoteStre...
public boolean isRequestedSessionIdValid() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); } // 321485 boolean sessionInvalid = _requestContext.isRequestedSessionIdValid(((WebAppDispatcherContext) this.getDispatchContext()).getWebApp()); ...
class class_name[name] begin[{] method[isRequestedSessionIdValid, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[member[WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE]] begin[{] call[.checkRequestObjectInUse, parameter[]] else begin[{] Non...
Keyword[public] Keyword[boolean] identifier[isRequestedSessionIdValid] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[WCCustomProperties] operator[SEP] identifier[CHECK_REQUEST_OBJECT_IN_USE] operator[SEP] { identifier[checkRequestObjectInUse] operator[SEP] operator[SEP] operator[S...
public static String getAddressForUrl(String address, boolean resolveForIp) { if (address == null) { return null; } // drop schema int pos = address.indexOf("://"); if (pos > 0) { address = address.substring(pos + 3); } // drop user authe...
class class_name[name] begin[{] method[getAddressForUrl, return_type[type[String]], modifier[public static], parameter[address, resolveForIp]] begin[{] if[binary_operation[member[.address], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[String] identifier[getAddressForUrl] operator[SEP] identifier[String] identifier[address] , Keyword[boolean] identifier[resolveForIp] operator[SEP] { Keyword[if] operator[SEP] identifier[address] operator[==] Other[null] operator[SEP] { Keyword[return] Other...
public java.util.Map<String, java.util.List<String>> getOverriddenParameters() { return overriddenParameters; }
class class_name[name] begin[{] method[getOverriddenParameters, return_type[type[java]], modifier[public], parameter[]] begin[{] return[member[.overriddenParameters]] end[}] END[}]
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[getOverriddenParameters] operator[SEP] operator...
public static Xml exports(ActionConfig config) { Check.notNull(config); final Xml nodeAction = new Xml(NODE_ACTION); nodeAction.writeString(ATT_NAME, config.getName()); nodeAction.writeString(ATT_DESCRIPTION, config.getDescription()); nodeAction.writeInteger(ATT_X, co...
class class_name[name] begin[{] method[exports, return_type[type[Xml]], modifier[public static], parameter[config]] begin[{] call[Check.notNull, parameter[member[.config]]] local_variable[type[Xml], nodeAction] call[nodeAction.writeString, parameter[member[.ATT_NAME], ca...
Keyword[public] Keyword[static] identifier[Xml] identifier[exports] operator[SEP] identifier[ActionConfig] identifier[config] operator[SEP] { identifier[Check] operator[SEP] identifier[notNull] operator[SEP] identifier[config] operator[SEP] operator[SEP] Keyword[final] identifier[Xml] identifier[nodeAction] oper...
private void init() { if (x == null) { x = new double[z[0].length]; for (int i = 0; i < x.length; i++) { x[i] = i + 0.5; } } if (y == null) { y = new double[z.length]; for (int i = 0; i < y.length; i++) { ...
class class_name[name] begin[{] method[init, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.x], ==, literal[null]]] begin[{] assign[member[.x], ArrayCreator(dimensions=[MemberReference(member=z, postfix_operators=[], prefix_operat...
Keyword[private] Keyword[void] identifier[init] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[x] operator[==] Other[null] operator[SEP] { identifier[x] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[z] operator[SEP] Other[0] operator[SEP] operator[SEP] identifie...
@Override public CompletableFuture<Result> append(Append append) { return toCompletableFuture(clientWrapper.readModifyWriteRowAsync(hbaseAdapter.adapt(append))) .thenApply(response -> append.isReturnResults() ? Adapters.ROW_ADAPTER.adaptResponse(response) : null...
class class_name[name] begin[{] method[append, return_type[type[CompletableFuture]], modifier[public], parameter[append]] begin[{] return[call[.toCompletableFuture, parameter[call[clientWrapper.readModifyWriteRowAsync, parameter[call[hbaseAdapter.adapt, parameter[member[.append]]]]]]]] end[}] END[}...
annotation[@] identifier[Override] Keyword[public] identifier[CompletableFuture] operator[<] identifier[Result] operator[>] identifier[append] operator[SEP] identifier[Append] identifier[append] operator[SEP] { Keyword[return] identifier[toCompletableFuture] operator[SEP] identifier[clientWrapper] operator[SEP] ...
protected static OptionParser getParser() { OptionParser parser = new OptionParser(); // help options AdminParserUtils.acceptsHelp(parser); // required options parser.accepts(OPT_HEAD_META_GET, "metadata keys to fetch") .withOptionalArg() ...
class class_name[name] begin[{] method[getParser, return_type[type[OptionParser]], modifier[static protected], parameter[]] begin[{] local_variable[type[OptionParser], parser] call[AdminParserUtils.acceptsHelp, parameter[member[.parser]]] call[parser.accepts, parameter[m...
Keyword[protected] Keyword[static] identifier[OptionParser] identifier[getParser] operator[SEP] operator[SEP] { identifier[OptionParser] identifier[parser] operator[=] Keyword[new] identifier[OptionParser] operator[SEP] operator[SEP] operator[SEP] identifier[AdminParserUtils] operator[SEP] identifier[acceptsHelp...
@SuppressWarnings("unchecked") // Justification : producer generic type is checked manually at runtime private OnDemandStatsProducer<S> safeCastProducer(IStatsProducer producer) throws ClassCastException { OnDemandStatsProducer onDemandStatsTypedProducer = (OnDemandStatsProducer)produce...
class class_name[name] begin[{] method[safeCastProducer, return_type[type[OnDemandStatsProducer]], modifier[private], parameter[producer]] begin[{] local_variable[type[OnDemandStatsProducer], onDemandStatsTypedProducer] if[call[statsClass.isInstance, parameter[call[onDemandStatsTypedPro...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[OnDemandStatsProducer] operator[<] identifier[S] operator[>] identifier[safeCastProducer] operator[SEP] identifier[IStatsProducer] identifier[producer] operator[SEP] Keyword[throws] identifier[ClassCastExc...
@Override public boolean process(ContentEvent event) { if (event.isLastEvent() || (instancesCount > 0 && instancesCount% this.sampleFrequency == 0)) { if (model.implementsMicroClusterer()) { Clustering clustering = model.getMicroClusteringResult(); ...
class class_name[name] begin[{] method[process, return_type[type[boolean]], modifier[public], parameter[event]] begin[{] if[binary_operation[call[event.isLastEvent, parameter[]], ||, binary_operation[binary_operation[member[.instancesCount], >, literal[0]], &&, binary_operation[binary_operation...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[process] operator[SEP] identifier[ContentEvent] identifier[event] operator[SEP] { Keyword[if] operator[SEP] identifier[event] operator[SEP] identifier[isLastEvent] operator[SEP] operator[SEP] operator[||] operator[SEP] identifier[inst...
protected void updateBorder (boolean modified) { if (modified) { setBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, Color.red)); } else { setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2)); } }
class class_name[name] begin[{] method[updateBorder, return_type[void], modifier[protected], parameter[modified]] begin[{] if[member[.modified]] begin[{] call[.setBorder, parameter[call[BorderFactory.createMatteBorder, parameter[literal[2], literal[2], literal[2], litera...
Keyword[protected] Keyword[void] identifier[updateBorder] operator[SEP] Keyword[boolean] identifier[modified] operator[SEP] { Keyword[if] operator[SEP] identifier[modified] operator[SEP] { identifier[setBorder] operator[SEP] identifier[BorderFactory] operator[SEP] identifier[createMatteBorder] operato...
public SIBUuid8 getLocalizingMEUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getLocalizingMEUuid"); SibTr.exit(tc, "getLocalizingMEUuid", messagingEngineUuid); } return messagingEngineUuid; }
class class_name[name] begin[{] method[getLocalizingMEUuid, return_type[type[SIBUuid8]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entr...
Keyword[public] identifier[SIBUuid8] identifier[getLocalizingMEUuid] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] oper...
protected synchronized void decorateWithTLS(TLSClientParameters tlsClientParameters, HttpURLConnection connection) throws GeneralSecurityException { int hash = tlsClientParameters.hashCode(); if (hash != lastTlsHash) { lastTlsHash = hash; ...
class class_name[name] begin[{] method[decorateWithTLS, return_type[void], modifier[synchronized protected], parameter[tlsClientParameters, connection]] begin[{] local_variable[type[int], hash] if[binary_operation[member[.hash], !=, member[.lastTlsHash]]] begin[{] ...
Keyword[protected] Keyword[synchronized] Keyword[void] identifier[decorateWithTLS] operator[SEP] identifier[TLSClientParameters] identifier[tlsClientParameters] , identifier[HttpURLConnection] identifier[connection] operator[SEP] Keyword[throws] identifier[GeneralSecurityException] { Keyword[int] identifier[has...
@Override public UpdateAccountResult updateAccount(UpdateAccountRequest request) { request = beforeClientExecution(request); return executeUpdateAccount(request); }
class class_name[name] begin[{] method[updateAccount, return_type[type[UpdateAccountResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateAccount, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateAccountResult] identifier[updateAccount] operator[SEP] identifier[UpdateAccountRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
private void handleMissingFields() { MissingFieldHandler missingFieldHandler = reader.getMissingFieldHandler(); if (missingFieldHandler != null) { for (Missingfields mf : missingFields) { missingFieldHandler.fieldMissing(mf.target, mf.fieldName, mf.val...
class class_name[name] begin[{] method[handleMissingFields, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[MissingFieldHandler], missingFieldHandler] if[binary_operation[member[.missingFieldHandler], !=, literal[null]]] begin[{] ForStatement(...
Keyword[private] Keyword[void] identifier[handleMissingFields] operator[SEP] operator[SEP] { identifier[MissingFieldHandler] identifier[missingFieldHandler] operator[=] identifier[reader] operator[SEP] identifier[getMissingFieldHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifi...
public Point2D_F64 transform( Point3D_F64 worldPt ) { Point2D_F64 out = new Point2D_F64(); if( transform(worldPt,out)) return out; else return null; }
class class_name[name] begin[{] method[transform, return_type[type[Point2D_F64]], modifier[public], parameter[worldPt]] begin[{] local_variable[type[Point2D_F64], out] if[call[.transform, parameter[member[.worldPt], member[.out]]]] begin[{] return[member[.out]] else begin[{] ret...
Keyword[public] identifier[Point2D_F64] identifier[transform] operator[SEP] identifier[Point3D_F64] identifier[worldPt] operator[SEP] { identifier[Point2D_F64] identifier[out] operator[=] Keyword[new] identifier[Point2D_F64] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[transform...
private void removeDuplicateResources(UIViewRoot root, FacesContext context) { List<UIComponent> resourcesToRemove = new ArrayList<UIComponent>(); Map<String, UIComponent> alreadyThere = new HashMap<String, UIComponent>(); List<UIComponent> components = new ArrayList<UIComponent>(root.getComponentResources(contex...
class class_name[name] begin[{] method[removeDuplicateResources, return_type[void], modifier[private], parameter[root, context]] begin[{] local_variable[type[List], resourcesToRemove] local_variable[type[Map], alreadyThere] local_variable[type[List], components] call[Col...
Keyword[private] Keyword[void] identifier[removeDuplicateResources] operator[SEP] identifier[UIViewRoot] identifier[root] , identifier[FacesContext] identifier[context] operator[SEP] { identifier[List] operator[<] identifier[UIComponent] operator[>] identifier[resourcesToRemove] operator[=] Keyword[new] identif...
public void readBytes(ByteBuffer destination) { int length = destination.remaining(); slice.getBytes(position, destination); position += length; }
class class_name[name] begin[{] method[readBytes, return_type[void], modifier[public], parameter[destination]] begin[{] local_variable[type[int], length] call[slice.getBytes, parameter[member[.position], member[.destination]]] assign[member[.position], member[.length]] ...
Keyword[public] Keyword[void] identifier[readBytes] operator[SEP] identifier[ByteBuffer] identifier[destination] operator[SEP] { Keyword[int] identifier[length] operator[=] identifier[destination] operator[SEP] identifier[remaining] operator[SEP] operator[SEP] operator[SEP] identifier[slice] operator[SEP] identi...
public static List<Integer> parserIntegerList(JsonPullParser parser) throws IOException, JsonFormatException { State eventType = parser.getEventType(); if (eventType == State.VALUE_NULL) { return null; } if (eventType != State.START_ARRAY) { throw new IllegalStateException("not started brace!"); } ...
class class_name[name] begin[{] method[parserIntegerList, return_type[type[List]], modifier[public static], parameter[parser]] begin[{] local_variable[type[State], eventType] if[binary_operation[member[.eventType], ==, member[State.VALUE_NULL]]] begin[{] return[literal[null]...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Integer] operator[>] identifier[parserIntegerList] operator[SEP] identifier[JsonPullParser] identifier[parser] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JsonFormatException] { identifier[State] identifier[eventType]...
private ImageMetaData readImageMetaData() { InputStream inputStream = null; ImageMetaData metaData = null; try { inputStream = getInputStream(); metaData = BitmapUtil.decodeDimensionsAndColorSpace(inputStream); mColorSpace = metaData.getColorSpace(); Pair<Integer, Integer> dimensions...
class class_name[name] begin[{] method[readImageMetaData, return_type[type[ImageMetaData]], modifier[private], parameter[]] begin[{] local_variable[type[InputStream], inputStream] local_variable[type[ImageMetaData], metaData] TryStatement(block=[StatementExpression(expression=Assignment...
Keyword[private] identifier[ImageMetaData] identifier[readImageMetaData] operator[SEP] operator[SEP] { identifier[InputStream] identifier[inputStream] operator[=] Other[null] operator[SEP] identifier[ImageMetaData] identifier[metaData] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[in...
public static Field getOpenEngSBModelIdField(Class<?> modelClass) { List<Field> fields = getAnnotatedFields(modelClass, OpenEngSBModelId.class); if (fields.isEmpty()) { return null; } return fields.get(0); }
class class_name[name] begin[{] method[getOpenEngSBModelIdField, return_type[type[Field]], modifier[public static], parameter[modelClass]] begin[{] local_variable[type[List], fields] if[call[fields.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] N...
Keyword[public] Keyword[static] identifier[Field] identifier[getOpenEngSBModelIdField] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[modelClass] operator[SEP] { identifier[List] operator[<] identifier[Field] operator[>] identifier[fields] operator[=] identifier[getAnnotatedFields...
public static SubmitAuditResult submit_audit(String access_token,SubmitAudit submitAudit){ String json = JsonUtil.toJSONString(submitAudit); HttpUriRequest httpUriRequest = RequestBuilder.post() .setHeader(jsonHeader) .setUri(BASE_URI + "/wxa/submit_audit") .addParameter(PARAM_ACCESS_TOKEN, API.acc...
class class_name[name] begin[{] method[submit_audit, return_type[type[SubmitAuditResult]], modifier[public static], parameter[access_token, submitAudit]] begin[{] local_variable[type[String], json] local_variable[type[HttpUriRequest], httpUriRequest] return[call[LocalHttpClient.executeJ...
Keyword[public] Keyword[static] identifier[SubmitAuditResult] identifier[submit_audit] operator[SEP] identifier[String] identifier[access_token] , identifier[SubmitAudit] identifier[submitAudit] operator[SEP] { identifier[String] identifier[json] operator[=] identifier[JsonUtil] operator[SEP] identifier[toJSONS...