code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected int addClasspathElements( Collection<?> elements, URL[] urls, int startPosition ) throws MojoExecutionException { for ( Object object : elements ) { try { if ( object instanceof Artifact ) { urls[startPosit...
class class_name[name] begin[{] method[addClasspathElements, return_type[type[int]], modifier[protected], parameter[elements, urls, startPosition]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member...
Keyword[protected] Keyword[int] identifier[addClasspathElements] operator[SEP] identifier[Collection] operator[<] operator[?] operator[>] identifier[elements] , identifier[URL] operator[SEP] operator[SEP] identifier[urls] , Keyword[int] identifier[startPosition] operator[SEP] Keyword[throws] identifier[MojoExecutionE...
@Override public void toPDB(StringBuffer buf){ Formatter formatter = new Formatter(new StringBuilder(),Locale.UK); // DBREF 3ETA A 990 1295 UNP P06213 INSR_HUMAN 1017 1322 // DBREF 3EH2 A 2 767 UNP P53992 SC24C_HUMAN 329 1094 // DBREF 3EH2 A 2 767 UNP P...
class class_name[name] begin[{] method[toPDB, return_type[void], modifier[public], parameter[buf]] begin[{] local_variable[type[Formatter], formatter] call[formatter.format, parameter[literal["DBREF %4s %1s %4d%1s %4d%1s %-6s %-8s %-12s%6d%1c%6d%1c "], member[.idCode], membe...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[toPDB] operator[SEP] identifier[StringBuffer] identifier[buf] operator[SEP] { identifier[Formatter] identifier[formatter] operator[=] Keyword[new] identifier[Formatter] operator[SEP] Keyword[new] identifier[StringBuilder] operator[SEP] o...
public CursorAdapter<VH> setCursor(@Nullable Cursor cursor) { if (cursor != mCursor) { mCursor = cursor == null || cursor instanceof EasyCursor ? (EasyCursor) cursor : new EasyCursor(cursor); notifyDataSetChanged(); } return this; }
class class_name[name] begin[{] method[setCursor, return_type[type[CursorAdapter]], modifier[public], parameter[cursor]] begin[{] if[binary_operation[member[.cursor], !=, member[.mCursor]]] begin[{] assign[member[.mCursor], TernaryExpression(condition=BinaryOperation(ope...
Keyword[public] identifier[CursorAdapter] operator[<] identifier[VH] operator[>] identifier[setCursor] operator[SEP] annotation[@] identifier[Nullable] identifier[Cursor] identifier[cursor] operator[SEP] { Keyword[if] operator[SEP] identifier[cursor] operator[!=] identifier[mCursor] operator[SEP] { id...
public static rnat6[] get(nitro_service service) throws Exception{ rnat6 obj = new rnat6(); rnat6[] response = (rnat6[])obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[rnat6]], modifier[public static], parameter[service]] begin[{] local_variable[type[rnat6], obj] local_variable[type[rnat6], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[rnat6] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[rnat6] identifier[obj] operator[=] Keyword[new] identifier[rnat6] operator[SEP] operator[SEP] ...
private static void logout(String dpmBaseURL, String userAuthToken) { Response response = null; try { response = ClientBuilder.newClient() .target(dpmBaseURL + "/security/_logout") .register(new CsrfProtectionFilter("CSRF")) .request() .header(SSOConstants.X_USER_AU...
class class_name[name] begin[{] method[logout, return_type[void], modifier[private static], parameter[dpmBaseURL, userAuthToken]] begin[{] local_variable[type[Response], response] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=response, postfix_...
Keyword[private] Keyword[static] Keyword[void] identifier[logout] operator[SEP] identifier[String] identifier[dpmBaseURL] , identifier[String] identifier[userAuthToken] operator[SEP] { identifier[Response] identifier[response] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[response] ...
@Override public boolean booleanValue(CssFormatter formatter) { Expression leftOp = operands.get( 0 ); switch( operator ) { case '&': case '|': boolean value = leftOp.booleanValue( formatter ); for( int i = 1; i < operands.size(); i++ ) { ...
class class_name[name] begin[{] method[booleanValue, return_type[type[boolean]], modifier[public], parameter[formatter]] begin[{] local_variable[type[Expression], leftOp] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selector...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[booleanValue] operator[SEP] identifier[CssFormatter] identifier[formatter] operator[SEP] { identifier[Expression] identifier[leftOp] operator[=] identifier[operands] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] o...
public static String formFilename(String dirPath, String filePath) { if ((dirPath == null) || (filePath == null)) return null; if (filePath.startsWith("/")) filePath = filePath.substring(1); return dirPath.endsWith("/") ? dirPath + filePath : dirPath + "/" + filePath; }
class class_name[name] begin[{] method[formFilename, return_type[type[String]], modifier[public static], parameter[dirPath, filePath]] begin[{] if[binary_operation[binary_operation[member[.dirPath], ==, literal[null]], ||, binary_operation[member[.filePath], ==, literal[null]]]] begin[{] return...
Keyword[public] Keyword[static] identifier[String] identifier[formFilename] operator[SEP] identifier[String] identifier[dirPath] , identifier[String] identifier[filePath] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[dirPath] operator[==] Other[null] operator[SEP] operator[||] operator[SEP]...
private static void parseScoreboard(final StatusData<ApacheMetrics> statusData, final String scoreboard) { statusData.put(ApacheMetrics.SCOREBOARD_WAITINGFORCONNECTION, charCount(scoreboard, '_')); statusData.put(ApacheMetrics.SCOREBOARD_STARTINGUP, charCount(scoreboard, 'S')); statusData.put(Ap...
class class_name[name] begin[{] method[parseScoreboard, return_type[void], modifier[private static], parameter[statusData, scoreboard]] begin[{] call[statusData.put, parameter[member[ApacheMetrics.SCOREBOARD_WAITINGFORCONNECTION], call[.charCount, parameter[member[.scoreboard], literal['_']]]]]...
Keyword[private] Keyword[static] Keyword[void] identifier[parseScoreboard] operator[SEP] Keyword[final] identifier[StatusData] operator[<] identifier[ApacheMetrics] operator[>] identifier[statusData] , Keyword[final] identifier[String] identifier[scoreboard] operator[SEP] { identifier[statusData] operator[SEP] ...
public void setNoLocal(boolean noLocal) { if (tc.isEntryEnabled()) SibTr.entry(tc, "setNoLocal", new Boolean(noLocal)); this.noLocal = noLocal; if (tc.isEntryEnabled()) SibTr.exit(tc, "setNoLocal"); }
class class_name[name] begin[{] method[setNoLocal, return_type[void], modifier[public], parameter[noLocal]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["setNoLocal"], ClassCreator(arguments=[MemberReference(member=noLoc...
Keyword[public] Keyword[void] identifier[setNoLocal] operator[SEP] Keyword[boolean] identifier[noLocal] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] ident...
public <T extends Entity> T byID(Class<T> clazz, AssetID id) { return instance.getWrapperManager().create(clazz, id, true); }
class class_name[name] begin[{] method[byID, return_type[type[T]], modifier[public], parameter[clazz, id]] begin[{] return[call[instance.getWrapperManager, parameter[]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Entity] operator[>] identifier[T] identifier[byID] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] , identifier[AssetID] identifier[id] operator[SEP] { Keyword[return] identifier[instance] operator[SEP]...
public void check_asynch_reply(final DeviceProxy deviceProxy, final Request request, final int id, final String idl_cmd) throws DevFailed { // Check if request object has been found if (request == null) { Except.throw_connection_failed("TangoApi_CommandFailed", "A...
class class_name[name] begin[{] method[check_asynch_reply, return_type[void], modifier[public], parameter[deviceProxy, request, id, idl_cmd]] begin[{] if[binary_operation[member[.request], ==, literal[null]]] begin[{] call[Except.throw_connection_failed, parameter[litera...
Keyword[public] Keyword[void] identifier[check_asynch_reply] operator[SEP] Keyword[final] identifier[DeviceProxy] identifier[deviceProxy] , Keyword[final] identifier[Request] identifier[request] , Keyword[final] Keyword[int] identifier[id] , Keyword[final] identifier[String] identifier[idl_cmd] operator[SEP] Keyword...
@SuppressWarnings("unchecked") public List<IUserLayoutNodeDescription> getFavoritePortletLayoutNodes(IUserLayout userLayout) { logger.trace("Extracting favorite portlets from layout [{}]", userLayout); List<IUserLayoutNodeDescription> favorites = new LinkedList<>(); Enumeration<String> ch...
class class_name[name] begin[{] method[getFavoritePortletLayoutNodes, return_type[type[List]], modifier[public], parameter[userLayout]] begin[{] call[logger.trace, parameter[literal["Extracting favorite portlets from layout [{}]"], member[.userLayout]]] local_variable[type[List], favori...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[List] operator[<] identifier[IUserLayoutNodeDescription] operator[>] identifier[getFavoritePortletLayoutNodes] operator[SEP] identifier[IUserLayout] identifier[userLayout] operator[SEP] { identifier[...
private ParseTree transformLeftHandSideExpression(ParseTree tree) { switch (tree.type) { case ARRAY_LITERAL_EXPRESSION: case OBJECT_LITERAL_EXPRESSION: resetScanner(tree); // If we fail to parse as an LeftHandSidePattern then // parseLeftHandSidePattern will take care reporting e...
class class_name[name] begin[{] method[transformLeftHandSideExpression, return_type[type[ParseTree]], modifier[private], parameter[tree]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['ARRAY_LITERAL_EXPRESSION', 'OBJECT_LITERAL_EXPRESSION'], statements=[StatementExpression(expression=Method...
Keyword[private] identifier[ParseTree] identifier[transformLeftHandSideExpression] operator[SEP] identifier[ParseTree] identifier[tree] operator[SEP] { Keyword[switch] operator[SEP] identifier[tree] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[ARRAY_LITERAL_EXPRESSION] opera...
static public char[] convertByteToCharUTF(byte[] byteArray) { Charset c = CDM.utf8Charset; CharBuffer output = c.decode(ByteBuffer.wrap(byteArray)); return output.array(); }
class class_name[name] begin[{] method[convertByteToCharUTF, return_type[type[char]], modifier[public static], parameter[byteArray]] begin[{] local_variable[type[Charset], c] local_variable[type[CharBuffer], output] return[call[output.array, parameter[]]] end[}] END[}]
Keyword[static] Keyword[public] Keyword[char] operator[SEP] operator[SEP] identifier[convertByteToCharUTF] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[byteArray] operator[SEP] { identifier[Charset] identifier[c] operator[=] identifier[CDM] operator[SEP] identifier[utf8Charset] operator[SEP...
public static <T, CopyType> CopyType copyLeavesIn(TreeDef<T> def, T root, BiFunction<T, List<CopyType>, CopyType> nodeMapper) { List<CopyType> childrenMapped = def.childrenOf(root).stream().map(child -> { return copyLeavesIn(def, child, nodeMapper); }).collect(Collectors.toList()); return nodeMapper.apply(root...
class class_name[name] begin[{] method[copyLeavesIn, return_type[type[CopyType]], modifier[public static], parameter[def, root, nodeMapper]] begin[{] local_variable[type[List], childrenMapped] return[call[nodeMapper.apply, parameter[member[.root], member[.childrenMapped]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[CopyType] operator[>] identifier[CopyType] identifier[copyLeavesIn] operator[SEP] identifier[TreeDef] operator[<] identifier[T] operator[>] identifier[def] , identifier[T] identifier[root] , identifier[BiFunction] operator[<] identifier[T] , ide...
public static InetAddress getInetAddress(Config config, String path) { try { return InetAddress.getByName(config.getString(path)); } catch (UnknownHostException e) { throw badValue(e, config, path); } }
class class_name[name] begin[{] method[getInetAddress, return_type[type[InetAddress]], modifier[public static], parameter[config, path]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=path, postfix_operators=[], pre...
Keyword[public] Keyword[static] identifier[InetAddress] identifier[getInetAddress] operator[SEP] identifier[Config] identifier[config] , identifier[String] identifier[path] operator[SEP] { Keyword[try] { Keyword[return] identifier[InetAddress] operator[SEP] identifier[getByName] operator[SEP] identif...
@DELETE @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON}) @Path("/{name}") public Response delete(@Auth final DbCredential credential, @PathParam("name") final String name){ if(!credential.getRoles().contains(AvailableRoles.DATA_DELETER)){ throw new WebApplicationException(Res...
class class_name[name] begin[{] method[delete, return_type[type[Response]], modifier[public], parameter[credential, name]] begin[{] if[call[credential.getRoles, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(membe...
annotation[@] identifier[DELETE] annotation[@] identifier[Produces] operator[SEP] { identifier[MediaType] operator[SEP] identifier[TEXT_HTML] , identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] } operator[SEP] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] Keyword[p...
protected final int applyAllCaseFoldWithMap(int mapSize, int[][]map, boolean essTsettFlag, int flag, ApplyAllCaseFoldFunction fun, Object arg) { asciiApplyAllCaseFold(flag, fun, arg); int[]code = new int[]{0}; for (int i=0; i<mapSize; i++) { ...
class class_name[name] begin[{] method[applyAllCaseFoldWithMap, return_type[type[int]], modifier[final protected], parameter[mapSize, map, essTsettFlag, flag, fun, arg]] begin[{] call[.asciiApplyAllCaseFold, parameter[member[.flag], member[.fun], member[.arg]]] local_variable[type[int],...
Keyword[protected] Keyword[final] Keyword[int] identifier[applyAllCaseFoldWithMap] operator[SEP] Keyword[int] identifier[mapSize] , Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[map] , Keyword[boolean] identifier[essTsettFlag] , Keyword[int] identifier[flag] , identifier[ApplyAllCa...
public static List<CPDefinitionSpecificationOptionValue> findByCPDefinitionId( long CPDefinitionId, int start, int end) { return getPersistence().findByCPDefinitionId(CPDefinitionId, start, end); }
class class_name[name] begin[{] method[findByCPDefinitionId, return_type[type[List]], modifier[public static], parameter[CPDefinitionId, start, end]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CPDefinitionSpecificationOptionValue] operator[>] identifier[findByCPDefinitionId] operator[SEP] Keyword[long] identifier[CPDefinitionId] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] ident...
public void setDomain(Vec2 ... verts){ dom = new Vertex(this); vertexCount = verts.length; this.setOrient(0.0f); getPosition().set( getCentroid(orderVertex(verts)).x, getCentroid(orderVertex(verts)).y ); Vec2[] halfPoly = new Vec2[verts.length]; for (int i = 0; i < verts.length; i++) { halfPoly[i] = new ...
class class_name[name] begin[{] method[setDomain, return_type[void], modifier[public], parameter[verts]] begin[{] assign[member[.dom], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], body=None, constructor_type_arguments=None, postfix_oper...
Keyword[public] Keyword[void] identifier[setDomain] operator[SEP] identifier[Vec2] operator[...] identifier[verts] operator[SEP] { identifier[dom] operator[=] Keyword[new] identifier[Vertex] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[vertexCount] operator[=] identifier[verts] operator[SEP...
public void setEditorTarget (PropertyEditorTarget target) { if (target instanceof DBMetaCatalogNode) { super.setEditorTarget(target); this.tfCatalogName.setText((String)target.getAttribute(DBMetaCatalogNode.ATT_CATALOG_NAME)); } else { ...
class class_name[name] begin[{] method[setEditorTarget, return_type[void], modifier[public], parameter[target]] begin[{] if[binary_operation[member[.target], instanceof, type[DBMetaCatalogNode]]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=target, po...
Keyword[public] Keyword[void] identifier[setEditorTarget] operator[SEP] identifier[PropertyEditorTarget] identifier[target] operator[SEP] { Keyword[if] operator[SEP] identifier[target] Keyword[instanceof] identifier[DBMetaCatalogNode] operator[SEP] { Keyword[super] operator[SEP] identifier[setEditorTa...
public <K extends Throwable> FluentWait<T> ignoreAll(Collection<Class<? extends K>> types) { ignoredExceptions.addAll(types); return this; }
class class_name[name] begin[{] method[ignoreAll, return_type[type[FluentWait]], modifier[public], parameter[types]] begin[{] call[ignoredExceptions.addAll, parameter[member[.types]]] return[THIS[]] end[}] END[}]
Keyword[public] operator[<] identifier[K] Keyword[extends] identifier[Throwable] operator[>] identifier[FluentWait] operator[<] identifier[T] operator[>] identifier[ignoreAll] operator[SEP] identifier[Collection] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[K] operator[>] operator[>...
public static String fixWindowsPath(String path) { if (isWindows && path.length() > 3 && path.charAt(0) == '/' && path.charAt(2) == ':') { path = path.substring(1).replace('/', '\\'); } return path; }
class class_name[name] begin[{] method[fixWindowsPath, return_type[type[String]], modifier[public static], parameter[path]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.isWindows], &&, binary_operation[call[path.length, parameter[]], >, literal[3]]], &&, binary_operati...
Keyword[public] Keyword[static] identifier[String] identifier[fixWindowsPath] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[isWindows] operator[&&] identifier[path] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[3] operator[...
public static final int compressblock(int[] out, int outOffset, int[] in, int inOffset, int n) { int numIdx, j, num, bits; for (numIdx = 0; numIdx < S16_NUMSIZE; numIdx++) { out[outOffset] = numIdx << S16_BITSSIZE; num = (S16_NUM[numIdx] < n) ? S16_NUM[numIdx] : n; for (j = 0, bits = 0; (j < num) && (in[i...
class class_name[name] begin[{] method[compressblock, return_type[type[int]], modifier[final public static], parameter[out, outOffset, in, inOffset, n]] begin[{] local_variable[type[int], numIdx] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(...
Keyword[public] Keyword[static] Keyword[final] Keyword[int] identifier[compressblock] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[out] , Keyword[int] identifier[outOffset] , Keyword[int] operator[SEP] operator[SEP] identifier[in] , Keyword[int] identifier[inOffset] , Keyword[int] identifier[n]...
private JComponent getEffectiveClippingAncestor() { JComponent clippingComponent = clippingAncestor; if ((clippingComponent == null) && (decoratedComponent != null)) { // No specific clipping ancestor specified by the programmer, so try to find one // Keep a reference to the be...
class class_name[name] begin[{] method[getEffectiveClippingAncestor, return_type[type[JComponent]], modifier[private], parameter[]] begin[{] local_variable[type[JComponent], clippingComponent] if[binary_operation[binary_operation[member[.clippingComponent], ==, literal[null]], &&, binar...
Keyword[private] identifier[JComponent] identifier[getEffectiveClippingAncestor] operator[SEP] operator[SEP] { identifier[JComponent] identifier[clippingComponent] operator[=] identifier[clippingAncestor] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[clippingComponent] operator[==] Other[null]...
public DERObject toASN1Object() { ASN1EncodableVector dev = new ASN1EncodableVector(); dev.add(policyQualifierId); dev.add(qualifier); return new DERSequence(dev); }
class class_name[name] begin[{] method[toASN1Object, return_type[type[DERObject]], modifier[public], parameter[]] begin[{] local_variable[type[ASN1EncodableVector], dev] call[dev.add, parameter[member[.policyQualifierId]]] call[dev.add, parameter[member[.qualifier]]] ...
Keyword[public] identifier[DERObject] identifier[toASN1Object] operator[SEP] operator[SEP] { identifier[ASN1EncodableVector] identifier[dev] operator[=] Keyword[new] identifier[ASN1EncodableVector] operator[SEP] operator[SEP] operator[SEP] identifier[dev] operator[SEP] identifier[add] operator[SEP] identifier[po...
public StringGrabber get(int index) { if (index < 0) { return new StringGrabber(); } else if (index > size() - 1) { return new StringGrabber(); } else { return mSgList.get(index); } }
class class_name[name] begin[{] method[get, return_type[type[StringGrabber]], modifier[public], parameter[index]] begin[{] if[binary_operation[member[.index], <, literal[0]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[],...
Keyword[public] identifier[StringGrabber] identifier[get] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[<] Other[0] operator[SEP] { Keyword[return] Keyword[new] identifier[StringGrabber] operator[SEP] operator[SEP] operator[SEP] ...
public QueryResult parse(final InputStream is) { MessageUnpacker unpacker = MessagePack.newDefaultUnpacker(is); return parse(unpacker); }
class class_name[name] begin[{] method[parse, return_type[type[QueryResult]], modifier[public], parameter[is]] begin[{] local_variable[type[MessageUnpacker], unpacker] return[call[.parse, parameter[member[.unpacker]]]] end[}] END[}]
Keyword[public] identifier[QueryResult] identifier[parse] operator[SEP] Keyword[final] identifier[InputStream] identifier[is] operator[SEP] { identifier[MessageUnpacker] identifier[unpacker] operator[=] identifier[MessagePack] operator[SEP] identifier[newDefaultUnpacker] operator[SEP] identifier[is] operator[SEP...
public static MozuUrl updateAccountCardUrl(Integer accountId, String cardId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/{accountId}/cards/{cardId}?responseFields={responseFields}"); formatter.formatUrl("accountId", accountId); formatter.formatUrl("card...
class class_name[name] begin[{] method[updateAccountCardUrl, return_type[type[MozuUrl]], modifier[public static], parameter[accountId, cardId, responseFields]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["accountId"], member[.accoun...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[updateAccountCardUrl] operator[SEP] identifier[Integer] identifier[accountId] , identifier[String] identifier[cardId] , identifier[String] identifier[responseFields] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword...
public void setLemma(String v) { if (WordForm_Type.featOkTst && ((WordForm_Type)jcasType).casFeat_lemma == null) jcasType.jcas.throwFeatMissing("lemma", "com.digitalpebble.rasp.WordForm"); jcasType.ll_cas.ll_setStringValue(addr, ((WordForm_Type)jcasType).casFeatCode_lemma, v);}
class class_name[name] begin[{] method[setLemma, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[WordForm_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selector...
Keyword[public] Keyword[void] identifier[setLemma] operator[SEP] identifier[String] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[WordForm_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[WordForm_Type] operator[SEP] identifier[jcasType] operator[...
private UnconditionalValueDerefSet propagateDerefSetsToMergeInputValues(UnconditionalValueDerefSet fact, Edge edge) { ValueNumberFrame blockValueNumberFrame = vnaDataflow.getResultFact(edge.getSource()); ValueNumberFrame targetValueNumberFrame = vnaDataflow.getStartFact(edge.getTarget()); Unco...
class class_name[name] begin[{] method[propagateDerefSetsToMergeInputValues, return_type[type[UnconditionalValueDerefSet]], modifier[private], parameter[fact, edge]] begin[{] local_variable[type[ValueNumberFrame], blockValueNumberFrame] local_variable[type[ValueNumberFrame], targetValueNumberFr...
Keyword[private] identifier[UnconditionalValueDerefSet] identifier[propagateDerefSetsToMergeInputValues] operator[SEP] identifier[UnconditionalValueDerefSet] identifier[fact] , identifier[Edge] identifier[edge] operator[SEP] { identifier[ValueNumberFrame] identifier[blockValueNumberFrame] operator[=] identifier...
public final HttpServer proxyProtocol(boolean proxyProtocolEnabled) { if (proxyProtocolEnabled) { if (!HAProxyMessageReader.hasProxyProtocol()) { throw new UnsupportedOperationException( "To enable proxyProtocol, you must add the dependency `io.netty:netty-codec-haproxy`" + " to...
class class_name[name] begin[{] method[proxyProtocol, return_type[type[HttpServer]], modifier[final public], parameter[proxyProtocolEnabled]] begin[{] if[member[.proxyProtocolEnabled]] begin[{] if[call[HAProxyMessageReader.hasProxyProtocol, parameter[]]] begin[{] ...
Keyword[public] Keyword[final] identifier[HttpServer] identifier[proxyProtocol] operator[SEP] Keyword[boolean] identifier[proxyProtocolEnabled] operator[SEP] { Keyword[if] operator[SEP] identifier[proxyProtocolEnabled] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[HAProxyMessageRead...
protected static File createRelativePath(File absolute) throws Exception { File userDir = new File(System.getProperty("user.dir")); String userPath = userDir.getAbsolutePath() + File.separator; String targetPath = (new File(absolute.getParent())).getPath() + File.separator; String fileName = abso...
class class_name[name] begin[{] method[createRelativePath, return_type[type[File]], modifier[static protected], parameter[absolute]] begin[{] local_variable[type[File], userDir] local_variable[type[String], userPath] local_variable[type[String], targetPath] local_variable[type[S...
Keyword[protected] Keyword[static] identifier[File] identifier[createRelativePath] operator[SEP] identifier[File] identifier[absolute] operator[SEP] Keyword[throws] identifier[Exception] { identifier[File] identifier[userDir] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[System] operator[SEP...
public T tap(TapOptions tapOptions) { ActionParameter action = new ActionParameter("tap", tapOptions); parameterBuilder.add(action); return (T) this; }
class class_name[name] begin[{] method[tap, return_type[type[T]], modifier[public], parameter[tapOptions]] begin[{] local_variable[type[ActionParameter], action] call[parameterBuilder.add, parameter[member[.action]]] return[Cast(expression=This(postfix_operators=[], prefix_opera...
Keyword[public] identifier[T] identifier[tap] operator[SEP] identifier[TapOptions] identifier[tapOptions] operator[SEP] { identifier[ActionParameter] identifier[action] operator[=] Keyword[new] identifier[ActionParameter] operator[SEP] literal[String] , identifier[tapOptions] operator[SEP] operator[SEP] identif...
public MachineType getMachineType() { long value = get(MACHINE); try { return MachineType.getForValue(value); } catch (IllegalArgumentException e) { logger.error("Unable to resolve machine type for value: " + value); return MachineType.UNKNOWN; } }
class class_name[name] begin[{] method[getMachineType, return_type[type[MachineType]], modifier[public], parameter[]] begin[{] local_variable[type[long], value] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_...
Keyword[public] identifier[MachineType] identifier[getMachineType] operator[SEP] operator[SEP] { Keyword[long] identifier[value] operator[=] identifier[get] operator[SEP] identifier[MACHINE] operator[SEP] operator[SEP] Keyword[try] { Keyword[return] identifier[MachineType] operator[SEP] identifier[get...
private List<T> filter(final Collection<T> collection) { final List<T> nullFreeList = new ArrayList<T>(); if (collection != null) { for (final T item : collection) { if (item != null) { nullFreeList.add(item); } } } return nullFreeList; }
class class_name[name] begin[{] method[filter, return_type[type[List]], modifier[private], parameter[collection]] begin[{] local_variable[type[List], nullFreeList] if[binary_operation[member[.collection], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=No...
Keyword[private] identifier[List] operator[<] identifier[T] operator[>] identifier[filter] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[T] operator[>] identifier[collection] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[T] operator[>] identifier[nullFreeList...
@Override public PmdRuleSet create() { final SAXBuilder parser = new SAXBuilder(); final Document dom; try { dom = parser.build(source); } catch (JDOMException | IOException e) { if (messages != null) { messages.addErrorText(INVALID_INPUT + " :...
class class_name[name] begin[{] method[create, return_type[type[PmdRuleSet]], modifier[public], parameter[]] begin[{] local_variable[type[SAXBuilder], parser] local_variable[type[Document], dom] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(me...
annotation[@] identifier[Override] Keyword[public] identifier[PmdRuleSet] identifier[create] operator[SEP] operator[SEP] { Keyword[final] identifier[SAXBuilder] identifier[parser] operator[=] Keyword[new] identifier[SAXBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Document] identif...
@Override public V get(ByteBuffer b, int offset, int len) { int t = 0; for (int i = 0; i < len; i++) { byte c = b.get(offset + i); int index = __lookup[c & 0x7f]; if (index >= 0) { int idx = t * ROW_SIZE + index; t = _rowIndex[idx];...
class class_name[name] begin[{] method[get, return_type[type[V]], modifier[public], parameter[b, offset, len]] begin[{] local_variable[type[int], t] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], i...
annotation[@] identifier[Override] Keyword[public] identifier[V] identifier[get] operator[SEP] identifier[ByteBuffer] identifier[b] , Keyword[int] identifier[offset] , Keyword[int] identifier[len] operator[SEP] { Keyword[int] identifier[t] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[i...
public static String getDirectoryname(final String pPath, final char pSeparator) { int index = pPath.lastIndexOf(pSeparator); if (index < 0) { return ""; // Assume only filename } return pPath.substring(0, index); }
class class_name[name] begin[{] method[getDirectoryname, return_type[type[String]], modifier[public static], parameter[pPath, pSeparator]] begin[{] local_variable[type[int], index] if[binary_operation[member[.index], <, literal[0]]] begin[{] return[literal[""]] else ...
Keyword[public] Keyword[static] identifier[String] identifier[getDirectoryname] operator[SEP] Keyword[final] identifier[String] identifier[pPath] , Keyword[final] Keyword[char] identifier[pSeparator] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[pPath] operator[SEP] identifier[lastIndexO...
public EClass getIfcRadioActivityMeasure() { if (ifcRadioActivityMeasureEClass == null) { ifcRadioActivityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(727); } return ifcRadioActivityMeasureEClass; }
class class_name[name] begin[{] method[getIfcRadioActivityMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcRadioActivityMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcRadioActivityMeasureEClass], C...
Keyword[public] identifier[EClass] identifier[getIfcRadioActivityMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcRadioActivityMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcRadioActivityMeasureEClass] operator[=] operator[SEP] identifier[EClass] op...
public static base_response update(nitro_service client, aaaparameter resource) throws Exception { aaaparameter updateresource = new aaaparameter(); updateresource.enablestaticpagecaching = resource.enablestaticpagecaching; updateresource.enableenhancedauthfeedback = resource.enableenhancedauthfeedback; updater...
class class_name[name] begin[{] method[update, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[aaaparameter], updateresource] assign[member[updateresource.enablestaticpagecaching], member[resource.enablestaticpagecachi...
Keyword[public] Keyword[static] identifier[base_response] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[aaaparameter] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[aaaparameter] identifier[updateresource] operator[=] Keyword[ne...
public boolean recordThrowDescription( JSTypeExpression type, String description) { if (currentInfo.documentThrows(type, description)) { populated = true; return true; } else { return false; } }
class class_name[name] begin[{] method[recordThrowDescription, return_type[type[boolean]], modifier[public], parameter[type, description]] begin[{] if[call[currentInfo.documentThrows, parameter[member[.type], member[.description]]]] begin[{] assign[member[.populated], li...
Keyword[public] Keyword[boolean] identifier[recordThrowDescription] operator[SEP] identifier[JSTypeExpression] identifier[type] , identifier[String] identifier[description] operator[SEP] { Keyword[if] operator[SEP] identifier[currentInfo] operator[SEP] identifier[documentThrows] operator[SEP] identifier[type] ,...
@Override public Table<URI, URI, MatchResult> listMatchesWithinRange(Set<URI> origins, MatchType minType, MatchType maxType) { return obtainMatchResults(origins, minType, maxType); }
class class_name[name] begin[{] method[listMatchesWithinRange, return_type[type[Table]], modifier[public], parameter[origins, minType, maxType]] begin[{] return[call[.obtainMatchResults, parameter[member[.origins], member[.minType], member[.maxType]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Table] operator[<] identifier[URI] , identifier[URI] , identifier[MatchResult] operator[>] identifier[listMatchesWithinRange] operator[SEP] identifier[Set] operator[<] identifier[URI] operator[>] identifier[origins] , identifier[MatchType] identifier[minT...
@Indexable(type = IndexableType.DELETE) @Override public CommerceOrderPayment deleteCommerceOrderPayment( CommerceOrderPayment commerceOrderPayment) { return commerceOrderPaymentPersistence.remove(commerceOrderPayment); }
class class_name[name] begin[{] method[deleteCommerceOrderPayment, return_type[type[CommerceOrderPayment]], modifier[public], parameter[commerceOrderPayment]] begin[{] return[call[commerceOrderPaymentPersistence.remove, parameter[member[.commerceOrderPayment]]]] end[}] END[}]
annotation[@] identifier[Indexable] operator[SEP] identifier[type] operator[=] identifier[IndexableType] operator[SEP] identifier[DELETE] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[CommerceOrderPayment] identifier[deleteCommerceOrderPayment] operator[SEP] identifier[CommerceOrderPayment...
private void filter(CloneGroup current) { for (CloneGroup earlier : filtered) { if (containsIn(current, earlier)) { return; } } filtered.add(current); }
class class_name[name] begin[{] method[filter, return_type[void], modifier[private], parameter[current]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[private] Keyword[void] identifier[filter] operator[SEP] identifier[CloneGroup] identifier[current] operator[SEP] { Keyword[for] operator[SEP] identifier[CloneGroup] identifier[earlier] operator[:] identifier[filtered] operator[SEP] { Keyword[if] operator[SEP] identifier[containsIn] operator[S...
public Iterable<Method> findAllMethods( Pattern methodNamePattern ) { LinkedList<Method> methods = new LinkedList<Method>(); final Method[] allMethods = this.targetClass.getMethods(); for (int i = 0; i < allMethods.length; i++) { final Method m = allMethods[i]; if (metho...
class class_name[name] begin[{] method[findAllMethods, return_type[type[Iterable]], modifier[public], parameter[methodNamePattern]] begin[{] local_variable[type[LinkedList], methods] local_variable[type[Method], allMethods] ForStatement(body=BlockStatement(label=None, statements=[LocalV...
Keyword[public] identifier[Iterable] operator[<] identifier[Method] operator[>] identifier[findAllMethods] operator[SEP] identifier[Pattern] identifier[methodNamePattern] operator[SEP] { identifier[LinkedList] operator[<] identifier[Method] operator[>] identifier[methods] operator[=] Keyword[new] identifier[Link...
@SideOnly(Side.CLIENT) public static void onRenderBlock(IRenderBlockCallback callback, CallbackOption<IRenderBlockCallbackPredicate> option) { renderBlockRegistry.registerCallback(callback, option); }
class class_name[name] begin[{] method[onRenderBlock, return_type[void], modifier[public static], parameter[callback, option]] begin[{] call[renderBlockRegistry.registerCallback, parameter[member[.callback], member[.option]]] end[}] END[}]
annotation[@] identifier[SideOnly] operator[SEP] identifier[Side] operator[SEP] identifier[CLIENT] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[onRenderBlock] operator[SEP] identifier[IRenderBlockCallback] identifier[callback] , identifier[CallbackOption] operator[<] identifier[IRenderBlockCa...
static String[] getProp(final Map<String, String[]> prop, final String propertyName) { String[] result = null; if (prop != null) { for (final Entry<String, String[]> entry : prop.entrySet()) { if (entry.getKey().equalsIgnoreCase(propertyName)) { result = e...
class class_name[name] begin[{] method[getProp, return_type[type[String]], modifier[static], parameter[prop, propertyName]] begin[{] local_variable[type[String], result] if[binary_operation[member[.prop], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=No...
Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[getProp] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[SEP] operator[SEP] operator[>] identifier[prop] , Keyword[final] identifier[String] identifier[propertyName] operator[SEP] { ...
public static Pattern actChange(boolean activating, Map<EntityReference, Set<ModificationFeature>> activityFeat, Map<EntityReference, Set<ModificationFeature>> inactivityFeat) { Pattern p = peInOut(); p.add(new OR( new MappedConst(differentialActivity(activating), 0, 1), new MappedConst(new ActivityModif...
class class_name[name] begin[{] method[actChange, return_type[type[Pattern]], modifier[public static], parameter[activating, activityFeat, inactivityFeat]] begin[{] local_variable[type[Pattern], p] call[p.add, parameter[ClassCreator(arguments=[ClassCreator(arguments=[MethodInvocation(ar...
Keyword[public] Keyword[static] identifier[Pattern] identifier[actChange] operator[SEP] Keyword[boolean] identifier[activating] , identifier[Map] operator[<] identifier[EntityReference] , identifier[Set] operator[<] identifier[ModificationFeature] operator[>] operator[>] identifier[activityFeat] , identifier[Map] op...
public String computeHash(WebContext ctx, String pathPrefix) throws Exception { StringBuilder stringToSign = new StringBuilder(ctx.getRequest().method().name()); stringToSign.append("\n"); stringToSign.append(ctx.getHeaderValue("Content-MD5").asString("")); stringToSign.append("\n"); ...
class class_name[name] begin[{] method[computeHash, return_type[type[String]], modifier[public], parameter[ctx, pathPrefix]] begin[{] local_variable[type[StringBuilder], stringToSign] call[stringToSign.append, parameter[literal["\n"]]] call[stringToSign.append, parameter...
Keyword[public] identifier[String] identifier[computeHash] operator[SEP] identifier[WebContext] identifier[ctx] , identifier[String] identifier[pathPrefix] operator[SEP] Keyword[throws] identifier[Exception] { identifier[StringBuilder] identifier[stringToSign] operator[=] Keyword[new] identifier[StringBuilder] ...
void updateUserInfo() { try { m_user = m_context.getCms().readUser(m_user.getId()); displayResourceInfoDirectly(Collections.singletonList(CmsAccountsApp.getPrincipalInfo(m_user))); } catch (CmsException e) { LOG.error("Error updating user info.", e); } }
class class_name[name] begin[{] method[updateUserInfo, return_type[void], modifier[default], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=m_user, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value...
Keyword[void] identifier[updateUserInfo] operator[SEP] operator[SEP] { Keyword[try] { identifier[m_user] operator[=] identifier[m_context] operator[SEP] identifier[getCms] operator[SEP] operator[SEP] operator[SEP] identifier[readUser] operator[SEP] identifier[m_user] operator[SEP] identifier[getId] op...
protected void execute(Runnable command) throws RejectedExecutionException { if (isDie()) { logger.warn("AgiServer is shutting down: Refused to execute AgiScript"); return; } getPool().execute(command); }
class class_name[name] begin[{] method[execute, return_type[void], modifier[protected], parameter[command]] begin[{] if[call[.isDie, parameter[]]] begin[{] call[logger.warn, parameter[literal["AgiServer is shutting down: Refused to execute AgiScript"]]] retur...
Keyword[protected] Keyword[void] identifier[execute] operator[SEP] identifier[Runnable] identifier[command] operator[SEP] Keyword[throws] identifier[RejectedExecutionException] { Keyword[if] operator[SEP] identifier[isDie] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] id...
public com.sun.star.frame.XDispatch queryDispatch( com.sun.star.util.URL aURL, String sTargetFrameName, int iSearchFlags ) { if ( aURL.Protocol.compareTo("org.cogroo.addon:") == 0 ) { ...
class class_name[name] begin[{] method[queryDispatch, return_type[type[com]], modifier[public], parameter[aURL, sTargetFrameName, iSearchFlags]] begin[{] if[binary_operation[call[aURL.Protocol.compareTo, parameter[literal["org.cogroo.addon:"]]], ==, literal[0]]] begin[{] ...
Keyword[public] identifier[com] operator[SEP] identifier[sun] operator[SEP] identifier[star] operator[SEP] identifier[frame] operator[SEP] identifier[XDispatch] identifier[queryDispatch] operator[SEP] identifier[com] operator[SEP] identifier[sun] operator[SEP] identifier[star] operator[SEP] identifier[util] operator[SE...
public Reply execute(Command cmd) throws ServerException, IOException, FTPReplyParseException, UnexpectedReplyCodeException { Reply reply = exchange(cmd); // check for positive reply if (!Reply.isPositiveCompletion(reply)) { th...
class class_name[name] begin[{] method[execute, return_type[type[Reply]], modifier[public], parameter[cmd]] begin[{] local_variable[type[Reply], reply] if[call[Reply.isPositiveCompletion, parameter[member[.reply]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[...
Keyword[public] identifier[Reply] identifier[execute] operator[SEP] identifier[Command] identifier[cmd] operator[SEP] Keyword[throws] identifier[ServerException] , identifier[IOException] , identifier[FTPReplyParseException] , identifier[UnexpectedReplyCodeException] { identifier[Reply] identifier[reply] oper...
public static <T extends ImageGray<T>> ImageBorder<T> singleValue(T image, double value) { ImageBorder border = singleValue(image.getClass(), value); border.setImage(image); return border; }
class class_name[name] begin[{] method[singleValue, return_type[type[ImageBorder]], modifier[public static], parameter[image, value]] begin[{] local_variable[type[ImageBorder], border] call[border.setImage, parameter[member[.image]]] return[member[.border]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageGray] operator[<] identifier[T] operator[>] operator[>] identifier[ImageBorder] operator[<] identifier[T] operator[>] identifier[singleValue] operator[SEP] identifier[T] identifier[image] , Keyword[double] identifier[value] oper...
@Override public void detect(PyramidFloat<T> ss) { spaceIndex = 0; foundPoints.clear(); // compute feature intensity in each level for (int i = 1; i < ss.getNumLayers()-1; i++) { // detect features in 2D space. Don't need to compute features at the tail ends of scale-space // if (i > 0 && i < ss.getNumL...
class class_name[name] begin[{] method[detect, return_type[void], modifier[public], parameter[ss]] begin[{] assign[member[.spaceIndex], literal[0]] call[foundPoints.clear, parameter[]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expressio...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[detect] operator[SEP] identifier[PyramidFloat] operator[<] identifier[T] operator[>] identifier[ss] operator[SEP] { identifier[spaceIndex] operator[=] Other[0] operator[SEP] identifier[foundPoints] operator[SEP] identifier[clear] operato...
public void setLinkColor(String color) throws HelloSignException { if (white_labeling_options == null) { white_labeling_options = new WhiteLabelingOptions(); } white_labeling_options.setLinkColor(color); }
class class_name[name] begin[{] method[setLinkColor, return_type[void], modifier[public], parameter[color]] begin[{] if[binary_operation[member[.white_labeling_options], ==, literal[null]]] begin[{] assign[member[.white_labeling_options], ClassCreator(arguments=[], body=...
Keyword[public] Keyword[void] identifier[setLinkColor] operator[SEP] identifier[String] identifier[color] operator[SEP] Keyword[throws] identifier[HelloSignException] { Keyword[if] operator[SEP] identifier[white_labeling_options] operator[==] Other[null] operator[SEP] { identifier[white_labeling_optio...
private boolean isValidNamedEntity(final Double score, final String text) { return !StringUtils.isBlank(text) || score != null; }
class class_name[name] begin[{] method[isValidNamedEntity, return_type[type[boolean]], modifier[private], parameter[score, text]] begin[{] return[binary_operation[call[StringUtils.isBlank, parameter[member[.text]]], ||, binary_operation[member[.score], !=, literal[null]]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[isValidNamedEntity] operator[SEP] Keyword[final] identifier[Double] identifier[score] , Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] operator[!] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[t...
private void correctErrors(byte[] codewordBytes, int numDataCodewords) throws ChecksumException { int numCodewords = codewordBytes.length; // First read into an array of ints int[] codewordsInts = new int[numCodewords]; for (int i = 0; i < numCodewords; i++) { codewordsInts[i] = codewordBytes[i] &...
class class_name[name] begin[{] method[correctErrors, return_type[void], modifier[private], parameter[codewordBytes, numDataCodewords]] begin[{] local_variable[type[int], numCodewords] local_variable[type[int], codewordsInts] ForStatement(body=BlockStatement(label=None, statements=[Stat...
Keyword[private] Keyword[void] identifier[correctErrors] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[codewordBytes] , Keyword[int] identifier[numDataCodewords] operator[SEP] Keyword[throws] identifier[ChecksumException] { Keyword[int] identifier[numCodewords] operator[=] identifier[codewo...
public static int readUntil (final StringBuilder out, final String in, final int start, final char... end) { int pos = start; while (pos < in.length ()) { final char ch = in.charAt (pos); if (ch == '\\' && pos + 1 < in.length ()) { pos = _escape (out, in.charAt (pos + 1), pos); ...
class class_name[name] begin[{] method[readUntil, return_type[type[int]], modifier[public static], parameter[out, in, start, end]] begin[{] local_variable[type[int], pos] while[binary_operation[member[.pos], <, call[in.length, parameter[]]]] begin[{] local_variable[type[char...
Keyword[public] Keyword[static] Keyword[int] identifier[readUntil] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[out] , Keyword[final] identifier[String] identifier[in] , Keyword[final] Keyword[int] identifier[start] , Keyword[final] Keyword[char] operator[...] identifier[end] operator[SEP] { ...
public void remove(String applicationName, Class<?> robotContext, boolean verbose) { logger.info("Remove application named [{}].", applicationName); removeApplicationPages(applicationName, robotContext, verbose); removeApplicationSteps(applicationName, robotContext, verbose); removeAppli...
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[applicationName, robotContext, verbose]] begin[{] call[logger.info, parameter[literal["Remove application named [{}]."], member[.applicationName]]] call[.removeApplicationPages, paramet...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[String] identifier[applicationName] , identifier[Class] operator[<] operator[?] operator[>] identifier[robotContext] , Keyword[boolean] identifier[verbose] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operator[SEP] l...
@Override public GetFaceDetectionResult getFaceDetection(GetFaceDetectionRequest request) { request = beforeClientExecution(request); return executeGetFaceDetection(request); }
class class_name[name] begin[{] method[getFaceDetection, return_type[type[GetFaceDetectionResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetFaceDetection, parameter[member[....
annotation[@] identifier[Override] Keyword[public] identifier[GetFaceDetectionResult] identifier[getFaceDetection] operator[SEP] identifier[GetFaceDetectionRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP...
public void getTraceSummaryLine(StringBuilder buff) { // Get the common fields for control messages super.getTraceSummaryLine(buff); buff.append("requestID="); buff.append(getRequestID()); }
class class_name[name] begin[{] method[getTraceSummaryLine, return_type[void], modifier[public], parameter[buff]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=buff, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTraceSummaryLine, postfix_ope...
Keyword[public] Keyword[void] identifier[getTraceSummaryLine] operator[SEP] identifier[StringBuilder] identifier[buff] operator[SEP] { Keyword[super] operator[SEP] identifier[getTraceSummaryLine] operator[SEP] identifier[buff] operator[SEP] operator[SEP] identifier[buff] operator[SEP] identifier[append] operator...
public static Object[] extractArray(final DeviceData deviceDataArgout) throws DevFailed { Object[] argout = null; switch (deviceDataArgout.getType()) { case TangoConst.Tango_DEV_SHORT: argout = new Object[] { CommandHelper.extract(deviceDataArgout) }; break; case TangoConst.Tango_DEV_USHORT: argout =...
class class_name[name] begin[{] method[extractArray, return_type[type[Object]], modifier[public static], parameter[deviceDataArgout]] begin[{] local_variable[type[Object], argout] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=Tango_DEV_SHORT, postfix_operators=[], pref...
Keyword[public] Keyword[static] identifier[Object] operator[SEP] operator[SEP] identifier[extractArray] operator[SEP] Keyword[final] identifier[DeviceData] identifier[deviceDataArgout] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[Object] operator[SEP] operator[SEP] identifier[argout] operator...
public void abortTempBlockMeta(TempBlockMeta tempBlockMeta) throws BlockDoesNotExistException { StorageDir dir = tempBlockMeta.getParentDir(); dir.removeTempBlockMeta(tempBlockMeta); }
class class_name[name] begin[{] method[abortTempBlockMeta, return_type[void], modifier[public], parameter[tempBlockMeta]] begin[{] local_variable[type[StorageDir], dir] call[dir.removeTempBlockMeta, parameter[member[.tempBlockMeta]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[abortTempBlockMeta] operator[SEP] identifier[TempBlockMeta] identifier[tempBlockMeta] operator[SEP] Keyword[throws] identifier[BlockDoesNotExistException] { identifier[StorageDir] identifier[dir] operator[=] identifier[tempBlockMeta] operator[SEP] identifier[getParentDir]...
public static UnitName newUnitName(final String name, final String plural) throws NameException { return newUnitName(name, plural, null); }
class class_name[name] begin[{] method[newUnitName, return_type[type[UnitName]], modifier[public static], parameter[name, plural]] begin[{] return[call[.newUnitName, parameter[member[.name], member[.plural], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[UnitName] identifier[newUnitName] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[String] identifier[plural] operator[SEP] Keyword[throws] identifier[NameException] { Keyword[return] identifier[newUnitName] operator[SEP] ide...
JCExpression memberReferenceSuffix(JCExpression t) { int pos1 = token.pos; accept(COLCOL); return memberReferenceSuffix(pos1, t); }
class class_name[name] begin[{] method[memberReferenceSuffix, return_type[type[JCExpression]], modifier[default], parameter[t]] begin[{] local_variable[type[int], pos1] call[.accept, parameter[member[.COLCOL]]] return[call[.memberReferenceSuffix, parameter[member[.pos1], member[...
identifier[JCExpression] identifier[memberReferenceSuffix] operator[SEP] identifier[JCExpression] identifier[t] operator[SEP] { Keyword[int] identifier[pos1] operator[=] identifier[token] operator[SEP] identifier[pos] operator[SEP] identifier[accept] operator[SEP] identifier[COLCOL] operator[SEP] operator[SEP] K...
private final float[] align(final int sResidue, final int dIndex) { int dResidue, r; float maxScore = -1000000; float rho1 = 0; int maxIdx = 0; float rho0 = 0; short[] dbAARow = model.dbAA[dIndex]; int numOfIterations = model.Length[dIndex] - ORonnModel.AA_ALPHABET; for (dResidue = 0; dResidue <= numOfIteration...
class class_name[name] begin[{] method[align, return_type[type[float]], modifier[final private], parameter[sResidue, dIndex]] begin[{] local_variable[type[int], dResidue] local_variable[type[float], maxScore] local_variable[type[float], rho1] local_variable[type[int], maxIdx] ...
Keyword[private] Keyword[final] Keyword[float] operator[SEP] operator[SEP] identifier[align] operator[SEP] Keyword[final] Keyword[int] identifier[sResidue] , Keyword[final] Keyword[int] identifier[dIndex] operator[SEP] { Keyword[int] identifier[dResidue] , identifier[r] operator[SEP] Keyword[float] identifier[...
private void parseTableSchemaFromXML(String tableName, StmtCommonTableScanShared tableScan, VoltXMLElement voltXMLElement) { assert("table".equals(voltXMLElement.name)); List<VoltXMLElement> columnSet = voltXMLElement.find...
class class_name[name] begin[{] method[parseTableSchemaFromXML, return_type[void], modifier[private], parameter[tableName, tableScan, voltXMLElement]] begin[{] AssertStatement(condition=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="table"), label=None, value=No...
Keyword[private] Keyword[void] identifier[parseTableSchemaFromXML] operator[SEP] identifier[String] identifier[tableName] , identifier[StmtCommonTableScanShared] identifier[tableScan] , identifier[VoltXMLElement] identifier[voltXMLElement] operator[SEP] { Keyword[assert] operator[SEP] literal[String] operator[...
@Override public RandomVariable addProduct(final RandomVariable factor1, final double factor2) { return apply(new DoubleBinaryOperator() { @Override public double applyAsDouble(double x, double y) { return x + y * factor2; } }, factor1); }
class class_name[name] begin[{] method[addProduct, return_type[type[RandomVariable]], modifier[public], parameter[factor1, factor2]] begin[{] return[call[.apply, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(exp...
annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[addProduct] operator[SEP] Keyword[final] identifier[RandomVariable] identifier[factor1] , Keyword[final] Keyword[double] identifier[factor2] operator[SEP] { Keyword[return] identifier[apply] operator[SEP] Keyword[new] ident...
protected void handleParsedMessage() { InterChannelCallback cb = null; // use the read callback for early reads or temp messages requested // LI4335 - handle early reads too if (this.bEarlyReads || this.bTempResponsesUsed) { cb = getAppReadCallback(); } else { ...
class class_name[name] begin[{] method[handleParsedMessage, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[InterChannelCallback], cb] if[binary_operation[THIS[member[None.bEarlyReads]], ||, THIS[member[None.bTempResponsesUsed]]]] begin[{] ...
Keyword[protected] Keyword[void] identifier[handleParsedMessage] operator[SEP] operator[SEP] { identifier[InterChannelCallback] identifier[cb] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[bEarlyReads] operator[||] Keyword[this] operator[SEP] identifier[bT...
public static <T extends ImageBase<T>> InterpolatePixelMB<T> createPixelMB(double min, double max, InterpolationType type, BorderType borderType, ImageType<T> imageType ) { switch (imageType.getFamily()) { case PLANAR: return (InterpolatePixelMB<T>) createPixelPL((InterpolatePixelS)createPixelS(min, max, ty...
class class_name[name] begin[{] method[createPixelMB, return_type[type[InterpolatePixelMB]], modifier[public static], parameter[min, max, type, borderType, imageType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['PLANAR'], statements=[ReturnStatement(expression=Cast(expression=MethodInvoc...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageBase] operator[<] identifier[T] operator[>] operator[>] identifier[InterpolatePixelMB] operator[<] identifier[T] operator[>] identifier[createPixelMB] operator[SEP] Keyword[double] identifier[min] , Keyword[double] identifier[ma...
public <T> List<T> getOptional(Class<T> type, Object locator) { try { return find(type, locator, false); } catch (Exception ex) { return new ArrayList<T>(); } }
class class_name[name] begin[{] method[getOptional, return_type[type[List]], modifier[public], parameter[type, locator]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getOptional] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[Object] identifier[locator] operator[SEP] { Keyword[try] { Keyword[r...
private void checkSelection(boolean suppressEvent) { Dateitem selectedItem = getSelectedItem(); if (selectedItem == null) { selectedItem = lastSelectedItem; setSelectedItem(selectedItem); } else if (selectedItem != customItem && lastSelectedItem != selectedItem) ...
class class_name[name] begin[{] method[checkSelection, return_type[void], modifier[private], parameter[suppressEvent]] begin[{] local_variable[type[Dateitem], selectedItem] if[binary_operation[member[.selectedItem], ==, literal[null]]] begin[{] assign[member[.sel...
Keyword[private] Keyword[void] identifier[checkSelection] operator[SEP] Keyword[boolean] identifier[suppressEvent] operator[SEP] { identifier[Dateitem] identifier[selectedItem] operator[=] identifier[getSelectedItem] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[selectedItem] ope...
public void marshall(PlainTextMessageType plainTextMessageType, ProtocolMarshaller protocolMarshaller) { if (plainTextMessageType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(plainTextMessageTyp...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[plainTextMessageType, protocolMarshaller]] begin[{] if[binary_operation[member[.plainTextMessageType], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PlainTextMessageType] identifier[plainTextMessageType] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[plainTextMessageType] operator[==] Other[null] operator[SEP] { ...
public Options putShort(String key, IModel<Short> value) { putOption(key, new ShortOption(value)); return this; }
class class_name[name] begin[{] method[putShort, return_type[type[Options]], modifier[public], parameter[key, value]] begin[{] call[.putOption, parameter[member[.key], ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], bo...
Keyword[public] identifier[Options] identifier[putShort] operator[SEP] identifier[String] identifier[key] , identifier[IModel] operator[<] identifier[Short] operator[>] identifier[value] operator[SEP] { identifier[putOption] operator[SEP] identifier[key] , Keyword[new] identifier[ShortOption] operator[SEP] ide...
public static HazardCurve createHazardCurveFromHazardRate(String name, double[] times, double[] givenHazardRates){ double[] givenSurvivalProbabilities = new double[givenHazardRates.length]; if(givenHazardRates[0]<0) { throw new IllegalArgumentException("First hazard rate is not positive"); } //initialize ...
class class_name[name] begin[{] method[createHazardCurveFromHazardRate, return_type[type[HazardCurve]], modifier[public static], parameter[name, times, givenHazardRates]] begin[{] local_variable[type[double], givenSurvivalProbabilities] if[binary_operation[member[.givenHazardRates], <, ...
Keyword[public] Keyword[static] identifier[HazardCurve] identifier[createHazardCurveFromHazardRate] operator[SEP] identifier[String] identifier[name] , Keyword[double] operator[SEP] operator[SEP] identifier[times] , Keyword[double] operator[SEP] operator[SEP] identifier[givenHazardRates] operator[SEP] { Keywor...
static private int readBytes(int c[], int len, InputStream is) throws IOException { byte buf[] = new byte[len]; if (is.read(buf, 0, len) < len) { return -1; } // fill the passed in int array for (int i = 0; i < len; i++) { c[i] = buf[i] ...
class class_name[name] begin[{] method[readBytes, return_type[type[int]], modifier[private static], parameter[c, len, is]] begin[{] local_variable[type[byte], buf] if[binary_operation[call[is.read, parameter[member[.buf], literal[0], member[.len]]], <, member[.len]]] begin[{] ...
Keyword[static] Keyword[private] Keyword[int] identifier[readBytes] operator[SEP] Keyword[int] identifier[c] operator[SEP] operator[SEP] , Keyword[int] identifier[len] , identifier[InputStream] identifier[is] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] identifier[buf] operator[SEP] op...
@SuppressWarnings("rawtypes") public <T extends ODataEntity> ListResult<T> unmarshalFeed( InputStream stream, Class<T> contentType) throws JAXBException, ServiceException { validateNotNull(stream, "stream"); validateNotNull(contentType, "contentType"); List<T> entrie...
class class_name[name] begin[{] method[unmarshalFeed, return_type[type[ListResult]], modifier[public], parameter[stream, contentType]] begin[{] call[.validateNotNull, parameter[member[.stream], literal["stream"]]] call[.validateNotNull, parameter[member[.contentType], literal["c...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[ODataEntity] operator[>] identifier[ListResult] operator[<] identifier[T] operator[>] identifier[unmarshalFeed] operator[SEP] identifier[InputStream] identifier[st...
private static int popCount(int unit) { unit = ((unit & 0xAAAAAAAA) >>> 1) + (unit & 0x55555555); unit = ((unit & 0xCCCCCCCC) >>> 2) + (unit & 0x33333333); unit = ((unit >>> 4) + unit) & 0x0F0F0F0F; unit += unit >>> 8; unit += unit >>> 16; return unit & 0xFF; }
class class_name[name] begin[{] method[popCount, return_type[type[int]], modifier[private static], parameter[unit]] begin[{] assign[member[.unit], binary_operation[binary_operation[binary_operation[member[.unit], &, literal[0xAAAAAAAA]], >>>, literal[1]], +, binary_operation[member[.unit], &, l...
Keyword[private] Keyword[static] Keyword[int] identifier[popCount] operator[SEP] Keyword[int] identifier[unit] operator[SEP] { identifier[unit] operator[=] operator[SEP] operator[SEP] identifier[unit] operator[&] literal[Integer] operator[SEP] operator[>] operator[>] operator[>] Other[1] operator[SEP] operator[+...
@Override public void open(Solver<Solution_> solver) { DefaultSolver<Solution_> defaultSolver = (DefaultSolver<Solution_>) solver; defaultSolver.getSolverScope().getScoreDirector().overwriteConstraintMatchEnabledPreference(true); defaultSolver.addPhaseLifecycleListener(listener); }
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[solver]] begin[{] local_variable[type[DefaultSolver], defaultSolver] call[defaultSolver.getSolverScope, parameter[]] call[defaultSolver.addPhaseLifecycleListener, parameter[member...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[open] operator[SEP] identifier[Solver] operator[<] identifier[Solution_] operator[>] identifier[solver] operator[SEP] { identifier[DefaultSolver] operator[<] identifier[Solution_] operator[>] identifier[defaultSolver] operator[=] operato...
public final static <T extends FastSerializable> T deserialize( final byte[] data, final Class<T> expectedType) throws IOException { final FastDeserializer in = new FastDeserializer(data); return in.readObject(expectedType); }
class class_name[name] begin[{] method[deserialize, return_type[type[T]], modifier[final public static], parameter[data, expectedType]] begin[{] local_variable[type[FastDeserializer], in] return[call[in.readObject, parameter[member[.expectedType]]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[FastSerializable] operator[>] identifier[T] identifier[deserialize] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] identifier[Class] operator[<] identifier[T] o...
public static void shutdown(Duration timeout, ExecutorService... pools) { // Prevent new tasks from being submitted. for (ExecutorService pool : pools) { pool.shutdown(); } TimeoutTimer timer = new TimeoutTimer(timeout); for (ExecutorService pool : pools) { ...
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[public static], parameter[timeout, pools]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=shutdown, postfix_operators=[], prefix_operators...
Keyword[public] Keyword[static] Keyword[void] identifier[shutdown] operator[SEP] identifier[Duration] identifier[timeout] , identifier[ExecutorService] operator[...] identifier[pools] operator[SEP] { Keyword[for] operator[SEP] identifier[ExecutorService] identifier[pool] operator[:] identifier[pools] operator[...
public static int load(InputStream fin, FileLoading loading) throws IOException { BufferedReader br = new BufferedReader( new InputStreamReader(new BufferedInputStream(fin), "UTF-8")); String line = null; int n = 0; while((line = br.readLine()) != null) { if(line == null || line.startsWith("#")) { ...
class class_name[name] begin[{] method[load, return_type[type[int]], modifier[public static], parameter[fin, loading]] begin[{] local_variable[type[BufferedReader], br] local_variable[type[String], line] local_variable[type[int], n] while[binary_operation[assign[member[....
Keyword[public] Keyword[static] Keyword[int] identifier[load] operator[SEP] identifier[InputStream] identifier[fin] , identifier[FileLoading] identifier[loading] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedReader] identifier[br] operator[=] Keyword[new] identifier[BufferedReader] ...
@Nonnull public FineUploaderBasic setSizeLimit (@Nonnegative final int nSizeLimit) { ValueEnforcer.isGE0 (nSizeLimit, "SizeLimit"); m_nValidationSizeLimit = nSizeLimit; return this; }
class class_name[name] begin[{] method[setSizeLimit, return_type[type[FineUploaderBasic]], modifier[public], parameter[nSizeLimit]] begin[{] call[ValueEnforcer.isGE0, parameter[member[.nSizeLimit], literal["SizeLimit"]]] assign[member[.m_nValidationSizeLimit], member[.nSizeLimit...
annotation[@] identifier[Nonnull] Keyword[public] identifier[FineUploaderBasic] identifier[setSizeLimit] operator[SEP] annotation[@] identifier[Nonnegative] Keyword[final] Keyword[int] identifier[nSizeLimit] operator[SEP] { identifier[ValueEnforcer] operator[SEP] identifier[isGE0] operator[SEP] identifier[nSizeL...
public static <T> Array2dJsonSerializer<T> newInstance( JsonSerializer<T> serializer ) { return new Array2dJsonSerializer<T>( serializer ); }
class class_name[name] begin[{] method[newInstance, return_type[type[Array2dJsonSerializer]], modifier[public static], parameter[serializer]] begin[{] return[ClassCreator(arguments=[MemberReference(member=serializer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, cons...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Array2dJsonSerializer] operator[<] identifier[T] operator[>] identifier[newInstance] operator[SEP] identifier[JsonSerializer] operator[<] identifier[T] operator[>] identifier[serializer] operator[SEP] { Keyword[return] Keyword[new] ...
protected ManageableRepository getWorkingRepository() throws RepositoryException, RepositoryConfigurationException { return repositoryName != null ? repositoryService.getRepository(repositoryName) : repositoryService .getCurrentRepository(); }
class class_name[name] begin[{] method[getWorkingRepository, return_type[type[ManageableRepository]], modifier[protected], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=repositoryName, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[protected] identifier[ManageableRepository] identifier[getWorkingRepository] operator[SEP] operator[SEP] Keyword[throws] identifier[RepositoryException] , identifier[RepositoryConfigurationException] { Keyword[return] identifier[repositoryName] operator[!=] Other[null] operator[?] identifier[repositoryS...
public int[] addWrapField(ReadablePartial instant, int fieldIndex, int[] values, int valueToAdd) { int current = values[fieldIndex]; int wrapped = FieldUtils.getWrappedValue (current, valueToAdd, getMinimumValue(instant), getMaximumValue(instant)); return set(instant, fieldIndex, val...
class class_name[name] begin[{] method[addWrapField, return_type[type[int]], modifier[public], parameter[instant, fieldIndex, values, valueToAdd]] begin[{] local_variable[type[int], current] local_variable[type[int], wrapped] return[call[.set, parameter[member[.instant], member[.fieldIn...
Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[addWrapField] operator[SEP] identifier[ReadablePartial] identifier[instant] , Keyword[int] identifier[fieldIndex] , Keyword[int] operator[SEP] operator[SEP] identifier[values] , Keyword[int] identifier[valueToAdd] operator[SEP] { Keyword[int]...
public JcBoolean booleanAtttribute(String name) { if (this.delegate != null) return this.delegate.booleanAtttribute(name); JcBoolean ret = checkField_getJcVal(name, JcBoolean.class); QueryRecorder.recordInvocationReplace(this, ret, "booleanAtttribute"); return ret; }
class class_name[name] begin[{] method[booleanAtttribute, return_type[type[JcBoolean]], modifier[public], parameter[name]] begin[{] if[binary_operation[THIS[member[None.delegate]], !=, literal[null]]] begin[{] return[THIS[member[None.delegate]call[None.booleanAtttribute, parameter[member[.name]...
Keyword[public] identifier[JcBoolean] identifier[booleanAtttribute] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[delegate] operator[!=] Other[null] operator[SEP] Keyword[return] Keyword[this] operator[SEP] identifier[delegate] ...
public void prepare(ResponseBuilder rb, ComponentFields mtasFields) throws IOException { Set<String> ids = MtasSolrResultUtil .getIdsFromParameters(rb.req.getParams(), PARAM_MTAS_DOCUMENT); if (!ids.isEmpty()) { int tmpCounter = 0; String[] fields = new String[ids.size()]; String...
class class_name[name] begin[{] method[prepare, return_type[void], modifier[public], parameter[rb, mtasFields]] begin[{] local_variable[type[Set], ids] if[call[ids.isEmpty, parameter[]]] begin[{] local_variable[type[int], tmpCounter] local_variable[type[String], ...
Keyword[public] Keyword[void] identifier[prepare] operator[SEP] identifier[ResponseBuilder] identifier[rb] , identifier[ComponentFields] identifier[mtasFields] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Set] operator[<] identifier[String] operator[>] identifier[ids] operator[=] identifie...
private void addHandler(final Animation animation, final Annotation annotation) throws CoreException { // Build the auto event handler for this annotation final AnnotationEventHandler<ActionEvent> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation); // Only on event type ...
class class_name[name] begin[{] method[addHandler, return_type[void], modifier[private], parameter[animation, annotation]] begin[{] local_variable[type[AnnotationEventHandler], aeh] call[animation.setOnFinished, parameter[member[.aeh]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[addHandler] operator[SEP] Keyword[final] identifier[Animation] identifier[animation] , Keyword[final] identifier[Annotation] identifier[annotation] operator[SEP] Keyword[throws] identifier[CoreException] { Keyword[final] identifier[AnnotationEventHandler] operator[<] id...
public static SessionIdentifier getInstance(String hostsAndPorts, String username, String password, String keyspace) { return getInstance(hostsAndPorts, username, password, null, keyspace); }
class class_name[name] begin[{] method[getInstance, return_type[type[SessionIdentifier]], modifier[public static], parameter[hostsAndPorts, username, password, keyspace]] begin[{] return[call[.getInstance, parameter[member[.hostsAndPorts], member[.username], member[.password], literal[null], member[.ke...
Keyword[public] Keyword[static] identifier[SessionIdentifier] identifier[getInstance] operator[SEP] identifier[String] identifier[hostsAndPorts] , identifier[String] identifier[username] , identifier[String] identifier[password] , identifier[String] identifier[keyspace] operator[SEP] { Keyword[return] identif...
public static MozuUrl getExtendedPropertiesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
class class_name[name] begin[{] method[getExtendedPropertiesUrl, return_type[type[MozuUrl]], modifier[public static], parameter[]] begin[{] local_variable[type[UrlFormatter], formatter] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getResourceUrl, postfix_operators=[], pr...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[getExtendedPropertiesUrl] operator[SEP] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier...
public Object[] resolve(final Invocation inv, final ParameterBindingResult parameterBindingResult) throws Exception { Object[] parameters = new Object[paramMetaDatas.length]; for (int i = 0; i < resolvers.length; i++) { if (resolvers[i] == null) { continue; ...
class class_name[name] begin[{] method[resolve, return_type[type[Object]], modifier[public], parameter[inv, parameterBindingResult]] begin[{] local_variable[type[Object], parameters] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberRe...
Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[resolve] operator[SEP] Keyword[final] identifier[Invocation] identifier[inv] , Keyword[final] identifier[ParameterBindingResult] identifier[parameterBindingResult] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Object] o...
protected void storeXaPool(XaPool pool, XMLStreamWriter writer) throws Exception { writer.writeStartElement(CommonXML.ELEMENT_XA_POOL); if (pool.getType() != null) writer.writeAttribute(CommonXML.ATTRIBUTE_TYPE, pool.getValue(CommonXML.ATTRIBUTE_TYPE, pool.getType...
class class_name[name] begin[{] method[storeXaPool, return_type[void], modifier[protected], parameter[pool, writer]] begin[{] call[writer.writeStartElement, parameter[member[CommonXML.ELEMENT_XA_POOL]]] if[binary_operation[call[pool.getType, parameter[]], !=, literal[null]]] beg...
Keyword[protected] Keyword[void] identifier[storeXaPool] operator[SEP] identifier[XaPool] identifier[pool] , identifier[XMLStreamWriter] identifier[writer] operator[SEP] Keyword[throws] identifier[Exception] { identifier[writer] operator[SEP] identifier[writeStartElement] operator[SEP] identifier[CommonXML] ope...
private void calculate() { if (niceScale) { this.niceRange = calcNiceNumber(maxValue - minValue, false); this.majorTickSpacing = calcNiceNumber(niceRange / (maxNoOfMajorTicks - 1), true); this.niceMinValue = Math.floor(minValue / majorTickSpacing) * majorTickSpacing; ...
class class_name[name] begin[{] method[calculate, return_type[void], modifier[private], parameter[]] begin[{] if[member[.niceScale]] begin[{] assign[THIS[member[None.niceRange]], call[.calcNiceNumber, parameter[binary_operation[member[.maxValue], -, member[.minValue]], l...
Keyword[private] Keyword[void] identifier[calculate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[niceScale] operator[SEP] { Keyword[this] operator[SEP] identifier[niceRange] operator[=] identifier[calcNiceNumber] operator[SEP] identifier[maxValue] operator[-] identifier[minValue...
public void populateGroupsLegendByTargetCounts(final List<Long> listOfTargetCountPerGroup) { loadingLabel.setVisible(false); for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(listOfTargetCountPerGroup.size()); i++) { final Component component = groupsLegend.getComponent(i); ...
class class_name[name] begin[{] method[populateGroupsLegendByTargetCounts, return_type[void], modifier[public], parameter[listOfTargetCountPerGroup]] begin[{] call[loadingLabel.setVisible, parameter[literal[false]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableD...
Keyword[public] Keyword[void] identifier[populateGroupsLegendByTargetCounts] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Long] operator[>] identifier[listOfTargetCountPerGroup] operator[SEP] { identifier[loadingLabel] operator[SEP] identifier[setVisible] operator[SEP] literal[boolean] op...
private ActiveScan getActiveScan(JSONObject params) throws ApiException { int id = getParam(params, PARAM_SCAN_ID, -1); GenericScanner2 activeScan = null; if (id == -1) { activeScan = controller.getLastScan(); } else { activeScan = controller.getScan(id); } if (activeScan == null) { throw new Ap...
class class_name[name] begin[{] method[getActiveScan, return_type[type[ActiveScan]], modifier[private], parameter[params]] begin[{] local_variable[type[int], id] local_variable[type[GenericScanner2], activeScan] if[binary_operation[member[.id], ==, literal[1]]] begin[{] ...
Keyword[private] identifier[ActiveScan] identifier[getActiveScan] operator[SEP] identifier[JSONObject] identifier[params] operator[SEP] Keyword[throws] identifier[ApiException] { Keyword[int] identifier[id] operator[=] identifier[getParam] operator[SEP] identifier[params] , identifier[PARAM_SCAN_ID] , operator...
private List<Namespace> createNamespaces(SimpleNamespaceContext namespaceContext) { if (namespaceContext == null) { return null; } List<Namespace> namespaces = new ArrayList<Namespace>(); String defaultNamespaceUri = namespaceContext.getNamespaceURI(XMLConstants.DEFAULT_NS_P...
class class_name[name] begin[{] method[createNamespaces, return_type[type[List]], modifier[private], parameter[namespaceContext]] begin[{] if[binary_operation[member[.namespaceContext], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[private] identifier[List] operator[<] identifier[Namespace] operator[>] identifier[createNamespaces] operator[SEP] identifier[SimpleNamespaceContext] identifier[namespaceContext] operator[SEP] { Keyword[if] operator[SEP] identifier[namespaceContext] operator[==] Other[null] operator[SEP] { Key...
public static int getCodePoint(char lead, char trail) { if (Character.isSurrogatePair(lead, trail)) { return Character.toCodePoint(lead, trail); } throw new IllegalArgumentException("Illegal surrogate characters"); }
class class_name[name] begin[{] method[getCodePoint, return_type[type[int]], modifier[public static], parameter[lead, trail]] begin[{] if[call[Character.isSurrogatePair, parameter[member[.lead], member[.trail]]]] begin[{] return[call[Character.toCodePoint, parameter[member[.lead], m...
Keyword[public] Keyword[static] Keyword[int] identifier[getCodePoint] operator[SEP] Keyword[char] identifier[lead] , Keyword[char] identifier[trail] operator[SEP] { Keyword[if] operator[SEP] identifier[Character] operator[SEP] identifier[isSurrogatePair] operator[SEP] identifier[lead] , identifier[trail] opera...