code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static AVIMMessageIntervalBound createBound(String messageId, long timestamp, boolean closed) { return new AVIMMessageIntervalBound(messageId, timestamp, closed); }
class class_name[name] begin[{] method[createBound, return_type[type[AVIMMessageIntervalBound]], modifier[public static], parameter[messageId, timestamp, closed]] begin[{] return[ClassCreator(arguments=[MemberReference(member=messageId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] identifier[AVIMMessageIntervalBound] identifier[createBound] operator[SEP] identifier[String] identifier[messageId] , Keyword[long] identifier[timestamp] , Keyword[boolean] identifier[closed] operator[SEP] { Keyword[return] Keyword[new] identifier[AVIMMessageIntervalBound] opera...
private void parseResource(final Element resourceElement, final Collection<Resource> resources) { final String tagName = resourceElement.getTagName(); final String uri = resourceElement.getTextContent(); if (TAG_GROUP_REF.equals(tagName)) { // uri in this case is the group name resources.ad...
class class_name[name] begin[{] method[parseResource, return_type[void], modifier[private], parameter[resourceElement, resources]] begin[{] local_variable[type[String], tagName] local_variable[type[String], uri] if[call[TAG_GROUP_REF.equals, parameter[member[.tagName]]]] begin[{...
Keyword[private] Keyword[void] identifier[parseResource] operator[SEP] Keyword[final] identifier[Element] identifier[resourceElement] , Keyword[final] identifier[Collection] operator[<] identifier[Resource] operator[>] identifier[resources] operator[SEP] { Keyword[final] identifier[String] identifier[tagName] o...
private SSLContext createSSLContext() throws ClientSslSocketFactoryException { final KeyManager[] keyManagers = this.keyStore != null ? createKeyManagers() : null; final TrustManager[] trustManagers = this.trustStore != null ? createTrustManagers() : null; try { final SSLContext ssl...
class class_name[name] begin[{] method[createSSLContext, return_type[type[SSLContext]], modifier[private], parameter[]] begin[{] local_variable[type[KeyManager], keyManagers] local_variable[type[TrustManager], trustManagers] TryStatement(block=[LocalVariableDeclaration(annotations=[], d...
Keyword[private] identifier[SSLContext] identifier[createSSLContext] operator[SEP] operator[SEP] Keyword[throws] identifier[ClientSslSocketFactoryException] { Keyword[final] identifier[KeyManager] operator[SEP] operator[SEP] identifier[keyManagers] operator[=] Keyword[this] operator[SEP] identifier[keyStore] ope...
@Override public Result parse(Command cmd, InputStream input, ResultType type) { return parseResults(cmd, input, type); }
class class_name[name] begin[{] method[parse, return_type[type[Result]], modifier[public], parameter[cmd, input, type]] begin[{] return[call[.parseResults, parameter[member[.cmd], member[.input], member[.type]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Result] identifier[parse] operator[SEP] identifier[Command] identifier[cmd] , identifier[InputStream] identifier[input] , identifier[ResultType] identifier[type] operator[SEP] { Keyword[return] identifier[parseResults] operator[SEP] identifier[cmd] ...
private synchronized int findNewMapTask(final TaskTrackerStatus tts, final int clusterSize, final int numUniqueHosts, final int maxCacheLevel) { if (numMapTasks == 0) { if(LOG.isDebugE...
class class_name[name] begin[{] method[findNewMapTask, return_type[type[int]], modifier[synchronized private], parameter[tts, clusterSize, numUniqueHosts, maxCacheLevel]] begin[{] if[binary_operation[member[.numMapTasks], ==, literal[0]]] begin[{] if[call[LOG.isDebugEnab...
Keyword[private] Keyword[synchronized] Keyword[int] identifier[findNewMapTask] operator[SEP] Keyword[final] identifier[TaskTrackerStatus] identifier[tts] , Keyword[final] Keyword[int] identifier[clusterSize] , Keyword[final] Keyword[int] identifier[numUniqueHosts] , Keyword[final] Keyword[int] identifier[maxCacheLev...
public static SimpleTemplate getTemplate( String file ) { String templateText = templateData.get( file ); if ( templateText == null || !cacheTemplates ) { try (FileReader fr = new FileReader( file )) { templateText = SimpleTemplate.getStringFromStream( fr ); ...
class class_name[name] begin[{] method[getTemplate, return_type[type[SimpleTemplate]], modifier[public static], parameter[file]] begin[{] local_variable[type[String], templateText] if[binary_operation[binary_operation[member[.templateText], ==, literal[null]], ||, member[.cacheTemplates...
Keyword[public] Keyword[static] identifier[SimpleTemplate] identifier[getTemplate] operator[SEP] identifier[String] identifier[file] operator[SEP] { identifier[String] identifier[templateText] operator[=] identifier[templateData] operator[SEP] identifier[get] operator[SEP] identifier[file] operator[SEP] operator...
private void addActivation(MavenProfileDescriptor mavenProfileDescriptor, Activation activation, Store store) { if (null == activation) { return; } MavenProfileActivationDescriptor profileActivationDescriptor = store.create(MavenProfileActivationDescriptor.class); mavenProfil...
class class_name[name] begin[{] method[addActivation, return_type[void], modifier[private], parameter[mavenProfileDescriptor, activation, store]] begin[{] if[binary_operation[literal[null], ==, member[.activation]]] begin[{] return[None] else begin[{] None end[}] ...
Keyword[private] Keyword[void] identifier[addActivation] operator[SEP] identifier[MavenProfileDescriptor] identifier[mavenProfileDescriptor] , identifier[Activation] identifier[activation] , identifier[Store] identifier[store] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[activa...
protected void handleSimpleCORS( final HttpServletRequest request, final HttpServletResponse response, final FilterChain filterChain) throws IOException, ServletException { CorsFilter.CORSRequestType requestType = checkRequestType(request); if (!(requestT...
class class_name[name] begin[{] method[handleSimpleCORS, return_type[void], modifier[protected], parameter[request, response, filterChain]] begin[{] local_variable[type[CorsFilter], requestType] if[binary_operation[binary_operation[member[.requestType], ==, member[CorsFilter.CORSRequest...
Keyword[protected] Keyword[void] identifier[handleSimpleCORS] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[FilterChain] identifier[filterChain] operator[SEP] Keyword[throws] identifier[...
public long[] scanLeft(LongBinaryOperator accumulator) { Spliterator.OfLong spliterator = spliterator(); long size = spliterator.getExactSizeIfKnown(); LongBuffer buf = new LongBuffer(size >= 0 && size <= Integer.MAX_VALUE ? (int) size : INITIAL_SIZE); delegate(spliterator).forEachOr...
class class_name[name] begin[{] method[scanLeft, return_type[type[long]], modifier[public], parameter[accumulator]] begin[{] local_variable[type[Spliterator], spliterator] local_variable[type[long], size] local_variable[type[LongBuffer], buf] call[.delegate, parameter[me...
Keyword[public] Keyword[long] operator[SEP] operator[SEP] identifier[scanLeft] operator[SEP] identifier[LongBinaryOperator] identifier[accumulator] operator[SEP] { identifier[Spliterator] operator[SEP] identifier[OfLong] identifier[spliterator] operator[=] identifier[spliterator] operator[SEP] operator[SEP] oper...
@Override public boolean onMessage(String channel, IMessage<String, byte[]> msg) { if (msg instanceof UniversalIdStrMessage) { return onMessage(channel, (UniversalIdStrMessage) msg); } throw new IllegalArgumentException("This subscriber expects message of type [" ...
class class_name[name] begin[{] method[onMessage, return_type[type[boolean]], modifier[public], parameter[channel, msg]] begin[{] if[binary_operation[member[.msg], instanceof, type[UniversalIdStrMessage]]] begin[{] return[call[.onMessage, parameter[member[.channel], Cast(expression=...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[onMessage] operator[SEP] identifier[String] identifier[channel] , identifier[IMessage] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] ...
public Element svgRect(double x, double y, double w, double h) { return SVGUtil.svgRect(document, x, y, w, h); }
class class_name[name] begin[{] method[svgRect, return_type[type[Element]], modifier[public], parameter[x, y, w, h]] begin[{] return[call[SVGUtil.svgRect, parameter[member[.document], member[.x], member[.y], member[.w], member[.h]]]] end[}] END[}]
Keyword[public] identifier[Element] identifier[svgRect] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[w] , Keyword[double] identifier[h] operator[SEP] { Keyword[return] identifier[SVGUtil] operator[SEP] identifier[svgRect] operator[SEP] identifier[doc...
private static PatternLayoutEncoder createPatternLayoutEncoder(LoggerContext context, String patternProperty) { final String pattern = context.getProperty(patternProperty); final PatternLayoutEncoder patternLayoutEncoder = new PatternLayoutEncoder(); patternLayoutEncoder.setContext(context); patternLayo...
class class_name[name] begin[{] method[createPatternLayoutEncoder, return_type[type[PatternLayoutEncoder]], modifier[private static], parameter[context, patternProperty]] begin[{] local_variable[type[String], pattern] local_variable[type[PatternLayoutEncoder], patternLayoutEncoder] ...
Keyword[private] Keyword[static] identifier[PatternLayoutEncoder] identifier[createPatternLayoutEncoder] operator[SEP] identifier[LoggerContext] identifier[context] , identifier[String] identifier[patternProperty] operator[SEP] { Keyword[final] identifier[String] identifier[pattern] operator[=] identifier[conte...
@Override public <C extends Configuration<K, V>> C getConfiguration(Class<C> clazz) { throw new UnsupportedOperationException(); }
class class_name[name] begin[{] method[getConfiguration, return_type[type[C]], modifier[public], parameter[clazz]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Refe...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[C] Keyword[extends] identifier[Configuration] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[C] identifier[getConfiguration] operator[SEP] identifier[Class] operator[<] identifier[C] operator[>] identifier[clazz] op...
private int getOrAppendVertex(Coordinate newCoord, Quadtree ptQuad) { Envelope queryEnv = new Envelope(newCoord); queryEnv.expandBy(epsilon); QuadTreeVisitor visitor = new QuadTreeVisitor(epsilon, newCoord); try { ptQuad.query(queryEnv, visitor); } catch (RuntimeExcep...
class class_name[name] begin[{] method[getOrAppendVertex, return_type[type[int]], modifier[private], parameter[newCoord, ptQuad]] begin[{] local_variable[type[Envelope], queryEnv] call[queryEnv.expandBy, parameter[member[.epsilon]]] local_variable[type[QuadTreeVisitor], visitor]...
Keyword[private] Keyword[int] identifier[getOrAppendVertex] operator[SEP] identifier[Coordinate] identifier[newCoord] , identifier[Quadtree] identifier[ptQuad] operator[SEP] { identifier[Envelope] identifier[queryEnv] operator[=] Keyword[new] identifier[Envelope] operator[SEP] identifier[newCoord] operator[SEP]...
@Override GroupReplyList write_attribute_reply_i(final int rid, final int tmo, final boolean fwd) throws DevFailed { final Integer rid_obj = new Integer(rid); final GroupReplyList rl = new GroupReplyList(); final AsynchRequest ar = arp.get(rid_obj); if (ar == null) { final DevError[] errors = new DevError[...
class class_name[name] begin[{] method[write_attribute_reply_i, return_type[type[GroupReplyList]], modifier[default], parameter[rid, tmo, fwd]] begin[{] local_variable[type[Integer], rid_obj] local_variable[type[GroupReplyList], rl] local_variable[type[AsynchRequest], ar] ...
annotation[@] identifier[Override] identifier[GroupReplyList] identifier[write_attribute_reply_i] operator[SEP] Keyword[final] Keyword[int] identifier[rid] , Keyword[final] Keyword[int] identifier[tmo] , Keyword[final] Keyword[boolean] identifier[fwd] operator[SEP] Keyword[throws] identifier[DevFailed] { Keywo...
public static final String read(ReadableByteChannel ch, int length, Charset charset) throws IOException { return new String(read(ch, length), charset); }
class class_name[name] begin[{] method[read, return_type[type[String]], modifier[final public static], parameter[ch, length, charset]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem...
Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[read] operator[SEP] identifier[ReadableByteChannel] identifier[ch] , Keyword[int] identifier[length] , identifier[Charset] identifier[charset] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] Keyword[new] identi...
protected String serializeNowFromMap(@Nullable String user, long duration, @Nullable List<String> roles, Map<String, Object> nameAndValMap) { return serializeNowFromMap(user, duration, toArr(roles), nameAndValMap); }
class class_name[name] begin[{] method[serializeNowFromMap, return_type[type[String]], modifier[protected], parameter[user, duration, roles, nameAndValMap]] begin[{] return[call[.serializeNowFromMap, parameter[member[.user], member[.duration], call[.toArr, parameter[member[.roles]]], member[.nameAndVal...
Keyword[protected] identifier[String] identifier[serializeNowFromMap] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[user] , Keyword[long] identifier[duration] , annotation[@] identifier[Nullable] identifier[List] operator[<] identifier[String] operator[>] identifier[roles] , identifi...
public static WorkQueue getWorkQueue(Type type, int nThreads) { switch(type) { case Simple: return new SimpleWorkQueue(nThreads); case Multi: return new MultiWorkQueue(nThreads); //case WorkStealing: default: return new MultiWorkQueue(nThreads); } }
class class_name[name] begin[{] method[getWorkQueue, return_type[type[WorkQueue]], modifier[public static], parameter[type, nThreads]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['Simple'], statements=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=nThreads, pos...
Keyword[public] Keyword[static] identifier[WorkQueue] identifier[getWorkQueue] operator[SEP] identifier[Type] identifier[type] , Keyword[int] identifier[nThreads] operator[SEP] { Keyword[switch] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[Simple] operator[:] Keyword[retur...
public synchronized void initialize(ContainerConfig configData) throws CSIException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2 if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "initialize"); if (initialized) { throw new CSIException...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[synchronized public], parameter[configData]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.e...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[initialize] operator[SEP] identifier[ContainerConfig] identifier[configData] operator[SEP] Keyword[throws] identifier[CSIException] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifie...
public com.google.protobuf.ByteString getJobNameBytes() { java.lang.Object ref = jobName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobName_ = b; return b; ...
class class_name[name] begin[{] method[getJobNameBytes, return_type[type[com]], modifier[public], parameter[]] begin[{] local_variable[type[java], ref] if[binary_operation[member[.ref], instanceof, type[java]]] begin[{] local_variable[type[com], b] as...
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[protobuf] operator[SEP] identifier[ByteString] identifier[getJobNameBytes] operator[SEP] operator[SEP] { identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Object] identifier[ref] operator[=] identifie...
private static void statFile(String fname) { try { Path path = Paths.get(new URI(fname)); long size = Files.size(path); System.out.println(fname + ": " + size + " bytes."); } catch (Exception ex) { System.out.println(fname + ": " + ex.toString()); } }
class class_name[name] begin[{] method[statFile, return_type[void], modifier[private static], parameter[fname]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassCreator(arguments=[MemberRefe...
Keyword[private] Keyword[static] Keyword[void] identifier[statFile] operator[SEP] identifier[String] identifier[fname] operator[SEP] { Keyword[try] { identifier[Path] identifier[path] operator[=] identifier[Paths] operator[SEP] identifier[get] operator[SEP] Keyword[new] identifier[URI] operator[SEP] i...
@Override protected void run() throws Exception { final ResourceLoader resourceLoader = new MojoResourceLoader(getRuntimeRealm(), getScriptpath()); final Map<String, Object> context = createContext(); final Map<String, Object> options = Maps.newHashMap(); final ShellRunner shell = getRuntime().createS...
class class_name[name] begin[{] method[run, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[ResourceLoader], resourceLoader] local_variable[type[Map], context] local_variable[type[Map], options] local_variable[type[ShellRunner], shell] ...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[run] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[ResourceLoader] identifier[resourceLoader] operator[=] Keyword[new] identifier[MojoResourceLoader] operator[SEP] identifier[getRuntimeR...
public void installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_PUT(String templateName, String schemeName, String name, OvhHardwareRaid body) throws IOException { String qPath = "/me/installationTemplate/{templateName}/partitionScheme/{schemeName}/hardwareRaid/{name}"; StringBuilder sb =...
class class_name[name] begin[{] method[installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_PUT, return_type[void], modifier[public], parameter[templateName, schemeName, name, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] ...
Keyword[public] Keyword[void] identifier[installationTemplate_templateName_partitionScheme_schemeName_hardwareRaid_name_PUT] operator[SEP] identifier[String] identifier[templateName] , identifier[String] identifier[schemeName] , identifier[String] identifier[name] , identifier[OvhHardwareRaid] identifier[body] opera...
private static BufferedImage rgbToBuffered(MagickImage pImage, boolean pAlpha) throws MagickException { Dimension size = pImage.getDimension(); int length = size.width * size.height; int bands = pAlpha ? 4 : 3; byte[] pixels = new byte[length * bands]; // TODO: If we do mu...
class class_name[name] begin[{] method[rgbToBuffered, return_type[type[BufferedImage]], modifier[private static], parameter[pImage, pAlpha]] begin[{] local_variable[type[Dimension], size] local_variable[type[int], length] local_variable[type[int], bands] local_variable[type[byte...
Keyword[private] Keyword[static] identifier[BufferedImage] identifier[rgbToBuffered] operator[SEP] identifier[MagickImage] identifier[pImage] , Keyword[boolean] identifier[pAlpha] operator[SEP] Keyword[throws] identifier[MagickException] { identifier[Dimension] identifier[size] operator[=] identifier[pImage] op...
private void assembleDissectorPhases() throws InvalidDissectorException { for (final Dissector dissector : allDissectors) { final String inputType = dissector.getInputType(); if (inputType == null) { throw new InvalidDissectorException("Dissector returns null on getInputT...
class class_name[name] begin[{] method[assembleDissectorPhases, return_type[void], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argum...
Keyword[private] Keyword[void] identifier[assembleDissectorPhases] operator[SEP] operator[SEP] Keyword[throws] identifier[InvalidDissectorException] { Keyword[for] operator[SEP] Keyword[final] identifier[Dissector] identifier[dissector] operator[:] identifier[allDissectors] operator[SEP] { Keyword[fi...
public ServiceFuture<TopologyInner> getTopologyAsync(String resourceGroupName, String networkWatcherName, TopologyParameters parameters, final ServiceCallback<TopologyInner> serviceCallback) { return ServiceFuture.fromResponse(getTopologyWithServiceResponseAsync(resourceGroupName, networkWatcherName, parameters...
class class_name[name] begin[{] method[getTopologyAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, networkWatcherName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getTopologyWithServiceResponseAsync, parameter[mem...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[TopologyInner] operator[>] identifier[getTopologyAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkWatcherName] , identifier[TopologyParameters] identifier[parameters] , Keyword[final] identifi...
public static long parseSignedLong(CharSequence s, final int start, final int end) throws NumberFormatException { if (s.charAt(start) == '-') { // negative! return -parseUnsignedLong(s, start + 1, end); } else { return parseUnsignedLong(s, start, end); } ...
class class_name[name] begin[{] method[parseSignedLong, return_type[type[long]], modifier[public static], parameter[s, start, end]] begin[{] if[binary_operation[call[s.charAt, parameter[member[.start]]], ==, literal['-']]] begin[{] return[call[.parseUnsignedLong, parameter[member[.s...
Keyword[public] Keyword[static] Keyword[long] identifier[parseSignedLong] operator[SEP] identifier[CharSequence] identifier[s] , Keyword[final] Keyword[int] identifier[start] , Keyword[final] Keyword[int] identifier[end] operator[SEP] Keyword[throws] identifier[NumberFormatException] { Keyword[if] operator[SEP...
public Date parseDate(String str) { if (str == null) return null; try { return dateFormat.parse(str); } catch (ParseException e) { throw new RuntimeException(e); } }
class class_name[name] begin[{] method[parseDate, return_type[type[Date]], modifier[public], parameter[str]] begin[{] if[binary_operation[member[.str], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] TryStatement(block=[ReturnStatement(expres...
Keyword[public] identifier[Date] identifier[parseDate] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[try] { Keyword[return] identifier[dateFormat] opera...
public int doMove(int iRelPosition) throws DBException { Object objData = m_pTable.move(iRelPosition, this); if (objData instanceof BaseBuffer) { this.setDataSource(objData); return Constants.NORMAL_RETURN; // Normal return } else if (objData instanc...
class class_name[name] begin[{] method[doMove, return_type[type[int]], modifier[public], parameter[iRelPosition]] begin[{] local_variable[type[Object], objData] if[binary_operation[member[.objData], instanceof, type[BaseBuffer]]] begin[{] THIS[call[None.setDataSo...
Keyword[public] Keyword[int] identifier[doMove] operator[SEP] Keyword[int] identifier[iRelPosition] operator[SEP] Keyword[throws] identifier[DBException] { identifier[Object] identifier[objData] operator[=] identifier[m_pTable] operator[SEP] identifier[move] operator[SEP] identifier[iRelPosition] , Keyword[this...
public Map<String, Map<String, Map<String, Map<String, ?>>>> validationConstraints(String type) { return getEntity(invokeGet(Utils.formatMessage("_constraints/{0}", type), null), Map.class); }
class class_name[name] begin[{] method[validationConstraints, return_type[type[Map]], modifier[public], parameter[type]] begin[{] return[call[.getEntity, parameter[call[.invokeGet, parameter[call[Utils.formatMessage, parameter[literal["_constraints/{0}"], member[.type]]], literal[null]]], ClassReferenc...
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...
void fillPage(final int position) { if (Constants.DEBUG) { Log.d("InfiniteViewPager", "setup Page " + position); printPageModels("before newPage"); } final PageModel<T> oldModel = mPageModels[position]; final PageModel<T> newModel = createPageModel(position); ...
class class_name[name] begin[{] method[fillPage, return_type[void], modifier[default], parameter[position]] begin[{] if[member[Constants.DEBUG]] begin[{] call[Log.d, parameter[literal["InfiniteViewPager"], binary_operation[literal["setup Page "], +, member[.position]]]] ...
Keyword[void] identifier[fillPage] operator[SEP] Keyword[final] Keyword[int] identifier[position] operator[SEP] { Keyword[if] operator[SEP] identifier[Constants] operator[SEP] identifier[DEBUG] operator[SEP] { identifier[Log] operator[SEP] identifier[d] operator[SEP] literal[String] , literal[String]...
public java.util.List<ChapInfo> getChapCredentials() { if (chapCredentials == null) { chapCredentials = new com.amazonaws.internal.SdkInternalList<ChapInfo>(); } return chapCredentials; }
class class_name[name] begin[{] method[getChapCredentials, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.chapCredentials], ==, literal[null]]] begin[{] assign[member[.chapCredentials], ClassCreator(arguments=[], body=None, c...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[ChapInfo] operator[>] identifier[getChapCredentials] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[chapCredentials] operator[==] Other[null] operator[SEP] { identi...
@Override public ServiceInstance vote(List<ServiceInstance> instances) { if (instances.isEmpty()) { return null; } int i = index.getAndIncrement(); int pos = i % instances.size(); ServiceInstance instance = instances.get(pos); return instance; }
class class_name[name] begin[{] method[vote, return_type[type[ServiceInstance]], modifier[public], parameter[instances]] begin[{] if[call[instances.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[int], i] ...
annotation[@] identifier[Override] Keyword[public] identifier[ServiceInstance] identifier[vote] operator[SEP] identifier[List] operator[<] identifier[ServiceInstance] operator[>] identifier[instances] operator[SEP] { Keyword[if] operator[SEP] identifier[instances] operator[SEP] identifier[isEmpty] operator[SEP] ...
public String getMdwVersion() throws IOException { if (mdwVersion == null) { YamlProperties yaml = getProjectYaml(); if (yaml != null) { mdwVersion = yaml.getString(Props.ProjectYaml.MDW_VERSION); } } return mdwVersion; }
class class_name[name] begin[{] method[getMdwVersion, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.mdwVersion], ==, literal[null]]] begin[{] local_variable[type[YamlProperties], yaml] if[binary_operation[membe...
Keyword[public] identifier[String] identifier[getMdwVersion] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[mdwVersion] operator[==] Other[null] operator[SEP] { identifier[YamlProperties] identifier[yaml] operator[=] identifier[getProjectYaml...
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE(String serviceName, String clusterId, String allowedNetworkId) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}"; StringBuilder sb = path(qPath, serviceName, c...
class class_name[name] begin[{] method[serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE, return_type[type[OvhOperation]], modifier[public], parameter[serviceName, clusterId, allowedNetworkId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], s...
Keyword[public] identifier[OvhOperation] identifier[serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[clusterId] , identifier[String] identifier[allowedNetworkId] operator[SEP] Keyword[throws] identifier[IOExc...
static String decryptMessageElement(OmemoElement element, CipherAndAuthTag cipherAndAuthTag) throws CryptoFailedException { if (!element.isMessageElement()) { throw new IllegalArgumentException("decryptMessageElement cannot decrypt OmemoElement which is no MessageElement!"); } ...
class class_name[name] begin[{] method[decryptMessageElement, return_type[type[String]], modifier[static], parameter[element, cipherAndAuthTag]] begin[{] if[call[element.isMessageElement, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat...
Keyword[static] identifier[String] identifier[decryptMessageElement] operator[SEP] identifier[OmemoElement] identifier[element] , identifier[CipherAndAuthTag] identifier[cipherAndAuthTag] operator[SEP] Keyword[throws] identifier[CryptoFailedException] { Keyword[if] operator[SEP] operator[!] identifier[element] ...
private synchronized void emitRecords() throws IOException { for (String recordName : bufferedData.keySet()) { RecordMap recordMap = bufferedData.get(recordName); synchronized (recordMap) { Set<Entry<TagMap, MetricMap>> entrySet = recordMap.entrySet (); for (Entry<TagMap, MetricMap>...
class class_name[name] begin[{] method[emitRecords, return_type[void], modifier[synchronized private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argu...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[emitRecords] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] identifier[String] identifier[recordName] operator[:] identifier[bufferedData] operator[SEP] identifier[keySet] operator[SEP] operator[SEP...
private void tryBackgroundEnter(boolean focused) { if (mBackground == null) { mBackground = new RippleBackground(this, mHotspotBounds); } mBackground.setup(mState.mMaxRadius, mDensity); mBackground.enter(focused); }
class class_name[name] begin[{] method[tryBackgroundEnter, return_type[void], modifier[private], parameter[focused]] begin[{] if[binary_operation[member[.mBackground], ==, literal[null]]] begin[{] assign[member[.mBackground], ClassCreator(arguments=[This(postfix_operator...
Keyword[private] Keyword[void] identifier[tryBackgroundEnter] operator[SEP] Keyword[boolean] identifier[focused] operator[SEP] { Keyword[if] operator[SEP] identifier[mBackground] operator[==] Other[null] operator[SEP] { identifier[mBackground] operator[=] Keyword[new] identifier[RippleBackground] oper...
@Override public final <RQ, RS> Maybe<RS> postFor(String resource, RQ rq, Class<RS> clazz) throws RestEndpointIOException { return post(resource, rq, clazz).flatMap(new BodyTransformer<RS>()); }
class class_name[name] begin[{] method[postFor, return_type[type[Maybe]], modifier[final public], parameter[resource, rq, clazz]] begin[{] return[call[.post, parameter[member[.resource], member[.rq], member[.clazz]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[final] operator[<] identifier[RQ] , identifier[RS] operator[>] identifier[Maybe] operator[<] identifier[RS] operator[>] identifier[postFor] operator[SEP] identifier[String] identifier[resource] , identifier[RQ] identifier[rq] , identifier[Class] operator[<] ...
private void buildTargetPanel() { setUpUtilBar(); panel.add(utilBar); panel.add(heading); panel.add(panelContentRO); panel.add(menu); }
class class_name[name] begin[{] method[buildTargetPanel, return_type[void], modifier[private], parameter[]] begin[{] call[.setUpUtilBar, parameter[]] call[panel.add, parameter[member[.utilBar]]] call[panel.add, parameter[member[.heading]]] call[pa...
Keyword[private] Keyword[void] identifier[buildTargetPanel] operator[SEP] operator[SEP] { identifier[setUpUtilBar] operator[SEP] operator[SEP] operator[SEP] identifier[panel] operator[SEP] identifier[add] operator[SEP] identifier[utilBar] operator[SEP] operator[SEP] identifier[panel] operator[SEP] identifier[add...
void submit() { try { OpenCms.getSiteManager().updateGeneralSettings( m_cms, ((CmsSite)m_fieldDefaultURI.getValue()).getSiteRoot(), getWebserverList(), "/" + (String)m_fieldSharedFolder.getValue() + "/"); if (!CmsEditSiteFo...
class class_name[name] begin[{] method[submit, return_type[void], modifier[default], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getSiteManager, postfix_operators=[], prefix_operators=[], qualifier=OpenCms, selectors=[MethodInvocation(a...
Keyword[void] identifier[submit] operator[SEP] operator[SEP] { Keyword[try] { identifier[OpenCms] operator[SEP] identifier[getSiteManager] operator[SEP] operator[SEP] operator[SEP] identifier[updateGeneralSettings] operator[SEP] identifier[m_cms] , operator[SEP] operator[SEP] identifier[CmsSite] oper...
@SuppressWarnings("null") public static void assertEquals(final Object one, final Object two, final StatusType status) { if ((one == null) && (two == null)) { return; } RESTAssert.assertNotNull(one, status); RESTAssert.assertTrue(one.equals(two), status); }
class class_name[name] begin[{] method[assertEquals, return_type[void], modifier[public static], parameter[one, two, status]] begin[{] if[binary_operation[binary_operation[member[.one], ==, literal[null]], &&, binary_operation[member[.two], ==, literal[null]]]] begin[{] return[None]...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[assertEquals] operator[SEP] Keyword[final] identifier[Object] identifier[one] , Keyword[final] identifier[Object] identifier[two] , Keyword[final] identifier[StatusType] iden...
private HashMap<String, DBIDs> multipleAssignment(Relation<?> data) { HashMap<String, DBIDs> labelMap = new HashMap<>(); for(DBIDIter iditer = data.iterDBIDs(); iditer.valid(); iditer.advance()) { String[] labels = data.get(iditer).toString().split(" "); for(String label : labels) { assign(...
class class_name[name] begin[{] method[multipleAssignment, return_type[type[HashMap]], modifier[private], parameter[data]] begin[{] local_variable[type[HashMap], labelMap] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
Keyword[private] identifier[HashMap] operator[<] identifier[String] , identifier[DBIDs] operator[>] identifier[multipleAssignment] operator[SEP] identifier[Relation] operator[<] operator[?] operator[>] identifier[data] operator[SEP] { identifier[HashMap] operator[<] identifier[String] , identifier[DBIDs] opera...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Maybe<T> doAfterTerminate(Action onAfterTerminate) { return RxJavaPlugins.onAssembly(new MaybePeek<T>(this, Functions.emptyConsumer(), // onSubscribe Functions.emptyConsumer(), // onSuccess ...
class class_name[name] begin[{] method[doAfterTerminate, return_type[type[Maybe]], modifier[final public], parameter[onAfterTerminate]] begin[{] return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MethodI...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Maybe] operator[<] identifier[T] operator[>] identifier[doAfterTerminate] operator[SEP] identifier[Actio...
public BaseDataJsonFieldBo setData(String data) { setAttribute(ATTR_DATA, data != null ? data.trim() : "{}"); return this; }
class class_name[name] begin[{] method[setData, return_type[type[BaseDataJsonFieldBo]], modifier[public], parameter[data]] begin[{] call[.setAttribute, parameter[member[.ATTR_DATA], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=data, postfix_operators=[], prefix_op...
Keyword[public] identifier[BaseDataJsonFieldBo] identifier[setData] operator[SEP] identifier[String] identifier[data] operator[SEP] { identifier[setAttribute] operator[SEP] identifier[ATTR_DATA] , identifier[data] operator[!=] Other[null] operator[?] identifier[data] operator[SEP] identifier[trim] operator[SEP]...
private void rule3() { if (parent instanceof XsdSchema && attributesMap.containsKey(REF_TAG)){ throw new ParsingException(XSD_TAG + " element: The " + REF_TAG + " attribute cannot be present when the parent of the " + xsdElementIsXsdSchema); } }
class class_name[name] begin[{] method[rule3, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[binary_operation[member[.parent], instanceof, type[XsdSchema]], &&, call[attributesMap.containsKey, parameter[member[.REF_TAG]]]]] begin[{] ThrowStatement(ex...
Keyword[private] Keyword[void] identifier[rule3] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[parent] Keyword[instanceof] identifier[XsdSchema] operator[&&] identifier[attributesMap] operator[SEP] identifier[containsKey] operator[SEP] identifier[REF_TAG] operator[SEP] operator[SEP] { ...
public static void delete(final File file, final boolean ignoreFailures) { if (file.isDirectory()) { final File[] files = file.listFiles(); if (null != files) { for (final File f : files) { delete(f, ignoreFailur...
class class_name[name] begin[{] method[delete, return_type[void], modifier[public static], parameter[file, ignoreFailures]] begin[{] if[call[file.isDirectory, parameter[]]] begin[{] local_variable[type[File], files] if[binary_operation[literal[null], !=, memb...
Keyword[public] Keyword[static] Keyword[void] identifier[delete] operator[SEP] Keyword[final] identifier[File] identifier[file] , Keyword[final] Keyword[boolean] identifier[ignoreFailures] operator[SEP] { Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[isDirectory] operator[SEP] operator[SEP...
public TrainingJobDefinition withHyperParameters(java.util.Map<String, String> hyperParameters) { setHyperParameters(hyperParameters); return this; }
class class_name[name] begin[{] method[withHyperParameters, return_type[type[TrainingJobDefinition]], modifier[public], parameter[hyperParameters]] begin[{] call[.setHyperParameters, parameter[member[.hyperParameters]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[TrainingJobDefinition] identifier[withHyperParameters] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[hyperParameters] operator[SEP] { identifier[setHyperParameters]...
public void updateDialog(SIPDialog sipDialog) throws SipCacheException { Node dialogNode = ((Node) dialogRootNode.getChild(Fqn.fromString(sipDialog.getDialogId()))); if(dialogNode != null) { if(dialogNode != null) { sipDialog = (SIPDialog) dialogNode.get(sipDialog.getDialogId()); } } }
class class_name[name] begin[{] method[updateDialog, return_type[void], modifier[public], parameter[sipDialog]] begin[{] local_variable[type[Node], dialogNode] if[binary_operation[member[.dialogNode], !=, literal[null]]] begin[{] if[binary_operation[member[.dialo...
Keyword[public] Keyword[void] identifier[updateDialog] operator[SEP] identifier[SIPDialog] identifier[sipDialog] operator[SEP] Keyword[throws] identifier[SipCacheException] { identifier[Node] identifier[dialogNode] operator[=] operator[SEP] operator[SEP] identifier[Node] operator[SEP] identifier[dialogRootNode] ...
public OvhReceiversAsynchronousCleanReport serviceName_receivers_slotId_clean_POST(String serviceName, Long slotId, Boolean freemium, Boolean priceOnly) throws IOException { String qPath = "/sms/{serviceName}/receivers/{slotId}/clean"; StringBuilder sb = path(qPath, serviceName, slotId); HashMap<String, Object>o ...
class class_name[name] begin[{] method[serviceName_receivers_slotId_clean_POST, return_type[type[OvhReceiversAsynchronousCleanReport]], modifier[public], parameter[serviceName, slotId, freemium, priceOnly]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] ...
Keyword[public] identifier[OvhReceiversAsynchronousCleanReport] identifier[serviceName_receivers_slotId_clean_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[Long] identifier[slotId] , identifier[Boolean] identifier[freemium] , identifier[Boolean] identifier[priceOnly] operator[SEP] Keywo...
private Map<String, ColumnDefinition> makeColumnMap(ColumnDefinition[] columns) { Map<String, ColumnDefinition> map = new HashMap<String, ColumnDefinition>(); for (ColumnDefinition def : columns) { map.put(def.getName(), def); } return map; }
class class_name[name] begin[{] method[makeColumnMap, return_type[type[Map]], modifier[private], parameter[columns]] begin[{] local_variable[type[Map], map] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argum...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[ColumnDefinition] operator[>] identifier[makeColumnMap] operator[SEP] identifier[ColumnDefinition] operator[SEP] operator[SEP] identifier[columns] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[ColumnDefin...
public boolean isValidOffset(ZoneOffset offset) { return isGap() ? false : (getOffsetBefore().equals(offset) || getOffsetAfter().equals(offset)); }
class class_name[name] begin[{] method[isValidOffset, return_type[type[boolean]], modifier[public], parameter[offset]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=isGap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_f...
Keyword[public] Keyword[boolean] identifier[isValidOffset] operator[SEP] identifier[ZoneOffset] identifier[offset] operator[SEP] { Keyword[return] identifier[isGap] operator[SEP] operator[SEP] operator[?] literal[boolean] operator[:] operator[SEP] identifier[getOffsetBefore] operator[SEP] operator[SEP] operator...
public void marshall(ExecutionProperty executionProperty, ProtocolMarshaller protocolMarshaller) { if (executionProperty == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(executionProperty.getMaxConc...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[executionProperty, protocolMarshaller]] begin[{] if[binary_operation[member[.executionProperty], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ExecutionProperty] identifier[executionProperty] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[executionProperty] operator[==] Other[null] operator[SEP] { ...
private static void buildRanges() { // careful, no lead zeros allowed // low high len vendor mod-10? ranges = new LCR[] { new LCR(4000000000000L, 4999999999999L, 13, VISA, true), new LCR(30000000000000L, 30599999999999L, 14, DINERS, true), new LCR(36000000000000L, 36999999999999L, 14, DINERS, true), new LCR(380000...
class class_name[name] begin[{] method[buildRanges, return_type[void], modifier[private static], parameter[]] begin[{] assign[member[.ranges], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qu...
Keyword[private] Keyword[static] Keyword[void] identifier[buildRanges] operator[SEP] operator[SEP] { identifier[ranges] operator[=] Keyword[new] identifier[LCR] operator[SEP] operator[SEP] { Keyword[new] identifier[LCR] operator[SEP] Other[4000000000000L] , Other[4999999999999L] , Other[13] , ident...
public void resolveAssociations(final E data, final int maxDepth) { SQLiteDatabase database = openDB(); try { new DatabaseResolver(context, database).resolve(data, 0, maxDepth); } finally { closeDB(database); } }
class class_name[name] begin[{] method[resolveAssociations, return_type[void], modifier[public], parameter[data, maxDepth]] begin[{] local_variable[type[SQLiteDatabase], database] TryStatement(block=[StatementExpression(expression=ClassCreator(arguments=[MemberReference(member=context, postfix_...
Keyword[public] Keyword[void] identifier[resolveAssociations] operator[SEP] Keyword[final] identifier[E] identifier[data] , Keyword[final] Keyword[int] identifier[maxDepth] operator[SEP] { identifier[SQLiteDatabase] identifier[database] operator[=] identifier[openDB] operator[SEP] operator[SEP] operator[SEP] Ke...
public Observable<ServiceResponse<List<DomainTopicInner>>> listByDomainWithServiceResponseAsync(String resourceGroupName, String domainName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); ...
class class_name[name] begin[{] method[listByDomainWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, domainName]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[DomainTopicInner] operator[>] operator[>] operator[>] identifier[listByDomainWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] i...
public static JCas getJCas(final Annotation annotation) { JCas result = null; try { result = annotation.getCAS().getJCas(); } catch (final CASException e) { throw new IllegalArgumentException(e); } return result; }
class class_name[name] begin[{] method[getJCas, return_type[type[JCas]], modifier[public static], parameter[annotation]] begin[{] local_variable[type[JCas], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], pre...
Keyword[public] Keyword[static] identifier[JCas] identifier[getJCas] operator[SEP] Keyword[final] identifier[Annotation] identifier[annotation] operator[SEP] { identifier[JCas] identifier[result] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[result] operator[=] identifier[annotation]...
public static Schema arrayOf(Schema componentSchema) { return new Schema(Type.ARRAY, null, componentSchema, null, null, null, null, null); }
class class_name[name] begin[{] method[arrayOf, return_type[type[Schema]], modifier[public static], parameter[componentSchema]] begin[{] return[ClassCreator(arguments=[MemberReference(member=ARRAY, postfix_operators=[], prefix_operators=[], qualifier=Type, selectors=[]), Literal(postfix_operators=[], p...
Keyword[public] Keyword[static] identifier[Schema] identifier[arrayOf] operator[SEP] identifier[Schema] identifier[componentSchema] operator[SEP] { Keyword[return] Keyword[new] identifier[Schema] operator[SEP] identifier[Type] operator[SEP] identifier[ARRAY] , Other[null] , identifier[componentSchema] , Other...
private String loadTemplateFile(String templateName) { String name = templateName.replace('.', '/') + ".java"; InputStream in = SpoonMojoGenerate.class.getClassLoader().getResourceAsStream(name); String packageName = templateName.substring(0, templateName.lastIndexOf('.')); String fileName = templateName.substr...
class class_name[name] begin[{] method[loadTemplateFile, return_type[type[String]], modifier[private], parameter[templateName]] begin[{] local_variable[type[String], name] local_variable[type[InputStream], in] local_variable[type[String], packageName] local_variable[type[String]...
Keyword[private] identifier[String] identifier[loadTemplateFile] operator[SEP] identifier[String] identifier[templateName] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[templateName] operator[SEP] identifier[replace] operator[SEP] literal[String] , literal[String] operator[SEP] oper...
protected static final String printable(String s) { if (s == null) return "null"; StringBuffer retval = new StringBuffer(s.length() + 16); retval.append("'"); @SuppressWarnings("unused") char ch; for (int i = 0; i < s.length(); i++) { addPrintable(retval, s.charAt(i)); } retval.append("'"); retu...
class class_name[name] begin[{] method[printable, return_type[type[String]], modifier[final static protected], parameter[s]] begin[{] if[binary_operation[member[.s], ==, literal[null]]] begin[{] return[literal["null"]] else begin[{] None end[}] local_variable[type[String...
Keyword[protected] Keyword[static] Keyword[final] identifier[String] identifier[printable] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[SEP] Keyword[return] literal[String] operator[SEP] identifier[StringBuffer] identifie...
public void decode(AsnInputStream ais) throws ParseException { try { AsnInputStream localAis = ais.readSequenceStream(); int tag = localAis.readTag(); if (tag != _TAG_DTX || localAis.getTagClass() != Tag.CLASS_APPLICATION) throw new ParseException(PAbortCause...
class class_name[name] begin[{] method[decode, return_type[void], modifier[public], parameter[ais]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=readSequenceStream, postfix_operator...
Keyword[public] Keyword[void] identifier[decode] operator[SEP] identifier[AsnInputStream] identifier[ais] operator[SEP] Keyword[throws] identifier[ParseException] { Keyword[try] { identifier[AsnInputStream] identifier[localAis] operator[=] identifier[ais] operator[SEP] identifier[readSequenceStream] o...
public void marshall(Mp4Settings mp4Settings, ProtocolMarshaller protocolMarshaller) { if (mp4Settings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(mp4Settings.getCslgAtom(), CSLGATOM_BINDING); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[mp4Settings, protocolMarshaller]] begin[{] if[binary_operation[member[.mp4Settings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operato...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Mp4Settings] identifier[mp4Settings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[mp4Settings] operator[==] Other[null] operator[SEP] { Keyword[throw] Ke...
public Object doMove(int iRelPosition, int iRecordCount) throws DBException, RemoteException { boolean bShouldBeCached = (((m_iOpenMode & Constants.OPEN_CACHE_RECORDS) == Constants.OPEN_CACHE_RECORDS) || ((m_iOpenMode & Constants.OPEN_READ_ONLY) == Constants.OPEN_READ_ONLY)); if (!bS...
class class_name[name] begin[{] method[doMove, return_type[type[Object]], modifier[public], parameter[iRelPosition, iRecordCount]] begin[{] local_variable[type[boolean], bShouldBeCached] if[member[.bShouldBeCached]] begin[{] assign[member[.m_objCurrentPhysicalRec...
Keyword[public] identifier[Object] identifier[doMove] operator[SEP] Keyword[int] identifier[iRelPosition] , Keyword[int] identifier[iRecordCount] operator[SEP] Keyword[throws] identifier[DBException] , identifier[RemoteException] { Keyword[boolean] identifier[bShouldBeCached] operator[=] operator[SEP] operator...
@Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> paketDependenciesFiles) { boolean installSuccess = true; Collection<DependencyInfo> dependencies = new ArrayList<>(); List<String> excludes = new LinkedList<>(); if (pake...
class class_name[name] begin[{] method[resolveDependencies, return_type[type[ResolutionResult]], modifier[protected], parameter[projectFolder, topLevelFolder, paketDependenciesFiles]] begin[{] local_variable[type[boolean], installSuccess] local_variable[type[Collection], dependencies] l...
annotation[@] identifier[Override] Keyword[protected] identifier[ResolutionResult] identifier[resolveDependencies] operator[SEP] identifier[String] identifier[projectFolder] , identifier[String] identifier[topLevelFolder] , identifier[Set] operator[<] identifier[String] operator[>] identifier[paketDependenciesFiles] ...
public void setSummaryColumnStyleAndScope(HtmlTree thTree) { thTree.addStyle(HtmlStyle.colSecond); thTree.addAttr(HtmlAttr.SCOPE, "row"); }
class class_name[name] begin[{] method[setSummaryColumnStyleAndScope, return_type[void], modifier[public], parameter[thTree]] begin[{] call[thTree.addStyle, parameter[member[HtmlStyle.colSecond]]] call[thTree.addAttr, parameter[member[HtmlAttr.SCOPE], literal["row"]]] end[}]...
Keyword[public] Keyword[void] identifier[setSummaryColumnStyleAndScope] operator[SEP] identifier[HtmlTree] identifier[thTree] operator[SEP] { identifier[thTree] operator[SEP] identifier[addStyle] operator[SEP] identifier[HtmlStyle] operator[SEP] identifier[colSecond] operator[SEP] operator[SEP] identifier[thTree...
private static List<Object> dataBagToRepeatedField(Builder containingMessageBuilder, FieldDescriptor fieldDescriptor, DataBag bag) { ArrayList<Object> bagContents = new ArrayList<Object>((int)bag.size()); Iterator<Tuple> bagIter = bag.iterator(); while (bagIter.hasNext()) { Tuple tuple = bagIter.next...
class class_name[name] begin[{] method[dataBagToRepeatedField, return_type[type[List]], modifier[private static], parameter[containingMessageBuilder, fieldDescriptor, bag]] begin[{] local_variable[type[ArrayList], bagContents] local_variable[type[Iterator], bagIter] while[call[b...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Object] operator[>] identifier[dataBagToRepeatedField] operator[SEP] identifier[Builder] identifier[containingMessageBuilder] , identifier[FieldDescriptor] identifier[fieldDescriptor] , identifier[DataBag] identifier[bag] operator[SEP] { ...
@Override public Object visit(Before before, Object extraData) { String propertyName = getPropertyName(before.getExpression1()); String finalName = parsePropertyName(propertyName, before); Object literal = getLiteralValue(before.getExpression2()); if (literal instanceof Date) { return Restrictions.lt(finalN...
class class_name[name] begin[{] method[visit, return_type[type[Object]], modifier[public], parameter[before, extraData]] begin[{] local_variable[type[String], propertyName] local_variable[type[String], finalName] local_variable[type[Object], literal] if[binary_operation[...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[visit] operator[SEP] identifier[Before] identifier[before] , identifier[Object] identifier[extraData] operator[SEP] { identifier[String] identifier[propertyName] operator[=] identifier[getPropertyName] operator[SEP] identifier[befo...
public static <T> Object callMethod(Object obj, Class<T> c, String name, Class<?>[] classes, Object[] args) { try { Method m = getMethod(c, ...
class class_name[name] begin[{] method[callMethod, return_type[type[Object]], modifier[public static], parameter[obj, c, name, classes, args]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Mem...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Object] identifier[callMethod] operator[SEP] identifier[Object] identifier[obj] , identifier[Class] operator[<] identifier[T] operator[>] identifier[c] , identifier[String] identifier[name] , identifier[Class] operator[<] operator[?] op...
public static long millis(final String time, final String timeUnit) { return TIMEUNITS.get(timeUnit).toMillis(Long.parseLong(time)); }
class class_name[name] begin[{] method[millis, return_type[type[long]], modifier[public static], parameter[time, timeUnit]] begin[{] return[call[TIMEUNITS.get, parameter[member[.timeUnit]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[long] identifier[millis] operator[SEP] Keyword[final] identifier[String] identifier[time] , Keyword[final] identifier[String] identifier[timeUnit] operator[SEP] { Keyword[return] identifier[TIMEUNITS] operator[SEP] identifier[get] operator[SEP] identifier[timeUnit] operat...
public void updateStructure() { if (size() > 1) { Collections.sort(this); m_projectFile.getChildTasks().clear(); Task lastTask = null; int lastLevel = -1; boolean autoWbs = m_projectFile.getProjectConfig().getAutoWBS(); boolean autoOutlineNumber = m_...
class class_name[name] begin[{] method[updateStructure, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[.size, parameter[]], >, literal[1]]] begin[{] call[Collections.sort, parameter[THIS[]]] call[m_projectFile....
Keyword[public] Keyword[void] identifier[updateStructure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[1] operator[SEP] { identifier[Collections] operator[SEP] identifier[sort] operator[SEP] Keyword[this] operator[SEP] operator[...
public void addSummary(Record recSummary, BaseField[][] mxKeyFields, BaseField[][] mxDataFields) { try { recSummary.addNew(); // First move the key to see if a record exists this.setupSummaryKey(mxKeyFields); boolean bSuccess = recSummary.seek("="); ...
class class_name[name] begin[{] method[addSummary, return_type[void], modifier[public], parameter[recSummary, mxKeyFields, mxDataFields]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=addNew, postfix_operators=[], prefix_operators=[], qualifier=recSum...
Keyword[public] Keyword[void] identifier[addSummary] operator[SEP] identifier[Record] identifier[recSummary] , identifier[BaseField] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[mxKeyFields] , identifier[BaseField] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[mxDataFields] ...
public void marshall(ListBillingGroupsRequest listBillingGroupsRequest, ProtocolMarshaller protocolMarshaller) { if (listBillingGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listBil...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listBillingGroupsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listBillingGroupsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListBillingGroupsRequest] identifier[listBillingGroupsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listBillingGroupsRequest] operator[==] Other[null] opera...
public Query orderby(final Collection<? extends Expression> orderbyColumns) { if (orderbyColumns == null) { return this; } this.orderbyColumns.addAll(orderbyColumns); return this; }
class class_name[name] begin[{] method[orderby, return_type[type[Query]], modifier[public], parameter[orderbyColumns]] begin[{] if[binary_operation[member[.orderbyColumns], ==, literal[null]]] begin[{] return[THIS[]] else begin[{] None end[}] THIS[mem...
Keyword[public] identifier[Query] identifier[orderby] operator[SEP] Keyword[final] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[Expression] operator[>] identifier[orderbyColumns] operator[SEP] { Keyword[if] operator[SEP] identifier[orderbyColumns] operator[==] Other[null] operator[S...
public <T, U> U forStream( String fileName, Class<T> clazz, Map<String, Object> params, Function<? super Stream<T>, U> handleStream) { String sql = getTemplate(fileName, params); SqlParameterSource sps = paramBuilder.byMap(params); RowMapper<T> map...
class class_name[name] begin[{] method[forStream, return_type[type[U]], modifier[public], parameter[fileName, clazz, params, handleStream]] begin[{] local_variable[type[String], sql] local_variable[type[SqlParameterSource], sps] local_variable[type[RowMapper], mapper] return[cal...
Keyword[public] operator[<] identifier[T] , identifier[U] operator[>] identifier[U] identifier[forStream] operator[SEP] identifier[String] identifier[fileName] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>...
public static List<String> splitLines( final String content ) { if (content == null || content.length() == 0) return Collections.emptyList(); String[] lines = content.split("[\\r]?\\n"); return Arrays.asList(lines); }
class class_name[name] begin[{] method[splitLines, return_type[type[List]], modifier[public static], parameter[content]] begin[{] if[binary_operation[binary_operation[member[.content], ==, literal[null]], ||, binary_operation[call[content.length, parameter[]], ==, literal[0]]]] begin[{] return[...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[splitLines] operator[SEP] Keyword[final] identifier[String] identifier[content] operator[SEP] { Keyword[if] operator[SEP] identifier[content] operator[==] Other[null] operator[||] identifier[content] operator[S...
public void setAtlasInformation(List<GVRAtlasInformation> atlasInformation) { if ((mImage != null) && (mImage instanceof GVRImageAtlas)) { ((GVRImageAtlas) mImage).setAtlasInformation(atlasInformation); } }
class class_name[name] begin[{] method[setAtlasInformation, return_type[void], modifier[public], parameter[atlasInformation]] begin[{] if[binary_operation[binary_operation[member[.mImage], !=, literal[null]], &&, binary_operation[member[.mImage], instanceof, type[GVRImageAtlas]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setAtlasInformation] operator[SEP] identifier[List] operator[<] identifier[GVRAtlasInformation] operator[>] identifier[atlasInformation] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[mImage] operator[!=] Other[null] operator[SEP] operator[&&] operator...
public void init(Record record, Record recordToSync, boolean bUpdateOnSelect) { super.init(record, null, recordToSync, bUpdateOnSelect, DBConstants.SELECT_TYPE); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[record, recordToSync, bUpdateOnSelect]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=record, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_oper...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Record] identifier[record] , identifier[Record] identifier[recordToSync] , Keyword[boolean] identifier[bUpdateOnSelect] operator[SEP] { Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[record] , Other[null] , identi...
public String logDirectoryStem() { if (tc.isEntryEnabled()) Tr.entry(tc, "logDirectoryStem", this); if (tc.isEntryEnabled()) Tr.exit(tc, "logDirectoryStem", _logDirectoryStem); return _logDirectoryStem; }
class class_name[name] begin[{] method[logDirectoryStem, return_type[type[String]], modifier[public], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["logDirectoryStem"], THIS[]]] else begin[{] None ...
Keyword[public] identifier[String] identifier[logDirectoryStem] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] ...
public String readString() throws IOException { StringBuilder result = new StringBuilder(); while (true) { int c = r.read(); if (c < 0) { throw new IllegalStateException("Premature end of stream"); } else if (c == '"') { break; } else if (c == '\\') { int c2 = r.read(); if (c2 == '"' || ...
class class_name[name] begin[{] method[readString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], result] while[literal[true]] begin[{] local_variable[type[int], c] if[binary_operation[member[.c]...
Keyword[public] identifier[String] identifier[readString] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[StringBuilder] identifier[result] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] literal[boolean] o...
public static void cublasZswap(int n, Pointer x, int incx, Pointer y, int incy) { cublasZswapNative(n, x, incx, y, incy); checkResultBLAS(); }
class class_name[name] begin[{] method[cublasZswap, return_type[void], modifier[public static], parameter[n, x, incx, y, incy]] begin[{] call[.cublasZswapNative, parameter[member[.n], member[.x], member[.incx], member[.y], member[.incy]]] call[.checkResultBLAS, parameter[]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[cublasZswap] operator[SEP] Keyword[int] identifier[n] , identifier[Pointer] identifier[x] , Keyword[int] identifier[incx] , identifier[Pointer] identifier[y] , Keyword[int] identifier[incy] operator[SEP] { identifier[cublasZswapNative] operator[SEP] id...
public static ModelLoader load(InputStream stream) throws IOException { JsonNode tree = MAPPER.readTree(stream); JsonNode version = tree.get("FormatVersion"); if (version == null || !version.isObject()) { throw new IllegalStateException("No FormatVersion found"); } J...
class class_name[name] begin[{] method[load, return_type[type[ModelLoader]], modifier[public static], parameter[stream]] begin[{] local_variable[type[JsonNode], tree] local_variable[type[JsonNode], version] if[binary_operation[binary_operation[member[.version], ==, literal[null]...
Keyword[public] Keyword[static] identifier[ModelLoader] identifier[load] operator[SEP] identifier[InputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[JsonNode] identifier[tree] operator[=] identifier[MAPPER] operator[SEP] identifier[readTree] operator[SEP] identifie...
@Override public Set<URI> listInputs(URI operationUri) { if (operationUri == null || !operationUri.isAbsolute()) { log.warn("The Operation URI is either absent or relative. Provide an absolute URI"); return ImmutableSet.of(); } URI graphUri; try { ...
class class_name[name] begin[{] method[listInputs, return_type[type[Set]], modifier[public], parameter[operationUri]] begin[{] if[binary_operation[binary_operation[member[.operationUri], ==, literal[null]], ||, call[operationUri.isAbsolute, parameter[]]]] begin[{] call[l...
annotation[@] identifier[Override] Keyword[public] identifier[Set] operator[<] identifier[URI] operator[>] identifier[listInputs] operator[SEP] identifier[URI] identifier[operationUri] operator[SEP] { Keyword[if] operator[SEP] identifier[operationUri] operator[==] Other[null] operator[||] operator[!] identifier[...
private MappingManager createMappingManager(String securityDomain) throws Exception { int i = mappingManagerClassName.lastIndexOf(":"); if (i == -1) throw SecurityLogger.ROOT_LOGGER.missingModuleName("mapping manager class"); String moduleSpec = mappingManagerClassName.substring(0, i...
class class_name[name] begin[{] method[createMappingManager, return_type[type[MappingManager]], modifier[private], parameter[securityDomain]] begin[{] local_variable[type[int], i] if[binary_operation[member[.i], ==, literal[1]]] begin[{] ThrowStatement(expression=MethodInvocation(argume...
Keyword[private] identifier[MappingManager] identifier[createMappingManager] operator[SEP] identifier[String] identifier[securityDomain] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[i] operator[=] identifier[mappingManagerClassName] operator[SEP] identifier[lastIndexOf] operator[...
public final void notifyReceiveExclusiveChange(boolean newValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notifyReceiveExclusiveChange", new Boolean(newValue)); boolean notifyConsumers = true; synchronized (consumerPoints) { _cardinalityOne = new...
class class_name[name] begin[{] method[notifyReceiveExclusiveChange, return_type[void], modifier[final public], parameter[newValue]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.ent...
Keyword[public] Keyword[final] Keyword[void] identifier[notifyReceiveExclusiveChange] operator[SEP] Keyword[boolean] identifier[newValue] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] oper...
public String lset(Object key, long index, Object value) { Jedis jedis = getJedis(); try { return jedis.lset(keyToBytes(key), index, valueToBytes(value)); } finally {close(jedis);} }
class class_name[name] begin[{] method[lset, return_type[type[String]], modifier[public], parameter[key, index, value]] begin[{] local_variable[type[Jedis], jedis] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=key, ...
Keyword[public] identifier[String] identifier[lset] operator[SEP] identifier[Object] identifier[key] , Keyword[long] identifier[index] , identifier[Object] identifier[value] operator[SEP] { identifier[Jedis] identifier[jedis] operator[=] identifier[getJedis] operator[SEP] operator[SEP] operator[SEP] Keyword[tr...
public boolean isValidSignature(final Key key) { final byte[] computedHmac = key.sign(getVersion(), getTimestamp(), getInitializationVector(), getCipherText()); return Arrays.equals(getHmac(), computedHmac); }
class class_name[name] begin[{] method[isValidSignature, return_type[type[boolean]], modifier[public], parameter[key]] begin[{] local_variable[type[byte], computedHmac] return[call[Arrays.equals, parameter[call[.getHmac, parameter[]], member[.computedHmac]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isValidSignature] operator[SEP] Keyword[final] identifier[Key] identifier[key] operator[SEP] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[computedHmac] operator[=] identifier[key] operator[SEP] identifier[sign] operator[SEP] identifier[getVersi...
public Observable<ServiceResponse<Page<ManagedBackupShortTermRetentionPolicyInner>>> listByDatabaseNextSinglePageAsync(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null."); } String nextU...
class class_name[name] begin[{] method[listByDatabaseNextSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] if[binary_operation[member[.nextPageLink], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lite...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[ManagedBackupShortTermRetentionPolicyInner] operator[>] operator[>] operator[>] identifier[listByDatabaseNextSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[next...
public List<EntitySummary> getEntitiesFromApplication(String brooklynId) throws IOException { Invocation invocation = getJerseyClient().target(getEndpoint() + "/v1/applications/" + brooklynId + "/entities") .request().buildGet(); return invocation.invoke().readEntity(new GenericType<Lis...
class class_name[name] begin[{] method[getEntitiesFromApplication, return_type[type[List]], modifier[public], parameter[brooklynId]] begin[{] local_variable[type[Invocation], invocation] return[call[invocation.invoke, parameter[]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[EntitySummary] operator[>] identifier[getEntitiesFromApplication] operator[SEP] identifier[String] identifier[brooklynId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Invocation] identifier[invocation] operator[=] identifier[getJerseyC...
protected final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition) { if (condition instanceof SpringBootCondition) { return ((SpringBootCondition) condition).getMatchOutcome(context, metadata) .isMatch(); } return condition.matches(context, metadata); }
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[final protected], parameter[context, metadata, condition]] begin[{] if[binary_operation[member[.condition], instanceof, type[SpringBootCondition]]] begin[{] return[Cast(expression=MemberReference(me...
Keyword[protected] Keyword[final] Keyword[boolean] identifier[matches] operator[SEP] identifier[ConditionContext] identifier[context] , identifier[AnnotatedTypeMetadata] identifier[metadata] , identifier[Condition] identifier[condition] operator[SEP] { Keyword[if] operator[SEP] identifier[condition] Keyword[in...
@SuppressWarnings("signature") // conversion routine protected static @ClassGetName String typeToClassGetName(Type t) { if (t instanceof ObjectType) { return ((ObjectType) t).getClassName(); } else if (t instanceof BasicType) { // Use reserved keyword for basic type rather than signature to ...
class class_name[name] begin[{] method[typeToClassGetName, return_type[type[String]], modifier[static protected], parameter[t]] begin[{] if[binary_operation[member[.t], instanceof, type[ObjectType]]] begin[{] return[Cast(expression=MemberReference(member=t, postfix_operators=[], pre...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[static] annotation[@] identifier[ClassGetName] identifier[String] identifier[typeToClassGetName] operator[SEP] identifier[Type] identifier[t] operator[SEP] { Keyword[if] operator[SEP] identifier[t] K...
public OkRequest<T> form(final Map.Entry<String, String> entry) { return form(entry, CHARSET_UTF8); }
class class_name[name] begin[{] method[form, return_type[type[OkRequest]], modifier[public], parameter[entry]] begin[{] return[call[.form, parameter[member[.entry], member[.CHARSET_UTF8]]]] end[}] END[}]
Keyword[public] identifier[OkRequest] operator[<] identifier[T] operator[>] identifier[form] operator[SEP] Keyword[final] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] identifier[entry] operator[SEP] { Keyword[return] identifier[form] operator[SE...
public final static double roundToDecimals(double d, int c) { if(c < 0) return d; double p = Math.pow(10,c); d = d * p; double tmp = Math.round(d); return tmp/p; }
class class_name[name] begin[{] method[roundToDecimals, return_type[type[double]], modifier[final public static], parameter[d, c]] begin[{] if[binary_operation[member[.c], <, literal[0]]] begin[{] return[member[.d]] else begin[{] None end[}] local_variable[type[double], ...
Keyword[public] Keyword[final] Keyword[static] Keyword[double] identifier[roundToDecimals] operator[SEP] Keyword[double] identifier[d] , Keyword[int] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[c] operator[<] Other[0] operator[SEP] Keyword[return] identifier[d] operator[SEP] Keyword[doubl...
private void setScrollbarVisible(boolean visible) { if (visible) { getElement().getStyle().clearWidth(); m_knob.getStyle().clearDisplay(); } else { getElement().getStyle().setWidth(0, Unit.PX); m_knob.getStyle().setDisplay(Display.NONE); }...
class class_name[name] begin[{] method[setScrollbarVisible, return_type[void], modifier[private], parameter[visible]] begin[{] if[member[.visible]] begin[{] call[.getElement, parameter[]] call[m_knob.getStyle, parameter[]] else begin[{] ...
Keyword[private] Keyword[void] identifier[setScrollbarVisible] operator[SEP] Keyword[boolean] identifier[visible] operator[SEP] { Keyword[if] operator[SEP] identifier[visible] operator[SEP] { identifier[getElement] operator[SEP] operator[SEP] operator[SEP] identifier[getStyle] operator[SEP] operator[S...
public boolean prefixMatchLists( String[] prefixes, String[] keys ) { // The prefixes are part of the server resources. If none is given, // everything matches if ( prefixes == null ) { return true; } // If no os keyes was given, and the server resource is...
class class_name[name] begin[{] method[prefixMatchLists, return_type[type[boolean]], modifier[public], parameter[prefixes, keys]] begin[{] if[binary_operation[member[.prefixes], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] ...
Keyword[public] Keyword[boolean] identifier[prefixMatchLists] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[prefixes] , identifier[String] operator[SEP] operator[SEP] identifier[keys] operator[SEP] { Keyword[if] operator[SEP] identifier[prefixes] operator[==] Other[null] operator[SEP] ...
protected Class<?> determineContextClass(PortletContext portletContext) { String contextClassName = portletContext.getInitParameter(CONTEXT_CLASS_PARAM); if (contextClassName != null) { try { return ClassUtils.forName(contextClassName, ClassUtils.getDefaultClassLoader()); ...
class class_name[name] begin[{] method[determineContextClass, return_type[type[Class]], modifier[protected], parameter[portletContext]] begin[{] local_variable[type[String], contextClassName] if[binary_operation[member[.contextClassName], !=, literal[null]]] begin[{] TryStat...
Keyword[protected] identifier[Class] operator[<] operator[?] operator[>] identifier[determineContextClass] operator[SEP] identifier[PortletContext] identifier[portletContext] operator[SEP] { identifier[String] identifier[contextClassName] operator[=] identifier[portletContext] operator[SEP] identifier[getInitPar...
public <X> X get(String namespaceURI, String localPart){ return get(namespaceURI, localPart, (X)null); }
class class_name[name] begin[{] method[get, return_type[type[X]], modifier[public], parameter[namespaceURI, localPart]] begin[{] return[call[.get, parameter[member[.namespaceURI], member[.localPart], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=...
Keyword[public] operator[<] identifier[X] operator[>] identifier[X] identifier[get] operator[SEP] identifier[String] identifier[namespaceURI] , identifier[String] identifier[localPart] operator[SEP] { Keyword[return] identifier[get] operator[SEP] identifier[namespaceURI] , identifier[localPart] , operator[SEP...
static public long writeFile(ucar.nc2.dt.GridDataset gds, List<String> gridList, LatLonRect llbb, ProjectionRect projRect, int horizStride, Range zRange, CalendarDateRange dateRange, int stride_time, boolean addLatLon, NetcdfFileWriter writer...
class class_name[name] begin[{] method[writeFile, return_type[type[long]], modifier[public static], parameter[gds, gridList, llbb, projRect, horizStride, zRange, dateRange, stride_time, addLatLon, writer]] begin[{] local_variable[type[CFGridWriter2], writer2] return[call[writer2.writeOrTestSize...
Keyword[static] Keyword[public] Keyword[long] identifier[writeFile] operator[SEP] identifier[ucar] operator[SEP] identifier[nc2] operator[SEP] identifier[dt] operator[SEP] identifier[GridDataset] identifier[gds] , identifier[List] operator[<] identifier[String] operator[>] identifier[gridList] , identifier[LatLonRect...
protected int rearrangePoints(int[] indices, final int startidx, final int endidx, final int splitDim, final double splitVal) { int tmp, left = startidx - 1; for (int i = startidx; i <= endidx; i++) { if (m_EuclideanDistance.valueIsSmallerEqual(m_Instances .instance(indices[i...
class class_name[name] begin[{] method[rearrangePoints, return_type[type[int]], modifier[protected], parameter[indices, startidx, endidx, splitDim, splitVal]] begin[{] local_variable[type[int], tmp] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(...
Keyword[protected] Keyword[int] identifier[rearrangePoints] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[indices] , Keyword[final] Keyword[int] identifier[startidx] , Keyword[final] Keyword[int] identifier[endidx] , Keyword[final] Keyword[int] identifier[splitDim] , Keyword[final] Keyword[doubl...
private void resizeElementArrays(int dataLength, int newLength) { Object temp; int usedLength = newLength > dataLength ? dataLength : newLength; if (isIntKey) { temp = intKeyTable; intKeyTable = new int[newLen...
class class_name[name] begin[{] method[resizeElementArrays, return_type[void], modifier[private], parameter[dataLength, newLength]] begin[{] local_variable[type[Object], temp] local_variable[type[int], usedLength] if[member[.isIntKey]] begin[{] assign[mem...
Keyword[private] Keyword[void] identifier[resizeElementArrays] operator[SEP] Keyword[int] identifier[dataLength] , Keyword[int] identifier[newLength] operator[SEP] { identifier[Object] identifier[temp] operator[SEP] Keyword[int] identifier[usedLength] operator[=] identifier[newLength] operator[>] identifier[dat...
@Override public void writeGraphFiles(BenchmarkReport benchmarkReport) { List<Map<String, XYSeries>> constraintIdToWeightSeriesMapList = new ArrayList<>(BenchmarkReport.CHARTED_SCORE_LEVEL_SIZE); for (ConstraintMatchTotalBestScoreStatisticPoint point : getPointList()) { l...
class class_name[name] begin[{] method[writeGraphFiles, return_type[void], modifier[public], parameter[benchmarkReport]] begin[{] local_variable[type[List], constraintIdToWeightSeriesMapList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], decla...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeGraphFiles] operator[SEP] identifier[BenchmarkReport] identifier[benchmarkReport] operator[SEP] { identifier[List] operator[<] identifier[Map] operator[<] identifier[String] , identifier[XYSeries] operator[>] operator[>] identifier...