code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static DatabaseEngine getConnection(Properties p) throws DatabaseFactoryException { PdbProperties pdbProperties = new PdbProperties(p, true); final String engine = pdbProperties.getEngine(); if (StringUtils.isBlank(engine)) { throw new DatabaseFactoryException("pdb.engine pro...
class class_name[name] begin[{] method[getConnection, return_type[type[DatabaseEngine]], modifier[public static], parameter[p]] begin[{] local_variable[type[PdbProperties], pdbProperties] local_variable[type[String], engine] if[call[StringUtils.isBlank, parameter[member[.engine]...
Keyword[public] Keyword[static] identifier[DatabaseEngine] identifier[getConnection] operator[SEP] identifier[Properties] identifier[p] operator[SEP] Keyword[throws] identifier[DatabaseFactoryException] { identifier[PdbProperties] identifier[pdbProperties] operator[=] Keyword[new] identifier[PdbProperties] opera...
public static ParquetMetadata readFooter(Configuration configuration, Path file, MetadataFilter filter) throws IOException { return readFooter(HadoopInputFile.fromPath(file, configuration), filter); }
class class_name[name] begin[{] method[readFooter, return_type[type[ParquetMetadata]], modifier[public static], parameter[configuration, file, filter]] begin[{] return[call[.readFooter, parameter[call[HadoopInputFile.fromPath, parameter[member[.file], member[.configuration]]], member[.filter]]]] en...
Keyword[public] Keyword[static] identifier[ParquetMetadata] identifier[readFooter] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[Path] identifier[file] , identifier[MetadataFilter] identifier[filter] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identi...
public static Object deserialize(byte[] bytes, boolean gzipOnSerialize) { try { InputStream is = new ByteArrayInputStream(bytes); if (gzipOnSerialize) { is = new GZIPInputStream(is); } ObjectInputStream in = new ObjectInputStream(is); O...
class class_name[name] begin[{] method[deserialize, return_type[type[Object]], modifier[public static], parameter[bytes, gzipOnSerialize]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberRefer...
Keyword[public] Keyword[static] identifier[Object] identifier[deserialize] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[boolean] identifier[gzipOnSerialize] operator[SEP] { Keyword[try] { identifier[InputStream] identifier[is] operator[=] Keyword[new] identifier...
public void marshall(ListNamespacesRequest listNamespacesRequest, ProtocolMarshaller protocolMarshaller) { if (listNamespacesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listNamespacesRe...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listNamespacesRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listNamespacesRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListNamespacesRequest] identifier[listNamespacesRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listNamespacesRequest] operator[==] Other[null] operator[SEP] ...
void checkClosed() throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "checkClosed"); synchronized (closedLock) { if (closed) { throw (JMSException) JmsErrorUtils.newThrowable(javax.jms.IllegalStateExcepti...
class class_name[name] begin[{] method[checkClosed, return_type[void], modifier[default], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[....
Keyword[void] identifier[checkClosed] operator[SEP] operator[SEP] Keyword[throws] identifier[JMSException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator...
public void clear() { // clear properties List<String> ownProps = getOwnProperties(); for (String key : properties.keySet().toArray(new String[]{})) { if (ownProps.contains(key)) { Object value = properties.get(key); if (value instanceof JsonCollection) { JsonCollection entity = (JsonCollection...
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[List], ownProps] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=...
Keyword[public] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[ownProps] operator[=] identifier[getOwnProperties] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[key] operator[...
private List<IAtomContainer> mergeAtomicIons(final List<IAtomContainer> frags) { final List<IAtomContainer> res = new ArrayList<>(frags.size()); for (IAtomContainer frag : frags) { IChemObjectBuilder bldr = frag.getBuilder(); if (frag.getBondCount() > 0 || res.isEmpty()) { ...
class class_name[name] begin[{] method[mergeAtomicIons, return_type[type[List]], modifier[private], parameter[frags]] begin[{] local_variable[type[List], res] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens...
Keyword[private] identifier[List] operator[<] identifier[IAtomContainer] operator[>] identifier[mergeAtomicIons] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[IAtomContainer] operator[>] identifier[frags] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[IAtomContainer...
@SafeVarargs public static String[] addAll(final String[] a, final String... b) { if (N.isNullOrEmpty(a)) { return N.isNullOrEmpty(b) ? N.EMPTY_STRING_ARRAY : b.clone(); } final String[] newArray = new String[a.length + b.length]; copy(a, 0, newArray, 0, a.lengt...
class class_name[name] begin[{] method[addAll, return_type[type[String]], modifier[public static], parameter[a, b]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.a]]]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=b, postfix_ope...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[addAll] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[a] , Keyword[final] identifier[String] operator[...] identifier[b] operator[SEP] { Keywor...
public CmsSolrResultList search(CmsObject cms, SolrQuery query) throws CmsSearchException { return search(cms, CmsEncoder.decode(query.toString())); }
class class_name[name] begin[{] method[search, return_type[type[CmsSolrResultList]], modifier[public], parameter[cms, query]] begin[{] return[call[.search, parameter[member[.cms], call[CmsEncoder.decode, parameter[call[query.toString, parameter[]]]]]]] end[}] END[}]
Keyword[public] identifier[CmsSolrResultList] identifier[search] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[SolrQuery] identifier[query] operator[SEP] Keyword[throws] identifier[CmsSearchException] { Keyword[return] identifier[search] operator[SEP] identifier[cms] , identifier[CmsEncoder]...
protected boolean isCoordinateAxisForVariable(Variable axis, VariableEnhanced v) { List<Dimension> varDims = v.getDimensionsAll(); List<Dimension> axisDims = axis.getDimensionsAll(); // a CHAR variable must really be a STRING, so leave out the last (string length) dimension int checkDims = axisDim...
class class_name[name] begin[{] method[isCoordinateAxisForVariable, return_type[type[boolean]], modifier[protected], parameter[axis, v]] begin[{] local_variable[type[List], varDims] local_variable[type[List], axisDims] local_variable[type[int], checkDims] if[binary_opera...
Keyword[protected] Keyword[boolean] identifier[isCoordinateAxisForVariable] operator[SEP] identifier[Variable] identifier[axis] , identifier[VariableEnhanced] identifier[v] operator[SEP] { identifier[List] operator[<] identifier[Dimension] operator[>] identifier[varDims] operator[=] identifier[v] operator[SEP] ...
public static String parseUrl(String urlStr, String partToExtract) { URL url; try { url = URL_CACHE.get(urlStr); } catch (Exception e) { LOG.error("Parse URL error: " + urlStr, e); return null; } if ("HOST".equals(partToExtract)) { return url.getHost(); } if ("PATH".equals(partToExtract)) { ...
class class_name[name] begin[{] method[parseUrl, return_type[type[String]], modifier[public static], parameter[urlStr, partToExtract]] begin[{] local_variable[type[URL], url] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=url, postfix_operators=...
Keyword[public] Keyword[static] identifier[String] identifier[parseUrl] operator[SEP] identifier[String] identifier[urlStr] , identifier[String] identifier[partToExtract] operator[SEP] { identifier[URL] identifier[url] operator[SEP] Keyword[try] { identifier[url] operator[=] identifier[URL_CACHE] ope...
public Variable acquireExtra(Type type) { Validate.notNull(type); Validate.isTrue(type.getSort() != Type.VOID); Validate.isTrue(type.getSort() != Type.METHOD); for (Variable var : extraVars) { if (!var.used && var.type.equals(type)) { // We don't want...
class class_name[name] begin[{] method[acquireExtra, return_type[type[Variable]], modifier[public], parameter[type]] begin[{] call[Validate.notNull, parameter[member[.type]]] call[Validate.isTrue, parameter[binary_operation[call[type.getSort, parameter[]], !=, member[Type.VOID]]...
Keyword[public] identifier[Variable] identifier[acquireExtra] operator[SEP] identifier[Type] identifier[type] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[type] operator[SEP] operator[SEP] identifier[Validate] operator[SEP] identifier[isTrue] operator[SEP] ident...
static ProcessBuilder buildProcess(final File workingdir, final File scriptfile, final String scriptargs, final Map<String, Map<String, String>> envContext, final Map<String, Map<String, String>> newDataContext, ...
class class_name[name] begin[{] method[buildProcess, return_type[type[ProcessBuilder]], modifier[static], parameter[workingdir, scriptfile, scriptargs, envContext, newDataContext, interpreter, interpreterArgsQuoted]] begin[{] return[call[.buildProcess, parameter[member[.workingdir], member[.scriptfile]...
Keyword[static] identifier[ProcessBuilder] identifier[buildProcess] operator[SEP] Keyword[final] identifier[File] identifier[workingdir] , Keyword[final] identifier[File] identifier[scriptfile] , Keyword[final] identifier[String] identifier[scriptargs] , Keyword[final] identifier[Map] operator[<] identifier[String] ...
Rule FieldFile() { return Sequence(String("F:"), ZeroOrMore(WSP()).suppressNode(), TexText(), HeaderEol()).label(FieldFile); }
class class_name[name] begin[{] method[FieldFile, return_type[type[Rule]], modifier[default], parameter[]] begin[{] return[call[.Sequence, parameter[call[.String, parameter[literal["F:"]]], call[.ZeroOrMore, parameter[call[.WSP, parameter[]]]], call[.TexText, parameter[]], call[.HeaderEol, parameter[]]...
identifier[Rule] identifier[FieldFile] operator[SEP] operator[SEP] { Keyword[return] identifier[Sequence] operator[SEP] identifier[String] operator[SEP] literal[String] operator[SEP] , identifier[ZeroOrMore] operator[SEP] identifier[WSP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[suppres...
public void setAccountAliases(java.util.Collection<String> accountAliases) { if (accountAliases == null) { this.accountAliases = null; return; } this.accountAliases = new com.amazonaws.internal.SdkInternalList<String>(accountAliases); }
class class_name[name] begin[{] method[setAccountAliases, return_type[void], modifier[public], parameter[accountAliases]] begin[{] if[binary_operation[member[.accountAliases], ==, literal[null]]] begin[{] assign[THIS[member[None.accountAliases]], literal[null]] ...
Keyword[public] Keyword[void] identifier[setAccountAliases] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[accountAliases] operator[SEP] { Keyword[if] operator[SEP] identifier[accountAliases] operator[==] Ot...
public ResultSet executeQuery(){ Long start = null; if (logger.isTraceEnabled()) { start = System.currentTimeMillis(); } try { return this.statement.executeQuery(); } catch (SQLException ex) { throw new ApplicationException(Code.BACKEND_ERROR,...
class class_name[name] begin[{] method[executeQuery, return_type[type[ResultSet]], modifier[public], parameter[]] begin[{] local_variable[type[Long], start] if[call[logger.isTraceEnabled, parameter[]]] begin[{] assign[member[.start], call[System.currentTimeMillis...
Keyword[public] identifier[ResultSet] identifier[executeQuery] operator[SEP] operator[SEP] { identifier[Long] identifier[start] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identi...
private static void print(Matrix m, Control control, NumberFormatter formatter) { if (m==null || control==null || formatter==null) throw new NullPointerException(); String[][] elements=new String[m.getRowCount()][m.getColumnCount()]; int[] columnWidths=new int[m.getColumnCount()]; int maxColumnWidth = 0; for ...
class class_name[name] begin[{] method[print, return_type[void], modifier[private static], parameter[m, control, formatter]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.m], ==, literal[null]], ||, binary_operation[member[.control], ==, literal[null]]], ||, binary_oper...
Keyword[private] Keyword[static] Keyword[void] identifier[print] operator[SEP] identifier[Matrix] identifier[m] , identifier[Control] identifier[control] , identifier[NumberFormatter] identifier[formatter] operator[SEP] { Keyword[if] operator[SEP] identifier[m] operator[==] Other[null] operator[||] identifier[...
public int dataToField(Field fieldInfo) throws DBException { BaseField field = (BaseField)fieldInfo; if (!field.isSelected()) { // Not selected, don't move data return field.initField(DBConstants.DONT_DISPLAY); } // Get the fields in the recordset int iC...
class class_name[name] begin[{] method[dataToField, return_type[type[int]], modifier[public], parameter[fieldInfo]] begin[{] local_variable[type[BaseField], field] if[call[field.isSelected, parameter[]]] begin[{] return[call[field.initField, parameter[member[DBConstants.DONT...
Keyword[public] Keyword[int] identifier[dataToField] operator[SEP] identifier[Field] identifier[fieldInfo] operator[SEP] Keyword[throws] identifier[DBException] { identifier[BaseField] identifier[field] operator[=] operator[SEP] identifier[BaseField] operator[SEP] identifier[fieldInfo] operator[SEP] Keyword[if] ...
public static void generateTemplate( Reader readerTemplate, Writer writerOut, ISymbolTable symTable, boolean strict) throws TemplateParseException { TemplateGenerator te = new TemplateGenerator( readerTemplate); te.setDisableAlternative(strict); te.execute( writerOut, symTable); }
class class_name[name] begin[{] method[generateTemplate, return_type[void], modifier[public static], parameter[readerTemplate, writerOut, symTable, strict]] begin[{] local_variable[type[TemplateGenerator], te] call[te.setDisableAlternative, parameter[member[.strict]]] ca...
Keyword[public] Keyword[static] Keyword[void] identifier[generateTemplate] operator[SEP] identifier[Reader] identifier[readerTemplate] , identifier[Writer] identifier[writerOut] , identifier[ISymbolTable] identifier[symTable] , Keyword[boolean] identifier[strict] operator[SEP] Keyword[throws] identifier[TemplatePars...
public final int insertPointAt(Point2D<?, ?> point, int indexGroup, int indexInGroup) { return insertPointAt(point.getX(), point.getY(), indexGroup, indexInGroup); }
class class_name[name] begin[{] method[insertPointAt, return_type[type[int]], modifier[final public], parameter[point, indexGroup, indexInGroup]] begin[{] return[call[.insertPointAt, parameter[call[point.getX, parameter[]], call[point.getY, parameter[]], member[.indexGroup], member[.indexInGroup]]]] ...
Keyword[public] Keyword[final] Keyword[int] identifier[insertPointAt] operator[SEP] identifier[Point2D] operator[<] operator[?] , operator[?] operator[>] identifier[point] , Keyword[int] identifier[indexGroup] , Keyword[int] identifier[indexInGroup] operator[SEP] { Keyword[return] identifier[insertPointAt] op...
public static vpnclientlessaccessprofile[] get(nitro_service service, String profilename[]) throws Exception{ if (profilename !=null && profilename.length>0) { vpnclientlessaccessprofile response[] = new vpnclientlessaccessprofile[profilename.length]; vpnclientlessaccessprofile obj[] = new vpnclientlessaccesspr...
class class_name[name] begin[{] method[get, return_type[type[vpnclientlessaccessprofile]], modifier[public static], parameter[service, profilename]] begin[{] if[binary_operation[binary_operation[member[.profilename], !=, literal[null]], &&, binary_operation[member[profilename.length], >, litera...
Keyword[public] Keyword[static] identifier[vpnclientlessaccessprofile] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[profilename] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if...
public void read(final long address, final byte[] data) throws Exception { if (blockCount == -1) { throw new IllegalStateException("You first have to open the Device!"); } long blocks = data.length / blockSize; if (address < 0 || address + blocks > blockCount) { ...
class class_name[name] begin[{] method[read, return_type[void], modifier[public], parameter[address, data]] begin[{] if[binary_operation[member[.blockCount], ==, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[]...
Keyword[public] Keyword[void] identifier[read] operator[SEP] Keyword[final] Keyword[long] identifier[address] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[blockCount] operator[==] operator[-...
public final void setBlobMeta(String key, SettableBlobMeta meta) throws AuthorizationException, KeyNotFoundException { setBlobMetaToExtend(key, meta); }
class class_name[name] begin[{] method[setBlobMeta, return_type[void], modifier[final public], parameter[key, meta]] begin[{] call[.setBlobMetaToExtend, parameter[member[.key], member[.meta]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[setBlobMeta] operator[SEP] identifier[String] identifier[key] , identifier[SettableBlobMeta] identifier[meta] operator[SEP] Keyword[throws] identifier[AuthorizationException] , identifier[KeyNotFoundException] { identifier[setBlobMetaToExtend] operator[SE...
@Override public TransactionInfoBaseMessage getNextMessage() throws IOException { if (m_closed) { throw new IOException("Closed"); } if (m_head == null) { // Get another buffer asynchronously final Runnable r = new Runnable() { @Override ...
class class_name[name] begin[{] method[getNextMessage, return_type[type[TransactionInfoBaseMessage]], modifier[public], parameter[]] begin[{] if[member[.m_closed]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier...
annotation[@] identifier[Override] Keyword[public] identifier[TransactionInfoBaseMessage] identifier[getNextMessage] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[m_closed] operator[SEP] { Keyword[throw] Keyword[new] identifier[IOException] ...
public static String asUTF8String(InputStream in) { // Precondition check Validate.notNull(in, "Stream must be specified"); StringBuilder buffer = new StringBuilder(); String line; try { BufferedReader reader = new BufferedReader(new InputStreamReader(in, CHARSET_UT...
class class_name[name] begin[{] method[asUTF8String, return_type[type[String]], modifier[public static], parameter[in]] begin[{] call[Validate.notNull, parameter[member[.in], literal["Stream must be specified"]]] local_variable[type[StringBuilder], buffer] local_variable[type[St...
Keyword[public] Keyword[static] identifier[String] identifier[asUTF8String] operator[SEP] identifier[InputStream] identifier[in] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[in] , literal[String] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[...
public static void addURL(URL u) throws IOException { if (!(ClassLoader.getSystemClassLoader() instanceof URLClassLoader)) { return; } URLClassLoader sysLoader = (URLClassLoader) ClassLoader.getSystemClassLoader(); URL[] urls = sysLoader.getURLs(); for (int i ...
class class_name[name] begin[{] method[addURL, return_type[void], modifier[public static], parameter[u]] begin[{] if[binary_operation[call[ClassLoader.getSystemClassLoader, parameter[]], instanceof, type[URLClassLoader]]] begin[{] return[None] else begin[{] None end[...
Keyword[public] Keyword[static] Keyword[void] identifier[addURL] operator[SEP] identifier[URL] identifier[u] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[ClassLoader] operator[SEP] identifier[getSystemClassLoader] operator[SEP] operator[SE...
public void marshall(StreamProcessorOutput streamProcessorOutput, ProtocolMarshaller protocolMarshaller) { if (streamProcessorOutput == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(streamProcessorO...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[streamProcessorOutput, protocolMarshaller]] begin[{] if[binary_operation[member[.streamProcessorOutput], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[StreamProcessorOutput] identifier[streamProcessorOutput] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[streamProcessorOutput] operator[==] Other[null] operator[SEP] ...
public static boolean containsAt(byte[] arra, int start, byte[] arrb) { return countSameElements(arra, start, arrb) == arrb.length; }
class class_name[name] begin[{] method[containsAt, return_type[type[boolean]], modifier[public static], parameter[arra, start, arrb]] begin[{] return[binary_operation[call[.countSameElements, parameter[member[.arra], member[.start], member[.arrb]]], ==, member[arrb.length]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[containsAt] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[arra] , Keyword[int] identifier[start] , Keyword[byte] operator[SEP] operator[SEP] identifier[arrb] operator[SEP] { Keyword[return] identifier[countSameElements] operator[S...
@Override public String getAuthType() { try { collaborator.preInvoke(componentMetaData); return request.getAuthType(); } finally { collaborator.postInvoke(); } }
class class_name[name] begin[{] method[getAuthType, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=componentMetaData, postfix_operators=[], prefix_operators=[], qualifier=, selector...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getAuthType] operator[SEP] operator[SEP] { Keyword[try] { identifier[collaborator] operator[SEP] identifier[preInvoke] operator[SEP] identifier[componentMetaData] operator[SEP] operator[SEP] Keyword[return] identifier[req...
protected final UserAccount getUserAccountFromSecurityContext() { final SecurityContext context = SecurityContextHolder.getContext(); if (context != null) { final Authentication authentication = context.getAuthentication(); if (authentication != null) { return userDAO.findFirstByProperty(UserAccount_.user...
class class_name[name] begin[{] method[getUserAccountFromSecurityContext, return_type[type[UserAccount]], modifier[final protected], parameter[]] begin[{] local_variable[type[SecurityContext], context] if[binary_operation[member[.context], !=, literal[null]]] begin[{] local_...
Keyword[protected] Keyword[final] identifier[UserAccount] identifier[getUserAccountFromSecurityContext] operator[SEP] operator[SEP] { Keyword[final] identifier[SecurityContext] identifier[context] operator[=] identifier[SecurityContextHolder] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] opera...
protected void addStepFailureContextData( StepExecutionResult stepResult, ExecutionContextImpl.Builder builder ) { HashMap<String, String> resultData = new HashMap<>(); if (null != stepResult.getFailureData()) { //convert values to string ...
class class_name[name] begin[{] method[addStepFailureContextData, return_type[void], modifier[protected], parameter[stepResult, builder]] begin[{] local_variable[type[HashMap], resultData] if[binary_operation[literal[null], !=, call[stepResult.getFailureData, parameter[]]]] begin[{] ...
Keyword[protected] Keyword[void] identifier[addStepFailureContextData] operator[SEP] identifier[StepExecutionResult] identifier[stepResult] , identifier[ExecutionContextImpl] operator[SEP] identifier[Builder] identifier[builder] operator[SEP] { identifier[HashMap] operator[<] identifier[String] , identifier[St...
public FieldControl getControl(final MathRandom random, Element element, final Range range) { if (finder == null) { finder = new XmlElementFinder(element.getDocument()); } Element fieldElement = element.getChild(XMLTags.FIELD); if (fieldElement != null) { element = fieldElement; } else { fiel...
class class_name[name] begin[{] method[getControl, return_type[type[FieldControl]], modifier[public], parameter[random, element, range]] begin[{] if[binary_operation[member[.finder], ==, literal[null]]] begin[{] assign[member[.finder], ClassCreator(arguments=[MethodInvoc...
Keyword[public] identifier[FieldControl] identifier[getControl] operator[SEP] Keyword[final] identifier[MathRandom] identifier[random] , identifier[Element] identifier[element] , Keyword[final] identifier[Range] identifier[range] operator[SEP] { Keyword[if] operator[SEP] identifier[finder] operator[==] Other[n...
public BaseField setupField(int iFieldSeq) { BaseField field = null; //if (iFieldSeq == 0) //{ // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null); // field.setHidden(true); //} //if (iFieldSeq == 1) //{ // fiel...
class class_name[name] begin[{] method[setupField, return_type[type[BaseField]], modifier[public], parameter[iFieldSeq]] begin[{] local_variable[type[BaseField], field] if[binary_operation[member[.iFieldSeq], ==, literal[3]]] begin[{] assign[member[.field], ClassCreator(argu...
Keyword[public] identifier[BaseField] identifier[setupField] operator[SEP] Keyword[int] identifier[iFieldSeq] operator[SEP] { identifier[BaseField] identifier[field] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[iFieldSeq] operator[==] Other[3] operator[SEP] identifier[field] operato...
private void collapseMap(HashMap<String, Object> objMap) { while (objMap.keySet().size() == 1 && objMap.keySet().contains("")) { HashMap<String, Object> innerMap = (HashMap<String, Object>) objMap.get(""); objMap.clear(); objMap.putAll(innerMap); } }
class class_name[name] begin[{] method[collapseMap, return_type[void], modifier[private], parameter[objMap]] begin[{] while[binary_operation[binary_operation[call[objMap.keySet, parameter[]], ==, literal[1]], &&, call[objMap.keySet, parameter[]]]] begin[{] local_variable[type[HashMa...
Keyword[private] Keyword[void] identifier[collapseMap] operator[SEP] identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[objMap] operator[SEP] { Keyword[while] operator[SEP] identifier[objMap] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] i...
public static Actor app(String appId) { Assert.notNull(appId, "appId must not be null"); return new Actor(APP, appId); }
class class_name[name] begin[{] method[app, return_type[type[Actor]], modifier[public static], parameter[appId]] begin[{] call[Assert.notNull, parameter[member[.appId], literal["appId must not be null"]]] return[ClassCreator(arguments=[MemberReference(member=APP, postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[Actor] identifier[app] operator[SEP] identifier[String] identifier[appId] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[appId] , literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[Actor] o...
public static <T> T load( Class<T> klass, Iterable<Class<?>> hardcoded, ClassLoader classLoader, PriorityAccessor<T> priorityAccessor) { return ServiceProviders.load(klass, hardcoded, classLoader, priorityAccessor); }
class class_name[name] begin[{] method[load, return_type[type[T]], modifier[public static], parameter[klass, hardcoded, classLoader, priorityAccessor]] begin[{] return[call[ServiceProviders.load, parameter[member[.klass], member[.hardcoded], member[.classLoader], member[.priorityAccessor]]]] end[}]...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[load] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[klass] , identifier[Iterable] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[hardcoded] , iden...
@Nonnull public static LBiIntPredicate biIntPredicateFrom(Consumer<LBiIntPredicateBuilder> buildingFunction) { LBiIntPredicateBuilder builder = new LBiIntPredicateBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[biIntPredicateFrom, return_type[type[LBiIntPredicate]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LBiIntPredicateBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] return[c...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LBiIntPredicate] identifier[biIntPredicateFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LBiIntPredicateBuilder] operator[>] identifier[buildingFunction] operator[SEP] { identifier[LBiIntPredicateBuilder] identifier[bui...
public List<CmsResource> readSubscribedResources( CmsRequestContext context, String poolName, CmsSubscriptionFilter filter) throws CmsException { List<CmsResource> result = null; CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { result = ...
class class_name[name] begin[{] method[readSubscribedResources, return_type[type[List]], modifier[public], parameter[context, poolName, filter]] begin[{] local_variable[type[List], result] local_variable[type[CmsDbContext], dbc] TryStatement(block=[StatementExpression(expression=Assignm...
Keyword[public] identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[readSubscribedResources] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[String] identifier[poolName] , identifier[CmsSubscriptionFilter] identifier[filter] operator[SEP] Keyword[throws] identifier...
private void insertChildren(QueryNode parentNode, ImmutableList<IQTree> childrenTrees, IntermediateQueryBuilder queryBuilder) { AtomicInteger i = new AtomicInteger(0); childrenTrees.stream() .map(IQTree::getRootNode) .map(n -> queryBuilder....
class class_name[name] begin[{] method[insertChildren, return_type[void], modifier[private], parameter[parentNode, childrenTrees, queryBuilder]] begin[{] local_variable[type[AtomicInteger], i] call[childrenTrees.stream, parameter[]] end[}] END[}]
Keyword[private] Keyword[void] identifier[insertChildren] operator[SEP] identifier[QueryNode] identifier[parentNode] , identifier[ImmutableList] operator[<] identifier[IQTree] operator[>] identifier[childrenTrees] , identifier[IntermediateQueryBuilder] identifier[queryBuilder] operator[SEP] { identifier[Atomic...
public static void addClientQueryListener(RemoteCache<?, ?> remoteCache, Object listener, Query query) { ClientListener l = ReflectionUtil.getAnnotation(listener.getClass(), ClientListener.class); if (l == null) { throw log.missingClientListenerAnnotation(listener.getClass().getName()); } ...
class class_name[name] begin[{] method[addClientQueryListener, return_type[void], modifier[public static], parameter[remoteCache, listener, query]] begin[{] local_variable[type[ClientListener], l] if[binary_operation[member[.l], ==, literal[null]]] begin[{] ThrowStatement(ex...
Keyword[public] Keyword[static] Keyword[void] identifier[addClientQueryListener] operator[SEP] identifier[RemoteCache] operator[<] operator[?] , operator[?] operator[>] identifier[remoteCache] , identifier[Object] identifier[listener] , identifier[Query] identifier[query] operator[SEP] { identifier[ClientList...
public List<String> getFeatureTables() throws SQLException { List<String> tableNames = new ArrayList<String>(); List<GeometryColumns> geometryColumns = queryForAll(); for (GeometryColumns geometryColumn : geometryColumns) { tableNames.add(geometryColumn.getTableName()); } return tableNames; }
class class_name[name] begin[{] method[getFeatureTables, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], tableNames] local_variable[type[List], geometryColumns] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expre...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getFeatureTables] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[List] operator[<] identifier[String] operator[>] identifier[tableNames] operator[=] Keyword[new] identifier[ArrayList] operato...
private static int getIdentifier(String resourcetype, Context context, String resourceName) { return context.getResources().getIdentifier(resourceName, resourcetype, context.getPackageName()); }
class class_name[name] begin[{] method[getIdentifier, return_type[type[int]], modifier[private static], parameter[resourcetype, context, resourceName]] begin[{] return[call[context.getResources, parameter[]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[int] identifier[getIdentifier] operator[SEP] identifier[String] identifier[resourcetype] , identifier[Context] identifier[context] , identifier[String] identifier[resourceName] operator[SEP] { Keyword[return] identifier[context] operator[SEP] identifier[getResources] op...
public static ByteBuf copiedBuffer(ByteBuf... buffers) { switch (buffers.length) { case 0: return EMPTY_BUFFER; case 1: return copiedBuffer(buffers[0]); } // Merge the specified buffers into one buffer. ByteOrder order = null; int length =...
class class_name[name] begin[{] method[copiedBuffer, return_type[type[ByteBuf]], modifier[public static], parameter[buffers]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[ReturnStatement...
Keyword[public] Keyword[static] identifier[ByteBuf] identifier[copiedBuffer] operator[SEP] identifier[ByteBuf] operator[...] identifier[buffers] operator[SEP] { Keyword[switch] operator[SEP] identifier[buffers] operator[SEP] identifier[length] operator[SEP] { Keyword[case] Other[0] operator[:] Keywor...
@Override public Map<String, ColAttrMapping> getColumnAttributeMappings() { if (cachedColumnAttributeMappings == null) { cachedColumnAttributeMappings = new HashMap<>(); ColumnAttribute[] annoMappings = getClass().getAnnotationsByType(ColumnAttribute.class); for (ColumnAt...
class class_name[name] begin[{] method[getColumnAttributeMappings, return_type[type[Map]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.cachedColumnAttributeMappings], ==, literal[null]]] begin[{] assign[member[.cachedColumnAttributeMappings], Clas...
annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[ColAttrMapping] operator[>] identifier[getColumnAttributeMappings] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[cachedColumnAttributeMappings] operator[==] Other[null] operator[SE...
private void calculateConnectionIDs() { final Set<ExecutionGroupVertex> alreadyVisited = new HashSet<ExecutionGroupVertex>(); final ExecutionStage lastStage = getStage(getNumberOfStages() - 1); for (int i = 0; i < lastStage.getNumberOfStageMembers(); ++i) { final ExecutionGroupVertex groupVertex = lastStage...
class class_name[name] begin[{] method[calculateConnectionIDs, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Set], alreadyVisited] local_variable[type[ExecutionStage], lastStage] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDecl...
Keyword[private] Keyword[void] identifier[calculateConnectionIDs] operator[SEP] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[ExecutionGroupVertex] operator[>] identifier[alreadyVisited] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[ExecutionGroupVertex] operator[>] ...
public List<T> batchLoad(Iterable<T> itemsToGet) { final Map<String,List<Object>> results = mapper.batchLoad(itemsToGet); if (results.isEmpty()) { return Collections.<T>emptyList(); } return (List<T>)results.get(mapper.getTableName(model.targetType(), config)); }
class class_name[name] begin[{] method[batchLoad, return_type[type[List]], modifier[public], parameter[itemsToGet]] begin[{] local_variable[type[Map], results] if[call[results.isEmpty, parameter[]]] begin[{] return[call[.Collections, parameter[]]] else begin[{] None ...
Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[batchLoad] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[itemsToGet] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[Obj...
protected static int getPreferredColumns(double width, double height, int numc, double maxwidth) { // Maximum width (compared to height) of labels - guess. // FIXME: do we really need to do this three-step computation? // Number of rows we'd use in a squared layout: final double rows = Math.ceil(FastMat...
class class_name[name] begin[{] method[getPreferredColumns, return_type[type[int]], modifier[static protected], parameter[width, height, numc, maxwidth]] begin[{] local_variable[type[double], rows] return[Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(membe...
Keyword[protected] Keyword[static] Keyword[int] identifier[getPreferredColumns] operator[SEP] Keyword[double] identifier[width] , Keyword[double] identifier[height] , Keyword[int] identifier[numc] , Keyword[double] identifier[maxwidth] operator[SEP] { Keyword[final] Keyword[double] identifier[rows] operator[=...
public Observable<ServiceResponse<List<LabelTextObject>>> examplesMethodWithServiceResponseAsync(UUID appId, String versionId, String modelId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cann...
class class_name[name] begin[{] method[examplesMethodWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, modelId, skip, take]] begin[{] if[binary_operation[THIS[member[None.client]call[None.endpoint, parameter[]]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[LabelTextObject] operator[>] operator[>] operator[>] identifier[examplesMethodWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[ver...
public void append(final String string, final boolean encode) { if (encode) { appendOptional(WebUtilities.encode(string)); } else { // unescaped content still has to be XML compliant. write(HtmlToXMLUtil.unescapeToXML(string)); } }
class class_name[name] begin[{] method[append, return_type[void], modifier[public], parameter[string, encode]] begin[{] if[member[.encode]] begin[{] call[.appendOptional, parameter[call[WebUtilities.encode, parameter[member[.string]]]]] else begin[{] ...
Keyword[public] Keyword[void] identifier[append] operator[SEP] Keyword[final] identifier[String] identifier[string] , Keyword[final] Keyword[boolean] identifier[encode] operator[SEP] { Keyword[if] operator[SEP] identifier[encode] operator[SEP] { identifier[appendOptional] operator[SEP] identifier[Web...
private void validateMaximumPayloadSize(int currentPayloadSize) throws PayloadMaxSizeExceededException { int maximumPayloadSize = getMaximumPayloadSize(); if (currentPayloadSize > maximumPayloadSize) { throw new PayloadMaxSizeExceededException(maximumPayloadSize, currentPayloadSize); } }
class class_name[name] begin[{] method[validateMaximumPayloadSize, return_type[void], modifier[private], parameter[currentPayloadSize]] begin[{] local_variable[type[int], maximumPayloadSize] if[binary_operation[member[.currentPayloadSize], >, member[.maximumPayloadSize]]] begin[{] ...
Keyword[private] Keyword[void] identifier[validateMaximumPayloadSize] operator[SEP] Keyword[int] identifier[currentPayloadSize] operator[SEP] Keyword[throws] identifier[PayloadMaxSizeExceededException] { Keyword[int] identifier[maximumPayloadSize] operator[=] identifier[getMaximumPayloadSize] operator[SEP] opera...
public static FileMetaData readFileMetaData(InputStream from, boolean skipRowGroups) throws IOException { FileMetaData md = new FileMetaData(); if (skipRowGroups) { readFileMetaData(from, new DefaultFileMetaDataConsumer(md), skipRowGroups); } else { read(from, md); } return md; }
class class_name[name] begin[{] method[readFileMetaData, return_type[type[FileMetaData]], modifier[public static], parameter[from, skipRowGroups]] begin[{] local_variable[type[FileMetaData], md] if[member[.skipRowGroups]] begin[{] call[.readFileMetaData, paramete...
Keyword[public] Keyword[static] identifier[FileMetaData] identifier[readFileMetaData] operator[SEP] identifier[InputStream] identifier[from] , Keyword[boolean] identifier[skipRowGroups] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileMetaData] identifier[md] operator[=] Keyword[new] ident...
static void fireChannelRead(ChannelHandlerContext ctx, List<Object> msgs, int numElements) { if (msgs instanceof CodecOutputList) { fireChannelRead(ctx, (CodecOutputList) msgs, numElements); } else { for (int i = 0; i < numElements; i++) { ctx.fireChannelRead(msgs...
class class_name[name] begin[{] method[fireChannelRead, return_type[void], modifier[static], parameter[ctx, msgs, numElements]] begin[{] if[binary_operation[member[.msgs], instanceof, type[CodecOutputList]]] begin[{] call[.fireChannelRead, parameter[member[.ctx], Cast(ex...
Keyword[static] Keyword[void] identifier[fireChannelRead] operator[SEP] identifier[ChannelHandlerContext] identifier[ctx] , identifier[List] operator[<] identifier[Object] operator[>] identifier[msgs] , Keyword[int] identifier[numElements] operator[SEP] { Keyword[if] operator[SEP] identifier[msgs] Keyword[inst...
@Override public void addProperties(Map<Object, Object> properties) { logger.debug("Adding properties: ", properties); super.addProperties(properties); }
class class_name[name] begin[{] method[addProperties, return_type[void], modifier[public], parameter[properties]] begin[{] call[logger.debug, parameter[literal["Adding properties: "], member[.properties]]] SuperMethodInvocation(arguments=[MemberReference(member=properties, postf...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addProperties] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Object] operator[>] identifier[properties] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , iden...
public HttpClient setHeader(String name, Object value) { if (mHeaders == null) { mHeaders = new HttpHeaderMap(); } mHeaders.put(name, value); return this; }
class class_name[name] begin[{] method[setHeader, return_type[type[HttpClient]], modifier[public], parameter[name, value]] begin[{] if[binary_operation[member[.mHeaders], ==, literal[null]]] begin[{] assign[member[.mHeaders], ClassCreator(arguments=[], body=None, constru...
Keyword[public] identifier[HttpClient] identifier[setHeader] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[mHeaders] operator[==] Other[null] operator[SEP] { identifier[mHeaders] operator[=] Keyword[new] i...
@XmlElementDecl(namespace = "Encapsulaton_1.0", name = "dataItem") public JAXBElement<EncapsulatedDataType> createDataItem(EncapsulatedDataType value) { return new JAXBElement<EncapsulatedDataType>(_DataItem_QNAME, EncapsulatedDataType.class, null, value); }
class class_name[name] begin[{] method[createDataItem, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_DataItem_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operato...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[EncapsulatedDataType] operator[>] identifier[createDataItem] operator[SEP] identifier[Enca...
public OvhOvhPabxHuntingQueue billingAccount_ovhPabx_serviceName_hunting_queue_queueId_GET(String billingAccount, String serviceName, Long queueId) throws IOException { String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/queue/{queueId}"; StringBuilder sb = path(qPath, billingAccount, serviceN...
class class_name[name] begin[{] method[billingAccount_ovhPabx_serviceName_hunting_queue_queueId_GET, return_type[type[OvhOvhPabxHuntingQueue]], modifier[public], parameter[billingAccount, serviceName, queueId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb]...
Keyword[public] identifier[OvhOvhPabxHuntingQueue] identifier[billingAccount_ovhPabx_serviceName_hunting_queue_queueId_GET] operator[SEP] identifier[String] identifier[billingAccount] , identifier[String] identifier[serviceName] , identifier[Long] identifier[queueId] operator[SEP] Keyword[throws] identifier[IOExcepti...
@Override public synchronized Long zadd(final String key, final ZsetPair scoremember, final ZsetPair ... scoresmembers) throws WrongTypeException { checkType(key, "zset"); Long count = 0L; if (!zsetCache.exists(key) || !zsetCache.get(key).contains(scoremember.member)) { ++count; ...
class class_name[name] begin[{] method[zadd, return_type[type[Long]], modifier[synchronized public], parameter[key, scoremember, scoresmembers]] begin[{] call[.checkType, parameter[member[.key], literal["zset"]]] local_variable[type[Long], count] if[binary_operation[call...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[Long] identifier[zadd] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[ZsetPair] identifier[scoremember] , Keyword[final] identifier[ZsetPair] operator[...] identifier[scoresmembers] operato...
@SuppressWarnings("unchecked") @Override public EList<Long> getMonthComponent() { return (EList<Long>) eGet(Ifc4Package.Literals.IFC_RECURRENCE_PATTERN__MONTH_COMPONENT, true); }
class class_name[name] begin[{] method[getMonthComponent, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_RECURRENCE_PATTERN__MONTH_COMPONENT, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[Long] operator[>] identifier[getMonthComponent] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator...
public final InternalFactHandle newFactHandle(Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint) { ret...
class class_name[name] begin[{] method[newFactHandle, return_type[type[InternalFactHandle]], modifier[final public], parameter[object, conf, workingMemory, wmEntryPoint]] begin[{] return[call[.newFactHandle, parameter[call[.getNextId, parameter[]], member[.object], member[.conf], member[.workingMemory]...
Keyword[public] Keyword[final] identifier[InternalFactHandle] identifier[newFactHandle] operator[SEP] identifier[Object] identifier[object] , identifier[ObjectTypeConf] identifier[conf] , identifier[InternalWorkingMemory] identifier[workingMemory] , identifier[WorkingMemoryEntryPoint] identifier[wmEntryPoint] operat...
@Override public AudioFormat[] getTargetFormats(AudioFormat.Encoding targetEncoding, AudioFormat sourceFormat) { for (Entry<AudioFormat, Map<AudioFormat.Encoding, Collection<AudioFormat>>> entry : m_targetFormatsFromSourceFormat.entrySet()) { AudioFormat format = entry.getKey(); if (...
class class_name[name] begin[{] method[getTargetFormats, return_type[type[AudioFormat]], modifier[public], parameter[targetEncoding, sourceFormat]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], i...
annotation[@] identifier[Override] Keyword[public] identifier[AudioFormat] operator[SEP] operator[SEP] identifier[getTargetFormats] operator[SEP] identifier[AudioFormat] operator[SEP] identifier[Encoding] identifier[targetEncoding] , identifier[AudioFormat] identifier[sourceFormat] operator[SEP] { Keyword[for] ...
static public void warn(String message, Throwable ex) { if (WARN) logger.log(LEVEL_WARN, message, ex); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public static], parameter[message, ex]] begin[{] if[member[.WARN]] begin[{] call[logger.log, parameter[member[.LEVEL_WARN], member[.message], member[.ex]]] else begin[{] None end[}] end[}] E...
Keyword[static] Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[ex] operator[SEP] { Keyword[if] operator[SEP] identifier[WARN] operator[SEP] identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[LEVEL_WARN...
public void writeOpen(Writer writer) throws IOException { writer.append(OPENPARENTHESIS).append(FUNCTION).append(SPACEOPTIONAL).append(PARENTHESIS).append(SPACEOPTIONAL) .append(OPENBRACE).append(CR); // (function() {\n writer.append(TAB).append(USESTRICT).append(SEMICOLON).append(CR); // 'use strict'; }
class class_name[name] begin[{] method[writeOpen, return_type[void], modifier[public], parameter[writer]] begin[{] call[writer.append, parameter[member[.OPENPARENTHESIS]]] call[writer.append, parameter[member[.TAB]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeOpen] operator[SEP] identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[writer] operator[SEP] identifier[append] operator[SEP] identifier[OPENPARENTHESIS] operator[SEP] operator[SEP] identifier[append] operator[SEP...
public EEnum getIfcServiceLifeTypeEnum() { if (ifcServiceLifeTypeEnumEEnum == null) { ifcServiceLifeTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(897); } return ifcServiceLifeTypeEnumEEnum; }
class class_name[name] begin[{] method[getIfcServiceLifeTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcServiceLifeTypeEnumEEnum], ==, literal[null]]] begin[{] assign[member[.ifcServiceLifeTypeEnumEEnum], Cast(ex...
Keyword[public] identifier[EEnum] identifier[getIfcServiceLifeTypeEnum] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcServiceLifeTypeEnumEEnum] operator[==] Other[null] operator[SEP] { identifier[ifcServiceLifeTypeEnumEEnum] operator[=] operator[SEP] identifier[EEnum] operator[...
public static <E extends Enum<E>> StreamableEnumSet<E> complementOf (StreamableEnumSet<E> s) { Class<E> elementType = s._elementType; StreamableEnumSet<E> set = new StreamableEnumSet<E>(elementType); for (E constant : elementType.getEnumConstants()) { if (!s.contains(constant)) {...
class class_name[name] begin[{] method[complementOf, return_type[type[StreamableEnumSet]], modifier[public static], parameter[s]] begin[{] local_variable[type[Class], elementType] local_variable[type[StreamableEnumSet], set] ForStatement(body=BlockStatement(label=None, statements=[IfSta...
Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Enum] operator[<] identifier[E] operator[>] operator[>] identifier[StreamableEnumSet] operator[<] identifier[E] operator[>] identifier[complementOf] operator[SEP] identifier[StreamableEnumSet] operator[<] identifier[E] operator[>] ide...
public static <E> Set<E> symmetricDiff(Set<E> s1, Set<E> s2) { Set<E> s = new HashSet<E>(); for (E o : s1) { if (!s2.contains(o)) { s.add(o); } } for (E o : s2) { if (!s1.contains(o)) { s.add(o); } } return s; }
class class_name[name] begin[{] method[symmetricDiff, return_type[type[Set]], modifier[public static], parameter[s1, s2]] begin[{] local_variable[type[Set], s] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=o, po...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Set] operator[<] identifier[E] operator[>] identifier[symmetricDiff] operator[SEP] identifier[Set] operator[<] identifier[E] operator[>] identifier[s1] , identifier[Set] operator[<] identifier[E] operator[>] identifier[s2] operator[SEP] ...
public ServletOutputStream getOutputStream() { if (_outputState==DISABLED) return __nullServletOut; if (_outputState!=NO_OUT && _outputState!=OUTPUTSTREAM_OUT) throw new IllegalStateException(); if (_writer!=null) { _writer.flush...
class class_name[name] begin[{] method[getOutputStream, return_type[type[ServletOutputStream]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._outputState], ==, member[.DISABLED]]] begin[{] return[member[.__nullServletOut]] else begin[{] None end[}] ...
Keyword[public] identifier[ServletOutputStream] identifier[getOutputStream] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_outputState] operator[==] identifier[DISABLED] operator[SEP] Keyword[return] identifier[__nullServletOut] operator[SEP] Keyword[if] operator[SEP] identifier[_outputState...
public static ElkTimer getNamedTimer(String timerName) { return getNamedTimer(timerName, RECORD_ALL, Thread.currentThread() .getId()); }
class class_name[name] begin[{] method[getNamedTimer, return_type[type[ElkTimer]], modifier[public static], parameter[timerName]] begin[{] return[call[.getNamedTimer, parameter[member[.timerName], member[.RECORD_ALL], call[Thread.currentThread, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[ElkTimer] identifier[getNamedTimer] operator[SEP] identifier[String] identifier[timerName] operator[SEP] { Keyword[return] identifier[getNamedTimer] operator[SEP] identifier[timerName] , identifier[RECORD_ALL] , identifier[Thread] operator[SEP] identifier[currentThrea...
@Override public void stop() { if(registrationManager != null){ ((RegistrationManagerImpl) registrationManager).stop(); } if(lookupManager != null){ ((LookupManagerImpl) lookupManager).stop(); } }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.registrationManager], !=, literal[null]]] begin[{] Cast(expression=MemberReference(member=registrationManager, postfix_operators=[], prefix...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[registrationManager] operator[!=] Other[null] operator[SEP] { operator[SEP] operator[SEP] identifier[RegistrationManagerImpl] operator[SEP] identifier[re...
private int getDocumentType() { NodeList children = getChildNodes(); int elemCount = 0; for (int i = 0; i < children.getLength(); i++) { Node n = children.item(i); switch (n.getNodeType()) { case Node.ELEMENT_NODE: elemCount++; ...
class class_name[name] begin[{] method[getDocumentType, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[NodeList], children] local_variable[type[int], elemCount] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annota...
Keyword[private] Keyword[int] identifier[getDocumentType] operator[SEP] operator[SEP] { identifier[NodeList] identifier[children] operator[=] identifier[getChildNodes] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[elemCount] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keywor...
public static CommerceWishList findByUUID_G(String uuid, long groupId) throws com.liferay.commerce.wish.list.exception.NoSuchWishListException { return getPersistence().findByUUID_G(uuid, groupId); }
class class_name[name] begin[{] method[findByUUID_G, return_type[type[CommerceWishList]], modifier[public static], parameter[uuid, groupId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceWishList] identifier[findByUUID_G] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[wish] o...
public static void registerSerializers(final Kryo kryo) { // ImmutableSortedSet (abstract class) // +- EmptyImmutableSortedSet // +- RegularImmutableSortedSet // +- DescendingImmutableSortedSet final ImmutableSortedSetSerializer serializer = new ImmutableSortedSetSerializer(); kryo.registe...
class class_name[name] begin[{] method[registerSerializers, return_type[void], modifier[public static], parameter[kryo]] begin[{] local_variable[type[ImmutableSortedSetSerializer], serializer] call[kryo.register, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[static] Keyword[void] identifier[registerSerializers] operator[SEP] Keyword[final] identifier[Kryo] identifier[kryo] operator[SEP] { Keyword[final] identifier[ImmutableSortedSetSerializer] identifier[serializer] operator[=] Keyword[new] identifier[ImmutableSortedSetSerializer] operator[SE...
public static Basic1DMatrix constant(int rows, int columns, double constant) { double[] array = new double[rows * columns]; Arrays.fill(array, constant); return new Basic1DMatrix(rows, columns, array); }
class class_name[name] begin[{] method[constant, return_type[type[Basic1DMatrix]], modifier[public static], parameter[rows, columns, constant]] begin[{] local_variable[type[double], array] call[Arrays.fill, parameter[member[.array], member[.constant]]] return[ClassCreator(argume...
Keyword[public] Keyword[static] identifier[Basic1DMatrix] identifier[constant] operator[SEP] Keyword[int] identifier[rows] , Keyword[int] identifier[columns] , Keyword[double] identifier[constant] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[array] operator[=] Keyword[new] Keyword[dou...
public static CoordinateCoverage get2DCoordinateCoverage(IAtomContainer container) { if (container == null || container.getAtomCount() == 0) return CoordinateCoverage.NONE; int count = 0; for (IAtom atom : container.atoms()) { count += atom != null && atom.getPoint2d() != null ? 1...
class class_name[name] begin[{] method[get2DCoordinateCoverage, return_type[type[CoordinateCoverage]], modifier[public static], parameter[container]] begin[{] if[binary_operation[binary_operation[member[.container], ==, literal[null]], ||, binary_operation[call[container.getAtomCount, parameter...
Keyword[public] Keyword[static] identifier[CoordinateCoverage] identifier[get2DCoordinateCoverage] operator[SEP] identifier[IAtomContainer] identifier[container] operator[SEP] { Keyword[if] operator[SEP] identifier[container] operator[==] Other[null] operator[||] identifier[container] operator[SEP] identifier[ge...
public static int scalarIntegralTypeToGL(final JCGLScalarIntegralType type) { switch (type) { case TYPE_BYTE: return GL.GL_BYTE; case TYPE_INT: return GL2ES2.GL_INT; case TYPE_SHORT: return GL.GL_SHORT; case TYPE_UNSIGNED_BYTE: return GL.GL_UNSIGNED_BYTE; ...
class class_name[name] begin[{] method[scalarIntegralTypeToGL, return_type[type[int]], modifier[public static], parameter[type]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['TYPE_BYTE'], statements=[ReturnStatement(expression=MemberReference(member=GL_BYTE, postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] Keyword[int] identifier[scalarIntegralTypeToGL] operator[SEP] Keyword[final] identifier[JCGLScalarIntegralType] identifier[type] operator[SEP] { Keyword[switch] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[TYPE_BYTE] operator[:] Keyword[retur...
public Collection<E> internAll(@NonNull Iterable<? extends E> iterable) { return asStream(iterable).map(this::intern).collect(Collectors.toList()); }
class class_name[name] begin[{] method[internAll, return_type[type[Collection]], modifier[public], parameter[iterable]] begin[{] return[call[.asStream, parameter[member[.iterable]]]] end[}] END[}]
Keyword[public] identifier[Collection] operator[<] identifier[E] operator[>] identifier[internAll] operator[SEP] annotation[@] identifier[NonNull] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[E] operator[>] identifier[iterable] operator[SEP] { Keyword[return] identifier[asStream] oper...
public static Uri getUriForQualifiedResource(String packageName, int resourceId) { return new Uri.Builder() .scheme(QUALIFIED_RESOURCE_SCHEME) .authority(packageName) .path(String.valueOf(resourceId)) .build(); }
class class_name[name] begin[{] method[getUriForQualifiedResource, return_type[type[Uri]], modifier[public static], parameter[packageName, resourceId]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selec...
Keyword[public] Keyword[static] identifier[Uri] identifier[getUriForQualifiedResource] operator[SEP] identifier[String] identifier[packageName] , Keyword[int] identifier[resourceId] operator[SEP] { Keyword[return] Keyword[new] identifier[Uri] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operato...
private void assertInitialized() { if (!services.isShuttingDown() && !services.isShutdownDone()) { // wait for service layer to be initialized while (!services.isInitialized()) { try { Thread.sleep(1000); } catch (Throwable t) {} } } }
class class_name[name] begin[{] method[assertInitialized, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[call[services.isShuttingDown, parameter[]], &&, call[services.isShutdownDone, parameter[]]]] begin[{] while[call[services.isInitializ...
Keyword[private] Keyword[void] identifier[assertInitialized] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[services] operator[SEP] identifier[isShuttingDown] operator[SEP] operator[SEP] operator[&&] operator[!] identifier[services] operator[SEP] identifier[isShutdownDone] operato...
@Override public Object get(final ByteBuffer buf, final int position) { final Lock lock = stripedLock.getAt(lockIndex(position)).readLock(); lock.lock(); try { return sketchCache.get(buf).get(position).copy(); } finally { lock.unlock(); } }
class class_name[name] begin[{] method[get, return_type[type[Object]], modifier[public], parameter[buf, position]] begin[{] local_variable[type[Lock], lock] call[lock.lock, parameter[]] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(me...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[get] operator[SEP] Keyword[final] identifier[ByteBuffer] identifier[buf] , Keyword[final] Keyword[int] identifier[position] operator[SEP] { Keyword[final] identifier[Lock] identifier[lock] operator[=] identifier[stripedLock] operat...
public static <T1, T2, R> BiFunction biFunction(final BiFunction<T1, T2, R> lambda) { return lambda; }
class class_name[name] begin[{] method[biFunction, return_type[type[BiFunction]], modifier[public static], parameter[lambda]] begin[{] return[member[.lambda]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[R] operator[>] identifier[BiFunction] identifier[biFunction] operator[SEP] Keyword[final] identifier[BiFunction] operator[<] identifier[T1] , identifier[T2] , identifier[R] operator[>] identifier[lambda] operator[SEP] { ...
@Override public void onCreate(SQLiteDatabase db) { db.execSQL(String.format(CREATE_PROPERTIES_TABLE, className)); db.execSQL(String.format(CREATE_PROPERTIES_INDEXES, className, className, className, className, className, className)); }
class class_name[name] begin[{] method[onCreate, return_type[void], modifier[public], parameter[db]] begin[{] call[db.execSQL, parameter[call[String.format, parameter[member[.CREATE_PROPERTIES_TABLE], member[.className]]]]] call[db.execSQL, parameter[call[String.format, paramete...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onCreate] operator[SEP] identifier[SQLiteDatabase] identifier[db] operator[SEP] { identifier[db] operator[SEP] identifier[execSQL] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] identifier[CREATE_PROPERTI...
public final BaseDescr exclusiveOrExpression() throws RecognitionException { BaseDescr result = null; BaseDescr left =null; BaseDescr right =null; try { // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:274:3: (left= andExpression ( XOR right= andExpression )* ) // src/main/resources/org...
class class_name[name] begin[{] method[exclusiveOrExpression, return_type[type[BaseDescr]], modifier[final public], parameter[]] begin[{] local_variable[type[BaseDescr], result] local_variable[type[BaseDescr], left] local_variable[type[BaseDescr], right] TryStatement(block=[Bloc...
Keyword[public] Keyword[final] identifier[BaseDescr] identifier[exclusiveOrExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[BaseDescr] identifier[result] operator[=] Other[null] operator[SEP] identifier[BaseDescr] identifier[left] operator[=] Other[null] opera...
@Override public List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, OrderByComparator<CPDefinition> orderByComparator) { return findByC_S(CProductId, status, start, end, orderByComparator, true); }
class class_name[name] begin[{] method[findByC_S, return_type[type[List]], modifier[public], parameter[CProductId, status, start, end, orderByComparator]] begin[{] return[call[.findByC_S, parameter[member[.CProductId], member[.status], member[.start], member[.end], member[.orderByComparator], literal[t...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPDefinition] operator[>] identifier[findByC_S] operator[SEP] Keyword[long] identifier[CProductId] , Keyword[int] identifier[status] , Keyword[int] identifier[start] , Keyword[int] identifier[end] , identifier[OrderByComparat...
public static boolean verifyTopology(TopologyAPI.Topology topology) { if (!topology.hasName() || topology.getName().isEmpty()) { LOG.severe("Missing topology name"); return false; } if (topology.getName().contains(".") || topology.getName().contains("/")) { LOG.severe("Invalid topology nam...
class class_name[name] begin[{] method[verifyTopology, return_type[type[boolean]], modifier[public static], parameter[topology]] begin[{] if[binary_operation[call[topology.hasName, parameter[]], ||, call[topology.getName, parameter[]]]] begin[{] call[LOG.severe, paramete...
Keyword[public] Keyword[static] Keyword[boolean] identifier[verifyTopology] operator[SEP] identifier[TopologyAPI] operator[SEP] identifier[Topology] identifier[topology] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[topology] operator[SEP] identifier[hasName] operator[SEP] operator[SEP] operat...
@SuppressWarnings("unchecked") public EList<IfcRelCoversBldgElements> getCovers() { return (EList<IfcRelCoversBldgElements>) eGet(Ifc2x3tc1Package.Literals.IFC_COVERING__COVERS, true); }
class class_name[name] begin[{] method[getCovers, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_COVERING__COVERS, postfix_operators=[], prefix_operators=[], qualifier=Ifc2x3tc1Package.Literals, selectors=[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcRelCoversBldgElements] operator[>] identifier[getCovers] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator[<] identifier[IfcRelCo...
public static StandaloneServer createStandaloneServer(String jbossHomePath, String modulePath, String... systemPackages) { return createStandaloneServer(jbossHomePath, modulePath, systemPackages, null); }
class class_name[name] begin[{] method[createStandaloneServer, return_type[type[StandaloneServer]], modifier[public static], parameter[jbossHomePath, modulePath, systemPackages]] begin[{] return[call[.createStandaloneServer, parameter[member[.jbossHomePath], member[.modulePath], member[.systemPackages]...
Keyword[public] Keyword[static] identifier[StandaloneServer] identifier[createStandaloneServer] operator[SEP] identifier[String] identifier[jbossHomePath] , identifier[String] identifier[modulePath] , identifier[String] operator[...] identifier[systemPackages] operator[SEP] { Keyword[return] identifier[createS...
public void informIfChanged(final EventDispatcher pDispatcher, final Path pFile, final boolean pIsCreated) { informIfChanged(pDispatcher, null, pFile, pIsCreated); }
class class_name[name] begin[{] method[informIfChanged, return_type[void], modifier[public], parameter[pDispatcher, pFile, pIsCreated]] begin[{] call[.informIfChanged, parameter[member[.pDispatcher], literal[null], member[.pFile], member[.pIsCreated]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[informIfChanged] operator[SEP] Keyword[final] identifier[EventDispatcher] identifier[pDispatcher] , Keyword[final] identifier[Path] identifier[pFile] , Keyword[final] Keyword[boolean] identifier[pIsCreated] operator[SEP] { identifier[informIfChanged] operator[SEP] ident...
public void setOtaUpdates(java.util.Collection<OTAUpdateSummary> otaUpdates) { if (otaUpdates == null) { this.otaUpdates = null; return; } this.otaUpdates = new java.util.ArrayList<OTAUpdateSummary>(otaUpdates); }
class class_name[name] begin[{] method[setOtaUpdates, return_type[void], modifier[public], parameter[otaUpdates]] begin[{] if[binary_operation[member[.otaUpdates], ==, literal[null]]] begin[{] assign[THIS[member[None.otaUpdates]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setOtaUpdates] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[OTAUpdateSummary] operator[>] identifier[otaUpdates] operator[SEP] { Keyword[if] operator[SEP] identifier[otaUpdates] operator[==] Othe...
protected static void validateSignature(final DataInput input) throws IOException { final byte[] signatureBytes = new byte[4]; input.readFully(signatureBytes); if (!Arrays.equals(ManagementProtocol.SIGNATURE, signatureBytes)) { throw ProtocolLogger.ROOT_LOGGER.invalidSignature(Arrays...
class class_name[name] begin[{] method[validateSignature, return_type[void], modifier[static protected], parameter[input]] begin[{] local_variable[type[byte], signatureBytes] call[input.readFully, parameter[member[.signatureBytes]]] if[call[Arrays.equals, parameter[membe...
Keyword[protected] Keyword[static] Keyword[void] identifier[validateSignature] operator[SEP] Keyword[final] identifier[DataInput] identifier[input] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[signatureBytes] operator[=] Keyword[new] ...
@Override public void rebalance() { double target = evenDistribution(); final double myLoad = myLoad(); if (myLoad > target) { LOG.info("Smart Rebalance triggered. Load: %s. Target: %s", myLoad, target); drainToLoad((long) target); } }
class class_name[name] begin[{] method[rebalance, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[double], target] local_variable[type[double], myLoad] if[binary_operation[member[.myLoad], >, member[.target]]] begin[{] call[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[rebalance] operator[SEP] operator[SEP] { Keyword[double] identifier[target] operator[=] identifier[evenDistribution] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[double] identifier[myLoad] operator[=] identifier[myLoa...
private void removeResource(FacesContext context, UIComponent resource, UIViewRoot view) { view.removeComponentResource(context, resource, HEAD); view.removeComponentResource(context, resource, TARGET); }
class class_name[name] begin[{] method[removeResource, return_type[void], modifier[private], parameter[context, resource, view]] begin[{] call[view.removeComponentResource, parameter[member[.context], member[.resource], member[.HEAD]]] call[view.removeComponentResource, paramete...
Keyword[private] Keyword[void] identifier[removeResource] operator[SEP] identifier[FacesContext] identifier[context] , identifier[UIComponent] identifier[resource] , identifier[UIViewRoot] identifier[view] operator[SEP] { identifier[view] operator[SEP] identifier[removeComponentResource] operator[SEP] identifi...
@Indexable(type = IndexableType.REINDEX) @Override public CommerceWishListItem updateCommerceWishListItem( CommerceWishListItem commerceWishListItem) { return commerceWishListItemPersistence.update(commerceWishListItem); }
class class_name[name] begin[{] method[updateCommerceWishListItem, return_type[type[CommerceWishListItem]], modifier[public], parameter[commerceWishListItem]] begin[{] return[call[commerceWishListItemPersistence.update, parameter[member[.commerceWishListItem]]]] end[}] END[}]
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[REINDEX] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceWishListItem] identifier[updateCommerceWishListItem] operator[SEP] identifier[CommerceWishListIte...
public static double distance( Quadrilateral_F64 quad , Point2D_F64 p ) { return Math.sqrt(distanceSq(quad,p)); }
class class_name[name] begin[{] method[distance, return_type[type[double]], modifier[public static], parameter[quad, p]] begin[{] return[call[Math.sqrt, parameter[call[.distanceSq, parameter[member[.quad], member[.p]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[distance] operator[SEP] identifier[Quadrilateral_F64] identifier[quad] , identifier[Point2D_F64] identifier[p] operator[SEP] { Keyword[return] identifier[Math] operator[SEP] identifier[sqrt] operator[SEP] identifier[distanceSq] operator[SEP] identifier[...
@Override public void warn(Object message, Throwable t) { print(true,WARN_LEVEL,message,t); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public], parameter[message, t]] begin[{] call[.print, parameter[literal[true], member[.WARN_LEVEL], member[.message], member[.t]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[Object] identifier[message] , identifier[Throwable] identifier[t] operator[SEP] { identifier[print] operator[SEP] literal[boolean] , identifier[WARN_LEVEL] , identifier[message] , identifier[t] operator...
public PagedList<JobScheduleInner> listByAutomationAccountNext(final String nextPageLink) { ServiceResponse<Page<JobScheduleInner>> response = listByAutomationAccountNextSinglePageAsync(nextPageLink).toBlocking().single(); return new PagedList<JobScheduleInner>(response.body()) { @Override ...
class class_name[name] begin[{] method[listByAutomationAccountNext, return_type[type[PagedList]], modifier[public], parameter[nextPageLink]] begin[{] local_variable[type[ServiceResponse], response] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=body, postfix_operators=[], ...
Keyword[public] identifier[PagedList] operator[<] identifier[JobScheduleInner] operator[>] identifier[listByAutomationAccountNext] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobScheduleIn...
public GVRSceneObject loadModel(final String filePath, final GVRScene scene) throws IOException { GVRSceneObject model = new GVRSceneObject(mContext); AssetRequest assetRequest = new AssetRequest(model, new GVRResourceVolume(mContext, filePath), scene, null, false); String ext = filePath.sub...
class class_name[name] begin[{] method[loadModel, return_type[type[GVRSceneObject]], modifier[public], parameter[filePath, scene]] begin[{] local_variable[type[GVRSceneObject], model] local_variable[type[AssetRequest], assetRequest] local_variable[type[String], ext] call...
Keyword[public] identifier[GVRSceneObject] identifier[loadModel] operator[SEP] Keyword[final] identifier[String] identifier[filePath] , Keyword[final] identifier[GVRScene] identifier[scene] operator[SEP] Keyword[throws] identifier[IOException] { identifier[GVRSceneObject] identifier[model] operator[=] Keyword[n...
public static void guessEntityFieldColumnType(NutMappingField ef) { Mirror<?> mirror = ef.getTypeMirror(); // 整型 if (mirror.isInt()) { ef.setColumnType(ColType.INT); ef.setWidth(8); } // 字符串 else if (mirror.isStringLike() || mirror.is(Email.class)...
class class_name[name] begin[{] method[guessEntityFieldColumnType, return_type[void], modifier[public static], parameter[ef]] begin[{] local_variable[type[Mirror], mirror] if[call[mirror.isInt, parameter[]]] begin[{] call[ef.setColumnType, parameter[member[ColTyp...
Keyword[public] Keyword[static] Keyword[void] identifier[guessEntityFieldColumnType] operator[SEP] identifier[NutMappingField] identifier[ef] operator[SEP] { identifier[Mirror] operator[<] operator[?] operator[>] identifier[mirror] operator[=] identifier[ef] operator[SEP] identifier[getTypeMirror] operator[SEP] ...
public final EObject ruleXAndExpression() throws RecognitionException { EObject current = null; EObject this_XEqualityExpression_0 = null; EObject lv_rightOperand_3_0 = null; enterRule(); try { // InternalPureXbase.g:1134:2: ( (this_XEqualityExpression_0= ruleX...
class class_name[name] begin[{] method[ruleXAndExpression, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], this_XEqualityExpression_0] local_variable[type[EObject], lv_rightOperand_3_0] ...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXAndExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[this_XEqualityExpression_0] operator[=] Oth...
public ReloadDecision shouldBeMadeReloadable(TypeRegistry typeRegistry, String typename, ProtectionDomain protectionDomain, byte[] bytes) { if (debug) { System.out.println("SystemPropertyConfiguredIsReloadableTypePlugin: entered, for typename " + typename); } if (protectionDomain == null) { return Reload...
class class_name[name] begin[{] method[shouldBeMadeReloadable, return_type[type[ReloadDecision]], modifier[public], parameter[typeRegistry, typename, protectionDomain, bytes]] begin[{] if[member[.debug]] begin[{] call[System.out.println, parameter[binary_operation[litera...
Keyword[public] identifier[ReloadDecision] identifier[shouldBeMadeReloadable] operator[SEP] identifier[TypeRegistry] identifier[typeRegistry] , identifier[String] identifier[typename] , identifier[ProtectionDomain] identifier[protectionDomain] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SE...
protected void digestElement(Element parent, Element output) throws SAXException { m_saxWriter.write(output); parent.remove(output); }
class class_name[name] begin[{] method[digestElement, return_type[void], modifier[protected], parameter[parent, output]] begin[{] call[m_saxWriter.write, parameter[member[.output]]] call[parent.remove, parameter[member[.output]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[digestElement] operator[SEP] identifier[Element] identifier[parent] , identifier[Element] identifier[output] operator[SEP] Keyword[throws] identifier[SAXException] { identifier[m_saxWriter] operator[SEP] identifier[write] operator[SEP] identifier[output] operator[SEP]...
public static JSONObject getRepositoryDef(final String repositoryName) { if (StringUtils.isBlank(repositoryName)) { return null; } if (null == repositoriesDescription) { return null; } final JSONArray repositories = repositoriesDescription.optJSONArray("...
class class_name[name] begin[{] method[getRepositoryDef, return_type[type[JSONObject]], modifier[public static], parameter[repositoryName]] begin[{] if[call[StringUtils.isBlank, parameter[member[.repositoryName]]]] begin[{] return[literal[null]] else begin[{] None en...
Keyword[public] Keyword[static] identifier[JSONObject] identifier[getRepositoryDef] operator[SEP] Keyword[final] identifier[String] identifier[repositoryName] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[repositoryName] operator[SEP]...