code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public void write (int b) throws IOException { out.write(b); md5.Update((byte) b); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[b]] begin[{] call[out.write, parameter[member[.b]]] call[md5.Update, parameter[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[int] identifier[b] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[write] operator[SEP] identifier[b] operator[SEP] operator[SEP] identifier[md5] operator[SEP]...
public static String format36time(long time) { String time36 = Long.toString(time, 36); return time36.length() < 9 ? ("0" + time36) : time36; }
class class_name[name] begin[{] method[format36time, return_type[type[String]], modifier[public static], parameter[time]] begin[{] local_variable[type[String], time36] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[],...
Keyword[public] Keyword[static] identifier[String] identifier[format36time] operator[SEP] Keyword[long] identifier[time] operator[SEP] { identifier[String] identifier[time36] operator[=] identifier[Long] operator[SEP] identifier[toString] operator[SEP] identifier[time] , Other[36] operator[SEP] operator[SEP] Ke...
public static void checkProxyPackageAccess(Class<?> clazz) { SecurityManager s = System.getSecurityManager(); if (s != null) { // check proxy interfaces if the given class is a proxy class if (Proxy.isProxyClass(clazz)) { for (Class<?> intf : clazz.getInterfaces()...
class class_name[name] begin[{] method[checkProxyPackageAccess, return_type[void], modifier[public static], parameter[clazz]] begin[{] local_variable[type[SecurityManager], s] if[binary_operation[member[.s], !=, literal[null]]] begin[{] if[call[Proxy.isProxyClass...
Keyword[public] Keyword[static] Keyword[void] identifier[checkProxyPackageAccess] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[SecurityManager] identifier[s] operator[=] identifier[System] operator[SEP] identifier[getSecurityManager] operator[SE...
public @NotNull ListAssert contains(@Nullable Object o, @NotNull Index index) { checkNotNull(index); isNotNull().isNotEmpty(); int indexValue = index.value(); int listSize = actualGroupSize(); if (indexValue < 0 || indexValue >= listSize) { failIndexOutOfBounds(indexValue); } Object ac...
class class_name[name] begin[{] method[contains, return_type[type[ListAssert]], modifier[public], parameter[o, index]] begin[{] call[.checkNotNull, parameter[member[.index]]] call[.isNotNull, parameter[]] local_variable[type[int], indexValue] local_variable[type[...
Keyword[public] annotation[@] identifier[NotNull] identifier[ListAssert] identifier[contains] operator[SEP] annotation[@] identifier[Nullable] identifier[Object] identifier[o] , annotation[@] identifier[NotNull] identifier[Index] identifier[index] operator[SEP] { identifier[checkNotNull] operator[SEP] identifie...
@SuppressWarnings({"rawtypes", "unchecked"}) public static Kryo getKryo(Map conf) { IKryoFactory kryoFactory = (IKryoFactory) Utils.newInstance((String) conf.get(Config.TOPOLOGY_KRYO_FACTORY)); Kryo k = kryoFactory.getKryo(conf); k.register(byte[].class); k.register(ListDelegate.class); k....
class class_name[name] begin[{] method[getKryo, return_type[type[Kryo]], modifier[public static], parameter[conf]] begin[{] local_variable[type[IKryoFactory], kryoFactory] local_variable[type[Kryo], k] call[k.register, parameter[ClassReference(postfix_operators=[], prefix_operat...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[static] identifier[Kryo] identifier[getKryo] operator[SEP] identifier[Map] identifier[conf] operator[SEP] { identifier[IKryoFactory] identifier[kryoFactory] operator[=] ...
public static boolean isNetworkUri(@Nullable Uri uri) { final String scheme = getSchemeOrNull(uri); return HTTPS_SCHEME.equals(scheme) || HTTP_SCHEME.equals(scheme); }
class class_name[name] begin[{] method[isNetworkUri, return_type[type[boolean]], modifier[public static], parameter[uri]] begin[{] local_variable[type[String], scheme] return[binary_operation[call[HTTPS_SCHEME.equals, parameter[member[.scheme]]], ||, call[HTTP_SCHEME.equals, parameter[member[.s...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isNetworkUri] operator[SEP] annotation[@] identifier[Nullable] identifier[Uri] identifier[uri] operator[SEP] { Keyword[final] identifier[String] identifier[scheme] operator[=] identifier[getSchemeOrNull] operator[SEP] identifier[uri] operator[SEP] opera...
public JcNumber exp() { JcNumber ret = new JcNumber(null, this.argument, new FunctionInstance(FUNCTION.Math.EXP, 1)); QueryRecorder.recordInvocationConditional(this, "exp", ret); return ret; }
class class_name[name] begin[{] method[exp, return_type[type[JcNumber]], modifier[public], parameter[]] begin[{] local_variable[type[JcNumber], ret] call[QueryRecorder.recordInvocationConditional, parameter[THIS[], literal["exp"], member[.ret]]] return[member[.ret]] end[}] E...
Keyword[public] identifier[JcNumber] identifier[exp] operator[SEP] operator[SEP] { identifier[JcNumber] identifier[ret] operator[=] Keyword[new] identifier[JcNumber] operator[SEP] Other[null] , Keyword[this] operator[SEP] identifier[argument] , Keyword[new] identifier[FunctionInstance] operator[SEP] identifier...
public Map<String,Object> getProperties() { Map<String,Object> properties = new Hashtable<String,Object>(); ParamDispatcher params = this; for (Enumeration<String> e = params.keys() ; e.hasMoreElements() ;) { String strKey = e.nextElement(); String strValue = ...
class class_name[name] begin[{] method[getProperties, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], properties] local_variable[type[ParamDispatcher], params] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(ann...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getProperties] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[=] Keyword[new] identifier[Hashtable] operator[...
@DoesServiceRequest public Iterable<ListFileItem> listFilesAndDirectories(FileRequestOptions options, OperationContext opContext) { return listFilesAndDirectories(null /* prefix */, options, opContext); }
class class_name[name] begin[{] method[listFilesAndDirectories, return_type[type[Iterable]], modifier[public], parameter[options, opContext]] begin[{] return[call[.listFilesAndDirectories, parameter[literal[null], member[.options], member[.opContext]]]] end[}] END[}]
annotation[@] identifier[DoesServiceRequest] Keyword[public] identifier[Iterable] operator[<] identifier[ListFileItem] operator[>] identifier[listFilesAndDirectories] operator[SEP] identifier[FileRequestOptions] identifier[options] , identifier[OperationContext] identifier[opContext] operator[SEP] { Keyword[ret...
public static String generateRandomPassword(final CharacterTypes characterTypes, final int length) { final StringBuffer buffer = new StringBuffer(); String characters = ""; switch (characterTypes) { case ALPHA: characters = "abcdefghijklmnopqrstuvwxyzABC...
class class_name[name] begin[{] method[generateRandomPassword, return_type[type[String]], modifier[public static], parameter[characterTypes, length]] begin[{] local_variable[type[StringBuffer], buffer] local_variable[type[String], characters] SwitchStatement(cases=[SwitchStatementCase(c...
Keyword[public] Keyword[static] identifier[String] identifier[generateRandomPassword] operator[SEP] Keyword[final] identifier[CharacterTypes] identifier[characterTypes] , Keyword[final] Keyword[int] identifier[length] operator[SEP] { Keyword[final] identifier[StringBuffer] identifier[buffer] operator[=] Keyword...
public void monitorEnter(Local<?> monitor) { addInstruction(new ThrowingInsn(Rops.MONITOR_ENTER, sourcePosition, RegisterSpecList.make(monitor.spec()), catches)); }
class class_name[name] begin[{] method[monitorEnter, return_type[void], modifier[public], parameter[monitor]] begin[{] call[.addInstruction, parameter[ClassCreator(arguments=[MemberReference(member=MONITOR_ENTER, postfix_operators=[], prefix_operators=[], qualifier=Rops, selectors=[]), MemberRe...
Keyword[public] Keyword[void] identifier[monitorEnter] operator[SEP] identifier[Local] operator[<] operator[?] operator[>] identifier[monitor] operator[SEP] { identifier[addInstruction] operator[SEP] Keyword[new] identifier[ThrowingInsn] operator[SEP] identifier[Rops] operator[SEP] identifier[MONITOR_ENTER] , i...
public TrmClientAttachRequest createNewTrmClientAttachRequest() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewTrmClientAttachRequest"); TrmClientAttachRequest msg = null; try { msg = new TrmClientAttachRequestImpl(); ...
class class_name[name] begin[{] method[createNewTrmClientAttachRequest, return_type[type[TrmClientAttachRequest]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] c...
Keyword[public] identifier[TrmClientAttachRequest] identifier[createNewTrmClientAttachRequest] operator[SEP] operator[SEP] Keyword[throws] identifier[MessageCreateFailedException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] oper...
public List<I_CmsWorkplaceAppConfiguration> getDefaultQuickLaunchConfigurations() { if (m_standardQuickLaunchApps == null) { m_standardQuickLaunchApps = Collections.unmodifiableList(getAppConfigurations(STANDARD_APPS)); } return m_standardQuickLaunchApps; }
class class_name[name] begin[{] method[getDefaultQuickLaunchConfigurations, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_standardQuickLaunchApps], ==, literal[null]]] begin[{] assign[member[.m_standardQuickLaunchApps], ca...
Keyword[public] identifier[List] operator[<] identifier[I_CmsWorkplaceAppConfiguration] operator[>] identifier[getDefaultQuickLaunchConfigurations] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_standardQuickLaunchApps] operator[==] Other[null] operator[SEP] { identifier[m_standa...
public void clear() { synchronized (extensions) { // we synchronize just to guard unnamedMerged transformerRegistry = TransformerRegistry.Factory.create(); extensions.clear(); reverseMap.clear(); subsystemsInfo.clear(); } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] SYNCHRONIZED[member[.extensions]] BEGIN[{] assign[member[.transformerRegistry], call[TransformerRegistry.Factory.create, parameter[]]] call[ex...
Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[extensions] operator[SEP] { identifier[transformerRegistry] operator[=] identifier[TransformerRegistry] operator[SEP] identifier[Factory] operator[SEP] identifier[create] operat...
public void log(String message, Level level) { log(null, null, message, level); }
class class_name[name] begin[{] method[log, return_type[void], modifier[public], parameter[message, level]] begin[{] call[.log, parameter[literal[null], literal[null], member[.message], member[.level]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[String] identifier[message] , identifier[Level] identifier[level] operator[SEP] { identifier[log] operator[SEP] Other[null] , Other[null] , identifier[message] , identifier[level] operator[SEP] operator[SEP] }
public static int getTransparency(Transparency transparency) { Check.notNull(transparency); final int value; if (Transparency.OPAQUE == transparency) { value = java.awt.Transparency.OPAQUE; } else if (Transparency.BITMASK == transparency) ...
class class_name[name] begin[{] method[getTransparency, return_type[type[int]], modifier[public static], parameter[transparency]] begin[{] call[Check.notNull, parameter[member[.transparency]]] local_variable[type[int], value] if[binary_operation[member[Transparency.OPAQU...
Keyword[public] Keyword[static] Keyword[int] identifier[getTransparency] operator[SEP] identifier[Transparency] identifier[transparency] operator[SEP] { identifier[Check] operator[SEP] identifier[notNull] operator[SEP] identifier[transparency] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[va...
@Override public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); String plaf_name = null; if (cmd.equals("Metal")) { plaf_name = "javax.swing.plaf.metal.MetalLookAndFeel"; } else if (cmd.equals("Windows")) { plaf_name = "com.sun.java.s...
class class_name[name] begin[{] method[actionPerformed, return_type[void], modifier[public], parameter[e]] begin[{] local_variable[type[String], cmd] local_variable[type[String], plaf_name] if[call[cmd.equals, parameter[literal["Metal"]]]] begin[{] assign...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[actionPerformed] operator[SEP] identifier[ActionEvent] identifier[e] operator[SEP] { identifier[String] identifier[cmd] operator[=] identifier[e] operator[SEP] identifier[getActionCommand] operator[SEP] operator[SEP] operator[SEP] identi...
public ArrayList<JTSFeature> getFeatures(String id, double minX, double minY, double maxX, double maxY, List<Param> optionalParams) throws Exception { DescribeService describeService = getDescribeServiceByID(id); return getFeatures(id, optionalParams, describeService, minX, minY, maxX, maxY, 0, 0); }
class class_name[name] begin[{] method[getFeatures, return_type[type[ArrayList]], modifier[public], parameter[id, minX, minY, maxX, maxY, optionalParams]] begin[{] local_variable[type[DescribeService], describeService] return[call[.getFeatures, parameter[member[.id], member[.optionalParams], me...
Keyword[public] identifier[ArrayList] operator[<] identifier[JTSFeature] operator[>] identifier[getFeatures] operator[SEP] identifier[String] identifier[id] , Keyword[double] identifier[minX] , Keyword[double] identifier[minY] , Keyword[double] identifier[maxX] , Keyword[double] identifier[maxY] , identifier[List]...
private void gatherEvidence(Dependency dependency, final String name, String contents) { final Matcher matcher = AC_INIT_PATTERN.matcher(contents); if (matcher.find()) { dependency.addEvidence(EvidenceType.PRODUCT, name, "Package", matcher.group(1), Confidence.HIGHEST); ...
class class_name[name] begin[{] method[gatherEvidence, return_type[void], modifier[private], parameter[dependency, name, contents]] begin[{] local_variable[type[Matcher], matcher] if[call[matcher.find, parameter[]]] begin[{] call[dependency.addEvidence, parameter...
Keyword[private] Keyword[void] identifier[gatherEvidence] operator[SEP] identifier[Dependency] identifier[dependency] , Keyword[final] identifier[String] identifier[name] , identifier[String] identifier[contents] operator[SEP] { Keyword[final] identifier[Matcher] identifier[matcher] operator[=] identifier[AC_I...
public static void write(InputStream in, OutputStream out) throws IOException { byte[] b = new byte[4096]; for (int n; (n = in.read(b)) != -1;) { out.write(b, 0, n); } in.close(); out.close(); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[in, out]] begin[{] local_variable[type[byte], b] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=b, post...
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] identifier[InputStream] identifier[in] , identifier[OutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[=] Keyword[new] Keyword[byte] o...
public void setLeftOperand(XExpression newLeftOperand) { if (newLeftOperand != leftOperand) { NotificationChain msgs = null; if (leftOperand != null) msgs = ((InternalEObject)leftOperand).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XbasePackage.XBINARY_OPERATION__LEFT_OPERAND, null, msgs); if (newLe...
class class_name[name] begin[{] method[setLeftOperand, return_type[void], modifier[public], parameter[newLeftOperand]] begin[{] if[binary_operation[member[.newLeftOperand], !=, member[.leftOperand]]] begin[{] local_variable[type[NotificationChain], msgs] if[b...
Keyword[public] Keyword[void] identifier[setLeftOperand] operator[SEP] identifier[XExpression] identifier[newLeftOperand] operator[SEP] { Keyword[if] operator[SEP] identifier[newLeftOperand] operator[!=] identifier[leftOperand] operator[SEP] { identifier[NotificationChain] identifier[msgs] operator[=]...
public static Class<?> getPropertyType(Class<?> clazz, String propertyName) { if (clazz == null || !StringUtils.hasText(propertyName)) { return null; } try { PropertyDescriptor desc=BeanUtils.getPropertyDescriptor(clazz, propertyName); if (desc != null) { ...
class class_name[name] begin[{] method[getPropertyType, return_type[type[Class]], modifier[public static], parameter[clazz, propertyName]] begin[{] if[binary_operation[binary_operation[member[.clazz], ==, literal[null]], ||, call[StringUtils.hasText, parameter[member[.propertyName]]]]] begin[{]...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[getPropertyType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[propertyName] operator[SEP] { Keyword[if] operator[SEP] identifier[clazz] operat...
public void parseBatchResult(ClientResponse response) throws IOException, ServiceException { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); InputStream inputStream = response.getEntityInputStream(); ReaderWriter.writeTo(inputStream, byteArrayOutputStream);...
class class_name[name] begin[{] method[parseBatchResult, return_type[void], modifier[public], parameter[response]] begin[{] local_variable[type[ByteArrayOutputStream], byteArrayOutputStream] local_variable[type[InputStream], inputStream] call[ReaderWriter.writeTo, parameter[memb...
Keyword[public] Keyword[void] identifier[parseBatchResult] operator[SEP] identifier[ClientResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServiceException] { identifier[ByteArrayOutputStream] identifier[byteArrayOutputStream] operator[=] Keyword[new] identifier[...
public void setUserDomainSegment(com.google.api.ads.admanager.axis.v201808.UserDomainTargeting userDomainSegment) { this.userDomainSegment = userDomainSegment; }
class class_name[name] begin[{] method[setUserDomainSegment, return_type[void], modifier[public], parameter[userDomainSegment]] begin[{] assign[THIS[member[None.userDomainSegment]], member[.userDomainSegment]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setUserDomainSegment] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[UserDoma...
private void parseProperties( final ITransaction transaction, final WebdavRequest req, final XMLWriter generatedXML, final String path, final int type, final List<String> propertiesVector, final String mimeType ) throws WebdavException { StoredObject so = _store.ge...
class class_name[name] begin[{] method[parseProperties, return_type[void], modifier[private], parameter[transaction, req, generatedXML, path, type, propertiesVector, mimeType]] begin[{] local_variable[type[StoredObject], so] local_variable[type[boolean], isFolder] local_variable[type[St...
Keyword[private] Keyword[void] identifier[parseProperties] operator[SEP] Keyword[final] identifier[ITransaction] identifier[transaction] , Keyword[final] identifier[WebdavRequest] identifier[req] , Keyword[final] identifier[XMLWriter] identifier[generatedXML] , Keyword[final] identifier[String] identifier[path] , K...
protected String newAlgorithm() { if (getModel().getAlgorithm() == null) { return SunJCEAlgorithm.PBEWithMD5AndDES.getAlgorithm(); } return getModel().getAlgorithm().getAlgorithm(); }
class class_name[name] begin[{] method[newAlgorithm, return_type[type[String]], modifier[protected], parameter[]] begin[{] if[binary_operation[call[.getModel, parameter[]], ==, literal[null]]] begin[{] return[call[SunJCEAlgorithm.PBEWithMD5AndDES.getAlgorithm, parameter[]]] ...
Keyword[protected] identifier[String] identifier[newAlgorithm] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getModel] operator[SEP] operator[SEP] operator[SEP] identifier[getAlgorithm] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[return] identifier...
private static boolean hasSync(Screen screen) { final Config config = screen.getConfig(); final Resolution output = config.getOutput(); return config.isWindowed() && output.getRate() > 0; }
class class_name[name] begin[{] method[hasSync, return_type[type[boolean]], modifier[private static], parameter[screen]] begin[{] local_variable[type[Config], config] local_variable[type[Resolution], output] return[binary_operation[call[config.isWindowed, parameter[]], &&, binary_operat...
Keyword[private] Keyword[static] Keyword[boolean] identifier[hasSync] operator[SEP] identifier[Screen] identifier[screen] operator[SEP] { Keyword[final] identifier[Config] identifier[config] operator[=] identifier[screen] operator[SEP] identifier[getConfig] operator[SEP] operator[SEP] operator[SEP] Keyword[final...
private boolean sameAction(String first) { StringBuilder firstSb = new StringBuilder(Strings.substringBefore(first, ".")); if (-1 == firstSb.lastIndexOf("!")) { firstSb.append("!index"); } return firstSb.toString().equals(uri); }
class class_name[name] begin[{] method[sameAction, return_type[type[boolean]], modifier[private], parameter[first]] begin[{] local_variable[type[StringBuilder], firstSb] if[binary_operation[literal[1], ==, call[firstSb.lastIndexOf, parameter[literal["!"]]]]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[sameAction] operator[SEP] identifier[String] identifier[first] operator[SEP] { identifier[StringBuilder] identifier[firstSb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[Strings] operator[SEP] identifier[substringBefore] operator[SEP] id...
@Override public List<CPDefinitionLocalization> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[findAll, return_type[type[List]], modifier[public], parameter[]] begin[{] return[call[.findAll, parameter[member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPDefinitionLocalization] operator[>] identifier[findAll] operator[SEP] operator[SEP] { Keyword[return] identifier[findAll] operator[SEP] identifier[QueryUtil] operator[SEP] identifier[ALL_POS] , identifier[QueryUtil] ope...
public static <T, R> Observable<List<R>> batchToStream(final List<T> elements, final int batchSize, final FutureSuccessHandler<T, R> producer) { return Observable.create(subscriber -> batchToStream(elements, batchSize, 0, subscriber, producer)); }
class class_name[name] begin[{] method[batchToStream, return_type[type[Observable]], modifier[public static], parameter[elements, batchSize, producer]] begin[{] return[call[Observable.create, parameter[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=elements, postfix_operators=...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[R] operator[>] identifier[Observable] operator[<] identifier[List] operator[<] identifier[R] operator[>] operator[>] identifier[batchToStream] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[T] operator[>] identifier[elements] ...
public static Date min(Date d1, Date d2) { Date result; if (d1 == null) { result = d2; } else if (d2 == null) { result = d1; } else { result = (d1.compareTo(d2) < 0) ? d1 : d2; } return result; ...
class class_name[name] begin[{] method[min, return_type[type[Date]], modifier[public static], parameter[d1, d2]] begin[{] local_variable[type[Date], result] if[binary_operation[member[.d1], ==, literal[null]]] begin[{] assign[member[.result], member[.d2]] ...
Keyword[public] Keyword[static] identifier[Date] identifier[min] operator[SEP] identifier[Date] identifier[d1] , identifier[Date] identifier[d2] operator[SEP] { identifier[Date] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[d1] operator[==] Other[null] operator[SEP] { identifi...
public void mTokens() throws RecognitionException { // org/javaruntype/type/parser/Type.g:1:8: ( ARRAY | UNKNOWN | BEGINTYPEPARAM | ENDTYPEPARAM | COMMA | EXTENDS | SUPER | EXT | SUP | CLASSNAME | WS ) int alt3=11; alt3 = dfa3.predict(input); switch (alt3) { case 1 : ...
class class_name[name] begin[{] method[mTokens, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], alt3] assign[member[.alt3], call[dfa3.predict, parameter[member[.input]]]] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operat...
Keyword[public] Keyword[void] identifier[mTokens] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[int] identifier[alt3] operator[=] Other[11] operator[SEP] identifier[alt3] operator[=] identifier[dfa3] operator[SEP] identifier[predict] operator[SEP] identifier[input] operat...
public boolean renew(final String appName, final String id, final boolean isReplication) { if (super.renew(appName, id, isReplication)) { replicateToPeers(Action.Heartbeat, appName, id, null, null, isReplication); return true; } return false; }
class class_name[name] begin[{] method[renew, return_type[type[boolean]], modifier[public], parameter[appName, id, isReplication]] begin[{] if[SuperMethodInvocation(arguments=[MemberReference(member=appName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(m...
Keyword[public] Keyword[boolean] identifier[renew] operator[SEP] Keyword[final] identifier[String] identifier[appName] , Keyword[final] identifier[String] identifier[id] , Keyword[final] Keyword[boolean] identifier[isReplication] operator[SEP] { Keyword[if] operator[SEP] Keyword[super] operator[SEP] identifier...
public static void initCredentials(Job job) { Configuration configuration = job.getConfiguration(); Settings settings = HadoopSettingsManager.loadFrom(configuration); InitializationUtils.setUserProviderIfNotSet(settings, HadoopUserProvider.class, LOG); UserProvider userProvider = UserPro...
class class_name[name] begin[{] method[initCredentials, return_type[void], modifier[public static], parameter[job]] begin[{] local_variable[type[Configuration], configuration] local_variable[type[Settings], settings] call[InitializationUtils.setUserProviderIfNotSet, parameter[me...
Keyword[public] Keyword[static] Keyword[void] identifier[initCredentials] operator[SEP] identifier[Job] identifier[job] operator[SEP] { identifier[Configuration] identifier[configuration] operator[=] identifier[job] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[S...
@Override public <T> T getUtility(AdWordsSession session, Class<T> utilityClass) { T originalUtilityObject = adWordsServices.getUtility(session, utilityClass); return getProxyObject(originalUtilityObject, session, utilityClass, true); }
class class_name[name] begin[{] method[getUtility, return_type[type[T]], modifier[public], parameter[session, utilityClass]] begin[{] local_variable[type[T], originalUtilityObject] return[call[.getProxyObject, parameter[member[.originalUtilityObject], member[.session], member[.utilityClass], li...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[getUtility] operator[SEP] identifier[AdWordsSession] identifier[session] , identifier[Class] operator[<] identifier[T] operator[>] identifier[utilityClass] operator[SEP] { identifier[T] identifier[o...
private boolean canAlterRelation(Collection<String> identifiers) throws GuacamoleException { // System administrators may alter any relations if (getCurrentUser().getUser().isAdministrator()) return true; // Non-admin users require UPDATE permission on the parent object...
class class_name[name] begin[{] method[canAlterRelation, return_type[type[boolean]], modifier[private], parameter[identifiers]] begin[{] if[call[.getCurrentUser, parameter[]]] begin[{] return[literal[true]] else begin[{] None end[}] if[call[.getParentObjectEffect...
Keyword[private] Keyword[boolean] identifier[canAlterRelation] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[identifiers] operator[SEP] Keyword[throws] identifier[GuacamoleException] { Keyword[if] operator[SEP] identifier[getCurrentUser] operator[SEP] operator[SEP] op...
public Tag[] inlineTags() { if (inlineTags == null) { inlineTags = Comment.getInlineTags(holder, text); } return inlineTags; }
class class_name[name] begin[{] method[inlineTags, return_type[type[Tag]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.inlineTags], ==, literal[null]]] begin[{] assign[member[.inlineTags], call[Comment.getInlineTags, parameter[member[.holder], mem...
Keyword[public] identifier[Tag] operator[SEP] operator[SEP] identifier[inlineTags] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[inlineTags] operator[==] Other[null] operator[SEP] { identifier[inlineTags] operator[=] identifier[Comment] operator[SEP] identifier[getInlineTags] oper...
public static GrayU8 edge4(GrayU8 input, GrayU8 output, boolean outsideZero ) { output = InputSanityCheck.checkDeclare(input, output); if( BoofConcurrency.USE_CONCURRENT ) { ImplBinaryInnerOps_MT.edge4(input, output); } else { ImplBinaryInnerOps.edge4(input, output); } ImplBinaryBorderOps.edge4(input, ...
class class_name[name] begin[{] method[edge4, return_type[type[GrayU8]], modifier[public static], parameter[input, output, outsideZero]] begin[{] assign[member[.output], call[InputSanityCheck.checkDeclare, parameter[member[.input], member[.output]]]] if[member[BoofConcurrency.US...
Keyword[public] Keyword[static] identifier[GrayU8] identifier[edge4] operator[SEP] identifier[GrayU8] identifier[input] , identifier[GrayU8] identifier[output] , Keyword[boolean] identifier[outsideZero] operator[SEP] { identifier[output] operator[=] identifier[InputSanityCheck] operator[SEP] identifier[checkDe...
public static <P extends ParaObject> P fromJSON(String json) { if (StringUtils.isBlank(json)) { return null; } try { Map<String, Object> map = getJsonReader(Map.class).readValue(json); return setAnnotatedFields(map); } catch (Exception e) { logger.error(null, e); } return null; }
class class_name[name] begin[{] method[fromJSON, return_type[type[P]], modifier[public static], parameter[json]] begin[{] if[call[StringUtils.isBlank, parameter[member[.json]]]] begin[{] return[literal[null]] else begin[{] None end[}] TryStatement(block=[Loca...
Keyword[public] Keyword[static] operator[<] identifier[P] Keyword[extends] identifier[ParaObject] operator[>] identifier[P] identifier[fromJSON] operator[SEP] identifier[String] identifier[json] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] iden...
@Benchmark @OperationsPerInvocation(20) public void benchmarkByteBuddy(Blackhole blackHole) { blackHole.consume(byteBuddyInstance.method(booleanValue)); blackHole.consume(byteBuddyInstance.method(byteValue)); blackHole.consume(byteBuddyInstance.method(shortValue)); blackHole.cons...
class class_name[name] begin[{] method[benchmarkByteBuddy, return_type[void], modifier[public], parameter[blackHole]] begin[{] call[blackHole.consume, parameter[call[byteBuddyInstance.method, parameter[member[.booleanValue]]]]] call[blackHole.consume, parameter[call[byteBuddyIns...
annotation[@] identifier[Benchmark] annotation[@] identifier[OperationsPerInvocation] operator[SEP] Other[20] operator[SEP] Keyword[public] Keyword[void] identifier[benchmarkByteBuddy] operator[SEP] identifier[Blackhole] identifier[blackHole] operator[SEP] { identifier[blackHole] operator[SEP] identifier[consume...
public Acl getDefaultBucketAcl(String bucketName) { // [START getDefaultBucketAcl] Acl acl = storage.getDefaultAcl(bucketName, User.ofAllAuthenticatedUsers()); // [END getDefaultBucketAcl] return acl; }
class class_name[name] begin[{] method[getDefaultBucketAcl, return_type[type[Acl]], modifier[public], parameter[bucketName]] begin[{] local_variable[type[Acl], acl] return[member[.acl]] end[}] END[}]
Keyword[public] identifier[Acl] identifier[getDefaultBucketAcl] operator[SEP] identifier[String] identifier[bucketName] operator[SEP] { identifier[Acl] identifier[acl] operator[=] identifier[storage] operator[SEP] identifier[getDefaultAcl] operator[SEP] identifier[bucketName] , identifier[User] operator[SEP] id...
public void analyze() { for (String key : importSource.getKeys()) { Change change = createChange(key); setConflictAttributes(change); if (change.getType() != Change.TYPE_NO_CHANGE) { if (change.isConflicting()) { conflictingChanges.add(change); } else { nonConf...
class class_name[name] begin[{] method[analyze, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRefer...
Keyword[public] Keyword[void] identifier[analyze] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[key] operator[:] identifier[importSource] operator[SEP] identifier[getKeys] operator[SEP] operator[SEP] operator[SEP] { identifier[Change] identifier[change] operat...
@Override public void deploy(InputStream inputStream) throws IOException { final List<? extends HasMetadata> entities = deploy("application", inputStream); if (this.applicationName == null) { Optional<String> deploymentConfig = entities.stream() .filter(hm -> hm instanc...
class class_name[name] begin[{] method[deploy, return_type[void], modifier[public], parameter[inputStream]] begin[{] local_variable[type[List], entities] if[binary_operation[THIS[member[None.applicationName]], ==, literal[null]]] begin[{] local_variable[type[Optional], deplo...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[deploy] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[HasMetadata] operator[>] id...
protected HttpServletResponse getCurrentResponse() { final HttpServletResponse response = httpService.getCurrentResponse(); if (response == null) { throw new IllegalStateException("No HttpServletResponse bound to current thread"); } return response; }
class class_name[name] begin[{] method[getCurrentResponse, return_type[type[HttpServletResponse]], modifier[protected], parameter[]] begin[{] local_variable[type[HttpServletResponse], response] if[binary_operation[member[.response], ==, literal[null]]] begin[{] ThrowStatemen...
Keyword[protected] identifier[HttpServletResponse] identifier[getCurrentResponse] operator[SEP] operator[SEP] { Keyword[final] identifier[HttpServletResponse] identifier[response] operator[=] identifier[httpService] operator[SEP] identifier[getCurrentResponse] operator[SEP] operator[SEP] operator[SEP] Keyword[if...
@Override public boolean ready () throws IOException { _ensureOpen (); /* * If newline needs to be skipped and the next char to be read is a newline * character, then just skip it right away. */ if (m_bSkipLF) { /* * Note that in.ready() will return true if and only if t...
class class_name[name] begin[{] method[ready, return_type[type[boolean]], modifier[public], parameter[]] begin[{] call[._ensureOpen, parameter[]] if[member[.m_bSkipLF]] begin[{] if[binary_operation[binary_operation[member[.m_nNextCharIndex], >=, member[.m...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[ready] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[_ensureOpen] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[m_bSkipLF] operator[SEP] { Keyword[if] oper...
@SuppressWarnings({"unchecked"}) public OutputCollector getCollector(String namedOutput, Reporter reporter) throws IOException { return getCollector(namedOutput, null, reporter); }
class class_name[name] begin[{] method[getCollector, return_type[type[OutputCollector]], modifier[public], parameter[namedOutput, reporter]] begin[{] return[call[.getCollector, parameter[member[.namedOutput], literal[null], member[.reporter]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] } operator[SEP] Keyword[public] identifier[OutputCollector] identifier[getCollector] operator[SEP] identifier[String] identifier[namedOutput] , identifier[Reporter] identifier[reporter] operator[SEP] Keyword[throws] identifier[IOExcep...
public static final <T extends Calendar> Function<T, LocalTime> calendarToLocalTime(Chronology chronology) { return new CalendarToLocalTime<T>(chronology); }
class class_name[name] begin[{] method[calendarToLocalTime, return_type[type[Function]], modifier[final public static], parameter[chronology]] begin[{] return[ClassCreator(arguments=[MemberReference(member=chronology, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, con...
Keyword[public] Keyword[static] Keyword[final] operator[<] identifier[T] Keyword[extends] identifier[Calendar] operator[>] identifier[Function] operator[<] identifier[T] , identifier[LocalTime] operator[>] identifier[calendarToLocalTime] operator[SEP] identifier[Chronology] identifier[chronology] operator[SEP] { ...
public String getDigitPattern() { String pattern = Optional.fromNullable(getParameter(SignalParameters.DIGIT_PATTERN.symbol())).or(""); if (!pattern.isEmpty()) { // Replace pattern to comply with MEGACO digitMap pattern = pattern.replace(".", "*").replace("x", "\\d"); } ...
class class_name[name] begin[{] method[getDigitPattern, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], pattern] if[call[pattern.isEmpty, parameter[]]] begin[{] assign[member[.pattern], call[pattern.replace, paramet...
Keyword[public] identifier[String] identifier[getDigitPattern] operator[SEP] operator[SEP] { identifier[String] identifier[pattern] operator[=] identifier[Optional] operator[SEP] identifier[fromNullable] operator[SEP] identifier[getParameter] operator[SEP] identifier[SignalParameters] operator[SEP] identifier[DI...
public static void showToolbar( final CmsToolbar toolbar, final boolean show, final CmsStyleVariable toolbarVisibility) { if (show) { toolbarVisibility.setValue(null); } else { toolbarVisibility.setValue(I_CmsLayoutBundle.INSTANCE.toolbarCss().toolbarHide...
class class_name[name] begin[{] method[showToolbar, return_type[void], modifier[public static], parameter[toolbar, show, toolbarVisibility]] begin[{] if[member[.show]] begin[{] call[toolbarVisibility.setValue, parameter[literal[null]]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[showToolbar] operator[SEP] Keyword[final] identifier[CmsToolbar] identifier[toolbar] , Keyword[final] Keyword[boolean] identifier[show] , Keyword[final] identifier[CmsStyleVariable] identifier[toolbarVisibility] operator[SEP] { Keyword[if] operator[SEP] ...
protected boolean generateSarlMembers(List<? extends XtendMember> members, ExtraLanguageAppendable it, IExtraLanguageGeneratorContext context) { for (final XtendMember member : members) { if (!(member instanceof SarlConstructor)) { if (context.getCancelIndicator().isCanceled()) { return false; } ...
class class_name[name] begin[{] method[generateSarlMembers, return_type[type[boolean]], modifier[protected], parameter[members, it, context]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=member, postfix_operators...
Keyword[protected] Keyword[boolean] identifier[generateSarlMembers] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[XtendMember] operator[>] identifier[members] , identifier[ExtraLanguageAppendable] identifier[it] , identifier[IExtraLanguageGeneratorContext] identifier[context] oper...
public boolean explicitlySupportsMimeType (@Nullable final IMimeType aMimeType) { if (aMimeType == null) return false; final QValue aQuality = m_aMap.get (aMimeType); return aQuality != null && aQuality.isAboveMinimumQuality (); }
class class_name[name] begin[{] method[explicitlySupportsMimeType, return_type[type[boolean]], modifier[public], parameter[aMimeType]] begin[{] if[binary_operation[member[.aMimeType], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] local_var...
Keyword[public] Keyword[boolean] identifier[explicitlySupportsMimeType] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[IMimeType] identifier[aMimeType] operator[SEP] { Keyword[if] operator[SEP] identifier[aMimeType] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolea...
@Deprecated public Blade get(@NonNull String path, @NonNull RouteHandler0 handler) { this.routeMatcher.addRoute(path, handler, HttpMethod.GET); return this; }
class class_name[name] begin[{] method[get, return_type[type[Blade]], modifier[public], parameter[path, handler]] begin[{] THIS[member[None.routeMatcher]call[None.addRoute, parameter[member[.path], member[.handler], member[HttpMethod.GET]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Deprecated] Keyword[public] identifier[Blade] identifier[get] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[path] , annotation[@] identifier[NonNull] identifier[RouteHandler0] identifier[handler] operator[SEP] { Keyword[this] operator[SEP] identifier[rout...
public static <T extends JsonBuilder> T create(Class<T> clz, String payload) { T ret = create(clz); ret.load(payload); return ret; }
class class_name[name] begin[{] method[create, return_type[type[T]], modifier[public static], parameter[clz, payload]] begin[{] local_variable[type[T], ret] call[ret.load, parameter[member[.payload]]] return[member[.ret]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[JsonBuilder] operator[>] identifier[T] identifier[create] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clz] , identifier[String] identifier[payload] operator[SEP] { identifier[T] identifier[...
public static Set<BioPAXElement> runNeighborhood( Set<BioPAXElement> sourceSet, Model model, int limit, Direction direction, Filter... filters) { Graph graph; if (model.getLevel() == BioPAXLevel.L3) { if (direction == Direction.UNDIRECTED) { graph = new GraphL3Undirected(model, filters); ...
class class_name[name] begin[{] method[runNeighborhood, return_type[type[Set]], modifier[public static], parameter[sourceSet, model, limit, direction, filters]] begin[{] local_variable[type[Graph], graph] if[binary_operation[call[model.getLevel, parameter[]], ==, member[BioPAXLevel.L3]]...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[BioPAXElement] operator[>] identifier[runNeighborhood] operator[SEP] identifier[Set] operator[<] identifier[BioPAXElement] operator[>] identifier[sourceSet] , identifier[Model] identifier[model] , Keyword[int] identifier[limit] , identifier[Direc...
public static final ConfirmOptions newOptions(final String message) { ConfirmOptions options = JavaScriptObject.createObject().cast(); options.setMessage(message); options.setCallback(ConfirmCallback.DEFAULT_CONFIRM_CALLBACK); return options; }
class class_name[name] begin[{] method[newOptions, return_type[type[ConfirmOptions]], modifier[final public static], parameter[message]] begin[{] local_variable[type[ConfirmOptions], options] call[options.setMessage, parameter[member[.message]]] call[options.setCallback,...
Keyword[public] Keyword[static] Keyword[final] identifier[ConfirmOptions] identifier[newOptions] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] { identifier[ConfirmOptions] identifier[options] operator[=] identifier[JavaScriptObject] operator[SEP] identifier[createObject] opera...
public AddTags addTags(String photoId, List<String> tags) throws JinxException { JinxUtils.validateParams(photoId, tags); Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.photos.addTags"); params.put("photo_id", photoId); StringBuilder sb = new StringBuilder(); for (Str...
class class_name[name] begin[{] method[addTags, return_type[type[AddTags]], modifier[public], parameter[photoId, tags]] begin[{] call[JinxUtils.validateParams, parameter[member[.photoId], member[.tags]]] local_variable[type[Map], params] call[params.put, parameter[litera...
Keyword[public] identifier[AddTags] identifier[addTags] operator[SEP] identifier[String] identifier[photoId] , identifier[List] operator[<] identifier[String] operator[>] identifier[tags] operator[SEP] Keyword[throws] identifier[JinxException] { identifier[JinxUtils] operator[SEP] identifier[validateParams] ope...
public static String getFileExtension(final String path) { if (path == null) { return null; } int extIndex = path.lastIndexOf('.'); if (extIndex == -1) { return null; } int folderIndex = getFileSeparatorIndex(path); if (folderIndex > extInd...
class class_name[name] begin[{] method[getFileExtension, return_type[type[String]], modifier[public static], parameter[path]] begin[{] if[binary_operation[member[.path], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variab...
Keyword[public] Keyword[static] identifier[String] identifier[getFileExtension] operator[SEP] Keyword[final] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } ...
protected Key valueToKey(Value value) { if (value instanceof Resource) { return pFactory.newKey(convertResourceToQualifiedName((Resource) value), name.PROV_QUALIFIED_NAME); } else if (value instanceof Literal) { Literal lit=(Literal) value; QualifiedName type; Qualified...
class class_name[name] begin[{] method[valueToKey, return_type[type[Key]], modifier[protected], parameter[value]] begin[{] if[binary_operation[member[.value], instanceof, type[Resource]]] begin[{] return[call[pFactory.newKey, parameter[call[.convertResourceToQualifiedName, parameter...
Keyword[protected] identifier[Key] identifier[valueToKey] operator[SEP] identifier[Value] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[Resource] operator[SEP] { Keyword[return] identifier[pFactory] operator[SEP] identifier[newKey] operato...
public int getActiveQuickWindowId() { Response response = executeMessage(DesktopWindowManagerMessage.GET_ACTIVE_WINDOW, null); DesktopWindowID.Builder builder = DesktopWindowID.newBuilder(); buildPayload(response, builder); activeWindowId = builder.build().getWindowID(); return activeWindowId; }
class class_name[name] begin[{] method[getActiveQuickWindowId, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[Response], response] local_variable[type[DesktopWindowID], builder] call[.buildPayload, parameter[member[.response], member[.builder...
Keyword[public] Keyword[int] identifier[getActiveQuickWindowId] operator[SEP] operator[SEP] { identifier[Response] identifier[response] operator[=] identifier[executeMessage] operator[SEP] identifier[DesktopWindowManagerMessage] operator[SEP] identifier[GET_ACTIVE_WINDOW] , Other[null] operator[SEP] operator[SE...
public void updateRow(int i, double c, Vec b) { if(b.length() != this.cols()) throw new ArithmeticException("vector is not of the same column length"); if (b.isSparse()) for (IndexValue iv : b) this.increment(i, iv.getIndex(), c * iv.getValue()); else ...
class class_name[name] begin[{] method[updateRow, return_type[void], modifier[public], parameter[i, c, b]] begin[{] if[binary_operation[call[b.length, parameter[]], !=, THIS[call[None.cols, parameter[]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
Keyword[public] Keyword[void] identifier[updateRow] operator[SEP] Keyword[int] identifier[i] , Keyword[double] identifier[c] , identifier[Vec] identifier[b] operator[SEP] { Keyword[if] operator[SEP] identifier[b] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[!=] Keyword[this] operator[S...
public static RepositorySetup forUri(String uri) { MongoClientURI clientUri = new MongoClientURI(uri); @Nullable String databaseName = clientUri.getDatabase(); checkArgument(databaseName != null, "URI should contain database path segment"); return builder() .database(newMongoClient(clientUri).g...
class class_name[name] begin[{] method[forUri, return_type[type[RepositorySetup]], modifier[public static], parameter[uri]] begin[{] local_variable[type[MongoClientURI], clientUri] local_variable[type[String], databaseName] call[.checkArgument, parameter[binary_operation[member[...
Keyword[public] Keyword[static] identifier[RepositorySetup] identifier[forUri] operator[SEP] identifier[String] identifier[uri] operator[SEP] { identifier[MongoClientURI] identifier[clientUri] operator[=] Keyword[new] identifier[MongoClientURI] operator[SEP] identifier[uri] operator[SEP] operator[SEP] annotation...
public static BooleanPath booleanPath(Path<?> parent, String property) { return new BooleanPath(PathMetadataFactory.forProperty(parent, property)); }
class class_name[name] begin[{] method[booleanPath, return_type[type[BooleanPath]], modifier[public static], parameter[parent, property]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] identifier[BooleanPath] identifier[booleanPath] operator[SEP] identifier[Path] operator[<] operator[?] operator[>] identifier[parent] , identifier[String] identifier[property] operator[SEP] { Keyword[return] Keyword[new] identifier[BooleanPath] operator[SEP] identifier[PathMetada...
@Deprecated public KeyStore loadPKCS12File(String pathToP12, String password) throws CertificateException, IOException { try (InputStream keystoreInputStream = CertUtils.toInputStream(pathToP12)) { return loadPKCS12File(keystoreInputStream, password); } }
class class_name[name] begin[{] method[loadPKCS12File, return_type[type[KeyStore]], modifier[public], parameter[pathToP12, password]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=keystoreInputStream, postfix_operators=[], prefix_operators=[]...
annotation[@] identifier[Deprecated] Keyword[public] identifier[KeyStore] identifier[loadPKCS12File] operator[SEP] identifier[String] identifier[pathToP12] , identifier[String] identifier[password] operator[SEP] Keyword[throws] identifier[CertificateException] , identifier[IOException] { Keyword[try] operator[...
public static TransTypes instance(Context context) { TransTypes instance = context.get(transTypesKey); if (instance == null) instance = new TransTypes(context); return instance; }
class class_name[name] begin[{] method[instance, return_type[type[TransTypes]], modifier[public static], parameter[context]] begin[{] local_variable[type[TransTypes], instance] if[binary_operation[member[.instance], ==, literal[null]]] begin[{] assign[member[.instance], Clas...
Keyword[public] Keyword[static] identifier[TransTypes] identifier[instance] operator[SEP] identifier[Context] identifier[context] operator[SEP] { identifier[TransTypes] identifier[instance] operator[=] identifier[context] operator[SEP] identifier[get] operator[SEP] identifier[transTypesKey] operator[SEP] operato...
public static int cusparseScsr2gebsr_bufferSize( cusparseHandle handle, int dirA, int m, int n, cusparseMatDescr descrA, Pointer csrSortedValA, Pointer csrSortedRowPtrA, Pointer csrSortedColIndA, int rowBlockDim, int colB...
class class_name[name] begin[{] method[cusparseScsr2gebsr_bufferSize, return_type[type[int]], modifier[public static], parameter[handle, dirA, m, n, descrA, csrSortedValA, csrSortedRowPtrA, csrSortedColIndA, rowBlockDim, colBlockDim, pBufferSizeInBytes]] begin[{] return[call[.checkResult, parameter[cal...
Keyword[public] Keyword[static] Keyword[int] identifier[cusparseScsr2gebsr_bufferSize] operator[SEP] identifier[cusparseHandle] identifier[handle] , Keyword[int] identifier[dirA] , Keyword[int] identifier[m] , Keyword[int] identifier[n] , identifier[cusparseMatDescr] identifier[descrA] , identifier[Pointer] identi...
private static String translateFormat(String formatString, Map<String, String> mapping, String escapeStart, String escapeEnd, String targetEscapeStart, String targetEscapeEnd) { int beginIndex = 0; int i = 0; char lastChar = 0; char currentChar = 0; String resultString = ""; char esc1 = escapeStart.charAt(0...
class class_name[name] begin[{] method[translateFormat, return_type[type[String]], modifier[private static], parameter[formatString, mapping, escapeStart, escapeEnd, targetEscapeStart, targetEscapeEnd]] begin[{] local_variable[type[int], beginIndex] local_variable[type[int], i] local_va...
Keyword[private] Keyword[static] identifier[String] identifier[translateFormat] operator[SEP] identifier[String] identifier[formatString] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[mapping] , identifier[String] identifier[escapeStart] , identifier[String] identifier...
public boolean pathExists(String path) { String[] pathElements = path.split("/"); ZConfig current = this; for (String pathElem : pathElements) { if (pathElem.isEmpty()) { continue; } current = current.children.get(pathElem); if ...
class class_name[name] begin[{] method[pathExists, return_type[type[boolean]], modifier[public], parameter[path]] begin[{] local_variable[type[String], pathElements] local_variable[type[ZConfig], current] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Met...
Keyword[public] Keyword[boolean] identifier[pathExists] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[pathElements] operator[=] identifier[path] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] ...
@Override public void release() throws IOException { if (includeLevel.in != null && end != cursor) { if (end % size < cursor % size) { buffer2.position(0); buffer2.limit((int)(end % size)); buffer1.position((int)(cursor % si...
class class_name[name] begin[{] method[release, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[includeLevel.in], !=, literal[null]], &&, binary_operation[member[.end], !=, member[.cursor]]]] begin[{] if[binary_opera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[release] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[includeLevel] operator[SEP] identifier[in] operator[!=] Other[null] operator[&&] identifier[end] operator[!=] identifier[...
private static DataTable2D bivariateMatrix(Dataframe dataSet, BivariateType type) { DataTable2D bivariateMatrix = new DataTable2D(); //extract values of first variable Map<Object, TypeInference.DataType> columnTypes = dataSet.getXDataTypes(); Object[] allVariables = columnTypes....
class class_name[name] begin[{] method[bivariateMatrix, return_type[type[DataTable2D]], modifier[private static], parameter[dataSet, type]] begin[{] local_variable[type[DataTable2D], bivariateMatrix] local_variable[type[Map], columnTypes] local_variable[type[Object], allVariables] ...
Keyword[private] Keyword[static] identifier[DataTable2D] identifier[bivariateMatrix] operator[SEP] identifier[Dataframe] identifier[dataSet] , identifier[BivariateType] identifier[type] operator[SEP] { identifier[DataTable2D] identifier[bivariateMatrix] operator[=] Keyword[new] identifier[DataTable2D] operator[...
public void buildClassConstantSummary(XMLNode node, Content summariesTree) throws DocletException { SortedSet<TypeElement> classes = !currentPackage.isUnnamed() ? utils.getAllClasses(currentPackage) : configuration.typeElementCatalog.allUnnamedClasses(); Conte...
class class_name[name] begin[{] method[buildClassConstantSummary, return_type[void], modifier[public], parameter[node, summariesTree]] begin[{] local_variable[type[SortedSet], classes] local_variable[type[Content], classConstantTree] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[public] Keyword[void] identifier[buildClassConstantSummary] operator[SEP] identifier[XMLNode] identifier[node] , identifier[Content] identifier[summariesTree] operator[SEP] Keyword[throws] identifier[DocletException] { identifier[SortedSet] operator[<] identifier[TypeElement] operator[>] identifier[clas...
public static DatatypeFactory newInstance() throws DatatypeConfigurationException { try { return (DatatypeFactory) FactoryFinder.find( /* The default property name according to the JAXP spec */ DATATYPEFACTORY_PROPERTY, /* The fallb...
class class_name[name] begin[{] method[newInstance, return_type[type[DatatypeFactory]], modifier[public static], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=DATATYPEFACTORY_PROPERTY, postfix_operators=[], prefix...
Keyword[public] Keyword[static] identifier[DatatypeFactory] identifier[newInstance] operator[SEP] operator[SEP] Keyword[throws] identifier[DatatypeConfigurationException] { Keyword[try] { Keyword[return] operator[SEP] identifier[DatatypeFactory] operator[SEP] identifier[FactoryFinder] operator[SEP] id...
private byte[] transform(byte[] classfileBuffer, InstrumentationActions instrumentationActions) { ClassReader classReader = new ClassReader(classfileBuffer); ClassWriter classWriter = new ClassWriter(classReader, ClassWriter.COMPUTE_FRAMES); ClassVisitor localVariableStateEmitterTestClassVisitor = new StateTracki...
class class_name[name] begin[{] method[transform, return_type[type[byte]], modifier[private], parameter[classfileBuffer, instrumentationActions]] begin[{] local_variable[type[ClassReader], classReader] local_variable[type[ClassWriter], classWriter] local_variable[type[ClassVisitor], loc...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[transform] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[classfileBuffer] , identifier[InstrumentationActions] identifier[instrumentationActions] operator[SEP] { identifier[ClassReader] identifier[classReader] operator[=]...
public String writeXML( ) { XMLOutputter fmt = new XMLOutputter( Format.getPrettyFormat()); return fmt.outputString( makeDocument()); }
class class_name[name] begin[{] method[writeXML, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[XMLOutputter], fmt] return[call[fmt.outputString, parameter[call[.makeDocument, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[writeXML] operator[SEP] operator[SEP] { identifier[XMLOutputter] identifier[fmt] operator[=] Keyword[new] identifier[XMLOutputter] operator[SEP] identifier[Format] operator[SEP] identifier[getPrettyFormat] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keywo...
public ListPlatformApplicationsResult withPlatformApplications(PlatformApplication... platformApplications) { if (this.platformApplications == null) { setPlatformApplications(new com.amazonaws.internal.SdkInternalList<PlatformApplication>(platformApplications.length)); } for (Platfor...
class class_name[name] begin[{] method[withPlatformApplications, return_type[type[ListPlatformApplicationsResult]], modifier[public], parameter[platformApplications]] begin[{] if[binary_operation[THIS[member[None.platformApplications]], ==, literal[null]]] begin[{] call[...
Keyword[public] identifier[ListPlatformApplicationsResult] identifier[withPlatformApplications] operator[SEP] identifier[PlatformApplication] operator[...] identifier[platformApplications] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[platformApplications] operator[==] Other[nu...
public void marshall(BusinessCallingSettings businessCallingSettings, ProtocolMarshaller protocolMarshaller) { if (businessCallingSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(businessCa...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[businessCallingSettings, protocolMarshaller]] begin[{] if[binary_operation[member[.businessCallingSettings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BusinessCallingSettings] identifier[businessCallingSettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[businessCallingSettings] operator[==] Other[null] operator...
public void marshall(BatchListIncomingTypedLinks batchListIncomingTypedLinks, ProtocolMarshaller protocolMarshaller) { if (batchListIncomingTypedLinks == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[batchListIncomingTypedLinks, protocolMarshaller]] begin[{] if[binary_operation[member[.batchListIncomingTypedLinks], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BatchListIncomingTypedLinks] identifier[batchListIncomingTypedLinks] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[batchListIncomingTypedLinks] operator[==] Other[nu...
public boolean shouldIgnore(MaterialConfig materialConfig, String name) { return materialConfig.matches(FilenameUtils.separatorsToUnix(name), processedPattern()); }
class class_name[name] begin[{] method[shouldIgnore, return_type[type[boolean]], modifier[public], parameter[materialConfig, name]] begin[{] return[call[materialConfig.matches, parameter[call[FilenameUtils.separatorsToUnix, parameter[member[.name]]], call[.processedPattern, parameter[]]]]] end[}] E...
Keyword[public] Keyword[boolean] identifier[shouldIgnore] operator[SEP] identifier[MaterialConfig] identifier[materialConfig] , identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[materialConfig] operator[SEP] identifier[matches] operator[SEP] identifier[FilenameUtils] operator[SEP] i...
public static double shinglerSimilarity(String text1, String text2, int w) { preprocessDocument(text1); preprocessDocument(text2); NgramsExtractor.Parameters parameters = new NgramsExtractor.Parameters(); parameters.setMaxCombinations(w); parameters.setMaxDistanceBetweenKwds(0);...
class class_name[name] begin[{] method[shinglerSimilarity, return_type[type[double]], modifier[public static], parameter[text1, text2, w]] begin[{] call[.preprocessDocument, parameter[member[.text1]]] call[.preprocessDocument, parameter[member[.text2]]] local_variable[ty...
Keyword[public] Keyword[static] Keyword[double] identifier[shinglerSimilarity] operator[SEP] identifier[String] identifier[text1] , identifier[String] identifier[text2] , Keyword[int] identifier[w] operator[SEP] { identifier[preprocessDocument] operator[SEP] identifier[text1] operator[SEP] operator[SEP] identi...
private void validate(WorkflowDef def) { Preconditions.checkNotNull(def, "WorkflowDef object cannot be null"); Preconditions.checkNotNull(def.getName(), "WorkflowDef name cannot be null"); }
class class_name[name] begin[{] method[validate, return_type[void], modifier[private], parameter[def]] begin[{] call[Preconditions.checkNotNull, parameter[member[.def], literal["WorkflowDef object cannot be null"]]] call[Preconditions.checkNotNull, parameter[call[def.getName, pa...
Keyword[private] Keyword[void] identifier[validate] operator[SEP] identifier[WorkflowDef] identifier[def] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[def] , literal[String] operator[SEP] operator[SEP] identifier[Preconditions] operator[SEP] identifie...
public Update withErrors(ErrorDetail... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList<ErrorDetail>(errors.length)); } for (ErrorDetail ele : errors) { this.errors.add(ele); } return this; }
class class_name[name] begin[{] method[withErrors, return_type[type[Update]], modifier[public], parameter[errors]] begin[{] if[binary_operation[THIS[member[None.errors]], ==, literal[null]]] begin[{] call[.setErrors, parameter[ClassCreator(arguments=[MemberReference(memb...
Keyword[public] identifier[Update] identifier[withErrors] operator[SEP] identifier[ErrorDetail] operator[...] identifier[errors] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[errors] operator[==] Other[null] operator[SEP] { identifier[setErrors] operator[SEP] Keyword...
public static String getRid(final Object value) { Preconditions.checkNotNull(value, "Not null value required"); final String res; if (value instanceof ORID) { res = value.toString(); } else if (value instanceof OIdentifiable) { // ODocument, Vertex support ...
class class_name[name] begin[{] method[getRid, return_type[type[String]], modifier[public static], parameter[value]] begin[{] call[Preconditions.checkNotNull, parameter[member[.value], literal["Not null value required"]]] local_variable[type[String], res] if[binary_opera...
Keyword[public] Keyword[static] identifier[String] identifier[getRid] operator[SEP] Keyword[final] identifier[Object] identifier[value] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[value] , literal[String] operator[SEP] operator[SEP] Keyword[final] id...
public ServiceFuture<OperationStatus> deleteCompositeEntityRoleAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId, final ServiceCallback<OperationStatus> serviceCallback) { return ServiceFuture.fromResponse(deleteCompositeEntityRoleWithServiceResponseAsync(appId, versionId, cEntityId, roleId), serv...
class class_name[name] begin[{] method[deleteCompositeEntityRoleAsync, return_type[type[ServiceFuture]], modifier[public], parameter[appId, versionId, cEntityId, roleId, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.deleteCompositeEntityRoleWithServiceResponseAsync,...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[OperationStatus] operator[>] identifier[deleteCompositeEntityRoleAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[cEntityId] , identifier[UUID] identifier[roleId] , Keywor...
public static void pretty(final Source input, final StreamResult output) { try { // Configure transformer Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "utf-8"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARAT...
class class_name[name] begin[{] method[pretty, return_type[void], modifier[public static], parameter[input, output]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=newInstance, postfi...
Keyword[public] Keyword[static] Keyword[void] identifier[pretty] operator[SEP] Keyword[final] identifier[Source] identifier[input] , Keyword[final] identifier[StreamResult] identifier[output] operator[SEP] { Keyword[try] { identifier[Transformer] identifier[transformer] operator[=] identifier[Transfo...
@Override protected Query makeQuery(Token lower, Token upper, boolean includeLower, boolean includeUpper) { return new TokenRangeQuery(lower, upper, includeLower, includeUpper, this); }
class class_name[name] begin[{] method[makeQuery, return_type[type[Query]], modifier[protected], parameter[lower, upper, includeLower, includeUpper]] begin[{] return[ClassCreator(arguments=[MemberReference(member=lower, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferen...
annotation[@] identifier[Override] Keyword[protected] identifier[Query] identifier[makeQuery] operator[SEP] identifier[Token] identifier[lower] , identifier[Token] identifier[upper] , Keyword[boolean] identifier[includeLower] , Keyword[boolean] identifier[includeUpper] operator[SEP] { Keyword[return] Keyword[...
public static void unsubscribe(Object object) throws IllegalStateException { if (!sIsInitialized) { throw new IllegalStateException("Wings must be initialized. See Wings#init()."); } WingsInjector.getBus().unregister(object); }
class class_name[name] begin[{] method[unsubscribe, return_type[void], modifier[public static], parameter[object]] begin[{] if[member[.sIsInitialized]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selec...
Keyword[public] Keyword[static] Keyword[void] identifier[unsubscribe] operator[SEP] identifier[Object] identifier[object] operator[SEP] Keyword[throws] identifier[IllegalStateException] { Keyword[if] operator[SEP] operator[!] identifier[sIsInitialized] operator[SEP] { Keyword[throw] Keyword[new] ident...
public com.squareup.okhttp.Call getWarsWarIdAsync(Integer warId, String datasource, String ifNoneMatch, final ApiCallback<WarResponse> callback) throws ApiException { com.squareup.okhttp.Call call = getWarsWarIdValidateBeforeCall(warId, datasource, ifNoneMatch, callback); Type localVarRetur...
class class_name[name] begin[{] method[getWarsWarIdAsync, return_type[type[com]], modifier[public], parameter[warId, datasource, ifNoneMatch, callback]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] call[apiClient.executeAsync, parameter...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getWarsWarIdAsync] operator[SEP] identifier[Integer] identifier[warId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] , Keyword[final...
public void marshall(CreateDeploymentGroupRequest createDeploymentGroupRequest, ProtocolMarshaller protocolMarshaller) { if (createDeploymentGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createDeploymentGroupRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createDeploymentGroupRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateDeploymentGroupRequest] identifier[createDeploymentGroupRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createDeploymentGroupRequest] operator[==] Other...
public void setActiveProfiles(String... profiles) { if (profiles == null) { throw new IllegalArgumentException("profiles must not be null"); } synchronized (activeProfiles) { activeProfiles.clear(); for (String profile : profiles) { validatePro...
class class_name[name] begin[{] method[setActiveProfiles, return_type[void], modifier[public], parameter[profiles]] begin[{] if[binary_operation[member[.profiles], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_ope...
Keyword[public] Keyword[void] identifier[setActiveProfiles] operator[SEP] identifier[String] operator[...] identifier[profiles] operator[SEP] { Keyword[if] operator[SEP] identifier[profiles] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] opera...
public static <E extends Exception> DataSet loadCSV(final InputStream csvInputStream, final Collection<String> selectColumnNames, final long offset, final long count, final Try.Predicate<String[], E> filter) throws UncheckedIOException, E { final Reader csvReader = new InputStreamReader(csvInputSt...
class class_name[name] begin[{] method[loadCSV, return_type[type[DataSet]], modifier[public static], parameter[csvInputStream, selectColumnNames, offset, count, filter]] begin[{] local_variable[type[Reader], csvReader] return[call[.loadCSV, parameter[member[.csvReader], member[.selectColumnName...
Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Exception] operator[>] identifier[DataSet] identifier[loadCSV] operator[SEP] Keyword[final] identifier[InputStream] identifier[csvInputStream] , Keyword[final] identifier[Collection] operator[<] identifier[String] operator[>] identif...
public NodeInfo getNode(String name) { final URI uri = uriWithPath("./nodes/" + encodePathSegment(name)); return this.rt.getForObject(uri, NodeInfo.class); }
class class_name[name] begin[{] method[getNode, return_type[type[NodeInfo]], modifier[public], parameter[name]] begin[{] local_variable[type[URI], uri] return[THIS[member[None.rt]call[None.getForObject, parameter[member[.uri], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] identifier[NodeInfo] identifier[getNode] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[final] identifier[URI] identifier[uri] operator[=] identifier[uriWithPath] operator[SEP] literal[String] operator[+] identifier[encodePathSegment] operator[SEP] identifier[name] oper...
public Runnable function() { return new Runnable() { @Override public void run() { try { method.invoke(scheduled); } catch (IllegalAccessException e) { WisdomTaskScheduler.getLogger().error("Error while accessing to ...
class class_name[name] begin[{] method[function, return_type[type[Runnable]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[TryStatement(block=[StatementExpression(expression=MethodInvocatio...
Keyword[public] identifier[Runnable] identifier[function] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[...
public final ListApplicationsPagedResponse listApplications(ProfileName parent) { ListApplicationsRequest request = ListApplicationsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listApplications(request); }
class class_name[name] begin[{] method[listApplications, return_type[type[ListApplicationsPagedResponse]], modifier[final public], parameter[parent]] begin[{] local_variable[type[ListApplicationsRequest], request] return[call[.listApplications, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[ListApplicationsPagedResponse] identifier[listApplications] operator[SEP] identifier[ProfileName] identifier[parent] operator[SEP] { identifier[ListApplicationsRequest] identifier[request] operator[=] identifier[ListApplicationsRequest] operator[SEP] identifier[newBuilde...
@ReplacedBy("com.google.common.collect.Iterators#concat() or com.google.common.collect.Iterables#concat()") public static <T> Iterator<T> getMetaIterator (Iterable<Iterator<T>> metaIterable) { return new MetaIterator<T>(metaIterable); }
class class_name[name] begin[{] method[getMetaIterator, return_type[type[Iterator]], modifier[public static], parameter[metaIterable]] begin[{] return[ClassCreator(arguments=[MemberReference(member=metaIterable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, construct...
annotation[@] identifier[ReplacedBy] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[getMetaIterator] operator[SEP] identifier[Iterable] operator[<] identifier[Iterator] operator[<] id...
public List<FaceletTaglibFunctionType<WebFacelettaglibraryDescriptor>> getAllFunction() { List<FaceletTaglibFunctionType<WebFacelettaglibraryDescriptor>> list = new ArrayList<FaceletTaglibFunctionType<WebFacelettaglibraryDescriptor>>(); List<Node> nodeList = model.get("function"); for(Node node: no...
class class_name[name] begin[{] method[getAllFunction, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], list] local_variable[type[List], nodeList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[],...
Keyword[public] identifier[List] operator[<] identifier[FaceletTaglibFunctionType] operator[<] identifier[WebFacelettaglibraryDescriptor] operator[>] operator[>] identifier[getAllFunction] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[FaceletTaglibFunctionType] operator[<] identifier[WebF...
public void join(SelectableChannel ch1, SelectableChannel ch2) throws IOException { join(ch1, ch2, (ByteChannel)ch1, (ByteChannel)ch2); }
class class_name[name] begin[{] method[join, return_type[void], modifier[public], parameter[ch1, ch2]] begin[{] call[.join, parameter[member[.ch1], member[.ch2], Cast(expression=MemberReference(member=ch1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(...
Keyword[public] Keyword[void] identifier[join] operator[SEP] identifier[SelectableChannel] identifier[ch1] , identifier[SelectableChannel] identifier[ch2] operator[SEP] Keyword[throws] identifier[IOException] { identifier[join] operator[SEP] identifier[ch1] , identifier[ch2] , operator[SEP] identifier[ByteCha...
@Override public CacheCluster createCacheCluster(CreateCacheClusterRequest request) { request = beforeClientExecution(request); return executeCreateCacheCluster(request); }
class class_name[name] begin[{] method[createCacheCluster, return_type[type[CacheCluster]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateCacheCluster, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[CacheCluster] identifier[createCacheCluster] operator[SEP] identifier[CreateCacheClusterRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
public ProxyDataSourceBuilder logSlowQueryByJUL(long thresholdTime, TimeUnit timeUnit, String loggerName) { return logSlowQueryByJUL(thresholdTime, timeUnit, null, loggerName); }
class class_name[name] begin[{] method[logSlowQueryByJUL, return_type[type[ProxyDataSourceBuilder]], modifier[public], parameter[thresholdTime, timeUnit, loggerName]] begin[{] return[call[.logSlowQueryByJUL, parameter[member[.thresholdTime], member[.timeUnit], literal[null], member[.loggerName]]]] ...
Keyword[public] identifier[ProxyDataSourceBuilder] identifier[logSlowQueryByJUL] operator[SEP] Keyword[long] identifier[thresholdTime] , identifier[TimeUnit] identifier[timeUnit] , identifier[String] identifier[loggerName] operator[SEP] { Keyword[return] identifier[logSlowQueryByJUL] operator[SEP] identifier[t...
public static boolean isClass(String name) { if(name == null) { return false; } Matcher matcher = CLASS_NAME_PATTERN.matcher(name); return matcher.find(); }
class class_name[name] begin[{] method[isClass, return_type[type[boolean]], modifier[public static], parameter[name]] begin[{] if[binary_operation[member[.name], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isClass] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[Matcher] ...
public void onComplete(final Consumer<OnComplete> fn) { this.forXOf = fn; //set - could also be called on a separate thread if (done) { //can be called again fn.accept(buildOnComplete()); } }
class class_name[name] begin[{] method[onComplete, return_type[void], modifier[public], parameter[fn]] begin[{] assign[THIS[member[None.forXOf]], member[.fn]] if[member[.done]] begin[{] call[fn.accept, parameter[call[.buildOnComplete, parameter[]]]] ...
Keyword[public] Keyword[void] identifier[onComplete] operator[SEP] Keyword[final] identifier[Consumer] operator[<] identifier[OnComplete] operator[>] identifier[fn] operator[SEP] { Keyword[this] operator[SEP] identifier[forXOf] operator[=] identifier[fn] operator[SEP] Keyword[if] operator[SEP] identifier[done] o...
public void addBinder ( final Binder binder, final boolean initializeBinder ) { if ( initializeBinder ) { initializeBinder ( binder ); } this.binders.add ( binder ); }
class class_name[name] begin[{] method[addBinder, return_type[void], modifier[public], parameter[binder, initializeBinder]] begin[{] if[member[.initializeBinder]] begin[{] call[.initializeBinder, parameter[member[.binder]]] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[addBinder] operator[SEP] Keyword[final] identifier[Binder] identifier[binder] , Keyword[final] Keyword[boolean] identifier[initializeBinder] operator[SEP] { Keyword[if] operator[SEP] identifier[initializeBinder] operator[SEP] { identifier[initializeBinder] ope...