code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private Token nextToken() { skipSpaces(); if (hasNextChar()) { char ch = nextChar(); if (Character.isJavaIdentifierStart(ch)) { StringBuffer buf = new StringBuffer(); buf.append(ch); while ((ch = peekChar()) != -1 ...
class class_name[name] begin[{] method[nextToken, return_type[type[Token]], modifier[private], parameter[]] begin[{] call[.skipSpaces, parameter[]] if[call[.hasNextChar, parameter[]]] begin[{] local_variable[type[char], ch] if[call[Character.i...
Keyword[private] identifier[Token] identifier[nextToken] operator[SEP] operator[SEP] { identifier[skipSpaces] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hasNextChar] operator[SEP] operator[SEP] operator[SEP] { Keyword[char] identifier[ch] operator[=] identifier[next...
@Override public ResourceSet<Document> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
class class_name[name] begin[{] method[read, return_type[type[ResourceSet]], modifier[public], parameter[client]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=client, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[ResourceSet] operator[<] identifier[Document] operator[>] identifier[read] operator[SEP] Keyword[final] identifier[TwilioRestClient] identifier[client] operator[SEP] { Keyword[return] Keyword[new] identifier[ResourceSet] operator[<] operator[>] operat...
@SuppressWarnings("unchecked") public <T> DynamicType.Builder<T> makeInterface(Class<T> interfaceType) { return (DynamicType.Builder<T>) makeInterface(Collections.<Type>singletonList(interfaceType)); }
class class_name[name] begin[{] method[makeInterface, return_type[type[DynamicType]], modifier[public], parameter[interfaceType]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=interfaceType, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[DynamicType] operator[SEP] identifier[Builder] operator[<] identifier[T] operator[>] identifier[makeInterface] operator[SEP] identifier[Class] operator[<] identifier[T]...
@Throws(IllegalEqualException.class) public static boolean notEquals(final boolean expected, final boolean check) { if (expected == check) { throw new IllegalEqualException(check); } return check; }
class class_name[name] begin[{] method[notEquals, return_type[type[boolean]], modifier[public static], parameter[expected, check]] begin[{] if[binary_operation[member[.expected], ==, member[.check]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=c...
annotation[@] identifier[Throws] operator[SEP] identifier[IllegalEqualException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[notEquals] operator[SEP] Keyword[final] Keyword[boolean] identifier[expected] , Keyword[final] Keyword[boolean] identifier[check] opera...
public static void bind(HttpServletRequest request) { if (request != null && threadLocal.get() != null) { throw new IllegalStateException("HttpServletRequestHolder.bind() called for a " + "thread that already has a request associated with it. It's likely that the request " ...
class class_name[name] begin[{] method[bind, return_type[void], modifier[public static], parameter[request]] begin[{] if[binary_operation[binary_operation[member[.request], !=, literal[null]], &&, binary_operation[call[threadLocal.get, parameter[]], !=, literal[null]]]] begin[{] Thr...
Keyword[public] Keyword[static] Keyword[void] identifier[bind] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[request] operator[!=] Other[null] operator[&&] identifier[threadLocal] operator[SEP] identifier[get] operator[SEP] operator[SEP] ope...
private static String digits(long value, int digits) { long hi = 1L << (digits * 4); return Long.toHexString(hi | (value & (hi - 1))).substring(1); }
class class_name[name] begin[{] method[digits, return_type[type[String]], modifier[private static], parameter[value, digits]] begin[{] local_variable[type[long], hi] return[call[Long.toHexString, parameter[binary_operation[member[.hi], |, binary_operation[member[.value], &, binary_operation[mem...
Keyword[private] Keyword[static] identifier[String] identifier[digits] operator[SEP] Keyword[long] identifier[value] , Keyword[int] identifier[digits] operator[SEP] { Keyword[long] identifier[hi] operator[=] Other[1L] operator[<<] operator[SEP] identifier[digits] operator[*] Other[4] operator[SEP] operator[SEP]...
private File getIndexDirectory() { File file = new File(luceneDirPath); if (!file.isDirectory()) { file.mkdir(); } return file; }
class class_name[name] begin[{] method[getIndexDirectory, return_type[type[File]], modifier[private], parameter[]] begin[{] local_variable[type[File], file] if[call[file.isDirectory, parameter[]]] begin[{] call[file.mkdir, parameter[]] else begin[{] None ...
Keyword[private] identifier[File] identifier[getIndexDirectory] operator[SEP] operator[SEP] { identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[luceneDirPath] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[file] operator[SEP] identi...
public static void close(FileDescriptor fd) throws IOException { try { if (fd != null && fd.valid()) { Libcore.os.close(fd); } } catch (ErrnoException errnoException) { throw errnoException.rethrowAsIOException(); } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public static], parameter[fd]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=fd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ...
Keyword[public] Keyword[static] Keyword[void] identifier[close] operator[SEP] identifier[FileDescriptor] identifier[fd] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[if] operator[SEP] identifier[fd] operator[!=] Other[null] operator[&&] identifier[fd] operator[SEP] ide...
public void marshall(DescribeCertificateAuthorityAuditReportRequest describeCertificateAuthorityAuditReportRequest, ProtocolMarshaller protocolMarshaller) { if (describeCertificateAuthorityAuditReportRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeCertificateAuthorityAuditReportRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeCertificateAuthorityAuditReportRequest], ==, literal[null]]] begin[{] Thr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeCertificateAuthorityAuditReportRequest] identifier[describeCertificateAuthorityAuditReportRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeCert...
public static Vec categoricalToInt(final Vec src) { if( src.isInt() && (src.domain()==null || src.domain().length == 0)) return copyOver(src, Vec.T_NUM, null); if( !src.isCategorical() ) throw new IllegalArgumentException("categoricalToInt conversion only works on categorical columns."); // check if the 1st...
class class_name[name] begin[{] method[categoricalToInt, return_type[type[Vec]], modifier[public static], parameter[src]] begin[{] if[binary_operation[call[src.isInt, parameter[]], &&, binary_operation[binary_operation[call[src.domain, parameter[]], ==, literal[null]], ||, binary_operation[call...
Keyword[public] Keyword[static] identifier[Vec] identifier[categoricalToInt] operator[SEP] Keyword[final] identifier[Vec] identifier[src] operator[SEP] { Keyword[if] operator[SEP] identifier[src] operator[SEP] identifier[isInt] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[src] operator[SEP] ...
public void connectBeginToEnd(SGraphSegment segment) { if (segment.getGraph() != getGraph()) { throw new IllegalArgumentException(); } final SGraphPoint point = new SGraphPoint(getGraph()); setBegin(point); segment.setEnd(point); final SGraph g = getGraph(); assert g != null; g.updatePointCount(-1);...
class class_name[name] begin[{] method[connectBeginToEnd, return_type[void], modifier[public], parameter[segment]] begin[{] if[binary_operation[call[segment.getGraph, parameter[]], !=, call[.getGraph, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=...
Keyword[public] Keyword[void] identifier[connectBeginToEnd] operator[SEP] identifier[SGraphSegment] identifier[segment] operator[SEP] { Keyword[if] operator[SEP] identifier[segment] operator[SEP] identifier[getGraph] operator[SEP] operator[SEP] operator[!=] identifier[getGraph] operator[SEP] operator[SEP] operat...
@SuppressWarnings("unchecked") protected static NodeDiscoveryProvider buildLocationProvider(ClusterConfig config) { NodeDiscoveryConfig discoveryProviderConfig = config.getDiscoveryConfig(); if (discoveryProviderConfig != null) { return discoveryProviderConfig.getType().newProvider(discoveryProviderConf...
class class_name[name] begin[{] method[buildLocationProvider, return_type[type[NodeDiscoveryProvider]], modifier[static protected], parameter[config]] begin[{] local_variable[type[NodeDiscoveryConfig], discoveryProviderConfig] if[binary_operation[member[.discoveryProviderConfig], !=, li...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[static] identifier[NodeDiscoveryProvider] identifier[buildLocationProvider] operator[SEP] identifier[ClusterConfig] identifier[config] operator[SEP] { identifier[NodeDiscoveryConfig] identifier[disco...
private void filterJPAParameterInfo(Type type, String name, String fieldName) { String attributeName = getAttributeName(fieldName); Attribute entityAttribute = ((MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(persistenceUnit)) .getEntityAttribute(entityC...
class class_name[name] begin[{] method[filterJPAParameterInfo, return_type[void], modifier[private], parameter[type, name, fieldName]] begin[{] local_variable[type[String], attributeName] local_variable[type[Attribute], entityAttribute] local_variable[type[Class], fieldType] ...
Keyword[private] Keyword[void] identifier[filterJPAParameterInfo] operator[SEP] identifier[Type] identifier[type] , identifier[String] identifier[name] , identifier[String] identifier[fieldName] operator[SEP] { identifier[String] identifier[attributeName] operator[=] identifier[getAttributeName] operator[SEP] ...
private void setUnicodeLocaleExtension(String subtags) { // wipe out existing attributes/keywords if (_uattributes != null) { _uattributes.clear(); } if (_ukeywords != null) { _ukeywords.clear(); } StringTokenIterator itr = new StringTokenIterator...
class class_name[name] begin[{] method[setUnicodeLocaleExtension, return_type[void], modifier[private], parameter[subtags]] begin[{] if[binary_operation[member[._uattributes], !=, literal[null]]] begin[{] call[_uattributes.clear, parameter[]] else begin[{] None ...
Keyword[private] Keyword[void] identifier[setUnicodeLocaleExtension] operator[SEP] identifier[String] identifier[subtags] operator[SEP] { Keyword[if] operator[SEP] identifier[_uattributes] operator[!=] Other[null] operator[SEP] { identifier[_uattributes] operator[SEP] identifier[clear] operator[SEP] o...
boolean advance(BytesRef word) throws IOException { if (prefixBuf == null) { // first advance //set prefixBuf to word temporary. When advance() completes, we either null out or copy. prefixBuf = word; prefixBufOnLoan = true; if (seekPrefix()) {//... and we have to ensureBufIsACopy();...
class class_name[name] begin[{] method[advance, return_type[type[boolean]], modifier[default], parameter[word]] begin[{] if[binary_operation[member[.prefixBuf], ==, literal[null]]] begin[{] assign[member[.prefixBuf], member[.word]] assign[member[....
Keyword[boolean] identifier[advance] operator[SEP] identifier[BytesRef] identifier[word] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[prefixBuf] operator[==] Other[null] operator[SEP] { identifier[prefixBuf] operator[=] identifier[word] operator[SEP] ide...
public void setTickmarkDirection(final Direction DIRECTION) { this.tickmarkDirection = DIRECTION; init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
class class_name[name] begin[{] method[setTickmarkDirection, return_type[void], modifier[public], parameter[DIRECTION]] begin[{] assign[THIS[member[None.tickmarkDirection]], member[.DIRECTION]] call[.init, parameter[call[.getInnerBounds, parameter[]], call[.getInnerBounds, param...
Keyword[public] Keyword[void] identifier[setTickmarkDirection] operator[SEP] Keyword[final] identifier[Direction] identifier[DIRECTION] operator[SEP] { Keyword[this] operator[SEP] identifier[tickmarkDirection] operator[=] identifier[DIRECTION] operator[SEP] identifier[init] operator[SEP] identifier[getInnerBound...
public CharsetBuilder convert(String nioCharsetName, String cloudhopperCharset) { mappings.add(new CharsetMapping(nioCharsetName, cloudhopperCharset)); return this; }
class class_name[name] begin[{] method[convert, return_type[type[CharsetBuilder]], modifier[public], parameter[nioCharsetName, cloudhopperCharset]] begin[{] call[mappings.add, parameter[ClassCreator(arguments=[MemberReference(member=nioCharsetName, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[CharsetBuilder] identifier[convert] operator[SEP] identifier[String] identifier[nioCharsetName] , identifier[String] identifier[cloudhopperCharset] operator[SEP] { identifier[mappings] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[CharsetMapping] operator[SEP] id...
private static void addMinistryPerYearToMap(final String name, final Map<Integer, List<GovernmentBodyAnnualSummary>> map, final HSSFSheet mySheet) { if (mySheet.getSheetName().chars().allMatch(Character::isDigit)) { final int year = Integer.parseInt(mySheet.getSheetName()); final List<GovernmentBodyAnnualS...
class class_name[name] begin[{] method[addMinistryPerYearToMap, return_type[void], modifier[private static], parameter[name, map, mySheet]] begin[{] if[call[mySheet.getSheetName, parameter[]]] begin[{] local_variable[type[int], year] local_variable[type[List], yearList] ...
Keyword[private] Keyword[static] Keyword[void] identifier[addMinistryPerYearToMap] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Map] operator[<] identifier[Integer] , identifier[List] operator[<] identifier[GovernmentBodyAnnualSummary] operator[>] operator[>] identifier...
public static Date addMonth(Date date1, int addMonth) { Date resultDate = null; Calendar c = Calendar.getInstance(); c.setTime(date1); // 设置当前日期 c.add(Calendar.MONTH, addMonth); // 日期加1 resultDate = c.getTime(); // 结果 return resultDate; }
class class_name[name] begin[{] method[addMonth, return_type[type[Date]], modifier[public static], parameter[date1, addMonth]] begin[{] local_variable[type[Date], resultDate] local_variable[type[Calendar], c] call[c.setTime, parameter[member[.date1]]] call[c.add,...
Keyword[public] Keyword[static] identifier[Date] identifier[addMonth] operator[SEP] identifier[Date] identifier[date1] , Keyword[int] identifier[addMonth] operator[SEP] { identifier[Date] identifier[resultDate] operator[=] Other[null] operator[SEP] identifier[Calendar] identifier[c] operator[=] identifier[Calen...
public static <T> Position.Readable<T> readOnly(final Typed<T> typed, final Supplier<T> supplier) { return readOnly(Validate.notNull(typed, "type").getType(), supplier); }
class class_name[name] begin[{] method[readOnly, return_type[type[Position]], modifier[public static], parameter[typed, supplier]] begin[{] return[call[.readOnly, parameter[call[Validate.notNull, parameter[member[.typed], literal["type"]]], member[.supplier]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Position] operator[SEP] identifier[Readable] operator[<] identifier[T] operator[>] identifier[readOnly] operator[SEP] Keyword[final] identifier[Typed] operator[<] identifier[T] operator[>] identifier[typed] , Keyword[final] identifier[Sup...
public long position(final byte[] pattern, final long start) throws SQLException { if (start < 1) { throw SQLExceptionMapper.getSQLException("Start should be > 0, first position is 1."); } if (start > actualSize) { throw SQLExceptionMapper.getSQLException("Start should be...
class class_name[name] begin[{] method[position, return_type[type[long]], modifier[public], parameter[pattern, start]] begin[{] if[binary_operation[member[.start], <, literal[1]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_ope...
Keyword[public] Keyword[long] identifier[position] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[pattern] , Keyword[final] Keyword[long] identifier[start] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[if] operator[SEP] identifier[start] operator[<] Other[1]...
@SuppressWarnings("unchecked") public static List<Long> getAt(long[] array, ObjectRange range) { return primitiveArrayGet(array, range); }
class class_name[name] begin[{] method[getAt, return_type[type[List]], modifier[public static], parameter[array, range]] begin[{] return[call[.primitiveArrayGet, parameter[member[.array], member[.range]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Long] operator[>] identifier[getAt] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[array] , identifier[ObjectRange] identifier[range] operat...
private File resolveIndexDirectoryPath() throws IOException { if (StringUtils.isEmpty(indexDirectoryPath)) { indexDirectoryPath = System.getProperty("java.io.tmpdir") + appContext.getApplicationName(); } File dir = new File(indexDirectoryPath, getClass().getPackage().getName...
class class_name[name] begin[{] method[resolveIndexDirectoryPath, return_type[type[File]], modifier[private], parameter[]] begin[{] if[call[StringUtils.isEmpty, parameter[member[.indexDirectoryPath]]]] begin[{] assign[member[.indexDirectoryPath], binary_operation[call[Sy...
Keyword[private] identifier[File] identifier[resolveIndexDirectoryPath] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[indexDirectoryPath] operator[SEP] operator[SEP] { i...
@SafeVarargs public final RequestBuilder params(Map.Entry<String, ?>... params) { this.params = Lists.of(params); return this; }
class class_name[name] begin[{] method[params, return_type[type[RequestBuilder]], modifier[final public], parameter[params]] begin[{] assign[THIS[member[None.params]], call[Lists.of, parameter[member[.params]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[final] identifier[RequestBuilder] identifier[params] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , operator[?] operator[>] operator[...] identifier[params] operator[SEP] { Keyword[this] operator[SEP] i...
public static Header[] parseHeaders(InputStream is, String charset) throws IOException, HttpException { LOG.trace("enter HeaderParser.parseHeaders(InputStream, String)"); ArrayList<Header> headers = new ArrayList<Header>(); String name = null; StringBuffer value = null; for (; ;...
class class_name[name] begin[{] method[parseHeaders, return_type[type[Header]], modifier[public static], parameter[is, charset]] begin[{] call[LOG.trace, parameter[literal["enter HeaderParser.parseHeaders(InputStream, String)"]]] local_variable[type[ArrayList], headers] local_va...
Keyword[public] Keyword[static] identifier[Header] operator[SEP] operator[SEP] identifier[parseHeaders] operator[SEP] identifier[InputStream] identifier[is] , identifier[String] identifier[charset] operator[SEP] Keyword[throws] identifier[IOException] , identifier[HttpException] { identifier[LOG] operator[SEP]...
@Reference(name = "listener", service = VirtualHostListener.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected void setListener(ServiceReference<VirtualHostListener> reference) { _listeners.addReference(reference); notifyListener(_listeners.getService(ref...
class class_name[name] begin[{] method[setListener, return_type[void], modifier[protected], parameter[reference]] begin[{] call[_listeners.addReference, parameter[member[.reference]]] call[.notifyListener, parameter[call[_listeners.getService, parameter[member[.reference]]]]] ...
annotation[@] identifier[Reference] operator[SEP] identifier[name] operator[=] literal[String] , identifier[service] operator[=] identifier[VirtualHostListener] operator[SEP] Keyword[class] , identifier[policy] operator[=] identifier[ReferencePolicy] operator[SEP] identifier[DYNAMIC] , identifier[cardinality] operat...
public static VectorByteBufferedIntegral4s64 createWithBase( final ByteBuffer b, final MutableLongType base, final int offset) { return new VectorByteBufferedIntegral4s64(b, base, offset); }
class class_name[name] begin[{] method[createWithBase, return_type[type[VectorByteBufferedIntegral4s64]], modifier[public static], parameter[b, base, offset]] begin[{] return[ClassCreator(arguments=[MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRe...
Keyword[public] Keyword[static] identifier[VectorByteBufferedIntegral4s64] identifier[createWithBase] operator[SEP] Keyword[final] identifier[ByteBuffer] identifier[b] , Keyword[final] identifier[MutableLongType] identifier[base] , Keyword[final] Keyword[int] identifier[offset] operator[SEP] { Keyword[return] ...
public List<File> findNRecentSnapshots(int n) throws IOException { List<File> files = Util.sortDataDir(snapDir.listFiles(), "snapshot", false); int i = 0; List<File> list = new ArrayList<File>(); for (File f: files) { if (i==n) break; i++; ...
class class_name[name] begin[{] method[findNRecentSnapshots, return_type[type[List]], modifier[public], parameter[n]] begin[{] local_variable[type[List], files] local_variable[type[int], i] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=...
Keyword[public] identifier[List] operator[<] identifier[File] operator[>] identifier[findNRecentSnapshots] operator[SEP] Keyword[int] identifier[n] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[File] operator[>] identifier[files] operator[=] identifier[Util] oper...
@Override public void filterResponse(HttpResponse response, HttpMessageContents contents, HttpMessageInfo messageInfo) { if (contents.getBinaryContents().length > threshold) { log.warning("Too large response " + messageInfo.getUrl() + ": " + contents.getBinaryContents().length + " bytes"); if (log.isL...
class class_name[name] begin[{] method[filterResponse, return_type[void], modifier[public], parameter[response, contents, messageInfo]] begin[{] if[binary_operation[call[contents.getBinaryContents, parameter[]], >, member[.threshold]]] begin[{] call[log.warning, paramete...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[filterResponse] operator[SEP] identifier[HttpResponse] identifier[response] , identifier[HttpMessageContents] identifier[contents] , identifier[HttpMessageInfo] identifier[messageInfo] operator[SEP] { Keyword[if] operator[SEP] identifi...
@Deprecated @SuppressWarnings("rawtypes") public static void populateArgumentsForCriteria(Class<?> targetClass, Criteria c, Map argMap, ConversionService conversionService) { populateArgumentsForCriteria(null, targetClass, c, argMap, conversionService); }
class class_name[name] begin[{] method[populateArgumentsForCriteria, return_type[void], modifier[public static], parameter[targetClass, c, argMap, conversionService]] begin[{] call[.populateArgumentsForCriteria, parameter[literal[null], member[.targetClass], member[.c], member[.argMap], member[...
annotation[@] identifier[Deprecated] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[populateArgumentsForCriteria] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[targetClass] , identifier[Cri...
public String getArguments(MethodInvocation invocation) { try { Object[] args = invocation.getArguments(); if (args == null) return null; if (args.length != 1) return null;// 参数是一个主键 if (args[0] == null) return null; return args[0].toString(); } catch (Exception ex) { De...
class class_name[name] begin[{] method[getArguments, return_type[type[String]], modifier[public], parameter[invocation]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getArguments, p...
Keyword[public] identifier[String] identifier[getArguments] operator[SEP] identifier[MethodInvocation] identifier[invocation] operator[SEP] { Keyword[try] { identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[=] identifier[invocation] operator[SEP] identifier[getArguments] operato...
public void translateAndSetInterestOps(int ops, SelectionKeyImpl sk) { int newOps = 0; if ((ops & SelectionKey.OP_READ) != 0) newOps |= PollArrayWrapper.POLLIN; if ((ops & SelectionKey.OP_WRITE) != 0) newOps |= PollArrayWrapper.POLLOUT; if ((ops & SelectionKey.OP...
class class_name[name] begin[{] method[translateAndSetInterestOps, return_type[void], modifier[public], parameter[ops, sk]] begin[{] local_variable[type[int], newOps] if[binary_operation[binary_operation[member[.ops], &, member[SelectionKey.OP_READ]], !=, literal[0]]] begin[{] ...
Keyword[public] Keyword[void] identifier[translateAndSetInterestOps] operator[SEP] Keyword[int] identifier[ops] , identifier[SelectionKeyImpl] identifier[sk] operator[SEP] { Keyword[int] identifier[newOps] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[ops] operator[&] ide...
public Matrix4x3d reflect(double a, double b, double c, double d) { return reflect(a, b, c, d, this); }
class class_name[name] begin[{] method[reflect, return_type[type[Matrix4x3d]], modifier[public], parameter[a, b, c, d]] begin[{] return[call[.reflect, parameter[member[.a], member[.b], member[.c], member[.d], THIS[]]]] end[}] END[}]
Keyword[public] identifier[Matrix4x3d] identifier[reflect] operator[SEP] Keyword[double] identifier[a] , Keyword[double] identifier[b] , Keyword[double] identifier[c] , Keyword[double] identifier[d] operator[SEP] { Keyword[return] identifier[reflect] operator[SEP] identifier[a] , identifier[b] , identifier[...
public SID addSubAuthority(byte[] sub) { if (sub == null || sub.length != 4) { throw new IllegalArgumentException("Invalid sub-authority to be added"); } this.subAuthorities.add(Arrays.copyOf(sub, sub.length)); return this; }
class class_name[name] begin[{] method[addSubAuthority, return_type[type[SID]], modifier[public], parameter[sub]] begin[{] if[binary_operation[binary_operation[member[.sub], ==, literal[null]], ||, binary_operation[member[sub.length], !=, literal[4]]]] begin[{] ThrowStatement(expres...
Keyword[public] identifier[SID] identifier[addSubAuthority] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[sub] operator[SEP] { Keyword[if] operator[SEP] identifier[sub] operator[==] Other[null] operator[||] identifier[sub] operator[SEP] identifier[length] operator[!=] Other[4] operator[SEP] ...
protected int unmarkFrames() { final int res = this.frames.size(); while (!this.frames.empty()) { final CLFrame f = this.control.get(this.frames.back()); this.frames.pop(); assert f.mark(); f.setMark(false); } return res; }
class class_name[name] begin[{] method[unmarkFrames, return_type[type[int]], modifier[protected], parameter[]] begin[{] local_variable[type[int], res] while[THIS[member[None.frames]call[None.empty, parameter[]]]] begin[{] local_variable[type[CLFrame], f] ...
Keyword[protected] Keyword[int] identifier[unmarkFrames] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[res] operator[=] Keyword[this] operator[SEP] identifier[frames] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] operator[!] Keyword[t...
public void putInt(int index, int v) { // Reversing the endian v = Integer.reverseBytes(v); unsafe.putInt(base, address + index, v); }
class class_name[name] begin[{] method[putInt, return_type[void], modifier[public], parameter[index, v]] begin[{] assign[member[.v], call[Integer.reverseBytes, parameter[member[.v]]]] call[unsafe.putInt, parameter[member[.base], binary_operation[member[.address], +, member[.inde...
Keyword[public] Keyword[void] identifier[putInt] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[v] operator[SEP] { identifier[v] operator[=] identifier[Integer] operator[SEP] identifier[reverseBytes] operator[SEP] identifier[v] operator[SEP] operator[SEP] identifier[unsafe] operator[SEP]...
@Deprecated public static int getEPSGCodefromUTS(Coordinate refLonLat) { // define base EPSG code value of all UTM zones; int epsg_code = 32600; // add 100 for all zones in southern hemisphere if (refLonLat.y < 0) { epsg_code += 100; } // finally, add zone number to code epsg_c...
class class_name[name] begin[{] method[getEPSGCodefromUTS, return_type[type[int]], modifier[public static], parameter[refLonLat]] begin[{] local_variable[type[int], epsg_code] if[binary_operation[member[refLonLat.y], <, literal[0]]] begin[{] assign[member[.epsg_c...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[int] identifier[getEPSGCodefromUTS] operator[SEP] identifier[Coordinate] identifier[refLonLat] operator[SEP] { Keyword[int] identifier[epsg_code] operator[=] Other[32600] operator[SEP] Keyword[if] operator[SEP] identifier[refLonLat] ope...
@Override protected void setupHtmlData(final ActionRuntime runtime) { super.setupHtmlData(runtime); runtime.registerData("helpLink", systemHelper.getHelpLink(fessConfig.getOnlineHelpNameSuggest())); runtime.registerData("totalWordsNum", suggestHelper.getAllWordsNum()); runtime.regist...
class class_name[name] begin[{] method[setupHtmlData, return_type[void], modifier[protected], parameter[runtime]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=runtime, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setupHtmlData, postfix_operat...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[setupHtmlData] operator[SEP] Keyword[final] identifier[ActionRuntime] identifier[runtime] operator[SEP] { Keyword[super] operator[SEP] identifier[setupHtmlData] operator[SEP] identifier[runtime] operator[SEP] operator[SEP] identifier[...
public static synchronized JFileChooser getFileChooser() { // NOPMD if (fileChooser == null) { final String currentDirectory = System.getProperty("user.dir"); fileChooser = new JFileChooser(currentDirectory); } return fileChooser; }
class class_name[name] begin[{] method[getFileChooser, return_type[type[JFileChooser]], modifier[synchronized public static], parameter[]] begin[{] if[binary_operation[member[.fileChooser], ==, literal[null]]] begin[{] local_variable[type[String], currentDirectory] ...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[JFileChooser] identifier[getFileChooser] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fileChooser] operator[==] Other[null] operator[SEP] { Keyword[final] identifier[String] identifier[currentDirectory] operator[=] ...
public void setSelection(int[] selectedIndicies) { for (int index : selectedIndicies) { if (index >= 0 && index < mSelection.length) { mSelection[index] = true; } else { throw new IllegalArgumentException("Index " + index + " is out of bounds."); } } refreshDisplayValue(); }
class class_name[name] begin[{] method[setSelection, return_type[void], modifier[public], parameter[selectedIndicies]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=index, postfix_operator...
Keyword[public] Keyword[void] identifier[setSelection] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[selectedIndicies] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[index] operator[:] identifier[selectedIndicies] operator[SEP] { Keyword[if] operator[SEP] ident...
@Override public final FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException { if (delegatePostingsFormat != null) { return new MtasFieldsConsumer( delegatePostingsFormat.fieldsConsumer(state), state, getName(), delegatePostingsFormat.getName()); } else { ...
class class_name[name] begin[{] method[fieldsConsumer, return_type[type[FieldsConsumer]], modifier[final public], parameter[state]] begin[{] if[binary_operation[member[.delegatePostingsFormat], !=, literal[null]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[M...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[FieldsConsumer] identifier[fieldsConsumer] operator[SEP] identifier[SegmentWriteState] identifier[state] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[delegatePostingsFormat] operator[!=] O...
public static AccessRequest createArRandomUuid(String admDom) { return new AccessRequest(java.util.UUID.randomUUID().toString(), admDom); }
class class_name[name] begin[{] method[createArRandomUuid, return_type[type[AccessRequest]], modifier[public static], parameter[admDom]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=randomUUID, postfix_operators=[], prefix_operators=[], qualifier=java.util.UUID, selecto...
Keyword[public] Keyword[static] identifier[AccessRequest] identifier[createArRandomUuid] operator[SEP] identifier[String] identifier[admDom] operator[SEP] { Keyword[return] Keyword[new] identifier[AccessRequest] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[UUID] operator...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case XAnnotationsPackage.XANNOTATION_ELEMENT_VALUE_PAIR__VALUE: return value != null; case XAnnotationsPackage.XANNOTATION_ELEMENT_VALUE_PAIR__ELEMENT: return element != null; } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=XANNOTATION_ELEMENT_VALUE_PAIR__VALUE, postfix_operators=[], prefix_operators=[], qualifier=XAnnotationsPac...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[XAnnotationsPackage] operator[SEP] identifier[XANNOTATION...
private void construct(DerValue derVal) throws IOException { serialNum = derVal.getBigInteger(); if (derVal.data.available() != 0) { throw new IOException("Excess SerialNumber data"); } }
class class_name[name] begin[{] method[construct, return_type[void], modifier[private], parameter[derVal]] begin[{] assign[member[.serialNum], call[derVal.getBigInteger, parameter[]]] if[binary_operation[call[derVal.data.available, parameter[]], !=, literal[0]]] begin[{] ...
Keyword[private] Keyword[void] identifier[construct] operator[SEP] identifier[DerValue] identifier[derVal] operator[SEP] Keyword[throws] identifier[IOException] { identifier[serialNum] operator[=] identifier[derVal] operator[SEP] identifier[getBigInteger] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope...
public Set getSIBDestinationLocalitySet(String busName, String uuid, boolean newCache) throws SIBExceptionBase, SIBExceptionDestinationNotFound { String thisMethodName = "getSIBDestinationLocalitySet"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisM...
class class_name[name] begin[{] method[getSIBDestinationLocalitySet, return_type[type[Set]], modifier[public], parameter[busName, uuid, newCache]] begin[{] local_variable[type[String], thisMethodName] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc...
Keyword[public] identifier[Set] identifier[getSIBDestinationLocalitySet] operator[SEP] identifier[String] identifier[busName] , identifier[String] identifier[uuid] , Keyword[boolean] identifier[newCache] operator[SEP] Keyword[throws] identifier[SIBExceptionBase] , identifier[SIBExceptionDestinationNotFound] { ...
private static void isPrimaryAlive(String zkRegistry) throws IOException { String parts[] = zkRegistry.split(":"); if (parts.length != 2) { throw new IllegalArgumentException("Invalid Address : " + zkRegistry); } String host = parts[0]; int port = Integer.parseInt(parts[1]); InetSocketAddr...
class class_name[name] begin[{] method[isPrimaryAlive, return_type[void], modifier[private static], parameter[zkRegistry]] begin[{] local_variable[type[String], parts] if[binary_operation[member[parts.length], !=, literal[2]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[private] Keyword[static] Keyword[void] identifier[isPrimaryAlive] operator[SEP] identifier[String] identifier[zkRegistry] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[parts] operator[SEP] operator[SEP] operator[=] identifier[zkRegistry] operator[SEP] identifier[sp...
@Override public Multimedia addMultimediaToPerson(final Person person, final String string) { if (person == null || string == null) { return new Multimedia(); } final Multimedia mm = new Multimedia(person, "Multimedia", string); person.insert(mm); retu...
class class_name[name] begin[{] method[addMultimediaToPerson, return_type[type[Multimedia]], modifier[public], parameter[person, string]] begin[{] if[binary_operation[binary_operation[member[.person], ==, literal[null]], ||, binary_operation[member[.string], ==, literal[null]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] identifier[Multimedia] identifier[addMultimediaToPerson] operator[SEP] Keyword[final] identifier[Person] identifier[person] , Keyword[final] identifier[String] identifier[string] operator[SEP] { Keyword[if] operator[SEP] identifier[person] operator[==] Other[nu...
@Deprecated public void writeDataPage( int valueCount, int uncompressedPageSize, BytesInput bytes, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding) throws IOException { state = state.write(); // We are unable to build indexes without rowCount so skip them for th...
class class_name[name] begin[{] method[writeDataPage, return_type[void], modifier[public], parameter[valueCount, uncompressedPageSize, bytes, rlEncoding, dlEncoding, valuesEncoding]] begin[{] assign[member[.state], call[state.write, parameter[]]] assign[member[.offsetIndexBuilde...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[void] identifier[writeDataPage] operator[SEP] Keyword[int] identifier[valueCount] , Keyword[int] identifier[uncompressedPageSize] , identifier[BytesInput] identifier[bytes] , identifier[Encoding] identifier[rlEncoding] , identifier[Encoding] identifier[dl...
public void parse(String str) { if (buffer.length() > 0) { str = buffer.toString().concat(str); buffer = new StringBuilder(); } Reader reader = new StringReader(str); try { try { parse(reader); } finally { reader.close(); } } catch (IOException ex) { /* ignore */ } }
class class_name[name] begin[{] method[parse, return_type[void], modifier[public], parameter[str]] begin[{] if[binary_operation[call[buffer.length, parameter[]], >, literal[0]]] begin[{] assign[member[.str], call[buffer.toString, parameter[]]] ass...
Keyword[public] Keyword[void] identifier[parse] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[buffer] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[str] operator[=] identifier[buffer]...
public boolean queryAllowOasisXMLCatalogPI () { String allow = System.getProperty(pAllowPI); if (allow == null) { if (resources==null) readProperties(); if (resources==null) return defaultOasisXMLCatalogPI; try { allow = resources.getString("allow-oasis-xml-catalog-pi"); } catch (Missi...
class class_name[name] begin[{] method[queryAllowOasisXMLCatalogPI, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[String], allow] if[binary_operation[member[.allow], ==, literal[null]]] begin[{] if[binary_operation[member...
Keyword[public] Keyword[boolean] identifier[queryAllowOasisXMLCatalogPI] operator[SEP] operator[SEP] { identifier[String] identifier[allow] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[pAllowPI] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[allo...
public synchronized void start() throws IOException { if (listenerThreads.size() == 0) { List<InetAddress> addresses = hostAddress == null ? NetworkUtil.getMulticastAddresses() : Arrays.asList(hostAddress); if (addresses.size() == 0) { logHandler.info("No suitable address...
class class_name[name] begin[{] method[start, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[call[listenerThreads.size, parameter[]], ==, literal[0]]] begin[{] local_variable[type[List], addresses] if[binary_operat...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[start] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[listenerThreads] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { identifier[...
private static String replaceBooleanStringByIntegerRepresentation(final String possibleBooleanString) { if (possibleBooleanString.equals(TRUE.toString())) { return "1"; } else if (possibleBooleanString.equals(FALSE.toString())) { return "0"; } return possibleBoole...
class class_name[name] begin[{] method[replaceBooleanStringByIntegerRepresentation, return_type[type[String]], modifier[private static], parameter[possibleBooleanString]] begin[{] if[call[possibleBooleanString.equals, parameter[call[TRUE.toString, parameter[]]]]] begin[{] return[lit...
Keyword[private] Keyword[static] identifier[String] identifier[replaceBooleanStringByIntegerRepresentation] operator[SEP] Keyword[final] identifier[String] identifier[possibleBooleanString] operator[SEP] { Keyword[if] operator[SEP] identifier[possibleBooleanString] operator[SEP] identifier[equals] operator[SEP] ...
void prepare(Map stormConf, TopologyContext context, OutputCollector collector, KeyValueState<TaskStream, WindowState> windowState) { init(stormConf, context, collector, windowState); super.prepare(stormConf, context, collector); }
class class_name[name] begin[{] method[prepare, return_type[void], modifier[default], parameter[stormConf, context, collector, windowState]] begin[{] call[.init, parameter[member[.stormConf], member[.context], member[.collector], member[.windowState]]] SuperMethodInvocation(argu...
Keyword[void] identifier[prepare] operator[SEP] identifier[Map] identifier[stormConf] , identifier[TopologyContext] identifier[context] , identifier[OutputCollector] identifier[collector] , identifier[KeyValueState] operator[<] identifier[TaskStream] , identifier[WindowState] operator[>] identifier[windowState] ope...
public Sheet pack(ArrayList files, int width, int height, int border, File out) throws IOException { ArrayList images = new ArrayList(); try { for (int i=0;i<files.size();i++) { File file = (File) files.get(i); Sprite sprite = new Sprite(file.getName(), ImageIO.read(file)); images.add...
class class_name[name] begin[{] method[pack, return_type[type[Sheet]], modifier[public], parameter[files, width, height, border, out]] begin[{] local_variable[type[ArrayList], images] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotatio...
Keyword[public] identifier[Sheet] identifier[pack] operator[SEP] identifier[ArrayList] identifier[files] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[int] identifier[border] , identifier[File] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[A...
public MockResponse handlePatch(String path, String s) { MockResponse response = new MockResponse(); String body = doGet(path); if (body == null) { response.setResponseCode(404); } else { try { JsonNode patch = context.getMapper().readTree(s); ...
class class_name[name] begin[{] method[handlePatch, return_type[type[MockResponse]], modifier[public], parameter[path, s]] begin[{] local_variable[type[MockResponse], response] local_variable[type[String], body] if[binary_operation[member[.body], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[MockResponse] identifier[handlePatch] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[s] operator[SEP] { identifier[MockResponse] identifier[response] operator[=] Keyword[new] identifier[MockResponse] operator[SEP] operator[SEP] operator[SEP] identifi...
public <T extends HistoricalEntity<?>> List<T> getCurrent(Class<T> historicalEntityCls) { EntityManager entityManager = this.entityManagerProvider.get(); CriteriaBuilder builder = entityManager.getCriteriaBuilder(); CriteriaQuery<T> criteriaQuery = builder.createQuery(historicalEntityCls); ...
class class_name[name] begin[{] method[getCurrent, return_type[type[List]], modifier[public], parameter[historicalEntityCls]] begin[{] local_variable[type[EntityManager], entityManager] local_variable[type[CriteriaBuilder], builder] local_variable[type[CriteriaQuery], criteriaQuery] ...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[HistoricalEntity] operator[<] operator[?] operator[>] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getCurrent] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[historicalEntityCls] oper...
public List<TimeUnit> clearUnits() { List<TimeUnit> result = getUnits(); cachedUnits = null; units.clear(); return result; }
class class_name[name] begin[{] method[clearUnits, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], result] assign[member[.cachedUnits], literal[null]] call[units.clear, parameter[]] return[member[.result]] end[}] EN...
Keyword[public] identifier[List] operator[<] identifier[TimeUnit] operator[>] identifier[clearUnits] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[TimeUnit] operator[>] identifier[result] operator[=] identifier[getUnits] operator[SEP] operator[SEP] operator[SEP] identifier[cachedUnits] op...
@SuppressWarnings("WeakerAccess") public void registerFont(String fontName, InputStream fontStream) throws IOException { File fontFile = File.createTempFile("pdfboxgfx2dfont", ".ttf"); FileOutputStream out = new FileOutputStream(fontFile); try { IOUtils.copy(fontStream, out); } finally { out.close(); }...
class class_name[name] begin[{] method[registerFont, return_type[void], modifier[public], parameter[fontName, fontStream]] begin[{] local_variable[type[File], fontFile] local_variable[type[FileOutputStream], out] TryStatement(block=[StatementExpression(expression=MethodInvocation(argume...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[registerFont] operator[SEP] identifier[String] identifier[fontName] , identifier[InputStream] identifier[fontStream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[...
public MethodMetaArgs createinitMethod(HandlerMetaDef handlerMetaDef, EventModel em) { String p_methodName = handlerMetaDef.getInitMethod(); if (p_methodName == null) return null; return createCRUDMethodMetaArgs(p_methodName, em); }
class class_name[name] begin[{] method[createinitMethod, return_type[type[MethodMetaArgs]], modifier[public], parameter[handlerMetaDef, em]] begin[{] local_variable[type[String], p_methodName] if[binary_operation[member[.p_methodName], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[public] identifier[MethodMetaArgs] identifier[createinitMethod] operator[SEP] identifier[HandlerMetaDef] identifier[handlerMetaDef] , identifier[EventModel] identifier[em] operator[SEP] { identifier[String] identifier[p_methodName] operator[=] identifier[handlerMetaDef] operator[SEP] identifier[getInitM...
@Override public boolean shutdown() throws InterruptedException { // Prevent shutdown before the server has properly started managerLatch.await(); if (manager == null) return false; manager.shutdownFramework(); manager.waitForShutdown(); return true; ...
class class_name[name] begin[{] method[shutdown, return_type[type[boolean]], modifier[public], parameter[]] begin[{] call[managerLatch.await, parameter[]] if[binary_operation[member[.manager], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[shutdown] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { identifier[managerLatch] operator[SEP] identifier[await] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[manager] ...
public static lbgroup get(nitro_service service, String name) throws Exception{ lbgroup obj = new lbgroup(); obj.set_name(name); lbgroup response = (lbgroup) obj.get_resource(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[lbgroup]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[lbgroup], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[lbgroup], response] return[member[.resp...
Keyword[public] Keyword[static] identifier[lbgroup] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[lbgroup] identifier[obj] operator[=] Keyword[new] identifier[lbgroup] operator[SE...
public void set(String propName, Object value) { if (propName.equals(PROP_IDENTIFIER)) { setIdentifier(((IdentifierType) value)); } if (propName.equals(PROP_VIEW_IDENTIFIERS)) { getViewIdentifiers().add(((com.ibm.wsspi.security.wim.model.ViewIdentifierType) value)); ...
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[propName, value]] begin[{] if[call[propName.equals, parameter[member[.PROP_IDENTIFIER]]]] begin[{] call[.setIdentifier, parameter[Cast(expression=MemberReference(member=value, post...
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[String] identifier[propName] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[propName] operator[SEP] identifier[equals] operator[SEP] identifier[PROP_IDENTIFIER] operator[SEP] operator[SEP] { ...
public static SafariOptions fromCapabilities(Capabilities capabilities) throws WebDriverException { if (capabilities instanceof SafariOptions) { return (SafariOptions) capabilities; } Object cap = capabilities.getCapability(SafariOptions.CAPABILITY); if (cap instanceof SafariOptions) { ...
class class_name[name] begin[{] method[fromCapabilities, return_type[type[SafariOptions]], modifier[public static], parameter[capabilities]] begin[{] if[binary_operation[member[.capabilities], instanceof, type[SafariOptions]]] begin[{] return[Cast(expression=MemberReference(member=c...
Keyword[public] Keyword[static] identifier[SafariOptions] identifier[fromCapabilities] operator[SEP] identifier[Capabilities] identifier[capabilities] operator[SEP] Keyword[throws] identifier[WebDriverException] { Keyword[if] operator[SEP] identifier[capabilities] Keyword[instanceof] identifier[SafariOptions] op...
@SafeVarargs public static <T, U, R> BiFunction<T, U, Optional<R>> maybeFirstMatch(BinaryClause<T, U, R>... clauses) { final List<Clause<Pair<T, U>, R>> unaryClauses = Sequences.of(clauses).map(BinaryClause::tupled).toList(); return Pairs.untupled(new MaybeFirstMatchStrategy<>(unaryClauses)); }
class class_name[name] begin[{] method[maybeFirstMatch, return_type[type[BiFunction]], modifier[public static], parameter[clauses]] begin[{] local_variable[type[List], unaryClauses] return[call[Pairs.untupled, parameter[ClassCreator(arguments=[MemberReference(member=unaryClauses, postfix_operat...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] , identifier[R] operator[>] identifier[BiFunction] operator[<] identifier[T] , identifier[U] , identifier[Optional] operator[<] identifier[R] operator[>] operator[>] identifier[maybeFirstMatch] operator[S...
@NotNull public static EnhancedMimeType create(@NotNull final String primary, @NotNull final String sub) { return create(primary, sub, null, null, null); }
class class_name[name] begin[{] method[create, return_type[type[EnhancedMimeType]], modifier[public static], parameter[primary, sub]] begin[{] return[call[.create, parameter[member[.primary], member[.sub], literal[null], literal[null], literal[null]]]] end[}] END[}]
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] identifier[EnhancedMimeType] identifier[create] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[primary] , annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[sub] operator[SEP] { ...
public Object querySingleResult(String sql, String[] args, int column, GeoPackageDataType dataType) { return db.querySingleResult(sql, args, column, dataType); }
class class_name[name] begin[{] method[querySingleResult, return_type[type[Object]], modifier[public], parameter[sql, args, column, dataType]] begin[{] return[call[db.querySingleResult, parameter[member[.sql], member[.args], member[.column], member[.dataType]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[querySingleResult] operator[SEP] identifier[String] identifier[sql] , identifier[String] operator[SEP] operator[SEP] identifier[args] , Keyword[int] identifier[column] , identifier[GeoPackageDataType] identifier[dataType] operator[SEP] { Keyword[return] identifier...
@Override public <T, C> T retrieveBean(String name, C criteria, T result, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeExpressions) throws CpoException { Iterator<T> it = processSelectGroup(name, criteria, result, wheres, orderBy, nativeExpressions, true).iterat...
class class_name[name] begin[{] method[retrieveBean, return_type[type[T]], modifier[public], parameter[name, criteria, result, wheres, orderBy, nativeExpressions]] begin[{] local_variable[type[Iterator], it] if[call[it.hasNext, parameter[]]] begin[{] return[call[it.next, par...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] , identifier[C] operator[>] identifier[T] identifier[retrieveBean] operator[SEP] identifier[String] identifier[name] , identifier[C] identifier[criteria] , identifier[T] identifier[result] , identifier[Collection] operator[<] identifier[Cp...
@StaplerDispatchable public ExtensionList getExtensionList(String extensionType) throws ClassNotFoundException { return getExtensionList(pluginManager.uberClassLoader.loadClass(extensionType)); }
class class_name[name] begin[{] method[getExtensionList, return_type[type[ExtensionList]], modifier[public], parameter[extensionType]] begin[{] return[call[.getExtensionList, parameter[call[pluginManager.uberClassLoader.loadClass, parameter[member[.extensionType]]]]]] end[}] END[}]
annotation[@] identifier[StaplerDispatchable] Keyword[public] identifier[ExtensionList] identifier[getExtensionList] operator[SEP] identifier[String] identifier[extensionType] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[return] identifier[getExtensionList] operator[SEP] identifier[...
public List<ApplicationInsightsComponentExportConfigurationInner> create(String resourceGroupName, String resourceName, ApplicationInsightsComponentExportRequest exportProperties) { return createWithServiceResponseAsync(resourceGroupName, resourceName, exportProperties).toBlocking().single().body(); }
class class_name[name] begin[{] method[create, return_type[type[List]], modifier[public], parameter[resourceGroupName, resourceName, exportProperties]] begin[{] return[call[.createWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.resourceName], member[.exportProperties]]]] end...
Keyword[public] identifier[List] operator[<] identifier[ApplicationInsightsComponentExportConfigurationInner] operator[>] identifier[create] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[resourceName] , identifier[ApplicationInsightsComponentExportRequest] identifier[e...
@Override public Bulkhead bulkhead(String name, Supplier<BulkheadConfig> bulkheadConfigSupplier) { return computeIfAbsent(name, () -> Bulkhead.of(name, Objects.requireNonNull(Objects.requireNonNull(bulkheadConfigSupplier, SUPPLIER_MUST_NOT_BE_NULL).get(), CONFIG_MUST_NOT_BE_NULL))); }
class class_name[name] begin[{] method[bulkhead, return_type[type[Bulkhead]], modifier[public], parameter[name, bulkheadConfigSupplier]] begin[{] return[call[.computeIfAbsent, parameter[member[.name], LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], p...
annotation[@] identifier[Override] Keyword[public] identifier[Bulkhead] identifier[bulkhead] operator[SEP] identifier[String] identifier[name] , identifier[Supplier] operator[<] identifier[BulkheadConfig] operator[>] identifier[bulkheadConfigSupplier] operator[SEP] { Keyword[return] identifier[computeIfAbsent] ...
public void writeTo(Path directory) throws IOException { checkArgument(Files.notExists(directory) || Files.isDirectory(directory), "path %s exists but is not a directory.", directory); Path outputDirectory = directory; if (!packageName.isEmpty()) { for (String packageComponent : packageName.sp...
class class_name[name] begin[{] method[writeTo, return_type[void], modifier[public], parameter[directory]] begin[{] call[.checkArgument, parameter[binary_operation[call[Files.notExists, parameter[member[.directory]]], ||, call[Files.isDirectory, parameter[member[.directory]]]], literal["path %s...
Keyword[public] Keyword[void] identifier[writeTo] operator[SEP] identifier[Path] identifier[directory] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkArgument] operator[SEP] identifier[Files] operator[SEP] identifier[notExists] operator[SEP] identifier[directory] operator[SEP] operator[|...
@CheckReturnValue public Flowable<E> flowable() { return new Flowable<E>() { @Override protected void subscribeActual(Subscriber<? super E> s) { s.onSubscribe(new QuerySubscription<>(ReactiveResult.this, s)); } }; }
class class_name[name] begin[{] method[flowable, return_type[type[Flowable]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(arguments=[ClassCr...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[Flowable] operator[<] identifier[E] operator[>] identifier[flowable] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Flowable] operator[<] identifier[E] operator[>] operator[SEP] operator[SEP] { annotation[@] i...
private static Iterator<String> getBaseIterator(BufferedReader reader, boolean keepOrdering) { // The final iterator is how the stream will be tokenized after all the // tokenizing options have been applied. This value is iteratively set // a...
class class_name[name] begin[{] method[getBaseIterator, return_type[type[Iterator]], modifier[private static], parameter[reader, keepOrdering]] begin[{] local_variable[type[Iterator], finalIterator] if[binary_operation[member[.replacementMap], !=, literal[null]]] begin[{] as...
Keyword[private] Keyword[static] identifier[Iterator] operator[<] identifier[String] operator[>] identifier[getBaseIterator] operator[SEP] identifier[BufferedReader] identifier[reader] , Keyword[boolean] identifier[keepOrdering] operator[SEP] { identifier[Iterator] operator[<] identifier[String] operator[>] ide...
protected void finishToken(boolean deferErrors) throws XMLStreamException { switch (mCurrToken) { case CDATA: if (mCfgCoalesceText) { readCoalescedText(mCurrToken, deferErrors); } else { if (readCDataSecondary(Integer.MAX_VALUE)) { ...
class class_name[name] begin[{] method[finishToken, return_type[void], modifier[protected], parameter[deferErrors]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['CDATA'], statements=[IfStatement(condition=MemberReference(member=mCfgCoalesceText, postfix_operators=[], prefix_operators=[], q...
Keyword[protected] Keyword[void] identifier[finishToken] operator[SEP] Keyword[boolean] identifier[deferErrors] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[switch] operator[SEP] identifier[mCurrToken] operator[SEP] { Keyword[case] identifier[CDATA] operator[:] Keyword[if] o...
boolean get(int bitIndex) { int wordIndex = wordIndex(bitIndex); long bitMask = 1L << bitIndex; return (words[wordIndex] & bitMask) != 0; }
class class_name[name] begin[{] method[get, return_type[type[boolean]], modifier[default], parameter[bitIndex]] begin[{] local_variable[type[int], wordIndex] local_variable[type[long], bitMask] return[binary_operation[binary_operation[member[.words], &, member[.bitMask]], !=, literal[0]...
Keyword[boolean] identifier[get] operator[SEP] Keyword[int] identifier[bitIndex] operator[SEP] { Keyword[int] identifier[wordIndex] operator[=] identifier[wordIndex] operator[SEP] identifier[bitIndex] operator[SEP] operator[SEP] Keyword[long] identifier[bitMask] operator[=] Other[1L] operator[<<] identifier[bitI...
public CompositeHandler withQueryHandler(final QueryHandler handler) { if (handler == null) { throw new IllegalArgumentException(); } // end of if // --- return new CompositeHandler(this.queryDetection, handler, ...
class class_name[name] begin[{] method[withQueryHandler, return_type[type[CompositeHandler]], modifier[public], parameter[handler]] begin[{] if[binary_operation[member[.handler], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor...
Keyword[public] identifier[CompositeHandler] identifier[withQueryHandler] operator[SEP] Keyword[final] identifier[QueryHandler] identifier[handler] operator[SEP] { Keyword[if] operator[SEP] identifier[handler] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgum...
public static StreamingOutput buildResponseOfDomLR(final IStorage pDatabase, final IBackendFactory pStorageFac, final IRevisioning pRevision) { final StreamingOutput sOutput = new StreamingOutput() { @Override public void write(final OutputStream output) throws IOException, Web...
class class_name[name] begin[{] method[buildResponseOfDomLR, return_type[type[StreamingOutput]], modifier[public static], parameter[pDatabase, pStorageFac, pRevision]] begin[{] local_variable[type[StreamingOutput], sOutput] return[member[.sOutput]] end[}] END[}]
Keyword[public] Keyword[static] identifier[StreamingOutput] identifier[buildResponseOfDomLR] operator[SEP] Keyword[final] identifier[IStorage] identifier[pDatabase] , Keyword[final] identifier[IBackendFactory] identifier[pStorageFac] , Keyword[final] identifier[IRevisioning] identifier[pRevision] operator[SEP] { ...
public Map<String, Context> getJndiContexts() { Map<String, Context> jndiContexts = new HashMap<>(); jndiContexts.putAll(additionalJndiContexts); jndiContexts.put("default", defaultJndiContext); return jndiContexts; }
class class_name[name] begin[{] method[getJndiContexts, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], jndiContexts] call[jndiContexts.putAll, parameter[member[.additionalJndiContexts]]] call[jndiContexts.put, parameter[literal[...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Context] operator[>] identifier[getJndiContexts] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Context] operator[>] identifier[jndiContexts] operator[=] Keyword[new] identifier[HashMap] opera...
public static int calculateMod10CheckSum(int[] weights, StringNumber number) { int c = calculateChecksum(weights, number, true) % 10; return c == 0 ? 0 : 10 - c; }
class class_name[name] begin[{] method[calculateMod10CheckSum, return_type[type[int]], modifier[public static], parameter[weights, number]] begin[{] local_variable[type[int], c] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=c, postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] Keyword[int] identifier[calculateMod10CheckSum] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[weights] , identifier[StringNumber] identifier[number] operator[SEP] { Keyword[int] identifier[c] operator[=] identifier[calculateChecksum] operator[SEP] identifier[w...
public String getStreamHeader() { StringBuilder builder = new StringBuilder(); builder.append("GDAT").append(Constants.NEWLINE).append("VERSION:").append(VERSION).append(Constants.NEWLINE) .append("SCHEMALENGTH:"); String streamTree = getStreamParseTree(); int headerLength = streamTree.length(); ...
class class_name[name] begin[{] method[getStreamHeader, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], builder] call[builder.append, parameter[literal["GDAT"]]] local_variable[type[String], streamTree] local_variabl...
Keyword[public] identifier[String] identifier[getStreamHeader] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[append] operator[SEP] literal[String...
private String selectRedirectionUrl(HttpServletRequest request) { final String defaultRedirect = request.getContextPath() + "/"; String rslt = null; // default // Get the person object associated with the request final IPerson person = this.personManager.getPerson(request); fi...
class class_name[name] begin[{] method[selectRedirectionUrl, return_type[type[String]], modifier[private], parameter[request]] begin[{] local_variable[type[String], defaultRedirect] local_variable[type[String], rslt] local_variable[type[IPerson], person] local_variable[type[Stri...
Keyword[private] identifier[String] identifier[selectRedirectionUrl] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[final] identifier[String] identifier[defaultRedirect] operator[=] identifier[request] operator[SEP] identifier[getContextPath] operator[SEP] operator[SEP] ...
@Override public CreateActivityResult createActivity(CreateActivityRequest request) { request = beforeClientExecution(request); return executeCreateActivity(request); }
class class_name[name] begin[{] method[createActivity, return_type[type[CreateActivityResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateActivity, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[CreateActivityResult] identifier[createActivity] operator[SEP] identifier[CreateActivityRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
@Override public <T> T read(final Class<T> projectionInterface) throws IOException { try { Document document = projector.config().createDocumentBuilder().parse(file); return projector.projectDOMNode(document, projectionInterface); } catch (SAXException e) { throw ...
class class_name[name] begin[{] method[read, return_type[type[T]], modifier[public], parameter[projectionInterface]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=config, postfix_ope...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[read] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[projectionInterface] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { ...
public void printOldGen(PrintStream tty, List<ClassStats> list, boolean orderByName, long minSize) { if (orderByName) { Collections.sort(list, ClassStats.NAME_COMPARATOR); } else { Collections.sort(list, ClassStats.OLD_SIZE_COMPARATOR); } tty.println("\nOldGen Object Histogram:\n"); tty.printf("%6s %7s...
class class_name[name] begin[{] method[printOldGen, return_type[void], modifier[public], parameter[tty, list, orderByName, minSize]] begin[{] if[member[.orderByName]] begin[{] call[Collections.sort, parameter[member[.list], member[ClassStats.NAME_COMPARATOR]]] el...
Keyword[public] Keyword[void] identifier[printOldGen] operator[SEP] identifier[PrintStream] identifier[tty] , identifier[List] operator[<] identifier[ClassStats] operator[>] identifier[list] , Keyword[boolean] identifier[orderByName] , Keyword[long] identifier[minSize] operator[SEP] { Keyword[if] operator[SEP...
protected final void firePropertyChange(String propertyName, double oldValue, double newValue) { firePropertyChange(propertyName, Double.valueOf(oldValue), Double.valueOf(newValue)); }
class class_name[name] begin[{] method[firePropertyChange, return_type[void], modifier[final protected], parameter[propertyName, oldValue, newValue]] begin[{] call[.firePropertyChange, parameter[member[.propertyName], call[Double.valueOf, parameter[member[.oldValue]]], call[Double.valueOf, para...
Keyword[protected] Keyword[final] Keyword[void] identifier[firePropertyChange] operator[SEP] identifier[String] identifier[propertyName] , Keyword[double] identifier[oldValue] , Keyword[double] identifier[newValue] operator[SEP] { identifier[firePropertyChange] operator[SEP] identifier[propertyName] , identif...
public long[] allocNew(int nrClusters) throws IOException { final long rc[] = new long[nrClusters]; rc[0] = allocNew(); for (int i = 1; i < nrClusters; i++) { rc[i] = allocAppend(rc[i - 1]); } return rc; }
class class_name[name] begin[{] method[allocNew, return_type[type[long]], modifier[public], parameter[nrClusters]] begin[{] local_variable[type[long], rc] assign[member[.rc], call[.allocNew, parameter[]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpressi...
Keyword[public] Keyword[long] operator[SEP] operator[SEP] identifier[allocNew] operator[SEP] Keyword[int] identifier[nrClusters] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[long] identifier[rc] operator[SEP] operator[SEP] operator[=] Keyword[new] Keyword[long] operator[SEP] ide...
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.admanager.axis.v201811.ReconciliationOrderReportServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.admanager.axis.v...
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.admanager.axis.v201811, selectors=[Me...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
private void setupTypes() { if (!cache2kConfigurationWasProvided) { cache2kConfiguration.setKeyType(config.getKeyType()); cache2kConfiguration.setValueType(config.getValueType()); } else { if (cache2kConfiguration.getKeyType() == null) { cache2kConfiguration.setKeyType(config.getKeyTyp...
class class_name[name] begin[{] method[setupTypes, return_type[void], modifier[private], parameter[]] begin[{] if[member[.cache2kConfigurationWasProvided]] begin[{] call[cache2kConfiguration.setKeyType, parameter[call[config.getKeyType, parameter[]]]] ...
Keyword[private] Keyword[void] identifier[setupTypes] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[cache2kConfigurationWasProvided] operator[SEP] { identifier[cache2kConfiguration] operator[SEP] identifier[setKeyType] operator[SEP] identifier[config] operator[SEP] ide...
@Override public ListT<W,T> distinct() { return (ListT<W,T>) FoldableTransformerSeq.super.distinct(); }
class class_name[name] begin[{] method[distinct, return_type[type[ListT]], modifier[public], parameter[]] begin[{] return[Cast(expression=MemberReference(member=FoldableTransformerSeq, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[SuperMethodInvocation(arguments=[], member=distinct,...
annotation[@] identifier[Override] Keyword[public] identifier[ListT] operator[<] identifier[W] , identifier[T] operator[>] identifier[distinct] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[ListT] operator[<] identifier[W] , identifier[T] operator[>] operator[SEP] identifier[FoldableTr...
public final AntlrDatatypeRuleToken ruleValidID() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token this_ID_0=null; Token kw=null; enterRule(); try { // InternalSARL.g:9830:2: ( (this_ID_0= RULE_ID | kw= 'create' |...
class class_name[name] begin[{] method[ruleValidID, return_type[type[AntlrDatatypeRuleToken]], modifier[final public], parameter[]] begin[{] local_variable[type[AntlrDatatypeRuleToken], current] local_variable[type[Token], this_ID_0] local_variable[type[Token], kw] call[...
Keyword[public] Keyword[final] identifier[AntlrDatatypeRuleToken] identifier[ruleValidID] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[AntlrDatatypeRuleToken] identifier[current] operator[=] Keyword[new] identifier[AntlrDatatypeRuleToken] operator[SEP] operator[SEP] o...
@Override public void removeEdge(final KamEdge kamEdge) { // remove storage of kam edge idEdgeMap.remove(kamEdge.getId()); edgeIdMap.remove(kamEdge); // break edge association with source and target nodes nodeSourceMap.get(kamEdge.getSourceNode()).remove(kamEdge); no...
class class_name[name] begin[{] method[removeEdge, return_type[void], modifier[public], parameter[kamEdge]] begin[{] call[idEdgeMap.remove, parameter[call[kamEdge.getId, parameter[]]]] call[edgeIdMap.remove, parameter[member[.kamEdge]]] call[nodeSourceMap.get, pa...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeEdge] operator[SEP] Keyword[final] identifier[KamEdge] identifier[kamEdge] operator[SEP] { identifier[idEdgeMap] operator[SEP] identifier[remove] operator[SEP] identifier[kamEdge] operator[SEP] identifier[getId] operator[SEP] opera...
public void noChunks() throws MalformedURLException { URL url = null; InputStream stream = null; File file = null; // tag::no-chunks[] ok(new RenderableFile(file, false)); ok(new RenderableURL(url, false)); ok(new RenderableStream(stream, false)); // end:...
class class_name[name] begin[{] method[noChunks, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[URL], url] local_variable[type[InputStream], stream] local_variable[type[File], file] call[.ok, parameter[ClassCreator(arguments=[MemberReferen...
Keyword[public] Keyword[void] identifier[noChunks] operator[SEP] operator[SEP] Keyword[throws] identifier[MalformedURLException] { identifier[URL] identifier[url] operator[=] Other[null] operator[SEP] identifier[InputStream] identifier[stream] operator[=] Other[null] operator[SEP] identifier[File] identifier[fil...
public static String getChildText(Element parent, String name, boolean firstToLast) { Assert.isTrue(isDAVElement(parent)); Assert.isNotNull(name); Element child; if (firstToLast) child = getFirstChild(parent, name); else child = getLastChild(parent, name);...
class class_name[name] begin[{] method[getChildText, return_type[type[String]], modifier[public static], parameter[parent, name, firstToLast]] begin[{] call[Assert.isTrue, parameter[call[.isDAVElement, parameter[member[.parent]]]]] call[Assert.isNotNull, parameter[member[.name]]...
Keyword[public] Keyword[static] identifier[String] identifier[getChildText] operator[SEP] identifier[Element] identifier[parent] , identifier[String] identifier[name] , Keyword[boolean] identifier[firstToLast] operator[SEP] { identifier[Assert] operator[SEP] identifier[isTrue] operator[SEP] identifier[isDAVEle...
private void updateEndPCsOnCatchRegScope(List<CatchInfo> infos, int pc, int seen) { if (lvt != null) { for (CatchInfo ci : infos) { if ((ci.getStart() == pc) && OpcodeUtils.isAStore(seen)) { int exReg = RegisterUtils.getAStoreReg(this, seen); L...
class class_name[name] begin[{] method[updateEndPCsOnCatchRegScope, return_type[void], modifier[private], parameter[infos, pc, seen]] begin[{] if[binary_operation[member[.lvt], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(conditio...
Keyword[private] Keyword[void] identifier[updateEndPCsOnCatchRegScope] operator[SEP] identifier[List] operator[<] identifier[CatchInfo] operator[>] identifier[infos] , Keyword[int] identifier[pc] , Keyword[int] identifier[seen] operator[SEP] { Keyword[if] operator[SEP] identifier[lvt] operator[!=] Other[null] ...
public SIMPRemoteQueuePointControllable getRemoteQueuePointControlByID(String id) throws SIMPInvalidRuntimeIDException, SIMPControllableNotFoundException, SIMPException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRemoteQueuePointControlByI...
class class_name[name] begin[{] method[getRemoteQueuePointControlByID, return_type[type[SIMPRemoteQueuePointControllable]], modifier[public], parameter[id]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] identifier[SIMPRemoteQueuePointControllable] identifier[getRemoteQueuePointControlByID] operator[SEP] identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[SIMPInvalidRuntimeIDException] , identifier[SIMPControllableNotFoundException] , identifier[SIMPException] { Keyword[i...
void printError(String type, SAXParseException e) { PrintWriter logger = new PrintWriter(System.out); logger.print(type); if (e.getLineNumber() >= 0) { logger.print(" at line " + e.getLineNumber()); if (e.getColumnNumber() >= 0) { logger.print(", col...
class class_name[name] begin[{] method[printError, return_type[void], modifier[default], parameter[type, e]] begin[{] local_variable[type[PrintWriter], logger] call[logger.print, parameter[member[.type]]] if[binary_operation[call[e.getLineNumber, parameter[]], >=, litera...
Keyword[void] identifier[printError] operator[SEP] identifier[String] identifier[type] , identifier[SAXParseException] identifier[e] operator[SEP] { identifier[PrintWriter] identifier[logger] operator[=] Keyword[new] identifier[PrintWriter] operator[SEP] identifier[System] operator[SEP] identifier[out] operator...
public Object propertyGet(String propertyName) { if (propertyExists(propertyName) == false) { throw new NoSuchElementException("Unknown property: " + propertyName); } return data.get(propertyName); }
class class_name[name] begin[{] method[propertyGet, return_type[type[Object]], modifier[public], parameter[propertyName]] begin[{] if[binary_operation[call[.propertyExists, parameter[member[.propertyName]]], ==, literal[false]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] identifier[Object] identifier[propertyGet] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] { Keyword[if] operator[SEP] identifier[propertyExists] operator[SEP] identifier[propertyName] operator[SEP] operator[==] literal[boolean] operator[SEP] { Keyword[throw] Ke...
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance) { if (hasMultiInstanceCharacteristics()) { multiInstanceActivityBehavior.setInnerActivityBehavior((AbstractBpmnActivityBehavior) delegateInstance); return multiInstanceActivityBehavior; } return delegateInstance; ...
class class_name[name] begin[{] method[determineBehaviour, return_type[type[ActivityBehavior]], modifier[protected], parameter[delegateInstance]] begin[{] if[call[.hasMultiInstanceCharacteristics, parameter[]]] begin[{] call[multiInstanceActivityBehavior.setInnerActivity...
Keyword[protected] identifier[ActivityBehavior] identifier[determineBehaviour] operator[SEP] identifier[ActivityBehavior] identifier[delegateInstance] operator[SEP] { Keyword[if] operator[SEP] identifier[hasMultiInstanceCharacteristics] operator[SEP] operator[SEP] operator[SEP] { identifier[multiInsta...
public Complex divide(Complex c) { Complex ret = new Complex(real, imag); ret.mutableDivide(c); return ret; }
class class_name[name] begin[{] method[divide, return_type[type[Complex]], modifier[public], parameter[c]] begin[{] local_variable[type[Complex], ret] call[ret.mutableDivide, parameter[member[.c]]] return[member[.ret]] end[}] END[}]
Keyword[public] identifier[Complex] identifier[divide] operator[SEP] identifier[Complex] identifier[c] operator[SEP] { identifier[Complex] identifier[ret] operator[=] Keyword[new] identifier[Complex] operator[SEP] identifier[real] , identifier[imag] operator[SEP] operator[SEP] identifier[ret] operator[SEP] iden...
public final void mRULE_COMMENT_RICH_TEXT_INBETWEEN() throws RecognitionException { try { int _type = RULE_COMMENT_RICH_TEXT_INBETWEEN; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalSARL.g:48777:34: ( '\\uFFFD\\uFFFD' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' ( RULE_I...
class class_name[name] begin[{] method[mRULE_COMMENT_RICH_TEXT_INBETWEEN, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=RULE_COMMENT_RICH_TEX...
Keyword[public] Keyword[final] Keyword[void] identifier[mRULE_COMMENT_RICH_TEXT_INBETWEEN] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[RULE_COMMENT_RICH_TEXT_INBETWEEN] operator[SEP] Keyword[int] id...