code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static PrimitiveEvent event(EventType eventType, byte[] value) { return new PrimitiveEvent(EventType.canonical(eventType), value); }
class class_name[name] begin[{] method[event, return_type[type[PrimitiveEvent]], modifier[public static], parameter[eventType, value]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=eventType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
Keyword[public] Keyword[static] identifier[PrimitiveEvent] identifier[event] operator[SEP] identifier[EventType] identifier[eventType] , Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[PrimitiveEvent] operator[SEP] identifier[EventType] operato...
protected Object getReceiver(CreationalContext<?> productCreationalContext, CreationalContext<?> receiverCreationalContext) { // This is a bit dangerous, as it means that producer methods can end up // executing on partially constructed instances. Also, it's not required // by the spec... ...
class class_name[name] begin[{] method[getReceiver, return_type[type[Object]], modifier[protected], parameter[productCreationalContext, receiverCreationalContext]] begin[{] if[call[.getAnnotated, parameter[]]] begin[{] return[literal[null]] else begin[{] ...
Keyword[protected] identifier[Object] identifier[getReceiver] operator[SEP] identifier[CreationalContext] operator[<] operator[?] operator[>] identifier[productCreationalContext] , identifier[CreationalContext] operator[<] operator[?] operator[>] identifier[receiverCreationalContext] operator[SEP] { Keyword[if]...
public void deleteOperaPrefs() { // Only delete if Opera is currently not running // Don't delete in no-launcher mode if (runner != null && !runner.isOperaRunning()) { // Will only delete profile if it's not a default main profile if (!profileUtils.deleteProfile()) { logger.severe("Could...
class class_name[name] begin[{] method[deleteOperaPrefs, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.runner], !=, literal[null]], &&, call[runner.isOperaRunning, parameter[]]]] begin[{] if[call[profileUtils.dele...
Keyword[public] Keyword[void] identifier[deleteOperaPrefs] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[runner] operator[!=] Other[null] operator[&&] operator[!] identifier[runner] operator[SEP] identifier[isOperaRunning] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] op...
public String findFilter(String destination) { FindFilterEvent event = new FindFilterEvent(); event.setDestination(destination); try { Object obj = delegate.callManager(event); if (obj != null && obj instanceof String) { return (String) obj; } ...
class class_name[name] begin[{] method[findFilter, return_type[type[String]], modifier[public], parameter[destination]] begin[{] local_variable[type[FindFilterEvent], event] call[event.setDestination, parameter[member[.destination]]] TryStatement(block=[LocalVariableDeclaration(...
Keyword[public] identifier[String] identifier[findFilter] operator[SEP] identifier[String] identifier[destination] operator[SEP] { identifier[FindFilterEvent] identifier[event] operator[=] Keyword[new] identifier[FindFilterEvent] operator[SEP] operator[SEP] operator[SEP] identifier[event] operator[SEP] identifie...
@Override public EClass getIfcThermodynamicTemperatureMeasure() { if (ifcThermodynamicTemperatureMeasureEClass == null) { ifcThermodynamicTemperatureMeasureEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(884); } return ifcThermodynamicTemperature...
class class_name[name] begin[{] method[getIfcThermodynamicTemperatureMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcThermodynamicTemperatureMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcThermody...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcThermodynamicTemperatureMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcThermodynamicTemperatureMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcThermodynamicTempe...
public InetSocketAddress getRemoteAddressTCP () { SocketChannel socketChannel = tcp.socketChannel; if (socketChannel != null) { Socket socket = tcp.socketChannel.socket(); if (socket != null) { return (InetSocketAddress)socket.getRemoteSocketAddress(); } } return null; }
class class_name[name] begin[{] method[getRemoteAddressTCP, return_type[type[InetSocketAddress]], modifier[public], parameter[]] begin[{] local_variable[type[SocketChannel], socketChannel] if[binary_operation[member[.socketChannel], !=, literal[null]]] begin[{] local_variabl...
Keyword[public] identifier[InetSocketAddress] identifier[getRemoteAddressTCP] operator[SEP] operator[SEP] { identifier[SocketChannel] identifier[socketChannel] operator[=] identifier[tcp] operator[SEP] identifier[socketChannel] operator[SEP] Keyword[if] operator[SEP] identifier[socketChannel] operator[!=] Other[...
public Graph<K, NullValue, EV> intersect(Graph<K, VV, EV> graph, boolean distinctEdges) { DataSet<Edge<K, EV>> intersectEdges; if (distinctEdges) { intersectEdges = getDistinctEdgeIntersection(graph.getEdges()); } else { intersectEdges = getPairwiseEdgeIntersection(graph.getEdges()); } return Graph.fro...
class class_name[name] begin[{] method[intersect, return_type[type[Graph]], modifier[public], parameter[graph, distinctEdges]] begin[{] local_variable[type[DataSet], intersectEdges] if[member[.distinctEdges]] begin[{] assign[member[.intersectEdges], call[.getDist...
Keyword[public] identifier[Graph] operator[<] identifier[K] , identifier[NullValue] , identifier[EV] operator[>] identifier[intersect] operator[SEP] identifier[Graph] operator[<] identifier[K] , identifier[VV] , identifier[EV] operator[>] identifier[graph] , Keyword[boolean] identifier[distinctEdges] operator[SEP]...
@Override public void topPosition(BaseCell cell) { if (cell != null) { int pos = mGroupBasicAdapter.getComponents().indexOf(cell); if (pos > 0) { VirtualLayoutManager lm = getLayoutManager(); View view = lm.findViewByPosition(pos); if (...
class class_name[name] begin[{] method[topPosition, return_type[void], modifier[public], parameter[cell]] begin[{] if[binary_operation[member[.cell], !=, literal[null]]] begin[{] local_variable[type[int], pos] if[binary_operation[member[.pos], >, literal[0]]]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[topPosition] operator[SEP] identifier[BaseCell] identifier[cell] operator[SEP] { Keyword[if] operator[SEP] identifier[cell] operator[!=] Other[null] operator[SEP] { Keyword[int] identifier[pos] operator[=] identifier[mGroupBas...
public String detectMimeType(String filename, Callable<byte[]> getBytes) throws GetBytesException { Supplier<CompletionStage<byte[]>> supplier = () -> { try { return CompletableFuture.completedFuture(getBytes.call()); } catch (Exception ex) { throw new CompletionEx...
class class_name[name] begin[{] method[detectMimeType, return_type[type[String]], modifier[public], parameter[filename, getBytes]] begin[{] local_variable[type[Supplier], supplier] return[call[.unwrapFutureString, parameter[call[.detectMimeTypeAsync, parameter[member[.filename], member[.supplie...
Keyword[public] identifier[String] identifier[detectMimeType] operator[SEP] identifier[String] identifier[filename] , identifier[Callable] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[getBytes] operator[SEP] Keyword[throws] identifier[GetBytesException] { identifier[Supplier] ope...
protected static float costReplace(char x, char y) { int cost = 1; for(char[] xy: repCostChars){ if(xy[0]==x&&xy[1]==y){ cost =2; break; }else if(xy[0]==y&&xy[1]==x){ cost =2; break; } } return cost;//noCostChars.indexOf(c)!=-1?1:0; }
class class_name[name] begin[{] method[costReplace, return_type[type[float]], modifier[static protected], parameter[x, y]] begin[{] local_variable[type[int], cost] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=Me...
Keyword[protected] Keyword[static] Keyword[float] identifier[costReplace] operator[SEP] Keyword[char] identifier[x] , Keyword[char] identifier[y] operator[SEP] { Keyword[int] identifier[cost] operator[=] Other[1] operator[SEP] Keyword[for] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[xy] o...
@Override public void debug(final MessageItem messageItem) { getLogger().log(messageItem.getMarker(), FQCN, LocationAwareLogger.DEBUG_INT, messageItem.getText(), null, null); }
class class_name[name] begin[{] method[debug, return_type[void], modifier[public], parameter[messageItem]] begin[{] call[.getLogger, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[debug] operator[SEP] Keyword[final] identifier[MessageItem] identifier[messageItem] operator[SEP] { identifier[getLogger] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[messageItem] operator[SEP] ident...
public Collection<String> getNames() { Collection<String> names = new HashSet<String>(); for (InitParam initParam : initParams) { names.add(initParam.getName()); } return names; }
class class_name[name] begin[{] method[getNames, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[Collection], names] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(ar...
Keyword[public] identifier[Collection] operator[<] identifier[String] operator[>] identifier[getNames] operator[SEP] operator[SEP] { identifier[Collection] operator[<] identifier[String] operator[>] identifier[names] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[String] operator[>] operator...
public EObject resolveJavaObject(JvmType rootType, String fragment) throws UnknownNestedTypeException { if (fragment.endsWith("[]")) { return resolveJavaArrayObject(rootType, fragment); } int slash = fragment.indexOf('/'); if (slash != -1) { if (slash == 0) return null; String containerFragment = ...
class class_name[name] begin[{] method[resolveJavaObject, return_type[type[EObject]], modifier[public], parameter[rootType, fragment]] begin[{] if[call[fragment.endsWith, parameter[literal["[]"]]]] begin[{] return[call[.resolveJavaArrayObject, parameter[member[.rootType], member[.fr...
Keyword[public] identifier[EObject] identifier[resolveJavaObject] operator[SEP] identifier[JvmType] identifier[rootType] , identifier[String] identifier[fragment] operator[SEP] Keyword[throws] identifier[UnknownNestedTypeException] { Keyword[if] operator[SEP] identifier[fragment] operator[SEP] identifier[endsWi...
static DiyFp minus(DiyFp a, DiyFp b) { DiyFp result = new DiyFp(a.f, a.e); result.subtract(b); return result; }
class class_name[name] begin[{] method[minus, return_type[type[DiyFp]], modifier[static], parameter[a, b]] begin[{] local_variable[type[DiyFp], result] call[result.subtract, parameter[member[.b]]] return[member[.result]] end[}] END[}]
Keyword[static] identifier[DiyFp] identifier[minus] operator[SEP] identifier[DiyFp] identifier[a] , identifier[DiyFp] identifier[b] operator[SEP] { identifier[DiyFp] identifier[result] operator[=] Keyword[new] identifier[DiyFp] operator[SEP] identifier[a] operator[SEP] identifier[f] , identifier[a] operator[SE...
@Deprecated public static final ParquetMetadata readFooter(Configuration configuration, FileStatus file, MetadataFilter filter) throws IOException { return readFooter(HadoopInputFile.fromStatus(file, configuration), filter); }
class class_name[name] begin[{] method[readFooter, return_type[type[ParquetMetadata]], modifier[final public static], parameter[configuration, file, filter]] begin[{] return[call[.readFooter, parameter[call[HadoopInputFile.fromStatus, parameter[member[.file], member[.configuration]]], member[.filter]]]...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[final] identifier[ParquetMetadata] identifier[readFooter] operator[SEP] identifier[Configuration] identifier[configuration] , identifier[FileStatus] identifier[file] , identifier[MetadataFilter] identifier[filter] operator[SEP] Keyword[throw...
public static Collection<HystrixThreadPoolMetrics> getInstances() { List<HystrixThreadPoolMetrics> threadPoolMetrics = new ArrayList<HystrixThreadPoolMetrics>(); for (HystrixThreadPoolMetrics tpm: metrics.values()) { if (hasExecutedCommandsOnThread(tpm)) { threadPoolMetrics.a...
class class_name[name] begin[{] method[getInstances, return_type[type[Collection]], modifier[public static], parameter[]] begin[{] local_variable[type[List], threadPoolMetrics] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberRefer...
Keyword[public] Keyword[static] identifier[Collection] operator[<] identifier[HystrixThreadPoolMetrics] operator[>] identifier[getInstances] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[HystrixThreadPoolMetrics] operator[>] identifier[threadPoolMetrics] operator[=] Keyword[new] identifie...
@Execute public ActionResponse index() { if (fessLoginAssist.getSavedUserBean().isPresent()) { return redirect(RootAction.class); } final SsoManager ssoManager = ComponentUtil.getSsoManager(); final LoginCredential loginCredential = ssoManager.getLoginCredential(); ...
class class_name[name] begin[{] method[index, return_type[type[ActionResponse]], modifier[public], parameter[]] begin[{] if[call[fessLoginAssist.getSavedUserBean, parameter[]]] begin[{] return[call[.redirect, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualif...
annotation[@] identifier[Execute] Keyword[public] identifier[ActionResponse] identifier[index] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fessLoginAssist] operator[SEP] identifier[getSavedUserBean] operator[SEP] operator[SEP] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP]...
public CmsGallerySearchResultList getResult(CmsGallerySearchParameters params) throws CmsException { CmsGallerySearchResultList result = null; if ((m_cms == null) || (m_index == null)) { throw new CmsException(Messages.get().container(Messages.ERR_SEARCH_NOT_INITIALIZED_0)); } ...
class class_name[name] begin[{] method[getResult, return_type[type[CmsGallerySearchResultList]], modifier[public], parameter[params]] begin[{] local_variable[type[CmsGallerySearchResultList], result] if[binary_operation[binary_operation[member[.m_cms], ==, literal[null]], ||, binary_ope...
Keyword[public] identifier[CmsGallerySearchResultList] identifier[getResult] operator[SEP] identifier[CmsGallerySearchParameters] identifier[params] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[CmsGallerySearchResultList] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if]...
public OvhDeposit deposit_depositId_GET(String depositId) throws IOException { String qPath = "/me/deposit/{depositId}"; StringBuilder sb = path(qPath, depositId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhDeposit.class); }
class class_name[name] begin[{] method[deposit_depositId_GET, return_type[type[OvhDeposit]], modifier[public], parameter[depositId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convertTo, pa...
Keyword[public] identifier[OvhDeposit] identifier[deposit_depositId_GET] operator[SEP] identifier[String] identifier[depositId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[...
@SuppressWarnings({"unchecked"}) public <T> T getBean(final Class<T> type) { String name = resolveBeanName(type); return (T) getBean(name); }
class class_name[name] begin[{] method[getBean, return_type[type[T]], modifier[public], parameter[type]] begin[{] local_variable[type[String], name] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] } operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[getBean] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] { identi...
@Override public FilterSupportStatus isFilterSupported( FilterAdapterContext context, org.apache.hadoop.hbase.filter.RowFilter filter) { ByteArrayComparable comparator = filter.getComparator(); if (!(comparator instanceof RegexStringComparator) && !(comparator instanceof BinaryComparator)) { ...
class class_name[name] begin[{] method[isFilterSupported, return_type[type[FilterSupportStatus]], modifier[public], parameter[context, filter]] begin[{] local_variable[type[ByteArrayComparable], comparator] if[binary_operation[binary_operation[member[.comparator], instanceof, type[Regex...
annotation[@] identifier[Override] Keyword[public] identifier[FilterSupportStatus] identifier[isFilterSupported] operator[SEP] identifier[FilterAdapterContext] identifier[context] , identifier[org] operator[SEP] identifier[apache] operator[SEP] identifier[hadoop] operator[SEP] identifier[hbase] operator[SEP] identifie...
public Vector3d normalizedPositiveY(Vector3d dest) { dest.x = m01; dest.y = m11; dest.z = m21; return dest; }
class class_name[name] begin[{] method[normalizedPositiveY, return_type[type[Vector3d]], modifier[public], parameter[dest]] begin[{] assign[member[dest.x], member[.m01]] assign[member[dest.y], member[.m11]] assign[member[dest.z], member[.m21]] return[memb...
Keyword[public] identifier[Vector3d] identifier[normalizedPositiveY] operator[SEP] identifier[Vector3d] identifier[dest] operator[SEP] { identifier[dest] operator[SEP] identifier[x] operator[=] identifier[m01] operator[SEP] identifier[dest] operator[SEP] identifier[y] operator[=] identifier[m11] operator[SEP] id...
public static SmileParser newSmileParser(InputStream in, byte[] buf, int offset, int limit) throws IOException { return newSmileParser(in, buf, offset, limit, false, new IOContext(DEFAULT_SMILE_FACTORY._getBufferRecycler(), in, false)); }
class class_name[name] begin[{] method[newSmileParser, return_type[type[SmileParser]], modifier[public static], parameter[in, buf, offset, limit]] begin[{] return[call[.newSmileParser, parameter[member[.in], member[.buf], member[.offset], member[.limit], literal[false], ClassCreator(arguments=[MethodIn...
Keyword[public] Keyword[static] identifier[SmileParser] identifier[newSmileParser] operator[SEP] identifier[InputStream] identifier[in] , Keyword[byte] operator[SEP] operator[SEP] identifier[buf] , Keyword[int] identifier[offset] , Keyword[int] identifier[limit] operator[SEP] Keyword[throws] identifier[IOException] ...
private void cacheData(@NonNull final KeyType key, @NonNull final DataType data) { synchronized (cache) { if (useCache) { cache.put(key, data); } } }
class class_name[name] begin[{] method[cacheData, return_type[void], modifier[private], parameter[key, data]] begin[{] SYNCHRONIZED[member[.cache]] BEGIN[{] if[member[.useCache]] begin[{] call[cache.put, parameter[member[.key], member[.dat...
Keyword[private] Keyword[void] identifier[cacheData] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[KeyType] identifier[key] , annotation[@] identifier[NonNull] Keyword[final] identifier[DataType] identifier[data] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[cache] o...
public Object decode(final Class c, final Object fromDBObject, final MappedField mf) { Class toDecode = c; if (toDecode == null) { toDecode = fromDBObject.getClass(); } return getEncoder(toDecode).decode(toDecode, fromDBObject, mf); }
class class_name[name] begin[{] method[decode, return_type[type[Object]], modifier[public], parameter[c, fromDBObject, mf]] begin[{] local_variable[type[Class], toDecode] if[binary_operation[member[.toDecode], ==, literal[null]]] begin[{] assign[member[.toDecode]...
Keyword[public] identifier[Object] identifier[decode] operator[SEP] Keyword[final] identifier[Class] identifier[c] , Keyword[final] identifier[Object] identifier[fromDBObject] , Keyword[final] identifier[MappedField] identifier[mf] operator[SEP] { identifier[Class] identifier[toDecode] operator[=] identifier[c...
public static FieldMapping getFieldMapping(IDataType type) { switch (type.getTypeCategory()) { case CLASS: case TRAIT: return ((HierarchicalType)type).fieldMapping(); case STRUCT: return ((StructType)type).fieldMapping(); default: throw new I...
class class_name[name] begin[{] method[getFieldMapping, return_type[type[FieldMapping]], modifier[public static], parameter[type]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['CLASS', 'TRAIT'], statements=[ReturnStatement(expression=Cast(expression=MemberReference(member=type, postfix_ope...
Keyword[public] Keyword[static] identifier[FieldMapping] identifier[getFieldMapping] operator[SEP] identifier[IDataType] identifier[type] operator[SEP] { Keyword[switch] operator[SEP] identifier[type] operator[SEP] identifier[getTypeCategory] operator[SEP] operator[SEP] operator[SEP] { Keyword[case] i...
public void stopBroadcasting() { if (mBroadcaster.isRecording()) { mBroadcaster.stopRecording(); mBroadcaster.release(); } else { Log.e(TAG, "stopBroadcasting called but mBroadcaster not broadcasting"); } }
class class_name[name] begin[{] method[stopBroadcasting, return_type[void], modifier[public], parameter[]] begin[{] if[call[mBroadcaster.isRecording, parameter[]]] begin[{] call[mBroadcaster.stopRecording, parameter[]] call[mBroadcaster.release, p...
Keyword[public] Keyword[void] identifier[stopBroadcasting] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mBroadcaster] operator[SEP] identifier[isRecording] operator[SEP] operator[SEP] operator[SEP] { identifier[mBroadcaster] operator[SEP] identifier[stopRecording] operator[SEP] o...
protected void perform(JSONObject json, Coordinator coordinator, Provider provider) { logger.trace("Extracting event from JSON."); GerritEvent event = GerritJsonEventFactory.getEvent(json); if (event != null) { if (event instanceof GerritTriggeredEvent) { GerritTrigge...
class class_name[name] begin[{] method[perform, return_type[void], modifier[protected], parameter[json, coordinator, provider]] begin[{] call[logger.trace, parameter[literal["Extracting event from JSON."]]] local_variable[type[GerritEvent], event] if[binary_operation[mem...
Keyword[protected] Keyword[void] identifier[perform] operator[SEP] identifier[JSONObject] identifier[json] , identifier[Coordinator] identifier[coordinator] , identifier[Provider] identifier[provider] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[SEP]...
private void _writeString(String text) throws IOException, JsonGenerationException { /* One check first: if String won't fit in the buffer, let's * segment writes. No point in extending buffer to huge sizes * (like if someone wants to include multi-megabyte base64 * encode...
class class_name[name] begin[{] method[_writeString, return_type[void], modifier[private], parameter[text]] begin[{] local_variable[type[int], len] if[binary_operation[member[.len], >, member[._outputEnd]]] begin[{] call[._writeLongString, parameter[member[.text]...
Keyword[private] Keyword[void] identifier[_writeString] operator[SEP] identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JsonGenerationException] { Keyword[final] Keyword[int] identifier[len] operator[=] identifier[text] operator[SEP] identifier[length] operat...
private boolean previousSegment() { assert(state == State.ITER_CHECK_BWD); // The input text [(iter index)..limit[ passes the FCD check. pos = iter.getIndex(); // Collect the characters being checked, in case they need to be normalized. if(s == null) { s = new StringB...
class class_name[name] begin[{] method[previousSegment, return_type[type[boolean]], modifier[private], parameter[]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(me...
Keyword[private] Keyword[boolean] identifier[previousSegment] operator[SEP] operator[SEP] { Keyword[assert] operator[SEP] identifier[state] operator[==] identifier[State] operator[SEP] identifier[ITER_CHECK_BWD] operator[SEP] operator[SEP] identifier[pos] operator[=] identifier[iter] operator[SEP] identifier[get...
public static <T> T checkNotNull(T value, String message) { if (value == null) throw new NullPointerException(message); return value; }
class class_name[name] begin[{] method[checkNotNull, return_type[type[T]], modifier[public static], parameter[value, message]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=message, postfix_oper...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[checkNotNull] operator[SEP] identifier[T] identifier[value] , identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[throw] Ke...
public EnvelopesInformation listStatus(String accountId, EnvelopeIdsRequest envelopeIdsRequest) throws ApiException { return listStatus(accountId, envelopeIdsRequest, null); }
class class_name[name] begin[{] method[listStatus, return_type[type[EnvelopesInformation]], modifier[public], parameter[accountId, envelopeIdsRequest]] begin[{] return[call[.listStatus, parameter[member[.accountId], member[.envelopeIdsRequest], literal[null]]]] end[}] END[}]
Keyword[public] identifier[EnvelopesInformation] identifier[listStatus] operator[SEP] identifier[String] identifier[accountId] , identifier[EnvelopeIdsRequest] identifier[envelopeIdsRequest] operator[SEP] Keyword[throws] identifier[ApiException] { Keyword[return] identifier[listStatus] operator[SEP] identifier[...
public <T, V extends Comparable<T>> V exclusiveBetween(final T start, final T end, final V value, final String message, final Object... values) { if (value.compareTo(start) <= 0 || value.compareTo(end) >= 0) { fail(String.format(message, values)); } return value; }
class class_name[name] begin[{] method[exclusiveBetween, return_type[type[V]], modifier[public], parameter[start, end, value, message, values]] begin[{] if[binary_operation[binary_operation[call[value.compareTo, parameter[member[.start]]], <=, literal[0]], ||, binary_operation[call[value.compar...
Keyword[public] operator[<] identifier[T] , identifier[V] Keyword[extends] identifier[Comparable] operator[<] identifier[T] operator[>] operator[>] identifier[V] identifier[exclusiveBetween] operator[SEP] Keyword[final] identifier[T] identifier[start] , Keyword[final] identifier[T] identifier[end] , Keyword[final] i...
public static Optional<String> trimStart(final String input, String... chars) { return Optional.ofNullable(input).filter(v -> !v.isEmpty()).map(v -> { String pattern = String.format("^[%s]+", join(chars, "\\")); return v.replaceAll(pattern, ""); }); }
class class_name[name] begin[{] method[trimStart, return_type[type[Optional]], modifier[public static], parameter[input, chars]] begin[{] return[call[Optional.ofNullable, parameter[member[.input]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[String] operator[>] identifier[trimStart] operator[SEP] Keyword[final] identifier[String] identifier[input] , identifier[String] operator[...] identifier[chars] operator[SEP] { Keyword[return] identifier[Optional] operator[SEP] identifi...
public static LinkedBindingBuilder<HttpClientObserver> bindNewObserver(final Binder binder, final Annotation annotation) { return Multibinder.newSetBinder(binder, HttpClientObserver.class, annotation).addBinding(); }
class class_name[name] begin[{] method[bindNewObserver, return_type[type[LinkedBindingBuilder]], modifier[public static], parameter[binder, annotation]] begin[{] return[call[Multibinder.newSetBinder, parameter[member[.binder], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[static] identifier[LinkedBindingBuilder] operator[<] identifier[HttpClientObserver] operator[>] identifier[bindNewObserver] operator[SEP] Keyword[final] identifier[Binder] identifier[binder] , Keyword[final] identifier[Annotation] identifier[annotation] operator[SEP] { Keyword[return] id...
public static ListeningScheduledExecutorService listeningDecorator( ScheduledExecutorService delegate) { return (delegate instanceof ListeningScheduledExecutorService) ? (ListeningScheduledExecutorService) delegate : new ScheduledListeningDecorator(delegate); }
class class_name[name] begin[{] method[listeningDecorator, return_type[type[ListeningScheduledExecutorService]], modifier[public static], parameter[delegate]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=delegate, postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] identifier[ListeningScheduledExecutorService] identifier[listeningDecorator] operator[SEP] identifier[ScheduledExecutorService] identifier[delegate] operator[SEP] { Keyword[return] operator[SEP] identifier[delegate] Keyword[instanceof] identifier[ListeningScheduledExecutorService]...
public static boolean uninstallAddOnFiles( AddOn addOn, AddOnUninstallationProgressCallback callback, Set<AddOn> installedAddOns) { Validate.notNull(addOn, "Parameter addOn must not be null."); validateCallbackNotNull(callback); List<String> fileNames = getFi...
class class_name[name] begin[{] method[uninstallAddOnFiles, return_type[type[boolean]], modifier[public static], parameter[addOn, callback, installedAddOns]] begin[{] call[Validate.notNull, parameter[member[.addOn], literal["Parameter addOn must not be null."]]] call[.validateCa...
Keyword[public] Keyword[static] Keyword[boolean] identifier[uninstallAddOnFiles] operator[SEP] identifier[AddOn] identifier[addOn] , identifier[AddOnUninstallationProgressCallback] identifier[callback] , identifier[Set] operator[<] identifier[AddOn] operator[>] identifier[installedAddOns] operator[SEP] { ident...
static void checkCompilePolicy(@Nullable String compilePolicy) { if (compilePolicy == null) { throw new InvalidCommandLineOptionException( "The default compilation policy (by-todo) is not supported by Error Prone," + " pass -XDcompilePolicy=byfile instead"); } switch (compilePo...
class class_name[name] begin[{] method[checkCompilePolicy, return_type[void], modifier[static], parameter[compilePolicy]] begin[{] if[binary_operation[member[.compilePolicy], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Lite...
Keyword[static] Keyword[void] identifier[checkCompilePolicy] operator[SEP] annotation[@] identifier[Nullable] identifier[String] identifier[compilePolicy] operator[SEP] { Keyword[if] operator[SEP] identifier[compilePolicy] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier...
public static File createLocalHash(File resource, String remoteLocation) throws ResourceDownloadError { File localHashFile; try { String contents = readFileToString(resource); String hashValue = hasher.hashValue(contents); String absPath = resource.getAbs...
class class_name[name] begin[{] method[createLocalHash, return_type[type[File]], modifier[public static], parameter[resource, remoteLocation]] begin[{] local_variable[type[File], localHashFile] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensio...
Keyword[public] Keyword[static] identifier[File] identifier[createLocalHash] operator[SEP] identifier[File] identifier[resource] , identifier[String] identifier[remoteLocation] operator[SEP] Keyword[throws] identifier[ResourceDownloadError] { identifier[File] identifier[localHashFile] operator[SEP] Keyword[try]...
public Type getLink() throws CacheReloadException { if (this.link == null) { Attribute.LOG.error("Access on Attribute Link without parent defintion: {}", this); } return Type.get(this.link); }
class class_name[name] begin[{] method[getLink, return_type[type[Type]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.link]], ==, literal[null]]] begin[{] call[Attribute.LOG.error, parameter[literal["Access on Attribute Link without parent...
Keyword[public] identifier[Type] identifier[getLink] operator[SEP] operator[SEP] Keyword[throws] identifier[CacheReloadException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[link] operator[==] Other[null] operator[SEP] { identifier[Attribute] operator[SEP] identifier[LOG] operat...
protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer, int sendSegmentType, int priority, boolean canPoolOnReceive) throws SIConnectionDroppedException, SIConnectionLostException ...
class class_name[name] begin[{] method[jfapExchange, return_type[type[CommsByteBuffer]], modifier[protected], parameter[buffer, sendSegmentType, priority, canPoolOnReceive]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter...
Keyword[protected] identifier[CommsByteBuffer] identifier[jfapExchange] operator[SEP] identifier[CommsByteBuffer] identifier[buffer] , Keyword[int] identifier[sendSegmentType] , Keyword[int] identifier[priority] , Keyword[boolean] identifier[canPoolOnReceive] operator[SEP] Keyword[throws] identifier[SIConnectionDrop...
private void checkDefaults() { Utils.require(m_shards != null || m_shardsRange != null, "shards or range parameter is not set"); Utils.require(m_shards == null || m_shardsRange == null, "shards and range parameters cannot be both set"); Utils.require(m_xshards == null || m_xshardsRa...
class class_name[name] begin[{] method[checkDefaults, return_type[void], modifier[private], parameter[]] begin[{] call[Utils.require, parameter[binary_operation[binary_operation[member[.m_shards], !=, literal[null]], ||, binary_operation[member[.m_shardsRange], !=, literal[null]]], literal["sha...
Keyword[private] Keyword[void] identifier[checkDefaults] operator[SEP] operator[SEP] { identifier[Utils] operator[SEP] identifier[require] operator[SEP] identifier[m_shards] operator[!=] Other[null] operator[||] identifier[m_shardsRange] operator[!=] Other[null] , literal[String] operator[SEP] operator[SEP] ide...
public void processSkeleton( BinaryFast binary, int[][] kernel ) { int oldForeEdge = 0; int oldBackEdge = 0; while( !(binary.getForegroundEdgePixels().size() == oldForeEdge && binary.getBackgroundEdgePixels().size() == oldBackEdge) ) { oldForeEdge = binary.getForegroundEdgePixels().s...
class class_name[name] begin[{] method[processSkeleton, return_type[void], modifier[public], parameter[binary, kernel]] begin[{] local_variable[type[int], oldForeEdge] local_variable[type[int], oldBackEdge] while[binary_operation[binary_operation[call[binary.getForegroundEdgePix...
Keyword[public] Keyword[void] identifier[processSkeleton] operator[SEP] identifier[BinaryFast] identifier[binary] , Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[kernel] operator[SEP] { Keyword[int] identifier[oldForeEdge] operator[=] Other[0] operator[SEP] Keyword[int] identif...
protected void configurePlugins(ProcessEngineConfigurationImpl configuration, ProcessEngineXml processEngineXml, ClassLoader classLoader) { for (ProcessEnginePluginXml pluginXml : processEngineXml.getPlugins()) { // create plugin instance Class<? extends ProcessEnginePlugin> pluginClass = loadClass(plu...
class class_name[name] begin[{] method[configurePlugins, return_type[void], modifier[protected], parameter[configuration, processEngineXml, classLoader]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions...
Keyword[protected] Keyword[void] identifier[configurePlugins] operator[SEP] identifier[ProcessEngineConfigurationImpl] identifier[configuration] , identifier[ProcessEngineXml] identifier[processEngineXml] , identifier[ClassLoader] identifier[classLoader] operator[SEP] { Keyword[for] operator[SEP] identifier[Pr...
public void setLanguage(String v) { if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_language == null) jcasType.jcas.throwFeatMissing("language", "de.julielab.jules.types.Header"); jcasType.ll_cas.ll_setStringValue(addr, ((Header_Type)jcasType).casFeatCode_language, v);}
class class_name[name] begin[{] method[setLanguage, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[Header_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[public] Keyword[void] identifier[setLanguage] operator[SEP] identifier[String] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[Header_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Header_Type] operator[SEP] identifier[jcasType] operator[S...
public <T, P1, P2> T getPrototypeBean( final ConstructorWithBeansAnd2Parameters<T, P1, P2> creator, final P1 param1, final P2 param2) { final PrototypeProvider provider = new PrototypeProvider(name, beans -> creator.create(beans, param1, param2)); return provider.getBean(this...
class class_name[name] begin[{] method[getPrototypeBean, return_type[type[T]], modifier[public], parameter[creator, param1, param2]] begin[{] local_variable[type[PrototypeProvider], provider] return[call[provider.getBean, parameter[THIS[], member[.dryRun]]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] , identifier[P1] , identifier[P2] operator[>] identifier[T] identifier[getPrototypeBean] operator[SEP] Keyword[final] identifier[ConstructorWithBeansAnd2Parameters] operator[<] identifier[T] , identifier[P1] , identifier[P2] operator[>] identifier[creator] , Keyword[final]...
private Set<String> findReachableNodes(CmsAppCategoryNode rootNode, HashSet<String> reachableNodes) { reachableNodes.add(rootNode.getCategory().getId()); for (CmsAppCategoryNode child : rootNode.getChildren()) { findReachableNodes(child, reachableNodes); } return reachableNo...
class class_name[name] begin[{] method[findReachableNodes, return_type[type[Set]], modifier[private], parameter[rootNode, reachableNodes]] begin[{] call[reachableNodes.add, parameter[call[rootNode.getCategory, parameter[]]]] ForStatement(body=BlockStatement(label=None, statements=[State...
Keyword[private] identifier[Set] operator[<] identifier[String] operator[>] identifier[findReachableNodes] operator[SEP] identifier[CmsAppCategoryNode] identifier[rootNode] , identifier[HashSet] operator[<] identifier[String] operator[>] identifier[reachableNodes] operator[SEP] { identifier[reachableNodes] oper...
private Object extractAsRuntime(Field field, String valueStr) { if (field.getType() == Byte.TYPE || field.getType() == Byte.class || field.getType() == Short.TYPE || field.getType() == Short.class || field.getType() == Integer.TYPE || field.getType() == Integer.class || field.getType() =...
class class_name[name] begin[{] method[extractAsRuntime, return_type[type[Object]], modifier[private], parameter[field, valueStr]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation...
Keyword[private] identifier[Object] identifier[extractAsRuntime] operator[SEP] identifier[Field] identifier[field] , identifier[String] identifier[valueStr] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[==] identifier[Byte] ope...
public static JsonDocument create(String id, JsonObject content) { return new JsonDocument(id, 0, content, 0, null); }
class class_name[name] begin[{] method[create, return_type[type[JsonDocument]], modifier[public static], parameter[id, content]] begin[{] return[ClassCreator(arguments=[MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[static] identifier[JsonDocument] identifier[create] operator[SEP] identifier[String] identifier[id] , identifier[JsonObject] identifier[content] operator[SEP] { Keyword[return] Keyword[new] identifier[JsonDocument] operator[SEP] identifier[id] , Other[0] , identifier[content] , Other[...
public static String format(Instant time, DateTimeFormatter format) { if (format == null) { return formatDateTime(time); } Assert.notNull(time, "Missing time!"); return format.format(time); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[time, format]] begin[{] if[binary_operation[member[.format], ==, literal[null]]] begin[{] return[call[.formatDateTime, parameter[member[.time]]]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] identifier[Instant] identifier[time] , identifier[DateTimeFormatter] identifier[format] operator[SEP] { Keyword[if] operator[SEP] identifier[format] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[...
public static final void texture(final Shape shape, Image image, final TexCoordGenerator gen) { Texture t = TextureImpl.getLastBind(); image.getTexture().bind(); final float center[] = shape.getCenter(); fill(shape, new PointCallback() { public float[] preRenderPoint(Shape sh...
class class_name[name] begin[{] method[texture, return_type[void], modifier[final public static], parameter[shape, image, gen]] begin[{] local_variable[type[Texture], t] call[image.getTexture, parameter[]] local_variable[type[float], center] call[.fill, parameter...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[texture] operator[SEP] Keyword[final] identifier[Shape] identifier[shape] , identifier[Image] identifier[image] , Keyword[final] identifier[TexCoordGenerator] identifier[gen] operator[SEP] { identifier[Texture] identifier[t] operator[=] id...
public void updateParamsForAuth(String[] authNames, List<Pair> queryParams, Map<String, String> headerParams) { for (String authName : authNames) { Authentication auth = authentications.get(authName); if (auth == null) throw new RuntimeException("Authentication undefined: " + authName); ...
class class_name[name] begin[{] method[updateParamsForAuth, return_type[void], modifier[public], parameter[authNames, queryParams, headerParams]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], ini...
Keyword[public] Keyword[void] identifier[updateParamsForAuth] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[authNames] , identifier[List] operator[<] identifier[Pair] operator[>] identifier[queryParams] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identi...
public static void applyButtonTreeCellRenderer(JTree tree, Function<Object, JButton> buttonFactory, Function<Object, String> textFactory) { TreeCellRenderer treeCellrenderer = new GenericTreeCellRenderer() { @Override protected void prepare(Object node...
class class_name[name] begin[{] method[applyButtonTreeCellRenderer, return_type[void], modifier[public static], parameter[tree, buttonFactory, textFactory]] begin[{] local_variable[type[TreeCellRenderer], treeCellrenderer] call[tree.setCellRenderer, parameter[member[.treeCellrenderer]]]...
Keyword[public] Keyword[static] Keyword[void] identifier[applyButtonTreeCellRenderer] operator[SEP] identifier[JTree] identifier[tree] , identifier[Function] operator[<] identifier[Object] , identifier[JButton] operator[>] identifier[buttonFactory] , identifier[Function] operator[<] identifier[Object] , identifier[...
@Override public InputStream openStream() { try { return new BufferedInputStream(url.openStream(), 8192); } catch (Exception e) { throw new RuntimeException("Could not open stream for url " + url.toExternalForm(), e); } }
class class_name[name] begin[{] method[openStream, return_type[type[InputStream]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=openStream, postfix_operators=[], prefix_operators=[], qualifier=url, s...
annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[openStream] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] Keyword[new] identifier[BufferedInputStream] operator[SEP] identifier[url] operator[SEP] identifier[openStream] operator[SEP] operator[SEP] , ...
@Override public CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) { final CacheKey parentKey = this.wrappedComponent.getCacheKey(request, response); final CacheKey attributeKey = this.attributeSource.getCacheKey(request, response); return CacheKey.build(this.bea...
class class_name[name] begin[{] method[getCacheKey, return_type[type[CacheKey]], modifier[public], parameter[request, response]] begin[{] local_variable[type[CacheKey], parentKey] local_variable[type[CacheKey], attributeKey] return[call[CacheKey.build, parameter[THIS[member[None.beanNam...
annotation[@] identifier[Override] Keyword[public] identifier[CacheKey] identifier[getCacheKey] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] { Keyword[final] identifier[CacheKey] identifier[parentKey] operator[=] Keyword[th...
public CharacterLocationResponse getCharactersCharacterIdLocation(Integer characterId, String datasource, String ifNoneMatch, String token) throws ApiException { ApiResponse<CharacterLocationResponse> resp = getCharactersCharacterIdLocationWithHttpInfo(characterId, datasource, ifNone...
class class_name[name] begin[{] method[getCharactersCharacterIdLocation, return_type[type[CharacterLocationResponse]], modifier[public], parameter[characterId, datasource, ifNoneMatch, token]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] EN...
Keyword[public] identifier[CharacterLocationResponse] identifier[getCharactersCharacterIdLocation] operator[SEP] identifier[Integer] identifier[characterId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] , identifier[String] identifier[token] operator[SEP] Keyword[throws] id...
private void _writeNodeList (@Nonnull final XMLEmitter aXMLWriter, @Nullable final IMicroNode aParentNode, @Nonnull final List <IMicroNode> aChildren) { final int nLastIndex = aChildren.size () - 1; for (int nIndex = 0; nIndex <= nLastIndex; ++nInd...
class class_name[name] begin[{] method[_writeNodeList, return_type[void], modifier[private], parameter[aXMLWriter, aParentNode, aChildren]] begin[{] local_variable[type[int], nLastIndex] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arg...
Keyword[private] Keyword[void] identifier[_writeNodeList] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[XMLEmitter] identifier[aXMLWriter] , annotation[@] identifier[Nullable] Keyword[final] identifier[IMicroNode] identifier[aParentNode] , annotation[@] identifier[Nonnull] Keyword[final] i...
public static Map<String, PropertyDescriptor> mapPropertyDescriptors(Class<?> clazz) { PropertyDescriptor[] properties = propertyDescriptors(clazz); Map<String, PropertyDescriptor> mappedProperties = new HashMap<String, PropertyDescriptor>(); for (PropertyDescriptor property : properties) {...
class class_name[name] begin[{] method[mapPropertyDescriptors, return_type[type[Map]], modifier[public static], parameter[clazz]] begin[{] local_variable[type[PropertyDescriptor], properties] local_variable[type[Map], mappedProperties] ForStatement(body=BlockStatement(label=None, statem...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[PropertyDescriptor] operator[>] identifier[mapPropertyDescriptors] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[PropertyDescriptor] operator[SEP] operat...
public final GetDatabaseDdlResponse getDatabaseDdl(DatabaseName database) { GetDatabaseDdlRequest request = GetDatabaseDdlRequest.newBuilder() .setDatabase(database == null ? null : database.toString()) .build(); return getDatabaseDdl(request); }
class class_name[name] begin[{] method[getDatabaseDdl, return_type[type[GetDatabaseDdlResponse]], modifier[final public], parameter[database]] begin[{] local_variable[type[GetDatabaseDdlRequest], request] return[call[.getDatabaseDdl, parameter[member[.request]]]] end[}] END[}]
Keyword[public] Keyword[final] identifier[GetDatabaseDdlResponse] identifier[getDatabaseDdl] operator[SEP] identifier[DatabaseName] identifier[database] operator[SEP] { identifier[GetDatabaseDdlRequest] identifier[request] operator[=] identifier[GetDatabaseDdlRequest] operator[SEP] identifier[newBuilder] operato...
protected void removeWorkspace(ManageableRepository mr, String workspaceName) throws RepositoryException { boolean isExists = false; for (String wsName : mr.getWorkspaceNames()) if (workspaceName.equals(wsName)) { isExists = true; break; } if (is...
class class_name[name] begin[{] method[removeWorkspace, return_type[void], modifier[protected], parameter[mr, workspaceName]] begin[{] local_variable[type[boolean], isExists] ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=wsName, postfix_operators=[],...
Keyword[protected] Keyword[void] identifier[removeWorkspace] operator[SEP] identifier[ManageableRepository] identifier[mr] , identifier[String] identifier[workspaceName] operator[SEP] Keyword[throws] identifier[RepositoryException] { Keyword[boolean] identifier[isExists] operator[=] literal[boolean] operator[SE...
private void onRecord(Record message, ActorRef self, ActorRef sender) { if (is(inProgress)) { // Forward to media server controller this.recording = true; this.msController.tell(message, sender); } }
class class_name[name] begin[{] method[onRecord, return_type[void], modifier[private], parameter[message, self, sender]] begin[{] if[call[.is, parameter[member[.inProgress]]]] begin[{] assign[THIS[member[None.recording]], literal[true]] THIS[membe...
Keyword[private] Keyword[void] identifier[onRecord] operator[SEP] identifier[Record] identifier[message] , identifier[ActorRef] identifier[self] , identifier[ActorRef] identifier[sender] operator[SEP] { Keyword[if] operator[SEP] identifier[is] operator[SEP] identifier[inProgress] operator[SEP] operator[SEP] {...
public Expiring<T> withDefault(long expireTime, TimeUnit expireUnit) { checkArgument(expireTime > 0); this.defaultExpireTime = Optional.of(expireTime); this.defaultExpireUnit = Optional.of(expireUnit); return this; }
class class_name[name] begin[{] method[withDefault, return_type[type[Expiring]], modifier[public], parameter[expireTime, expireUnit]] begin[{] call[.checkArgument, parameter[binary_operation[member[.expireTime], >, literal[0]]]] assign[THIS[member[None.defaultExpireTime]], call[...
Keyword[public] identifier[Expiring] operator[<] identifier[T] operator[>] identifier[withDefault] operator[SEP] Keyword[long] identifier[expireTime] , identifier[TimeUnit] identifier[expireUnit] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[expireTime] operator[>] Other[0] operator[SEP] op...
@Override public void setup(Context context) throws IOException ,InterruptedException { this.context = context; inputLabels = context.getConfiguration().getStrings(SimpleJob.BEFORE_SUMMARIZER_OUTPUT_LABELS); boolean label = context.getConfiguration().getStrings(Si...
class class_name[name] begin[{] method[setup, return_type[void], modifier[public], parameter[context]] begin[{] assign[THIS[member[None.context]], member[.context]] assign[member[.inputLabels], call[context.getConfiguration, parameter[]]] local_variable[type[boolean], la...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setup] operator[SEP] identifier[Context] identifier[context] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[this] operator[SEP] identifier[context] operator[=] identifier[context] oper...
public CommandInvocation withCommandPlugins(CommandPlugin... commandPlugins) { if (this.commandPlugins == null) { setCommandPlugins(new com.amazonaws.internal.SdkInternalList<CommandPlugin>(commandPlugins.length)); } for (CommandPlugin ele : commandPlugins) { this.command...
class class_name[name] begin[{] method[withCommandPlugins, return_type[type[CommandInvocation]], modifier[public], parameter[commandPlugins]] begin[{] if[binary_operation[THIS[member[None.commandPlugins]], ==, literal[null]]] begin[{] call[.setCommandPlugins, parameter[C...
Keyword[public] identifier[CommandInvocation] identifier[withCommandPlugins] operator[SEP] identifier[CommandPlugin] operator[...] identifier[commandPlugins] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[commandPlugins] operator[==] Other[null] operator[SEP] { identi...
public GetMaintenanceWindowExecutionResult withTaskIds(String... taskIds) { if (this.taskIds == null) { setTaskIds(new com.amazonaws.internal.SdkInternalList<String>(taskIds.length)); } for (String ele : taskIds) { this.taskIds.add(ele); } return this; ...
class class_name[name] begin[{] method[withTaskIds, return_type[type[GetMaintenanceWindowExecutionResult]], modifier[public], parameter[taskIds]] begin[{] if[binary_operation[THIS[member[None.taskIds]], ==, literal[null]]] begin[{] call[.setTaskIds, parameter[ClassCreato...
Keyword[public] identifier[GetMaintenanceWindowExecutionResult] identifier[withTaskIds] operator[SEP] identifier[String] operator[...] identifier[taskIds] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[taskIds] operator[==] Other[null] operator[SEP] { identifier[setTa...
public void configureWebApp () throws Exception { //cannot configure if the _context is already started if (_context.isStarted()) { if (log.isDebugEnabled()){log.debug("Cannot configure webapp after it is started");}; return; } if(log.isDebugE...
class class_name[name] begin[{] method[configureWebApp, return_type[void], modifier[public], parameter[]] begin[{] if[call[_context.isStarted, parameter[]]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parame...
Keyword[public] Keyword[void] identifier[configureWebApp] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP] identifier[_context] operator[SEP] identifier[isStarted] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operato...
public int getTypeIdFor(String slashname, boolean allocateIfNotFound) { if (allocateIfNotFound) { return NameRegistry.getIdOrAllocateFor(slashname); } else { return NameRegistry.getIdFor(slashname); } }
class class_name[name] begin[{] method[getTypeIdFor, return_type[type[int]], modifier[public], parameter[slashname, allocateIfNotFound]] begin[{] if[member[.allocateIfNotFound]] begin[{] return[call[NameRegistry.getIdOrAllocateFor, parameter[member[.slashname]]]] else begin[...
Keyword[public] Keyword[int] identifier[getTypeIdFor] operator[SEP] identifier[String] identifier[slashname] , Keyword[boolean] identifier[allocateIfNotFound] operator[SEP] { Keyword[if] operator[SEP] identifier[allocateIfNotFound] operator[SEP] { Keyword[return] identifier[NameRegistry] operator[SEP...
private DefaultFeatureCollection sharedCreateFeatures( final LabelPositionCollector labels, final SimpleFeatureBuilder featureBuilder, final GridParam layerData, final MapfishMapContext mapContext, final double xSpace, final double ySpace, final do...
class class_name[name] begin[{] method[sharedCreateFeatures, return_type[type[DefaultFeatureCollection]], modifier[private], parameter[labels, featureBuilder, layerData, mapContext, xSpace, ySpace, minX, minY]] begin[{] local_variable[type[GeometryFactory], geometryFactory] local_variable[type[...
Keyword[private] identifier[DefaultFeatureCollection] identifier[sharedCreateFeatures] operator[SEP] Keyword[final] identifier[LabelPositionCollector] identifier[labels] , Keyword[final] identifier[SimpleFeatureBuilder] identifier[featureBuilder] , Keyword[final] identifier[GridParam] identifier[layerData] , Keyword...
public static boolean verifyPurchase(String base64PublicKey, String signedData, String signature) { if (TextUtils.isEmpty(signedData) || TextUtils.isEmpty(base64PublicKey) || TextUtils.isEmpty(signature)) { Log.e(TAG, "Purchase verification failed: missing data."); return...
class class_name[name] begin[{] method[verifyPurchase, return_type[type[boolean]], modifier[public static], parameter[base64PublicKey, signedData, signature]] begin[{] if[binary_operation[binary_operation[call[TextUtils.isEmpty, parameter[member[.signedData]]], ||, call[TextUtils.isEmpty, param...
Keyword[public] Keyword[static] Keyword[boolean] identifier[verifyPurchase] operator[SEP] identifier[String] identifier[base64PublicKey] , identifier[String] identifier[signedData] , identifier[String] identifier[signature] operator[SEP] { Keyword[if] operator[SEP] identifier[TextUtils] operator[SEP] identifie...
public void setBaseTempDir(final File tmp) { if (!tmp.isAbsolute()) { throw new IllegalArgumentException("Temporary directory must be absolute"); } args.put("base.temp.dir", tmp.getAbsolutePath()); }
class class_name[name] begin[{] method[setBaseTempDir, return_type[void], modifier[public], parameter[tmp]] begin[{] if[call[tmp.isAbsolute, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, se...
Keyword[public] Keyword[void] identifier[setBaseTempDir] operator[SEP] Keyword[final] identifier[File] identifier[tmp] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[tmp] operator[SEP] identifier[isAbsolute] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] iden...
@Override public void addReactant(IAtomContainer reactant, Double coefficient) { reactants.addAtomContainer(reactant, coefficient); notifyChanged(); }
class class_name[name] begin[{] method[addReactant, return_type[void], modifier[public], parameter[reactant, coefficient]] begin[{] call[reactants.addAtomContainer, parameter[member[.reactant], member[.coefficient]]] call[.notifyChanged, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addReactant] operator[SEP] identifier[IAtomContainer] identifier[reactant] , identifier[Double] identifier[coefficient] operator[SEP] { identifier[reactants] operator[SEP] identifier[addAtomContainer] operator[SEP] identifier[reactant] ...
public void ready(VirtualConnection inVC) { // This should not be called because the TCPConnLink is always // ready since it is the first in the chain. if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Invalid call to ready: " + inVC); } }
class class_name[name] begin[{] method[ready, return_type[void], modifier[public], parameter[inVC]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call[Tr.event, parameter[member[.tc...
Keyword[public] Keyword[void] identifier[ready] operator[SEP] identifier[VirtualConnection] identifier[inVC] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEventE...
public com.google.api.ads.adwords.axis.v201809.cm.Image getExpandedImage() { return expandedImage; }
class class_name[name] begin[{] method[getExpandedImage, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.expandedImage]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] identifier[Image] identifier[getExpandedImage] operat...
@Action(name = "Create Virtual Machine", outputs = { @Output(Outputs.RETURN_CODE), @Output(Outputs.RETURN_RESULT), @Output(Outputs.EXCEPTION) }, responses = { @Response(text = Outputs.SUCCESS, field = Out...
class class_name[name] begin[{] method[createVM, return_type[type[Map]], modifier[public], parameter[host, port, protocol, username, password, trustEveryone, closeSession, dataCenterName, hostname, virtualMachineName, dataStore, guestOsId, folderName, resourcePool, description, numCPUs, vmDiskSize, vmMemorySiz...
annotation[@] identifier[Action] operator[SEP] identifier[name] operator[=] literal[String] , identifier[outputs] operator[=] { annotation[@] identifier[Output] operator[SEP] identifier[Outputs] operator[SEP] identifier[RETURN_CODE] operator[SEP] , annotation[@] identifier[Output] operator[SEP] identifier[Outp...
public static void setVerbose(java.util.logging.Level verbose) { if(verbose.intValue() <= Level.VERBOSE.intValue()) { // decrease to VERBOSE if it was higher, otherwise further to // VERYVERBOSE if(LOGGER_GLOBAL_TOP.getLevel() == null || LOGGER_GLOBAL_TOP.getLevel().intValue() > verbose.intValue()...
class class_name[name] begin[{] method[setVerbose, return_type[void], modifier[public static], parameter[verbose]] begin[{] if[binary_operation[call[verbose.intValue, parameter[]], <=, call[Level.VERBOSE.intValue, parameter[]]]] begin[{] if[binary_operation[binary_operat...
Keyword[public] Keyword[static] Keyword[void] identifier[setVerbose] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[logging] operator[SEP] identifier[Level] identifier[verbose] operator[SEP] { Keyword[if] operator[SEP] identifier[verbose] operator[SEP] identifier[intValue]...
@Override protected void perform(final Wave wave) throws CommandException { this.stackName = wave.get(UndoRedoWaves.STACK_NAME); final UndoRedoService service = getService(UndoRedoService.class, this.stackName); this.undoableCommand = wave.get(UndoRedoWaves.UNDOABLE_COMMAND); servi...
class class_name[name] begin[{] method[perform, return_type[void], modifier[protected], parameter[wave]] begin[{] assign[THIS[member[None.stackName]], call[wave.get, parameter[member[UndoRedoWaves.STACK_NAME]]]] local_variable[type[UndoRedoService], service] assign[THIS[...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[perform] operator[SEP] Keyword[final] identifier[Wave] identifier[wave] operator[SEP] Keyword[throws] identifier[CommandException] { Keyword[this] operator[SEP] identifier[stackName] operator[=] identifier[wave] operator[SEP] identifi...
public InternetGateway withAttachments(InternetGatewayAttachment... attachments) { if (this.attachments == null) { setAttachments(new com.amazonaws.internal.SdkInternalList<InternetGatewayAttachment>(attachments.length)); } for (InternetGatewayAttachment ele : attachments) { ...
class class_name[name] begin[{] method[withAttachments, return_type[type[InternetGateway]], modifier[public], parameter[attachments]] begin[{] if[binary_operation[THIS[member[None.attachments]], ==, literal[null]]] begin[{] call[.setAttachments, parameter[ClassCreator(ar...
Keyword[public] identifier[InternetGateway] identifier[withAttachments] operator[SEP] identifier[InternetGatewayAttachment] operator[...] identifier[attachments] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[attachments] operator[==] Other[null] operator[SEP] { ident...
public final <V> Mono<V> thenReturn(V value) { return then(Mono.just(value)); }
class class_name[name] begin[{] method[thenReturn, return_type[type[Mono]], modifier[final public], parameter[value]] begin[{] return[call[.then, parameter[call[Mono.just, parameter[member[.value]]]]]] end[}] END[}]
Keyword[public] Keyword[final] operator[<] identifier[V] operator[>] identifier[Mono] operator[<] identifier[V] operator[>] identifier[thenReturn] operator[SEP] identifier[V] identifier[value] operator[SEP] { Keyword[return] identifier[then] operator[SEP] identifier[Mono] operator[SEP] identifier[just] operator[...
@Override @SuppressWarnings("unchecked") public void decorate(Map<String, Object> result) throws Exception { try { ServiceReference<ConfigurationAdmin> cmRef = bundleContext.getServiceReference(ConfigurationAdmin.class); ServiceReference<JMXSecurityMBean> jmxSecRef = bundleContex...
class class_name[name] begin[{] method[decorate, return_type[void], modifier[public], parameter[result]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassReference(postfix_operators=[], pref...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[decorate] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[result] operator[SEP] Keyword[throws] ide...
public static byte min(final byte... array) { // Validates input validateArray(array); // Finds and returns min byte min = array[0]; for (int i = 1; i < array.length; i++) { if (array[i] < min) { min = array[i]; } } return...
class class_name[name] begin[{] method[min, return_type[type[byte]], modifier[public static], parameter[array]] begin[{] call[.validateArray, parameter[member[.array]]] local_variable[type[byte], min] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition...
Keyword[public] Keyword[static] Keyword[byte] identifier[min] operator[SEP] Keyword[final] Keyword[byte] operator[...] identifier[array] operator[SEP] { identifier[validateArray] operator[SEP] identifier[array] operator[SEP] operator[SEP] Keyword[byte] identifier[min] operator[=] identifier[array] operator[SEP] ...
private Object readNewLongString(boolean unshared) throws IOException { long length = input.readLong(); Object result = input.decodeUTF((int) length); if (enableResolve) { result = resolveObject(result); } registerObjectRead(result, nextHandle(), unshared); r...
class class_name[name] begin[{] method[readNewLongString, return_type[type[Object]], modifier[private], parameter[unshared]] begin[{] local_variable[type[long], length] local_variable[type[Object], result] if[member[.enableResolve]] begin[{] assign[member...
Keyword[private] identifier[Object] identifier[readNewLongString] operator[SEP] Keyword[boolean] identifier[unshared] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[length] operator[=] identifier[input] operator[SEP] identifier[readLong] operator[SEP] operator[SEP] operator[SEP]...
public void queryError(OutputStream os, HeadersAmp headers, String address, long qId, Throwable exn) throws IOException { init(os); OutH3 out = _out; if (out == null) return; if (log.isLogg...
class class_name[name] begin[{] method[queryError, return_type[void], modifier[public], parameter[os, headers, address, qId, exn]] begin[{] call[.init, parameter[member[.os]]] local_variable[type[OutH3], out] if[binary_operation[member[.out], ==, literal[null]]] begin[{]...
Keyword[public] Keyword[void] identifier[queryError] operator[SEP] identifier[OutputStream] identifier[os] , identifier[HeadersAmp] identifier[headers] , identifier[String] identifier[address] , Keyword[long] identifier[qId] , identifier[Throwable] identifier[exn] operator[SEP] Keyword[throws] identifier[IOExceptio...
public void update() { if (done) { return; } int processed = AL10.alGetSourcei(source, AL10.AL_BUFFERS_PROCESSED); while (processed > 0) { unqueued.clear(); AL10.alSourceUnqueueBuffers(source, unqueued); if (stream(unqueued.get(0))) { AL10.alSourceQueueBuffers(source, unque...
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[]] begin[{] if[member[.done]] begin[{] return[None] else begin[{] None end[}] local_variable[type[int], processed] while[binary_operation[member[.pro...
Keyword[public] Keyword[void] identifier[update] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[done] operator[SEP] { Keyword[return] operator[SEP] } Keyword[int] identifier[processed] operator[=] identifier[AL10] operator[SEP] identifier[alGetSourcei] operator[SEP] i...
public void add(String applicationName, String url, Class<?> robotContext, boolean verbose) { logger.info("Add a new application named [{}] with this url: [{}]", applicationName, url); addApplicationPages(applicationName, robotContext.getSimpleName().replaceAll("Context", ""), robotContext, verbose); ...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[applicationName, url, robotContext, verbose]] begin[{] call[logger.info, parameter[literal["Add a new application named [{}] with this url: [{}]"], member[.applicationName], member[.url]]] ...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[String] identifier[applicationName] , identifier[String] identifier[url] , identifier[Class] operator[<] operator[?] operator[>] identifier[robotContext] , Keyword[boolean] identifier[verbose] operator[SEP] { identifier[logger] operator[SE...
public void addImage(Image image, float a, float b, float c, float d, float e, float f) throws DocumentException { throwError(); }
class class_name[name] begin[{] method[addImage, return_type[void], modifier[public], parameter[image, a, b, c, d, e, f]] begin[{] call[.throwError, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addImage] operator[SEP] identifier[Image] identifier[image] , Keyword[float] identifier[a] , Keyword[float] identifier[b] , Keyword[float] identifier[c] , Keyword[float] identifier[d] , Keyword[float] identifier[e] , Keyword[float] identifier[f] operator[SEP] Keyword[throw...
@Override public void close() throws IOException { Socket s = _s; _s = null; if (s != null) { try { s.close(); } catch (Exception e) { } } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Socket], s] assign[member[._s], literal[null]] if[binary_operation[member[.s], !=, literal[null]]] begin[{] TryStatement(block=[Statem...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Socket] identifier[s] operator[=] identifier[_s] operator[SEP] identifier[_s] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identif...
@Override public java.util.concurrent.Future<ListAccountAliasesResult> listAccountAliasesAsync( com.amazonaws.handlers.AsyncHandler<ListAccountAliasesRequest, ListAccountAliasesResult> asyncHandler) { return listAccountAliasesAsync(new ListAccountAliasesRequest(), asyncHandler); }
class class_name[name] begin[{] method[listAccountAliasesAsync, return_type[type[java]], modifier[public], parameter[asyncHandler]] begin[{] return[call[.listAccountAliasesAsync, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], ...
annotation[@] identifier[Override] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[concurrent] operator[SEP] identifier[Future] operator[<] identifier[ListAccountAliasesResult] operator[>] identifier[listAccountAliasesAsync] operator[SEP] identifier[com] operator[SEP] identifier...
private static synchronized void start() throws IOException { if (s_tracer == null) { final VoltTrace tracer = new VoltTrace(); final Thread thread = new Thread(tracer); thread.setDaemon(true); thread.start(); s_tracer = tracer; } }
class class_name[name] begin[{] method[start, return_type[void], modifier[synchronized private static], parameter[]] begin[{] if[binary_operation[member[.s_tracer], ==, literal[null]]] begin[{] local_variable[type[VoltTrace], tracer] local_variable[type[Thread], thread] ...
Keyword[private] Keyword[static] Keyword[synchronized] Keyword[void] identifier[start] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[s_tracer] operator[==] Other[null] operator[SEP] { Keyword[final] identifier[VoltTrace] identifier[tracer] o...
void gatherMessageProtocol(int maxPos) throws IOException { try { while(this.bufferPosition < maxPos) { byte b = this.buffer[this.bufferPosition]; this.bufferPosition++; if (gotCR) { if (b == NatsConnection.LF) { ...
class class_name[name] begin[{] method[gatherMessageProtocol, return_type[void], modifier[default], parameter[maxPos]] begin[{] TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initiali...
Keyword[void] identifier[gatherMessageProtocol] operator[SEP] Keyword[int] identifier[maxPos] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[while] operator[SEP] Keyword[this] operator[SEP] identifier[bufferPosition] operator[<] identifier[maxPos] operator[SEP] { ...
public void stopAllThreads() { if (tc.isEntryEnabled()) SibTr.entry(tc, "stopAllThreads"); synchronized (this) { Iterator iterator = ((ArrayList)_threadCache.clone()).iterator(); while (iterator.hasNext()) { StoppableThread thread = (StoppableThread)iterator....
class class_name[name] begin[{] method[stopAllThreads, return_type[void], modifier[public], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["stopAllThreads"]]] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[stopAllThreads] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] oper...
protected final Runnable pollScheduledTask(long nanoTime) { assert inEventLoop(); Queue<ScheduledFutureTask<?>> scheduledTaskQueue = this.scheduledTaskQueue; ScheduledFutureTask<?> scheduledTask = scheduledTaskQueue == null ? null : scheduledTaskQueue.peek(); if (scheduledTask == null) ...
class class_name[name] begin[{] method[pollScheduledTask, return_type[type[Runnable]], modifier[final protected], parameter[nanoTime]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=inEventLoop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_argument...
Keyword[protected] Keyword[final] identifier[Runnable] identifier[pollScheduledTask] operator[SEP] Keyword[long] identifier[nanoTime] operator[SEP] { Keyword[assert] identifier[inEventLoop] operator[SEP] operator[SEP] operator[SEP] identifier[Queue] operator[<] identifier[ScheduledFutureTask] operator[<] operato...
@Override public thredds.catalog.InvDatasetImpl findDatasetByName(java.lang.String p0) { return !useProxy ? super.findDatasetByName(p0) : proxy.findDatasetByName(p0); }
class class_name[name] begin[{] method[findDatasetByName, return_type[type[thredds]], modifier[public], parameter[p0]] begin[{] return[TernaryExpression(condition=MemberReference(member=useProxy, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), if_false=MethodInvocation(argument...
annotation[@] identifier[Override] Keyword[public] identifier[thredds] operator[SEP] identifier[catalog] operator[SEP] identifier[InvDatasetImpl] identifier[findDatasetByName] operator[SEP] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[p0] operator[SEP] { Keyword[ret...
private boolean parseHeaderValueNonExtract(WsByteBuffer buff) throws MalformedMessageException { if (0 == this.parsedTokenLength) { // save the start position when we first start parsing the value if (!skipWhiteSpace(buff)) { return false; } int s...
class class_name[name] begin[{] method[parseHeaderValueNonExtract, return_type[type[boolean]], modifier[private], parameter[buff]] begin[{] if[binary_operation[literal[0], ==, THIS[member[None.parsedTokenLength]]]] begin[{] if[call[.skipWhiteSpace, parameter[member[.buff...
Keyword[private] Keyword[boolean] identifier[parseHeaderValueNonExtract] operator[SEP] identifier[WsByteBuffer] identifier[buff] operator[SEP] Keyword[throws] identifier[MalformedMessageException] { Keyword[if] operator[SEP] Other[0] operator[==] Keyword[this] operator[SEP] identifier[parsedTokenLength] operator...
public GetPatchBaselineResult withRejectedPatches(String... rejectedPatches) { if (this.rejectedPatches == null) { setRejectedPatches(new com.amazonaws.internal.SdkInternalList<String>(rejectedPatches.length)); } for (String ele : rejectedPatches) { this.rejectedPatches.a...
class class_name[name] begin[{] method[withRejectedPatches, return_type[type[GetPatchBaselineResult]], modifier[public], parameter[rejectedPatches]] begin[{] if[binary_operation[THIS[member[None.rejectedPatches]], ==, literal[null]]] begin[{] call[.setRejectedPatches, pa...
Keyword[public] identifier[GetPatchBaselineResult] identifier[withRejectedPatches] operator[SEP] identifier[String] operator[...] identifier[rejectedPatches] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[rejectedPatches] operator[==] Other[null] operator[SEP] { ident...
protected Column column( String nameExpression ) { String[] parts = nameExpression.split("(?<!\\\\)\\."); // a . not preceded by an escaping slash for (int i = 0; i != parts.length; ++i) { parts[i] = parts[i].trim(); } SelectorName name = null; String propertyName = n...
class class_name[name] begin[{] method[column, return_type[type[Column]], modifier[protected], parameter[nameExpression]] begin[{] local_variable[type[String], parts] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(m...
Keyword[protected] identifier[Column] identifier[column] operator[SEP] identifier[String] identifier[nameExpression] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[parts] operator[=] identifier[nameExpression] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] ...
public Iterable<Tuple2<String, Obj>> asKeyObjSeq(final @Nullable Obj obj) { return new Iterable<Tuple2<String, Obj>>() { @Override public Iterator<Tuple2<String, Obj>> iterator() { if (obj != null) { final Iterator<Entry<String, Object>> i = obj.iterator(); return new Iterator<Tuple2<String, Obj>>() ...
class class_name[name] begin[{] method[asKeyObjSeq, return_type[type[Iterable]], modifier[public], parameter[obj]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=BinaryOperation(operandl=MemberReferen...
Keyword[public] identifier[Iterable] operator[<] identifier[Tuple2] operator[<] identifier[String] , identifier[Obj] operator[>] operator[>] identifier[asKeyObjSeq] operator[SEP] Keyword[final] annotation[@] identifier[Nullable] identifier[Obj] identifier[obj] operator[SEP] { Keyword[return] Keyword[new] identi...
public String getMemoryUsageAsString() { long len = weights.length; return ((8L + 4L + 4L) * len + changedNodes.getCapacity() * 4L + heap.getCapacity() * (4L + 4L)) / Helper.MB + "MB"; }
class class_name[name] begin[{] method[getMemoryUsageAsString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[long], len] return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal...
Keyword[public] identifier[String] identifier[getMemoryUsageAsString] operator[SEP] operator[SEP] { Keyword[long] identifier[len] operator[=] identifier[weights] operator[SEP] identifier[length] operator[SEP] Keyword[return] operator[SEP] operator[SEP] Other[8L] operator[+] Other[4L] operator[+] Other[4L] operat...
public final void deleteProduct(String name) { DeleteProductRequest request = DeleteProductRequest.newBuilder().setName(name).build(); deleteProduct(request); }
class class_name[name] begin[{] method[deleteProduct, return_type[void], modifier[final public], parameter[name]] begin[{] local_variable[type[DeleteProductRequest], request] call[.deleteProduct, parameter[member[.request]]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[deleteProduct] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[DeleteProductRequest] identifier[request] operator[=] identifier[DeleteProductRequest] operator[SEP] identifier[newBuilder] operator[SEP] operator[SEP] operator[SEP]...
private String getDatatypeLabel(DatatypeIdValue datatype) { if (datatype.getIri() == null) { // TODO should be redundant once the // JSON parsing works return "Unknown"; } switch (datatype.getIri()) { case DatatypeIdValue.DT_COMMONS_MEDIA: return "Commons media"; case DatatypeIdValue.DT_GLOB...
class class_name[name] begin[{] method[getDatatypeLabel, return_type[type[String]], modifier[private], parameter[datatype]] begin[{] if[binary_operation[call[datatype.getIri, parameter[]], ==, literal[null]]] begin[{] return[literal["Unknown"]] else begin[{] None end...
Keyword[private] identifier[String] identifier[getDatatypeLabel] operator[SEP] identifier[DatatypeIdValue] identifier[datatype] operator[SEP] { Keyword[if] operator[SEP] identifier[datatype] operator[SEP] identifier[getIri] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[r...
public Map<String, TriggerRange> getTriggerRange(String[] instruments, String transactionType) throws KiteException, JSONException, IOException { String url = routes.get("market.trigger_range").replace(":transaction_type", transactionType.toLowerCase()); JSONObject response = new KiteRequestHandler(prox...
class class_name[name] begin[{] method[getTriggerRange, return_type[type[Map]], modifier[public], parameter[instruments, transactionType]] begin[{] local_variable[type[String], url] local_variable[type[JSONObject], response] local_variable[type[Type], type] return[call[gson.from...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[TriggerRange] operator[>] identifier[getTriggerRange] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[instruments] , identifier[String] identifier[transactionType] operator[SEP] Keyword[throws] identifier[KiteException...