code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void setSSLPort() throws InstallationFailedException { Element httpsConnector = (Element) getDocument() .selectSingleNode(HTTPS_CONNECTOR_XPATH); if (options.getBooleanValue(InstallOptions.SSL_AVAILABLE, true)) { if (httpsConnector == null) { ...
class class_name[name] begin[{] method[setSSLPort, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Element], httpsConnector] if[call[options.getBooleanValue, parameter[member[InstallOptions.SSL_AVAILABLE], literal[true]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setSSLPort] operator[SEP] operator[SEP] Keyword[throws] identifier[InstallationFailedException] { identifier[Element] identifier[httpsConnector] operator[=] operator[SEP] identifier[Element] operator[SEP] identifier[getDocument] operator[SEP] operator[SEP] operator[SEP] i...
public void writeUncommitted(SIMPMessage m) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "writeUncommitted", new Object[] { m }); TickRange tr = null; JsMessage jsMsg = m.getMessage(); ...
class class_name[name] begin[{] method[writeUncommitted, return_type[void], modifier[public], parameter[m]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc]...
Keyword[public] Keyword[void] identifier[writeUncommitted] operator[SEP] identifier[SIMPMessage] identifier[m] operator[SEP] Keyword[throws] identifier[SIResourceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&...
public String getPomFileContent() { try (InputStream inputStream = new FileInputStream(pomFile)) { return IOUtils.toString(inputStream, encoding); } catch (UnsupportedCharsetException ex) { throw new FailureException("Could not handle encoding: " + encoding, ex); } catch ...
class class_name[name] begin[{] method[getPomFileContent, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=inputStream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] identifier[String] identifier[getPomFileContent] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[InputStream] identifier[inputStream] operator[=] Keyword[new] identifier[FileInputStream] operator[SEP] identifier[pomFile] operator[SEP] operator[SEP] { Keyword[return]...
@GwtIncompatible("incompatible method") public static void isInstanceOf(final Class<?> type, @Nullable final Object obj) { Assert.isInstanceOf(type, obj, ""); }
class class_name[name] begin[{] method[isInstanceOf, return_type[void], modifier[public static], parameter[type, obj]] begin[{] call[Assert.isInstanceOf, parameter[member[.type], member[.obj], literal[""]]] end[}] END[}]
annotation[@] identifier[GwtIncompatible] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[void] identifier[isInstanceOf] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , annotation[@] identifier[Nullable] Keyword[final] identifier...
@Pure public static <K, V> LinkedHashMap<K, V> newLinkedHashMap() { return new LinkedHashMap<K, V>(); }
class class_name[name] begin[{] method[newLinkedHashMap, return_type[type[LinkedHashMap]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Reference...
annotation[@] identifier[Pure] Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[LinkedHashMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[newLinkedHashMap] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[LinkedHashMap] ...
public synchronized void termin(TerminType type) { // 构建termin信号 List<Long> processIds = new ArrayList<Long>(progress.keySet()); Collections.sort(processIds);// 做一下排序 for (Long processId : processIds) { EtlEventData eventData = progress.get(processId).getData(); ...
class class_name[name] begin[{] method[termin, return_type[void], modifier[synchronized public], parameter[type]] begin[{] local_variable[type[List], processIds] call[Collections.sort, parameter[member[.processIds]]] ForStatement(body=BlockStatement(label=None, statements=[Local...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[termin] operator[SEP] identifier[TerminType] identifier[type] operator[SEP] { identifier[List] operator[<] identifier[Long] operator[>] identifier[processIds] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Long] operator[>] ope...
@Override public String[] getCacheInstanceNames() { Map instances = ServerCache.getCacheInstances(); String names[] = new String[instances.size()]; Iterator it = instances.keySet().iterator(); int i = 0; while (it.hasNext()) { names[i] = (String) it.next(); ...
class class_name[name] begin[{] method[getCacheInstanceNames, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Map], instances] local_variable[type[String], names] local_variable[type[Iterator], it] local_variable[type[int], i] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getCacheInstanceNames] operator[SEP] operator[SEP] { identifier[Map] identifier[instances] operator[=] identifier[ServerCache] operator[SEP] identifier[getCacheInstances] operator[SEP] operator[SEP] opera...
public OvhRefund refund_refundId_GET(String refundId) throws IOException { String qPath = "/me/refund/{refundId}"; StringBuilder sb = path(qPath, refundId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhRefund.class); }
class class_name[name] begin[{] method[refund_refundId_GET, return_type[type[OvhRefund]], modifier[public], parameter[refundId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convertTo, parame...
Keyword[public] identifier[OvhRefund] identifier[refund_refundId_GET] operator[SEP] identifier[String] identifier[refundId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] i...
public static TransientPropertyData createPropertyData(NodeData parent, InternalQName name, int type, boolean multiValued) { QPath path = QPath.makeChildPath(parent.getQPath(), name); TransientPropertyData propData = new TransientPropertyData(path, IdGenerator.generate(), -1, type, parent....
class class_name[name] begin[{] method[createPropertyData, return_type[type[TransientPropertyData]], modifier[public static], parameter[parent, name, type, multiValued]] begin[{] local_variable[type[QPath], path] local_variable[type[TransientPropertyData], propData] return[member[.propD...
Keyword[public] Keyword[static] identifier[TransientPropertyData] identifier[createPropertyData] operator[SEP] identifier[NodeData] identifier[parent] , identifier[InternalQName] identifier[name] , Keyword[int] identifier[type] , Keyword[boolean] identifier[multiValued] operator[SEP] { identifier[QPath] ident...
protected void initLocaleEncodingList(XmlParser.Node node) { Iterator iter=node.iterator("locale-encoding-mapping"); while(iter.hasNext()) { XmlParser.Node mapping=(XmlParser.Node)iter.next(); String locale=mapping.getString("locale",false,true); String en...
class class_name[name] begin[{] method[initLocaleEncodingList, return_type[void], modifier[protected], parameter[node]] begin[{] local_variable[type[Iterator], iter] while[call[iter.hasNext, parameter[]]] begin[{] local_variable[type[XmlParser], mapping] local_va...
Keyword[protected] Keyword[void] identifier[initLocaleEncodingList] operator[SEP] identifier[XmlParser] operator[SEP] identifier[Node] identifier[node] operator[SEP] { identifier[Iterator] identifier[iter] operator[=] identifier[node] operator[SEP] identifier[iterator] operator[SEP] literal[String] operator[SEP]...
@Override protected void doExecute() { Predicate<MailMessage> condition = createMessagePredicate(); List<MailMessage> messages = mailService.findMessages(accountReservationKey, condition, getExpectedMessagesCount()); validateMessages(messages); }
class class_name[name] begin[{] method[doExecute, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[Predicate], condition] local_variable[type[List], messages] call[.validateMessages, parameter[member[.messages]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doExecute] operator[SEP] operator[SEP] { identifier[Predicate] operator[<] identifier[MailMessage] operator[>] identifier[condition] operator[=] identifier[createMessagePredicate] operator[SEP] operator[SEP] operator[SEP] identifier[L...
@Override public ConcurrentMap<String, Object> deserializeAttributes(final byte[] in) { final InputStreamReader inputStream = new InputStreamReader( new ByteArrayInputStream( in ) ); if (LOG.isDebugEnabled()) { LOG.debug("deserialize the stream"); } try { return deserializer.deserializeInto(inp...
class class_name[name] begin[{] method[deserializeAttributes, return_type[type[ConcurrentMap]], modifier[public], parameter[in]] begin[{] local_variable[type[InputStreamReader], inputStream] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, param...
annotation[@] identifier[Override] Keyword[public] identifier[ConcurrentMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[deserializeAttributes] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[in] operator[SEP] { Keyword[final] identifier[InputStre...
private void init(AnnotatedElement element) { Annotation[] declaredAnnotations = element.getDeclaredAnnotations(); this.declaredAnnotationMap = new HashMap<>(); parseDeclared(declaredAnnotations); Annotation[] annotations = element.getAnnotations(); if(declaredAnnotations == annotations) { this.a...
class class_name[name] begin[{] method[init, return_type[void], modifier[private], parameter[element]] begin[{] local_variable[type[Annotation], declaredAnnotations] assign[THIS[member[None.declaredAnnotationMap]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, p...
Keyword[private] Keyword[void] identifier[init] operator[SEP] identifier[AnnotatedElement] identifier[element] operator[SEP] { identifier[Annotation] operator[SEP] operator[SEP] identifier[declaredAnnotations] operator[=] identifier[element] operator[SEP] identifier[getDeclaredAnnotations] operator[SEP] operator...
public void setNotebookInstanceLifecycleConfigs(java.util.Collection<NotebookInstanceLifecycleConfigSummary> notebookInstanceLifecycleConfigs) { if (notebookInstanceLifecycleConfigs == null) { this.notebookInstanceLifecycleConfigs = null; return; } this.notebookInstanceL...
class class_name[name] begin[{] method[setNotebookInstanceLifecycleConfigs, return_type[void], modifier[public], parameter[notebookInstanceLifecycleConfigs]] begin[{] if[binary_operation[member[.notebookInstanceLifecycleConfigs], ==, literal[null]]] begin[{] assign[THIS[...
Keyword[public] Keyword[void] identifier[setNotebookInstanceLifecycleConfigs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[NotebookInstanceLifecycleConfigSummary] operator[>] identifier[notebookInstanceLifecycleConfigs] operator[SEP] { ...
@Override public CPFriendlyURLEntry fetchByUUID_G(String uuid, long groupId) { return fetchByUUID_G(uuid, groupId, true); }
class class_name[name] begin[{] method[fetchByUUID_G, return_type[type[CPFriendlyURLEntry]], modifier[public], parameter[uuid, groupId]] begin[{] return[call[.fetchByUUID_G, parameter[member[.uuid], member[.groupId], literal[true]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CPFriendlyURLEntry] identifier[fetchByUUID_G] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] { Keyword[return] identifier[fetchByUUID_G] operator[SEP] identifier[uuid] , identifier[groupId] , lit...
public static EndSpanOptions getEndSpanOptions(@Nullable Integer statusCode) { // Always sample the span, but optionally export it. EndSpanOptions.Builder builder = EndSpanOptions.builder(); if (statusCode == null) { builder.setStatus(Status.UNKNOWN); } else if (!HttpStatusCodes.isSuccess(statusCo...
class class_name[name] begin[{] method[getEndSpanOptions, return_type[type[EndSpanOptions]], modifier[public static], parameter[statusCode]] begin[{] local_variable[type[EndSpanOptions], builder] if[binary_operation[member[.statusCode], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[EndSpanOptions] identifier[getEndSpanOptions] operator[SEP] annotation[@] identifier[Nullable] identifier[Integer] identifier[statusCode] operator[SEP] { identifier[EndSpanOptions] operator[SEP] identifier[Builder] identifier[builder] operator[=] identifier[EndSpanOptio...
public static String getFormattedMessage(Class<?> aClass, ResourceBundle bundle, String bundleName, String key, Object[] args, String defaultString, Locale locale, boolean quiet) { ...
class class_name[name] begin[{] method[getFormattedMessage, return_type[type[String]], modifier[public static], parameter[aClass, bundle, bundleName, key, args, defaultString, locale, quiet]] begin[{] return[call[TraceNLSResolver.getInstance, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getFormattedMessage] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[aClass] , identifier[ResourceBundle] identifier[bundle] , identifier[String] identifier[bundleName] , identifier[String] identifier[key] , identifier[Obje...
public <T, V> void addColumn(String name, Class<? extends V> type, Function<T, V> getter) { addColumn(name, type, getter, null); }
class class_name[name] begin[{] method[addColumn, return_type[void], modifier[public], parameter[name, type, getter]] begin[{] call[.addColumn, parameter[member[.name], member[.type], member[.getter], literal[null]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] , identifier[V] operator[>] Keyword[void] identifier[addColumn] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[V] operator[>] identifier[type] , identifier[Function] operator[<] identifier[T] , ident...
private static Object decodeObject(String text) { Object result = null; if (text.startsWith("[]")) result = HexString.hexToBin(text, 2); else result = URLDecode(text); return result; }
class class_name[name] begin[{] method[decodeObject, return_type[type[Object]], modifier[private static], parameter[text]] begin[{] local_variable[type[Object], result] if[call[text.startsWith, parameter[literal["[]"]]]] begin[{] assign[member[.result], call[HexString.hexToB...
Keyword[private] Keyword[static] identifier[Object] identifier[decodeObject] operator[SEP] identifier[String] identifier[text] operator[SEP] { identifier[Object] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[text] operator[SEP] identifier[startsWith] operator[SEP] ...
@Override public void close() throws IOException { if(this.in != null && this.inStream != null){ if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.logp(Level.FINE, CLASS_NAME,"close", "close called->"+this); } this.in.close(); ...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[THIS[member[None.in]], !=, literal[null]], &&, binary_operation[THIS[member[None.inStream]], !=, literal[null]]]] begin[{] if[bin...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[in] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[inStream] oper...
@Implementation protected static void createSystemAssetsInZygoteLocked() { _AssetManager28_ _assetManagerStatic_ = reflector(_AssetManager28_.class); AssetManager sSystem = _assetManagerStatic_.getSystem(); if (sSystem != null) { return; } if (systemCppAssetManager2 == null) { // firs...
class class_name[name] begin[{] method[createSystemAssetsInZygoteLocked, return_type[void], modifier[static protected], parameter[]] begin[{] local_variable[type[_AssetManager28_], _assetManagerStatic_] local_variable[type[AssetManager], sSystem] if[binary_operation[member[.sSys...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[static] Keyword[void] identifier[createSystemAssetsInZygoteLocked] operator[SEP] operator[SEP] { identifier[_AssetManager28_] identifier[_assetManagerStatic_] operator[=] identifier[reflector] operator[SEP] identifier[_AssetManager28_] operator[...
public WebSocket sendFrame(WebSocketFrame frame) { if (frame == null) { return this; } synchronized (mStateManager) { WebSocketState state = mStateManager.getState(); if (state != OPEN && state != CLOSING) { re...
class class_name[name] begin[{] method[sendFrame, return_type[type[WebSocket]], modifier[public], parameter[frame]] begin[{] if[binary_operation[member[.frame], ==, literal[null]]] begin[{] return[THIS[]] else begin[{] None end[}] SYNCHRONIZED[member[...
Keyword[public] identifier[WebSocket] identifier[sendFrame] operator[SEP] identifier[WebSocketFrame] identifier[frame] operator[SEP] { Keyword[if] operator[SEP] identifier[frame] operator[==] Other[null] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] } Keyword[synchronized] ...
public static DeprecationWarnings getDeprecationWarnings( int deprecationLevel, boolean failOnWarn) { if (deprecationLevel < 0) { return DeprecationWarnings.OFF; } else { return failOnWarn ? DeprecationWarnings.FATAL : DeprecationWarnings.ON; ...
class class_name[name] begin[{] method[getDeprecationWarnings, return_type[type[DeprecationWarnings]], modifier[public static], parameter[deprecationLevel, failOnWarn]] begin[{] if[binary_operation[member[.deprecationLevel], <, literal[0]]] begin[{] return[member[DeprecationWarnings...
Keyword[public] Keyword[static] identifier[DeprecationWarnings] identifier[getDeprecationWarnings] operator[SEP] Keyword[int] identifier[deprecationLevel] , Keyword[boolean] identifier[failOnWarn] operator[SEP] { Keyword[if] operator[SEP] identifier[deprecationLevel] operator[<] Other[0] operator[SEP] { ...
@Nonnull public PathMatchingResult matchesParts (@Nonnull final List <String> aPathParts) { ValueEnforcer.notNull (aPathParts, "PathParts"); final int nPartCount = m_aPathParts.size (); if (aPathParts.size () != nPartCount) { // Size must match return PathMatchingResult.NO_MATCH; } ...
class class_name[name] begin[{] method[matchesParts, return_type[type[PathMatchingResult]], modifier[public], parameter[aPathParts]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aPathParts], literal["PathParts"]]] local_variable[type[int], nPartCount] if[binary...
annotation[@] identifier[Nonnull] Keyword[public] identifier[PathMatchingResult] identifier[matchesParts] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[aPathParts] operator[SEP] { identifier[ValueEnforcer] operator[SEP] ident...
public static protocoludp_stats get(nitro_service service) throws Exception{ protocoludp_stats obj = new protocoludp_stats(); protocoludp_stats[] response = (protocoludp_stats[])obj.stat_resources(service); return response[0]; }
class class_name[name] begin[{] method[get, return_type[type[protocoludp_stats]], modifier[public static], parameter[service]] begin[{] local_variable[type[protocoludp_stats], obj] local_variable[type[protocoludp_stats], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[protocoludp_stats] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[protocoludp_stats] identifier[obj] operator[=] Keyword[new] identifier[protocoludp_stats] operator[SEP] operat...
public static <E> E takeUninterruptibly(BlockingQueue<E> queue) { boolean interrupted = false; try { while (true) { try { return queue.take(); } catch (InterruptedException e) { interrupted = true; } } } finally { if (interrupted) { Threa...
class class_name[name] begin[{] method[takeUninterruptibly, return_type[type[E]], modifier[public static], parameter[queue]] begin[{] local_variable[type[boolean], interrupted] TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[ReturnStatement(exp...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[E] identifier[takeUninterruptibly] operator[SEP] identifier[BlockingQueue] operator[<] identifier[E] operator[>] identifier[queue] operator[SEP] { Keyword[boolean] identifier[interrupted] operator[=] literal[boolean] operator[SEP] K...
public static ByteSource concatOpenable(Iterable<ByteSource> possibleBrokenSources) { //noinspection StaticPseudoFunctionalStyleMethod return ByteSource.concat(Iterables.transform(possibleBrokenSources, ByteSources::orEmpty)); }
class class_name[name] begin[{] method[concatOpenable, return_type[type[ByteSource]], modifier[public static], parameter[possibleBrokenSources]] begin[{] return[call[ByteSource.concat, parameter[call[Iterables.transform, parameter[member[.possibleBrokenSources], MethodReference(expression=MemberReferen...
Keyword[public] Keyword[static] identifier[ByteSource] identifier[concatOpenable] operator[SEP] identifier[Iterable] operator[<] identifier[ByteSource] operator[>] identifier[possibleBrokenSources] operator[SEP] { Keyword[return] identifier[ByteSource] operator[SEP] identifier[concat] operator[SEP] identifier[It...
public Future<T> executeAsync() { return client.submit(new Callable<T>() { @Override public T call() throws Exception { return execute(); } }); }
class class_name[name] begin[{] method[executeAsync, return_type[type[Future]], modifier[public], parameter[]] begin[{] return[call[client.submit, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodI...
Keyword[public] identifier[Future] operator[<] identifier[T] operator[>] identifier[executeAsync] operator[SEP] operator[SEP] { Keyword[return] identifier[client] operator[SEP] identifier[submit] operator[SEP] Keyword[new] identifier[Callable] operator[<] identifier[T] operator[>] operator[SEP] operator[SEP] { ...
public T[] simplify(T[] points, double tolerance, boolean highestQuality) { if (points == null || points.length <= 2) { return points; } double sqTolerance = tolerance * tolerance; if (!highestQuality) { points = ...
class class_name[name] begin[{] method[simplify, return_type[type[T]], modifier[public], parameter[points, tolerance, highestQuality]] begin[{] if[binary_operation[binary_operation[member[.points], ==, literal[null]], ||, binary_operation[member[points.length], <=, literal[2]]]] begin[{] ...
Keyword[public] identifier[T] operator[SEP] operator[SEP] identifier[simplify] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[points] , Keyword[double] identifier[tolerance] , Keyword[boolean] identifier[highestQuality] operator[SEP] { Keyword[if] operator[SEP] identifier[points] operator[=...
@Override public DeleteVoiceChannelResult deleteVoiceChannel(DeleteVoiceChannelRequest request) { request = beforeClientExecution(request); return executeDeleteVoiceChannel(request); }
class class_name[name] begin[{] method[deleteVoiceChannel, return_type[type[DeleteVoiceChannelResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteVoiceChannel, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[DeleteVoiceChannelResult] identifier[deleteVoiceChannel] operator[SEP] identifier[DeleteVoiceChannelRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public void initialize(Subject newSubject, CallbackHandler newCallbackHandler, Map<String, ?> sharedState, Map<String, ?> options) { log.trace("Initializing HTTP OATH OTP LoginModule"); this.subject = newSubject; this.callbackHandler = newCallbackHandler; this.protectedUrl = options.get(OPTION_HTTPOATHOTP...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public], parameter[newSubject, newCallbackHandler, sharedState, options]] begin[{] call[log.trace, parameter[literal["Initializing HTTP OATH OTP LoginModule"]]] assign[THIS[member[None.subject]], memb...
Keyword[public] Keyword[void] identifier[initialize] operator[SEP] identifier[Subject] identifier[newSubject] , identifier[CallbackHandler] identifier[newCallbackHandler] , identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[sharedState] , identifier[Map] operator[<] identifier[Strin...
@Override public synchronized CommsServerByteBuffer allocate() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "allocate"); CommsServerByteBuffer buff = (CommsServerByteBuffer) super.allocate(); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "allocate", buff); ...
class class_name[name] begin[{] method[allocate, return_type[type[CommsServerByteBuffer]], modifier[synchronized public], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["allocate"]]] else begin...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] identifier[CommsServerByteBuffer] identifier[allocate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP]...
@NonNull public static <T> T nonNull(@Nullable T obj) { if (obj == null) { throw new IllegalArgumentException("encountered illegal null value"); } return obj; }
class class_name[name] begin[{] method[nonNull, return_type[type[T]], modifier[public static], parameter[obj]] begin[{] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
annotation[@] identifier[NonNull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[nonNull] operator[SEP] annotation[@] identifier[Nullable] identifier[T] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[obj] operator[==] Other[null] operator[SEP]...
public String getDepLabel() { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_depLabel == null) jcasType.jcas.throwFeatMissing("depLabel", "edu.cmu.lti.oaqa.type.nlp.Token"); return jcasType.ll_cas.ll_getStringValue(addr, ((Token_Type)jcasType).casFeatCode_depLabel);}
class class_name[name] begin[{] method[getDepLabel, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Token_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, s...
Keyword[public] identifier[String] identifier[getDepLabel] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Token_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Token_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[c...
public static boolean isAm(Date date) { String time = getTime(date); return time.toLowerCase().contains(AM); }
class class_name[name] begin[{] method[isAm, return_type[type[boolean]], modifier[public static], parameter[date]] begin[{] local_variable[type[String], time] return[call[time.toLowerCase, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isAm] operator[SEP] identifier[Date] identifier[date] operator[SEP] { identifier[String] identifier[time] operator[=] identifier[getTime] operator[SEP] identifier[date] operator[SEP] operator[SEP] Keyword[return] identifier[time] operator[SEP] identifie...
public long getNumberOfCompletedRequests() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getNumberOfCompletedRequests"); long completedRequests = getNumberOfRequestsReceived() - getNumberOfCurrentRequests(); if (TraceComponent.isAnyTracingEnabled() && tc...
class class_name[name] begin[{] method[getNumberOfCompletedRequests, return_type[type[long]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, para...
Keyword[public] Keyword[long] identifier[getNumberOfCompletedRequests] 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] op...
public static List<CPOptionValue> findByCPOptionId(long CPOptionId, int start, int end, OrderByComparator<CPOptionValue> orderByComparator) { return getPersistence() .findByCPOptionId(CPOptionId, start, end, orderByComparator); }
class class_name[name] begin[{] method[findByCPOptionId, return_type[type[List]], modifier[public static], parameter[CPOptionId, start, end, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[CPOptionValue] operator[>] identifier[findByCPOptionId] operator[SEP] Keyword[long] identifier[CPOptionId] , Keyword[int] identifier[start] , Keyword[int] identifier[end] , identifier[OrderByComparator] operator[<] identifier[CPOptionValue] oper...
public void setDomainCacheFullUrl(String domain, boolean setting) { SetDomainCacheFullUrlRequest request = new SetDomainCacheFullUrlRequest() .withDomain(domain); request.setCacheFullUrl(setting); setDomainCacheFullUrl(request); }
class class_name[name] begin[{] method[setDomainCacheFullUrl, return_type[void], modifier[public], parameter[domain, setting]] begin[{] local_variable[type[SetDomainCacheFullUrlRequest], request] call[request.setCacheFullUrl, parameter[member[.setting]]] call[.setDomainC...
Keyword[public] Keyword[void] identifier[setDomainCacheFullUrl] operator[SEP] identifier[String] identifier[domain] , Keyword[boolean] identifier[setting] operator[SEP] { identifier[SetDomainCacheFullUrlRequest] identifier[request] operator[=] Keyword[new] identifier[SetDomainCacheFullUrlRequest] operator[SEP] ...
static String replaceCheckDigit(final String iban, final String checkDigit) { return getCountryCode(iban) + checkDigit + getBban(iban); }
class class_name[name] begin[{] method[replaceCheckDigit, return_type[type[String]], modifier[static], parameter[iban, checkDigit]] begin[{] return[binary_operation[binary_operation[call[.getCountryCode, parameter[member[.iban]]], +, member[.checkDigit]], +, call[.getBban, parameter[member[.iban]]]]] ...
Keyword[static] identifier[String] identifier[replaceCheckDigit] operator[SEP] Keyword[final] identifier[String] identifier[iban] , Keyword[final] identifier[String] identifier[checkDigit] operator[SEP] { Keyword[return] identifier[getCountryCode] operator[SEP] identifier[iban] operator[SEP] operator[+] identif...
public void removeProject(String projectName) { // It should only be in list once (usually in slot 0) but check entire // list... Iterator<String> it = recentProjectsList.iterator(); while (it.hasNext()) { // LinkedList, so remove() via iterator is faster than // ...
class class_name[name] begin[{] method[removeProject, return_type[void], modifier[public], parameter[projectName]] begin[{] local_variable[type[Iterator], it] while[call[it.hasNext, parameter[]]] begin[{] if[call[projectName.equals, parameter[call[it.next, parame...
Keyword[public] Keyword[void] identifier[removeProject] operator[SEP] identifier[String] identifier[projectName] operator[SEP] { identifier[Iterator] operator[<] identifier[String] operator[>] identifier[it] operator[=] identifier[recentProjectsList] operator[SEP] identifier[iterator] operator[SEP] operator[SEP]...
boolean recoverLease(String src, boolean discardLastBlock) throws IOException { checkOpen(); // We remove the file from local lease checker. Usually it is already been // removed by the client but we want to be extra safe. leasechecker.remove(src); if (this.namenodeProtocolProxy == null) { re...
class class_name[name] begin[{] method[recoverLease, return_type[type[boolean]], modifier[default], parameter[src, discardLastBlock]] begin[{] call[.checkOpen, parameter[]] call[leasechecker.remove, parameter[member[.src]]] if[binary_operation[THIS[member[None.na...
Keyword[boolean] identifier[recoverLease] operator[SEP] identifier[String] identifier[src] , Keyword[boolean] identifier[discardLastBlock] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkOpen] operator[SEP] operator[SEP] operator[SEP] identifier[leasechecker] operator[SEP] identifier[rem...
protected void addModulePackagesIndexContents(String text, String tableSummary, Content body, ModuleElement mdle) { HtmlTree htmlTree = (configuration.allowTag(HtmlTag.NAV)) ? HtmlTree.NAV() : new HtmlTree(HtmlTag.DIV); htmlTree.addStyle(HtmlStyle.indexNav); ...
class class_name[name] begin[{] method[addModulePackagesIndexContents, return_type[void], modifier[protected], parameter[text, tableSummary, body, mdle]] begin[{] local_variable[type[HtmlTree], htmlTree] call[htmlTree.addStyle, parameter[member[HtmlStyle.indexNav]]] local_variab...
Keyword[protected] Keyword[void] identifier[addModulePackagesIndexContents] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[tableSummary] , identifier[Content] identifier[body] , identifier[ModuleElement] identifier[mdle] operator[SEP] { identifier[HtmlTree] identifier[htmlTr...
public final void mELEMENTS() throws RecognitionException { try { int _type = ELEMENTS; int _channel = DEFAULT_TOKEN_CHANNEL; // hql.g:21:10: ( 'elements' ) // hql.g:21:12: 'elements' { match("elements"); if (state.failed) return; } state.type = _type; state.channel = _channel; } fina...
class class_name[name] begin[{] method[mELEMENTS, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=ELEMENTS, postfix_operators=[], prefix_operat...
Keyword[public] Keyword[final] Keyword[void] identifier[mELEMENTS] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[ELEMENTS] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAUL...
public void start(String resourceGroupName, String clusterName) { startWithServiceResponseAsync(resourceGroupName, clusterName).toBlocking().last().body(); }
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[resourceGroupName, clusterName]] begin[{] call[.startWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.clusterName]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[clusterName] operator[SEP] { identifier[startWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[clusterName] operator[SEP] operator[SEP]...
public int getAndIncrement (K key, int defaultValue, int increment) { int hashCode = key.hashCode(); int index = hashCode & mask; if (!key.equals(keyTable[index])) { index = hash2(hashCode); if (!key.equals(keyTable[index])) { index = hash3(hashCode); if (!key.equals(keyTable[index])) return getAndI...
class class_name[name] begin[{] method[getAndIncrement, return_type[type[int]], modifier[public], parameter[key, defaultValue, increment]] begin[{] local_variable[type[int], hashCode] local_variable[type[int], index] if[call[key.equals, parameter[member[.keyTable]]]] begin[{] ...
Keyword[public] Keyword[int] identifier[getAndIncrement] operator[SEP] identifier[K] identifier[key] , Keyword[int] identifier[defaultValue] , Keyword[int] identifier[increment] operator[SEP] { Keyword[int] identifier[hashCode] operator[=] identifier[key] operator[SEP] identifier[hashCode] operator[SEP] operat...
public static void addRowMapping(Class returnTypeClass, Class<? extends RowMapper> rowMapperClass) { _rowMappings.put(returnTypeClass, rowMapperClass); }
class class_name[name] begin[{] method[addRowMapping, return_type[void], modifier[public static], parameter[returnTypeClass, rowMapperClass]] begin[{] call[_rowMappings.put, parameter[member[.returnTypeClass], member[.rowMapperClass]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[addRowMapping] operator[SEP] identifier[Class] identifier[returnTypeClass] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[RowMapper] operator[>] identifier[rowMapperClass] operator[SEP] { identifier[_rowMappings] operator[SEP] ide...
public PlaceInfo getInfoByUrl(String url) throws JinxException { JinxUtils.validateParams(url); Map<String, String> params = new TreeMap<>(); params.put("method", "flickr.places.getInfoByUrl"); params.put("url", url); return jinx.flickrGet(params, PlaceInfo.class, false); }
class class_name[name] begin[{] method[getInfoByUrl, return_type[type[PlaceInfo]], modifier[public], parameter[url]] begin[{] call[JinxUtils.validateParams, parameter[member[.url]]] local_variable[type[Map], params] call[params.put, parameter[literal["method"], literal["...
Keyword[public] identifier[PlaceInfo] identifier[getInfoByUrl] operator[SEP] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[JinxException] { identifier[JinxUtils] operator[SEP] identifier[validateParams] operator[SEP] identifier[url] operator[SEP] operator[SEP] identifier[Map] operat...
public ClusterHealthStatus ensureGreen(final String... indices) { final ClusterHealthResponse actionGet = client().admin().cluster().health( Requests.clusterHealthRequest(indices).waitForGreenStatus().waitForEvents(Priority.LANGUID).waitForNoRelocatingShards(true)) .actionGet(); ...
class class_name[name] begin[{] method[ensureGreen, return_type[type[ClusterHealthStatus]], modifier[public], parameter[indices]] begin[{] local_variable[type[ClusterHealthResponse], actionGet] if[call[actionGet.isTimedOut, parameter[]]] begin[{] call[.onFailure,...
Keyword[public] identifier[ClusterHealthStatus] identifier[ensureGreen] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[indices] operator[SEP] { Keyword[final] identifier[ClusterHealthResponse] identifier[actionGet] operator[=] identifier[client] operator[SEP] operator[SEP] operator[SEP]...
private boolean hasConstantField(PackageElement pkg) { SortedSet<TypeElement> classes = !pkg.isUnnamed() ? utils.getAllClasses(pkg) : configuration.typeElementCatalog.allUnnamedClasses(); boolean found = false; for (TypeElement te : classes) { if (...
class class_name[name] begin[{] method[hasConstantField, return_type[type[boolean]], modifier[private], parameter[pkg]] begin[{] local_variable[type[SortedSet], classes] local_variable[type[boolean], found] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=B...
Keyword[private] Keyword[boolean] identifier[hasConstantField] operator[SEP] identifier[PackageElement] identifier[pkg] operator[SEP] { identifier[SortedSet] operator[<] identifier[TypeElement] operator[>] identifier[classes] operator[=] operator[!] identifier[pkg] operator[SEP] identifier[isUnnamed] operator[SE...
@Override public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException { ChargingStationId csId = new ChargingStationId(chargingStationId); if (!commandAuthorizationService.isAuthorized(csId, identityContext.getUser...
class class_name[name] begin[{] method[handle, return_type[void], modifier[public], parameter[chargingStationId, commandObject, identityContext]] begin[{] local_variable[type[ChargingStationId], csId] if[call[commandAuthorizationService.isAuthorized, parameter[member[.csId], call[identi...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handle] operator[SEP] identifier[String] identifier[chargingStationId] , identifier[JsonObject] identifier[commandObject] , identifier[IdentityContext] identifier[identityContext] operator[SEP] Keyword[throws] identifier[UserIdentityUnauthori...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case TypesPackage.JVM_TYPE_CONSTRAINT__TYPE_REFERENCE: return typeReference != null; case TypesPackage.JVM_TYPE_CONSTRAINT__OWNER: return getOwner() != null; } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_TYPE_CONSTRAINT__TYPE_REFERENCE, postfix_operators=[], prefix_operators=[], qualifier=TypesPackage, sel...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[TypesPackage] operator[SEP] identifier[JVM_TYPE_CONSTRAIN...
public UpdateConfigurationTemplateRequest withOptionsToRemove(OptionSpecification... optionsToRemove) { if (this.optionsToRemove == null) { setOptionsToRemove(new com.amazonaws.internal.SdkInternalList<OptionSpecification>(optionsToRemove.length)); } for (OptionSpecification ele : op...
class class_name[name] begin[{] method[withOptionsToRemove, return_type[type[UpdateConfigurationTemplateRequest]], modifier[public], parameter[optionsToRemove]] begin[{] if[binary_operation[THIS[member[None.optionsToRemove]], ==, literal[null]]] begin[{] call[.setOptions...
Keyword[public] identifier[UpdateConfigurationTemplateRequest] identifier[withOptionsToRemove] operator[SEP] identifier[OptionSpecification] operator[...] identifier[optionsToRemove] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[optionsToRemove] operator[==] Other[null] operato...
final protected void eventPrecommitAdd(MessageItem msg, final TransactionCommon transaction) throws SIDiscriminatorSyntaxException, SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "eventPrecommitAdd", new Object[] { msg, transaction }); ...
class class_name[name] begin[{] method[eventPrecommitAdd, return_type[void], modifier[final protected], parameter[msg, transaction]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.ent...
Keyword[final] Keyword[protected] Keyword[void] identifier[eventPrecommitAdd] operator[SEP] identifier[MessageItem] identifier[msg] , Keyword[final] identifier[TransactionCommon] identifier[transaction] operator[SEP] Keyword[throws] identifier[SIDiscriminatorSyntaxException] , identifier[SIResourceException] { ...
public Observable<SummarizeResultsInner> summarizeForPolicySetDefinitionAsync(String subscriptionId, String policySetDefinitionName, QueryOptions queryOptions) { return summarizeForPolicySetDefinitionWithServiceResponseAsync(subscriptionId, policySetDefinitionName, queryOptions).map(new Func1<ServiceResponse<Su...
class class_name[name] begin[{] method[summarizeForPolicySetDefinitionAsync, return_type[type[Observable]], modifier[public], parameter[subscriptionId, policySetDefinitionName, queryOptions]] begin[{] return[call[.summarizeForPolicySetDefinitionWithServiceResponseAsync, parameter[member[.subscriptionId...
Keyword[public] identifier[Observable] operator[<] identifier[SummarizeResultsInner] operator[>] identifier[summarizeForPolicySetDefinitionAsync] operator[SEP] identifier[String] identifier[subscriptionId] , identifier[String] identifier[policySetDefinitionName] , identifier[QueryOptions] identifier[queryOptions] ope...
@Override public final Object retrieve(int handle) throws DataStoreException { if (SAFE_MODE) checkHandle(handle); // Compute total size int totalSize = computeSize(handle); // Retrieve all blocks byte[] data = new byte[totalSize]; int offset = 0; ...
class class_name[name] begin[{] method[retrieve, return_type[type[Object]], modifier[final public], parameter[handle]] begin[{] if[member[.SAFE_MODE]] begin[{] call[.checkHandle, parameter[member[.handle]]] else begin[{] None end[}] local_variable[type[int], ...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[Object] identifier[retrieve] operator[SEP] Keyword[int] identifier[handle] operator[SEP] Keyword[throws] identifier[DataStoreException] { Keyword[if] operator[SEP] identifier[SAFE_MODE] operator[SEP] identifier[checkHandle] operator[SEP...
private static boolean includeTypeParameterInformation(final Class<?> containerClass, final Integer typeArgumentIndex) { if (containerClass == null || typeArgumentIndex == null) { return false; } // if (containerClass.getTypeParameters().length < 2) { // return false; // } // return...
class class_name[name] begin[{] method[includeTypeParameterInformation, return_type[type[boolean]], modifier[private static], parameter[containerClass, typeArgumentIndex]] begin[{] if[binary_operation[binary_operation[member[.containerClass], ==, literal[null]], ||, binary_operation[member[.typ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[includeTypeParameterInformation] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[containerClass] , Keyword[final] identifier[Integer] identifier[typeArgumentIndex] operator[SEP] { Keyword[if] operator[SEP]...
@Override public void messageReceived(NextFilter nextFilter, IoSession session, Object message) throws Exception { LOGGER.debug("Processing a MESSAGE_RECEIVED for session {}", session.getId()); if (!(message instanceof IoBuffer)) { nextFilter.messageReceived(session, message...
class class_name[name] begin[{] method[messageReceived, return_type[void], modifier[public], parameter[nextFilter, session, message]] begin[{] call[LOGGER.debug, parameter[literal["Processing a MESSAGE_RECEIVED for session {}"], call[session.getId, parameter[]]]] if[binary_opera...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[messageReceived] operator[SEP] identifier[NextFilter] identifier[nextFilter] , identifier[IoSession] identifier[session] , identifier[Object] identifier[message] operator[SEP] Keyword[throws] identifier[Exception] { identifier[LOGGER] ...
public void promptPresent(double seconds) { try { double timeTook = popup(seconds); checkPromptPresent(seconds, timeTook); } catch (TimeoutException e) { checkPromptPresent(seconds, seconds); } }
class class_name[name] begin[{] method[promptPresent, return_type[void], modifier[public], parameter[seconds]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=seconds, pos...
Keyword[public] Keyword[void] identifier[promptPresent] operator[SEP] Keyword[double] identifier[seconds] operator[SEP] { Keyword[try] { Keyword[double] identifier[timeTook] operator[=] identifier[popup] operator[SEP] identifier[seconds] operator[SEP] operator[SEP] identifier[checkPromptPresent] opera...
static Cookie getLTPACookie(final Subject subject) throws Exception { Cookie ltpaCookie = null; SingleSignonToken ssoToken = null; Set<SingleSignonToken> ssoTokens = subject.getPrivateCredentials(SingleSignonToken.class); Iterator<SingleSignonToken> ssoTokensIterator = ssoTokens.iterator...
class class_name[name] begin[{] method[getLTPACookie, return_type[type[Cookie]], modifier[static], parameter[subject]] begin[{] local_variable[type[Cookie], ltpaCookie] local_variable[type[SingleSignonToken], ssoToken] local_variable[type[Set], ssoTokens] local_variable[type[Ite...
Keyword[static] identifier[Cookie] identifier[getLTPACookie] operator[SEP] Keyword[final] identifier[Subject] identifier[subject] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Cookie] identifier[ltpaCookie] operator[=] Other[null] operator[SEP] identifier[SingleSignonToken] identifier[ssoToken...
public static MD5Hash digest(byte[] data, int start, int len) { byte[] digest; MessageDigest digester = DIGESTER_FACTORY.get(); digester.update(data, start, len); digest = digester.digest(); return new MD5Hash(digest); }
class class_name[name] begin[{] method[digest, return_type[type[MD5Hash]], modifier[public static], parameter[data, start, len]] begin[{] local_variable[type[byte], digest] local_variable[type[MessageDigest], digester] call[digester.update, parameter[member[.data], member[.start...
Keyword[public] Keyword[static] identifier[MD5Hash] identifier[digest] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[start] , Keyword[int] identifier[len] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[digest] operator[SEP] identifier[M...
protected JRDesignGroup getParent(JRDesignGroup group) { int index = realGroups.indexOf(group); return (index > 0) ? (JRDesignGroup) realGroups.get(index - 1) : group; }
class class_name[name] begin[{] method[getParent, return_type[type[JRDesignGroup]], modifier[protected], parameter[group]] begin[{] local_variable[type[int], index] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[...
Keyword[protected] identifier[JRDesignGroup] identifier[getParent] operator[SEP] identifier[JRDesignGroup] identifier[group] operator[SEP] { Keyword[int] identifier[index] operator[=] identifier[realGroups] operator[SEP] identifier[indexOf] operator[SEP] identifier[group] operator[SEP] operator[SEP] Keyword[retu...
public static String getCanonicalDirectoryName(String path) { String realPath = getCanonicalPath(path); if (realPath == null) { return null; } String separator = System.getProperty("file.separator", "/"); // backslashes must be escaped for split(). kthxbai ...
class class_name[name] begin[{] method[getCanonicalDirectoryName, return_type[type[String]], modifier[public static], parameter[path]] begin[{] local_variable[type[String], realPath] if[binary_operation[member[.realPath], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[public] Keyword[static] identifier[String] identifier[getCanonicalDirectoryName] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[String] identifier[realPath] operator[=] identifier[getCanonicalPath] operator[SEP] identifier[path] operator[SEP] operator[SEP] Keyword[if] operat...
public void finish() throws IOException { writer.append("--" + boundary + "--").append(LINE_BREAK); writer.flush(); writer.close(); outputStream.flush(); outputStream.close(); }
class class_name[name] begin[{] method[finish, return_type[void], modifier[public], parameter[]] begin[{] call[writer.append, parameter[binary_operation[binary_operation[literal["--"], +, member[.boundary]], +, literal["--"]]]] call[writer.flush, parameter[]] cal...
Keyword[public] Keyword[void] identifier[finish] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[writer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[+] identifier[boundary] operator[+] literal[String] operator[SEP] operator[SEP] identifier[append] oper...
private void fireMappingDeleted(URI srcuri, String mapping_id) { for (OBDAMappingListener listener : mappingListeners) { listener.mappingDeleted(srcuri); } }
class class_name[name] begin[{] method[fireMappingDeleted, return_type[void], modifier[private], parameter[srcuri, mapping_id]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=srcuri, postfix_operators=[...
Keyword[private] Keyword[void] identifier[fireMappingDeleted] operator[SEP] identifier[URI] identifier[srcuri] , identifier[String] identifier[mapping_id] operator[SEP] { Keyword[for] operator[SEP] identifier[OBDAMappingListener] identifier[listener] operator[:] identifier[mappingListeners] operator[SEP] { ...
private ACLProvider getDefaultAclProvider() { return new ACLProvider() { @Override public List<ACL> getDefaultAcl() { return ZooDefs.Ids.CREATOR_ALL_ACL; } @Override public List<ACL> getAclForPath(String path) { return ...
class class_name[name] begin[{] method[getDefaultAclProvider, return_type[type[ACLProvider]], modifier[private], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MemberReference(member...
Keyword[private] identifier[ACLProvider] identifier[getDefaultAclProvider] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[ACLProvider] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[ACL] operator[>] identi...
@GET public ReplyObject getAccumulators(){ try{ return ReplyObject.success("accumulators", getAccumulatorAPI().getAccumulatorDefinitions() ); }catch(APIException e){ return ReplyObject.error(e); } }
class class_name[name] begin[{] method[getAccumulators, return_type[type[ReplyObject]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="accumulators...
annotation[@] identifier[GET] Keyword[public] identifier[ReplyObject] identifier[getAccumulators] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] identifier[ReplyObject] operator[SEP] identifier[success] operator[SEP] literal[String] , identifier[getAccumulatorAPI] operator[SEP] operator...
public static String getEnumName(Enum[] e, int value) { if (e != null) { int toCompareValue; for (Enum en : e) { if (en instanceof EnumReadable) { toCompareValue = ((EnumReadable) en).value(); } else { toCompareValue...
class class_name[name] begin[{] method[getEnumName, return_type[type[String]], modifier[public static], parameter[e, value]] begin[{] if[binary_operation[member[.e], !=, literal[null]]] begin[{] local_variable[type[int], toCompareValue] ForStatement(body=BlockStatement(l...
Keyword[public] Keyword[static] identifier[String] identifier[getEnumName] operator[SEP] identifier[Enum] operator[SEP] operator[SEP] identifier[e] , Keyword[int] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[e] operator[!=] Other[null] operator[SEP] { Keyword[int] identifier...
public String getModuleExtension() { if (value >= moduleExtensions.length) return Integer.toString(value); return moduleExtensions[value]; }
class class_name[name] begin[{] method[getModuleExtension, return_type[type[String]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.value], >=, member[moduleExtensions.length]]] begin[{] return[call[Integer.toString, parameter[member[.value]]]] else begin[{] None ...
Keyword[public] identifier[String] identifier[getModuleExtension] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[>=] identifier[moduleExtensions] operator[SEP] identifier[length] operator[SEP] Keyword[return] identifier[Integer] operator[SEP] identifier[toString] operator[SEP]...
public static LocationModel getLocationByCoordinates(Double latitude, Double longitude ){ try { Geocoder geocoder; List<Address> addresses; geocoder = new Geocoder(QuickUtils.getContext()); addresses = geocoder.getFromLocation(latitude, longitude, 1); ...
class class_name[name] begin[{] method[getLocationByCoordinates, return_type[type[LocationModel]], modifier[public static], parameter[latitude, longitude]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=geocode...
Keyword[public] Keyword[static] identifier[LocationModel] identifier[getLocationByCoordinates] operator[SEP] identifier[Double] identifier[latitude] , identifier[Double] identifier[longitude] operator[SEP] { Keyword[try] { identifier[Geocoder] identifier[geocoder] operator[SEP] identifier[List] opera...
public void updateBestSolution(long time, double value, SolutionType newBestSolution){ times.add(time); values.add(value); bestSolution = newBestSolution; }
class class_name[name] begin[{] method[updateBestSolution, return_type[void], modifier[public], parameter[time, value, newBestSolution]] begin[{] call[times.add, parameter[member[.time]]] call[values.add, parameter[member[.value]]] assign[member[.bestSolution], m...
Keyword[public] Keyword[void] identifier[updateBestSolution] operator[SEP] Keyword[long] identifier[time] , Keyword[double] identifier[value] , identifier[SolutionType] identifier[newBestSolution] operator[SEP] { identifier[times] operator[SEP] identifier[add] operator[SEP] identifier[time] operator[SEP] opera...
public ReliableTopicConfig findReliableTopicConfig(String name) { name = getBaseName(name); ReliableTopicConfig config = lookupByPattern(configPatternMatcher, reliableTopicConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getReliableTopicCo...
class class_name[name] begin[{] method[findReliableTopicConfig, return_type[type[ReliableTopicConfig]], modifier[public], parameter[name]] begin[{] assign[member[.name], call[.getBaseName, parameter[member[.name]]]] local_variable[type[ReliableTopicConfig], config] if[bi...
Keyword[public] identifier[ReliableTopicConfig] identifier[findReliableTopicConfig] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] identifier[getBaseName] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[ReliableTopicConfig] identifier[config] ...
public ColumnFamily adapt(HColumnDescriptor columnDescriptor) { throwIfRequestingUnknownFeatures(columnDescriptor); throwIfRequestingUnsupportedFeatures(columnDescriptor); ColumnFamily.Builder resultBuilder = ColumnFamily.newBuilder(); GCRule gcRule = buildGarbageCollectionRule(columnDescriptor); i...
class class_name[name] begin[{] method[adapt, return_type[type[ColumnFamily]], modifier[public], parameter[columnDescriptor]] begin[{] call[.throwIfRequestingUnknownFeatures, parameter[member[.columnDescriptor]]] call[.throwIfRequestingUnsupportedFeatures, parameter[member[.colu...
Keyword[public] identifier[ColumnFamily] identifier[adapt] operator[SEP] identifier[HColumnDescriptor] identifier[columnDescriptor] operator[SEP] { identifier[throwIfRequestingUnknownFeatures] operator[SEP] identifier[columnDescriptor] operator[SEP] operator[SEP] identifier[throwIfRequestingUnsupportedFeatures] ...
@Override public boolean handleExecutionOutcome( FlowExecutionOutcome outcome, ActionRequest request, ActionResponse response) { if (this.redirectOnEnds != null && this.redirectOnEnds.containsKey(outcome.getId())) { final String redirectPath = request.getContextPa...
class class_name[name] begin[{] method[handleExecutionOutcome, return_type[type[boolean]], modifier[public], parameter[outcome, request, response]] begin[{] if[binary_operation[binary_operation[THIS[member[None.redirectOnEnds]], !=, literal[null]], &&, THIS[member[None.redirectOnEnds]call[None....
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[handleExecutionOutcome] operator[SEP] identifier[FlowExecutionOutcome] identifier[outcome] , identifier[ActionRequest] identifier[request] , identifier[ActionResponse] identifier[response] operator[SEP] { Keyword[if] operator[SEP] K...
public static String formatDuration(final long durationMillis, final String format, final boolean padWithZeros) { Validate.inclusiveBetween(0, Long.MAX_VALUE, durationMillis, "durationMillis must not be negative"); final Token[] tokens = lexx(format); long days = 0; long hours ...
class class_name[name] begin[{] method[formatDuration, return_type[type[String]], modifier[public static], parameter[durationMillis, format, padWithZeros]] begin[{] call[Validate.inclusiveBetween, parameter[literal[0], member[Long.MAX_VALUE], member[.durationMillis], literal["durationMillis mus...
Keyword[public] Keyword[static] identifier[String] identifier[formatDuration] operator[SEP] Keyword[final] Keyword[long] identifier[durationMillis] , Keyword[final] identifier[String] identifier[format] , Keyword[final] Keyword[boolean] identifier[padWithZeros] operator[SEP] { identifier[Validate] operator[SEP...
public <T extends Client> int getSize(T client) { Cipher encryption; if (client == null || (encryption = client.getEncryption()) == null) { return queue.stream().mapToInt(array -> array.length).sum(); } int blockSize = encryption.getBlockSize(); ...
class class_name[name] begin[{] method[getSize, return_type[type[int]], modifier[public], parameter[client]] begin[{] local_variable[type[Cipher], encryption] if[binary_operation[binary_operation[member[.client], ==, literal[null]], ||, binary_operation[assign[member[.encryption], call[...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Client] operator[>] Keyword[int] identifier[getSize] operator[SEP] identifier[T] identifier[client] operator[SEP] { identifier[Cipher] identifier[encryption] operator[SEP] Keyword[if] operator[SEP] identifier[client] operator[==] Other[null] o...
public List<GriddedTile> getGriddedTile() { List<GriddedTile> griddedTile = null; try { if (griddedTileDao.isTableExists()) { griddedTile = griddedTileDao .query(tileMatrixSet.getTableName()); } } catch (SQLException e) { throw new GeoPackageException( "Failed to get Gridded Tile for table...
class class_name[name] begin[{] method[getGriddedTile, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], griddedTile] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTableExists, postfix_operators=[], prefix_operators=[...
Keyword[public] identifier[List] operator[<] identifier[GriddedTile] operator[>] identifier[getGriddedTile] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[GriddedTile] operator[>] identifier[griddedTile] operator[=] Other[null] operator[SEP] Keyword[try] { Keyword[if] operator[S...
private void newlineAndIndent(){ if (isWriting()){ if (isClosed){ write(Indentation.tabs(depth)); // \n\t\t\t\... } else { depth++; write(Indentation.closedTabs(depth)); // >\n\t\t\t\... isClosed = true; } ...
class class_name[name] begin[{] method[newlineAndIndent, return_type[void], modifier[private], parameter[]] begin[{] if[call[.isWriting, parameter[]]] begin[{] if[member[.isClosed]] begin[{] call[.write, parameter[call[Indentation.tabs, pa...
Keyword[private] Keyword[void] identifier[newlineAndIndent] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isWriting] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isClosed] operator[SEP] { identifier[write] operator[SEP] identifier...
public float[] readData(RandomAccessFile raf) throws IOException { Grib2Gds gds = getGDS(); Grib2DataReader reader = new Grib2DataReader(drss.getDataTemplate(), gdss.getNumberPoints(), drss.getDataPoints(), getScanMode(), gds.getNxRaw(), dataSection.getStartingPosition(), dataSection.getMsgLeng...
class class_name[name] begin[{] method[readData, return_type[type[float]], modifier[public], parameter[raf]] begin[{] local_variable[type[Grib2Gds], gds] local_variable[type[Grib2DataReader], reader] local_variable[type[Grib2Drs], gdrs] local_variable[type[float], data] ...
Keyword[public] Keyword[float] operator[SEP] operator[SEP] identifier[readData] operator[SEP] identifier[RandomAccessFile] identifier[raf] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Grib2Gds] identifier[gds] operator[=] identifier[getGDS] operator[SEP] operator[SEP] operator[SEP] identifi...
public ClosableIterator<Tuple> callStoredProcedure(EmbeddedCacheManager embeddedCacheManager, String storedProcedureName, ProcedureQueryParameters queryParameters, ClassLoaderService classLoaderService ) { validate( queryParameters ); Cache<String, String> cache = embeddedCacheManager.getCache( STORED_PROCEDURES_CA...
class class_name[name] begin[{] method[callStoredProcedure, return_type[type[ClosableIterator]], modifier[public], parameter[embeddedCacheManager, storedProcedureName, queryParameters, classLoaderService]] begin[{] call[.validate, parameter[member[.queryParameters]]] local_variable[type...
Keyword[public] identifier[ClosableIterator] operator[<] identifier[Tuple] operator[>] identifier[callStoredProcedure] operator[SEP] identifier[EmbeddedCacheManager] identifier[embeddedCacheManager] , identifier[String] identifier[storedProcedureName] , identifier[ProcedureQueryParameters] identifier[queryParameters]...
public static <T extends Enum<T>> PropertiesManager<T> newManager(File file, File defaultFile, Class<T> keyType, ...
class class_name[name] begin[{] method[newManager, return_type[type[PropertiesManager]], modifier[public static], parameter[file, defaultFile, keyType, retrievers]] begin[{] return[call[.newManager, parameter[member[.file], member[.defaultFile], member[.keyType], call[.createExecutor, parameter[]], mem...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Enum] operator[<] identifier[T] operator[>] operator[>] identifier[PropertiesManager] operator[<] identifier[T] operator[>] identifier[newManager] operator[SEP] identifier[File] identifier[file] , identifier[File] identifier[defaultF...
static protected String getQueryResult(JsonNode inProgressResponse, String previousGetResultPath, StmtInput stmtInput) throws SFException, SnowflakeSQLException { String getResultPath = null; // get result url better not be e...
class class_name[name] begin[{] method[getQueryResult, return_type[type[String]], modifier[protected static], parameter[inProgressResponse, previousGetResultPath, stmtInput]] begin[{] local_variable[type[String], getResultPath] if[binary_operation[binary_operation[member[.inProgressResp...
Keyword[static] Keyword[protected] identifier[String] identifier[getQueryResult] operator[SEP] identifier[JsonNode] identifier[inProgressResponse] , identifier[String] identifier[previousGetResultPath] , identifier[StmtInput] identifier[stmtInput] operator[SEP] Keyword[throws] identifier[SFException] , identifier[Sn...
public static <R> StandaloneMetaProperty<R> of(String propertyName, MetaBean metaBean, Class<R> clazz) { return new StandaloneMetaProperty<>(propertyName, metaBean, clazz, clazz); }
class class_name[name] begin[{] method[of, return_type[type[StandaloneMetaProperty]], modifier[public static], parameter[propertyName, metaBean, clazz]] begin[{] return[ClassCreator(arguments=[MemberReference(member=propertyName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem...
Keyword[public] Keyword[static] operator[<] identifier[R] operator[>] identifier[StandaloneMetaProperty] operator[<] identifier[R] operator[>] identifier[of] operator[SEP] identifier[String] identifier[propertyName] , identifier[MetaBean] identifier[metaBean] , identifier[Class] operator[<] identifier[R] operator[>] ...
protected <T> WrapperGenericList<T> processWrapper(TypeReference typeRef, URL url, String errorMessageSuffix) throws MovieDbException { String webpage = httpTools.getRequest(url); try { // Due to type erasure, this doesn't work // TypeReference<WrapperGenericList<T>> typeRef = ne...
class class_name[name] begin[{] method[processWrapper, return_type[type[WrapperGenericList]], modifier[protected], parameter[typeRef, url, errorMessageSuffix]] begin[{] local_variable[type[String], webpage] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReferen...
Keyword[protected] operator[<] identifier[T] operator[>] identifier[WrapperGenericList] operator[<] identifier[T] operator[>] identifier[processWrapper] operator[SEP] identifier[TypeReference] identifier[typeRef] , identifier[URL] identifier[url] , identifier[String] identifier[errorMessageSuffix] operator[SEP] Keywo...
private Record setDefault(Record record) { int size = record.size(); for (int i = 0; i < size; i++) if (record.get(i) == null) { @SuppressWarnings("unchecked") Field<Object> field = (Field<Object>) record.field(i); if (!field.getDataType().null...
class class_name[name] begin[{] method[setDefault, return_type[type[Record]], modifier[private], parameter[record]] begin[{] local_variable[type[int], size] ForStatement(body=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[...
Keyword[private] identifier[Record] identifier[setDefault] operator[SEP] identifier[Record] identifier[record] operator[SEP] { Keyword[int] identifier[size] operator[=] identifier[record] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i...
private static List<Method> findStaticMethods(Class<?> type) { return filter(asList(type.getDeclaredMethods()), STATIC_METHOD_PREDICATE); }
class class_name[name] begin[{] method[findStaticMethods, return_type[type[List]], modifier[private static], parameter[type]] begin[{] return[call[.filter, parameter[call[.asList, parameter[call[type.getDeclaredMethods, parameter[]]]], member[.STATIC_METHOD_PREDICATE]]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Method] operator[>] identifier[findStaticMethods] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { Keyword[return] identifier[filter] operator[SEP] identifier[asList] operator[SEP] identif...
public static char[] toChars(int codePoint) { if (isBmpCodePoint(codePoint)) { return new char[] { (char) codePoint }; } else if (isValidCodePoint(codePoint)) { char[] result = new char[2]; toSurrogates(codePoint, result, 0); return result; } else ...
class class_name[name] begin[{] method[toChars, return_type[type[char]], modifier[public static], parameter[codePoint]] begin[{] if[call[.isBmpCodePoint, parameter[member[.codePoint]]]] begin[{] return[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Cast(e...
Keyword[public] Keyword[static] Keyword[char] operator[SEP] operator[SEP] identifier[toChars] operator[SEP] Keyword[int] identifier[codePoint] operator[SEP] { Keyword[if] operator[SEP] identifier[isBmpCodePoint] operator[SEP] identifier[codePoint] operator[SEP] operator[SEP] { Keyword[return] Keyword[...
public static String getServiceURL(KubernetesClient client, String serviceName, String serviceNamespace, String serviceProtocol, boolean serviceExternal) { Service srv = null; String serviceHost = serviceToHostOrBlank(serviceName); String servicePort = serviceToPortOrBlank(serviceName); ...
class class_name[name] begin[{] method[getServiceURL, return_type[type[String]], modifier[public static], parameter[client, serviceName, serviceNamespace, serviceProtocol, serviceExternal]] begin[{] local_variable[type[Service], srv] local_variable[type[String], serviceHost] local_varia...
Keyword[public] Keyword[static] identifier[String] identifier[getServiceURL] operator[SEP] identifier[KubernetesClient] identifier[client] , identifier[String] identifier[serviceName] , identifier[String] identifier[serviceNamespace] , identifier[String] identifier[serviceProtocol] , Keyword[boolean] identifier[ser...
public PathMatcher.PathMatch<T> match(String path){ if (!exactPathMatches.isEmpty()) { T match = getExactPath(path); if (match != null) { UndertowLogger.REQUEST_LOGGER.debugf("Matched exact path %s", path); return new PathMatcher.PathMatch<>(path, "", match); } } int length = path.length(); fi...
class class_name[name] begin[{] method[match, return_type[type[PathMatcher]], modifier[public], parameter[path]] begin[{] if[call[exactPathMatches.isEmpty, parameter[]]] begin[{] local_variable[type[T], match] if[binary_operation[member[.match], !=, literal[n...
Keyword[public] identifier[PathMatcher] operator[SEP] identifier[PathMatch] operator[<] identifier[T] operator[>] identifier[match] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[exactPathMatches] operator[SEP] identifier[isEmpty] operator[SEP] ...
public int getIndexOfConverterToPass(boolean bSetData) { Converter field = this.getTargetField(null); if (m_converterNext == field) return -1; // -1 is the code for the base field. int iIndex = 0; for ( ; ; iIndex++) { // Is this one already on my list? ...
class class_name[name] begin[{] method[getIndexOfConverterToPass, return_type[type[int]], modifier[public], parameter[bSetData]] begin[{] local_variable[type[Converter], field] if[binary_operation[member[.m_converterNext], ==, member[.field]]] begin[{] return[literal[1]] else be...
Keyword[public] Keyword[int] identifier[getIndexOfConverterToPass] operator[SEP] Keyword[boolean] identifier[bSetData] operator[SEP] { identifier[Converter] identifier[field] operator[=] Keyword[this] operator[SEP] identifier[getTargetField] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[if] opera...
public static SecretKey getSecretKey(File keystore, String entryName, String keyStorePassword) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, UnrecoverableEntryException { KeyStore keyStore = KeyStore.getInstance("JCEKS"); FileInputStream fis =...
class class_name[name] begin[{] method[getSecretKey, return_type[type[SecretKey]], modifier[public static], parameter[keystore, entryName, keyStorePassword]] begin[{] local_variable[type[KeyStore], keyStore] local_variable[type[FileInputStream], fis] if[binary_operation[binary_o...
Keyword[public] Keyword[static] identifier[SecretKey] identifier[getSecretKey] operator[SEP] identifier[File] identifier[keystore] , identifier[String] identifier[entryName] , identifier[String] identifier[keyStorePassword] operator[SEP] Keyword[throws] identifier[KeyStoreException] , identifier[NoSuchAlgorithmExcep...
private void generateDataValue() { if (m_image == null) { m_imagePanel.removeFromParent(); } else { m_imagePanel.addStyleName(m_image); } m_table.insertRow(0); int i = 0; for (String parameter : m_parameters) { if (i > 0) { ...
class class_name[name] begin[{] method[generateDataValue, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.m_image], ==, literal[null]]] begin[{] call[m_imagePanel.removeFromParent, parameter[]] else begin[{] ...
Keyword[private] Keyword[void] identifier[generateDataValue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_image] operator[==] Other[null] operator[SEP] { identifier[m_imagePanel] operator[SEP] identifier[removeFromParent] operator[SEP] operator[SEP] operator[SEP] } ...
public static void head(String url, HttpConsumer<HttpExchange> endpoint, MediaTypes... mediaTypes) { addResource(Methods.HEAD, url, endpoint, mediaTypes); }
class class_name[name] begin[{] method[head, return_type[void], modifier[public static], parameter[url, endpoint, mediaTypes]] begin[{] call[.addResource, parameter[member[Methods.HEAD], member[.url], member[.endpoint], member[.mediaTypes]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[head] operator[SEP] identifier[String] identifier[url] , identifier[HttpConsumer] operator[<] identifier[HttpExchange] operator[>] identifier[endpoint] , identifier[MediaTypes] operator[...] identifier[mediaTypes] operator[SEP] { identifier[addResource] ...
public void setResourceShareInvitationArns(java.util.Collection<String> resourceShareInvitationArns) { if (resourceShareInvitationArns == null) { this.resourceShareInvitationArns = null; return; } this.resourceShareInvitationArns = new java.util.ArrayList<String>(resourc...
class class_name[name] begin[{] method[setResourceShareInvitationArns, return_type[void], modifier[public], parameter[resourceShareInvitationArns]] begin[{] if[binary_operation[member[.resourceShareInvitationArns], ==, literal[null]]] begin[{] assign[THIS[member[None.res...
Keyword[public] Keyword[void] identifier[setResourceShareInvitationArns] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[resourceShareInvitationArns] operator[SEP] { Keyword[if] operator[SEP] identifier[resou...
public String getString() { int len=getInt(); if (len==0xFFFF) return null; try { String s=new String(_buf,_pos,len,StringUtil.__ISO_8859_1); _pos+=len+1; return s; } catch (IndexOutOfBoundsException e) { ...
class class_name[name] begin[{] method[getString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[int], len] if[binary_operation[member[.len], ==, literal[0xFFFF]]] begin[{] return[literal[null]] else begin[{] None end[}] Tr...
Keyword[public] identifier[String] identifier[getString] operator[SEP] operator[SEP] { Keyword[int] identifier[len] operator[=] identifier[getInt] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[len] operator[==] literal[Integer] operator[SEP] Keyword[return] Other[null] operator[S...
@Override public void clear(Principal p, StringBuilder report) { for(Lur lur : lurs) { lur.clear(p, report); } }
class class_name[name] begin[{] method[clear, return_type[void], modifier[public], parameter[p, report]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=p, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[clear] operator[SEP] identifier[Principal] identifier[p] , identifier[StringBuilder] identifier[report] operator[SEP] { Keyword[for] operator[SEP] identifier[Lur] identifier[lur] operator[:] identifier[lurs] operator[SEP] { ...
@VisibleForTesting synchronized int sweep() { long startTime = System.nanoTime(); int swept = 0; for (Map.Entry<String, Deque<AcknowledgableWatermark>> entry : _watermarksMap.entrySet()) { Deque<AcknowledgableWatermark> watermarks = entry.getValue(); /** * Keep popping acked elements fr...
class class_name[name] begin[{] method[sweep, return_type[type[int]], modifier[synchronized], parameter[]] begin[{] local_variable[type[long], startTime] local_variable[type[int], swept] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], de...
annotation[@] identifier[VisibleForTesting] Keyword[synchronized] Keyword[int] identifier[sweep] operator[SEP] operator[SEP] { Keyword[long] identifier[startTime] operator[=] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[swept] operator[=]...
@TargetApi(Build.VERSION_CODES.GINGERBREAD) public static boolean hasBarometerSensorFeature(Context context) { return hasBarometerSensorFeature(context.getPackageManager()); }
class class_name[name] begin[{] method[hasBarometerSensorFeature, return_type[type[boolean]], modifier[public static], parameter[context]] begin[{] return[call[.hasBarometerSensorFeature, parameter[call[context.getPackageManager, parameter[]]]]] end[}] END[}]
annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[GINGERBREAD] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[hasBarometerSensorFeature] operator[SEP] identifier[Context] identifier[context] operator[SEP] { ...
public List<QueryControllerGroup> getGroups() { List<QueryControllerGroup> groups = new ArrayList<QueryControllerGroup>(); for (QueryControllerEntity element : entities) { if (element instanceof QueryControllerGroup) { groups.add((QueryControllerGroup) element); } } return groups; }
class class_name[name] begin[{] method[getGroups, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], groups] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=element, postfix_o...
Keyword[public] identifier[List] operator[<] identifier[QueryControllerGroup] operator[>] identifier[getGroups] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[QueryControllerGroup] operator[>] identifier[groups] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[QueryCon...
private static Type findGenericInterface(Class<?> sourceClass, Class<?> targetBaseInterface) { for (int i = 0; i < sourceClass.getInterfaces().length; i++) { Class<?> inter = sourceClass.getInterfaces()[i]; if (inter == targetBaseInterface) { return sourceClass.getGeneric...
class class_name[name] begin[{] method[findGenericInterface, return_type[type[Type]], modifier[private static], parameter[sourceClass, targetBaseInterface]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensi...
Keyword[private] Keyword[static] identifier[Type] identifier[findGenericInterface] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[sourceClass] , identifier[Class] operator[<] operator[?] operator[>] identifier[targetBaseInterface] operator[SEP] { Keyword[for] operator[SEP] Keywor...
private void parse(byte[] timestampTokenInfo) throws IOException { DerValue tstInfo = new DerValue(timestampTokenInfo); if (tstInfo.tag != DerValue.tag_Sequence) { throw new IOException("Bad encoding for timestamp token info"); } // Parse version version = tstInfo.da...
class class_name[name] begin[{] method[parse, return_type[void], modifier[private], parameter[timestampTokenInfo]] begin[{] local_variable[type[DerValue], tstInfo] if[binary_operation[member[tstInfo.tag], !=, member[DerValue.tag_Sequence]]] begin[{] ThrowStatement(expression...
Keyword[private] Keyword[void] identifier[parse] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[timestampTokenInfo] operator[SEP] Keyword[throws] identifier[IOException] { identifier[DerValue] identifier[tstInfo] operator[=] Keyword[new] identifier[DerValue] operator[SEP] identifier[timestamp...