code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private void parse( FormattableContainer currentRule ) { try { for( ;; ) { int ch = reader.nextBlockMarker(); switch( ch ) { case -1: return; // end of input reached case ';': pars...
class class_name[name] begin[{] method[parse, return_type[void], modifier[private], parameter[currentRule]] begin[{] TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInv...
Keyword[private] Keyword[void] identifier[parse] operator[SEP] identifier[FormattableContainer] identifier[currentRule] operator[SEP] { Keyword[try] { Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[int] identifier[ch] operator[=] identifier[reader] operat...
protected final CacheControl getCacheControl( final HttpServletRequest request, final HttpServletResponse response, final Object handler) { if (handler == null || !(handler instanceof HandlerMethod)) { return null; } final HandlerMethod handlerMethod = (HandlerMethod) handler; CacheControl ca...
class class_name[name] begin[{] method[getCacheControl, return_type[type[CacheControl]], modifier[final protected], parameter[request, response, handler]] begin[{] if[binary_operation[binary_operation[member[.handler], ==, literal[null]], ||, binary_operation[member[.handler], instanceof, type[...
Keyword[protected] Keyword[final] identifier[CacheControl] identifier[getCacheControl] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[Object] identifier[handler] operator[SEP] { Ke...
@Override public List<CommerceNotificationTemplate> filterFindByGroupId(long groupId) { return filterFindByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[filterFindByGroupId, return_type[type[List]], modifier[public], parameter[groupId]] begin[{] return[call[.filterFindByGroupId, parameter[member[.groupId], member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceNotificationTemplate] operator[>] identifier[filterFindByGroupId] operator[SEP] Keyword[long] identifier[groupId] operator[SEP] { Keyword[return] identifier[filterFindByGroupId] operator[SEP] identifier[groupId] , ...
public static EntityActionOperation createFileInfos(String assetId) { String encodedId; try { encodedId = URLEncoder.encode(assetId, "UTF-8"); } catch (UnsupportedEncodingException ex) { // This can never happen unless JVM is broken throw new RuntimeException(...
class class_name[name] begin[{] method[createFileInfos, return_type[type[EntityActionOperation]], modifier[public static], parameter[assetId]] begin[{] local_variable[type[String], encodedId] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=encode...
Keyword[public] Keyword[static] identifier[EntityActionOperation] identifier[createFileInfos] operator[SEP] identifier[String] identifier[assetId] operator[SEP] { identifier[String] identifier[encodedId] operator[SEP] Keyword[try] { identifier[encodedId] operator[=] identifier[URLEncoder] operator[SEP...
public static int lastIndexOfIgnoreCase(String pString, String pLookFor, int pPos) { if ((pString == null) || (pLookFor == null)) { return -1; } if (pLookFor.length() == 0) { return pPos;// All strings "contains" the empty string } if (pLookFor.leng...
class class_name[name] begin[{] method[lastIndexOfIgnoreCase, return_type[type[int]], modifier[public static], parameter[pString, pLookFor, pPos]] begin[{] if[binary_operation[binary_operation[member[.pString], ==, literal[null]], ||, binary_operation[member[.pLookFor], ==, literal[null]]]] beg...
Keyword[public] Keyword[static] Keyword[int] identifier[lastIndexOfIgnoreCase] operator[SEP] identifier[String] identifier[pString] , identifier[String] identifier[pLookFor] , Keyword[int] identifier[pPos] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[pString] operator[==] Other[null] oper...
private boolean dumpCache(){ if (CacheDumpLogger.isDebugEnabled()) { try { List<ModelService> services = new ArrayList<ModelService>(); services.addAll(getCache().values()); StringBuilder sb = new StringBuilder(); sb.append("LookupManag...
class class_name[name] begin[{] method[dumpCache, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[call[CacheDumpLogger.isDebugEnabled, parameter[]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensio...
Keyword[private] Keyword[boolean] identifier[dumpCache] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[CacheDumpLogger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[List] operator[<] identifier[ModelSe...
public static Distribution guessC(DataSet d) { double maxLambda = LinearTools.maxLambdaLogisticL1((ClassificationDataSet) d); double minC = 1/(2*maxLambda*d.size()); return new LogUniform(minC*10, minC*1000); }
class class_name[name] begin[{] method[guessC, return_type[type[Distribution]], modifier[public static], parameter[d]] begin[{] local_variable[type[double], maxLambda] local_variable[type[double], minC] return[ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=minC,...
Keyword[public] Keyword[static] identifier[Distribution] identifier[guessC] operator[SEP] identifier[DataSet] identifier[d] operator[SEP] { Keyword[double] identifier[maxLambda] operator[=] identifier[LinearTools] operator[SEP] identifier[maxLambdaLogisticL1] operator[SEP] operator[SEP] identifier[Classification...
private CalendarDay findAccessibilityFocus() { final int childCount = getChildCount(); for (int i = 0; i < childCount; i++) { final View child = getChildAt(i); if (child instanceof SimpleMonthView) { final CalendarDay focus = ((SimpleMonthView) child).getAccessibi...
class class_name[name] begin[{] method[findAccessibilityFocus, return_type[type[CalendarDay]], modifier[private], parameter[]] begin[{] local_variable[type[int], childCount] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDe...
Keyword[private] identifier[CalendarDay] identifier[findAccessibilityFocus] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[childCount] operator[=] identifier[getChildCount] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] o...
public static void assertNodeExistByPath(final Session session, final String absPath) throws RepositoryException { try { session.getNode(absPath); } catch (final PathNotFoundException e) { LOG.debug("Node path {} does not exist", absPath, e); fail(e.getMessage()); ...
class class_name[name] begin[{] method[assertNodeExistByPath, return_type[void], modifier[public static], parameter[session, absPath]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=absPath, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[static] Keyword[void] identifier[assertNodeExistByPath] operator[SEP] Keyword[final] identifier[Session] identifier[session] , Keyword[final] identifier[String] identifier[absPath] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[try] { identifier[sessio...
public List<StringValue> getDateAsString(final List<StringValue> _date, final List<StringValue> _hour, final List<StringValue> _minute, final List<StringValue> _ampm) throws EFa...
class class_name[name] begin[{] method[getDateAsString, return_type[type[List]], modifier[public], parameter[_date, _hour, _minute, _ampm]] begin[{] local_variable[type[List], ret] local_variable[type[List], dates] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDe...
Keyword[public] identifier[List] operator[<] identifier[StringValue] operator[>] identifier[getDateAsString] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[StringValue] operator[>] identifier[_date] , Keyword[final] identifier[List] operator[<] identifier[StringValue] operator[>] identifier[_hour...
public String asString(String charset) throws IOException { Reader reader = buildReader(charset); return consumeReader(reader); }
class class_name[name] begin[{] method[asString, return_type[type[String]], modifier[public], parameter[charset]] begin[{] local_variable[type[Reader], reader] return[call[.consumeReader, parameter[member[.reader]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[asString] operator[SEP] identifier[String] identifier[charset] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Reader] identifier[reader] operator[=] identifier[buildReader] operator[SEP] identifier[charset] operator[SEP] operator[SEP] Keyword[retu...
public void check(BioCSentence sentence) { String text = checkText(sentence); check(sentence, sentence.getOffset(), text); }
class class_name[name] begin[{] method[check, return_type[void], modifier[public], parameter[sentence]] begin[{] local_variable[type[String], text] call[.check, parameter[member[.sentence], call[sentence.getOffset, parameter[]], member[.text]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[check] operator[SEP] identifier[BioCSentence] identifier[sentence] operator[SEP] { identifier[String] identifier[text] operator[=] identifier[checkText] operator[SEP] identifier[sentence] operator[SEP] operator[SEP] identifier[check] operator[SEP] identifier[sentence] , ...
public List<IconType<ApplicationDescriptor>> getAllIcon() { List<IconType<ApplicationDescriptor>> list = new ArrayList<IconType<ApplicationDescriptor>>(); List<Node> nodeList = model.get("icon"); for(Node node: nodeList) { IconType<ApplicationDescriptor> type = new IconTypeImpl<Appl...
class class_name[name] begin[{] method[getAllIcon, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], list] local_variable[type[List], nodeList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], dec...
Keyword[public] identifier[List] operator[<] identifier[IconType] operator[<] identifier[ApplicationDescriptor] operator[>] operator[>] identifier[getAllIcon] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[IconType] operator[<] identifier[ApplicationDescriptor] operator[>] operator[>] iden...
public static List<File> listDirectories( File root ) { List<File> result = new ArrayList<> (); File[] files = root.listFiles( new DirectoryFileFilter()); if( files != null ) result.addAll( Arrays.asList( files )); Collections.sort( result, new FileNameComparator()); return result; }
class class_name[name] begin[{] method[listDirectories, return_type[type[List]], modifier[public static], parameter[root]] begin[{] local_variable[type[List], result] local_variable[type[File], files] if[binary_operation[member[.files], !=, literal[null]]] begin[{] c...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[File] operator[>] identifier[listDirectories] operator[SEP] identifier[File] identifier[root] operator[SEP] { identifier[List] operator[<] identifier[File] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operato...
private void logSummary(final List<IncidentImpl> incidents) { if (incidents.isEmpty()) return; // summaryFile can be replaced so hold on to a local copy File outFile = summaryFile; if (outFile == null) { outFile = summaryFile = createNewSummaryFile(); } ...
class class_name[name] begin[{] method[logSummary, return_type[void], modifier[private], parameter[incidents]] begin[{] if[call[incidents.isEmpty, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[File], outFile] if[binary_...
Keyword[private] Keyword[void] identifier[logSummary] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[IncidentImpl] operator[>] identifier[incidents] operator[SEP] { Keyword[if] operator[SEP] identifier[incidents] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] Ke...
void removeOutStandingDatanodes(boolean logOutStandingOnly) { try { removeOutstandingDatanodesInternal(outStandingHeartbeats, logOutStandingOnly); removeOutstandingDatanodesInternal(outStandingReports, logOutStandingOnly); } catch (Exception e) { LOG.warn( "Failover - caught exceptio...
class class_name[name] begin[{] method[removeOutStandingDatanodes, return_type[void], modifier[default], parameter[logOutStandingOnly]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=outStandingHeartbeats, postfix_operators=[], prefix_oper...
Keyword[void] identifier[removeOutStandingDatanodes] operator[SEP] Keyword[boolean] identifier[logOutStandingOnly] operator[SEP] { Keyword[try] { identifier[removeOutstandingDatanodesInternal] operator[SEP] identifier[outStandingHeartbeats] , identifier[logOutStandingOnly] operator[SEP] operator[SEP]...
public static String escapeHtml(CharSequence cs) { if (null == cs) return null; char[] cas = cs.toString().toCharArray(); StringBuilder sb = new StringBuilder(); for (char c : cas) { switch (c) { case '&': sb.append("&amp;"); ...
class class_name[name] begin[{] method[escapeHtml, return_type[type[String]], modifier[public static], parameter[cs]] begin[{] if[binary_operation[literal[null], ==, member[.cs]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[char], cas] ...
Keyword[public] Keyword[static] identifier[String] identifier[escapeHtml] operator[SEP] identifier[CharSequence] identifier[cs] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[cs] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[char] operator[SEP] operator[SEP] ident...
public void pay(PayReq requ, final PayHandler handler) { HMSAgentLog.i("pay:requ=" + StrUtils.objDesc(requ) + " handler=" + StrUtils.objDesc(handler)); if (payReq != null) { HMSAgentLog.e("pay:has already a pay to dispose"); if (handler != null) { new Hand...
class class_name[name] begin[{] method[pay, return_type[void], modifier[public], parameter[requ, handler]] begin[{] call[HMSAgentLog.i, parameter[binary_operation[binary_operation[binary_operation[literal["pay:requ="], +, call[StrUtils.objDesc, parameter[member[.requ]]]], +, literal[" handler=...
Keyword[public] Keyword[void] identifier[pay] operator[SEP] identifier[PayReq] identifier[requ] , Keyword[final] identifier[PayHandler] identifier[handler] operator[SEP] { identifier[HMSAgentLog] operator[SEP] identifier[i] operator[SEP] literal[String] operator[+] identifier[StrUtils] operator[SEP] identifier[...
public Future<ClientResponse> executeAsync(String procedure, Object... parameters) throws NoConnectionsException, IOException { ClientImpl currentClient = this.getClient(); final JDBC4ExecutionFuture future = new JDBC4ExecutionFuture(this.defaultAsyncTimeout); try { c...
class class_name[name] begin[{] method[executeAsync, return_type[type[Future]], modifier[public], parameter[procedure, parameters]] begin[{] local_variable[type[ClientImpl], currentClient] local_variable[type[JDBC4ExecutionFuture], future] TryStatement(block=[StatementExpression(express...
Keyword[public] identifier[Future] operator[<] identifier[ClientResponse] operator[>] identifier[executeAsync] operator[SEP] identifier[String] identifier[procedure] , identifier[Object] operator[...] identifier[parameters] operator[SEP] Keyword[throws] identifier[NoConnectionsException] , identifier[IOException] { ...
public Matrix solve (Matrix B) { return (m == n ? (new LUDecomposition(this)).solve(B) : (new QRDecomposition(this)).solve(B)); }
class class_name[name] begin[{] method[solve, return_type[type[Matrix]], modifier[public], parameter[B]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=n...
Keyword[public] identifier[Matrix] identifier[solve] operator[SEP] identifier[Matrix] identifier[B] operator[SEP] { Keyword[return] operator[SEP] identifier[m] operator[==] identifier[n] operator[?] operator[SEP] Keyword[new] identifier[LUDecomposition] operator[SEP] Keyword[this] operator[SEP] operator[SEP] ope...
public boolean isUserInRole(String roleName) { LoginHandler lh = Handlers.get( getServletContext() ).getLoginHandler(); return lh.isUserInRole(getHandlerContext(), roleName); }
class class_name[name] begin[{] method[isUserInRole, return_type[type[boolean]], modifier[public], parameter[roleName]] begin[{] local_variable[type[LoginHandler], lh] return[call[lh.isUserInRole, parameter[call[.getHandlerContext, parameter[]], member[.roleName]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isUserInRole] operator[SEP] identifier[String] identifier[roleName] operator[SEP] { identifier[LoginHandler] identifier[lh] operator[=] identifier[Handlers] operator[SEP] identifier[get] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[S...
public static void enableSni(final String host, final SSLParameters sslParameters) { if (SNI_SSL_HELPER != null) { SNI_SSL_HELPER.enableSni(host, sslParameters); } }
class class_name[name] begin[{] method[enableSni, return_type[void], modifier[public static], parameter[host, sslParameters]] begin[{] if[binary_operation[member[.SNI_SSL_HELPER], !=, literal[null]]] begin[{] call[SNI_SSL_HELPER.enableSni, parameter[member[.host], member...
Keyword[public] Keyword[static] Keyword[void] identifier[enableSni] operator[SEP] Keyword[final] identifier[String] identifier[host] , Keyword[final] identifier[SSLParameters] identifier[sslParameters] operator[SEP] { Keyword[if] operator[SEP] identifier[SNI_SSL_HELPER] operator[!=] Other[null] operator[SEP] {...
public static CallbackResult<Void> removeRenderable(Chunk chunk, BlockPos pos, IBlockState oldState, IBlockState newState) { if (oldState.getBlock() == newState.getBlock()) //same block, so same components return CallbackResult.noResult(); if (!chunk.getWorld().isRemote) return CallbackResult.noResult();//c...
class class_name[name] begin[{] method[removeRenderable, return_type[type[CallbackResult]], modifier[public static], parameter[chunk, pos, oldState, newState]] begin[{] if[binary_operation[call[oldState.getBlock, parameter[]], ==, call[newState.getBlock, parameter[]]]] begin[{] return[call[Call...
Keyword[public] Keyword[static] identifier[CallbackResult] operator[<] identifier[Void] operator[>] identifier[removeRenderable] operator[SEP] identifier[Chunk] identifier[chunk] , identifier[BlockPos] identifier[pos] , identifier[IBlockState] identifier[oldState] , identifier[IBlockState] identifier[newState] opera...
@Override public String transformDML(String dml) { return transformQuery(super.transformDML(dml), asTextQueryTransformer, castGeoAsVarcharQueryTransformer, pointFromTextQueryTransformer, polygonFromTextQueryTransformer, longitudeQueryTransformer, la...
class class_name[name] begin[{] method[transformDML, return_type[type[String]], modifier[public], parameter[dml]] begin[{] return[call[.transformQuery, parameter[SuperMethodInvocation(arguments=[MemberReference(member=dml, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=tr...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[transformDML] operator[SEP] identifier[String] identifier[dml] operator[SEP] { Keyword[return] identifier[transformQuery] operator[SEP] Keyword[super] operator[SEP] identifier[transformDML] operator[SEP] identifier[dml] operator[SEP...
@NotNull private BoundStatement createBoundStatement(@NotNull PreparedStatement prepare, @NotNull V entity, @NotNull List<ColumnMetadata> columns) { BoundStatement boundStatement = new BoundStatement(prepare); boundStatement.setConsistencyLevel(getEntityMetadata().getWriteConsistencyLevel()); ...
class class_name[name] begin[{] method[createBoundStatement, return_type[type[BoundStatement]], modifier[private], parameter[prepare, entity, columns]] begin[{] local_variable[type[BoundStatement], boundStatement] call[boundStatement.setConsistencyLevel, parameter[call[.getEntityMetadat...
annotation[@] identifier[NotNull] Keyword[private] identifier[BoundStatement] identifier[createBoundStatement] operator[SEP] annotation[@] identifier[NotNull] identifier[PreparedStatement] identifier[prepare] , annotation[@] identifier[NotNull] identifier[V] identifier[entity] , annotation[@] identifier[NotNull] iden...
public static <R> DoubleFunction<R> doubleFunction(CheckedDoubleFunction<R> function, Consumer<Throwable> handler) { return t -> { try { return function.apply(t); } catch (Throwable e) { handler.accept(e); throw new IllegalStat...
class class_name[name] begin[{] method[doubleFunction, return_type[type[DoubleFunction]], modifier[public static], parameter[function, handler]] begin[{] return[LambdaExpression(body=[TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=...
Keyword[public] Keyword[static] operator[<] identifier[R] operator[>] identifier[DoubleFunction] operator[<] identifier[R] operator[>] identifier[doubleFunction] operator[SEP] identifier[CheckedDoubleFunction] operator[<] identifier[R] operator[>] identifier[function] , identifier[Consumer] operator[<] identifier[Thro...
public java.util.List<ReplicationGroup> getReplicationGroups() { if (replicationGroups == null) { replicationGroups = new com.amazonaws.internal.SdkInternalList<ReplicationGroup>(); } return replicationGroups; }
class class_name[name] begin[{] method[getReplicationGroups, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.replicationGroups], ==, literal[null]]] begin[{] assign[member[.replicationGroups], ClassCreator(arguments=[], body=N...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[ReplicationGroup] operator[>] identifier[getReplicationGroups] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[replicationGroups] operator[==] Other[null] operator[SEP] { ...
@POST @Produces(MediaType.APPLICATION_JSON) @Path("list/{repository}/{workspace}") public Response list(@PathParam("repository") String repository, @PathParam("workspace") String workspace, @QueryParam("name") String name) { Session ses = null; try { ses = sessio...
class class_name[name] begin[{] method[list, return_type[type[Response]], modifier[public], parameter[repository, workspace, name]] begin[{] local_variable[type[Session], ses] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=ses, postfix_operators...
annotation[@] identifier[POST] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Response] identifier[list] operator[SEP] annotation[@] iden...
private ExcelWicketToDoItem createToDoItemForUser(final String description, final Category category, Subcategory subcategory, String user, final LocalDate dueBy, final BigDecimal cost, ExecutionContext executionContext) { final ExcelWicketToDoItem toDoItem = toDoItems.newToDo(description, category, subcategory,...
class class_name[name] begin[{] method[createToDoItemForUser, return_type[type[ExcelWicketToDoItem]], modifier[private], parameter[description, category, subcategory, user, dueBy, cost, executionContext]] begin[{] local_variable[type[ExcelWicketToDoItem], toDoItem] call[executionContext...
Keyword[private] identifier[ExcelWicketToDoItem] identifier[createToDoItemForUser] operator[SEP] Keyword[final] identifier[String] identifier[description] , Keyword[final] identifier[Category] identifier[category] , identifier[Subcategory] identifier[subcategory] , identifier[String] identifier[user] , Keyword[fina...
private boolean oneMatchletMagicEquals(int offset, byte[] data) { int rangeStart = content.getInt(offset); // first byte of data for check to start at int rangeLength = content.getInt(offset + 4); // last byte of data for check to start at int dataLength = content.getInt(offset + 12); // nu...
class class_name[name] begin[{] method[oneMatchletMagicEquals, return_type[type[boolean]], modifier[private], parameter[offset, data]] begin[{] local_variable[type[int], rangeStart] local_variable[type[int], rangeLength] local_variable[type[int], dataLength] local_variable[type[...
Keyword[private] Keyword[boolean] identifier[oneMatchletMagicEquals] operator[SEP] Keyword[int] identifier[offset] , Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[int] identifier[rangeStart] operator[=] identifier[content] operator[SEP] identifier[getInt] operator[SEP] ident...
public Route to(Controller controller, Method method) { Preconditions.checkNotNull(controller); Preconditions.checkNotNull(method); this.controller = controller; this.controllerMethod = method; if (!method.getReturnType().isAssignableFrom(Result.class)) { throw new Il...
class class_name[name] begin[{] method[to, return_type[type[Route]], modifier[public], parameter[controller, method]] begin[{] call[Preconditions.checkNotNull, parameter[member[.controller]]] call[Preconditions.checkNotNull, parameter[member[.method]]] assign[THI...
Keyword[public] identifier[Route] identifier[to] operator[SEP] identifier[Controller] identifier[controller] , identifier[Method] identifier[method] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[controller] operator[SEP] operator[SEP] identifier[Precon...
public static Date getNextDay() { Calendar cal = GregorianCalendar.getInstance(); return new GregorianCalendar(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH) + 1).getTime(); }
class class_name[name] begin[{] method[getNextDay, return_type[type[Date]], modifier[public static], parameter[]] begin[{] local_variable[type[Calendar], cal] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=YEAR, postfix_operators=[], prefix_operators=[], quali...
Keyword[public] Keyword[static] identifier[Date] identifier[getNextDay] operator[SEP] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] identifier[GregorianCalendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[GregorianCal...
private static void doCopyDirectory(File srcDir, File destDir, FileFilter filter, boolean preserveFileDate, List<String> exclusionList) throws IOException { if (destDir.exists()) { if (destDir.isDirectory() == false) { throw new IOException("Destination '" + destDir + "' exists but is not a directory"); ...
class class_name[name] begin[{] method[doCopyDirectory, return_type[void], modifier[private static], parameter[srcDir, destDir, filter, preserveFileDate, exclusionList]] begin[{] if[call[destDir.exists, parameter[]]] begin[{] if[binary_operation[call[destDir.isDirectory,...
Keyword[private] Keyword[static] Keyword[void] identifier[doCopyDirectory] operator[SEP] identifier[File] identifier[srcDir] , identifier[File] identifier[destDir] , identifier[FileFilter] identifier[filter] , Keyword[boolean] identifier[preserveFileDate] , identifier[List] operator[<] identifier[String] operator[>...
@Override public int read() throws IOException { if (this.in != null) { int r = read0(); count(r < 0 ? -1 : 1); return r; } else { throw new IOException("stream closed"); } }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.in]], !=, literal[null]]] begin[{] local_variable[type[int], r] call[.count, parameter[TernaryExpression(conditio...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[read] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[in] operator[!=] Other[null] operator[SEP] { Keyword[int] identifier[r] operator[=] id...
public ClassSymbol enclClass() { Symbol c = this; while (c != null && ((c.kind & TYP) == 0 || !c.type.hasTag(CLASS))) { c = c.owner; } return (ClassSymbol)c; }
class class_name[name] begin[{] method[enclClass, return_type[type[ClassSymbol]], modifier[public], parameter[]] begin[{] local_variable[type[Symbol], c] while[binary_operation[binary_operation[member[.c], !=, literal[null]], &&, binary_operation[binary_operation[binary_operation[member...
Keyword[public] identifier[ClassSymbol] identifier[enclClass] operator[SEP] operator[SEP] { identifier[Symbol] identifier[c] operator[=] Keyword[this] operator[SEP] Keyword[while] operator[SEP] identifier[c] operator[!=] Other[null] operator[&&] operator[SEP] operator[SEP] identifier[c] operator[SEP] identifier[...
public void getImageAttributes( final Map<String, String> attributes, final I_CmsSimpleCallback<Map<String, String>> callback) { boolean requiresLink = false; for (Entry<Attribute, I_CmsFormWidget> entry : m_fields.entrySet()) { String val = entry.getValue().getFormValueAsS...
class class_name[name] begin[{] method[getImageAttributes, return_type[void], modifier[public], parameter[attributes, callback]] begin[{] local_variable[type[boolean], requiresLink] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Va...
Keyword[public] Keyword[void] identifier[getImageAttributes] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[attributes] , Keyword[final] identifier[I_CmsSimpleCallback] operator[<] identifier[Map] operator[<] identifier[String] , identifier[Str...
public static boolean isBase64(String string, String enc) throws UnsupportedEncodingException { return isBase64(string.getBytes(enc)); }
class class_name[name] begin[{] method[isBase64, return_type[type[boolean]], modifier[public static], parameter[string, enc]] begin[{] return[call[.isBase64, parameter[call[string.getBytes, parameter[member[.enc]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isBase64] operator[SEP] identifier[String] identifier[string] , identifier[String] identifier[enc] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] { Keyword[return] identifier[isBase64] operator[SEP] identifier[string] operator[S...
@Override public void setPivot(double x, double y, double z) { this.pivot = new Point3f(x, y, z); }
class class_name[name] begin[{] method[setPivot, return_type[void], modifier[public], parameter[x, y, z]] begin[{] assign[THIS[member[None.pivot]], ClassCreator(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=y, p...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setPivot] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { Keyword[this] operator[SEP] identifier[pivot] operator[=] Keyword[new] identifier[Point3f] operator[S...
@Override public Date convert(Object value) { if (value instanceof Calendar) { return ((Calendar) value).getTime(); } else if (value instanceof Date) { return (Date) value; } else if (value instanceof Number) { return new Date(((Number) value).longValue()); } else if (va...
class class_name[name] begin[{] method[convert, return_type[type[Date]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], instanceof, type[Calendar]]] begin[{] return[Cast(expression=MemberReference(member=value, postfix_operators=[], prefix_operators...
annotation[@] identifier[Override] Keyword[public] identifier[Date] identifier[convert] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[Calendar] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] id...
public void copy(ConnectionContext source) { this.connection = source.connection; this.session = source.session; this.destination = source.destination; }
class class_name[name] begin[{] method[copy, return_type[void], modifier[public], parameter[source]] begin[{] assign[THIS[member[None.connection]], member[source.connection]] assign[THIS[member[None.session]], member[source.session]] assign[THIS[member[None.desti...
Keyword[public] Keyword[void] identifier[copy] operator[SEP] identifier[ConnectionContext] identifier[source] operator[SEP] { Keyword[this] operator[SEP] identifier[connection] operator[=] identifier[source] operator[SEP] identifier[connection] operator[SEP] Keyword[this] operator[SEP] identifier[session] operat...
public void moveToServer ( String hostname, int[] ports, int[] datagramPorts, InvocationService.ConfirmListener obs) { // the server switcher will take care of everything for us new ServerSwitcher(hostname, ports, datagramPorts, obs).switchServers(); }
class class_name[name] begin[{] method[moveToServer, return_type[void], modifier[public], parameter[hostname, ports, datagramPorts, obs]] begin[{] ClassCreator(arguments=[MemberReference(member=hostname, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(membe...
Keyword[public] Keyword[void] identifier[moveToServer] operator[SEP] identifier[String] identifier[hostname] , Keyword[int] operator[SEP] operator[SEP] identifier[ports] , Keyword[int] operator[SEP] operator[SEP] identifier[datagramPorts] , identifier[InvocationService] operator[SEP] identifier[ConfirmListener] iden...
@Override public final void setHasName(final SpecificsOfItemGroup pHasName) { this.hasName = pHasName; if (this.itsId == null) { this.itsId = new IdI18nSpecificsOfItemGroup(); } this.itsId.setHasName(this.hasName); }
class class_name[name] begin[{] method[setHasName, return_type[void], modifier[final public], parameter[pHasName]] begin[{] assign[THIS[member[None.hasName]], member[.pHasName]] if[binary_operation[THIS[member[None.itsId]], ==, literal[null]]] begin[{] as...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setHasName] operator[SEP] Keyword[final] identifier[SpecificsOfItemGroup] identifier[pHasName] operator[SEP] { Keyword[this] operator[SEP] identifier[hasName] operator[=] identifier[pHasName] operator[SEP] Keyword[if] oper...
public void assignIds(final InputContainerElements elements, final FacesContext context) { boolean refreshIds = false; if (getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX)) { setId(elements.getPropertyName(context)); refreshIds = true; } UIComponent label = element...
class class_name[name] begin[{] method[assignIds, return_type[void], modifier[public], parameter[elements, context]] begin[{] local_variable[type[boolean], refreshIds] if[call[.getId, parameter[]]] begin[{] call[.setId, parameter[call[elements.getPropertyName, pa...
Keyword[public] Keyword[void] identifier[assignIds] operator[SEP] Keyword[final] identifier[InputContainerElements] identifier[elements] , Keyword[final] identifier[FacesContext] identifier[context] operator[SEP] { Keyword[boolean] identifier[refreshIds] operator[=] literal[boolean] operator[SEP] Keyword[if] op...
public CompletableFuture<Void> kill() { return submitter.close() .thenCompose(v -> listener.close()) .thenCompose(v -> manager.kill()) .thenCompose(v -> connection.close()); }
class class_name[name] begin[{] method[kill, return_type[type[CompletableFuture]], modifier[public], parameter[]] begin[{] return[call[submitter.close, parameter[]]] end[}] END[}]
Keyword[public] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[kill] operator[SEP] operator[SEP] { Keyword[return] identifier[submitter] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[thenCompose] operator[SEP] identifier[v] operator[->] id...
public ScreenLocation getNextLocation(short position, short setNewAnchor) { if (position == ScreenConstants.NEXT_LOGICAL) position = ScreenConstants.RIGHT_OF_LAST; if (position == ScreenConstants.FIRST_LOCATION) position = ScreenConstants.FIRST_DISPLAY_LOCATION; if (p...
class class_name[name] begin[{] method[getNextLocation, return_type[type[ScreenLocation]], modifier[public], parameter[position, setNewAnchor]] begin[{] if[binary_operation[member[.position], ==, member[ScreenConstants.NEXT_LOGICAL]]] begin[{] assign[member[.position], member[Screen...
Keyword[public] identifier[ScreenLocation] identifier[getNextLocation] operator[SEP] Keyword[short] identifier[position] , Keyword[short] identifier[setNewAnchor] operator[SEP] { Keyword[if] operator[SEP] identifier[position] operator[==] identifier[ScreenConstants] operator[SEP] identifier[NEXT_LOGICAL] operat...
protected void localRelease() { super.localRelease(); _state.clear(); _action = null; _value = null; _text = null; _params = null; _targetScope = null; _popupSupport = null; _disableSecondClick = false; _renderAsButton = false; }
class class_name[name] begin[{] method[localRelease, return_type[void], modifier[protected], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=localRelease, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) call[_state.c...
Keyword[protected] Keyword[void] identifier[localRelease] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[localRelease] operator[SEP] operator[SEP] operator[SEP] identifier[_state] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[_action] operator[=] Othe...
public void marshall(Location location, ProtocolMarshaller protocolMarshaller) { if (location == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(location.getJdbc(), JDBC_BINDING); protocol...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[location, protocolMarshaller]] begin[{] if[binary_operation[member[.location], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Location] identifier[location] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[location] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new...
@Override public int compareTo(Object obj) { if (obj instanceof URI) { return this.toString().compareTo(obj.toString()); } else { return -1; } }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[obj]] begin[{] if[binary_operation[member[.obj], instanceof, type[URI]]] begin[{] return[THIS[call[None.toString, parameter[]]call[None.compareTo, parameter[call[obj.toString, param...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[obj] Keyword[instanceof] identifier[URI] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[to...
private QuotaValue getQuotaValue(final CacheKey key) throws UnknownQuotaLimitException { QuotaValue quotaValue = SecurityHelper.doPrivilegedAction(new PrivilegedAction<QuotaValue>() { public QuotaValue run() { return (QuotaValue)cache.withFlags(Flag.FORCE_WRITE_LOCK).get(key...
class class_name[name] begin[{] method[getQuotaValue, return_type[type[QuotaValue]], modifier[private], parameter[key]] begin[{] local_variable[type[QuotaValue], quotaValue] if[binary_operation[member[.quotaValue], ==, literal[null]]] begin[{] ThrowStatement(expression=Class...
Keyword[private] identifier[QuotaValue] identifier[getQuotaValue] operator[SEP] Keyword[final] identifier[CacheKey] identifier[key] operator[SEP] Keyword[throws] identifier[UnknownQuotaLimitException] { identifier[QuotaValue] identifier[quotaValue] operator[=] identifier[SecurityHelper] operator[SEP] identifier[...
@Override public CommercePriceEntry findByUuid_Last(String uuid, OrderByComparator<CommercePriceEntry> orderByComparator) throws NoSuchPriceEntryException { CommercePriceEntry commercePriceEntry = fetchByUuid_Last(uuid, orderByComparator); if (commercePriceEntry != null) { return commercePriceEntry; ...
class class_name[name] begin[{] method[findByUuid_Last, return_type[type[CommercePriceEntry]], modifier[public], parameter[uuid, orderByComparator]] begin[{] local_variable[type[CommercePriceEntry], commercePriceEntry] if[binary_operation[member[.commercePriceEntry], !=, literal[null]]]...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceEntry] identifier[findByUuid_Last] operator[SEP] identifier[String] identifier[uuid] , identifier[OrderByComparator] operator[<] identifier[CommercePriceEntry] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[N...
private String computeClasspathString( AbstractPath specifiedClasspath ) { List<String> resultList = computePath( specifiedClasspath ); StringBuffer theClasspath = new StringBuffer(); for ( String str : resultList ) { addToClasspath( theClasspath, str ); } ...
class class_name[name] begin[{] method[computeClasspathString, return_type[type[String]], modifier[private], parameter[specifiedClasspath]] begin[{] local_variable[type[List], resultList] local_variable[type[StringBuffer], theClasspath] ForStatement(body=BlockStatement(label=None, state...
Keyword[private] identifier[String] identifier[computeClasspathString] operator[SEP] identifier[AbstractPath] identifier[specifiedClasspath] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[resultList] operator[=] identifier[computePath] operator[SEP] identifier[specifiedCla...
@SuppressWarnings({ "rawtypes", "unchecked" }) public Object getObject(NodeConfig rootNode, Class rootClass, Object rootObject) throws UnmarshalException, SecurityException{ Field[] fields = getClassFields(rootClass); Map<String, Field> elementMap = new HashMap<String, Field>(); Map<String, Field> a...
class class_name[name] begin[{] method[getObject, return_type[type[Object]], modifier[public], parameter[rootNode, rootClass, rootObject]] begin[{] local_variable[type[Field], fields] local_variable[type[Map], elementMap] local_variable[type[Map], attributeMap] local_variable[ty...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] identifier[Object] identifier[getObject] operator[SEP] identifier[NodeConfig] identifier[rootNode] , identifier[Class] identifier[rootClass] , identifier[Object] identifier[rootObjec...
public List<DetectedFace> detectWithUrl(String url, DetectWithUrlOptionalParameter detectWithUrlOptionalParameter) { return detectWithUrlWithServiceResponseAsync(url, detectWithUrlOptionalParameter).toBlocking().single().body(); }
class class_name[name] begin[{] method[detectWithUrl, return_type[type[List]], modifier[public], parameter[url, detectWithUrlOptionalParameter]] begin[{] return[call[.detectWithUrlWithServiceResponseAsync, parameter[member[.url], member[.detectWithUrlOptionalParameter]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[DetectedFace] operator[>] identifier[detectWithUrl] operator[SEP] identifier[String] identifier[url] , identifier[DetectWithUrlOptionalParameter] identifier[detectWithUrlOptionalParameter] operator[SEP] { Keyword[return] identifier[detectWithUrlWithService...
public static Collection<Subquery> subqueries( Visitable visitable, final boolean includeNestedSubqueries ) { final Collection<Subquery> subqueries = new LinkedList<Subquery>(); Visitors.visitAll(visitable, new Visitors.AbstractVisitor() { @...
class class_name[name] begin[{] method[subqueries, return_type[type[Collection]], modifier[public static], parameter[visitable, includeNestedSubqueries]] begin[{] local_variable[type[Collection], subqueries] call[Visitors.visitAll, parameter[member[.visitable], ClassCreator(arguments=[]...
Keyword[public] Keyword[static] identifier[Collection] operator[<] identifier[Subquery] operator[>] identifier[subqueries] operator[SEP] identifier[Visitable] identifier[visitable] , Keyword[final] Keyword[boolean] identifier[includeNestedSubqueries] operator[SEP] { Keyword[final] identifier[Collection] operato...
public void performInsert() { if(insertMap == null) return; else { PersistenceBroker broker = tx.getBroker(); Iterator it = insertMap.values().iterator(); while(it.hasNext()) { NamedEntry namedEntry = (Name...
class class_name[name] begin[{] method[performInsert, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.insertMap], ==, literal[null]]] begin[{] return[None] else begin[{] local_variable[type[PersistenceBroker], broker] local_...
Keyword[public] Keyword[void] identifier[performInsert] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[insertMap] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] Keyword[else] { identifier[PersistenceBroker] identifier[broker] operator[=] identifier[tx] operato...
@Override public KamInfo getKamInfo(String kamName) { if (kamName == null) throw new InvalidArgument(DEFAULT_MSG); if (!exists(kamName)) return null; try { return kamCatalogDao().getKamInfoByName(kamName); } catch (SQLException e) { final String msg = "error g...
class class_name[name] begin[{] method[getKamInfo, return_type[type[KamInfo]], modifier[public], parameter[kamName]] begin[{] if[binary_operation[member[.kamName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=DEFAULT_MSG, postfix_operator...
annotation[@] identifier[Override] Keyword[public] identifier[KamInfo] identifier[getKamInfo] operator[SEP] identifier[String] identifier[kamName] operator[SEP] { Keyword[if] operator[SEP] identifier[kamName] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[InvalidArgument] operator[...
public static MappingColumn[] getMappingColumns(final Class<?> entityType, final SqlKind kind) { if (entityType == null) { return new MappingColumn[0]; } Map<SqlKind, MappingColumn[]> cols; synchronized (CACHE) { cols = CACHE.get(entityType); } if (cols != null) { return cols.computeIfAbsent(kind,...
class class_name[name] begin[{] method[getMappingColumns, return_type[type[MappingColumn]], modifier[public static], parameter[entityType, kind]] begin[{] if[binary_operation[member[.entityType], ==, literal[null]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix_operators=...
Keyword[public] Keyword[static] identifier[MappingColumn] operator[SEP] operator[SEP] identifier[getMappingColumns] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[entityType] , Keyword[final] identifier[SqlKind] identifier[kind] operator[SEP] { Keyword[if] operator...
private RenditionMetadata getVirtualRendition(Set<RenditionMetadata> candidates, long destWidth, long destHeight, double destRatio) { // if ratio is defined get first rendition with matching ratio and same or bigger size if (destRatio > 0) { for (RenditionMetadata candidate : candidates) { ...
class class_name[name] begin[{] method[getVirtualRendition, return_type[type[RenditionMetadata]], modifier[private], parameter[candidates, destWidth, destHeight, destRatio]] begin[{] if[binary_operation[member[.destRatio], >, literal[0]]] begin[{] ForStatement(body=BlockStatement(la...
Keyword[private] identifier[RenditionMetadata] identifier[getVirtualRendition] operator[SEP] identifier[Set] operator[<] identifier[RenditionMetadata] operator[>] identifier[candidates] , Keyword[long] identifier[destWidth] , Keyword[long] identifier[destHeight] , Keyword[double] identifier[destRatio] operator[SEP] ...
@Override public TemporaryQueue createTemporaryQueue() throws JMSException { externalAccessLock.readLock().lock(); try { checkNotClosed(); String queueName = "TEMP-QUEUE-"+UUIDProvider.getInstance().getShortUUID(); engine.createTemporaryQueue(queueName); connection...
class class_name[name] begin[{] method[createTemporaryQueue, return_type[type[TemporaryQueue]], modifier[public], parameter[]] begin[{] call[externalAccessLock.readLock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=checkNotClosed,...
annotation[@] identifier[Override] Keyword[public] identifier[TemporaryQueue] identifier[createTemporaryQueue] operator[SEP] operator[SEP] Keyword[throws] identifier[JMSException] { identifier[externalAccessLock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operat...
public Account withSupportedLicenses(License... supportedLicenses) { java.util.ArrayList<String> supportedLicensesCopy = new java.util.ArrayList<String>(supportedLicenses.length); for (License value : supportedLicenses) { supportedLicensesCopy.add(value.toString()); } if (get...
class class_name[name] begin[{] method[withSupportedLicenses, return_type[type[Account]], modifier[public], parameter[supportedLicenses]] begin[{] local_variable[type[java], supportedLicensesCopy] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvo...
Keyword[public] identifier[Account] identifier[withSupportedLicenses] operator[SEP] identifier[License] operator[...] identifier[supportedLicenses] operator[SEP] { identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[supportedLi...
public final void setGuaranteedCrossBusLinkName(String value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setGuaranteedCrossBusLinkName", value); getHdr2().setField(JsHdr2Access.GUARANTEEDXBUS_SET_LINKNAME, value); if (TraceComponent.isAn...
class class_name[name] begin[{] method[setGuaranteedCrossBusLinkName, return_type[void], modifier[final public], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry...
Keyword[public] Keyword[final] Keyword[void] identifier[setGuaranteedCrossBusLinkName] operator[SEP] identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] oper...
public GetUsersResponse getUsers(String nextOpenid) { GetUsersResponse response; LOG.debug("获取关注者列表....."); String url = BASE_API_URL + "cgi-bin/user/get?access_token=#"; if (StrUtil.isNotBlank(nextOpenid)) { url += "&next_openid=" + nextOpenid; } BaseResponse...
class class_name[name] begin[{] method[getUsers, return_type[type[GetUsersResponse]], modifier[public], parameter[nextOpenid]] begin[{] local_variable[type[GetUsersResponse], response] call[LOG.debug, parameter[literal["获取关注者列表....."]]] local_variable[type[String], url] ...
Keyword[public] identifier[GetUsersResponse] identifier[getUsers] operator[SEP] identifier[String] identifier[nextOpenid] operator[SEP] { identifier[GetUsersResponse] identifier[response] operator[SEP] identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] ident...
public double fmeasure(int numleft, int numright) { int tp = 0, fp = 0, fn = 0; tp = numpositive[numright]; fp = numright - tp; fn = numleft - numnegative[numleft]; return f1(tp, fp, fn); }
class class_name[name] begin[{] method[fmeasure, return_type[type[double]], modifier[public], parameter[numleft, numright]] begin[{] local_variable[type[int], tp] assign[member[.tp], member[.numpositive]] assign[member[.fp], binary_operation[member[.numright], -, member[...
Keyword[public] Keyword[double] identifier[fmeasure] operator[SEP] Keyword[int] identifier[numleft] , Keyword[int] identifier[numright] operator[SEP] { Keyword[int] identifier[tp] operator[=] Other[0] , identifier[fp] operator[=] Other[0] , identifier[fn] operator[=] Other[0] operator[SEP] identifier[tp] oper...
void clearStructures() { if (schemaManager != null) { schemaManager.clearStructures(); } granteeManager = null; userManager = null; nameManager = null; schemaManager = null; sessionManager = null; dbInfo = null; }
class class_name[name] begin[{] method[clearStructures, return_type[void], modifier[default], parameter[]] begin[{] if[binary_operation[member[.schemaManager], !=, literal[null]]] begin[{] call[schemaManager.clearStructures, parameter[]] else begin[{] None ...
Keyword[void] identifier[clearStructures] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[schemaManager] operator[!=] Other[null] operator[SEP] { identifier[schemaManager] operator[SEP] identifier[clearStructures] operator[SEP] operator[SEP] operator[SEP] } identifier[...
public List<Message> removeAwaitingMessages( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); List<Message> result = null; // We reduce the spent time in the synchronized section. synchronized( this.scopedInstanceToAwaitingMessages ) { result = this.scopedInst...
class class_name[name] begin[{] method[removeAwaitingMessages, return_type[type[List]], modifier[public], parameter[instance]] begin[{] local_variable[type[Instance], scopedInstance] local_variable[type[List], result] SYNCHRONIZED[THIS[member[None.scopedInstanceToAwaitingMessage...
Keyword[public] identifier[List] operator[<] identifier[Message] operator[>] identifier[removeAwaitingMessages] operator[SEP] identifier[Instance] identifier[instance] operator[SEP] { identifier[Instance] identifier[scopedInstance] operator[=] identifier[InstanceHelpers] operator[SEP] identifier[findScopedInstan...
public BackupPlan withRules(BackupRule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList<BackupRule>(rules.length)); } for (BackupRule ele : rules) { this.rules.add(ele); } return this; }
class class_name[name] begin[{] method[withRules, return_type[type[BackupPlan]], modifier[public], parameter[rules]] begin[{] if[binary_operation[THIS[member[None.rules]], ==, literal[null]]] begin[{] call[.setRules, parameter[ClassCreator(arguments=[MemberReference(memb...
Keyword[public] identifier[BackupPlan] identifier[withRules] operator[SEP] identifier[BackupRule] operator[...] identifier[rules] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[rules] operator[==] Other[null] operator[SEP] { identifier[setRules] operator[SEP] Keyword[...
public void setConnectionStatuses(java.util.Collection<TerminateConnectionStatus> connectionStatuses) { if (connectionStatuses == null) { this.connectionStatuses = null; return; } this.connectionStatuses = new com.amazonaws.internal.SdkInternalList<TerminateConnectionSta...
class class_name[name] begin[{] method[setConnectionStatuses, return_type[void], modifier[public], parameter[connectionStatuses]] begin[{] if[binary_operation[member[.connectionStatuses], ==, literal[null]]] begin[{] assign[THIS[member[None.connectionStatuses]], literal[...
Keyword[public] Keyword[void] identifier[setConnectionStatuses] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[TerminateConnectionStatus] operator[>] identifier[connectionStatuses] operator[SEP] { Keyword[if] operator[SEP] identifier[conn...
public static void ensureNotEmptyContent( String name, boolean trim, String[] value ) { ensureNotEmpty( name, value ); for ( int i = 0; i < value.length; i++ ) { ensureNotEmpty( value[i] + "[" + i + "]", value[i] ); if ( trim ) { ensureNotEmpty( value[i] + "["...
class class_name[name] begin[{] method[ensureNotEmptyContent, return_type[void], modifier[public static], parameter[name, trim, value]] begin[{] call[.ensureNotEmpty, parameter[member[.name], member[.value]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(e...
Keyword[public] Keyword[static] Keyword[void] identifier[ensureNotEmptyContent] operator[SEP] identifier[String] identifier[name] , Keyword[boolean] identifier[trim] , identifier[String] operator[SEP] operator[SEP] identifier[value] operator[SEP] { identifier[ensureNotEmpty] operator[SEP] identifier[name] , i...
private void addPartNumberIfNotNull(Request<?> request, Integer partNumber) { if (partNumber != null) { request.addParameter("partNumber", partNumber.toString()); } }
class class_name[name] begin[{] method[addPartNumberIfNotNull, return_type[void], modifier[private], parameter[request, partNumber]] begin[{] if[binary_operation[member[.partNumber], !=, literal[null]]] begin[{] call[request.addParameter, parameter[literal["partNumber"],...
Keyword[private] Keyword[void] identifier[addPartNumberIfNotNull] operator[SEP] identifier[Request] operator[<] operator[?] operator[>] identifier[request] , identifier[Integer] identifier[partNumber] operator[SEP] { Keyword[if] operator[SEP] identifier[partNumber] operator[!=] Other[null] operator[SEP] { ...
public java.util.List<String> getClientVpnEndpointIds() { if (clientVpnEndpointIds == null) { clientVpnEndpointIds = new com.amazonaws.internal.SdkInternalList<String>(); } return clientVpnEndpointIds; }
class class_name[name] begin[{] method[getClientVpnEndpointIds, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.clientVpnEndpointIds], ==, literal[null]]] begin[{] assign[member[.clientVpnEndpointIds], ClassCreator(arguments=[...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getClientVpnEndpointIds] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[clientVpnEndpointIds] operator[==] Other[null] operator[SEP] { ...
@Override public boolean onEvent(EventMessage<?> event) { AuthorizationResultEvent resultEvent; if (!(event.getPayload() instanceof AuthorizationResultEvent)) { // not the right type of event... not 'handled' return false; } resultEvent = (AuthorizationResul...
class class_name[name] begin[{] method[onEvent, return_type[type[boolean]], modifier[public], parameter[event]] begin[{] local_variable[type[AuthorizationResultEvent], resultEvent] if[binary_operation[call[event.getPayload, parameter[]], instanceof, type[AuthorizationResultEvent]]] begi...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[onEvent] operator[SEP] identifier[EventMessage] operator[<] operator[?] operator[>] identifier[event] operator[SEP] { identifier[AuthorizationResultEvent] identifier[resultEvent] operator[SEP] Keyword[if] operator[SEP] operator[!] ope...
public void addEnvelope(Envelope envSrc, boolean bReverse) { if (envSrc.isEmpty()) return; boolean bWasEmpty = m_pointCount == 0; Point pt = new Point(m_description);// getDescription()); for (int i = 0, n = 4; i < n; i++) { int j = bReverse ? n - i - 1 : i; envSrc.queryCornerByVal(j, pt); if (i =...
class class_name[name] begin[{] method[addEnvelope, return_type[void], modifier[public], parameter[envSrc, bReverse]] begin[{] if[call[envSrc.isEmpty, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[boolean], bWasEmpty] local_var...
Keyword[public] Keyword[void] identifier[addEnvelope] operator[SEP] identifier[Envelope] identifier[envSrc] , Keyword[boolean] identifier[bReverse] operator[SEP] { Keyword[if] operator[SEP] identifier[envSrc] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SE...
public <V> ResultTransformer<Map<K, V>> as(FactoryExpression<V> expression) { final FactoryExpression<?> transformation = FactoryExpressionUtils.wrap(expression); List<Expression<?>> args = transformation.getArgs(); return new GroupByMap<K, V>(key, args.toArray(new Expression<?>[args.size()])) {...
class class_name[name] begin[{] method[as, return_type[type[ResultTransformer]], modifier[public], parameter[expression]] begin[{] local_variable[type[FactoryExpression], transformation] local_variable[type[List], args] return[ClassCreator(arguments=[MemberReference(member=key, postfix_...
Keyword[public] operator[<] identifier[V] operator[>] identifier[ResultTransformer] operator[<] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[as] operator[SEP] identifier[FactoryExpression] operator[<] identifier[V] operator[>] identifier[expression] operator[SEP] { ...
@FFDCIgnore(IllegalArgumentException.class) private String evaluateGroupMemberOfAttribute(boolean immediateOnly) { try { return elHelper.processString("groupMemberOfAttribute", this.idStoreDefinition.groupMemberOfAttribute(), immediateOnly); } catch (IllegalArgumentException e) { ...
class class_name[name] begin[{] method[evaluateGroupMemberOfAttribute, return_type[type[String]], modifier[private], parameter[immediateOnly]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors...
annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[IllegalArgumentException] operator[SEP] Keyword[class] operator[SEP] Keyword[private] identifier[String] identifier[evaluateGroupMemberOfAttribute] operator[SEP] Keyword[boolean] identifier[immediateOnly] operator[SEP] { Keyword[try] { Keyw...
public void denyPermissions(int pid, int uid, String... permissions) { getShadowInstrumentation().denyPermissions(pid, uid, permissions); }
class class_name[name] begin[{] method[denyPermissions, return_type[void], modifier[public], parameter[pid, uid, permissions]] begin[{] call[.getShadowInstrumentation, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[denyPermissions] operator[SEP] Keyword[int] identifier[pid] , Keyword[int] identifier[uid] , identifier[String] operator[...] identifier[permissions] operator[SEP] { identifier[getShadowInstrumentation] operator[SEP] operator[SEP] operator[SEP] identifier[denyPermission...
@Override public void configureComponent(final Object component, final PlexusConfiguration configuration, final ExpressionEvaluator expressionEvaluator, final ClassRealm containerRealm, ...
class class_name[name] begin[{] method[configureComponent, return_type[void], modifier[public], parameter[component, configuration, expressionEvaluator, containerRealm, listener]] begin[{] local_variable[type[String], serverType] if[call[serverType.startsWith, parameter[literal["depende...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configureComponent] operator[SEP] Keyword[final] identifier[Object] identifier[component] , Keyword[final] identifier[PlexusConfiguration] identifier[configuration] , Keyword[final] identifier[ExpressionEvaluator] identifier[expressionEvaluat...
@Override public void setTraversableResolver(Configuration<?> apiConfig) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "setTraversableResolver", apiConfig); } Class<? extends TraversableResolver> clazz = null; TraversableResolver tr = n...
class class_name[name] begin[{] method[setTraversableResolver, return_type[void], modifier[public], parameter[apiConfig]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setTraversableResolver] operator[SEP] identifier[Configuration] operator[<] operator[?] operator[>] identifier[apiConfig] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] ...
public static boolean isEmpty(File pFile) { if (pFile.isDirectory()) { return (pFile.list().length == 0); } return (pFile.length() == 0); }
class class_name[name] begin[{] method[isEmpty, return_type[type[boolean]], modifier[public static], parameter[pFile]] begin[{] if[call[pFile.isDirectory, parameter[]]] begin[{] return[binary_operation[call[pFile.list, parameter[]], ==, literal[0]]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isEmpty] operator[SEP] identifier[File] identifier[pFile] operator[SEP] { Keyword[if] operator[SEP] identifier[pFile] operator[SEP] identifier[isDirectory] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[p...
private void initSeLionRemoteProxySpecificValues(RemoteProxy proxy) { if (SeLionRemoteProxy.class.getCanonicalName().equals( proxy.getOriginalRegistrationRequest().getConfiguration().proxy)) { SeLionRemoteProxy srp = (SeLionRemoteProxy) proxy; // figure out if the proxy ...
class class_name[name] begin[{] method[initSeLionRemoteProxySpecificValues, return_type[void], modifier[private], parameter[proxy]] begin[{] if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getCanonicalName, postfix_operat...
Keyword[private] Keyword[void] identifier[initSeLionRemoteProxySpecificValues] operator[SEP] identifier[RemoteProxy] identifier[proxy] operator[SEP] { Keyword[if] operator[SEP] identifier[SeLionRemoteProxy] operator[SEP] Keyword[class] operator[SEP] identifier[getCanonicalName] operator[SEP] operator[SEP] operat...
public static final void finish(int block[]) { for (int i = 0; i < 64; i += 4) { block[i] = div(block[i]); block[i + 1] = div(block[i + 1]); block[i + 2] = div(block[i + 2]); block[i + 3] = div(block[i + 3]); } }
class class_name[name] begin[{] method[finish, return_type[void], modifier[final public static], parameter[block]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=block, postfix_operators=[], prefix_operators...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[finish] operator[SEP] Keyword[int] identifier[block] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Other[64] operator[SEP] ident...
public int read(final char[] cbuf, final int off, final int len) throws IOException { final int read = super.read(cbuf, off, len); boolean doUnfold = false; for (char[] pattern : patterns) { if (read > 0 && cbuf[0] == pattern[0]) { doUnfold = true; bre...
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[cbuf, off, len]] begin[{] local_variable[type[int], read] local_variable[type[boolean], doUnfold] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperati...
Keyword[public] Keyword[int] identifier[read] operator[SEP] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[cbuf] , Keyword[final] Keyword[int] identifier[off] , Keyword[final] Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[int] i...
public void setPreferredCacheClusterAZs(java.util.Collection<String> preferredCacheClusterAZs) { if (preferredCacheClusterAZs == null) { this.preferredCacheClusterAZs = null; return; } this.preferredCacheClusterAZs = new com.amazonaws.internal.SdkInternalList<String>(pre...
class class_name[name] begin[{] method[setPreferredCacheClusterAZs, return_type[void], modifier[public], parameter[preferredCacheClusterAZs]] begin[{] if[binary_operation[member[.preferredCacheClusterAZs], ==, literal[null]]] begin[{] assign[THIS[member[None.preferredCac...
Keyword[public] Keyword[void] identifier[setPreferredCacheClusterAZs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[preferredCacheClusterAZs] operator[SEP] { Keyword[if] operator[SEP] identifier[preferredCa...
public com.google.api.ads.admanager.axis.v201808.DeliveryData getDeliveryData() { return deliveryData; }
class class_name[name] begin[{] method[getDeliveryData, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.deliveryData]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[DeliveryData] identifier[getDeliveryData] operator[SEP] operator[SEP]...
public void setGaugeType(final GaugeType GAUGE_TYPE) { getModel().setGaugeType(GAUGE_TYPE); init(getInnerBounds().width, getInnerBounds().height); repaint(getInnerBounds()); }
class class_name[name] begin[{] method[setGaugeType, return_type[void], modifier[public], parameter[GAUGE_TYPE]] begin[{] call[.getModel, parameter[]] call[.init, parameter[call[.getInnerBounds, parameter[]], call[.getInnerBounds, parameter[]]]] call[.repaint, pa...
Keyword[public] Keyword[void] identifier[setGaugeType] operator[SEP] Keyword[final] identifier[GaugeType] identifier[GAUGE_TYPE] operator[SEP] { identifier[getModel] operator[SEP] operator[SEP] operator[SEP] identifier[setGaugeType] operator[SEP] identifier[GAUGE_TYPE] operator[SEP] operator[SEP] identifier[init...
public SearchQuery highlight(HighlightStyle style, String... fields) { this.highlightStyle = style; if (fields != null && fields.length > 0) { highlightFields = fields; } return this; }
class class_name[name] begin[{] method[highlight, return_type[type[SearchQuery]], modifier[public], parameter[style, fields]] begin[{] assign[THIS[member[None.highlightStyle]], member[.style]] if[binary_operation[binary_operation[member[.fields], !=, literal[null]], &&, binary_o...
Keyword[public] identifier[SearchQuery] identifier[highlight] operator[SEP] identifier[HighlightStyle] identifier[style] , identifier[String] operator[...] identifier[fields] operator[SEP] { Keyword[this] operator[SEP] identifier[highlightStyle] operator[=] identifier[style] operator[SEP] Keyword[if] operator[S...
public static double[] latLonToMeters( double lat, double lon ) { double mx = lon * originShift / 180.0; double my = Math.log(Math.tan((90 + lat) * Math.PI / 360.0)) / (Math.PI / 180.0); my = my * originShift / 180.0; return new double[]{mx, my}; }
class class_name[name] begin[{] method[latLonToMeters, return_type[type[double]], modifier[public static], parameter[lat, lon]] begin[{] local_variable[type[double], mx] local_variable[type[double], my] assign[member[.my], binary_operation[binary_operation[member[.my], *, member...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[latLonToMeters] operator[SEP] Keyword[double] identifier[lat] , Keyword[double] identifier[lon] operator[SEP] { Keyword[double] identifier[mx] operator[=] identifier[lon] operator[*] identifier[originShift] operator[/] litera...
private void removeConsumerFromRegisteredMonitorMap( MonitoredConsumer mc, ArrayList monitorList, Map registeredMonitors) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "removeConsumerFromRegisteredMonitorMap", new Object[] { r...
class class_name[name] begin[{] method[removeConsumerFromRegisteredMonitorMap, return_type[void], modifier[private], parameter[mc, monitorList, registeredMonitors]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] beg...
Keyword[private] Keyword[void] identifier[removeConsumerFromRegisteredMonitorMap] operator[SEP] identifier[MonitoredConsumer] identifier[mc] , identifier[ArrayList] identifier[monitorList] , identifier[Map] identifier[registeredMonitors] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] oper...
public void loginAnonymously(final SimpleLoginAuthenticatedHandler completionHandler) { HashMap<String, String> data = new HashMap<String, String>(); makeRequest(Constants.FIREBASE_AUTH_ANONYMOUS_PATH, data, new RequestHandler() { public void handle(FirebaseSimpleLoginError error, JSONObject data) ...
class class_name[name] begin[{] method[loginAnonymously, return_type[void], modifier[public], parameter[completionHandler]] begin[{] local_variable[type[HashMap], data] call[.makeRequest, parameter[member[Constants.FIREBASE_AUTH_ANONYMOUS_PATH], member[.data], ClassCreator(arguments=[],...
Keyword[public] Keyword[void] identifier[loginAnonymously] operator[SEP] Keyword[final] identifier[SimpleLoginAuthenticatedHandler] identifier[completionHandler] operator[SEP] { identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[data] operator[=] Keyword[new] identifi...
public static Bundle of(String key, float value) { Bundle b = new Bundle(1); b.putFloat(key, value); return b; }
class class_name[name] begin[{] method[of, return_type[type[Bundle]], modifier[public static], parameter[key, value]] begin[{] local_variable[type[Bundle], b] call[b.putFloat, parameter[member[.key], member[.value]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Bundle] identifier[of] operator[SEP] identifier[String] identifier[key] , Keyword[float] identifier[value] operator[SEP] { identifier[Bundle] identifier[b] operator[=] Keyword[new] identifier[Bundle] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[b] oper...
private static SoyValue normalizeNull(@Nullable SoyValue v) { return v == null ? NullData.INSTANCE : v; }
class class_name[name] begin[{] method[normalizeNull, return_type[type[SoyValue]], modifier[private static], parameter[v]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Litera...
Keyword[private] Keyword[static] identifier[SoyValue] identifier[normalizeNull] operator[SEP] annotation[@] identifier[Nullable] identifier[SoyValue] identifier[v] operator[SEP] { Keyword[return] identifier[v] operator[==] Other[null] operator[?] identifier[NullData] operator[SEP] identifier[INSTANCE] operator[:...
public static boolean isClassMonomodal(Class<?> cls) { if (cls.isInterface()) return false; if (cls == Object.class) return true; for (Field f : cls.getDeclaredFields()) if (!Modifier.isStatic(f.getModifiers())) return false; for (Constructor<?> c : cls.getDeclaredConstructors()) // maybe argume...
class class_name[name] begin[{] method[isClassMonomodal, return_type[type[boolean]], modifier[public static], parameter[cls]] begin[{] if[call[cls.isInterface, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[member[.cls...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isClassMonomodal] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] operator[SEP] { Keyword[if] operator[SEP] identifier[cls] operator[SEP] identifier[isInterface] operator[SEP] operator[SEP] operator[SEP] Keyword[retur...
protected void initActivityIds(List<DelayedVariableEvent> delayedEvents, Map<PvmExecutionImpl, String> activityInstanceIds, Map<PvmExecutionImpl, String> activityIds) { for (DelayedVariableEvent event : delayedEvents) { PvmExecutionImpl target...
class class_name[name] begin[{] method[initActivityIds, return_type[void], modifier[protected], parameter[delayedEvents, activityInstanceIds, activityIds]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensio...
Keyword[protected] Keyword[void] identifier[initActivityIds] operator[SEP] identifier[List] operator[<] identifier[DelayedVariableEvent] operator[>] identifier[delayedEvents] , identifier[Map] operator[<] identifier[PvmExecutionImpl] , identifier[String] operator[>] identifier[activityInstanceIds] , identifier[Map] ...
@Override protected void checkPosition () throws AbstractRootFinder.PositionUnchangedException { if (EqualsHelper.equals (m_fXMid, m_fPrevXMid)) { throw new AbstractRootFinder.PositionUnchangedException (); } }
class class_name[name] begin[{] method[checkPosition, return_type[void], modifier[protected], parameter[]] begin[{] if[call[EqualsHelper.equals, parameter[member[.m_fXMid], member[.m_fPrevXMid]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_t...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[checkPosition] operator[SEP] operator[SEP] Keyword[throws] identifier[AbstractRootFinder] operator[SEP] identifier[PositionUnchangedException] { Keyword[if] operator[SEP] identifier[EqualsHelper] operator[SEP] identifier[equals] opera...
public ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, circuitName, authorizationName, authorizationParam...
class class_name[name] begin[{] method[createOrUpdate, return_type[type[ExpressRouteCircuitAuthorizationInner]], modifier[public], parameter[resourceGroupName, circuitName, authorizationName, authorizationParameters]] begin[{] return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resou...
Keyword[public] identifier[ExpressRouteCircuitAuthorizationInner] identifier[createOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[circuitName] , identifier[String] identifier[authorizationName] , identifier[ExpressRouteCircuitAuthorizationInner] identifier[au...
private void sawStore(int seen, int pc) { int reg = RegisterUtils.getStoreReg(this, seen); if (catchHandlers.get(pc)) { ignoreRegs.set(reg); ScopeBlock catchSB = findScopeBlock(rootScopeBlock, pc + 1); if ((catchSB != null) && (catchSB.getStart() < pc)) { ...
class class_name[name] begin[{] method[sawStore, return_type[void], modifier[private], parameter[seen, pc]] begin[{] local_variable[type[int], reg] if[call[catchHandlers.get, parameter[member[.pc]]]] begin[{] call[ignoreRegs.set, parameter[member[.reg]]] ...
Keyword[private] Keyword[void] identifier[sawStore] operator[SEP] Keyword[int] identifier[seen] , Keyword[int] identifier[pc] operator[SEP] { Keyword[int] identifier[reg] operator[=] identifier[RegisterUtils] operator[SEP] identifier[getStoreReg] operator[SEP] Keyword[this] , identifier[seen] operator[SEP] ope...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object returnValue = null; try { returnValue = method.invoke(target, args); } catch(InvocationTargetException ite) { throw ite.getTargetException(); } if (mes...
class class_name[name] begin[{] method[invoke, return_type[type[Object]], modifier[public], parameter[proxy, method, args]] begin[{] local_variable[type[Object], returnValue] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=returnValue, postfix_op...
Keyword[public] identifier[Object] identifier[invoke] operator[SEP] identifier[Object] identifier[proxy] , identifier[Method] identifier[method] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Throwable] { identifier[Object] identifier[returnValue] ope...
public void addTableField(String fieldLabel, JTable field, List<JButton> buttons) { validateNotTabbed(); JScrollPane scrollPane = new JScrollPane(); scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); scrollPane.setViewportView(field); field.setFillsViewportHeight(true); // T...
class class_name[name] begin[{] method[addTableField, return_type[void], modifier[public], parameter[fieldLabel, field, buttons]] begin[{] call[.validateNotTabbed, parameter[]] local_variable[type[JScrollPane], scrollPane] call[scrollPane.setVerticalScrollBarPolicy, para...
Keyword[public] Keyword[void] identifier[addTableField] operator[SEP] identifier[String] identifier[fieldLabel] , identifier[JTable] identifier[field] , identifier[List] operator[<] identifier[JButton] operator[>] identifier[buttons] operator[SEP] { identifier[validateNotTabbed] operator[SEP] operator[SEP] ope...
private void addSleeper(final long identifier, final ComplexCondition call) { if (sleeperMap.put(identifier, call) != null) { throw new RuntimeException(String.format("Duplicate identifier [%d] in sleeper map", identifier)); } }
class class_name[name] begin[{] method[addSleeper, return_type[void], modifier[private], parameter[identifier, call]] begin[{] if[binary_operation[call[sleeperMap.put, parameter[member[.identifier], member[.call]]], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator...
Keyword[private] Keyword[void] identifier[addSleeper] operator[SEP] Keyword[final] Keyword[long] identifier[identifier] , Keyword[final] identifier[ComplexCondition] identifier[call] operator[SEP] { Keyword[if] operator[SEP] identifier[sleeperMap] operator[SEP] identifier[put] operator[SEP] identifier[identifie...
public UpdateCenterJob getJob(int id) { synchronized (jobs) { for (UpdateCenterJob job : jobs) { if (job.id==id) return job; } } return null; }
class class_name[name] begin[{] method[getJob, return_type[type[UpdateCenterJob]], modifier[public], parameter[id]] begin[{] SYNCHRONIZED[member[.jobs]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(m...
Keyword[public] identifier[UpdateCenterJob] identifier[getJob] operator[SEP] Keyword[int] identifier[id] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[jobs] operator[SEP] { Keyword[for] operator[SEP] identifier[UpdateCenterJob] identifier[job] operator[:] identifier[jobs] operator[SE...
public void addScaling(double scale) { // invalidate inverse inv = null; // Note: last ROW is not included. for(int i = 0; i < dim; i++) { for(int j = 0; j <= dim; j++) { trans[i][j] = trans[i][j] * scale; } } // As long as relative vectors aren't used, this would also work: ...
class class_name[name] begin[{] method[addScaling, return_type[void], modifier[public], parameter[scale]] begin[{] assign[member[.inv], literal[null]] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(ex...
Keyword[public] Keyword[void] identifier[addScaling] operator[SEP] Keyword[double] identifier[scale] operator[SEP] { identifier[inv] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[dim] operator[SE...