code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public OperationFuture<List<FirewallPolicy>> delete(FirewallPolicyFilter filter) { return delete( findLazy(filter) .map(metadata -> FirewallPolicy.refById( metadata.getId(), DataCenter.refById(metadata.getDataCenterId())) ) ...
class class_name[name] begin[{] method[delete, return_type[type[OperationFuture]], modifier[public], parameter[filter]] begin[{] return[call[.delete, parameter[call[.findLazy, parameter[member[.filter]]]]]] end[}] END[}]
Keyword[public] identifier[OperationFuture] operator[<] identifier[List] operator[<] identifier[FirewallPolicy] operator[>] operator[>] identifier[delete] operator[SEP] identifier[FirewallPolicyFilter] identifier[filter] operator[SEP] { Keyword[return] identifier[delete] operator[SEP] identifier[findLazy] operat...
public static HalLinkRelation of(LinkRelation relation) { Assert.notNull(relation, "LinkRelation must not be null!"); if (HalLinkRelation.class.isInstance(relation)) { return (HalLinkRelation) relation; } return of(relation.value()); }
class class_name[name] begin[{] method[of, return_type[type[HalLinkRelation]], modifier[public static], parameter[relation]] begin[{] call[Assert.notNull, parameter[member[.relation], literal["LinkRelation must not be null!"]]] if[ClassReference(postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] identifier[HalLinkRelation] identifier[of] operator[SEP] identifier[LinkRelation] identifier[relation] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[relation] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] i...
public void updateState(X509Certificate cert) throws CertificateException, IOException, CertPathValidatorException { if (cert == null) { return; } /* update subject DN */ subjectDN = cert.getSubjectX500Principal(); /* check for key needing to inherit alg pa...
class class_name[name] begin[{] method[updateState, return_type[void], modifier[public], parameter[cert]] begin[{] if[binary_operation[member[.cert], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] assign[member[.subjectDN], call[c...
Keyword[public] Keyword[void] identifier[updateState] operator[SEP] identifier[X509Certificate] identifier[cert] operator[SEP] Keyword[throws] identifier[CertificateException] , identifier[IOException] , identifier[CertPathValidatorException] { Keyword[if] operator[SEP] identifier[cert] operator[==] Other[null...
public final EObject entryRuleOptionValue() throws RecognitionException { EObject current = null; EObject iv_ruleOptionValue = null; try { // InternalSimpleAntlr.g:217:2: (iv_ruleOptionValue= ruleOptionValue EOF ) // InternalSimpleAntlr.g:218:2: iv_ruleOptionValue= rul...
class class_name[name] begin[{] method[entryRuleOptionValue, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleOptionValue] TryStatement(block=[BlockStatement(label=None, statements=[IfSt...
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleOptionValue] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleOptionValue] operator[=] Other[nul...
private boolean isNewSession(String xferId, String sessionId) { List<String> currentSessions = transactionSessions.get(xferId); if(currentSessions == null) { List<String> sessions = new ArrayList<String>(); sessions.add(sessionId); transactionSessions.put(xferId, sessions); return true; } else if (!c...
class class_name[name] begin[{] method[isNewSession, return_type[type[boolean]], modifier[private], parameter[xferId, sessionId]] begin[{] local_variable[type[List], currentSessions] if[binary_operation[member[.currentSessions], ==, literal[null]]] begin[{] local_variable[ty...
Keyword[private] Keyword[boolean] identifier[isNewSession] operator[SEP] identifier[String] identifier[xferId] , identifier[String] identifier[sessionId] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[currentSessions] operator[=] identifier[transactionSessions] operator[S...
public static float Spline(float x, int numKnots, int[] xknots, int[] yknots) { int span; int numSpans = numKnots - 3; float k0, k1, k2, k3; float c0, c1, c2, c3; if (numSpans < 1) throw new IllegalArgumentException("Too few knots in spline"); for (span = 0;...
class class_name[name] begin[{] method[Spline, return_type[type[float]], modifier[public static], parameter[x, numKnots, xknots, yknots]] begin[{] local_variable[type[int], span] local_variable[type[int], numSpans] local_variable[type[float], k0] local_variable[type[float], c0] ...
Keyword[public] Keyword[static] Keyword[float] identifier[Spline] operator[SEP] Keyword[float] identifier[x] , Keyword[int] identifier[numKnots] , Keyword[int] operator[SEP] operator[SEP] identifier[xknots] , Keyword[int] operator[SEP] operator[SEP] identifier[yknots] operator[SEP] { Keyword[int] identifier[s...
private ProjectField selectField(ProjectField[] fields, int index) { if (index < 1 || index > fields.length) { throw new IllegalArgumentException(index + " is not a valid field index"); } return (fields[index - 1]); }
class class_name[name] begin[{] method[selectField, return_type[type[ProjectField]], modifier[private], parameter[fields, index]] begin[{] if[binary_operation[binary_operation[member[.index], <, literal[1]], ||, binary_operation[member[.index], >, member[fields.length]]]] begin[{] T...
Keyword[private] identifier[ProjectField] identifier[selectField] operator[SEP] identifier[ProjectField] operator[SEP] operator[SEP] identifier[fields] , Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[<] Other[1] operator[||] identifier[index] operator[>] ide...
@Override protected void exportNamespaceData(final String prefix, final StringBuilder out, final int occ) { out.append(prefix); out.append("="); out.append(FMT.format(getValue(occ))); out.append("\n"); }
class class_name[name] begin[{] method[exportNamespaceData, return_type[void], modifier[protected], parameter[prefix, out, occ]] begin[{] call[out.append, parameter[member[.prefix]]] call[out.append, parameter[literal["="]]] call[out.append, parameter[call[FMT.fo...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[exportNamespaceData] operator[SEP] Keyword[final] identifier[String] identifier[prefix] , Keyword[final] identifier[StringBuilder] identifier[out] , Keyword[final] Keyword[int] identifier[occ] operator[SEP] { identifier[out] operato...
public static Object invokeMethod(Object target, String method, Object... args) { Class<?>[] types = new Class[args.length]; for(int index = args.length - 1; index >= 0; index--) { types[index] = args[index].getClass(); } try { return target.getClass().getMethod(method, types).invoke(target, args); } ca...
class class_name[name] begin[{] method[invokeMethod, return_type[type[Object]], modifier[public static], parameter[target, method, args]] begin[{] local_variable[type[Class], types] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Me...
Keyword[public] Keyword[static] identifier[Object] identifier[invokeMethod] operator[SEP] identifier[Object] identifier[target] , identifier[String] identifier[method] , identifier[Object] operator[...] identifier[args] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operato...
public static void fill(final Object[] array, final Object value) { // final int n = array.length; // if (n > 0) { // array[0] = value; // } // for (int i = 1; i < n; i += i) { // System.arraycopy(array, 0, array, i, ((n - ...
class class_name[name] begin[{] method[fill, return_type[void], modifier[public static], parameter[array, value]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=array, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[static] Keyword[void] identifier[fill] operator[SEP] Keyword[final] identifier[Object] operator[SEP] operator[SEP] identifier[array] , Keyword[final] identifier[Object] identifier[value] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[S...
private EJBSecurityMetaData getEjbSecurityMetaData(final Endpoint endpoint) { final String ejbName = endpoint.getShortName(); final Deployment dep = endpoint.getService().getDeployment(); final EJBArchiveMetaData ejbArchiveMD = WSHelper.getOptionalAttachment(dep, EJBArchiveMetaData.class); ...
class class_name[name] begin[{] method[getEjbSecurityMetaData, return_type[type[EJBSecurityMetaData]], modifier[private], parameter[endpoint]] begin[{] local_variable[type[String], ejbName] local_variable[type[Deployment], dep] local_variable[type[EJBArchiveMetaData], ejbArchiveMD] ...
Keyword[private] identifier[EJBSecurityMetaData] identifier[getEjbSecurityMetaData] operator[SEP] Keyword[final] identifier[Endpoint] identifier[endpoint] operator[SEP] { Keyword[final] identifier[String] identifier[ejbName] operator[=] identifier[endpoint] operator[SEP] identifier[getShortName] operator[SEP] op...
public static byte[] convertObjectToByteArray(Object o) throws IOException{ ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(bos); oos.writeObject(o); return bos.toByteArray(); }
class class_name[name] begin[{] method[convertObjectToByteArray, return_type[type[byte]], modifier[public static], parameter[o]] begin[{] local_variable[type[ByteArrayOutputStream], bos] local_variable[type[ObjectOutputStream], oos] call[oos.writeObject, parameter[member[.o]]] ...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[convertObjectToByteArray] operator[SEP] identifier[Object] identifier[o] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteArrayOutputStream] identifier[bos] operator[=] Keyword[new] identifier[ByteArrayOutp...
private Document parse(final String data) { if (docBuilder == null || data == null) { return null; } Document document = null; try { // we change the system ID to a valid URI so that Crimson won't // complain. Indeed, "log4j.dtd" alone is not a valid URI which // causes Crimson...
class class_name[name] begin[{] method[parse, return_type[type[Document]], modifier[private], parameter[data]] begin[{] if[binary_operation[binary_operation[member[.docBuilder], ==, literal[null]], ||, binary_operation[member[.data], ==, literal[null]]]] begin[{] return[literal[null...
Keyword[private] identifier[Document] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[data] operator[SEP] { Keyword[if] operator[SEP] identifier[docBuilder] operator[==] Other[null] operator[||] identifier[data] operator[==] Other[null] operator[SEP] { Keyword[return] Othe...
protected void queueFrame(final S channel) throws IOException { assert !newFrames.contains(channel); if (isWritesBroken() || !this.channel.getSinkChannel().isOpen() || channel.isBroken() || !channel.isOpen()) { IoUtils.safeClose(channel); throw UndertowMessages.MESSAGES.channelIs...
class class_name[name] begin[{] method[queueFrame, return_type[void], modifier[protected], parameter[channel]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[MemberReference(member=channel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_o...
Keyword[protected] Keyword[void] identifier[queueFrame] operator[SEP] Keyword[final] identifier[S] identifier[channel] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[assert] operator[!] identifier[newFrames] operator[SEP] identifier[contains] operator[SEP] identifier[channel] operator[SEP] opera...
@SuppressWarnings("unchecked") public final T duplicate() { if (backing instanceof ByteBuffer) { return (T) ((ByteBuffer) backing).duplicate(); } if (backing instanceof CharBuffer) { return (T) ((CharBuffer) backing).duplicate(); } throw new IllegalArg...
class class_name[name] begin[{] method[duplicate, return_type[type[T]], modifier[final public], parameter[]] begin[{] if[binary_operation[member[.backing], instanceof, type[ByteBuffer]]] begin[{] return[Cast(expression=Cast(expression=MemberReference(member=backing, postfix_operator...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] identifier[T] identifier[duplicate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[backing] Keyword[instanceof] identifier[ByteBuffer] operator[SEP] { Keyword[retur...
public static base_response unset(nitro_service client, snmpmanager resource, String[] args) throws Exception{ snmpmanager unsetresource = new snmpmanager(); unsetresource.ipaddress = resource.ipaddress; unsetresource.netmask = resource.netmask; return unsetresource.unset_resource(client,args); }
class class_name[name] begin[{] method[unset, return_type[type[base_response]], modifier[public static], parameter[client, resource, args]] begin[{] local_variable[type[snmpmanager], unsetresource] assign[member[unsetresource.ipaddress], member[resource.ipaddress]] assig...
Keyword[public] Keyword[static] identifier[base_response] identifier[unset] operator[SEP] identifier[nitro_service] identifier[client] , identifier[snmpmanager] identifier[resource] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifie...
public void solve() { while (true) { try { // Is our proof of work valid yet? if (checkProofOfWork(false)) return; // No, so increment the nonce and try again. setNonce(getNonce() + 1); } catch (Verificat...
class class_name[name] begin[{] method[solve, return_type[void], modifier[public], parameter[]] begin[{] while[literal[true]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[...
Keyword[public] Keyword[void] identifier[solve] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[checkProofOfWork] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[return] op...
public KamInfo getKamInfoById(final int id) throws SQLException { KamInfo kamInfo = null; ResultSet rset = null; try { PreparedStatement ps = getPreparedStatement(SELECT_KAM_BY_ID_SQL); ps.setInt(1, id); rset = ps.executeQuery(); if (rset.next()...
class class_name[name] begin[{] method[getKamInfoById, return_type[type[KamInfo]], modifier[public], parameter[id]] begin[{] local_variable[type[KamInfo], kamInfo] local_variable[type[ResultSet], rset] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDec...
Keyword[public] identifier[KamInfo] identifier[getKamInfoById] operator[SEP] Keyword[final] Keyword[int] identifier[id] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[KamInfo] identifier[kamInfo] operator[=] Other[null] operator[SEP] identifier[ResultSet] identifier[rset] operator[=] Other[n...
public static Bounds getSymmetricBounds(int dim, double l, double u) { double [] L = new double[dim]; double [] U = new double[dim]; for(int i=0; i<dim; i++) { L[i] = l; U[i] = u; } return new Bounds(L, U); }
class class_name[name] begin[{] method[getSymmetricBounds, return_type[type[Bounds]], modifier[public static], parameter[dim, l, u]] begin[{] local_variable[type[double], L] local_variable[type[double], U] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expr...
Keyword[public] Keyword[static] identifier[Bounds] identifier[getSymmetricBounds] operator[SEP] Keyword[int] identifier[dim] , Keyword[double] identifier[l] , Keyword[double] identifier[u] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[L] operator[=] Keyword[new] Keyword[double] operato...
public static int difference(String s1, String s2) { /** @todo: check if this is the standard algorithm */ if ((s1 == null) || (s2 == null)) { return 0; } s1 = soundex(s1); s2 = soundex(s2); int e = 0; for (int i = 0; i < 4; i++) { if (...
class class_name[name] begin[{] method[difference, return_type[type[int]], modifier[public static], parameter[s1, s2]] begin[{] if[binary_operation[binary_operation[member[.s1], ==, literal[null]], ||, binary_operation[member[.s2], ==, literal[null]]]] begin[{] return[literal[0]] ...
Keyword[public] Keyword[static] Keyword[int] identifier[difference] operator[SEP] identifier[String] identifier[s1] , identifier[String] identifier[s2] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[s1] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[s2] operator...
@Nullable public static String getAsStringW3C (@Nullable final OffsetDateTime aDateTime) { if (aDateTime == null) return null; return getAsStringW3C (aDateTime.toZonedDateTime ()); }
class class_name[name] begin[{] method[getAsStringW3C, return_type[type[String]], modifier[public static], parameter[aDateTime]] begin[{] if[binary_operation[member[.aDateTime], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[.get...
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[String] identifier[getAsStringW3C] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[OffsetDateTime] identifier[aDateTime] operator[SEP] { Keyword[if] operator[SEP] identifier[aDateTime] operator[==] Other[null...
public static int multiply(long num1, double num2) { double num1D = ((Long) num1).doubleValue(); return multiply(num1D, num2); }
class class_name[name] begin[{] method[multiply, return_type[type[int]], modifier[public static], parameter[num1, num2]] begin[{] local_variable[type[double], num1D] return[call[.multiply, parameter[member[.num1D], member[.num2]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[multiply] operator[SEP] Keyword[long] identifier[num1] , Keyword[double] identifier[num2] operator[SEP] { Keyword[double] identifier[num1D] operator[=] operator[SEP] operator[SEP] identifier[Long] operator[SEP] identifier[num1] operator[SEP] operator[SEP] ...
public String toPattern() { // Return the original, applied pattern string, or else "". // Note: This does not take into account // - changes from setFormat() and similar methods, or // - normalization of apostrophes and arguments, for example, // whether some date/time/number ...
class class_name[name] begin[{] method[toPattern, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.customFormatArgStarts], !=, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(po...
Keyword[public] identifier[String] identifier[toPattern] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[customFormatArgStarts] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] literal[St...
@Override public final boolean isValid(final Object pvalue, final ConstraintValidatorContext pcontext) { final String valueAsString = Objects.toString(pvalue, null); if (StringUtils.isEmpty(valueAsString)) { // empty field is ok return true; } if (valueAsString.length() < IBAN_LENGTH_MIN |...
class class_name[name] begin[{] method[isValid, return_type[type[boolean]], modifier[final public], parameter[pvalue, pcontext]] begin[{] local_variable[type[String], valueAsString] if[call[StringUtils.isEmpty, parameter[member[.valueAsString]]]] begin[{] return[literal[true...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[boolean] identifier[isValid] operator[SEP] Keyword[final] identifier[Object] identifier[pvalue] , Keyword[final] identifier[ConstraintValidatorContext] identifier[pcontext] operator[SEP] { Keyword[final] identifier[String] identifier[valu...
public void paintIcon (Component c, Graphics g, int x, int y) { Graphics2D g2 = (Graphics2D) g; // turn on anti-aliasing Object oldAlias = g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_A...
class class_name[name] begin[{] method[paintIcon, return_type[void], modifier[public], parameter[c, g, x, y]] begin[{] local_variable[type[Graphics2D], g2] local_variable[type[Object], oldAlias] call[g2.setRenderingHint, parameter[member[RenderingHints.KEY_ANTIALIASING], member[...
Keyword[public] Keyword[void] identifier[paintIcon] operator[SEP] identifier[Component] identifier[c] , identifier[Graphics] identifier[g] , Keyword[int] identifier[x] , Keyword[int] identifier[y] operator[SEP] { identifier[Graphics2D] identifier[g2] operator[=] operator[SEP] identifier[Graphics2D] operator[S...
public final <T extends DSet.Entry> DSet<T> getSet (String setName) { @SuppressWarnings("unchecked") DSet<T> casted = (DSet<T>)getAccessor(setName).get(this); return casted; }
class class_name[name] begin[{] method[getSet, return_type[type[DSet]], modifier[final public], parameter[setName]] begin[{] local_variable[type[DSet], casted] return[member[.casted]] end[}] END[}]
Keyword[public] Keyword[final] operator[<] identifier[T] Keyword[extends] identifier[DSet] operator[SEP] identifier[Entry] operator[>] identifier[DSet] operator[<] identifier[T] operator[>] identifier[getSet] operator[SEP] identifier[String] identifier[setName] operator[SEP] { annotation[@] identifier[SuppressWa...
public Response recv_async(final byte[] trans_id, final boolean consume) throws InvalidInputException, MessageDecodingException, TerminateException { return recv_async(this.timeout_sync, trans_id, consume); }
class class_name[name] begin[{] method[recv_async, return_type[type[Response]], modifier[public], parameter[trans_id, consume]] begin[{] return[call[.recv_async, parameter[THIS[member[None.timeout_sync]], member[.trans_id], member[.consume]]]] end[}] END[}]
Keyword[public] identifier[Response] identifier[recv_async] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[trans_id] , Keyword[final] Keyword[boolean] identifier[consume] operator[SEP] Keyword[throws] identifier[InvalidInputException] , identifier[MessageDecodingException] , identi...
protected final ProcessorDef[] getDefaultProviders(final ProcessorDef baseDef) { ProcessorDef extendsDef = getExtends(); final Vector chain = new Vector(); while (extendsDef != null && !chain.contains(extendsDef)) { chain.addElement(extendsDef); extendsDef = extendsDef.getExtends(); } if...
class class_name[name] begin[{] method[getDefaultProviders, return_type[type[ProcessorDef]], modifier[final protected], parameter[baseDef]] begin[{] local_variable[type[ProcessorDef], extendsDef] local_variable[type[Vector], chain] while[binary_operation[binary_operation[member[...
Keyword[protected] Keyword[final] identifier[ProcessorDef] operator[SEP] operator[SEP] identifier[getDefaultProviders] operator[SEP] Keyword[final] identifier[ProcessorDef] identifier[baseDef] operator[SEP] { identifier[ProcessorDef] identifier[extendsDef] operator[=] identifier[getExtends] operator[SEP] operato...
private void handleMissingFlexController() { // controller not found - this request was not initialized properly throw new CmsRuntimeException( org.opencms.jsp.Messages.get().container( org.opencms.jsp.Messages.ERR_MISSING_CMS_CONTROLLER_1, CmsMacroFormatterR...
class class_name[name] begin[{] method[handleMissingFlexController, return_type[void], modifier[private], parameter[]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=org.opencms.jsp.Messages, sel...
Keyword[private] Keyword[void] identifier[handleMissingFlexController] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsRuntimeException] operator[SEP] identifier[org] operator[SEP] identifier[opencms] operator[SEP] identifier[jsp] operator[SEP] identifier[Messages] operator[SEP] identifie...
@Override public Object invokeMethod(String methodName, Object args) { // detect namespace declared on the added node like xmlns:foo="http:/foo" Map attributes = findAttributes(args); for (Iterator<Map.Entry> iter = attributes.entrySet().iterator(); iter.hasNext();) { Map.Entry entry = iter....
class class_name[name] begin[{] method[invokeMethod, return_type[type[Object]], modifier[public], parameter[methodName, args]] begin[{] local_variable[type[Map], attributes] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDe...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[invokeMethod] operator[SEP] identifier[String] identifier[methodName] , identifier[Object] identifier[args] operator[SEP] { identifier[Map] identifier[attributes] operator[=] identifier[findAttributes] operator[SEP] identifier[args...
public java.util.List<Listener> getListeners() { if (listeners == null) { listeners = new com.amazonaws.internal.SdkInternalList<Listener>(); } return listeners; }
class class_name[name] begin[{] method[getListeners, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.listeners], ==, literal[null]]] begin[{] assign[member[.listeners], ClassCreator(arguments=[], body=None, constructor_type_ar...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[Listener] operator[>] identifier[getListeners] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[listeners] operator[==] Other[null] operator[SEP] { identifier[listene...
public static void delete(final BandwidthClient client, final String domainId, final String endpointId, final String token) throws AppPlatformException, ParseException, IOException { assert(client != null && domainId != null && endpointId != null && endpointId != null); deleteToken(client, domainId, end...
class class_name[name] begin[{] method[delete, return_type[void], modifier[public static], parameter[client, domainId, endpointId, token]] begin[{] AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=client...
Keyword[public] Keyword[static] Keyword[void] identifier[delete] operator[SEP] Keyword[final] identifier[BandwidthClient] identifier[client] , Keyword[final] identifier[String] identifier[domainId] , Keyword[final] identifier[String] identifier[endpointId] , Keyword[final] identifier[String] identifier[token] operat...
@Override public List<CommerceShippingMethod> getCommerceShippingMethods(int start, int end) { return commerceShippingMethodPersistence.findAll(start, end); }
class class_name[name] begin[{] method[getCommerceShippingMethods, return_type[type[List]], modifier[public], parameter[start, end]] begin[{] return[call[commerceShippingMethodPersistence.findAll, parameter[member[.start], member[.end]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceShippingMethod] operator[>] identifier[getCommerceShippingMethods] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] identifier[commerceShippingMethodPersi...
public static Validation<Integer> range(int min, int max) { return greaterThan(min).and(lowerThan(max)); }
class class_name[name] begin[{] method[range, return_type[type[Validation]], modifier[public static], parameter[min, max]] begin[{] return[call[.greaterThan, parameter[member[.min]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Validation] operator[<] identifier[Integer] operator[>] identifier[range] operator[SEP] Keyword[int] identifier[min] , Keyword[int] identifier[max] operator[SEP] { Keyword[return] identifier[greaterThan] operator[SEP] identifier[min] operator[SEP] operator[SEP] identif...
public void slrem(final byte[] keyspace, final byte[] uid, final byte[] serviceCode) { sendCommand(Command.S3LREM, keyspace, uid, serviceCode); }
class class_name[name] begin[{] method[slrem, return_type[void], modifier[public], parameter[keyspace, uid, serviceCode]] begin[{] call[.sendCommand, parameter[member[Command.S3LREM], member[.keyspace], member[.uid], member[.serviceCode]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[slrem] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[keyspace] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[uid] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[serviceCode] operator[SEP] { ...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case BpsimPackage.DISTRIBUTION_PARAMETER__CURRENCY_UNIT: return getCurrencyUnit(); case BpsimPackage.DISTRIBUTION_PARAMETER__TIME_UNIT: return getTimeUnit(); } return super.eGet(featureID, resolve,...
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=DISTRIBUTION_PARAMETER__CURRENCY_UNIT, postfix_operators=[], prefix_operators=[], qualifier...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { String[] staticResourceMappingPath = {"classpath:/static/"}; registry.addResourceHandler("/**").addResourceLocations( staticResourceMappingPath); }
class class_name[name] begin[{] method[addResourceHandlers, return_type[void], modifier[public], parameter[registry]] begin[{] local_variable[type[String], staticResourceMappingPath] call[registry.addResourceHandler, parameter[literal["/**"]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addResourceHandlers] operator[SEP] identifier[ResourceHandlerRegistry] identifier[registry] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[staticResourceMappingPath] operator[=] { literal[String] ...
short pseudocolor() { short co = newcolor(); ColorDesc cd = colorDescs.get(co); cd.setNChars(1); cd.markPseudo(); return co; }
class class_name[name] begin[{] method[pseudocolor, return_type[type[short]], modifier[default], parameter[]] begin[{] local_variable[type[short], co] local_variable[type[ColorDesc], cd] call[cd.setNChars, parameter[literal[1]]] call[cd.markPseudo, parameter[]] ...
Keyword[short] identifier[pseudocolor] operator[SEP] operator[SEP] { Keyword[short] identifier[co] operator[=] identifier[newcolor] operator[SEP] operator[SEP] operator[SEP] identifier[ColorDesc] identifier[cd] operator[=] identifier[colorDescs] operator[SEP] identifier[get] operator[SEP] identifier[co] operator...
public static Path fromUrl(URL url) { try { switch (url.getProtocol()) { case "file": return Paths.get(url.toURI()); case "jar": String[] parts = url.getPath().split("!", 0); Path jarFile = Paths.get(new URI(parts[0]).toURL().getFile()); FileSystem fs = ...
class class_name[name] begin[{] method[fromUrl, return_type[type[Path]], modifier[public static], parameter[url]] begin[{] TryStatement(block=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="file")], statements=[Re...
Keyword[public] Keyword[static] identifier[Path] identifier[fromUrl] operator[SEP] identifier[URL] identifier[url] operator[SEP] { Keyword[try] { Keyword[switch] operator[SEP] identifier[url] operator[SEP] identifier[getProtocol] operator[SEP] operator[SEP] operator[SEP] { Keyword[case]...
public static Field[] getAllFields(Class<?> c) { List<Field> listOfFields = new ArrayList<Field>(); getAllFields(c, listOfFields); Field[] arrayOffields = new Field[listOfFields.size()]; listOfFields.toArray(arrayOffields); return arrayOffields; }
class class_name[name] begin[{] method[getAllFields, return_type[type[Field]], modifier[public static], parameter[c]] begin[{] local_variable[type[List], listOfFields] call[.getAllFields, parameter[member[.c], member[.listOfFields]]] local_variable[type[Field], arrayOffields] ...
Keyword[public] Keyword[static] identifier[Field] operator[SEP] operator[SEP] identifier[getAllFields] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[c] operator[SEP] { identifier[List] operator[<] identifier[Field] operator[>] identifier[listOfFields] operator[=] Keyword[new] ide...
public static <T extends LinkedIOSubchannel> Optional<T> downstreamChannel( Manager hub, IOSubchannel upstreamChannel, Class<T> clazz) { return upstreamChannel.associated( new KeyWrapper(hub), clazz); }
class class_name[name] begin[{] method[downstreamChannel, return_type[type[Optional]], modifier[public static], parameter[hub, upstreamChannel, clazz]] begin[{] return[call[upstreamChannel.associated, parameter[ClassCreator(arguments=[MemberReference(member=hub, postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[LinkedIOSubchannel] operator[>] identifier[Optional] operator[<] identifier[T] operator[>] identifier[downstreamChannel] operator[SEP] identifier[Manager] identifier[hub] , identifier[IOSubchannel] identifier[upstreamChannel] , iden...
public static mps_ssl_certkey add(nitro_service client, mps_ssl_certkey resource) throws Exception { resource.validate("add"); return ((mps_ssl_certkey[]) resource.perform_operation(client, "add"))[0]; }
class class_name[name] begin[{] method[add, return_type[type[mps_ssl_certkey]], modifier[public static], parameter[client, resource]] begin[{] call[resource.validate, parameter[literal["add"]]] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=client, postfix_ope...
Keyword[public] Keyword[static] identifier[mps_ssl_certkey] identifier[add] operator[SEP] identifier[nitro_service] identifier[client] , identifier[mps_ssl_certkey] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[resource] operator[SEP] identifier[validate] operator[SEP] li...
public Promise<String> getSalutation() { final Deferred<String> d = q.defer(); Timer timer = new Timer() { @Override public void run() { d.progress(new TimerProgress("Loaded salutation", this)); d.resolve("Hello"); } ...
class class_name[name] begin[{] method[getSalutation, return_type[type[Promise]], modifier[public], parameter[]] begin[{] local_variable[type[Deferred], d] local_variable[type[Timer], timer] call[d.progress, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] identifier[Promise] operator[<] identifier[String] operator[>] identifier[getSalutation] operator[SEP] operator[SEP] { Keyword[final] identifier[Deferred] operator[<] identifier[String] operator[>] identifier[d] operator[=] identifier[q] operator[SEP] identifier[defer] operator[SEP] operator[SEP]...
@Override public void writeModel(ModelNode newModel) { synchronized (model) { if (newModel.hasDefined(WILDCARD.getName())) { setWildcard(newModel.get(WILDCARD.getName()).asBoolean()); } setNames(newModel.get(NAMES.getName())); } }
class class_name[name] begin[{] method[writeModel, return_type[void], modifier[public], parameter[newModel]] begin[{] SYNCHRONIZED[member[.model]] BEGIN[{] if[call[newModel.hasDefined, parameter[call[WILDCARD.getName, parameter[]]]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeModel] operator[SEP] identifier[ModelNode] identifier[newModel] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[model] operator[SEP] { Keyword[if] operator[SEP] identifier[newModel] operator[SEP] identifier...
public void process( T image1 , T image2 ) { // declare image data structures if( pyr1 == null || pyr1.getInputWidth() != image1.width || pyr1.getInputHeight() != image1.height ) { pyr1 = UtilDenseOpticalFlow.standardPyramid(image1.width, image1.height, scale, sigma, 5, maxLayers, GrayF32.class); pyr2 = Util...
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[image1, image2]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.pyr1], ==, literal[null]], ||, binary_operation[call[pyr1.getInputWidth, parameter[]], !=, member[image1.width]]...
Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[T] identifier[image1] , identifier[T] identifier[image2] operator[SEP] { Keyword[if] operator[SEP] identifier[pyr1] operator[==] Other[null] operator[||] identifier[pyr1] operator[SEP] identifier[getInputWidth] operator[SEP] operator[SEP...
@Override public CreateAddressResult createAddress(CreateAddressRequest request) { request = beforeClientExecution(request); return executeCreateAddress(request); }
class class_name[name] begin[{] method[createAddress, return_type[type[CreateAddressResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateAddress, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[CreateAddressResult] identifier[createAddress] operator[SEP] identifier[CreateAddressRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
@NonNull public ChangeText setChangeBehavior(int changeBehavior) { if (changeBehavior >= CHANGE_BEHAVIOR_KEEP && changeBehavior <= CHANGE_BEHAVIOR_OUT_IN) { mChangeBehavior = changeBehavior; } return this; }
class class_name[name] begin[{] method[setChangeBehavior, return_type[type[ChangeText]], modifier[public], parameter[changeBehavior]] begin[{] if[binary_operation[binary_operation[member[.changeBehavior], >=, member[.CHANGE_BEHAVIOR_KEEP]], &&, binary_operation[member[.changeBehavior], <=, memb...
annotation[@] identifier[NonNull] Keyword[public] identifier[ChangeText] identifier[setChangeBehavior] operator[SEP] Keyword[int] identifier[changeBehavior] operator[SEP] { Keyword[if] operator[SEP] identifier[changeBehavior] operator[>=] identifier[CHANGE_BEHAVIOR_KEEP] operator[&&] identifier[changeBehavior] o...
@Override public LightweightTypeReference getReturnType(XExpression expression, boolean onlyExplicitReturns) { LightweightTypeReference result = doGetReturnType(expression, onlyExplicitReturns); return toOwnedReference(result); }
class class_name[name] begin[{] method[getReturnType, return_type[type[LightweightTypeReference]], modifier[public], parameter[expression, onlyExplicitReturns]] begin[{] local_variable[type[LightweightTypeReference], result] return[call[.toOwnedReference, parameter[member[.result]]]] end[}]...
annotation[@] identifier[Override] Keyword[public] identifier[LightweightTypeReference] identifier[getReturnType] operator[SEP] identifier[XExpression] identifier[expression] , Keyword[boolean] identifier[onlyExplicitReturns] operator[SEP] { identifier[LightweightTypeReference] identifier[result] operator[=] id...
public static <T1, T2, T3> TriPredicate<T1, T2, T3> spy(TriPredicate<T1, T2, T3> predicate, Box<Boolean> result, Box<T1> param1, Box<T2> param2, Box<T3> param3) { return new TernaryCapturingPredicate<T1, T2, T3>(predicate, result, param1, param2, param3); }
class class_name[name] begin[{] method[spy, return_type[type[TriPredicate]], modifier[public static], parameter[predicate, result, param1, param2, param3]] begin[{] return[ClassCreator(arguments=[MemberReference(member=predicate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem...
Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[T3] operator[>] identifier[TriPredicate] operator[<] identifier[T1] , identifier[T2] , identifier[T3] operator[>] identifier[spy] operator[SEP] identifier[TriPredicate] operator[<] identifier[T1] , identifier[T2] , identifier...
public double calculateBondPolarizability(IAtomContainer atomContainer, IBond bond) { double polarizabilitiy = 0; IAtomContainer acH = atomContainer.getBuilder().newInstance(IAtomContainer.class, atomContainer); addExplicitHydrogens(acH); if (bond.getAtomCount() == 2) { polar...
class class_name[name] begin[{] method[calculateBondPolarizability, return_type[type[double]], modifier[public], parameter[atomContainer, bond]] begin[{] local_variable[type[double], polarizabilitiy] local_variable[type[IAtomContainer], acH] call[.addExplicitHydrogens, parameter...
Keyword[public] Keyword[double] identifier[calculateBondPolarizability] operator[SEP] identifier[IAtomContainer] identifier[atomContainer] , identifier[IBond] identifier[bond] operator[SEP] { Keyword[double] identifier[polarizabilitiy] operator[=] Other[0] operator[SEP] identifier[IAtomContainer] identifier[acH...
public static ArrayList getDocumentFonts(PdfReader reader, int page) { IntHashtable hits = new IntHashtable(); ArrayList fonts = new ArrayList(); recourseFonts(reader.getPageN(page), hits, fonts, 1); return fonts; }
class class_name[name] begin[{] method[getDocumentFonts, return_type[type[ArrayList]], modifier[public static], parameter[reader, page]] begin[{] local_variable[type[IntHashtable], hits] local_variable[type[ArrayList], fonts] call[.recourseFonts, parameter[call[reader.getPageN, ...
Keyword[public] Keyword[static] identifier[ArrayList] identifier[getDocumentFonts] operator[SEP] identifier[PdfReader] identifier[reader] , Keyword[int] identifier[page] operator[SEP] { identifier[IntHashtable] identifier[hits] operator[=] Keyword[new] identifier[IntHashtable] operator[SEP] operator[SEP] operat...
public static ImageOption http() { return new ImageOption("http", "") { @Override public String apply(String url) { if (url.startsWith("//")) { return "http:" + url; } else { return url; } } }; }
class class_name[name] begin[{] method[http, return_type[type[ImageOption]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="http"), Literal(postfix_operators=[], prefix_operators=[], q...
Keyword[public] Keyword[static] identifier[ImageOption] identifier[http] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ImageOption] operator[SEP] literal[String] , literal[String] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[...
private boolean fastAllPathsReturnCheck(ControlFlowGraph<Node> cfg) { for (DiGraphEdge<Node, Branch> s : cfg.getImplicitReturn().getInEdges()) { Node n = s.getSource().getValue(); // NOTE(dimvar): it is possible to change ControlFlowAnalysis.java, so // that the calls that always throw are treated...
class class_name[name] begin[{] method[fastAllPathsReturnCheck, return_type[type[boolean]], modifier[private], parameter[cfg]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvo...
Keyword[private] Keyword[boolean] identifier[fastAllPathsReturnCheck] operator[SEP] identifier[ControlFlowGraph] operator[<] identifier[Node] operator[>] identifier[cfg] operator[SEP] { Keyword[for] operator[SEP] identifier[DiGraphEdge] operator[<] identifier[Node] , identifier[Branch] operator[>] identifier[s]...
public ImageDescriptor getImageDescriptor(String id) { ImageDescriptor imageDescriptor = imageDescriptors.get(id); if (imageDescriptor == null) { String pluginId = getDefault().getBundle().getSymbolicName(); imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, I...
class class_name[name] begin[{] method[getImageDescriptor, return_type[type[ImageDescriptor]], modifier[public], parameter[id]] begin[{] local_variable[type[ImageDescriptor], imageDescriptor] if[binary_operation[member[.imageDescriptor], ==, literal[null]]] begin[{] local_va...
Keyword[public] identifier[ImageDescriptor] identifier[getImageDescriptor] operator[SEP] identifier[String] identifier[id] operator[SEP] { identifier[ImageDescriptor] identifier[imageDescriptor] operator[=] identifier[imageDescriptors] operator[SEP] identifier[get] operator[SEP] identifier[id] operator[SEP] oper...
public static List<IndependentProcessor> getLazyProcessList() { // not null, empty allowed final String lazyKey = generateLazyProcessListKey(); final List<IndependentProcessor> lazyList = ThreadCacheContext.getObject(lazyKey); return lazyList != null ? lazyList : Collections.emptyList(); }
class class_name[name] begin[{] method[getLazyProcessList, return_type[type[List]], modifier[public static], parameter[]] begin[{] local_variable[type[String], lazyKey] local_variable[type[List], lazyList] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(membe...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[IndependentProcessor] operator[>] identifier[getLazyProcessList] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[lazyKey] operator[=] identifier[generateLazyProcessListKey] operator[SEP] operator[SEP] operator[SEP]...
@Override public ResourceSet<Invite> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
class class_name[name] begin[{] method[read, return_type[type[ResourceSet]], modifier[public], parameter[client]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=client, postfix_operators=[], prefix_operators=...
annotation[@] identifier[Override] Keyword[public] identifier[ResourceSet] operator[<] identifier[Invite] operator[>] identifier[read] operator[SEP] Keyword[final] identifier[TwilioRestClient] identifier[client] operator[SEP] { Keyword[return] Keyword[new] identifier[ResourceSet] operator[<] operator[>] operator...
public static Date fromRfc3339DateString(String rfc3339FormattedDate) throws InvalidFormatException { SimpleDateFormat rfc3339DateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { return rfc3339DateFormat.parse(rfc3339FormattedDate); } catch (ParseException e) { throw new Invali...
class class_name[name] begin[{] method[fromRfc3339DateString, return_type[type[Date]], modifier[public static], parameter[rfc3339FormattedDate]] begin[{] local_variable[type[SimpleDateFormat], rfc3339DateFormat] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberRe...
Keyword[public] Keyword[static] identifier[Date] identifier[fromRfc3339DateString] operator[SEP] identifier[String] identifier[rfc3339FormattedDate] operator[SEP] Keyword[throws] identifier[InvalidFormatException] { identifier[SimpleDateFormat] identifier[rfc3339DateFormat] operator[=] Keyword[new] identifier[Si...
public static ZonedDateTime from(TemporalAccessor temporal) { if (temporal instanceof ZonedDateTime) { return (ZonedDateTime) temporal; } try { ZoneId zone = ZoneId.from(temporal); if (temporal.isSupported(INSTANT_SECONDS)) { try { ...
class class_name[name] begin[{] method[from, return_type[type[ZonedDateTime]], modifier[public static], parameter[temporal]] begin[{] if[binary_operation[member[.temporal], instanceof, type[ZonedDateTime]]] begin[{] return[Cast(expression=MemberReference(member=temporal, postfix_ope...
Keyword[public] Keyword[static] identifier[ZonedDateTime] identifier[from] operator[SEP] identifier[TemporalAccessor] identifier[temporal] operator[SEP] { Keyword[if] operator[SEP] identifier[temporal] Keyword[instanceof] identifier[ZonedDateTime] operator[SEP] { Keyword[return] operator[SEP] identifi...
public final int deleteOld(final long checkTimeThreshold) { final CriteriaBuilder builder = getSession().getCriteriaBuilder(); final CriteriaDelete<PrintJobStatusExtImpl> delete = builder.createCriteriaDelete(PrintJobStatusExtImpl.class); final Root<PrintJobStatusExtImpl> root = ...
class class_name[name] begin[{] method[deleteOld, return_type[type[int]], modifier[final public], parameter[checkTimeThreshold]] begin[{] local_variable[type[CriteriaBuilder], builder] local_variable[type[CriteriaDelete], delete] local_variable[type[Root], root] call[del...
Keyword[public] Keyword[final] Keyword[int] identifier[deleteOld] operator[SEP] Keyword[final] Keyword[long] identifier[checkTimeThreshold] operator[SEP] { Keyword[final] identifier[CriteriaBuilder] identifier[builder] operator[=] identifier[getSession] operator[SEP] operator[SEP] operator[SEP] identifier[getCri...
public void close() { if (connected) { try { terminal.deactivate(); } catch (Exception ex) { logger.debug("Exception occurred while closing UDPMasterConnection", ex); } connected = false; } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] if[member[.connected]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=deactivate, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[connected] operator[SEP] { Keyword[try] { identifier[terminal] operator[SEP] identifier[deactivate] operator[SEP] operator[SEP] operator[SEP] } Keywor...
public void marshall(DeleteUserProfileRequest deleteUserProfileRequest, ProtocolMarshaller protocolMarshaller) { if (deleteUserProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteU...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deleteUserProfileRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.deleteUserProfileRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteUserProfileRequest] identifier[deleteUserProfileRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deleteUserProfileRequest] operator[==] Other[null] opera...
public EClass getGSCR() { if (gscrEClass == null) { gscrEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(469); } return gscrEClass; }
class class_name[name] begin[{] method[getGSCR, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.gscrEClass], ==, literal[null]]] begin[{] assign[member[.gscrEClass], Cast(expression=MethodInvocation(arguments=[MemberReferenc...
Keyword[public] identifier[EClass] identifier[getGSCR] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[gscrEClass] operator[==] Other[null] operator[SEP] { identifier[gscrEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier...
public void export() throws IOException, SQLException, ClassNotFoundException { //check if properties is set or not if(!isValidateProperties()) { logger.error("Invalid config properties: The config properties is missing important parameters: DB_NAME, DB_USERNAME and DB_PASSWORD"); ...
class class_name[name] begin[{] method[export, return_type[void], modifier[public], parameter[]] begin[{] if[call[.isValidateProperties, parameter[]]] begin[{] call[logger.error, parameter[literal["Invalid config properties: The config properties is missing important par...
Keyword[public] Keyword[void] identifier[export] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SQLException] , identifier[ClassNotFoundException] { Keyword[if] operator[SEP] operator[!] identifier[isValidateProperties] operator[SEP] operator[SEP] operator[SEP] { id...
private void processAlterColumnType(Table table, ColumnSchema oldCol, boolean fullDefinition) { ColumnSchema newCol; if (oldCol.isGenerated()) { throw Error.error(ErrorCode.X_42561); } if (fullDefinition) { HsqlArrayList ...
class class_name[name] begin[{] method[processAlterColumnType, return_type[void], modifier[private], parameter[table, oldCol, fullDefinition]] begin[{] local_variable[type[ColumnSchema], newCol] if[call[oldCol.isGenerated, parameter[]]] begin[{] ThrowStatement(expression=Met...
Keyword[private] Keyword[void] identifier[processAlterColumnType] operator[SEP] identifier[Table] identifier[table] , identifier[ColumnSchema] identifier[oldCol] , Keyword[boolean] identifier[fullDefinition] operator[SEP] { identifier[ColumnSchema] identifier[newCol] operator[SEP] Keyword[if] operator[SEP] ide...
public String getPrincipal() { String principal = target.getPrincipal(); if (StringUtils.hasText(principal)) { return principal; } else { return defaultUser; } }
class class_name[name] begin[{] method[getPrincipal, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], principal] if[call[StringUtils.hasText, parameter[member[.principal]]]] begin[{] return[member[.principal]] else begin...
Keyword[public] identifier[String] identifier[getPrincipal] operator[SEP] operator[SEP] { identifier[String] identifier[principal] operator[=] identifier[target] operator[SEP] identifier[getPrincipal] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identi...
public Scanner skip(Pattern pattern) { ensureOpen(); if (pattern == null) throw new NullPointerException(); clearCaches(); // Search for the pattern while (true) { String token = matchPatternInBuffer(pattern); if (token != null) { ...
class class_name[name] begin[{] method[skip, return_type[type[Scanner]], modifier[public], parameter[pattern]] begin[{] call[.ensureOpen, parameter[]] if[binary_operation[member[.pattern], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=Non...
Keyword[public] identifier[Scanner] identifier[skip] operator[SEP] identifier[Pattern] identifier[pattern] operator[SEP] { identifier[ensureOpen] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pattern] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[N...
private void animateMarkerTo(final Marker marker, final double lat, final double lng) { final Handler handler = new Handler(); final long start = SystemClock.uptimeMillis(); final long DURATION_MS = 3000; final Interpolator interpolator = new AccelerateDecelerateInterpolator(); f...
class class_name[name] begin[{] method[animateMarkerTo, return_type[void], modifier[private], parameter[marker, lat, lng]] begin[{] local_variable[type[Handler], handler] local_variable[type[long], start] local_variable[type[long], DURATION_MS] local_variable[type[Interpolator],...
Keyword[private] Keyword[void] identifier[animateMarkerTo] operator[SEP] Keyword[final] identifier[Marker] identifier[marker] , Keyword[final] Keyword[double] identifier[lat] , Keyword[final] Keyword[double] identifier[lng] operator[SEP] { Keyword[final] identifier[Handler] identifier[handler] operator[=] Keyw...
public int intersectLineSegment(float p0X, float p0Y, float p0Z, float p1X, float p1Y, float p1Z, Vector2f result) { return Intersectionf.intersectLineSegmentAab(p0X, p0Y, p0Z, p1X, p1Y, p1Z, minX, minY, minZ, maxX, maxY, maxZ, result); }
class class_name[name] begin[{] method[intersectLineSegment, return_type[type[int]], modifier[public], parameter[p0X, p0Y, p0Z, p1X, p1Y, p1Z, result]] begin[{] return[call[Intersectionf.intersectLineSegmentAab, parameter[member[.p0X], member[.p0Y], member[.p0Z], member[.p1X], member[.p1Y], member[.p1Z...
Keyword[public] Keyword[int] identifier[intersectLineSegment] operator[SEP] Keyword[float] identifier[p0X] , Keyword[float] identifier[p0Y] , Keyword[float] identifier[p0Z] , Keyword[float] identifier[p1X] , Keyword[float] identifier[p1Y] , Keyword[float] identifier[p1Z] , identifier[Vector2f] identifier[result] ...
public BoxCollaboration.Info collaborate(String email, BoxCollaboration.Role role, Boolean notify, Boolean canViewPath) { JsonObject accessibleByField = new JsonObject(); accessibleByField.add("login", email); accessibleByField.add("type", "user"); ...
class class_name[name] begin[{] method[collaborate, return_type[type[BoxCollaboration]], modifier[public], parameter[email, role, notify, canViewPath]] begin[{] local_variable[type[JsonObject], accessibleByField] call[accessibleByField.add, parameter[literal["login"], member[.email]]] ...
Keyword[public] identifier[BoxCollaboration] operator[SEP] identifier[Info] identifier[collaborate] operator[SEP] identifier[String] identifier[email] , identifier[BoxCollaboration] operator[SEP] identifier[Role] identifier[role] , identifier[Boolean] identifier[notify] , identifier[Boolean] identifier[canViewPath] ...
public void update (Image image) { // if we're a repeating texture (or we want mipmaps) and this image is non-POT on the relevant // axes, we need to scale it before we upload it; we'll just do this on the CPU since it feels // like creating a second texture, a frame buffer to render into it, sending a GPU ...
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[image]] begin[{] if[binary_operation[binary_operation[member[config.repeatX], ||, member[config.repeatY]], ||, member[config.mipmaps]]] begin[{] local_variable[type[int], pixWidth] ...
Keyword[public] Keyword[void] identifier[update] operator[SEP] identifier[Image] identifier[image] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[repeatX] operator[||] identifier[config] operator[SEP] identifier[repeatY] operator[||] identifier[config] operator[SEP] identif...
public String dialogLockButtons() { StringBuffer html = new StringBuffer(512); html.append("<div id='butClose' >\n"); html.append(dialogButtonsClose()); html.append("</div>\n"); html.append("<div id='butContinue' class='hide' >\n"); html.append( dialogButtons...
class class_name[name] begin[{] method[dialogLockButtons, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuffer], html] call[html.append, parameter[literal["<div id='butClose' >\n"]]] call[html.append, parameter[call[.dialogB...
Keyword[public] identifier[String] identifier[dialogLockButtons] operator[SEP] operator[SEP] { identifier[StringBuffer] identifier[html] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] Other[512] operator[SEP] operator[SEP] identifier[html] operator[SEP] identifier[append] operator[SEP] literal[S...
private PercentileDistributionSummary withRange(long min, long max) { return (this.min == min && this.max == max) ? this : new PercentileDistributionSummary(registry, id, min, max, counters); }
class class_name[name] begin[{] method[withRange, return_type[type[PercentileDistributionSummary]], modifier[private], parameter[min, max]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selec...
Keyword[private] identifier[PercentileDistributionSummary] identifier[withRange] operator[SEP] Keyword[long] identifier[min] , Keyword[long] identifier[max] operator[SEP] { Keyword[return] operator[SEP] Keyword[this] operator[SEP] identifier[min] operator[==] identifier[min] operator[&&] Keyword[this] operator[...
public int doStartTag() throws JspException { // Locate our parent UIComponentTag UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext); if (tag == null) { //PENDING i18n throw new JspException("No...
class class_name[name] begin[{] method[doStartTag, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[UIComponentClassicTagBase], tag] if[binary_operation[member[.tag], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[public] Keyword[int] identifier[doStartTag] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[UIComponentClassicTagBase] identifier[tag] operator[=] identifier[UIComponentClassicTagBase] operator[SEP] identifier[getParentUIComponentClassicTagBase] operator[SEP] identifier[...
public static Date parseDate(String dateStr) { SimpleDateFormat format = null; if (StringUtils.isBlank(dateStr)) return null; String _dateStr = dateStr.trim(); try { if (_dateStr.matches("\\d{1,2}[A-Z]{3}")) { _dateStr = _dateStr ...
class class_name[name] begin[{] method[parseDate, return_type[type[Date]], modifier[public static], parameter[dateStr]] begin[{] local_variable[type[SimpleDateFormat], format] if[call[StringUtils.isBlank, parameter[member[.dateStr]]]] begin[{] return[literal[null]] else begin[{]...
Keyword[public] Keyword[static] identifier[Date] identifier[parseDate] operator[SEP] identifier[String] identifier[dateStr] operator[SEP] { identifier[SimpleDateFormat] identifier[format] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] ope...
@XmlElementDecl(namespace = "http://kommunvalkrets.val.external.model.cia.hack23.com/impl", name = "root") public JAXBElement<SwedenCountyDataContainer> createRoot(final SwedenCountyDataContainer value) { return new JAXBElement<>(_Root_QNAME, SwedenCountyDataContainer.class, null, value); }
class class_name[name] begin[{] method[createRoot, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Root_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], p...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[SwedenCountyDataContainer] operator[>] identifier[createRoot] operator[SEP] Keyword[final]...
public void setJobs(java.util.Collection<String> jobs) { if (jobs == null) { this.jobs = null; return; } this.jobs = new java.util.ArrayList<String>(jobs); }
class class_name[name] begin[{] method[setJobs, return_type[void], modifier[public], parameter[jobs]] begin[{] if[binary_operation[member[.jobs], ==, literal[null]]] begin[{] assign[THIS[member[None.jobs]], literal[null]] return[None] else begin[{] No...
Keyword[public] Keyword[void] identifier[setJobs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[jobs] operator[SEP] { Keyword[if] operator[SEP] identifier[jobs] operator[==] Other[null] operator[SEP] { ...
private static boolean confirmNoFileConflicts(Set<UpdatedFile> updatedFiles1, Set<UpdatedFile> updatedFiles2) { for (Iterator<UpdatedFile> iter1 = updatedFiles1.iterator(); iter1.hasNext();) { UpdatedFile currFile1 = iter1.next(); for (Iterator<UpdatedFile> iter2 = updatedFiles2.iterato...
class class_name[name] begin[{] method[confirmNoFileConflicts, return_type[type[boolean]], modifier[private static], parameter[updatedFiles1, updatedFiles2]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens...
Keyword[private] Keyword[static] Keyword[boolean] identifier[confirmNoFileConflicts] operator[SEP] identifier[Set] operator[<] identifier[UpdatedFile] operator[>] identifier[updatedFiles1] , identifier[Set] operator[<] identifier[UpdatedFile] operator[>] identifier[updatedFiles2] operator[SEP] { Keyword[for] op...
@Deprecated public static int findNthByte(byte [] utf, int start, int length, byte b, int n) { return org.apache.hadoop.util.UTF8ByteArrayUtils.findNthByte(utf, start, length, b, n); }
class class_name[name] begin[{] method[findNthByte, return_type[type[int]], modifier[public static], parameter[utf, start, length, b, n]] begin[{] return[call[org.apache.hadoop.util.UTF8ByteArrayUtils.findNthByte, parameter[member[.utf], member[.start], member[.length], member[.b], member[.n]]]] en...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[int] identifier[findNthByte] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[utf] , Keyword[int] identifier[start] , Keyword[int] identifier[length] , Keyword[byte] identifier[b] , Keyword[int] identifier[n] operator[SEP...
final private HttpResponseMessageImpl getResponseImpl() { if (null == getMyResponse()) { setMyResponse(getObjectFactory().getResponse(this)); // use limits from the request (not config) getMyResponse().setLimitOfTokenSize(getMyRequest().getLimitOfTokenSize()); get...
class class_name[name] begin[{] method[getResponseImpl, return_type[type[HttpResponseMessageImpl]], modifier[final private], parameter[]] begin[{] if[binary_operation[literal[null], ==, call[.getMyResponse, parameter[]]]] begin[{] call[.setMyResponse, parameter[call[.get...
Keyword[final] Keyword[private] identifier[HttpResponseMessageImpl] identifier[getResponseImpl] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[getMyResponse] operator[SEP] operator[SEP] operator[SEP] { identifier[setMyResponse] operator[SEP] identifier[getO...
public long readToByteChannel11(ucar.nc2.Variable v2, Section section, WritableByteChannel channel) throws java.io.IOException, ucar.ma2.InvalidRangeException { Array data = readData(v2, section); float[] ftdata = new float[(int) data.getSize()]; byte[] bytedata = new byte[(int) data.getSize()...
class class_name[name] begin[{] method[readToByteChannel11, return_type[type[long]], modifier[public], parameter[v2, section, channel]] begin[{] local_variable[type[Array], data] local_variable[type[float], ftdata] local_variable[type[byte], bytedata] local_variable[type[IndexIt...
Keyword[public] Keyword[long] identifier[readToByteChannel11] operator[SEP] identifier[ucar] operator[SEP] identifier[nc2] operator[SEP] identifier[Variable] identifier[v2] , identifier[Section] identifier[section] , identifier[WritableByteChannel] identifier[channel] operator[SEP] Keyword[throws] identifier[java] op...
public static RowMajorSparseMatrix from1DArray(int rows, int columns, double[] array) { return CRSMatrix.from1DArray(rows, columns, array); }
class class_name[name] begin[{] method[from1DArray, return_type[type[RowMajorSparseMatrix]], modifier[public static], parameter[rows, columns, array]] begin[{] return[call[CRSMatrix.from1DArray, parameter[member[.rows], member[.columns], member[.array]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[RowMajorSparseMatrix] identifier[from1DArray] operator[SEP] Keyword[int] identifier[rows] , Keyword[int] identifier[columns] , Keyword[double] operator[SEP] operator[SEP] identifier[array] operator[SEP] { Keyword[return] identifier[CRSMatrix] operator[SEP] identifier[...
public static String copy(String str, int count) { if (str == null) { throw new NullPointerException("原始字符串不能为null"); } if (count <= 0) { throw new IllegalArgumentException("次数必须大于0"); } if (count == 1) { return str; } if (co...
class class_name[name] begin[{] method[copy, return_type[type[String]], modifier[public static], parameter[str, count]] begin[{] if[binary_operation[member[.str], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] identifier[String] identifier[copy] operator[SEP] identifier[String] identifier[str] , Keyword[int] identifier[count] operator[SEP] { Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerEx...
protected void disconnect(final URLConnection connection) { final URLConnection http = UrlConnectionWrapper.unwrap(connection); if (http instanceof HttpURLConnection) { ((HttpURLConnection) http).disconnect(); } }
class class_name[name] begin[{] method[disconnect, return_type[void], modifier[protected], parameter[connection]] begin[{] local_variable[type[URLConnection], http] if[binary_operation[member[.http], instanceof, type[HttpURLConnection]]] begin[{] Cast(expression=...
Keyword[protected] Keyword[void] identifier[disconnect] operator[SEP] Keyword[final] identifier[URLConnection] identifier[connection] operator[SEP] { Keyword[final] identifier[URLConnection] identifier[http] operator[=] identifier[UrlConnectionWrapper] operator[SEP] identifier[unwrap] operator[SEP] identifier[co...
protected List<Control> getControlChain(Control control, Interaction inter) { LinkedList<Control> list = new LinkedList<Control>(); list.add(control); boolean found = search(list, inter); if (!found) throw new RuntimeException("No link from Control to Conversion."); return list; }
class class_name[name] begin[{] method[getControlChain, return_type[type[List]], modifier[protected], parameter[control, inter]] begin[{] local_variable[type[LinkedList], list] call[list.add, parameter[member[.control]]] local_variable[type[boolean], found] if[me...
Keyword[protected] identifier[List] operator[<] identifier[Control] operator[>] identifier[getControlChain] operator[SEP] identifier[Control] identifier[control] , identifier[Interaction] identifier[inter] operator[SEP] { identifier[LinkedList] operator[<] identifier[Control] operator[>] identifier[list] operat...
public List<ExtendedRelation> getRelations(String baseTable, String baseColumn, String relatedTable, String relatedColumn, String relation, String mappingTable) throws SQLException { QueryBuilder<ExtendedRelation, Long> qb = queryBuilder(); Where<ExtendedRelation, Long> where = null; if (baseTable != null...
class class_name[name] begin[{] method[getRelations, return_type[type[List]], modifier[public], parameter[baseTable, baseColumn, relatedTable, relatedColumn, relation, mappingTable]] begin[{] local_variable[type[QueryBuilder], qb] local_variable[type[Where], where] if[binary_ope...
Keyword[public] identifier[List] operator[<] identifier[ExtendedRelation] operator[>] identifier[getRelations] operator[SEP] identifier[String] identifier[baseTable] , identifier[String] identifier[baseColumn] , identifier[String] identifier[relatedTable] , identifier[String] identifier[relatedColumn] , identifier[...
public synchronized int addAll(Collection<U> data) { int startIndex = length(); putAll(data, startIndex); return startIndex; }
class class_name[name] begin[{] method[addAll, return_type[type[int]], modifier[synchronized public], parameter[data]] begin[{] local_variable[type[int], startIndex] call[.putAll, parameter[member[.data], member[.startIndex]]] return[member[.startIndex]] end[}] END[}]
Keyword[public] Keyword[synchronized] Keyword[int] identifier[addAll] operator[SEP] identifier[Collection] operator[<] identifier[U] operator[>] identifier[data] operator[SEP] { Keyword[int] identifier[startIndex] operator[=] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[putAll] operato...
public static boolean isZero(byte[] bytes, int startPos, int length) { return !hasUnsafe() || !unalignedAccess() ? isZeroSafe(bytes, startPos, length) : PlatformDependent0.isZero(bytes, startPos, length); }
class class_name[name] begin[{] method[isZero, return_type[type[boolean]], modifier[public static], parameter[bytes, startPos, length]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=hasUnsafe, postfix_operators=[], prefix_operators=['!'], qua...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isZero] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[startPos] , Keyword[int] identifier[length] operator[SEP] { Keyword[return] operator[!] identifier[hasUnsafe] operator[SEP] operator[SEP] opera...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.ECP__RS_NAME: setRSName(RS_NAME_EDEFAULT); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=ECP__RS_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Statem...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[ECP__RS_NAME] operat...
@Override protected Icon getIcon(JTable table, int column) { SortKey sortKey = getSortKey(table, column); if (sortKey != null && table.convertColumnIndexToView(sortKey.getColumn()) == column) { SortOrder sortOrder = sortKey.getSortOrder(); switch (sortOrder) { case ASCENDING: return VerticalSortIcon.A...
class class_name[name] begin[{] method[getIcon, return_type[type[Icon]], modifier[protected], parameter[table, column]] begin[{] local_variable[type[SortKey], sortKey] if[binary_operation[binary_operation[member[.sortKey], !=, literal[null]], &&, binary_operation[call[table.convertColum...
annotation[@] identifier[Override] Keyword[protected] identifier[Icon] identifier[getIcon] operator[SEP] identifier[JTable] identifier[table] , Keyword[int] identifier[column] operator[SEP] { identifier[SortKey] identifier[sortKey] operator[=] identifier[getSortKey] operator[SEP] identifier[table] , identifier...
private CellFormatResult getCellValue(final Cell cell, final Locale locale) { return getCellValue(new POICell(cell), locale); }
class class_name[name] begin[{] method[getCellValue, return_type[type[CellFormatResult]], modifier[private], parameter[cell, locale]] begin[{] return[call[.getCellValue, parameter[ClassCreator(arguments=[MemberReference(member=cell, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])],...
Keyword[private] identifier[CellFormatResult] identifier[getCellValue] operator[SEP] Keyword[final] identifier[Cell] identifier[cell] , Keyword[final] identifier[Locale] identifier[locale] operator[SEP] { Keyword[return] identifier[getCellValue] operator[SEP] Keyword[new] identifier[POICell] operator[SEP] ident...
public static synchronized DeleteOnExit getInstance() { if (instance == null) { instance = new DeleteOnExit(); Runtime.getRuntime().addShutdownHook(instance); } return instance; }
class class_name[name] begin[{] method[getInstance, return_type[type[DeleteOnExit]], modifier[synchronized public static], parameter[]] begin[{] if[binary_operation[member[.instance], ==, literal[null]]] begin[{] assign[member[.instance], ClassCreator(arguments=[], body=...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[DeleteOnExit] identifier[getInstance] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[instance] operator[==] Other[null] operator[SEP] { identifier[instance] operator[=] Keyword[new] identifier[DeleteOnExit] operator[S...
public BuildGetLogResultInner getLogLink(String resourceGroupName, String registryName, String buildId) { return getLogLinkWithServiceResponseAsync(resourceGroupName, registryName, buildId).toBlocking().single().body(); }
class class_name[name] begin[{] method[getLogLink, return_type[type[BuildGetLogResultInner]], modifier[public], parameter[resourceGroupName, registryName, buildId]] begin[{] return[call[.getLogLinkWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], member[.buildId]]]]...
Keyword[public] identifier[BuildGetLogResultInner] identifier[getLogLink] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[buildId] operator[SEP] { Keyword[return] identifier[getLogLinkWithServiceResponseAsync] operator...
@Override public INDArray create(int[] shape, int[] stride, long offset) { DataBuffer buffer = Nd4j.createBuffer(ArrayUtil.prodLong(shape)); return create(buffer, shape, stride, offset); }
class class_name[name] begin[{] method[create, return_type[type[INDArray]], modifier[public], parameter[shape, stride, offset]] begin[{] local_variable[type[DataBuffer], buffer] return[call[.create, parameter[member[.buffer], member[.shape], member[.stride], member[.offset]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[INDArray] identifier[create] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[shape] , Keyword[int] operator[SEP] operator[SEP] identifier[stride] , Keyword[long] identifier[offset] operator[SEP] { identifier[DataBuffer] identifier[...
public static Object loadInstance(Class clazz, Object defaultValue) { try { return clazz.newInstance(); } catch (Throwable t) { ExceptionUtil.rethrowIfNecessary(t); return defaultValue; } }
class class_name[name] begin[{] method[loadInstance, return_type[type[Object]], modifier[public static], parameter[clazz, defaultValue]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=newInstance, postfix_operators=[], prefix_operators=[], qualifier=clazz,...
Keyword[public] Keyword[static] identifier[Object] identifier[loadInstance] operator[SEP] identifier[Class] identifier[clazz] , identifier[Object] identifier[defaultValue] operator[SEP] { Keyword[try] { Keyword[return] identifier[clazz] operator[SEP] identifier[newInstance] operator[SEP] operator[SEP...
private Object find(Class entityClass, Object key, List<String> columnsToSelect) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClass); MetamodelImpl metamodel = (MetamodelImpl) KunderaMetadataManager.getMetamodel(kunderaMetadata, en...
class class_name[name] begin[{] method[find, return_type[type[Object]], modifier[private], parameter[entityClass, key, columnsToSelect]] begin[{] local_variable[type[EntityMetadata], entityMetadata] local_variable[type[MetamodelImpl], metamodel] local_variable[type[String], idColumnName...
Keyword[private] identifier[Object] identifier[find] operator[SEP] identifier[Class] identifier[entityClass] , identifier[Object] identifier[key] , identifier[List] operator[<] identifier[String] operator[>] identifier[columnsToSelect] operator[SEP] { identifier[EntityMetadata] identifier[entityMetadata] opera...
public final NotJoined notJoinedFrom(ChainedProperty<S> joinProperty) { if (!Storable.class.isAssignableFrom(joinProperty.getType())) { throw new IllegalArgumentException ("Join property type is not a Storable: " + joinProperty); } return notJoinedFromAny(joinPro...
class class_name[name] begin[{] method[notJoinedFrom, return_type[type[NotJoined]], modifier[final public], parameter[joinProperty]] begin[{] if[ClassReference(postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=...
Keyword[public] Keyword[final] identifier[NotJoined] identifier[notJoinedFrom] operator[SEP] identifier[ChainedProperty] operator[<] identifier[S] operator[>] identifier[joinProperty] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[Storable] operator[SEP] Keyword[class] operator[SEP] identifier[...
public Iterator<String> getPrefixes(String namespaceURI) { List<String> prefixes = new ArrayList<String>(); for (String prefix : prefix2ns.keySet()) { if (prefix2ns.containsKey(prefix) && prefix2ns.get(prefix).equals(namespaceURI)) { prefixes.add(prefix); ...
class class_name[name] begin[{] method[getPrefixes, return_type[type[Iterator]], modifier[public], parameter[namespaceURI]] begin[{] local_variable[type[List], prefixes] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(argu...
Keyword[public] identifier[Iterator] operator[<] identifier[String] operator[>] identifier[getPrefixes] operator[SEP] identifier[String] identifier[namespaceURI] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[prefixes] operator[=] Keyword[new] identifier[ArrayList] operato...
public void modifyColumns(final String tableName, HColumnDescriptor descriptor) throws IOException { modifyColumn(TableName.valueOf(tableName), descriptor); }
class class_name[name] begin[{] method[modifyColumns, return_type[void], modifier[public], parameter[tableName, descriptor]] begin[{] call[.modifyColumn, parameter[call[TableName.valueOf, parameter[member[.tableName]]], member[.descriptor]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[modifyColumns] operator[SEP] Keyword[final] identifier[String] identifier[tableName] , identifier[HColumnDescriptor] identifier[descriptor] operator[SEP] Keyword[throws] identifier[IOException] { identifier[modifyColumn] operator[SEP] identifier[TableName] operator[SEP] ...
public void open(File file, final long filePosition) throws FileNotFoundException, IOException { fin = new FileInputStream(file); ensureCapacity(BIN_LOG_HEADER_SIZE); if (BIN_LOG_HEADER_SIZE != fin.read(buffer, 0, BIN_LOG_HEADER_SIZE)) { throw new IOException("No binlog file he...
class class_name[name] begin[{] method[open, return_type[void], modifier[public], parameter[file, filePosition]] begin[{] assign[member[.fin], ClassCreator(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_...
Keyword[public] Keyword[void] identifier[open] operator[SEP] identifier[File] identifier[file] , Keyword[final] Keyword[long] identifier[filePosition] operator[SEP] Keyword[throws] identifier[FileNotFoundException] , identifier[IOException] { identifier[fin] operator[=] Keyword[new] identifier[FileInputStream]...
public void save(OutputStream stream) throws IOException { DataOutputStream out = null; try { out = new DataOutputStream(new BufferedOutputStream( stream)); for (int i = 0; i < _array.length; ++i) { out.writeInt(_array[i...
class class_name[name] begin[{] method[save, return_type[void], modifier[public], parameter[stream]] begin[{] local_variable[type[DataOutputStream], out] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=out, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[void] identifier[save] operator[SEP] identifier[OutputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[DataOutputStream] identifier[out] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[out] operator[=] Keyword[new] id...