code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
protected final int getMaxOrLimit(RowSelection selection) { final int firstRow = convertToFirstRowValue(LimitHelper.getFirstRow(selection)); final int lastRow = selection.getMaxRows(); return useMaxForLimit() ? lastRow + firstRow : lastRow; }
class class_name[name] begin[{] method[getMaxOrLimit, return_type[type[int]], modifier[final protected], parameter[selection]] begin[{] local_variable[type[int], firstRow] local_variable[type[int], lastRow] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=useMaxF...
Keyword[protected] Keyword[final] Keyword[int] identifier[getMaxOrLimit] operator[SEP] identifier[RowSelection] identifier[selection] operator[SEP] { Keyword[final] Keyword[int] identifier[firstRow] operator[=] identifier[convertToFirstRowValue] operator[SEP] identifier[LimitHelper] operator[SEP] identifier[getF...
public static void checkTracerName(String tracerName, NotificationSource notificationSource) throws NullPointerException,InvalidArgumentException { if (tracerName.equals("")) { // This is root return; } StringTokenizer stringTokenizer = new StringTokenizer(tracerName, ".", true); String lastTo...
class class_name[name] begin[{] method[checkTracerName, return_type[void], modifier[public static], parameter[tracerName, notificationSource]] begin[{] if[call[tracerName.equals, parameter[literal[""]]]] begin[{] return[None] else begin[{] None end[}] local_v...
Keyword[public] Keyword[static] Keyword[void] identifier[checkTracerName] operator[SEP] identifier[String] identifier[tracerName] , identifier[NotificationSource] identifier[notificationSource] operator[SEP] Keyword[throws] identifier[NullPointerException] , identifier[InvalidArgumentException] { Keyword[if] o...
private static Style.LineCap parseStrokeLineCap(String val) { if ("butt".equals(val)) return Style.LineCap.Butt; if ("round".equals(val)) return Style.LineCap.Round; if ("square".equals(val)) return Style.LineCap.Square; return null; }
class class_name[name] begin[{] method[parseStrokeLineCap, return_type[type[Style]], modifier[private static], parameter[val]] begin[{] if[literal["butt"]] begin[{] return[member[Style.LineCap.Butt]] else begin[{] None end[}] if[literal["round"]] begin[{] return[...
Keyword[private] Keyword[static] identifier[Style] operator[SEP] identifier[LineCap] identifier[parseStrokeLineCap] operator[SEP] identifier[String] identifier[val] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[val] operator[SEP] operator[SEP]...
public Map<String, Map<String, Map<String, Map<String, ?>>>> validationConstraints() { return getEntity(invokeGet("_constraints", null), Map.class); }
class class_name[name] begin[{] method[validationConstraints, return_type[type[Map]], modifier[public], parameter[]] begin[{] return[call[.getEntity, parameter[call[.invokeGet, parameter[literal["_constraints"], literal[null]]], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] operator[>] operator[>] operator[>] identifier[validationConstraints] operator[S...
public static Histogram joinFieldsHistogram(Histogram hist, Set<String> group) { if (group.size() < 2) return new Histogram(hist); List<String> flds = new ArrayList<String>(group); Collection<Bucket> jfBkts = hist.buckets(flds.get(0)); for (int i = 1; i < flds.size(); i++) { Collection<Bucket> t...
class class_name[name] begin[{] method[joinFieldsHistogram, return_type[type[Histogram]], modifier[public static], parameter[hist, group]] begin[{] if[binary_operation[call[group.size, parameter[]], <, literal[2]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=hist, postfix_ope...
Keyword[public] Keyword[static] identifier[Histogram] identifier[joinFieldsHistogram] operator[SEP] identifier[Histogram] identifier[hist] , identifier[Set] operator[<] identifier[String] operator[>] identifier[group] operator[SEP] { Keyword[if] operator[SEP] identifier[group] operator[SEP] identifier[size] ope...
ChronoFormatter<T> with( Map<ChronoElement<?>, Object> outerDefaults, AttributeSet outerAttrs ) { AttributeSet merged = AttributeSet.merge(outerAttrs, this.globalAttributes); return new ChronoFormatter<>( new ChronoFormatter<>(this, outerDefaults), merged, ...
class class_name[name] begin[{] method[with, return_type[type[ChronoFormatter]], modifier[default], parameter[outerDefaults, outerAttrs]] begin[{] local_variable[type[AttributeSet], merged] return[ClassCreator(arguments=[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qu...
identifier[ChronoFormatter] operator[<] identifier[T] operator[>] identifier[with] operator[SEP] identifier[Map] operator[<] identifier[ChronoElement] operator[<] operator[?] operator[>] , identifier[Object] operator[>] identifier[outerDefaults] , identifier[AttributeSet] identifier[outerAttrs] operator[SEP] { ...
public void execute() throws MojoExecutionException { File jarFile = createArchive(); String classifier = getClassifier(); if ( classifier != null ) { projectHelper.attachArtifact( getProject(), "jar", classifier, jarFile ); } else { ...
class class_name[name] begin[{] method[execute, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[File], jarFile] local_variable[type[String], classifier] if[binary_operation[member[.classifier], !=, literal[null]]] begin[{] c...
Keyword[public] Keyword[void] identifier[execute] operator[SEP] operator[SEP] Keyword[throws] identifier[MojoExecutionException] { identifier[File] identifier[jarFile] operator[=] identifier[createArchive] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[classifier] operator[=] identifier[...
public static WindowOver<Double> regrAvgx(Expression<? extends Number> arg1, Expression<? extends Number> arg2) { return new WindowOver<Double>(Double.class, SQLOps.REGR_AVGX, arg1, arg2); }
class class_name[name] begin[{] method[regrAvgx, return_type[type[WindowOver]], modifier[public static], parameter[arg1, arg2]] begin[{] return[ClassCreator(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None,...
Keyword[public] Keyword[static] identifier[WindowOver] operator[<] identifier[Double] operator[>] identifier[regrAvgx] operator[SEP] identifier[Expression] operator[<] operator[?] Keyword[extends] identifier[Number] operator[>] identifier[arg1] , identifier[Expression] operator[<] operator[?] Keyword[extends] identifi...
boolean handleFilters(Map<String, Object> filters) { Validate.notNull(filters, "Filters required"); boolean changed = false; // clear non active filters and remove them from lastFilters for (Object filterKey : CollectionUtils.subtract(lastFilters.keySet(), filters.keySet())) { BeanProperty.clearBeanProp...
class class_name[name] begin[{] method[handleFilters, return_type[type[boolean]], modifier[default], parameter[filters]] begin[{] call[Validate.notNull, parameter[member[.filters], literal["Filters required"]]] local_variable[type[boolean], changed] ForStatement(body=BlockStatem...
Keyword[boolean] identifier[handleFilters] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[filters] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[filters] , literal[String] operator[SEP] operator[SEP] Key...
@Override public final void setSpecifics(final SpecificsOfItem pSpecifics) { this.specifics = pSpecifics; if (this.itsId == null) { this.itsId = new GoodsSpecificsId(); } this.itsId.setSpecifics(this.specifics); }
class class_name[name] begin[{] method[setSpecifics, return_type[void], modifier[final public], parameter[pSpecifics]] begin[{] assign[THIS[member[None.specifics]], member[.pSpecifics]] if[binary_operation[THIS[member[None.itsId]], ==, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setSpecifics] operator[SEP] Keyword[final] identifier[SpecificsOfItem] identifier[pSpecifics] operator[SEP] { Keyword[this] operator[SEP] identifier[specifics] operator[=] identifier[pSpecifics] operator[SEP] Keyword[if] o...
public static void main(String [] args){ displayCopyright(); if (!checkArgs(args)) { displayHelp(); return; } //get model dir String modelDir = args[1]; CRFSegmenter segmenter = new CRFSegmenter(modelDir); //taggi...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] call[.displayCopyright, parameter[]] if[call[.checkArgs, parameter[member[.args]]]] begin[{] call[.displayHelp, parameter[]] ret...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[displayCopyright] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[checkArgs] operator[SEP] identifier[...
@Nonnull public static <F extends Future<V>, V> Map<F, V> tryWait(@Nonnull Iterable<F> futures, @Nonnegative long timeout, @Nonnull TimeUnit unit) throws TryWaitFutureUncheckedException { checkNotNull(futures); checkArgument(timeout > 0); checkNotNull(unit); r...
class class_name[name] begin[{] method[tryWait, return_type[type[Map]], modifier[public static], parameter[futures, timeout, unit]] begin[{] call[.checkNotNull, parameter[member[.futures]]] call[.checkArgument, parameter[binary_operation[member[.timeout], >, literal[0]]]] ...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[F] Keyword[extends] identifier[Future] operator[<] identifier[V] operator[>] , identifier[V] operator[>] identifier[Map] operator[<] identifier[F] , identifier[V] operator[>] identifier[tryWait] operator[SEP] annotation[@] identi...
public String getRedirectUrlFromServerToClient(String clientId, String contextPath, String redirectToRPHostAndPort) { String redirectURL = null; if (redirectToRPHostAndPort != null && redirectToRPHostAndPort.length() > 0) { try { final String fHostPort = redirectToRPHostAndPo...
class class_name[name] begin[{] method[getRedirectUrlFromServerToClient, return_type[type[String]], modifier[public], parameter[clientId, contextPath, redirectToRPHostAndPort]] begin[{] local_variable[type[String], redirectURL] if[binary_operation[binary_operation[member[.redirectToRPHo...
Keyword[public] identifier[String] identifier[getRedirectUrlFromServerToClient] operator[SEP] identifier[String] identifier[clientId] , identifier[String] identifier[contextPath] , identifier[String] identifier[redirectToRPHostAndPort] operator[SEP] { identifier[String] identifier[redirectURL] operator[=] Othe...
private static Element createResultElement(final Document document) { final Element ttResponse = document.createElementNS("http://jaxrx.org/", "result"); ttResponse.setPrefix("jaxrx"); return ttResponse; }
class class_name[name] begin[{] method[createResultElement, return_type[type[Element]], modifier[private static], parameter[document]] begin[{] local_variable[type[Element], ttResponse] call[ttResponse.setPrefix, parameter[literal["jaxrx"]]] return[member[.ttResponse]] end[}...
Keyword[private] Keyword[static] identifier[Element] identifier[createResultElement] operator[SEP] Keyword[final] identifier[Document] identifier[document] operator[SEP] { Keyword[final] identifier[Element] identifier[ttResponse] operator[=] identifier[document] operator[SEP] identifier[createElementNS] operator...
@Override public void warn(String msg, Throwable throwable) { LOGGER.log(Level.WARNING, msg, throwable); }
class class_name[name] begin[{] method[warn, return_type[void], modifier[public], parameter[msg, throwable]] begin[{] call[LOGGER.log, parameter[member[Level.WARNING], member[.msg], member[.throwable]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[warn] operator[SEP] identifier[String] identifier[msg] , identifier[Throwable] identifier[throwable] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] , i...
public void groupsCountByComponentIdAndPermission(DbSession dbSession, List<Long> componentIds, ResultHandler resultHandler) { Map<String, Object> parameters = new HashMap<>(2); parameters.put(ANYONE_GROUP_PARAMETER, DefaultGroups.ANYONE); executeLargeInputsWithoutOutput( componentIds, partitio...
class class_name[name] begin[{] method[groupsCountByComponentIdAndPermission, return_type[void], modifier[public], parameter[dbSession, componentIds, resultHandler]] begin[{] local_variable[type[Map], parameters] call[parameters.put, parameter[member[.ANYONE_GROUP_PARAMETER], member[Def...
Keyword[public] Keyword[void] identifier[groupsCountByComponentIdAndPermission] operator[SEP] identifier[DbSession] identifier[dbSession] , identifier[List] operator[<] identifier[Long] operator[>] identifier[componentIds] , identifier[ResultHandler] identifier[resultHandler] operator[SEP] { identifier[Map] op...
public void addEdge(V from, V to) { addVertex(from); addVertex(to); neighbors.get(from).add(to); }
class class_name[name] begin[{] method[addEdge, return_type[void], modifier[public], parameter[from, to]] begin[{] call[.addVertex, parameter[member[.from]]] call[.addVertex, parameter[member[.to]]] call[neighbors.get, parameter[member[.from]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addEdge] operator[SEP] identifier[V] identifier[from] , identifier[V] identifier[to] operator[SEP] { identifier[addVertex] operator[SEP] identifier[from] operator[SEP] operator[SEP] identifier[addVertex] operator[SEP] identifier[to] operator[SEP] operator[SEP] identifier...
@Override public RandomVariable mult(double value) { return apply(OperatorType.MULT, new RandomVariable[]{this, constructNewAADRandomVariable(value)}); }
class class_name[name] begin[{] method[mult, return_type[type[RandomVariable]], modifier[public], parameter[value]] begin[{] return[call[.apply, parameter[member[OperatorType.MULT], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[This(postfix_operators=[], prefix_operators=[]...
annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[mult] operator[SEP] Keyword[double] identifier[value] operator[SEP] { Keyword[return] identifier[apply] operator[SEP] identifier[OperatorType] operator[SEP] identifier[MULT] , Keyword[new] identifier[RandomVariable] operato...
private void displayClusterInfo() { Metadata metadata = m_cluster.getMetadata(); m_logger.info("Connected to cluster with topography:"); RoundRobinPolicy policy = new RoundRobinPolicy(); for (Host host : metadata.getAllHosts()) { m_logger.info(" Host {}: datacenter: {}, rac...
class class_name[name] begin[{] method[displayClusterInfo, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Metadata], metadata] call[m_logger.info, parameter[literal["Connected to cluster with topography:"]]] local_variable[type[RoundRobinPolicy],...
Keyword[private] Keyword[void] identifier[displayClusterInfo] operator[SEP] operator[SEP] { identifier[Metadata] identifier[metadata] operator[=] identifier[m_cluster] operator[SEP] identifier[getMetadata] operator[SEP] operator[SEP] operator[SEP] identifier[m_logger] operator[SEP] identifier[info] operator[SEP]...
@Override public FaxResult[] getFaxResultRN(String corpNum, String requestNum) throws PopbillException { if (requestNum == null) throw new PopbillException(-99999999, "전송요청번호가 입력되지 않았습니다."); return httpget("/FAX/Get/" + requestNum, corpNum, null, FaxResult[].class); }
class class_name[name] begin[{] method[getFaxResultRN, return_type[type[FaxResult]], modifier[public], parameter[corpNum, requestNum]] begin[{] if[binary_operation[member[.requestNum], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], p...
annotation[@] identifier[Override] Keyword[public] identifier[FaxResult] operator[SEP] operator[SEP] identifier[getFaxResultRN] operator[SEP] identifier[String] identifier[corpNum] , identifier[String] identifier[requestNum] operator[SEP] Keyword[throws] identifier[PopbillException] { Keyword[if] operator[SEP] ...
public void notReady() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notReady"); //get the ready consumer list lock synchronized (consumerDispatcher.getDestination().getReadyConsumerPointLock()) { if(ready) { ready = false; cons...
class class_name[name] begin[{] method[notReady, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal...
Keyword[public] Keyword[void] identifier[notReady] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator...
public void registerTag(String name, FreeMarkerTag tag){ configuration.setSharedVariable(name, tag); userTags.add(tag); }
class class_name[name] begin[{] method[registerTag, return_type[void], modifier[public], parameter[name, tag]] begin[{] call[configuration.setSharedVariable, parameter[member[.name], member[.tag]]] call[userTags.add, parameter[member[.tag]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[registerTag] operator[SEP] identifier[String] identifier[name] , identifier[FreeMarkerTag] identifier[tag] operator[SEP] { identifier[configuration] operator[SEP] identifier[setSharedVariable] operator[SEP] identifier[name] , identifier[tag] operator[SEP] operator[SEP] ...
public int getInt(int index) throws JSONException { Object object = this.get(index); try { return object instanceof Number ? ((Number) object).intValue() : Integer.parseInt((String) object); } catch (Exception e) { throw new JSONException("JSONArray[" ...
class class_name[name] begin[{] method[getInt, return_type[type[int]], modifier[public], parameter[index]] begin[{] local_variable[type[Object], object] TryStatement(block=[ReturnStatement(expression=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=object, postfix_ope...
Keyword[public] Keyword[int] identifier[getInt] operator[SEP] Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[JSONException] { identifier[Object] identifier[object] operator[=] Keyword[this] operator[SEP] identifier[get] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[...
private JCTree matchAnnoToTree(Attribute.Compound findme, List<Attribute.Compound> annos, List<JCAnnotation> trees) { for (Attribute.Compound anno : annos) { for (JCAnnotation tree : trees) { JCTree match = matchAn...
class class_name[name] begin[{] method[matchAnnoToTree, return_type[type[JCTree]], modifier[private], parameter[findme, annos, trees]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], decl...
Keyword[private] identifier[JCTree] identifier[matchAnnoToTree] operator[SEP] identifier[Attribute] operator[SEP] identifier[Compound] identifier[findme] , identifier[List] operator[<] identifier[Attribute] operator[SEP] identifier[Compound] operator[>] identifier[annos] , identifier[List] operator[<] identifier[JCAn...
public static ComputationGraphSpace fromYaml(String yaml) { try { return YamlMapper.getMapper().readValue(yaml, ComputationGraphSpace.class); } catch (IOException e) { throw new RuntimeException(e); } }
class class_name[name] begin[{] method[fromYaml, return_type[type[ComputationGraphSpace]], modifier[public static], parameter[yaml]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getMapper, postfix_operators=[], prefix_operators=[], qualifier=YamlMapper, ...
Keyword[public] Keyword[static] identifier[ComputationGraphSpace] identifier[fromYaml] operator[SEP] identifier[String] identifier[yaml] operator[SEP] { Keyword[try] { Keyword[return] identifier[YamlMapper] operator[SEP] identifier[getMapper] operator[SEP] operator[SEP] operator[SEP] identifier[readVa...
private SFBaseResultSet executeQuery( String sql, Map<String, ParameterBindingDTO> parametersBinding, boolean describeOnly, CallingMethod caller) throws SQLException, SFException { sanityCheckQuery(sql); String trimmedSql = sql.trim(); // snowflake specific client side commands...
class class_name[name] begin[{] method[executeQuery, return_type[type[SFBaseResultSet]], modifier[private], parameter[sql, parametersBinding, describeOnly, caller]] begin[{] call[.sanityCheckQuery, parameter[member[.sql]]] local_variable[type[String], trimmedSql] if[call...
Keyword[private] identifier[SFBaseResultSet] identifier[executeQuery] operator[SEP] identifier[String] identifier[sql] , identifier[Map] operator[<] identifier[String] , identifier[ParameterBindingDTO] operator[>] identifier[parametersBinding] , Keyword[boolean] identifier[describeOnly] , identifier[CallingMethod] ...
@Override public InputStream getAlignmentResults(String id, RemotePairwiseAlignmentOutputProperties outputProperties) throws Exception { Map<String, String> params = new HashMap<String, String>(); for (String key : outputProperties.getOutputOptions()) { params.put(key, outputProperties.getOutputOption(key)); ...
class class_name[name] begin[{] method[getAlignmentResults, return_type[type[InputStream]], modifier[public], parameter[id, outputProperties]] begin[{] local_variable[type[Map], params] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argu...
annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[getAlignmentResults] operator[SEP] identifier[String] identifier[id] , identifier[RemotePairwiseAlignmentOutputProperties] identifier[outputProperties] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Map] oper...
static Interval gridSearch(UnivariateFunction fn, double start, double end, double step) { double lowMax = start; // lower bound on interval surrounding alphaMax double alphaMax = start - step; double likMax = 0.0; double lastAlpha = start; double alpha = start; while (alpha < end) { ...
class class_name[name] begin[{] method[gridSearch, return_type[type[Interval]], modifier[static], parameter[fn, start, end, step]] begin[{] local_variable[type[double], lowMax] local_variable[type[double], alphaMax] local_variable[type[double], likMax] local_variable[type[double...
Keyword[static] identifier[Interval] identifier[gridSearch] operator[SEP] identifier[UnivariateFunction] identifier[fn] , Keyword[double] identifier[start] , Keyword[double] identifier[end] , Keyword[double] identifier[step] operator[SEP] { Keyword[double] identifier[lowMax] operator[=] identifier[start] oper...
public static boolean hasProperty(ClassNode classNode, String propertyName) { if (classNode == null || !StringUtils.hasText(propertyName)) { return false; } final MethodNode method = classNode.getMethod(GrailsNameUtils.getGetterName(propertyName), Parameter.EMPTY_ARRAY); if ...
class class_name[name] begin[{] method[hasProperty, return_type[type[boolean]], modifier[public static], parameter[classNode, propertyName]] begin[{] if[binary_operation[binary_operation[member[.classNode], ==, literal[null]], ||, call[StringUtils.hasText, parameter[member[.propertyName]]]]] be...
Keyword[public] Keyword[static] Keyword[boolean] identifier[hasProperty] operator[SEP] identifier[ClassNode] identifier[classNode] , identifier[String] identifier[propertyName] operator[SEP] { Keyword[if] operator[SEP] identifier[classNode] operator[==] Other[null] operator[||] operator[!] identifier[StringUtil...
@Override public Request<BundleInstanceRequest> getDryRunRequest() { Request<BundleInstanceRequest> request = new BundleInstanceRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
class class_name[name] begin[{] method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{] local_variable[type[Request], request] call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]] return[m...
annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[BundleInstanceRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] { identifier[Request] operator[<] identifier[BundleInstanceRequest] operator[>] identifier[request] operator[=] Keyword[new] id...
public int resolveLabel(int idx) { int trueIdx; if (idx < 0) { trueIdx = labels.get(-idx); if (trueIdx < 0) { throw new RuntimeException("undefined label: " + idx); } return trueIdx; } else { return idx; } }
class class_name[name] begin[{] method[resolveLabel, return_type[type[int]], modifier[public], parameter[idx]] begin[{] local_variable[type[int], trueIdx] if[binary_operation[member[.idx], <, literal[0]]] begin[{] assign[member[.trueIdx], call[labels.get, paramet...
Keyword[public] Keyword[int] identifier[resolveLabel] operator[SEP] Keyword[int] identifier[idx] operator[SEP] { Keyword[int] identifier[trueIdx] operator[SEP] Keyword[if] operator[SEP] identifier[idx] operator[<] Other[0] operator[SEP] { identifier[trueIdx] operator[=] identifier[labels] operator[SEP...
private String getPayLoad(Key key, Application app) { if (app == null) { return EMPTY_PAYLOAD; } EncoderWrapper encoderWrapper = serverCodecs.getEncoder(key.getType(), key.getEurekaAccept()); try { return encoderWrapper.encode(app); } catch (Exception e) ...
class class_name[name] begin[{] method[getPayLoad, return_type[type[String]], modifier[private], parameter[key, app]] begin[{] if[binary_operation[member[.app], ==, literal[null]]] begin[{] return[member[.EMPTY_PAYLOAD]] else begin[{] None end[}] local_variab...
Keyword[private] identifier[String] identifier[getPayLoad] operator[SEP] identifier[Key] identifier[key] , identifier[Application] identifier[app] operator[SEP] { Keyword[if] operator[SEP] identifier[app] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[EMPTY_PAYLOAD] operator[SEP]...
@Override public long getCount() { return PoolUtils.doWorkInPoolNicely(this.jedisPool, new PoolWork<Jedis, Long>() { /** * {@inheritDoc} */ @Override public Long doWork(final Jedis jedis) throws Exception { return jedis.llen(key(F...
class class_name[name] begin[{] method[getCount, return_type[type[long]], modifier[public], parameter[]] begin[{] return[call[PoolUtils.doWorkInPoolNicely, parameter[THIS[member[None.jedisPool]], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], b...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[getCount] operator[SEP] operator[SEP] { Keyword[return] identifier[PoolUtils] operator[SEP] identifier[doWorkInPoolNicely] operator[SEP] Keyword[this] operator[SEP] identifier[jedisPool] , Keyword[new] identifier[PoolWork] operator[<] i...
private void loadLoggerHandlers(final Logger logger, final String name, final String handlersPropertyName) { /* J2ObjC removed. AccessController.doPrivileged(new PrivilegedAction<Object>() { public Object run() { */ String names...
class class_name[name] begin[{] method[loadLoggerHandlers, return_type[void], modifier[private], parameter[logger, name, handlersPropertyName]] begin[{] local_variable[type[String], names] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarat...
Keyword[private] Keyword[void] identifier[loadLoggerHandlers] operator[SEP] Keyword[final] identifier[Logger] identifier[logger] , Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[String] identifier[handlersPropertyName] operator[SEP] { identifier[String] identifier[names] operato...
public CreateIssueParams multipleListCustomField(CustomFiledItems customFiledItems) { for (Object id : customFiledItems.getCustomFieldItemIds()) { parameters.add(new NameValuePair("customField_" + customFiledItems.getCustomFieldId(), id.toString())); } return this...
class class_name[name] begin[{] method[multipleListCustomField, return_type[type[CreateIssueParams]], modifier[public], parameter[customFiledItems]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[Binar...
Keyword[public] identifier[CreateIssueParams] identifier[multipleListCustomField] operator[SEP] identifier[CustomFiledItems] identifier[customFiledItems] operator[SEP] { Keyword[for] operator[SEP] identifier[Object] identifier[id] operator[:] identifier[customFiledItems] operator[SEP] identifier[getCustomFieldI...
@SuppressWarnings("unchecked") @Override public T greaterEqual(final String col, final Object value) { context().param(CaseFormat.CAMEL_CASE.convert(col), new GreaterEqual(col, value)); this.useOperator = true; return (T) this; }
class class_name[name] begin[{] method[greaterEqual, return_type[type[T]], modifier[public], parameter[col, value]] begin[{] call[.context, parameter[]] assign[THIS[member[None.useOperator]], literal[true]] return[Cast(expression=This(postfix_operators=[], prefix_operato...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[greaterEqual] operator[SEP] Keyword[final] identifier[String] identifier[col] , Keyword[final] identifier[Object] identifier[value] operator[SEP] { i...
private static Tree traverse(Tree parent, List<Tree> kids, Tree node) { for (Tree kid : kids) { if (kid == node) { return parent; } Tree ret = node.parent(kid); if (ret != null) { return ret; } } return ...
class class_name[name] begin[{] method[traverse, return_type[type[Tree]], modifier[private static], parameter[parent, kids, node]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=kid, postfix_operators=[], prefix_op...
Keyword[private] Keyword[static] identifier[Tree] identifier[traverse] operator[SEP] identifier[Tree] identifier[parent] , identifier[List] operator[<] identifier[Tree] operator[>] identifier[kids] , identifier[Tree] identifier[node] operator[SEP] { Keyword[for] operator[SEP] identifier[Tree] identifier[kid] o...
public static HostAndPort of(String host, int port) { LettuceAssert.isTrue(isValidPort(port), String.format("Port out of range: %s", port)); HostAndPort parsedHost = parse(host); LettuceAssert.isTrue(!parsedHost.hasPort(), String.format("Host has a port: %s", host)); return new HostAnd...
class class_name[name] begin[{] method[of, return_type[type[HostAndPort]], modifier[public static], parameter[host, port]] begin[{] call[LettuceAssert.isTrue, parameter[call[.isValidPort, parameter[member[.port]]], call[String.format, parameter[literal["Port out of range: %s"], member[.port]]]]...
Keyword[public] Keyword[static] identifier[HostAndPort] identifier[of] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] operator[SEP] { identifier[LettuceAssert] operator[SEP] identifier[isTrue] operator[SEP] identifier[isValidPort] operator[SEP] identifier[port] operator[SEP] ,...
@Override public Mappings matchAll(final IAtomContainer target) { if (doPrep) prepare(target); // Note: Mappings is lazy, we can't reset aromaticity etc as the // substructure match may not have finished return pattern.matchAll(target); }
class class_name[name] begin[{] method[matchAll, return_type[type[Mappings]], modifier[public], parameter[target]] begin[{] if[member[.doPrep]] begin[{] call[.prepare, parameter[member[.target]]] else begin[{] None end[}] return[call[pattern.matchAll, paramet...
annotation[@] identifier[Override] Keyword[public] identifier[Mappings] identifier[matchAll] operator[SEP] Keyword[final] identifier[IAtomContainer] identifier[target] operator[SEP] { Keyword[if] operator[SEP] identifier[doPrep] operator[SEP] identifier[prepare] operator[SEP] identifier[target] operator[SEP] ope...
@Override @FFDCIgnore(InjectionException.class) public T inject(ReferenceContext referenceContext) throws ManagedObjectException { InjectionTarget[] targets; try { targets = referenceContext.getInjectionTargets(object.getClass()); } catch (InjectionException e) { ...
class class_name[name] begin[{] method[inject, return_type[type[T]], modifier[public], parameter[referenceContext]] begin[{] local_variable[type[InjectionTarget], targets] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=targets, postfix_operators...
annotation[@] identifier[Override] annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[InjectionException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[T] identifier[inject] operator[SEP] identifier[ReferenceContext] identifier[referenceContext] operator[SEP] Keyword[throws] identifie...
public String getQuery() { StringBuilder query = new StringBuilder(); if (queryTail.length() > 0) { if (queryHead.length() == 0) { query.append("{?") .append(queryTail) .append("}"); } else if (queryHead.length() > 0...
class class_name[name] begin[{] method[getQuery, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], query] if[binary_operation[call[queryTail.length, parameter[]], >, literal[0]]] begin[{] if[binary_operation[ca...
Keyword[public] identifier[String] identifier[getQuery] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[query] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[queryTail] operator[SEP] identifier[length] operator[...
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled) { if (!bInitCalled) ((ChangeOnChangeHandler)listener).init(null, m_fldTarget, m_bSetModified); return super.syncClonedListener(field, listener, true); }
class class_name[name] begin[{] method[syncClonedListener, return_type[type[boolean]], modifier[public], parameter[field, listener, bInitCalled]] begin[{] if[member[.bInitCalled]] begin[{] Cast(expression=MemberReference(member=listener, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] Keyword[boolean] identifier[syncClonedListener] operator[SEP] identifier[BaseField] identifier[field] , identifier[FieldListener] identifier[listener] , Keyword[boolean] identifier[bInitCalled] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[bInitCalled] operator[SEP] operator[...
public boolean containsValue(Object value) { if (value == null) { for (int i = 0, isize = data.length; i < isize; i++) { HashEntry entry = data[i]; while (entry != null) { if (entry.getValue() == null) { return true; ...
class class_name[name] begin[{] method[containsValue, return_type[type[boolean]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotatio...
Keyword[public] Keyword[boolean] identifier[containsValue] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] , identifier[is...
protected Boolean makeRecordStructure() { if (immutable) throw new IllegalStateException("Cant modify"); Boolean didit = false; if ((spi != null) && (spi instanceof N3iosp) && hasUnlimitedDimension()) { didit = (Boolean) spi.sendIospMessage(IOSP_MESSAGE_ADD_RECORD_STRUCTURE); } return didit; ...
class class_name[name] begin[{] method[makeRecordStructure, return_type[type[Boolean]], modifier[protected], parameter[]] begin[{] if[member[.immutable]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], v...
Keyword[protected] identifier[Boolean] identifier[makeRecordStructure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[immutable] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Boolean] identifier...
@SuppressWarnings("unused") @Internal @UsedByGeneratedCode protected final void addProperty(@Nonnull BeanProperty<T, Object> property) { ArgumentUtils.requireNonNull("property", property); beanProperties.put(property.getName(), property); }
class class_name[name] begin[{] method[addProperty, return_type[void], modifier[final protected], parameter[property]] begin[{] call[ArgumentUtils.requireNonNull, parameter[literal["property"], member[.property]]] call[beanProperties.put, parameter[call[property.getName, paramet...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Internal] annotation[@] identifier[UsedByGeneratedCode] Keyword[protected] Keyword[final] Keyword[void] identifier[addProperty] operator[SEP] annotation[@] identifier[Nonnull] identifier[BeanProperty] operato...
public <T> List<T> getModels(Class<T> clazz) { List<T> models = new ArrayList<T>(); buildModels(models, getStart().getNextModels(clazz), clazz); return models; }
class class_name[name] begin[{] method[getModels, return_type[type[List]], modifier[public], parameter[clazz]] begin[{] local_variable[type[List], models] call[.buildModels, parameter[member[.models], call[.getStart, parameter[]], member[.clazz]]] return[member[.models]] end...
Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[getModels] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] { identifier[List] operator[<] identifier[T] operator[>] identifier[models] oper...
public static void pressText(Image srcImage, ImageOutputStream destImageStream, String pressText, Color color, Font font, int x, int y, float alpha) throws IORuntimeException { writeJpg(pressText(srcImage, pressText, color, font, x, y, alpha), destImageStream); }
class class_name[name] begin[{] method[pressText, return_type[void], modifier[public static], parameter[srcImage, destImageStream, pressText, color, font, x, y, alpha]] begin[{] call[.writeJpg, parameter[call[.pressText, parameter[member[.srcImage], member[.pressText], member[.color], member[.f...
Keyword[public] Keyword[static] Keyword[void] identifier[pressText] operator[SEP] identifier[Image] identifier[srcImage] , identifier[ImageOutputStream] identifier[destImageStream] , identifier[String] identifier[pressText] , identifier[Color] identifier[color] , identifier[Font] identifier[font] , Keyword[int] id...
static Class classForName(String name, ClassLoader classLoader) { return MetaUtils.classForName(name, classLoader); }
class class_name[name] begin[{] method[classForName, return_type[type[Class]], modifier[static], parameter[name, classLoader]] begin[{] return[call[MetaUtils.classForName, parameter[member[.name], member[.classLoader]]]] end[}] END[}]
Keyword[static] identifier[Class] identifier[classForName] operator[SEP] identifier[String] identifier[name] , identifier[ClassLoader] identifier[classLoader] operator[SEP] { Keyword[return] identifier[MetaUtils] operator[SEP] identifier[classForName] operator[SEP] identifier[name] , identifier[classLoader] op...
public CreateVpcEndpointServiceConfigurationRequest withNetworkLoadBalancerArns(String... networkLoadBalancerArns) { if (this.networkLoadBalancerArns == null) { setNetworkLoadBalancerArns(new com.amazonaws.internal.SdkInternalList<String>(networkLoadBalancerArns.length)); } for (Stri...
class class_name[name] begin[{] method[withNetworkLoadBalancerArns, return_type[type[CreateVpcEndpointServiceConfigurationRequest]], modifier[public], parameter[networkLoadBalancerArns]] begin[{] if[binary_operation[THIS[member[None.networkLoadBalancerArns]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[CreateVpcEndpointServiceConfigurationRequest] identifier[withNetworkLoadBalancerArns] operator[SEP] identifier[String] operator[...] identifier[networkLoadBalancerArns] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[networkLoadBalancerArns] operator[==...
public Regex and(@NonNull Regex other) { if (other.pattern.length() > 0) { return re(this.pattern + "&&" + other.pattern); } return this; }
class class_name[name] begin[{] method[and, return_type[type[Regex]], modifier[public], parameter[other]] begin[{] if[binary_operation[call[other.pattern.length, parameter[]], >, literal[0]]] begin[{] return[call[.re, parameter[binary_operation[binary_operation[THIS[member[None.patt...
Keyword[public] identifier[Regex] identifier[and] operator[SEP] annotation[@] identifier[NonNull] identifier[Regex] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[other] operator[SEP] identifier[pattern] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] ope...
protected boolean mustProcessClass(String className) { // skip versioned classes in Java 9 Multi-release JAR files if (className.startsWith("META-INF.versions")) { return false; } // the default package String packageName = ""; // find last dot in class name to determi...
class class_name[name] begin[{] method[mustProcessClass, return_type[type[boolean]], modifier[protected], parameter[className]] begin[{] if[call[className.startsWith, parameter[literal["META-INF.versions"]]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[protected] Keyword[boolean] identifier[mustProcessClass] operator[SEP] identifier[String] identifier[className] operator[SEP] { Keyword[if] operator[SEP] identifier[className] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[return] liter...
private static Matrix readSparseSVDLIBCtext( File matrix, Type matrixType, boolean transposeOnRead) throws IOException { BufferedReader br = new BufferedReader(new FileReader(matrix)); String line = br.readLine(); if (line == null) throw new...
class class_name[name] begin[{] method[readSparseSVDLIBCtext, return_type[type[Matrix]], modifier[private static], parameter[matrix, matrixType, transposeOnRead]] begin[{] local_variable[type[BufferedReader], br] local_variable[type[String], line] if[binary_operation[member[.lin...
Keyword[private] Keyword[static] identifier[Matrix] identifier[readSparseSVDLIBCtext] operator[SEP] identifier[File] identifier[matrix] , identifier[Type] identifier[matrixType] , Keyword[boolean] identifier[transposeOnRead] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedReader] ide...
@Override public void setParameters(Object[] params) throws CDKException { if (params.length != 1) { throw new CDKException("AromaticBondsCountDescriptor expects one parameter"); } if (!(params[0] instanceof Boolean)) { throw new CDKException("The first parameter must...
class class_name[name] begin[{] method[setParameters, return_type[void], modifier[public], parameter[params]] begin[{] if[binary_operation[member[params.length], !=, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setParameters] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[params] operator[SEP] Keyword[throws] identifier[CDKException] { Keyword[if] operator[SEP] identifier[params] operator[SEP] identifier[length] operato...
@Override public void setProtocol(String protocol) throws Exception { this.protocol = protocol; if ("rtmps".equals(protocol) || "rtmpt".equals(protocol) || "rtmpte".equals(protocol) || "rtmfp".equals(protocol)) { throw new Exception("Unsupported protocol specified, please use the cor...
class class_name[name] begin[{] method[setProtocol, return_type[void], modifier[public], parameter[protocol]] begin[{] assign[THIS[member[None.protocol]], member[.protocol]] if[binary_operation[binary_operation[binary_operation[literal["rtmps"], ||, literal["rtmpt"]], ||, litera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setProtocol] operator[SEP] identifier[String] identifier[protocol] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[this] operator[SEP] identifier[protocol] operator[=] identifier[protocol] operator[SEP] Keyword[if] operator...
public void applyTransformMutate(final DataTransform dt, boolean mutate, boolean parallel) { if (mutate && dt instanceof InPlaceTransform) { final InPlaceTransform ipt = (InPlaceTransform) dt; ParallelUtils.range(size(), parallel) .forEach(i->ipt.mut...
class class_name[name] begin[{] method[applyTransformMutate, return_type[void], modifier[public], parameter[dt, mutate, parallel]] begin[{] if[binary_operation[member[.mutate], &&, binary_operation[member[.dt], instanceof, type[InPlaceTransform]]]] begin[{] local_variable[type[InPla...
Keyword[public] Keyword[void] identifier[applyTransformMutate] operator[SEP] Keyword[final] identifier[DataTransform] identifier[dt] , Keyword[boolean] identifier[mutate] , Keyword[boolean] identifier[parallel] operator[SEP] { Keyword[if] operator[SEP] identifier[mutate] operator[&&] identifier[dt] Keyword[ins...
public static String[] fastSplitKey(String key) { int i = key.indexOf(':'); if(-1 == i) { return new String[]{key}; } else { int j = key.indexOf(':', i+1); if (-1 != j) { return null; } else { return new String[]{key.substring(0, i), key.substring(i+1)}; ...
class class_name[name] begin[{] method[fastSplitKey, return_type[type[String]], modifier[public static], parameter[key]] begin[{] local_variable[type[int], i] if[binary_operation[literal[1], ==, member[.i]]] begin[{] return[ArrayCreator(dimensions=[None], initializer=ArrayIn...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[fastSplitKey] operator[SEP] identifier[String] identifier[key] operator[SEP] { Keyword[int] identifier[i] operator[=] identifier[key] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SE...
private void replaceFormatterPaths(CmsModule targetModule) throws CmsException, UnsupportedEncodingException { CmsResource formatterSourceFolder = getCms().readResource( "/system/modules/" + m_cloneInfo.getFormatterSourceModule() + "/"); CmsResource formatterTargetFolder = getCms().readReso...
class class_name[name] begin[{] method[replaceFormatterPaths, return_type[void], modifier[private], parameter[targetModule]] begin[{] local_variable[type[CmsResource], formatterSourceFolder] local_variable[type[CmsResource], formatterTargetFolder] ForStatement(body=BlockStatement(label=...
Keyword[private] Keyword[void] identifier[replaceFormatterPaths] operator[SEP] identifier[CmsModule] identifier[targetModule] operator[SEP] Keyword[throws] identifier[CmsException] , identifier[UnsupportedEncodingException] { identifier[CmsResource] identifier[formatterSourceFolder] operator[=] identifier[getCm...
private void storeCollections(Object obj, ClassDescriptor cld, boolean insert) throws PersistenceBrokerException { // get all members of obj that are collections and store all their elements Collection listCods = cld.getCollectionDescriptors(); // return if nothing to do if (listCods...
class class_name[name] begin[{] method[storeCollections, return_type[void], modifier[private], parameter[obj, cld, insert]] begin[{] local_variable[type[Collection], listCods] if[binary_operation[call[listCods.size, parameter[]], ==, literal[0]]] begin[{] return[None] ...
Keyword[private] Keyword[void] identifier[storeCollections] operator[SEP] identifier[Object] identifier[obj] , identifier[ClassDescriptor] identifier[cld] , Keyword[boolean] identifier[insert] operator[SEP] Keyword[throws] identifier[PersistenceBrokerException] { identifier[Collection] identifier[listCods] ope...
public void marshall(MssPackage mssPackage, ProtocolMarshaller protocolMarshaller) { if (mssPackage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(mssPackage.getEncryption(), ENCRYPTION_BINDING); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[mssPackage, protocolMarshaller]] begin[{] if[binary_operation[member[.mssPackage], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[MssPackage] identifier[mssPackage] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[mssPackage] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywo...
private void _appendCharacterEscape(char ch, int escCode) throws IOException, JsonGenerationException { if (escCode >= 0) { // \\N (2 char) if ((_outputTail + 2) > _outputEnd) { _flushBuffer(); } _outputBuffer[_outputTail++] = '\\'; _outputBuffer[_outputTail++] = (char) escCode; return; } i...
class class_name[name] begin[{] method[_appendCharacterEscape, return_type[void], modifier[private], parameter[ch, escCode]] begin[{] if[binary_operation[member[.escCode], >=, literal[0]]] begin[{] if[binary_operation[binary_operation[member[._outputTail], +, literal[2]]...
Keyword[private] Keyword[void] identifier[_appendCharacterEscape] operator[SEP] Keyword[char] identifier[ch] , Keyword[int] identifier[escCode] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JsonGenerationException] { Keyword[if] operator[SEP] identifier[escCode] operator[>=] Other[0] opera...
public void setContainer(DatePickerContainer container) { this.container = container; options.container = container == DatePickerContainer.SELF ? getElement().getId() : container.getCssName(); }
class class_name[name] begin[{] method[setContainer, return_type[void], modifier[public], parameter[container]] begin[{] assign[THIS[member[None.container]], member[.container]] assign[member[options.container], TernaryExpression(condition=BinaryOperation(operandl=MemberReferenc...
Keyword[public] Keyword[void] identifier[setContainer] operator[SEP] identifier[DatePickerContainer] identifier[container] operator[SEP] { Keyword[this] operator[SEP] identifier[container] operator[=] identifier[container] operator[SEP] identifier[options] operator[SEP] identifier[container] operator[=] identifi...
void findErrorLocatorPolynomialBM(GrowQueue_I8 syndromes , GrowQueue_I8 errorLocator ) { GrowQueue_I8 C = errorLocator; // error polynomial GrowQueue_I8 B = new GrowQueue_I8(); // previous error polynomial // TODO remove new from this function initToOne(C,syndromes.size+1); initToOne(B,syndromes.size+1); ...
class class_name[name] begin[{] method[findErrorLocatorPolynomialBM, return_type[void], modifier[default], parameter[syndromes, errorLocator]] begin[{] local_variable[type[GrowQueue_I8], C] local_variable[type[GrowQueue_I8], B] call[.initToOne, parameter[member[.C], binary_opera...
Keyword[void] identifier[findErrorLocatorPolynomialBM] operator[SEP] identifier[GrowQueue_I8] identifier[syndromes] , identifier[GrowQueue_I8] identifier[errorLocator] operator[SEP] { identifier[GrowQueue_I8] identifier[C] operator[=] identifier[errorLocator] operator[SEP] identifier[GrowQueue_I8] identifier[B]...
public void setStatus(Presence.Mode presenceMode, int maxChats) throws XMPPException, SmackException, InterruptedException { setStatus(presenceMode, maxChats, null); }
class class_name[name] begin[{] method[setStatus, return_type[void], modifier[public], parameter[presenceMode, maxChats]] begin[{] call[.setStatus, parameter[member[.presenceMode], member[.maxChats], literal[null]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setStatus] operator[SEP] identifier[Presence] operator[SEP] identifier[Mode] identifier[presenceMode] , Keyword[int] identifier[maxChats] operator[SEP] Keyword[throws] identifier[XMPPException] , identifier[SmackException] , identifier[InterruptedException] { identifie...
public JsonWriter endArray() { if (!context.list()) { throw new IllegalStateException("Unexpected end, not in list."); } writer.write(']'); context = stack.pop(); return this; }
class class_name[name] begin[{] method[endArray, return_type[type[JsonWriter]], modifier[public], parameter[]] begin[{] if[call[context.list, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, s...
Keyword[public] identifier[JsonWriter] identifier[endArray] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[context] operator[SEP] identifier[list] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] lit...
static void unBindAll(Consumer<EntityManager> function) { final Map<EntityManagerFactory,EntityManager> entityManagerMap = entityManagerMap(false); if ( entityManagerMap != null ) { Iterator<EntityManager> iterator = entityManagerMap.values().iterator(); while (iterator.hasNext()...
class class_name[name] begin[{] method[unBindAll, return_type[void], modifier[static], parameter[function]] begin[{] local_variable[type[Map], entityManagerMap] if[binary_operation[member[.entityManagerMap], !=, literal[null]]] begin[{] local_variable[type[Iterator], iterato...
Keyword[static] Keyword[void] identifier[unBindAll] operator[SEP] identifier[Consumer] operator[<] identifier[EntityManager] operator[>] identifier[function] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[EntityManagerFactory] , identifier[EntityManager] operator[>] identifier[entityManag...
public void afterConfiguration(ErrorHandlingConfig errorHandlingConfig) { if (!errorProducerEnabled) return; this.errorHandlingConfig = errorHandlingConfig; //first create default-catchers ErrorCatcherConfig[] defaultCatcherConfigs = errorHandlingConfig.getDefaultCatchers(); if (defaultCatcherConfigs != ...
class class_name[name] begin[{] method[afterConfiguration, return_type[void], modifier[public], parameter[errorHandlingConfig]] begin[{] if[member[.errorProducerEnabled]] begin[{] return[None] else begin[{] None end[}] assign[THIS[member[None.errorHandlingConfig]...
Keyword[public] Keyword[void] identifier[afterConfiguration] operator[SEP] identifier[ErrorHandlingConfig] identifier[errorHandlingConfig] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[errorProducerEnabled] operator[SEP] Keyword[return] operator[SEP] Keyword[this] operator[SEP] identifier[erro...
public String getLastUpdatedString() { long newestTs = 0; for (UpdateSite s : sites) { if (s.getDataTimestamp()>newestTs) { newestTs = s.getDataTimestamp(); } } if (newestTs == 0) { return Messages.UpdateCenter_n_a(); } ...
class class_name[name] begin[{] method[getLastUpdatedString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[long], newestTs] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments...
Keyword[public] identifier[String] identifier[getLastUpdatedString] operator[SEP] operator[SEP] { Keyword[long] identifier[newestTs] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[UpdateSite] identifier[s] operator[:] identifier[sites] operator[SEP] { Keyword[if] operator[SE...
public static boolean nodeMatchesStep(Step s, String uri, String localName, String qName, Attributes a) { // if the name doesn't match, then we've got a loser if (!s.isMatchingName(uri, localName)) return false; // it's still in the game; check the predicates List l = s.getPredicates()...
class class_name[name] begin[{] method[nodeMatchesStep, return_type[type[boolean]], modifier[public static], parameter[s, uri, localName, qName, a]] begin[{] if[call[s.isMatchingName, parameter[member[.uri], member[.localName]]]] begin[{] return[literal[false]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[nodeMatchesStep] operator[SEP] identifier[Step] identifier[s] , identifier[String] identifier[uri] , identifier[String] identifier[localName] , identifier[String] identifier[qName] , identifier[Attributes] identifier[a] operator[SEP] { Keyword[if] o...
public Credentials getScopedCredentials() { Credentials credentialsToReturn = credentials; if (credentials instanceof GoogleCredentials && ((GoogleCredentials) credentials).createScopedRequired()) { credentialsToReturn = ((GoogleCredentials) credentials).createScoped(getScopes()); } return...
class class_name[name] begin[{] method[getScopedCredentials, return_type[type[Credentials]], modifier[public], parameter[]] begin[{] local_variable[type[Credentials], credentialsToReturn] if[binary_operation[binary_operation[member[.credentials], instanceof, type[GoogleCredentials]], &&...
Keyword[public] identifier[Credentials] identifier[getScopedCredentials] operator[SEP] operator[SEP] { identifier[Credentials] identifier[credentialsToReturn] operator[=] identifier[credentials] operator[SEP] Keyword[if] operator[SEP] identifier[credentials] Keyword[instanceof] identifier[GoogleCredentials] oper...
@InternalApi public void adapt(Delete delete, MutationApi<?> mutationApi) { Adapters.DELETE_ADAPTER.adapt(delete, mutationApi); }
class class_name[name] begin[{] method[adapt, return_type[void], modifier[public], parameter[delete, mutationApi]] begin[{] call[Adapters.DELETE_ADAPTER.adapt, parameter[member[.delete], member[.mutationApi]]] end[}] END[}]
annotation[@] identifier[InternalApi] Keyword[public] Keyword[void] identifier[adapt] operator[SEP] identifier[Delete] identifier[delete] , identifier[MutationApi] operator[<] operator[?] operator[>] identifier[mutationApi] operator[SEP] { identifier[Adapters] operator[SEP] identifier[DELETE_ADAPTER] operator[S...
public Observable<ServiceResponse<Void>> downloadWithServiceResponseAsync(String resourceGroupName, String virtualWANName, GetVpnSitesConfigurationRequest request) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and...
class class_name[name] begin[{] method[downloadWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, virtualWANName, request]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begi...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Void] operator[>] operator[>] identifier[downloadWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualWANName] , identifier[GetVpnSitesConfig...
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"}) public PagerFragment addFragment(String title, Fragment fragment) { this.mFragmentTitles.add(title); this.mFragments.add(fragment); return this; }
class class_name[name] begin[{] method[addFragment, return_type[type[PagerFragment]], modifier[public], parameter[title, fragment]] begin[{] THIS[member[None.mFragmentTitles]call[None.add, parameter[member[.title]]]] THIS[member[None.mFragments]call[None.add, parameter[member[.f...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] identifier[PagerFragment] identifier[addFragment] operator[SEP] identifier[String] identifier[title] , identifier[Fragment] identifier[fragment] operator[SEP] { Keyword[this] o...
public Observable<Page<ApplicationInsightsComponentInner>> listNextAsync(final String nextPageLink) { return listNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<ApplicationInsightsComponentInner>>, Page<ApplicationInsightsComponentInner>>() { @Override ...
class class_name[name] begin[{] method[listNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[ApplicationInsightsComponentInner] operator[>] operator[>] identifier[listNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listNextWithServiceRe...
public static double[] getEvenlySpacedRanks(final int n) { if (n <= 0) { throw new SketchesArgumentException("n must be > 0"); } final double[] fractions = new double[n]; fractions[0] = 0.0; for (int i = 1; i < n; i++) { fractions[i] = (double) i / (n - 1); } if (n > 1) { f...
class class_name[name] begin[{] method[getEvenlySpacedRanks, return_type[type[double]], modifier[public static], parameter[n]] begin[{] if[binary_operation[member[.n], <=, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[getEvenlySpacedRanks] operator[SEP] Keyword[final] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[<=] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[Sket...
@Override public void run() { long startTime = System.currentTimeMillis(); try { LOG.info("Starting the history thread ..."); while (!core.shutdownPending()) { checkRampUp(startTime); cleanUpHistory(); Thread.sleep(loopSleepTime); } LOG.info("History thread...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[long], startTime] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selector...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[long] identifier[startTime] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[LOG] operato...
public static Iterator<ImageReader> getImageReadersByFormatName(String formatName) { if (formatName == null) { throw new IllegalArgumentException("formatName == null!"); } Iterator iter; // Ensure category is present try { iter = theRegistry.getServiceProviders(ImageReaderSpi.class, new ContainsF...
class class_name[name] begin[{] method[getImageReadersByFormatName, return_type[type[Iterator]], modifier[public static], parameter[formatName]] begin[{] if[binary_operation[member[.formatName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[static] identifier[Iterator] operator[<] identifier[ImageReader] operator[>] identifier[getImageReadersByFormatName] operator[SEP] identifier[String] identifier[formatName] operator[SEP] { Keyword[if] operator[SEP] identifier[formatName] operator[==] Other[null] operator[SEP] { ...
static void register(BeanDefinitionRegistry registry, Set<Definition> definitions) { register(registry, SpockMockPostprocessor.class, definitions); }
class class_name[name] begin[{] method[register, return_type[void], modifier[static], parameter[registry, definitions]] begin[{] call[.register, parameter[member[.registry], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, di...
Keyword[static] Keyword[void] identifier[register] operator[SEP] identifier[BeanDefinitionRegistry] identifier[registry] , identifier[Set] operator[<] identifier[Definition] operator[>] identifier[definitions] operator[SEP] { identifier[register] operator[SEP] identifier[registry] , identifier[SpockMockPostpro...
public static PayPalAccountNonce fromJson(String jsonString) throws JSONException { JSONObject jsonObj = new JSONObject(jsonString); PayPalAccountNonce payPalAccountNonce = new PayPalAccountNonce(); if(jsonObj.has(PayPalAccountNonce.API_RESOURCE_KEY)) { payPalAccountNonce.fromJson(P...
class class_name[name] begin[{] method[fromJson, return_type[type[PayPalAccountNonce]], modifier[public static], parameter[jsonString]] begin[{] local_variable[type[JSONObject], jsonObj] local_variable[type[PayPalAccountNonce], payPalAccountNonce] if[call[jsonObj.has, parameter[...
Keyword[public] Keyword[static] identifier[PayPalAccountNonce] identifier[fromJson] operator[SEP] identifier[String] identifier[jsonString] operator[SEP] Keyword[throws] identifier[JSONException] { identifier[JSONObject] identifier[jsonObj] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] identifier...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <R> Observable<R> flatMapMaybe(Function<? super T, ? extends MaybeSource<? extends R>> mapper) { return flatMapMaybe(mapper, false); }
class class_name[name] begin[{] method[flatMapMaybe, return_type[type[Observable]], modifier[final public], parameter[mapper]] begin[{] return[call[.flatMapMaybe, parameter[member[.mapper], literal[false]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] operator[<] identifier[R] operator[>] identifier[Observable] operator[<] identifier[R] operator[>] identifier[flatM...
public ProvenancedConfusionMatrix<CellFiller> filteredCopy(Predicate<CellFiller> predicate) { final ImmutableTable.Builder<Symbol, Symbol, List<CellFiller>> newTable = ImmutableTable.builder(); for (final Cell<Symbol, Symbol, List<CellFiller>> curCell : table.cellSet()) { final List<CellFiller> n...
class class_name[name] begin[{] method[filteredCopy, return_type[type[ProvenancedConfusionMatrix]], modifier[public], parameter[predicate]] begin[{] local_variable[type[ImmutableTable], newTable] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], d...
Keyword[public] identifier[ProvenancedConfusionMatrix] operator[<] identifier[CellFiller] operator[>] identifier[filteredCopy] operator[SEP] identifier[Predicate] operator[<] identifier[CellFiller] operator[>] identifier[predicate] operator[SEP] { Keyword[final] identifier[ImmutableTable] operator[SEP] identifie...
public static <T extends MessageNano> Marshaller<T> marshaller(MessageNanoFactory<T> factory) { return new MessageMarshaller<>(factory); }
class class_name[name] begin[{] method[marshaller, return_type[type[Marshaller]], modifier[public static], parameter[factory]] begin[{] return[ClassCreator(arguments=[MemberReference(member=factory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_argum...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[MessageNano] operator[>] identifier[Marshaller] operator[<] identifier[T] operator[>] identifier[marshaller] operator[SEP] identifier[MessageNanoFactory] operator[<] identifier[T] operator[>] identifier[factory] operator[SEP] { ...
@Override public void initialize(JsMessagingEngine engine) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "initialize", engine); this._engine = engine; //Venu mock mock //This is needed for MELockOwner in PersistentMessage...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[engine]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc],...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[JsMessagingEngine] identifier[engine] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identi...
@Override public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException { Long limit = null; CurrencyPair currencyPair = null; Long offset = null; String sort = null; if (params instanceof TradeHistoryParamPaging) { limit = Long.valueOf(((TradeHistoryParamPaging) params)....
class class_name[name] begin[{] method[getTradeHistory, return_type[type[UserTrades]], modifier[public], parameter[params]] begin[{] local_variable[type[Long], limit] local_variable[type[CurrencyPair], currencyPair] local_variable[type[Long], offset] local_variable[type[String],...
annotation[@] identifier[Override] Keyword[public] identifier[UserTrades] identifier[getTradeHistory] operator[SEP] identifier[TradeHistoryParams] identifier[params] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Long] identifier[limit] operator[=] Other[null] operator[SEP] identifier[Currenc...
public static DateTime toDate(Object o, boolean alsoNumbers, TimeZone tz) throws PageException { return DateCaster.toDateAdvanced(o, alsoNumbers ? DateCaster.CONVERTING_TYPE_OFFSET : DateCaster.CONVERTING_TYPE_NONE, tz); }
class class_name[name] begin[{] method[toDate, return_type[type[DateTime]], modifier[public static], parameter[o, alsoNumbers, tz]] begin[{] return[call[DateCaster.toDateAdvanced, parameter[member[.o], TernaryExpression(condition=MemberReference(member=alsoNumbers, postfix_operators=[], prefix_operator...
Keyword[public] Keyword[static] identifier[DateTime] identifier[toDate] operator[SEP] identifier[Object] identifier[o] , Keyword[boolean] identifier[alsoNumbers] , identifier[TimeZone] identifier[tz] operator[SEP] Keyword[throws] identifier[PageException] { Keyword[return] identifier[DateCaster] operator[SEP] ...
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/bridge/2.0", name = "Bridge", substitutionHeadNamespace = "http://www.opengis.net/citygml/bridge/2.0", substitutionHeadName = "_AbstractBridge") public JAXBElement<BridgeType> createBridge(BridgeType value) { return new JAXBElement<BridgeType>(_Bri...
class class_name[name] begin[{] method[createBridge, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Bridge_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden...
public void validateVerification(int id, String code) { getResourceFactory().getApiResource("/hook/" + id + "/verify/validate") .entity(new HookValidate(code), MediaType.APPLICATION_JSON) .post(); }
class class_name[name] begin[{] method[validateVerification, return_type[void], modifier[public], parameter[id, code]] begin[{] call[.getResourceFactory, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[validateVerification] operator[SEP] Keyword[int] identifier[id] , identifier[String] identifier[code] operator[SEP] { identifier[getResourceFactory] operator[SEP] operator[SEP] operator[SEP] identifier[getApiResource] operator[SEP] literal[String] operator[+] identifier[...
public boolean track() { byte[] imageData = getImageData(); if (imageData == null) { return false; } if (trackFromImage(imageData)) { getGVRContext().getEventManager().sendEvent(this, TrackerEvents.class, "onTrackUpdate", this); ret...
class class_name[name] begin[{] method[track, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[byte], imageData] if[binary_operation[member[.imageData], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None ...
Keyword[public] Keyword[boolean] identifier[track] operator[SEP] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[imageData] operator[=] identifier[getImageData] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[imageData] operator[==] Other[null] operator[SEP] {...
public OperationFuture<DataCenter> claim(DataCenter dataCenter) { NetworkLink response = networkClient.claim( dataCenterService.findByRef(dataCenter).getId() ); return new OperationFuture<>( dataCenter, response.getOperationId(), ...
class class_name[name] begin[{] method[claim, return_type[type[OperationFuture]], modifier[public], parameter[dataCenter]] begin[{] local_variable[type[NetworkLink], response] return[ClassCreator(arguments=[MemberReference(member=dataCenter, postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] identifier[OperationFuture] operator[<] identifier[DataCenter] operator[>] identifier[claim] operator[SEP] identifier[DataCenter] identifier[dataCenter] operator[SEP] { identifier[NetworkLink] identifier[response] operator[=] identifier[networkClient] operator[SEP] identifier[claim] operator[SEP]...
public void marshall(HashKeyRange hashKeyRange, ProtocolMarshaller protocolMarshaller) { if (hashKeyRange == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hashKeyRange.getStartingHashKey(), STARTING...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[hashKeyRange, protocolMarshaller]] begin[{] if[binary_operation[member[.hashKeyRange], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_opera...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[HashKeyRange] identifier[hashKeyRange] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[hashKeyRange] operator[==] Other[null] operator[SEP] { Keyword[throw]...
public static Func0<Observable<Void>> toAsync(Action0 action) { return toAsync(action, Schedulers.computation()); }
class class_name[name] begin[{] method[toAsync, return_type[type[Func0]], modifier[public static], parameter[action]] begin[{] return[call[.toAsync, parameter[member[.action], call[Schedulers.computation, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Func0] operator[<] identifier[Observable] operator[<] identifier[Void] operator[>] operator[>] identifier[toAsync] operator[SEP] identifier[Action0] identifier[action] operator[SEP] { Keyword[return] identifier[toAsync] operator[SEP] identifier[action] , identifier[Sch...
private void loadCadidateString() { volumeUp = mGvrContext.getActivity().getResources().getString(R.string.volume_up); volumeDown = mGvrContext.getActivity().getResources().getString(R.string.volume_down); zoomIn = mGvrContext.getActivity().getResources().getString(R.string.zoom_in); zoo...
class class_name[name] begin[{] method[loadCadidateString, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.volumeUp], call[mGvrContext.getActivity, parameter[]]] assign[member[.volumeDown], call[mGvrContext.getActivity, parameter[]]] as...
Keyword[private] Keyword[void] identifier[loadCadidateString] operator[SEP] operator[SEP] { identifier[volumeUp] operator[=] identifier[mGvrContext] operator[SEP] identifier[getActivity] operator[SEP] operator[SEP] operator[SEP] identifier[getResources] operator[SEP] operator[SEP] operator[SEP] identifier[getStr...
public Long addProvideSubscriberLocationRequest(LocationType locationType, ISDNAddressString mlcNumber, LCSClientID lcsClientID, boolean privacyOverride, IMSI imsi, ISDNAddressString msisdn, LMSI lmsi, IMEI imei, LCSPriority lcsPriority, LCSQoS lcsQoS, MAPExtensionContainer extensionContainer, ...
class class_name[name] begin[{] method[addProvideSubscriberLocationRequest, return_type[type[Long]], modifier[public], parameter[locationType, mlcNumber, lcsClientID, privacyOverride, imsi, msisdn, lmsi, imei, lcsPriority, lcsQoS, extensionContainer, supportedGADShapes, lcsReferenceNumber, lcsServiceTypeID, lc...
Keyword[public] identifier[Long] identifier[addProvideSubscriberLocationRequest] operator[SEP] identifier[LocationType] identifier[locationType] , identifier[ISDNAddressString] identifier[mlcNumber] , identifier[LCSClientID] identifier[lcsClientID] , Keyword[boolean] identifier[privacyOverride] , identifier[IMSI] i...
public boolean moveTo(Vector3f location) { if (autonomousMovementControl != null) { ((AbstractControl) autonomousMovementControl).setEnabled(true); return autonomousMovementControl.moveTo(location); } return false; }
class class_name[name] begin[{] method[moveTo, return_type[type[boolean]], modifier[public], parameter[location]] begin[{] if[binary_operation[member[.autonomousMovementControl], !=, literal[null]]] begin[{] Cast(expression=MemberReference(member=autonomousMovementContro...
Keyword[public] Keyword[boolean] identifier[moveTo] operator[SEP] identifier[Vector3f] identifier[location] operator[SEP] { Keyword[if] operator[SEP] identifier[autonomousMovementControl] operator[!=] Other[null] operator[SEP] { operator[SEP] operator[SEP] identifier[AbstractControl] operator[SEP] ide...
public static com.liferay.commerce.discount.model.CommerceDiscountUserSegmentRel createCommerceDiscountUserSegmentRel( long commerceDiscountUserSegmentRelId) { return getService() .createCommerceDiscountUserSegmentRel(commerceDiscountUserSegmentRelId); }
class class_name[name] begin[{] method[createCommerceDiscountUserSegmentRel, return_type[type[com]], modifier[public static], parameter[commerceDiscountUserSegmentRelId]] begin[{] return[call[.getService, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[discount] operator[SEP] identifier[model] operator[SEP] identifier[CommerceDiscountUserSegmentRel] identifier[createCommerceDiscountUserSegmentRel] operator[SEP] Keyword[long] id...
public static <Key, Value> Aggregation<Key, Integer, Integer> integerSum() { return new AggregationAdapter(new IntegerSumAggregation<Key, Value>()); }
class class_name[name] begin[{] method[integerSum, return_type[type[Aggregation]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]...
Keyword[public] Keyword[static] operator[<] identifier[Key] , identifier[Value] operator[>] identifier[Aggregation] operator[<] identifier[Key] , identifier[Integer] , identifier[Integer] operator[>] identifier[integerSum] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[AggregationAdapte...
public static Range rangeOf(final String beginToken, final String endToken, final String string, final int fromIndex) { int begin = string.indexOf(beginToken, fromIndex); if (begin != -1) { int end = string.indexOf(endToken, begin + 1); if (end != -1) { ...
class class_name[name] begin[{] method[rangeOf, return_type[type[Range]], modifier[public static], parameter[beginToken, endToken, string, fromIndex]] begin[{] local_variable[type[int], begin] if[binary_operation[member[.begin], !=, literal[1]]] begin[{] local_variable[type[...
Keyword[public] Keyword[static] identifier[Range] identifier[rangeOf] operator[SEP] Keyword[final] identifier[String] identifier[beginToken] , Keyword[final] identifier[String] identifier[endToken] , Keyword[final] identifier[String] identifier[string] , Keyword[final] Keyword[int] identifier[fromIndex] operator[SEP...
public void setThreadContextLoader() { if (isContextLoaderSaved) { throw new BuildException("Context loader has not been reset"); } if (LoaderUtils.isContextLoaderAvailable()) { savedContextLoader = LoaderUtils.getContextClassLoader(); ClassLoader loader = thi...
class class_name[name] begin[{] method[setThreadContextLoader, return_type[void], modifier[public], parameter[]] begin[{] if[member[.isContextLoaderSaved]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, s...
Keyword[public] Keyword[void] identifier[setThreadContextLoader] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isContextLoaderSaved] operator[SEP] { Keyword[throw] Keyword[new] identifier[BuildException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Key...
public KeysAndAttributes withKeys(Key... keys) { if (getKeys() == null) setKeys(new java.util.ArrayList<Key>(keys.length)); for (Key value : keys) { getKeys().add(value); } return this; }
class class_name[name] begin[{] method[withKeys, return_type[type[KeysAndAttributes]], modifier[public], parameter[keys]] begin[{] if[binary_operation[call[.getKeys, parameter[]], ==, literal[null]]] begin[{] call[.setKeys, parameter[ClassCreator(arguments=[MemberReference(member=le...
Keyword[public] identifier[KeysAndAttributes] identifier[withKeys] operator[SEP] identifier[Key] operator[...] identifier[keys] operator[SEP] { Keyword[if] operator[SEP] identifier[getKeys] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] identifier[setKeys] operator[SEP] Keyword[new] identifie...
private boolean readyToRestore(T object, boolean valid) { try { boolean ready = false; try { ready = valid && poolObjectFactory.readyToRestore(object); } finally { if (!ready) { poolObjectFactory.destroy(object); ...
class class_name[name] begin[{] method[readyToRestore, return_type[type[boolean]], modifier[private], parameter[object, valid]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators...
Keyword[private] Keyword[boolean] identifier[readyToRestore] operator[SEP] identifier[T] identifier[object] , Keyword[boolean] identifier[valid] operator[SEP] { Keyword[try] { Keyword[boolean] identifier[ready] operator[=] literal[boolean] operator[SEP] Keyword[try] { identifier[ready]...
public void dump() { Object allData[] = new Object[] { this, "EJBName = " + ivEjbName, "method name = " + ivMethodName, ...
class class_name[name] begin[{] method[dump, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Object], allData] local_variable[type[int], totalLength] local_variable[type[String], interceptorOrder] if[binary_operation[member[.ivInterceptorOr...
Keyword[public] Keyword[void] identifier[dump] operator[SEP] operator[SEP] { identifier[Object] identifier[allData] operator[SEP] operator[SEP] operator[=] Keyword[new] identifier[Object] operator[SEP] operator[SEP] { Keyword[this] , literal[String] operator[+] identifier[ivEjbName] , literal[String...