code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private void updateList(final File filename) { try { final URI reletivePath = toURI(filename.getAbsolutePath().substring(new File(normalize(tempDir.toString())).getPath().length() + 1)); final FileInfo f = job.getOrCreateFileInfo(reletivePath); if (hasConref) { ...
class class_name[name] begin[{] method[updateList, return_type[void], modifier[private], parameter[filename]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], membe...
Keyword[private] Keyword[void] identifier[updateList] operator[SEP] Keyword[final] identifier[File] identifier[filename] operator[SEP] { Keyword[try] { Keyword[final] identifier[URI] identifier[reletivePath] operator[=] identifier[toURI] operator[SEP] identifier[filename] operator[SEP] identifier[getA...
public static void setParameterValue( PreparedStatement ps, int paramIndex, int sqlType, Object inValue) throws SQLException { setParameterValueInternal(ps, paramIndex, sqlType, null, null, inValue); }
class class_name[name] begin[{] method[setParameterValue, return_type[void], modifier[public static], parameter[ps, paramIndex, sqlType, inValue]] begin[{] call[.setParameterValueInternal, parameter[member[.ps], member[.paramIndex], member[.sqlType], literal[null], literal[null], member[.inValu...
Keyword[public] Keyword[static] Keyword[void] identifier[setParameterValue] operator[SEP] identifier[PreparedStatement] identifier[ps] , Keyword[int] identifier[paramIndex] , Keyword[int] identifier[sqlType] , identifier[Object] identifier[inValue] operator[SEP] Keyword[throws] identifier[SQLException] { iden...
private RemoteBundleContext getRemoteBundleContext() { if( m_remoteBundleContext == null ) { long startedTrying = System.currentTimeMillis(); //!! Absolutely necesary for RMI class loading to work // TODO maybe use ContextClassLoaderUtils.doWithClassLoader ...
class class_name[name] begin[{] method[getRemoteBundleContext, return_type[type[RemoteBundleContext]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.m_remoteBundleContext], ==, literal[null]]] begin[{] local_variable[type[long], startedTrying] ...
Keyword[private] identifier[RemoteBundleContext] identifier[getRemoteBundleContext] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_remoteBundleContext] operator[==] Other[null] operator[SEP] { Keyword[long] identifier[startedTrying] operator[=] identifier[System] operator[SEP] id...
@Override public Organization org() { if(org==null) { try { if((org = OrganizationFactory.obtain(env(), user()))==null) { org = Organization.NULL; } } catch (Exception e) { org = Organization.NULL; } } return org; }
class class_name[name] begin[{] method[org, return_type[type[Organization]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.org], ==, literal[null]]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Assignment(expressionl=MemberReferen...
annotation[@] identifier[Override] Keyword[public] identifier[Organization] identifier[org] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[org] operator[==] Other[null] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[SEP] identifier[org] operator[=]...
public static void scale( double alpha , DMatrixD1 a ) { // on very small matrices (2 by 2) the call to getNumElements() can slow it down // slightly compared to other libraries since it involves an extra multiplication. final int size = a.getNumElements(); for( int i = 0; i < size;...
class class_name[name] begin[{] method[scale, return_type[void], modifier[public static], parameter[alpha, a]] begin[{] local_variable[type[int], size] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=data, pos...
Keyword[public] Keyword[static] Keyword[void] identifier[scale] operator[SEP] Keyword[double] identifier[alpha] , identifier[DMatrixD1] identifier[a] operator[SEP] { Keyword[final] Keyword[int] identifier[size] operator[=] identifier[a] operator[SEP] identifier[getNumElements] operator[SEP] operator[SEP] operat...
public JsonPath param(String key, Object value) { JsonPath newP = new JsonPath(this, config); if (newP.params == null) { newP.params = new HashMap<String, Object>(); } newP.params.put(key, value); return newP; }
class class_name[name] begin[{] method[param, return_type[type[JsonPath]], modifier[public], parameter[key, value]] begin[{] local_variable[type[JsonPath], newP] if[binary_operation[member[newP.params], ==, literal[null]]] begin[{] assign[member[newP.params], Cla...
Keyword[public] identifier[JsonPath] identifier[param] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[value] operator[SEP] { identifier[JsonPath] identifier[newP] operator[=] Keyword[new] identifier[JsonPath] operator[SEP] Keyword[this] , identifier[config] operator[SEP] opera...
public void report(LintLogger logger) { if (currentPos == IMMEDIATE_POSITION) { logger.report(); } else { ListBuffer<LintLogger> loggers = loggersQueue.get(currentPos); if (loggers == null) { loggersQueue.put(currentPos, loggers = new ListBuffer<>()); ...
class class_name[name] begin[{] method[report, return_type[void], modifier[public], parameter[logger]] begin[{] if[binary_operation[member[.currentPos], ==, member[.IMMEDIATE_POSITION]]] begin[{] call[logger.report, parameter[]] else begin[{] local_va...
Keyword[public] Keyword[void] identifier[report] operator[SEP] identifier[LintLogger] identifier[logger] operator[SEP] { Keyword[if] operator[SEP] identifier[currentPos] operator[==] identifier[IMMEDIATE_POSITION] operator[SEP] { identifier[logger] operator[SEP] identifier[report] operator[SEP] operat...
private List<Coordinate> sortY(List<Coordinate> coordinates) { List<Coordinate> sorted = new ArrayList<Coordinate>(coordinates); Collections.sort(sorted, new YComparator()); return sorted; }
class class_name[name] begin[{] method[sortY, return_type[type[List]], modifier[private], parameter[coordinates]] begin[{] local_variable[type[List], sorted] call[Collections.sort, parameter[member[.sorted], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_...
Keyword[private] identifier[List] operator[<] identifier[Coordinate] operator[>] identifier[sortY] operator[SEP] identifier[List] operator[<] identifier[Coordinate] operator[>] identifier[coordinates] operator[SEP] { identifier[List] operator[<] identifier[Coordinate] operator[>] identifier[sorted] operator[=] K...
public synchronized final void initialize() throws RepositoryException { if (!initialized) { try { doInitialize(); initialized = true; } catch (RuntimeException e) { throw new RepositoryException(e); } } }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[synchronized final public], parameter[]] begin[{] if[member[.initialized]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=doInitialize, postfix_operators...
Keyword[public] Keyword[synchronized] Keyword[final] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[if] operator[SEP] operator[!] identifier[initialized] operator[SEP] { Keyword[try] { identifier[doInitialize] o...
public String getKeyByIndex(int index) { Set<String> keySet = keyIndexs.keySet(); for (String key : keySet) { int idx = keyIndexs.get(key); if (index == idx) { return key; } } return null; }
class class_name[name] begin[{] method[getKeyByIndex, return_type[type[String]], modifier[public], parameter[index]] begin[{] local_variable[type[Set], keySet] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen...
Keyword[public] identifier[String] identifier[getKeyByIndex] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[keySet] operator[=] identifier[keyIndexs] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] Keyw...
public static String postResponseAsString(String uri, Header header, HttpEntity httpEntity) { HttpPost httpPost = new HttpPost(uri); httpPost.setHeader(header); httpPost.setEntity(httpEntity); return request(httpPost); }
class class_name[name] begin[{] method[postResponseAsString, return_type[type[String]], modifier[public static], parameter[uri, header, httpEntity]] begin[{] local_variable[type[HttpPost], httpPost] call[httpPost.setHeader, parameter[member[.header]]] call[httpPost.setEn...
Keyword[public] Keyword[static] identifier[String] identifier[postResponseAsString] operator[SEP] identifier[String] identifier[uri] , identifier[Header] identifier[header] , identifier[HttpEntity] identifier[httpEntity] operator[SEP] { identifier[HttpPost] identifier[httpPost] operator[=] Keyword[new] identif...
public double scoreTB(IntDependency dependency) { return op.testOptions.depWeight * Math.log(probTB(dependency)); }
class class_name[name] begin[{] method[scoreTB, return_type[type[double]], modifier[public], parameter[dependency]] begin[{] return[binary_operation[member[op.testOptions.depWeight], *, call[Math.log, parameter[call[.probTB, parameter[member[.dependency]]]]]]] end[}] END[}]
Keyword[public] Keyword[double] identifier[scoreTB] operator[SEP] identifier[IntDependency] identifier[dependency] operator[SEP] { Keyword[return] identifier[op] operator[SEP] identifier[testOptions] operator[SEP] identifier[depWeight] operator[*] identifier[Math] operator[SEP] identifier[log] operator[SEP] iden...
public void updateComputeNodeUser(String poolId, String nodeId, String userName, String sshPublicKey) throws BatchErrorException, IOException { updateComputeNodeUser(poolId, nodeId, userName, sshPublicKey, (Iterable<BatchClientBehavior>) null); }
class class_name[name] begin[{] method[updateComputeNodeUser, return_type[void], modifier[public], parameter[poolId, nodeId, userName, sshPublicKey]] begin[{] call[.updateComputeNodeUser, parameter[member[.poolId], member[.nodeId], member[.userName], member[.sshPublicKey], Cast(expression=Liter...
Keyword[public] Keyword[void] identifier[updateComputeNodeUser] operator[SEP] identifier[String] identifier[poolId] , identifier[String] identifier[nodeId] , identifier[String] identifier[userName] , identifier[String] identifier[sshPublicKey] operator[SEP] Keyword[throws] identifier[BatchErrorException] , identifi...
public void apply(Vector x, int i1, int i2) { double temp = c * x.get(i1) + s * x.get(i2); x.set(i2, -s * x.get(i1) + c * x.get(i2)); x.set(i1, temp); }
class class_name[name] begin[{] method[apply, return_type[void], modifier[public], parameter[x, i1, i2]] begin[{] local_variable[type[double], temp] call[x.set, parameter[member[.i2], binary_operation[binary_operation[member[.s], *, call[x.get, parameter[member[.i1]]]], +, binary_operat...
Keyword[public] Keyword[void] identifier[apply] operator[SEP] identifier[Vector] identifier[x] , Keyword[int] identifier[i1] , Keyword[int] identifier[i2] operator[SEP] { Keyword[double] identifier[temp] operator[=] identifier[c] operator[*] identifier[x] operator[SEP] identifier[get] operator[SEP] identifier[...
public UnicodeSet compact() { checkFrozen(); if (len != list.length) { int[] temp = new int[len]; System.arraycopy(list, 0, temp, 0, len); list = temp; } rangeList = null; buffer = null; return this; }
class class_name[name] begin[{] method[compact, return_type[type[UnicodeSet]], modifier[public], parameter[]] begin[{] call[.checkFrozen, parameter[]] if[binary_operation[member[.len], !=, member[list.length]]] begin[{] local_variable[type[int], temp] ...
Keyword[public] identifier[UnicodeSet] identifier[compact] operator[SEP] operator[SEP] { identifier[checkFrozen] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[len] operator[!=] identifier[list] operator[SEP] identifier[length] operator[SEP] { Keyword[int] operator[SEP]...
public static <T extends java.util.Date> T setHours(final T date, final int amount) { return set(date, Calendar.HOUR_OF_DAY, amount); }
class class_name[name] begin[{] method[setHours, return_type[type[T]], modifier[public static], parameter[date, amount]] begin[{] return[call[.set, parameter[member[.date], member[Calendar.HOUR_OF_DAY], member[.amount]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] operator[>] identifier[T] identifier[setHours] operator[SEP] Keyword[final] identifier[T] identifier[date] , Keyword[final] Keyword[int] identifier[amount] operator[...
public ServiceCall<Configuration> updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions) { Validator.notNull(updateConfigurationOptions, "updateConfigurationOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters = { updateConfig...
class class_name[name] begin[{] method[updateConfiguration, return_type[type[ServiceCall]], modifier[public], parameter[updateConfigurationOptions]] begin[{] call[Validator.notNull, parameter[member[.updateConfigurationOptions], literal["updateConfigurationOptions cannot be null"]]] loc...
Keyword[public] identifier[ServiceCall] operator[<] identifier[Configuration] operator[>] identifier[updateConfiguration] operator[SEP] identifier[UpdateConfigurationOptions] identifier[updateConfigurationOptions] operator[SEP] { identifier[Validator] operator[SEP] identifier[notNull] operator[SEP] identifier[up...
public static RandomVariable getSwapAnnuity(TimeDiscretization tenor, ForwardCurveInterface forwardCurve) { return getSwapAnnuity(new RegularSchedule(tenor), forwardCurve); }
class class_name[name] begin[{] method[getSwapAnnuity, return_type[type[RandomVariable]], modifier[public static], parameter[tenor, forwardCurve]] begin[{] return[call[.getSwapAnnuity, parameter[ClassCreator(arguments=[MemberReference(member=tenor, postfix_operators=[], prefix_operators=[], qualifier=,...
Keyword[public] Keyword[static] identifier[RandomVariable] identifier[getSwapAnnuity] operator[SEP] identifier[TimeDiscretization] identifier[tenor] , identifier[ForwardCurveInterface] identifier[forwardCurve] operator[SEP] { Keyword[return] identifier[getSwapAnnuity] operator[SEP] Keyword[new] identifier[Regul...
@Override public final String unescapeXml(final String pSource) throws Exception { StringBuffer sb = new StringBuffer(); StringBuffer sbEsc = new StringBuffer(); boolean isStartEsc = false; for (int i = 0; i < pSource.length(); i++) { char ch = pSource.charAt(i); if (!isStartEsc && ch == '...
class class_name[name] begin[{] method[unescapeXml, return_type[type[String]], modifier[final public], parameter[pSource]] begin[{] local_variable[type[StringBuffer], sb] local_variable[type[StringBuffer], sbEsc] local_variable[type[boolean], isStartEsc] ForStatement(body=BlockS...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[String] identifier[unescapeXml] operator[SEP] Keyword[final] identifier[String] identifier[pSource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[StringBuffer] identifier[sb] operator[=] Keyword[new] identifier[String...
public static IParsedElement boundingParent( List<IParseTree> locations, int position, Class<? extends IParsedElement>... possibleTypes ) { IParseTree location = IParseTree.Search.getDeepestLocation( locations, position, true ); IParsedElement pe = null; if( location != null ) { pe = location.g...
class class_name[name] begin[{] method[boundingParent, return_type[type[IParsedElement]], modifier[public static], parameter[locations, position, possibleTypes]] begin[{] local_variable[type[IParseTree], location] local_variable[type[IParsedElement], pe] if[binary_operation[memb...
Keyword[public] Keyword[static] identifier[IParsedElement] identifier[boundingParent] operator[SEP] identifier[List] operator[<] identifier[IParseTree] operator[>] identifier[locations] , Keyword[int] identifier[position] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[IParsedElement] operator...
@Override public Optional<Property.Builder> getPropertyNames( TypeElement valueType, ExecutableElement method) { boolean declaredOnValueType = method.getEnclosingElement().equals(valueType); String name = method.getSimpleName().toString(); Matcher getterMatcher = GETTER_PATTERN.matcher(name); if...
class class_name[name] begin[{] method[getPropertyNames, return_type[type[Optional]], modifier[public], parameter[valueType, method]] begin[{] local_variable[type[boolean], declaredOnValueType] local_variable[type[String], name] local_variable[type[Matcher], getterMatcher] ...
annotation[@] identifier[Override] Keyword[public] identifier[Optional] operator[<] identifier[Property] operator[SEP] identifier[Builder] operator[>] identifier[getPropertyNames] operator[SEP] identifier[TypeElement] identifier[valueType] , identifier[ExecutableElement] identifier[method] operator[SEP] { Keywo...
public static Class getSuperClassGenericType(Class clazz, int index) { Type genType = clazz.getGenericSuperclass();//得到泛型父类 //如果没有实现ParameterizedType接口,即不支持泛型,直接返回Object.class if (!(genType instanceof ParameterizedType)) { return Object.class; } //返回表示此类型实际类型参...
class class_name[name] begin[{] method[getSuperClassGenericType, return_type[type[Class]], modifier[public static], parameter[clazz, index]] begin[{] local_variable[type[Type], genType] if[binary_operation[member[.genType], instanceof, type[ParameterizedType]]] begin[{] retu...
Keyword[public] Keyword[static] identifier[Class] identifier[getSuperClassGenericType] operator[SEP] identifier[Class] identifier[clazz] , Keyword[int] identifier[index] operator[SEP] { identifier[Type] identifier[genType] operator[=] identifier[clazz] operator[SEP] identifier[getGenericSuperclass] operator[SEP...
protected float[] findLimitsTwoLines() { boolean repeat = false; for (;;) { if (repeat && currentLeading == 0) return null; repeat = true; float x1[] = findLimitsOneLine(); if (lineStatus == LINE_STATUS_OFFLIMITS) return nul...
class class_name[name] begin[{] method[findLimitsTwoLines, return_type[type[float]], modifier[protected], parameter[]] begin[{] local_variable[type[boolean], repeat] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=re...
Keyword[protected] Keyword[float] operator[SEP] operator[SEP] identifier[findLimitsTwoLines] operator[SEP] operator[SEP] { Keyword[boolean] identifier[repeat] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] ide...
public void start(IStore store, int interval) { synchronized (this) { _invalInterval = interval; _timer = new Timer(true); _invalTask = new InvalidationTask(store); _timer.schedule(_invalTask, _delay * 1000, _invalInterval * 1000); } }
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[store, interval]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[._invalInterval], member[.interval]] assign[member[._timer], ClassCreator(arguments...
Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[IStore] identifier[store] , Keyword[int] identifier[interval] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { identifier[_invalInterval] operator[=] identifier[interval] operator[SEP] identifier...
public File getStylesheetPath() { String path = System.getProperty(STYLESHEET_KEY); return path == null ? null : new File(path); }
class class_name[name] begin[{] method[getStylesheetPath, return_type[type[File]], modifier[public], parameter[]] begin[{] local_variable[type[String], path] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=path, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] identifier[File] identifier[getStylesheetPath] operator[SEP] operator[SEP] { identifier[String] identifier[path] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[STYLESHEET_KEY] operator[SEP] operator[SEP] Keyword[return] identifier[path] operator[==] ...
public void renderMessage(JComponent component) { if (component instanceof JTextComponent) { ((JTextComponent)component).setText(getMessage()); } else if (component instanceof JLabel) { JLabel label = (JLabel)component; label.setText(LabelUtils.htmlBlock(getMe...
class class_name[name] begin[{] method[renderMessage, return_type[void], modifier[public], parameter[component]] begin[{] if[binary_operation[member[.component], instanceof, type[JTextComponent]]] begin[{] Cast(expression=MemberReference(member=component, postfix_operato...
Keyword[public] Keyword[void] identifier[renderMessage] operator[SEP] identifier[JComponent] identifier[component] operator[SEP] { Keyword[if] operator[SEP] identifier[component] Keyword[instanceof] identifier[JTextComponent] operator[SEP] { operator[SEP] operator[SEP] identifier[JTextComponent] opera...
public static <T> Operation<T> operation(Class<? extends T> type, Operator operator, Expression<?>... args) { return operation(type, operator, ImmutableList.copyOf(args)); }
class class_name[name] begin[{] method[operation, return_type[type[Operation]], modifier[public static], parameter[type, operator, args]] begin[{] return[call[.operation, parameter[member[.type], member[.operator], call[ImmutableList.copyOf, parameter[member[.args]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Operation] operator[<] identifier[T] operator[>] identifier[operation] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[type] , identifier[Operator] identifier[operator] , iden...
@Override public String[] getSheetNames() { String[] ret = null; if(workbook != null) ret = workbook.getSheetNames(); else if(writableWorkbook != null) ret = writableWorkbook.getSheetNames(); return ret; }
class class_name[name] begin[{] method[getSheetNames, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], ret] if[binary_operation[member[.workbook], !=, literal[null]]] begin[{] assign[member[.ret], call[workbook.getSheetNames, pa...
annotation[@] identifier[Override] Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getSheetNames] operator[SEP] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[ret] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[workbook] operator[!=...
public Decimal multipliedBy(Decimal multiplicand) { if ((this == NaN) || (multiplicand == NaN)) { return NaN; } return new Decimal(delegate.multiply(multiplicand.delegate, MATH_CONTEXT)); }
class class_name[name] begin[{] method[multipliedBy, return_type[type[Decimal]], modifier[public], parameter[multiplicand]] begin[{] if[binary_operation[binary_operation[THIS[], ==, member[.NaN]], ||, binary_operation[member[.multiplicand], ==, member[.NaN]]]] begin[{] return[member...
Keyword[public] identifier[Decimal] identifier[multipliedBy] operator[SEP] identifier[Decimal] identifier[multiplicand] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[==] identifier[NaN] operator[SEP] operator[||] operator[SEP] identifier[multiplicand] operator[==] identifier[NaN]...
private File unGzip(final File inputFile, final File outputDir) throws FileNotFoundException, IOException { _log.info(String.format("Ungzipping %s to dir %s.", inputFile.getAbsolutePath(), outputDir.getAbsolutePath())); //final File outputFile = new File(outputDir, inputFile.getName().substring(0, inputFile...
class class_name[name] begin[{] method[unGzip, return_type[type[File]], modifier[private], parameter[inputFile, outputDir]] begin[{] call[_log.info, parameter[call[String.format, parameter[literal["Ungzipping %s to dir %s."], call[inputFile.getAbsolutePath, parameter[]], call[outputDir.getAbsol...
Keyword[private] identifier[File] identifier[unGzip] operator[SEP] Keyword[final] identifier[File] identifier[inputFile] , Keyword[final] identifier[File] identifier[outputDir] operator[SEP] Keyword[throws] identifier[FileNotFoundException] , identifier[IOException] { identifier[_log] operator[SEP] identifier[...
@Override public void visitGETSTATIC(GETSTATIC obj) { if (getNumWordsProduced(obj) != 1) { super.visitGETSTATIC(obj); return; } if (checkForKnownValue(obj)) { return; } XField field = XFactory.createXField(obj, cpg); if (field.isFi...
class class_name[name] begin[{] method[visitGETSTATIC, return_type[void], modifier[public], parameter[obj]] begin[{] if[binary_operation[call[.getNumWordsProduced, parameter[member[.obj]]], !=, literal[1]]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitGETSTATIC] operator[SEP] identifier[GETSTATIC] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[getNumWordsProduced] operator[SEP] identifier[obj] operator[SEP] operator[!=] Other[1] operator[SEP] { Ke...
public void deleteShippingAddress(final String accountCode, final long shippingAddressId) { doDELETE(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + ShippingAddresses.SHIPPING_ADDRESSES_RESOURCE + "/" + shippingAddressId); }
class class_name[name] begin[{] method[deleteShippingAddress, return_type[void], modifier[public], parameter[accountCode, shippingAddressId]] begin[{] call[.doDELETE, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[Accounts.ACCOUNTS_RESOURCE...
Keyword[public] Keyword[void] identifier[deleteShippingAddress] operator[SEP] Keyword[final] identifier[String] identifier[accountCode] , Keyword[final] Keyword[long] identifier[shippingAddressId] operator[SEP] { identifier[doDELETE] operator[SEP] identifier[Accounts] operator[SEP] identifier[ACCOUNTS_RESOURCE]...
public synchronized void close() throws IOException, InterruptedException { if (isClosed){ return; } logger.info("closing server endpoint"); idPriv.destroyId(); group.unregisterServerEp(this); isClosed = true; }
class class_name[name] begin[{] method[close, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[member[.isClosed]] begin[{] return[None] else begin[{] None end[}] call[logger.info, parameter[literal["closing server endpoint"]]...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[isClosed] operator[SEP] { Keyword[return] operator[SEP] } identifier[logger...
public Object serialize(Object obj, String contentType, Map<String, Object> formParams) throws ApiException { if (contentType.startsWith("multipart/form-data")) { FormDataMultiPart mp = new FormDataMultiPart(); for (Entry<String, Object> param : formParams.entrySet()) { if (param.getValue() inst...
class class_name[name] begin[{] method[serialize, return_type[type[Object]], modifier[public], parameter[obj, contentType, formParams]] begin[{] if[call[contentType.startsWith, parameter[literal["multipart/form-data"]]]] begin[{] local_variable[type[FormDataMultiPart], mp] ...
Keyword[public] identifier[Object] identifier[serialize] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[contentType] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[formParams] operator[SEP] Keyword[throws] identifier[ApiException] { ...
@Override public java.util.concurrent.Future<DescribeApplicationsResult> describeApplicationsAsync( com.amazonaws.handlers.AsyncHandler<DescribeApplicationsRequest, DescribeApplicationsResult> asyncHandler) { return describeApplicationsAsync(new DescribeApplicationsRequest(), asyncHandler); ...
class class_name[name] begin[{] method[describeApplicationsAsync, return_type[type[java]], modifier[public], parameter[asyncHandler]] begin[{] return[call[.describeApplicationsAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[DescribeApplicationsResult] operator[>] identifier[describeApplicationsAsync] operator[SEP] identifier[com] operator[SEP] identi...
private Parser<Class<?>> arrayClass() { Parser<Class<?>> arrayType = FQN.next(name -> { // Only invoked when we already see a "[" at the beginning. Class<?> primitiveArray = PRIMITIVE_ARRAY_TYPES.get("[" + name); if (primitiveArray != null) return Parsers.constant(primitiveArray); if...
class class_name[name] begin[{] method[arrayClass, return_type[type[Parser]], modifier[private], parameter[]] begin[{] local_variable[type[Parser], arrayType] return[call[TERMS.token, parameter[literal["["]]]] end[}] END[}]
Keyword[private] identifier[Parser] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[arrayClass] operator[SEP] operator[SEP] { identifier[Parser] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[arrayType] operator[=] identifier[FQN]...
public synchronized void stop() { if (m_thread != null) { long timeBeforeShutdownWasCalled = System.currentTimeMillis(); JLANServer.shutdownServer(new String[] {}); while (m_thread.isAlive() && ((System.currentTimeMillis() - timeBeforeShutdownWasCalled)...
class class_name[name] begin[{] method[stop, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[member[.m_thread], !=, literal[null]]] begin[{] local_variable[type[long], timeBeforeShutdownWasCalled] call[JLANServer.sh...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_thread] operator[!=] Other[null] operator[SEP] { Keyword[long] identifier[timeBeforeShutdownWasCalled] operator[=] identifier[System] operator[SEP] identifier[curre...
public static PersianCalendar of( int pyear, PersianMonth pmonth, int pdom ) { return PersianCalendar.of(pyear, pmonth.getValue(), pdom); }
class class_name[name] begin[{] method[of, return_type[type[PersianCalendar]], modifier[public static], parameter[pyear, pmonth, pdom]] begin[{] return[call[PersianCalendar.of, parameter[member[.pyear], call[pmonth.getValue, parameter[]], member[.pdom]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[PersianCalendar] identifier[of] operator[SEP] Keyword[int] identifier[pyear] , identifier[PersianMonth] identifier[pmonth] , Keyword[int] identifier[pdom] operator[SEP] { Keyword[return] identifier[PersianCalendar] operator[SEP] identifier[of] operator[SEP] identifier...
public void updateMailServer(int id, String hostName, String username, String password, int port, boolean tls, boolean ssl, long lifeTimeSpan, long idleTimeSpan, boolean reuseConnections) throws PageException { checkWriteAccess(); boolean hasAccess = ConfigWebUtil.hasAccess(config, SecurityManager.TYPE_MAIL); i...
class class_name[name] begin[{] method[updateMailServer, return_type[void], modifier[public], parameter[id, hostName, username, password, port, tls, ssl, lifeTimeSpan, idleTimeSpan, reuseConnections]] begin[{] call[.checkWriteAccess, parameter[]] local_variable[type[boolean], hasAccess]...
Keyword[public] Keyword[void] identifier[updateMailServer] operator[SEP] Keyword[int] identifier[id] , identifier[String] identifier[hostName] , identifier[String] identifier[username] , identifier[String] identifier[password] , Keyword[int] identifier[port] , Keyword[boolean] identifier[tls] , Keyword[boolean] i...
public static Date setDate(final @NonNull Date dateToSet, final int year, final int month, final int day, final int hour, final int minute, final int second, final int milliSecond, final TimeZone zone, final Locale locale) { final Calendar calendar = Calendar.getInstance(zone, locale); calendar.setTime(dateToS...
class class_name[name] begin[{] method[setDate, return_type[type[Date]], modifier[public static], parameter[dateToSet, year, month, day, hour, minute, second, milliSecond, zone, locale]] begin[{] local_variable[type[Calendar], calendar] call[calendar.setTime, parameter[member[.dateToSet...
Keyword[public] Keyword[static] identifier[Date] identifier[setDate] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[Date] identifier[dateToSet] , Keyword[final] Keyword[int] identifier[year] , Keyword[final] Keyword[int] identifier[month] , Keyword[final] Keyword[int] identifier[day] , Ke...
public int[] PixelsToRaster( int px, int py, int zoom ) { int mapSize = tileSize << zoom; return new int[]{px, mapSize - py}; }
class class_name[name] begin[{] method[PixelsToRaster, return_type[type[int]], modifier[public], parameter[px, py, zoom]] begin[{] local_variable[type[int], mapSize] return[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=px, postfix_operators=[]...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[PixelsToRaster] operator[SEP] Keyword[int] identifier[px] , Keyword[int] identifier[py] , Keyword[int] identifier[zoom] operator[SEP] { Keyword[int] identifier[mapSize] operator[=] identifier[tileSize] operator[<<] identifier[zoom] operator[SE...
public void setExportsInfo(java.util.Collection<ExportInfo> exportsInfo) { if (exportsInfo == null) { this.exportsInfo = null; return; } this.exportsInfo = new java.util.ArrayList<ExportInfo>(exportsInfo); }
class class_name[name] begin[{] method[setExportsInfo, return_type[void], modifier[public], parameter[exportsInfo]] begin[{] if[binary_operation[member[.exportsInfo], ==, literal[null]]] begin[{] assign[THIS[member[None.exportsInfo]], literal[null]] return[No...
Keyword[public] Keyword[void] identifier[setExportsInfo] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ExportInfo] operator[>] identifier[exportsInfo] operator[SEP] { Keyword[if] operator[SEP] identifier[exportsInfo] operator[==] Other[n...
public static <Resp extends HttpCmdResponse> Resp doGet(String ip, int port, HttpCmd<Resp> cmd) { Assert.hasText(cmd.getNodeIdentity(), "nodeIdentity can't be empty"); Assert.hasText(cmd.getCommand(), "command can't be empty"); StringBuilder sb = new StringBuilder(); sb.append("http://...
class class_name[name] begin[{] method[doGet, return_type[type[Resp]], modifier[public static], parameter[ip, port, cmd]] begin[{] call[Assert.hasText, parameter[call[cmd.getNodeIdentity, parameter[]], literal["nodeIdentity can't be empty"]]] call[Assert.hasText, parameter[call[...
Keyword[public] Keyword[static] operator[<] identifier[Resp] Keyword[extends] identifier[HttpCmdResponse] operator[>] identifier[Resp] identifier[doGet] operator[SEP] identifier[String] identifier[ip] , Keyword[int] identifier[port] , identifier[HttpCmd] operator[<] identifier[Resp] operator[>] identifier[cmd] operat...
public static void writeGenerators( IGeneratorSet generators, OutputStream outputStream) { try( GeneratorSetJsonWriter writer = new GeneratorSetJsonWriter( outputStream)) { writer.write( generators); } catch( Exception e) { throw new RuntimeException( "Can't write generator def...
class class_name[name] begin[{] method[writeGenerators, return_type[void], modifier[public static], parameter[generators, outputStream]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=generators, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] Keyword[void] identifier[writeGenerators] operator[SEP] identifier[IGeneratorSet] identifier[generators] , identifier[OutputStream] identifier[outputStream] operator[SEP] { Keyword[try] operator[SEP] identifier[GeneratorSetJsonWriter] identifier[writer] operator[=] Keyword[new] i...
public void setSecondColor(final Color COLOR) { if (null == secondColor) { _secondColor = COLOR; fireUpdateEvent(REDRAW_EVENT); } else { secondColor.set(COLOR); } }
class class_name[name] begin[{] method[setSecondColor, return_type[void], modifier[public], parameter[COLOR]] begin[{] if[binary_operation[literal[null], ==, member[.secondColor]]] begin[{] assign[member[._secondColor], member[.COLOR]] call[.fireU...
Keyword[public] Keyword[void] identifier[setSecondColor] operator[SEP] Keyword[final] identifier[Color] identifier[COLOR] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[secondColor] operator[SEP] { identifier[_secondColor] operator[=] identifier[COLOR] operator[SEP] iden...
public static String encodeFromFile(final String filename) { java.io.File file = new java.io.File(filename); long fileLength = file.length(); java.io.InputStream ins; try { ins = new java.io.FileInputStream(file); } catch (FileNotFoundException e) { Syst...
class class_name[name] begin[{] method[encodeFromFile, return_type[type[String]], modifier[public static], parameter[filename]] begin[{] local_variable[type[java], file] local_variable[type[long], fileLength] local_variable[type[java], ins] TryStatement(block=[StatementExpressio...
Keyword[public] Keyword[static] identifier[String] identifier[encodeFromFile] operator[SEP] Keyword[final] identifier[String] identifier[filename] operator[SEP] { identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[File] identifier[file] operator[=] Keyword[new] identifier[java] operator[SEP] ...
public final void setSecurityController(SecurityController controller) { if (sealed) onSealedMutation(); if (controller == null) throw new IllegalArgumentException(); if (securityController != null) { throw new SecurityException("Can not overwrite existing SecurityController obje...
class class_name[name] begin[{] method[setSecurityController, return_type[void], modifier[final public], parameter[controller]] begin[{] if[member[.sealed]] begin[{] call[.onSealedMutation, parameter[]] else begin[{] None end[}] if[binary_operation[me...
Keyword[public] Keyword[final] Keyword[void] identifier[setSecurityController] operator[SEP] identifier[SecurityController] identifier[controller] operator[SEP] { Keyword[if] operator[SEP] identifier[sealed] operator[SEP] identifier[onSealedMutation] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator...
public static Vector tokenizePath (String path, String separator) { Vector ret = new Vector(); if (FileUtil.isAbsolutePath(path)) { String[] s = FileUtil.dissect(path); ret.add(s[0]); path = s[1]; } StringTokenizer st = new StringTokenizer(path, separa...
class class_name[name] begin[{] method[tokenizePath, return_type[type[Vector]], modifier[public static], parameter[path, separator]] begin[{] local_variable[type[Vector], ret] if[call[FileUtil.isAbsolutePath, parameter[member[.path]]]] begin[{] local_variable[type[String], s...
Keyword[public] Keyword[static] identifier[Vector] identifier[tokenizePath] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[separator] operator[SEP] { identifier[Vector] identifier[ret] operator[=] Keyword[new] identifier[Vector] operator[SEP] operator[SEP] operator[SEP] Keywor...
@Override public void removeAttributes() { beginUpdate(); try { // remove all attributes so.removeAttributes(); } catch (Exception ex) { log.warn("Exception on so.removeAttributes", ex); } finally { endUpdate(); } ...
class class_name[name] begin[{] method[removeAttributes, return_type[void], modifier[public], parameter[]] begin[{] call[.beginUpdate, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=removeAttributes, postfix_operators=[], prefix_ope...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeAttributes] operator[SEP] operator[SEP] { identifier[beginUpdate] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[so] operator[SEP] identifier[removeAttributes] operator[SEP] operator[SEP] operator[SE...
protected <T> T initialize(final T object, final Object... args) { if (object instanceof ParameterizedInitable) { ((ParameterizedInitable) object).init(args); } else if (object instanceof Initable) { ((Initable) object).init(); } return object; }
class class_name[name] begin[{] method[initialize, return_type[type[T]], modifier[protected], parameter[object, args]] begin[{] if[binary_operation[member[.object], instanceof, type[ParameterizedInitable]]] begin[{] Cast(expression=MemberReference(member=object, postfix_...
Keyword[protected] operator[<] identifier[T] operator[>] identifier[T] identifier[initialize] operator[SEP] Keyword[final] identifier[T] identifier[object] , Keyword[final] identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[if] operator[SEP] identifier[object] Keyword[instanceof] identifi...
public void parse (String string) { char[] data = string.toCharArray(); parse(data, 0, data.length); }
class class_name[name] begin[{] method[parse, return_type[void], modifier[public], parameter[string]] begin[{] local_variable[type[char], data] call[.parse, parameter[member[.data], literal[0], member[data.length]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[parse] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[data] operator[=] identifier[string] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[...
@Override public Collection<Dependency> getDependencies() { return dependencies == null ? Collections.<Dependency>emptyList() : dependencies; }
class class_name[name] begin[{] method[getDependencies, return_type[type[Collection]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=dependencies, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=...
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[Dependency] operator[>] identifier[getDependencies] operator[SEP] operator[SEP] { Keyword[return] identifier[dependencies] operator[==] Other[null] operator[?] identifier[Collections] operator[SEP] operator[<] identi...
public String connectAndBind(String host, int port, BindParameter bindParam, long timeout) throws IOException { logger.debug("Connect and bind to {} port {}", host, port); if (getSessionState() != SessionState.CLOSED) { throw new IOException("Session state is not closed"); } conn = con...
class class_name[name] begin[{] method[connectAndBind, return_type[type[String]], modifier[public], parameter[host, port, bindParam, timeout]] begin[{] call[logger.debug, parameter[literal["Connect and bind to {} port {}"], member[.host], member[.port]]] if[binary_operation[call...
Keyword[public] identifier[String] identifier[connectAndBind] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[BindParameter] identifier[bindParam] , Keyword[long] identifier[timeout] operator[SEP] Keyword[throws] identifier[IOException] { identifier[logger] opera...
public String getNotNullTrueStringRep() { try { String rep = ""; String joiner = "\n"; Field[] f = this.getClass().getFields(); for (Field ff : f) { String name = ff.getName(); Class<?> type = ff.getType(); if (type.equals(Boolean.class) || type.equals(boo...
class class_name[name] begin[{] method[getNotNullTrueStringRep, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], q...
Keyword[public] identifier[String] identifier[getNotNullTrueStringRep] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[rep] operator[=] literal[String] operator[SEP] identifier[String] identifier[joiner] operator[=] literal[String] operator[SEP] identifier[Field] operator[SE...
public void addEntities(String[][] entityArray) { for (String[] anEntityArray : entityArray) { addEntity(anEntityArray[0], Integer.parseInt(anEntityArray[1])); } }
class class_name[name] begin[{] method[addEntities, return_type[void], modifier[public], parameter[entityArray]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=anEntityArray, postfix_operators=[], prefi...
Keyword[public] Keyword[void] identifier[addEntities] operator[SEP] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[entityArray] operator[SEP] { Keyword[for] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[anEntityArray] operator[:] identifier[entity...
public void setUploadTempDir(File uploadTempDir) throws IOException { if (!uploadTempDir.exists() && !uploadTempDir.mkdirs()) { String message = "Given uploadTempDir [" + uploadTempDir + "] could not be created."; throw new IllegalArgumentException(message); } this.mFileI...
class class_name[name] begin[{] method[setUploadTempDir, return_type[void], modifier[public], parameter[uploadTempDir]] begin[{] if[binary_operation[call[uploadTempDir.exists, parameter[]], &&, call[uploadTempDir.mkdirs, parameter[]]]] begin[{] local_variable[type[String], message] ...
Keyword[public] Keyword[void] identifier[setUploadTempDir] operator[SEP] identifier[File] identifier[uploadTempDir] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[uploadTempDir] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[&&] ope...
@Override public int predict(T x) { double minDist = Double.MAX_VALUE; int bestCluster = 0; for (int i = 0; i < k; i++) { double dist = distance.d(x, medoids[i]); if (dist < minDist) { minDist = dist; bestCluster = i; } ...
class class_name[name] begin[{] method[predict, return_type[type[int]], modifier[public], parameter[x]] begin[{] local_variable[type[double], minDist] local_variable[type[int], bestCluster] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[],...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[predict] operator[SEP] identifier[T] identifier[x] operator[SEP] { Keyword[double] identifier[minDist] operator[=] identifier[Double] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[int] identifier[bestCluster] operator[=] Other...
public static Config parseFileAnySyntax(File fileBasename, ConfigParseOptions options) { return ConfigImpl.parseFileAnySyntax(fileBasename, options).toConfig(); }
class class_name[name] begin[{] method[parseFileAnySyntax, return_type[type[Config]], modifier[public static], parameter[fileBasename, options]] begin[{] return[call[ConfigImpl.parseFileAnySyntax, parameter[member[.fileBasename], member[.options]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Config] identifier[parseFileAnySyntax] operator[SEP] identifier[File] identifier[fileBasename] , identifier[ConfigParseOptions] identifier[options] operator[SEP] { Keyword[return] identifier[ConfigImpl] operator[SEP] identifier[parseFileAnySyntax] operator[SEP] identif...
public static int[] range(int start, int end) { int[] out = new int[end - start]; for(int i = 0, j = start; j < end; i++, j++) { out[i] = j; } return out; }
class class_name[name] begin[{] method[range, return_type[type[int]], modifier[public static], parameter[start, end]] begin[{] local_variable[type[int], out] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=out...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[range] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[out] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[end] oper...
public static InputStream decrypt(InputStream inputStream, byte[] key) { checkNotNull(inputStream); checkNotNull(key); checkArgument(key.length >= 5 && key.length <= 256); StreamCipher rc4 = new RC4Engine(); rc4.init(false, new KeyParameter(key)); return new CipherInputSt...
class class_name[name] begin[{] method[decrypt, return_type[type[InputStream]], modifier[public static], parameter[inputStream, key]] begin[{] call[.checkNotNull, parameter[member[.inputStream]]] call[.checkNotNull, parameter[member[.key]]] call[.checkArgument, p...
Keyword[public] Keyword[static] identifier[InputStream] identifier[decrypt] operator[SEP] identifier[InputStream] identifier[inputStream] , Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[inputStream] operator[SEP] operator[SEP] identif...
public void marshall(VerificationMessageTemplateType verificationMessageTemplateType, ProtocolMarshaller protocolMarshaller) { if (verificationMessageTemplateType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[verificationMessageTemplateType, protocolMarshaller]] begin[{] if[binary_operation[member[.verificationMessageTemplateType], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[VerificationMessageTemplateType] identifier[verificationMessageTemplateType] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[verificationMessageTemplateType] operator[...
public TreeNode<T> findByContent(T content) { Optional<TreeNode<T>> opt = TreeStream.breadthFirst(treeDef(), this).filter(node -> node.getContent().equals(content)).findFirst(); if (opt.isPresent()) { return opt.get(); } else { throw new IllegalArgumentException(this.toString() + " has no child with content...
class class_name[name] begin[{] method[findByContent, return_type[type[TreeNode]], modifier[public], parameter[content]] begin[{] local_variable[type[Optional], opt] if[call[opt.isPresent, parameter[]]] begin[{] return[call[opt.get, parameter[]]] else begin[{] ...
Keyword[public] identifier[TreeNode] operator[<] identifier[T] operator[>] identifier[findByContent] operator[SEP] identifier[T] identifier[content] operator[SEP] { identifier[Optional] operator[<] identifier[TreeNode] operator[<] identifier[T] operator[>] operator[>] identifier[opt] operator[=] identifier[TreeS...
private double getCovalentRadius(String symbol, IBond.Order maxBondOrder) { double radiusTarget = 0; if (symbol.equals("F")) { radiusTarget = 0.64; } else if (symbol.equals("Cl")) { radiusTarget = 0.99; } else if (symbol.equals("Br")) { radiusTarget = ...
class class_name[name] begin[{] method[getCovalentRadius, return_type[type[double]], modifier[private], parameter[symbol, maxBondOrder]] begin[{] local_variable[type[double], radiusTarget] if[call[symbol.equals, parameter[literal["F"]]]] begin[{] assign[member[.r...
Keyword[private] Keyword[double] identifier[getCovalentRadius] operator[SEP] identifier[String] identifier[symbol] , identifier[IBond] operator[SEP] identifier[Order] identifier[maxBondOrder] operator[SEP] { Keyword[double] identifier[radiusTarget] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] id...
public static JobOperator getJobOperator() { JobOperator operator = AccessController.doPrivileged(new PrivilegedAction<JobOperator> () { public JobOperator run() { ServiceLoader<JobOperator> loader = ServiceLoader.load(JobOperator.class); JobOperator returnVal = null; ...
class class_name[name] begin[{] method[getJobOperator, return_type[type[JobOperator]], modifier[public static], parameter[]] begin[{] local_variable[type[JobOperator], operator] if[binary_operation[member[.operator], ==, literal[null]]] begin[{] if[call[logger.is...
Keyword[public] Keyword[static] identifier[JobOperator] identifier[getJobOperator] operator[SEP] operator[SEP] { identifier[JobOperator] identifier[operator] operator[=] identifier[AccessController] operator[SEP] identifier[doPrivileged] operator[SEP] Keyword[new] identifier[PrivilegedAction] operator[<] identif...
@Override public void init(final ServletConfig config) throws ServletException { super.init(config); contextDirPath = getServletContext().getRealPath("/"); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[config]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=config, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_operator...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[init] operator[SEP] Keyword[final] identifier[ServletConfig] identifier[config] operator[SEP] Keyword[throws] identifier[ServletException] { Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[config] operator[SEP] ope...
public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); }
class class_name[name] begin[{] method[fromBytes, return_type[type[String]], modifier[public static], parameter[bytes]] begin[{] call[EnsureUtil.ensureActiveCommandContext, parameter[literal["StringUtil.fromBytes"]]] local_variable[type[ProcessEngineConfigurationImpl], processEngineConf...
Keyword[public] Keyword[static] identifier[String] identifier[fromBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] { identifier[EnsureUtil] operator[SEP] identifier[ensureActiveCommandContext] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Proce...
public ArrayList<String> getConditionChildrenList(String text, boolean addChildren) { Node[] c = getConditionChildren(text); this.suggestions.clear(); for (int idx=0; idx < c.length; idx++) { this.suggestions.add(c[idx].getToken()); if (addChildren) { this...
class class_name[name] begin[{] method[getConditionChildrenList, return_type[type[ArrayList]], modifier[public], parameter[text, addChildren]] begin[{] local_variable[type[Node], c] THIS[member[None.suggestions]call[None.clear, parameter[]]] ForStatement(body=BlockStatement(labe...
Keyword[public] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[getConditionChildrenList] operator[SEP] identifier[String] identifier[text] , Keyword[boolean] identifier[addChildren] operator[SEP] { identifier[Node] operator[SEP] operator[SEP] identifier[c] operator[=] identifier[get...
public BaiduMessage withSubstitutions(java.util.Map<String, java.util.List<String>> substitutions) { setSubstitutions(substitutions); return this; }
class class_name[name] begin[{] method[withSubstitutions, return_type[type[BaiduMessage]], modifier[public], parameter[substitutions]] begin[{] call[.setSubstitutions, parameter[member[.substitutions]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[BaiduMessage] identifier[withSubstitutions] operator[SEP] 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[>] o...
public final hqlParser.takeClause_return takeClause() throws RecognitionException { hqlParser.takeClause_return retval = new hqlParser.takeClause_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token TAKE134=null; Token NUM_INT135=null; ParserRuleReturnScope parameter136 =null; CommonTr...
class class_name[name] begin[{] method[takeClause, return_type[type[hqlParser]], modifier[final public], parameter[]] begin[{] local_variable[type[hqlParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree], root_0] ...
Keyword[public] Keyword[final] identifier[hqlParser] operator[SEP] identifier[takeClause_return] identifier[takeClause] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[hqlParser] operator[SEP] identifier[takeClause_return] identifier[retval] operator[=] Keyword[new] iden...
public static <T, U> Matcher<T> hasFeature(Function<T, U> featureFunction, Matcher<? super U> featureMatcher) { return hasFeature(featureFunction.toString(), featureFunction, featureMatcher); }
class class_name[name] begin[{] method[hasFeature, return_type[type[Matcher]], modifier[public static], parameter[featureFunction, featureMatcher]] begin[{] return[call[.hasFeature, parameter[call[featureFunction.toString, parameter[]], member[.featureFunction], member[.featureMatcher]]]] end[}] EN...
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] operator[>] identifier[Matcher] operator[<] identifier[T] operator[>] identifier[hasFeature] operator[SEP] identifier[Function] operator[<] identifier[T] , identifier[U] operator[>] identifier[featureFunction] , identifier[Matcher] operator[<]...
public final EventFilterParser.exists_predicate_return exists_predicate() throws RecognitionException { EventFilterParser.exists_predicate_return retval = new EventFilterParser.exists_predicate_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token EXISTS78=null; ...
class class_name[name] begin[{] method[exists_predicate, return_type[type[EventFilterParser]], modifier[final public], parameter[]] begin[{] local_variable[type[EventFilterParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[Co...
Keyword[public] Keyword[final] identifier[EventFilterParser] operator[SEP] identifier[exists_predicate_return] identifier[exists_predicate] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EventFilterParser] operator[SEP] identifier[exists_predicate_return] identifier[ret...
private Document findAssociation(AssociationKey key, AssociationContext associationContext, AssociationStorageStrategy storageStrategy) { final Document associationKeyObject = associationKeyToObject( key, storageStrategy ); MongoCollection<Document> associationCollection = getAssociationCollection( key, storageStra...
class class_name[name] begin[{] method[findAssociation, return_type[type[Document]], modifier[private], parameter[key, associationContext, storageStrategy]] begin[{] local_variable[type[Document], associationKeyObject] local_variable[type[MongoCollection], associationCollection] local_v...
Keyword[private] identifier[Document] identifier[findAssociation] operator[SEP] identifier[AssociationKey] identifier[key] , identifier[AssociationContext] identifier[associationContext] , identifier[AssociationStorageStrategy] identifier[storageStrategy] operator[SEP] { Keyword[final] identifier[Document] ide...
public void buildFieldDoc(XMLNode node, Content memberDetailsTree) { if (writer == null) { return; } int size = fields.size(); if (size > 0) { Content fieldDetailsTree = writer.getFieldDetailsTreeHeader( classDoc, memberDetailsTree); ...
class class_name[name] begin[{] method[buildFieldDoc, return_type[void], modifier[public], parameter[node, memberDetailsTree]] begin[{] if[binary_operation[member[.writer], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[typ...
Keyword[public] Keyword[void] identifier[buildFieldDoc] operator[SEP] identifier[XMLNode] identifier[node] , identifier[Content] identifier[memberDetailsTree] operator[SEP] { Keyword[if] operator[SEP] identifier[writer] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } ...
public void marshall(Source source, ProtocolMarshaller protocolMarshaller) { if (source == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(source.getDecryption(), DECRYPTION_BINDING); prot...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[source, protocolMarshaller]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Source] identifier[source] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] iden...
@ForOverride @Nullable protected JSType findPropertyTypeWithoutConsideringTemplateTypes(String propertyName) { ObjectType autoboxObjType = ObjectType.cast(autoboxesTo()); if (autoboxObjType != null) { return autoboxObjType.findPropertyType(propertyName); } return null; }
class class_name[name] begin[{] method[findPropertyTypeWithoutConsideringTemplateTypes, return_type[type[JSType]], modifier[protected], parameter[propertyName]] begin[{] local_variable[type[ObjectType], autoboxObjType] if[binary_operation[member[.autoboxObjType], !=, literal[null]]] beg...
annotation[@] identifier[ForOverride] annotation[@] identifier[Nullable] Keyword[protected] identifier[JSType] identifier[findPropertyTypeWithoutConsideringTemplateTypes] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] { identifier[ObjectType] identifier[autoboxObjType] operator[=] identi...
public WebhookBuilder setAvatar(InputStream avatar, String fileType) { delegate.setAvatar(avatar, fileType); return this; }
class class_name[name] begin[{] method[setAvatar, return_type[type[WebhookBuilder]], modifier[public], parameter[avatar, fileType]] begin[{] call[delegate.setAvatar, parameter[member[.avatar], member[.fileType]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[WebhookBuilder] identifier[setAvatar] operator[SEP] identifier[InputStream] identifier[avatar] , identifier[String] identifier[fileType] operator[SEP] { identifier[delegate] operator[SEP] identifier[setAvatar] operator[SEP] identifier[avatar] , identifier[fileType] operator[SEP] oper...
protected Map<String, List<String>> initProcessLists(List<RabbitmqClusterContext> contextList) throws RabbitmqCommunicateException { if (this.contextMap == null) { this.contextMap = initContextMap(contextList); } Map<String, List<String>> processLists = new H...
class class_name[name] begin[{] method[initProcessLists, return_type[type[Map]], modifier[protected], parameter[contextList]] begin[{] if[binary_operation[THIS[member[None.contextMap]], ==, literal[null]]] begin[{] assign[THIS[member[None.contextMap]], call[.initContextM...
Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[initProcessLists] operator[SEP] identifier[List] operator[<] identifier[RabbitmqClusterContext] operator[>] identifier[contextList] operator[SEP] Keyword[throws] identi...
public AstNode node( String name, AstNode parent, Object... types ) { CheckArg.isNotNull(name, "name"); CheckArg.isNotNull(parent, "parent"); CheckArg.isNotEmpty(types, "types"); AstNode node = new AstNode(parent, name); node.set...
class class_name[name] begin[{] method[node, return_type[type[AstNode]], modifier[public], parameter[name, parent, types]] begin[{] call[CheckArg.isNotNull, parameter[member[.name], literal["name"]]] call[CheckArg.isNotNull, parameter[member[.parent], literal["parent"]]] ...
Keyword[public] identifier[AstNode] identifier[node] operator[SEP] identifier[String] identifier[name] , identifier[AstNode] identifier[parent] , identifier[Object] operator[...] identifier[types] operator[SEP] { identifier[CheckArg] operator[SEP] identifier[isNotNull] operator[SEP] identifier[name] , literal...
public static Map<String, QualityValue> getStringQualityValues(String header) { if (header == null) return null; header = header.trim(); if (header.length() == 0) return null; Map<String, QualityValue> result = new LinkedHashMap<String, QualityValue>(); int offset = 0...
class class_name[name] begin[{] method[getStringQualityValues, return_type[type[Map]], modifier[public static], parameter[header]] begin[{] if[binary_operation[member[.header], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] assign[me...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[QualityValue] operator[>] identifier[getStringQualityValues] operator[SEP] identifier[String] identifier[header] operator[SEP] { Keyword[if] operator[SEP] identifier[header] operator[==] Other[null] operator[SEP] Keyword...
public static void imgCompressByScale(String srcFile, String desFile, double base, int wh, Float quality) { ImgCompressUtils.imgCompressByScale(srcFile, desFile, base, wh, quality, false); }
class class_name[name] begin[{] method[imgCompressByScale, return_type[void], modifier[public static], parameter[srcFile, desFile, base, wh, quality]] begin[{] call[ImgCompressUtils.imgCompressByScale, parameter[member[.srcFile], member[.desFile], member[.base], member[.wh], member[.quality], l...
Keyword[public] Keyword[static] Keyword[void] identifier[imgCompressByScale] operator[SEP] identifier[String] identifier[srcFile] , identifier[String] identifier[desFile] , Keyword[double] identifier[base] , Keyword[int] identifier[wh] , identifier[Float] identifier[quality] operator[SEP] { identifier[ImgCom...
public static List<String> canonicalizeSecurityQuestions(final Map<String, String> questionMap) { val keys = new ArrayList<String>(questionMap.keySet()); keys.sort(String.CASE_INSENSITIVE_ORDER); return keys; }
class class_name[name] begin[{] method[canonicalizeSecurityQuestions, return_type[type[List]], modifier[public static], parameter[questionMap]] begin[{] local_variable[type[val], keys] call[keys.sort, parameter[member[String.CASE_INSENSITIVE_ORDER]]] return[member[.keys]] en...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[canonicalizeSecurityQuestions] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[questionMap] operator[SEP] { identifier[val] identifier[ke...
@Override public AtmosphereRequestBuilder newRequestBuilder(Class<AtmosphereRequest.AtmosphereRequestBuilder> clazz) { AtmosphereRequestBuilder b; try { b = clazz.newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (Illeg...
class class_name[name] begin[{] method[newRequestBuilder, return_type[type[AtmosphereRequestBuilder]], modifier[public], parameter[clazz]] begin[{] local_variable[type[AtmosphereRequestBuilder], b] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=...
annotation[@] identifier[Override] Keyword[public] identifier[AtmosphereRequestBuilder] identifier[newRequestBuilder] operator[SEP] identifier[Class] operator[<] identifier[AtmosphereRequest] operator[SEP] identifier[AtmosphereRequestBuilder] operator[>] identifier[clazz] operator[SEP] { identifier[AtmosphereReq...
public void save(ProcessingEnvironment env) throws IOException { Filer filer = env.getFiler(); //JavaFileObject sourceFile = filer.createClassFile(getQualifiedName(), superClass); FileObject sourceFile = filer.createResource( StandardLocation.CLASS_OUTPUT, ...
class class_name[name] begin[{] method[save, return_type[void], modifier[public], parameter[env]] begin[{] local_variable[type[Filer], filer] local_variable[type[FileObject], sourceFile] local_variable[type[BufferedOutputStream], bos] local_variable[type[DataOutputStream], dos] ...
Keyword[public] Keyword[void] identifier[save] operator[SEP] identifier[ProcessingEnvironment] identifier[env] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Filer] identifier[filer] operator[=] identifier[env] operator[SEP] identifier[getFiler] operator[SEP] operator[SEP] operator[SEP] ident...
private LoginContext getClientLoginContext() throws LoginException { Configuration config = new Configuration() { @Override public AppConfigurationEntry[] getAppConfigurationEntry(String name) { Map<String, String> options = new HashMap<String, String>(); ...
class class_name[name] begin[{] method[getClientLoginContext, return_type[type[LoginContext]], modifier[private], parameter[]] begin[{] local_variable[type[Configuration], config] return[call[.getLoginContext, parameter[member[.config]]]] end[}] END[}]
Keyword[private] identifier[LoginContext] identifier[getClientLoginContext] operator[SEP] operator[SEP] Keyword[throws] identifier[LoginException] { identifier[Configuration] identifier[config] operator[=] Keyword[new] identifier[Configuration] operator[SEP] operator[SEP] { annotation[@] identifier[Ov...
private Path getPath(String fileName) throws IOException, URISyntaxException { Path path; URL url = getClass().getClassLoader().getResource(fileName); if (url == null) { throw new IOException(String.format("File %s is not existing", fileName)); } URI uri = url.toURI(); Map<String, St...
class class_name[name] begin[{] method[getPath, return_type[type[Path]], modifier[private], parameter[fileName]] begin[{] local_variable[type[Path], path] local_variable[type[URL], url] if[binary_operation[member[.url], ==, literal[null]]] begin[{] ThrowStatement(exp...
Keyword[private] identifier[Path] identifier[getPath] operator[SEP] identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[IOException] , identifier[URISyntaxException] { identifier[Path] identifier[path] operator[SEP] identifier[URL] identifier[url] operator[=] identifier[getClass] op...
@Override public AttributeSetBuilder addAttribute(int resId, String value) { attrToValue.put(resId, value); return this; }
class class_name[name] begin[{] method[addAttribute, return_type[type[AttributeSetBuilder]], modifier[public], parameter[resId, value]] begin[{] call[attrToValue.put, parameter[member[.resId], member[.value]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[AttributeSetBuilder] identifier[addAttribute] operator[SEP] Keyword[int] identifier[resId] , identifier[String] identifier[value] operator[SEP] { identifier[attrToValue] operator[SEP] identifier[put] operator[SEP] identifier[resId] , identifier[valu...
public boolean put(int key, int value) { IntSet values = map.get(key); if (values == null) { values = new TroveIntSet(); map.put(key, values); } boolean added = values.add(value); if (added) { range++; } return added; }
class class_name[name] begin[{] method[put, return_type[type[boolean]], modifier[public], parameter[key, value]] begin[{] local_variable[type[IntSet], values] if[binary_operation[member[.values], ==, literal[null]]] begin[{] assign[member[.values], ClassCreator(a...
Keyword[public] Keyword[boolean] identifier[put] operator[SEP] Keyword[int] identifier[key] , Keyword[int] identifier[value] operator[SEP] { identifier[IntSet] identifier[values] operator[=] identifier[map] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] opera...
@POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response registerWindowsVariant( WindowsVariant windowsVariant, @PathParam("pushAppID") String pushApplicationID, @Context UriInfo uriInfo) { PushApplication pushApp = getSea...
class class_name[name] begin[{] method[registerWindowsVariant, return_type[type[Response]], modifier[public], parameter[windowsVariant, pushApplicationID, uriInfo]] begin[{] local_variable[type[PushApplication], pushApp] if[binary_operation[member[.pushApp], ==, literal[null]]] begin[{]...
annotation[@] identifier[POST] annotation[@] identifier[Consumes] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] Keyword[public] identifier[Respon...
@Override public long getLong(TemporalField field) { if (field == OFFSET_SECONDS) { return totalSeconds; } else if (field instanceof ChronoField) { throw new UnsupportedTemporalTypeException("Unsupported field: " + field); } return field.getFrom(this); }
class class_name[name] begin[{] method[getLong, return_type[type[long]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, member[.OFFSET_SECONDS]]] begin[{] return[member[.totalSeconds]] else begin[{] if[binary_operation[member...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[getLong] operator[SEP] identifier[TemporalField] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] identifier[OFFSET_SECONDS] operator[SEP] { Keyword[return] identifier[totalSeconds] op...
public void comment(char[] ch, int start, int length) throws SAXException { if (lexicalHandler != null) { lexicalHandler.comment(ch, start, length); } }
class class_name[name] begin[{] method[comment, return_type[void], modifier[public], parameter[ch, start, length]] begin[{] if[binary_operation[member[.lexicalHandler], !=, literal[null]]] begin[{] call[lexicalHandler.comment, parameter[member[.ch], member[.start], membe...
Keyword[public] Keyword[void] identifier[comment] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[ch] , Keyword[int] identifier[start] , Keyword[int] identifier[length] operator[SEP] Keyword[throws] identifier[SAXException] { Keyword[if] operator[SEP] identifier[lexicalHandler] operator[!=] ...
public Observable<Void> disableAutoScaleAsync(String poolId, PoolDisableAutoScaleOptions poolDisableAutoScaleOptions) { return disableAutoScaleWithServiceResponseAsync(poolId, poolDisableAutoScaleOptions).map(new Func1<ServiceResponseWithHeaders<Void, PoolDisableAutoScaleHeaders>, Void>() { @Overrid...
class class_name[name] begin[{] method[disableAutoScaleAsync, return_type[type[Observable]], modifier[public], parameter[poolId, poolDisableAutoScaleOptions]] begin[{] return[call[.disableAutoScaleWithServiceResponseAsync, parameter[member[.poolId], member[.poolDisableAutoScaleOptions]]]] end[}] EN...
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[disableAutoScaleAsync] operator[SEP] identifier[String] identifier[poolId] , identifier[PoolDisableAutoScaleOptions] identifier[poolDisableAutoScaleOptions] operator[SEP] { Keyword[return] identifier[disableAutoScaleWithS...
@Override public GetSendStatisticsResult getSendStatistics(GetSendStatisticsRequest request) { request = beforeClientExecution(request); return executeGetSendStatistics(request); }
class class_name[name] begin[{] method[getSendStatistics, return_type[type[GetSendStatisticsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetSendStatistics, parameter[membe...
annotation[@] identifier[Override] Keyword[public] identifier[GetSendStatisticsResult] identifier[getSendStatistics] operator[SEP] identifier[GetSendStatisticsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[...
public ApplicationDefinition createApplication(ApplicationDefinition appDef) { Utils.require(!m_restClient.isClosed(), "Client has been closed"); Utils.require(appDef != null, "appDef"); Utils.require(appDef.getAppName() != null && appDef.getAppName().length() > 0, "App...
class class_name[name] begin[{] method[createApplication, return_type[type[ApplicationDefinition]], modifier[public], parameter[appDef]] begin[{] call[Utils.require, parameter[call[m_restClient.isClosed, parameter[]], literal["Client has been closed"]]] call[Utils.require, param...
Keyword[public] identifier[ApplicationDefinition] identifier[createApplication] operator[SEP] identifier[ApplicationDefinition] identifier[appDef] operator[SEP] { identifier[Utils] operator[SEP] identifier[require] operator[SEP] operator[!] identifier[m_restClient] operator[SEP] identifier[isClosed] operator[SEP...
private void doWork() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "doWork: " + ivTimer); TimedObjectWrapper timedObject; try { ivBeanId = ivBeanId.getInitializedBeanId(); // F743-506CodRev ...
class class_name[name] begin[{] method[doWork, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[member[.tc...
Keyword[private] Keyword[void] identifier[doWork] operator[SEP] operator[SEP] { Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identi...
public static SSLContext getInstance(String protocol) throws NoSuchAlgorithmException { GetInstance.Instance instance = GetInstance.getInstance ("SSLContext", SSLContextSpi.class, protocol); return new SSLContext((SSLContextSpi)instance.impl, instance.provider, ...
class class_name[name] begin[{] method[getInstance, return_type[type[SSLContext]], modifier[public static], parameter[protocol]] begin[{] local_variable[type[GetInstance], instance] return[ClassCreator(arguments=[Cast(expression=MemberReference(member=impl, postfix_operators=[], prefix_operator...
Keyword[public] Keyword[static] identifier[SSLContext] identifier[getInstance] operator[SEP] identifier[String] identifier[protocol] operator[SEP] Keyword[throws] identifier[NoSuchAlgorithmException] { identifier[GetInstance] operator[SEP] identifier[Instance] identifier[instance] operator[=] identifier[GetInsta...
public EmbeddedTomcat addContextEnvironment(String name, String value, String type) { final ContextEnvironment env = new ContextEnvironment(); env.setType(type); env.setName(name); env.setValue(value); addContextEnvironment(env); return this; }
class class_name[name] begin[{] method[addContextEnvironment, return_type[type[EmbeddedTomcat]], modifier[public], parameter[name, value, type]] begin[{] local_variable[type[ContextEnvironment], env] call[env.setType, parameter[member[.type]]] call[env.setName, parameter...
Keyword[public] identifier[EmbeddedTomcat] identifier[addContextEnvironment] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] , identifier[String] identifier[type] operator[SEP] { Keyword[final] identifier[ContextEnvironment] identifier[env] operator[=] Keyword[new] iden...
public boolean removeValue(Object name,Object value) { Object lo = super.get(name); Object ln=lo; int s=LazyList.size(lo); if (s>0) { ln=LazyList.remove(lo,value); if (ln==null) super.remove(name); else super...
class class_name[name] begin[{] method[removeValue, return_type[type[boolean]], modifier[public], parameter[name, value]] begin[{] local_variable[type[Object], lo] local_variable[type[Object], ln] local_variable[type[int], s] if[binary_operation[member[.s], >, literal[0]...
Keyword[public] Keyword[boolean] identifier[removeValue] operator[SEP] identifier[Object] identifier[name] , identifier[Object] identifier[value] operator[SEP] { identifier[Object] identifier[lo] operator[=] Keyword[super] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] ...
public static Node reduceNS(Node node, Namespaces parentNamespaces) throws MalformedElementException { Namespaces namespaces = parentNamespaces; if (node.getNodeType() == Node.ELEMENT_NODE) { Element element = (Element) node; namespaces = getNamespaces(element, parentNamespaces,...
class class_name[name] begin[{] method[reduceNS, return_type[type[Node]], modifier[public static], parameter[node, parentNamespaces]] begin[{] local_variable[type[Namespaces], namespaces] if[binary_operation[call[node.getNodeType, parameter[]], ==, member[Node.ELEMENT_NODE]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Node] identifier[reduceNS] operator[SEP] identifier[Node] identifier[node] , identifier[Namespaces] identifier[parentNamespaces] operator[SEP] Keyword[throws] identifier[MalformedElementException] { identifier[Namespaces] identifier[namespaces] operator[=] identifier[p...
public static String removeHtmlTag(String content, boolean withTagContent, String... tagNames) { String regex = null; for (String tagName : tagNames) { if (StrUtil.isBlank(tagName)) { continue; } tagName = tagName.trim(); // (?i)表示其后面的表达式忽略大小写 if (withTagContent) { // 标签及其包含内容 r...
class class_name[name] begin[{] method[removeHtmlTag, return_type[type[String]], modifier[public static], parameter[content, withTagContent, tagNames]] begin[{] local_variable[type[String], regex] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(ar...
Keyword[public] Keyword[static] identifier[String] identifier[removeHtmlTag] operator[SEP] identifier[String] identifier[content] , Keyword[boolean] identifier[withTagContent] , identifier[String] operator[...] identifier[tagNames] operator[SEP] { identifier[String] identifier[regex] operator[=] Other[null] op...
public Observable<ServiceResponse<Void>> deleteHybridConnectionWithServiceResponseAsync(String resourceGroupName, String name, String namespaceName, String relayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");...
class class_name[name] begin[{] method[deleteHybridConnectionWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name, namespaceName, relayName]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Void] operator[>] operator[>] identifier[deleteHybridConnectionWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[name] , identifier[String] ident...