code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private static int strAppender(String[] _text, StringBuilder _sbResult, int _beginIdx, int _len) { if (_text == null || _sbResult == null) { return -1; } if (_beginIdx > _text.length) { return _text.length; } int i = _beginIdx; for (i = _beginIdx; ...
class class_name[name] begin[{] method[strAppender, return_type[type[int]], modifier[private static], parameter[_text, _sbResult, _beginIdx, _len]] begin[{] if[binary_operation[binary_operation[member[._text], ==, literal[null]], ||, binary_operation[member[._sbResult], ==, literal[null]]]] beg...
Keyword[private] Keyword[static] Keyword[int] identifier[strAppender] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[_text] , identifier[StringBuilder] identifier[_sbResult] , Keyword[int] identifier[_beginIdx] , Keyword[int] identifier[_len] operator[SEP] { Keyword[if] operator[SEP] ...
public static byte[] encodeToByte(final byte[] arr, final boolean lineSep) { int len = arr != null ? arr.length : 0; if (len == 0) { return new byte[0]; } int evenlen = (len / 3) * 3; int cnt = ((len - 1) / 3 + 1) << 2; int destlen = cnt + (lineSep ? (cnt - 1) / 76 << 1 : 0); byte[] dest = new byte[de...
class class_name[name] begin[{] method[encodeToByte, return_type[type[byte]], modifier[public static], parameter[arr, lineSep]] begin[{] local_variable[type[int], len] if[binary_operation[member[.len], ==, literal[0]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[encodeToByte] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[arr] , Keyword[final] Keyword[boolean] identifier[lineSep] operator[SEP] { Keyword[int] identifier[len] operator[=] identifier[arr]...
public static Set<UUID> getEntityIDsRecursively(final EntityContainer container) { final Set<UUID> result = new HashSet<>(); walkEntityTree(container, e -> result.add(e.getID()) ? EntityVisitResult.CONTINUE : EntityVisitResult.IGNORE_CHILDREN); return result; }
class class_name[name] begin[{] method[getEntityIDsRecursively, return_type[type[Set]], modifier[public static], parameter[container]] begin[{] local_variable[type[Set], result] call[.walkEntityTree, parameter[member[.container], LambdaExpression(body=TernaryExpression(condition=MethodI...
Keyword[public] Keyword[static] identifier[Set] operator[<] identifier[UUID] operator[>] identifier[getEntityIDsRecursively] operator[SEP] Keyword[final] identifier[EntityContainer] identifier[container] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[UUID] operator[>] identifier[result] op...
@SuppressWarnings({ "rawtypes", "unchecked" }) @Nullable public final XPath decompose(final Map<URI, Set<Object>> restrictions) { Preconditions.checkNotNull(restrictions); try { Expr remaining = null; for (final Expr node : toCNF(this.support.expr)) { U...
class class_name[name] begin[{] method[decompose, return_type[type[XPath]], modifier[final public], parameter[restrictions]] begin[{] call[Preconditions.checkNotNull, parameter[member[.restrictions]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] annotation[@] identifier[Nullable] Keyword[public] Keyword[final] identifier[XPath] identifier[decompose] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[URI] , identifier[Set] op...
protected void connect(SocketAddress address, int timeout) throws IOException { boolean connected = false; try { if (address == null || !(address instanceof InetSocketAddress)) throw new IllegalArgumentException("unsupported address type"); InetSocketA...
class class_name[name] begin[{] method[connect, return_type[void], modifier[protected], parameter[address, timeout]] begin[{] local_variable[type[boolean], connected] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=address, post...
Keyword[protected] Keyword[void] identifier[connect] operator[SEP] identifier[SocketAddress] identifier[address] , Keyword[int] identifier[timeout] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[boolean] identifier[connected] operator[=] literal[boolean] operator[SEP] Keyword[try] { ...
public Collection essentialCycles() { Collection result = new HashSet(); //minimize(); for (Object subgraphBase : subgraphBases) { SimpleCycleBasis cycleBasis = (SimpleCycleBasis) subgraphBase; result.addAll(cycleBasis.essentialCycles()); } return result...
class class_name[name] begin[{] method[essentialCycles, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[Collection], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarat...
Keyword[public] identifier[Collection] identifier[essentialCycles] operator[SEP] operator[SEP] { identifier[Collection] identifier[result] operator[=] Keyword[new] identifier[HashSet] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[subgraphBase] operator[:] ide...
public ProxySettings setCredentials(String id, String password) { return setId(id).setPassword(password); }
class class_name[name] begin[{] method[setCredentials, return_type[type[ProxySettings]], modifier[public], parameter[id, password]] begin[{] return[call[.setId, parameter[member[.id]]]] end[}] END[}]
Keyword[public] identifier[ProxySettings] identifier[setCredentials] operator[SEP] identifier[String] identifier[id] , identifier[String] identifier[password] operator[SEP] { Keyword[return] identifier[setId] operator[SEP] identifier[id] operator[SEP] operator[SEP] identifier[setPassword] operator[SEP] identifi...
public double[] getColumn(int column) { checkIndices(0, column); rowReadLock.lock(); double[] values = new double[rows.get()]; for (int row = 0; row < rows.get(); ++row) values[row] = get(row, column); rowReadLock.unlock(); return values; }
class class_name[name] begin[{] method[getColumn, return_type[type[double]], modifier[public], parameter[column]] begin[{] call[.checkIndices, parameter[literal[0], member[.column]]] call[rowReadLock.lock, parameter[]] local_variable[type[double], values] ForStat...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getColumn] operator[SEP] Keyword[int] identifier[column] operator[SEP] { identifier[checkIndices] operator[SEP] Other[0] , identifier[column] operator[SEP] operator[SEP] identifier[rowReadLock] operator[SEP] identifier[lock] operator[SEP] op...
public static AssetUpdater updater(final String pathServiceSid, final String pathSid, final String friendlyName) { return new AssetUpdater(pathServiceSid, pathSid, friendlyName); }
class class_name[name] begin[{] method[updater, return_type[type[AssetUpdater]], modifier[public static], parameter[pathServiceSid, pathSid, friendlyName]] begin[{] return[ClassCreator(arguments=[MemberReference(member=pathServiceSid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[static] identifier[AssetUpdater] identifier[updater] operator[SEP] Keyword[final] identifier[String] identifier[pathServiceSid] , Keyword[final] identifier[String] identifier[pathSid] , Keyword[final] identifier[String] identifier[friendlyName] operator[SEP] { Keyword[return] Keyword[ne...
public void marshall(EnableKeyRequest enableKeyRequest, ProtocolMarshaller protocolMarshaller) { if (enableKeyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(enableKeyRequest.getKeyId(), KE...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[enableKeyRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.enableKeyRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[EnableKeyRequest] identifier[enableKeyRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[enableKeyRequest] operator[==] Other[null] operator[SEP] { Ke...
public static void setBgColor(View view, final Config config) { int[] colors = view.getContext().getResources().getIntArray(R.array.bg_colors); final int bgColor = colors[config.bgColor]; view.setBackgroundColor(bgColor); }
class class_name[name] begin[{] method[setBgColor, return_type[void], modifier[public static], parameter[view, config]] begin[{] local_variable[type[int], colors] local_variable[type[int], bgColor] call[view.setBackgroundColor, parameter[member[.bgColor]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setBgColor] operator[SEP] identifier[View] identifier[view] , Keyword[final] identifier[Config] identifier[config] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[colors] operator[=] identifier[view] operator[SEP] identifier[getContext...
public static FeaturableConfig imports(Xml root) { Check.notNull(root); final String clazz; if (root.hasChild(ATT_CLASS)) { clazz = root.getChild(ATT_CLASS).getText(); } else { clazz = DEFAULT_CLASS_NAME; } final Strin...
class class_name[name] begin[{] method[imports, return_type[type[FeaturableConfig]], modifier[public static], parameter[root]] begin[{] call[Check.notNull, parameter[member[.root]]] local_variable[type[String], clazz] if[call[root.hasChild, parameter[member[.ATT_CLASS]]]...
Keyword[public] Keyword[static] identifier[FeaturableConfig] identifier[imports] operator[SEP] identifier[Xml] identifier[root] operator[SEP] { identifier[Check] operator[SEP] identifier[notNull] operator[SEP] identifier[root] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[clazz] operat...
final void setCcsid(Object value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setCcsid", value); // If the value is null, then clear the field if (value == null) { jmo.getPayloadPart().setField(JsPayloadAccess.CCSID, JsPayloa...
class class_name[name] begin[{] method[setCcsid, return_type[void], modifier[final], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[....
Keyword[final] Keyword[void] identifier[setCcsid] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] ...
protected String getFileEncoding(CmsObject cms, String filename) { try { return cms.readPropertyObject(filename, CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING, true).getValue( OpenCms.getSystemInfo().getDefaultEncoding()); } catch (CmsException e) { return Open...
class class_name[name] begin[{] method[getFileEncoding, return_type[type[String]], modifier[protected], parameter[cms, filename]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, s...
Keyword[protected] identifier[String] identifier[getFileEncoding] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[String] identifier[filename] operator[SEP] { Keyword[try] { Keyword[return] identifier[cms] operator[SEP] identifier[readPropertyObject] operator[SEP] identifier[filename...
public static String[] splitOptions(String input) { //Note that we use a regex matching all "|" characters not prefixed by "\" //Since we define a regex for matching, the input delimiter "|" needs to be escaped, as well as "\", //which is even double-escaped - one escaping is due to the String...
class class_name[name] begin[{] method[splitOptions, return_type[type[String]], modifier[public static], parameter[input]] begin[{] local_variable[type[String], reverse] local_variable[type[String], parts] local_variable[type[String], finalParts] local_variable[type[int], lastIn...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[splitOptions] operator[SEP] identifier[String] identifier[input] operator[SEP] { identifier[String] identifier[reverse] operator[=] identifier[reverse] operator[SEP] identifier[input] operator[SEP] operator[SEP] identifier[...
@SuppressWarnings({"WeakerAccess", "unused"}) public void renderToCanvas(Canvas canvas, RenderOptions renderOptions) { if (renderOptions == null) renderOptions = new RenderOptions(); if (!renderOptions.hasViewPort()) { renderOptions.viewPort(0f, 0f, (float) canvas.getWidth()...
class class_name[name] begin[{] method[renderToCanvas, return_type[void], modifier[public], parameter[canvas, renderOptions]] begin[{] if[binary_operation[member[.renderOptions], ==, literal[null]]] begin[{] assign[member[.renderOptions], ClassCreator(arguments=[], body=None, constr...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] Keyword[void] identifier[renderToCanvas] operator[SEP] identifier[Canvas] identifier[canvas] , identifier[RenderOptions] identifier[renderOptions] operator[SEP] { Keyword[if] o...
@Override public void setTargetHistoryToken(final String targetHistoryToken) { this.targetHistoryToken = targetHistoryToken; if (targetHistoryToken != null) { final String hash = History.encodeHistoryToken(targetHistoryToken); getAnchorElement().setHref("#" + hash); }...
class class_name[name] begin[{] method[setTargetHistoryToken, return_type[void], modifier[public], parameter[targetHistoryToken]] begin[{] assign[THIS[member[None.targetHistoryToken]], member[.targetHistoryToken]] if[binary_operation[member[.targetHistoryToken], !=, literal[null...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setTargetHistoryToken] operator[SEP] Keyword[final] identifier[String] identifier[targetHistoryToken] operator[SEP] { Keyword[this] operator[SEP] identifier[targetHistoryToken] operator[=] identifier[targetHistoryToken] operator[SEP] Key...
public static int[] cs_post(int[] parent, int n) { int j, k = 0, post[], w[], head[], next[], stack[] ; if (parent == null) return (null) ; /* check inputs */ post = new int [n] ; /* allocate result */ w = new int [3*n] ; /* get workspace */ if (w == null || post == null) return (cs_idone (post,...
class class_name[name] begin[{] method[cs_post, return_type[type[int]], modifier[public static], parameter[parent, n]] begin[{] local_variable[type[int], j] if[binary_operation[member[.parent], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[cs_post] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[parent] , Keyword[int] identifier[n] operator[SEP] { Keyword[int] identifier[j] , identifier[k] operator[=] Other[0] , identifier[post] operator[SEP] o...
@NotNull public OptionalDouble map(@NotNull DoubleUnaryOperator mapper) { if (!isPresent()) { return empty(); } Objects.requireNonNull(mapper); return OptionalDouble.of(mapper.applyAsDouble(value)); }
class class_name[name] begin[{] method[map, return_type[type[OptionalDouble]], modifier[public], parameter[mapper]] begin[{] if[call[.isPresent, parameter[]]] begin[{] return[call[.empty, parameter[]]] else begin[{] None end[}] call[Objects.requireNon...
annotation[@] identifier[NotNull] Keyword[public] identifier[OptionalDouble] identifier[map] operator[SEP] annotation[@] identifier[NotNull] identifier[DoubleUnaryOperator] identifier[mapper] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isPresent] operator[SEP] operator[SEP] operator[SEP] { ...
public StreamingOutput getResource(final String resourceName, final Map<QueryParameter, String> queryParams) throws JaxRxException { final StreamingOutput streamingOutput = new StreamingOutput() { @Override public void write(final OutputStream output) throws IOException, JaxRxExc...
class class_name[name] begin[{] method[getResource, return_type[type[StreamingOutput]], modifier[public], parameter[resourceName, queryParams]] begin[{] local_variable[type[StreamingOutput], streamingOutput] return[member[.streamingOutput]] end[}] END[}]
Keyword[public] identifier[StreamingOutput] identifier[getResource] operator[SEP] Keyword[final] identifier[String] identifier[resourceName] , Keyword[final] identifier[Map] operator[<] identifier[QueryParameter] , identifier[String] operator[>] identifier[queryParams] operator[SEP] Keyword[throws] identifier[JaxRxEx...
@Nonnull public static <T> List<T> filter( @Nonnull List<?> base, @Nonnull Class<T> type ) { return filter((Iterable)base,type); }
class class_name[name] begin[{] method[filter, return_type[type[List]], modifier[public static], parameter[base, type]] begin[{] return[call[.filter, parameter[Cast(expression=MemberReference(member=base, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[filter] operator[SEP] annotation[@] identifier[Nonnull] identifier[List] operator[<] operator[?] operator[>] identifier[base] , annotation[@] identif...
@SuppressWarnings("unchecked") @Override public <E> int delete(final Class<? extends E> entityType, final Object... keys) { @SuppressWarnings("rawtypes") EntityHandler handler = this.getEntityHandler(); if (!handler.getEntityType().isAssignableFrom(entityType)) { throw new IllegalArgumentException("Entity ty...
class class_name[name] begin[{] method[delete, return_type[type[int]], modifier[public], parameter[entityType, keys]] begin[{] local_variable[type[EntityHandler], handler] if[call[handler.getEntityType, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] operator[<] identifier[E] operator[>] Keyword[int] identifier[delete] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[E] operator[>...
<T extends INode> T addNode(String path, T newNode, boolean inheritPermission ) throws FileNotFoundException { byte[][] pathComponents = getPathComponents(path); if(addToParent(pathComponents, newNode, inheritPermission, true) == null) return null; return newNode; }
class class_name[name] begin[{] method[addNode, return_type[type[T]], modifier[default], parameter[path, newNode, inheritPermission]] begin[{] local_variable[type[byte], pathComponents] if[binary_operation[call[.addToParent, parameter[member[.pathComponents], member[.newNode], member[.i...
operator[<] identifier[T] Keyword[extends] identifier[INode] operator[>] identifier[T] identifier[addNode] operator[SEP] identifier[String] identifier[path] , identifier[T] identifier[newNode] , Keyword[boolean] identifier[inheritPermission] operator[SEP] Keyword[throws] identifier[FileNotFoundException] { Key...
public static final void setPosition(UIObject o, Rect pos) { Style style = o.getElement().getStyle(); style.setPropertyPx("left", pos.x); style.setPropertyPx("top", pos.y); }
class class_name[name] begin[{] method[setPosition, return_type[void], modifier[final public static], parameter[o, pos]] begin[{] local_variable[type[Style], style] call[style.setPropertyPx, parameter[literal["left"], member[pos.x]]] call[style.setPropertyPx, parameter[l...
Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[setPosition] operator[SEP] identifier[UIObject] identifier[o] , identifier[Rect] identifier[pos] operator[SEP] { identifier[Style] identifier[style] operator[=] identifier[o] operator[SEP] identifier[getElement] operator[SEP] operator[SEP] ...
public static Method[] getAccessibleMethods(Class clazz, final Class limit) { Package topPackage = clazz.getPackage(); List<Method> methodList = new ArrayList<>(); int topPackageHash = topPackage == null ? 0 : topPackage.hashCode(); boolean top = true; do { if (clazz == null) { break; } Method[] ...
class class_name[name] begin[{] method[getAccessibleMethods, return_type[type[Method]], modifier[public static], parameter[clazz, limit]] begin[{] local_variable[type[Package], topPackage] local_variable[type[List], methodList] local_variable[type[int], topPackageHash] local_var...
Keyword[public] Keyword[static] identifier[Method] operator[SEP] operator[SEP] identifier[getAccessibleMethods] operator[SEP] identifier[Class] identifier[clazz] , Keyword[final] identifier[Class] identifier[limit] operator[SEP] { identifier[Package] identifier[topPackage] operator[=] identifier[clazz] operator...
public Observable<Page<SiteInner>> listWebAppsNextAsync(final String nextPageLink) { return listWebAppsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<SiteInner>>, Page<SiteInner>>() { @Override public Page<SiteInner> call(ServiceRespons...
class class_name[name] begin[{] method[listWebAppsNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listWebAppsNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[SiteInner] operator[>] operator[>] identifier[listWebAppsNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listWebAppsNextWithServiceResponseAsyn...
public SearchResponse searchAll(String[] indices, String type) { return searchAll(indices, JMArrays.buildArray(type)); }
class class_name[name] begin[{] method[searchAll, return_type[type[SearchResponse]], modifier[public], parameter[indices, type]] begin[{] return[call[.searchAll, parameter[member[.indices], call[JMArrays.buildArray, parameter[member[.type]]]]]] end[}] END[}]
Keyword[public] identifier[SearchResponse] identifier[searchAll] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[indices] , identifier[String] identifier[type] operator[SEP] { Keyword[return] identifier[searchAll] operator[SEP] identifier[indices] , identifier[JMArrays] operator[SEP] id...
private AstNode parseCreateIndex( final DdlTokenStream tokens, final AstNode parentNode ) throws ParsingException { assert tokens != null; assert parentNode != null; assert (tokens.matches(STMT_CREATE_INDEX) || tokens.matches(STMT_CREATE_UNIQUE_INDEX) || tok...
class class_name[name] begin[{] method[parseCreateIndex, return_type[type[AstNode]], modifier[private], parameter[tokens, parentNode]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=tokens, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operand...
Keyword[private] identifier[AstNode] identifier[parseCreateIndex] operator[SEP] Keyword[final] identifier[DdlTokenStream] identifier[tokens] , Keyword[final] identifier[AstNode] identifier[parentNode] operator[SEP] Keyword[throws] identifier[ParsingException] { Keyword[assert] identifier[tokens] operator[!=] Ot...
public long getSoFar(final int downloadId) { BaseDownloadTask.IRunningTask task = FileDownloadList.getImpl().get(downloadId); if (task == null) { return FileDownloadServiceProxy.getImpl().getSofar(downloadId); } return task.getOrigin().getLargeFileSoFarBytes(); }
class class_name[name] begin[{] method[getSoFar, return_type[type[long]], modifier[public], parameter[downloadId]] begin[{] local_variable[type[BaseDownloadTask], task] if[binary_operation[member[.task], ==, literal[null]]] begin[{] return[call[FileDownloadServiceProxy.getIm...
Keyword[public] Keyword[long] identifier[getSoFar] operator[SEP] Keyword[final] Keyword[int] identifier[downloadId] operator[SEP] { identifier[BaseDownloadTask] operator[SEP] identifier[IRunningTask] identifier[task] operator[=] identifier[FileDownloadList] operator[SEP] identifier[getImpl] operator[SEP] operato...
public static MongoCredential createPlainCredential(final String userName, final String source, final char[] password) { return new MongoCredential(PLAIN, userName, source, password); }
class class_name[name] begin[{] method[createPlainCredential, return_type[type[MongoCredential]], modifier[public static], parameter[userName, source, password]] begin[{] return[ClassCreator(arguments=[MemberReference(member=PLAIN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), M...
Keyword[public] Keyword[static] identifier[MongoCredential] identifier[createPlainCredential] operator[SEP] Keyword[final] identifier[String] identifier[userName] , Keyword[final] identifier[String] identifier[source] , Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[password] operator[SEP] { ...
@Override public void handleProgressNotification(final ProgressNotification pn) { if (this.jrebirthInitialized && pn.getProgress() >= 0.0 && pn.getProgress() <= 1.0) { this.progressBar.setProgress(pn.getProgress()); } else { this.messageText.setText(getMessageFromCode((i...
class class_name[name] begin[{] method[handleProgressNotification, return_type[void], modifier[public], parameter[pn]] begin[{] if[binary_operation[binary_operation[THIS[member[None.jrebirthInitialized]], &&, binary_operation[call[pn.getProgress, parameter[]], >=, literal[0.0]]], &&, binary_ope...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleProgressNotification] operator[SEP] Keyword[final] identifier[ProgressNotification] identifier[pn] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[jrebirthInitialized] operator[&&] identifier[pn] op...
public SetSubtitleVodNonDvdOperation buildSetSubtitleVodNonDvdOperation(String track, String color, int fontSize, int position, String encoding, String timeOffset){ return new SetSubtitleVodNonDvdOperation(getOperationFactory(), track, color, fontSize, position, encoding, timeOffset); }
class class_name[name] begin[{] method[buildSetSubtitleVodNonDvdOperation, return_type[type[SetSubtitleVodNonDvdOperation]], modifier[public], parameter[track, color, fontSize, position, encoding, timeOffset]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getOperationFac...
Keyword[public] identifier[SetSubtitleVodNonDvdOperation] identifier[buildSetSubtitleVodNonDvdOperation] operator[SEP] identifier[String] identifier[track] , identifier[String] identifier[color] , Keyword[int] identifier[fontSize] , Keyword[int] identifier[position] , identifier[String] identifier[encoding] , iden...
void initAndroidDevices() throws AndroidDeviceException { deviceManager = new DefaultDeviceManager(AndroidSdk.adb().getAbsolutePath(), serverConfiguration.shouldKeepAdbAlive()); deviceStore = new DeviceStore(serverConfiguration.getEmulatorPort(), deviceManager); deviceStore.initAndroidDe...
class class_name[name] begin[{] method[initAndroidDevices, return_type[void], modifier[default], parameter[]] begin[{] assign[member[.deviceManager], ClassCreator(arguments=[MethodInvocation(arguments=[], member=adb, postfix_operators=[], prefix_operators=[], qualifier=AndroidSdk, selectors=[Me...
Keyword[void] identifier[initAndroidDevices] operator[SEP] operator[SEP] Keyword[throws] identifier[AndroidDeviceException] { identifier[deviceManager] operator[=] Keyword[new] identifier[DefaultDeviceManager] operator[SEP] identifier[AndroidSdk] operator[SEP] identifier[adb] operator[SEP] operator[SEP] operator...
private void throwPageMigratedException(String msg, int code, int subcode, String userTitle, String userMsg) { // This SUCKS ASS. Messages look like: // (#21) Page ID 114267748588304 was migrated to page ID 111013272313096. Please update your API calls to the new ID Matcher matcher = ID_PATTERN.matcher(msg...
class class_name[name] begin[{] method[throwPageMigratedException, return_type[void], modifier[private], parameter[msg, code, subcode, userTitle, userMsg]] begin[{] local_variable[type[Matcher], matcher] local_variable[type[long], oldId] local_variable[type[long], newId] ThrowSt...
Keyword[private] Keyword[void] identifier[throwPageMigratedException] operator[SEP] identifier[String] identifier[msg] , Keyword[int] identifier[code] , Keyword[int] identifier[subcode] , identifier[String] identifier[userTitle] , identifier[String] identifier[userMsg] operator[SEP] { identifier[Matcher] ide...
public static void shutdownExecutorService(ExecutorService executorService, Optional<Logger> logger) { shutdownExecutorService(executorService, logger, EXECUTOR_SERVICE_SHUTDOWN_TIMEOUT, EXECUTOR_SERVICE_SHUTDOWN_TIMEOUT_TIMEUNIT); }
class class_name[name] begin[{] method[shutdownExecutorService, return_type[void], modifier[public static], parameter[executorService, logger]] begin[{] call[.shutdownExecutorService, parameter[member[.executorService], member[.logger], member[.EXECUTOR_SERVICE_SHUTDOWN_TIMEOUT], member[.EXECUT...
Keyword[public] Keyword[static] Keyword[void] identifier[shutdownExecutorService] operator[SEP] identifier[ExecutorService] identifier[executorService] , identifier[Optional] operator[<] identifier[Logger] operator[>] identifier[logger] operator[SEP] { identifier[shutdownExecutorService] operator[SEP] identifie...
public void validate() throws ValidateException { if ((this.xaDataSourceClass == null || this.xaDataSourceClass.trim().length() == 0) && (this.driver == null || this.driver.trim().length() == 0)) throw new ValidateException(bundle.requiredElementMissing(XML.ELEMENT_XA_DATASOURCE_CLASS, ...
class class_name[name] begin[{] method[validate, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[binary_operation[THIS[member[None.xaDataSourceClass]], ==, literal[null]], ||, binary_operation[THIS[member[None.xaDataSourceClass]call[None.trim, par...
Keyword[public] Keyword[void] identifier[validate] operator[SEP] operator[SEP] Keyword[throws] identifier[ValidateException] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[xaDataSourceClass] operator[==] Other[null] operator[||] Keyword[this] operator[SEP] identifier[xaDataSourc...
public void marshall(RtmpCaptionInfoDestinationSettings rtmpCaptionInfoDestinationSettings, ProtocolMarshaller protocolMarshaller) { if (rtmpCaptionInfoDestinationSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[rtmpCaptionInfoDestinationSettings, protocolMarshaller]] begin[{] if[binary_operation[member[.rtmpCaptionInfoDestinationSettings], ==, literal[null]]] begin[{] ThrowStatement(expression=C...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[RtmpCaptionInfoDestinationSettings] identifier[rtmpCaptionInfoDestinationSettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[rtmpCaptionInfoDestinationSettings] ...
public void writeNativeResponse(NativeResponse resp, Writer writer) throws IOException { JsonGenerator gen = factory().getJsonFactory().createGenerator(writer); writeNativeResponse(resp, gen); }
class class_name[name] begin[{] method[writeNativeResponse, return_type[void], modifier[public], parameter[resp, writer]] begin[{] local_variable[type[JsonGenerator], gen] call[.writeNativeResponse, parameter[member[.resp], member[.gen]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeNativeResponse] operator[SEP] identifier[NativeResponse] identifier[resp] , identifier[Writer] identifier[writer] operator[SEP] Keyword[throws] identifier[IOException] { identifier[JsonGenerator] identifier[gen] operator[=] identifier[factory] operator[SEP] operator...
public synchronized RPC<V> call() { ++_callCnt; // completer will not be carried over to remote // add it to the RPC call. if(_dt.getCompleter() != null){ CountedCompleter cc = _dt.getCompleter(); assert cc instanceof H2OCountedCompleter; boolean alreadyIn = false; if(_fjtasks !=...
class class_name[name] begin[{] method[call, return_type[type[RPC]], modifier[synchronized public], parameter[]] begin[{] member[._callCnt] if[binary_operation[call[_dt.getCompleter, parameter[]], !=, literal[null]]] begin[{] local_variable[type[CountedCompleter], cc...
Keyword[public] Keyword[synchronized] identifier[RPC] operator[<] identifier[V] operator[>] identifier[call] operator[SEP] operator[SEP] { operator[++] identifier[_callCnt] operator[SEP] Keyword[if] operator[SEP] identifier[_dt] operator[SEP] identifier[getCompleter] operator[SEP] operator[SEP] operator[!=] Othe...
protected String getMultiGetQueryCacheQuery(EntityKey[] keys) { int numberOfKeys = keys.length; String query = multiGetQueryCache.get( numberOfKeys ); if ( query == null ) { query = createMultiGetOnMultiplePropertiesId( numberOfKeys ); String cached = multiGetQueryCache.putIfAbsent( numberOfKeys, query ); ...
class class_name[name] begin[{] method[getMultiGetQueryCacheQuery, return_type[type[String]], modifier[protected], parameter[keys]] begin[{] local_variable[type[int], numberOfKeys] local_variable[type[String], query] if[binary_operation[member[.query], ==, literal[null]]] begin[...
Keyword[protected] identifier[String] identifier[getMultiGetQueryCacheQuery] operator[SEP] identifier[EntityKey] operator[SEP] operator[SEP] identifier[keys] operator[SEP] { Keyword[int] identifier[numberOfKeys] operator[=] identifier[keys] operator[SEP] identifier[length] operator[SEP] identifier[String] identi...
private void add_snake_case_properties(List<PropertyDescriptor> pdl) throws IntrospectionException { List<PropertyDescriptor> alternatives = new ArrayList<PropertyDescriptor>(); for (PropertyDescriptor descriptor : pdl) { String camelCase = descriptor.getName(); if (camelCase.equals("rendererType")) { con...
class class_name[name] begin[{] method[add_snake_case_properties, return_type[void], modifier[private], parameter[pdl]] begin[{] local_variable[type[List], alternatives] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar...
Keyword[private] Keyword[void] identifier[add_snake_case_properties] operator[SEP] identifier[List] operator[<] identifier[PropertyDescriptor] operator[>] identifier[pdl] operator[SEP] Keyword[throws] identifier[IntrospectionException] { identifier[List] operator[<] identifier[PropertyDescriptor] operator[>] ide...
public static SimpleFeatureCollection readShapefile( String path ) throws IOException { OmsShapefileFeatureReader reader = new OmsShapefileFeatureReader(); reader.file = path; reader.readFeatureCollection(); return reader.geodata; }
class class_name[name] begin[{] method[readShapefile, return_type[type[SimpleFeatureCollection]], modifier[public static], parameter[path]] begin[{] local_variable[type[OmsShapefileFeatureReader], reader] assign[member[reader.file], member[.path]] call[reader.readFeature...
Keyword[public] Keyword[static] identifier[SimpleFeatureCollection] identifier[readShapefile] operator[SEP] identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IOException] { identifier[OmsShapefileFeatureReader] identifier[reader] operator[=] Keyword[new] identifier[OmsShapefileFeatureR...
@Override public Pair<byte[][], byte[][]> getStartEndKeys() throws IOException { List<HRegionLocation> regions = getAllRegionLocations(); byte[][] startKeys = new byte[regions.size()][]; byte[][] endKeys = new byte[regions.size()][]; int i = 0; for(HRegionLocation region : regions) { startKe...
class class_name[name] begin[{] method[getStartEndKeys, return_type[type[Pair]], modifier[public], parameter[]] begin[{] local_variable[type[List], regions] local_variable[type[byte], startKeys] local_variable[type[byte], endKeys] local_variable[type[int], i] ForStatemen...
annotation[@] identifier[Override] Keyword[public] identifier[Pair] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[SEP] operator[SEP] , Keyword[byte] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[>] identifier[getStartEndKeys] operator[SEP] operator[SEP] Keyword[throws] identifier[IO...
public void addScreenComponent(Container parent, Converter fieldInfo, JComponent component) { String strName = fieldInfo.getFieldName(); // Almost always if (strName != null) component.setName(strName); component.addFocusListener(this); // todo(don) Note: I never remove ...
class class_name[name] begin[{] method[addScreenComponent, return_type[void], modifier[public], parameter[parent, fieldInfo, component]] begin[{] local_variable[type[String], strName] if[binary_operation[member[.strName], !=, literal[null]]] begin[{] call[component.setName, ...
Keyword[public] Keyword[void] identifier[addScreenComponent] operator[SEP] identifier[Container] identifier[parent] , identifier[Converter] identifier[fieldInfo] , identifier[JComponent] identifier[component] operator[SEP] { identifier[String] identifier[strName] operator[=] identifier[fieldInfo] operator[SEP]...
public static String encipher(String key, String clearText) { if (key == null) { throw new NullPointerException("key may not be null"); } if (key == "") { return clearText; } if (clearText == null) { return null; } byte[] key...
class class_name[name] begin[{] method[encipher, return_type[type[String]], modifier[public static], parameter[key, clearText]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[static] identifier[String] identifier[encipher] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[clearText] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier...
public void accept(final TokenType tokenType) { if (lexer.getCurrentToken().getType() != tokenType) { throw new SQLParsingException(lexer, tokenType); } lexer.nextToken(); }
class class_name[name] begin[{] method[accept, return_type[void], modifier[public], parameter[tokenType]] begin[{] if[binary_operation[call[lexer.getCurrentToken, parameter[]], !=, member[.tokenType]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member...
Keyword[public] Keyword[void] identifier[accept] operator[SEP] Keyword[final] identifier[TokenType] identifier[tokenType] operator[SEP] { Keyword[if] operator[SEP] identifier[lexer] operator[SEP] identifier[getCurrentToken] operator[SEP] operator[SEP] operator[SEP] identifier[getType] operator[SEP] operator[SEP]...
public void debug(String message) { if (loggingService == null) { System.out.println(message); return; } loggingService.debug(pluginId, loggerName, message); }
class class_name[name] begin[{] method[debug, return_type[void], modifier[public], parameter[message]] begin[{] if[binary_operation[member[.loggingService], ==, literal[null]]] begin[{] call[System.out.println, parameter[member[.message]]] return[None] ...
Keyword[public] Keyword[void] identifier[debug] operator[SEP] identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[loggingService] operator[==] Other[null] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator...
public static ClickHandler chain (final ClickHandler... handlers) { return new ClickHandler() { public void onClick (ClickEvent event) { for (ClickHandler handler : handlers) { try { handler.onClick(event); } catch (...
class class_name[name] begin[{] method[chain, return_type[type[ClickHandler]], modifier[public static], parameter[handlers]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExp...
Keyword[public] Keyword[static] identifier[ClickHandler] identifier[chain] operator[SEP] Keyword[final] identifier[ClickHandler] operator[...] identifier[handlers] operator[SEP] { Keyword[return] Keyword[new] identifier[ClickHandler] operator[SEP] operator[SEP] { Keyword[public] Keyword[void] identifi...
public UpdateRouteRequest withRequestModels(java.util.Map<String, String> requestModels) { setRequestModels(requestModels); return this; }
class class_name[name] begin[{] method[withRequestModels, return_type[type[UpdateRouteRequest]], modifier[public], parameter[requestModels]] begin[{] call[.setRequestModels, parameter[member[.requestModels]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[UpdateRouteRequest] identifier[withRequestModels] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[requestModels] operator[SEP] { identifier[setRequestModels] operator...
public static StringBuilder elapsedAndSize(long startTimeNanos, long endTimeNanos, long size) { final StringBuilder buf = new StringBuilder(16); appendElapsedAndSize(buf, startTimeNanos, endTimeNanos, size); return buf; }
class class_name[name] begin[{] method[elapsedAndSize, return_type[type[StringBuilder]], modifier[public static], parameter[startTimeNanos, endTimeNanos, size]] begin[{] local_variable[type[StringBuilder], buf] call[.appendElapsedAndSize, parameter[member[.buf], member[.startTimeNanos],...
Keyword[public] Keyword[static] identifier[StringBuilder] identifier[elapsedAndSize] operator[SEP] Keyword[long] identifier[startTimeNanos] , Keyword[long] identifier[endTimeNanos] , Keyword[long] identifier[size] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[buf] operator[=] Keyword[new]...
public void start(String resourceGroupName, String networkWatcherName, String connectionMonitorName) { startWithServiceResponseAsync(resourceGroupName, networkWatcherName, connectionMonitorName).toBlocking().last().body(); }
class class_name[name] begin[{] method[start, return_type[void], modifier[public], parameter[resourceGroupName, networkWatcherName, connectionMonitorName]] begin[{] call[.startWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.networkWatcherName], member[.connectionMonitorN...
Keyword[public] Keyword[void] identifier[start] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkWatcherName] , identifier[String] identifier[connectionMonitorName] operator[SEP] { identifier[startWithServiceResponseAsync] operator[SEP] identifier[resourceGr...
public PBKey getPBKey() { if (pbKey == null) { log.error("## PBKey not set, Database isOpen=" + isOpen + " ##"); if (!isOpen) throw new DatabaseClosedException("Database is not open"); } return pbKey; }
class class_name[name] begin[{] method[getPBKey, return_type[type[PBKey]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.pbKey], ==, literal[null]]] begin[{] call[log.error, parameter[binary_operation[binary_operation[literal["## PBKey not set, Data...
Keyword[public] identifier[PBKey] identifier[getPBKey] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pbKey] operator[==] Other[null] operator[SEP] { identifier[log] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[isOpen] operator[+] literal[Str...
public static Matcher matcher( Pattern pattern, CharSequence charSequence, long timeoutInMilliseconds ) { // Substitute in our exploding CharSequence implementation. if (!(charSequence instanceof TimeLimitedCharSequence)) { charSequence = new TimeLimit...
class class_name[name] begin[{] method[matcher, return_type[type[Matcher]], modifier[public static], parameter[pattern, charSequence, timeoutInMilliseconds]] begin[{] if[binary_operation[member[.charSequence], instanceof, type[TimeLimitedCharSequence]]] begin[{] assign[m...
Keyword[public] Keyword[static] identifier[Matcher] identifier[matcher] operator[SEP] identifier[Pattern] identifier[pattern] , identifier[CharSequence] identifier[charSequence] , Keyword[long] identifier[timeoutInMilliseconds] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[char...
public BrowseCursor getBrowseCursor(SelectionCriteria criteria) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getBrowseCursor", criteria); SibTr.exit(tc, "getBrowseCursor"); } return _aih.newBrowseCursor(criteria); }
class class_name[name] begin[{] method[getBrowseCursor, return_type[type[BrowseCursor]], modifier[public], parameter[criteria]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Si...
Keyword[public] identifier[BrowseCursor] identifier[getBrowseCursor] operator[SEP] identifier[SelectionCriteria] identifier[criteria] operator[SEP] Keyword[throws] identifier[SIResourceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] op...
public ArrayList getConsumerListForExpression( String topicExpression, boolean selector, boolean isWildcarded) { if (tc.isEntryEnabled()) SibTr.entry(tc, "getConsumerListForExpression", new Object[]{topicExpression, new Boolea...
class class_name[name] begin[{] method[getConsumerListForExpression, return_type[type[ArrayList]], modifier[public], parameter[topicExpression, selector, isWildcarded]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[member[.tc], literal["getCo...
Keyword[public] identifier[ArrayList] identifier[getConsumerListForExpression] operator[SEP] identifier[String] identifier[topicExpression] , Keyword[boolean] identifier[selector] , Keyword[boolean] identifier[isWildcarded] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEnt...
private boolean isHibernateExtendedBeanManagerSupported() { try { Class.forName(HIBERNATE_EXTENDED_BEANMANAGER); return true; } catch (ClassNotFoundException ignore) { return false; } catch (NoClassDefFoundError ignore) { return false; } ...
class class_name[name] begin[{] method[isHibernateExtendedBeanManagerSupported, return_type[type[boolean]], modifier[private], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=HIBERNATE_EXTENDED_BEANMANAGER, postfix_operators=[]...
Keyword[private] Keyword[boolean] identifier[isHibernateExtendedBeanManagerSupported] operator[SEP] operator[SEP] { Keyword[try] { identifier[Class] operator[SEP] identifier[forName] operator[SEP] identifier[HIBERNATE_EXTENDED_BEANMANAGER] operator[SEP] operator[SEP] Keyword[return] literal[boolean] o...
public void connectToPredecessors(Map<IntermediateDataSetID, IntermediateResult> intermediateDataSets) throws JobException { List<JobEdge> inputs = jobVertex.getInputs(); if (LOG.isDebugEnabled()) { LOG.debug(String.format("Connecting ExecutionJobVertex %s (%s) to %d predecessors.", jobVertex.getID(), jobVerte...
class class_name[name] begin[{] method[connectToPredecessors, return_type[void], modifier[public], parameter[intermediateDataSets]] begin[{] local_variable[type[List], inputs] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[call[Strin...
Keyword[public] Keyword[void] identifier[connectToPredecessors] operator[SEP] identifier[Map] operator[<] identifier[IntermediateDataSetID] , identifier[IntermediateResult] operator[>] identifier[intermediateDataSets] operator[SEP] Keyword[throws] identifier[JobException] { identifier[List] operator[<] identifi...
private VoltTable runQuery(String description, String SQL) throws Exception { System.out.println(description); ClientResponse resp = client.callProcedure("@AdHoc", SQL); System.out.println("SQL query: " + SQL); System.out.println(); VoltTable table = resp.getResults()[0]; ...
class class_name[name] begin[{] method[runQuery, return_type[type[VoltTable]], modifier[private], parameter[description, SQL]] begin[{] call[System.out.println, parameter[member[.description]]] local_variable[type[ClientResponse], resp] call[System.out.println, parameter...
Keyword[private] identifier[VoltTable] identifier[runQuery] operator[SEP] identifier[String] identifier[description] , identifier[String] identifier[SQL] operator[SEP] Keyword[throws] identifier[Exception] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] identif...
public Array readWithCE(ucar.nc2.Variable v, String CE) throws IOException { Array dataArray; try { DataDDS dataDDS = readDataDDSfromServer(CE); DodsV root = DodsV.parseDataDDS(dataDDS); DodsV want = root.children.get(0); // can only be one if (v.isMemberOfStructure()) dataA...
class class_name[name] begin[{] method[readWithCE, return_type[type[Array]], modifier[public], parameter[v, CE]] begin[{] local_variable[type[Array], dataArray] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocati...
Keyword[public] identifier[Array] identifier[readWithCE] operator[SEP] identifier[ucar] operator[SEP] identifier[nc2] operator[SEP] identifier[Variable] identifier[v] , identifier[String] identifier[CE] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Array] identifier[dataArray] operator[SEP]...
public final double getDouble() { if (count == 0) { return 0.0; } StringBuffer temp = getStringBuffer(); temp.append('.'); temp.append(digits, 0, count); temp.append('E'); temp.append(decimalAt); return Double.parseDouble(temp.toString()); ...
class class_name[name] begin[{] method[getDouble, return_type[type[double]], modifier[final public], parameter[]] begin[{] if[binary_operation[member[.count], ==, literal[0]]] begin[{] return[literal[0.0]] else begin[{] None end[}] local_variable[type[StringB...
Keyword[public] Keyword[final] Keyword[double] identifier[getDouble] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[count] operator[==] Other[0] operator[SEP] { Keyword[return] literal[Float] operator[SEP] } identifier[StringBuffer] identifier[temp] operator[=] identi...
public static Class<?> tryLoadClass(String className) throws ClassNotFoundException { try { return Class.forName(className); } catch (ClassNotFoundException e) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); return contextClassLoader...
class class_name[name] begin[{] method[tryLoadClass, return_type[type[Class]], modifier[public static], parameter[className]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=className, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[tryLoadClass] operator[SEP] identifier[String] identifier[className] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[try] { Keyword[return] identifier[Class] operator[SEP] identi...
public GetPresetResponse getPreset(String name) { GetPresetRequest request = new GetPresetRequest(); request.setName(name); return getPreset(request); }
class class_name[name] begin[{] method[getPreset, return_type[type[GetPresetResponse]], modifier[public], parameter[name]] begin[{] local_variable[type[GetPresetRequest], request] call[request.setName, parameter[member[.name]]] return[call[.getPreset, parameter[member[.request]]...
Keyword[public] identifier[GetPresetResponse] identifier[getPreset] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[GetPresetRequest] identifier[request] operator[=] Keyword[new] identifier[GetPresetRequest] operator[SEP] operator[SEP] operator[SEP] identifier[request] operator[SEP] ...
public void reset(){ if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "reset"); streamIndex = 0; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "reset"); }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], li...
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SE...
public Status route(final CharSequence method, final CharSequence path, final Result<T> result) { result.captor.optionalTrailingSlash(optionalTrailingSlash); final RouteTarget<T> route = trie.lookup(path, result.captor); if (route == null) { return result.notFound().status(); } final Target<T>...
class class_name[name] begin[{] method[route, return_type[type[Status]], modifier[public], parameter[method, path, result]] begin[{] call[result.captor.optionalTrailingSlash, parameter[member[.optionalTrailingSlash]]] local_variable[type[RouteTarget], route] if[binary_op...
Keyword[public] identifier[Status] identifier[route] operator[SEP] Keyword[final] identifier[CharSequence] identifier[method] , Keyword[final] identifier[CharSequence] identifier[path] , Keyword[final] identifier[Result] operator[<] identifier[T] operator[>] identifier[result] operator[SEP] { identifier[result...
@Override public Content getContent(String spaceId, String contentId, Long startByte, Long endByte) throws ContentStoreException { //validate args if (startByte == null || startByte < 0) { throw new IllegalArgumentException("startByte must be equal to or greater than zero."); ...
class class_name[name] begin[{] method[getContent, return_type[type[Content]], modifier[public], parameter[spaceId, contentId, startByte, endByte]] begin[{] if[binary_operation[binary_operation[member[.startByte], ==, literal[null]], ||, binary_operation[member[.startByte], <, literal[0]]]] beg...
annotation[@] identifier[Override] Keyword[public] identifier[Content] identifier[getContent] operator[SEP] identifier[String] identifier[spaceId] , identifier[String] identifier[contentId] , identifier[Long] identifier[startByte] , identifier[Long] identifier[endByte] operator[SEP] Keyword[throws] identifier[Conten...
public static void unwrap(File zip, final File outputDir) { unwrap(zip, outputDir, IdentityNameMapper.INSTANCE); }
class class_name[name] begin[{] method[unwrap, return_type[void], modifier[public static], parameter[zip, outputDir]] begin[{] call[.unwrap, parameter[member[.zip], member[.outputDir], member[IdentityNameMapper.INSTANCE]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[unwrap] operator[SEP] identifier[File] identifier[zip] , Keyword[final] identifier[File] identifier[outputDir] operator[SEP] { identifier[unwrap] operator[SEP] identifier[zip] , identifier[outputDir] , identifier[IdentityNameMapper] operator[SEP] identi...
static public void encodeGeography(final FastSerializer fs, GeographyValue value) throws IOException { ByteBuffer bb = ByteBuffer.allocate(value.getLengthInBytes()); bb.order(ByteOrder.nativeOrder()); value.flattenToBuffer(bb); byte[] array = bb.array(); fs.writeInt(array.le...
class class_name[name] begin[{] method[encodeGeography, return_type[void], modifier[public static], parameter[fs, value]] begin[{] local_variable[type[ByteBuffer], bb] call[bb.order, parameter[call[ByteOrder.nativeOrder, parameter[]]]] call[value.flattenToBuffer, paramet...
Keyword[static] Keyword[public] Keyword[void] identifier[encodeGeography] operator[SEP] Keyword[final] identifier[FastSerializer] identifier[fs] , identifier[GeographyValue] identifier[value] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteBuffer] identifier[bb] operator[=] identifier[Byt...
@Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case XtextPackage.CROSS_REFERENCE__TYPE: return basicSetType(null, msgs); case XtextPackage.CROSS_REFERENCE__TERMINAL: return basicSetTerminal(null, msgs); } ret...
class class_name[name] begin[{] method[eInverseRemove, return_type[type[NotificationChain]], modifier[public], parameter[otherEnd, featureID, msgs]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=CROSS_REFERENCE__TYPE, postfix_operators=[], prefix_operators=[], qualifi...
annotation[@] identifier[Override] Keyword[public] identifier[NotificationChain] identifier[eInverseRemove] operator[SEP] identifier[InternalEObject] identifier[otherEnd] , Keyword[int] identifier[featureID] , identifier[NotificationChain] identifier[msgs] operator[SEP] { Keyword[switch] operator[SEP] identifi...
public void marshall(Hits hits, ProtocolMarshaller protocolMarshaller) { if (hits == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hits.getFound(), FOUND_BINDING); protocolMarshaller.mar...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[hits, protocolMarshaller]] begin[{] if[binary_operation[member[.hits], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Hits] identifier[hits] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[hits] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier...
@NotNull public static <T, U, A, R> Collector<T, ?, R> flatMapping( @NotNull final Function<? super T, ? extends Stream<? extends U>> mapper, @NotNull final Collector<? super U, A, R> downstream) { final BiConsumer<A, ? super U> accumulator = downstream.accumulator(); return...
class class_name[name] begin[{] method[flatMapping, return_type[type[Collector]], modifier[public static], parameter[mapper, downstream]] begin[{] local_variable[type[BiConsumer], accumulator] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=supplier, postfix_operators=[], p...
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[U] , identifier[A] , identifier[R] operator[>] identifier[Collector] operator[<] identifier[T] , operator[?] , identifier[R] operator[>] identifier[flatMapping] operator[SEP] annotation[@] identifier[NotNull] K...
protected Enumeration getContextAttributeNames() { if (_attributes.size()==0) return getHttpContext().getAttributeNames(); HashSet set=new HashSet(_attributes.keySet()); Enumeration e=getHttpContext().getAttributeNames(); while(e.hasMoreElements()) set.add(e.n...
class class_name[name] begin[{] method[getContextAttributeNames, return_type[type[Enumeration]], modifier[protected], parameter[]] begin[{] if[binary_operation[call[_attributes.size, parameter[]], ==, literal[0]]] begin[{] return[call[.getHttpContext, parameter[]]] else begin[{] None ...
Keyword[protected] identifier[Enumeration] identifier[getContextAttributeNames] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_attributes] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] Keyword[return] identifier[getHttpContext] operator[SEP] o...
public static boolean nodeNameEquals(Node node, String desiredName) { Assert.notNull(node, "Node must not be null"); Assert.notNull(desiredName, "Desired name must not be null"); return nodeNameMatch(node, desiredName); }
class class_name[name] begin[{] method[nodeNameEquals, return_type[type[boolean]], modifier[public static], parameter[node, desiredName]] begin[{] call[Assert.notNull, parameter[member[.node], literal["Node must not be null"]]] call[Assert.notNull, parameter[member[.desiredName]...
Keyword[public] Keyword[static] Keyword[boolean] identifier[nodeNameEquals] operator[SEP] identifier[Node] identifier[node] , identifier[String] identifier[desiredName] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[node] , literal[String] operator[SEP] operator[S...
public Permission getPermission() throws IOException { int port = url.getPort(); port = port < 0 ? 80 : port; String host = url.getHost() + ":" + port; Permission permission = new SocketPermission(host, "connect"); return permission; }
class class_name[name] begin[{] method[getPermission, return_type[type[Permission]], modifier[public], parameter[]] begin[{] local_variable[type[int], port] assign[member[.port], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=port, postfix_operators=[], pref...
Keyword[public] identifier[Permission] identifier[getPermission] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[port] operator[=] identifier[url] operator[SEP] identifier[getPort] operator[SEP] operator[SEP] operator[SEP] identifier[port] operator[=] identifier[port...
public Map<String,Object> propertiesForFunction() { val fields = DifferentialFunctionClassHolder.getInstance().getFieldsForFunction(this); Map<String,Object> ret = new LinkedHashMap<>(); for(val entry : fields.entrySet()) { try { ret.put(entry.getKey(),fields.get(ent...
class class_name[name] begin[{] method[propertiesForFunction, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[val], fields] local_variable[type[Map], ret] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[propertiesForFunction] operator[SEP] operator[SEP] { identifier[val] identifier[fields] operator[=] identifier[DifferentialFunctionClassHolder] operator[SEP] identifier[getInstance] operator[SEP] operator[...
@GET @Produces(MediaType.APPLICATION_JSON) @RequiresPermissions(I18nPermissions.TRANSLATION_READ) public Response getTranslations(@QueryParam(PAGE_INDEX) Long pageIndex, @QueryParam(PAGE_SIZE) Integer pageSize, @QueryParam(IS_MISSING) Boolean isMissing, @QueryParam(IS_APPROX) Boolean isApprox, ...
class class_name[name] begin[{] method[getTranslations, return_type[type[Response]], modifier[public], parameter[pageIndex, pageSize, isMissing, isApprox, isOutdated, searchName]] begin[{] local_variable[type[Response], response] if[binary_operation[binary_operation[member[.pageIndex], ...
annotation[@] identifier[GET] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] annotation[@] identifier[RequiresPermissions] operator[SEP] identifier[I18nPermissions] operator[SEP] identifier[TRANSLATION_READ] operator[SEP] Keyword[public] i...
public static String removeFirst(String str, char c) { return (Strs.isEmpty(str) || c != str.charAt(0)) ? str : str.substring(1); }
class class_name[name] begin[{] method[removeFirst, return_type[type[String]], modifier[public static], parameter[str, c]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, ...
Keyword[public] Keyword[static] identifier[String] identifier[removeFirst] operator[SEP] identifier[String] identifier[str] , Keyword[char] identifier[c] operator[SEP] { Keyword[return] operator[SEP] identifier[Strs] operator[SEP] identifier[isEmpty] operator[SEP] identifier[str] operator[SEP] operator[||] iden...
private static void setUniqueIdReferences(final Node node, final String id, final String fixedId) { final NamedNodeMap attributes = node.getAttributes(); if (attributes != null) { for (int i = 0; i < attributes.getLength(); ++i) { final Attr attr = (Attr) attributes.item(i); ...
class class_name[name] begin[{] method[setUniqueIdReferences, return_type[void], modifier[private static], parameter[node, id, fixedId]] begin[{] local_variable[type[NamedNodeMap], attributes] if[binary_operation[member[.attributes], !=, literal[null]]] begin[{] ForStatement...
Keyword[private] Keyword[static] Keyword[void] identifier[setUniqueIdReferences] operator[SEP] Keyword[final] identifier[Node] identifier[node] , Keyword[final] identifier[String] identifier[id] , Keyword[final] identifier[String] identifier[fixedId] operator[SEP] { Keyword[final] identifier[NamedNodeMap] iden...
@SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter") public static Val exec(String rapids, Session session) { try { H2O.incrementActiveRapidsCounter(); AstRoot ast = Rapids.parse(rapids); // Synchronize the session, to stop back-to-back overlapping Rapids calls // on the s...
class class_name[name] begin[{] method[exec, return_type[type[Val]], modifier[public static], parameter[rapids, session]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=incrementActiveRapidsCounter, postfix_operators=[], prefix_operators=[], qualifier=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Val] identifier[exec] operator[SEP] identifier[String] identifier[rapids] , identifier[Session] identifier[session] operator[SEP] { Keyword[try] { identifier[H2O] operator...
public void subparam(String type, String name, final Object value, double min, double max, String strPattern, int maxLength, final boolean isNew) throws PageException { // check attributes type if (type == null) type = "any"; else type = type.trim().toLowerCase(); // cast and set value if (!"any".equals(type)) {...
class class_name[name] begin[{] method[subparam, return_type[void], modifier[public], parameter[type, name, value, min, max, strPattern, maxLength, isNew]] begin[{] if[binary_operation[member[.type], ==, literal[null]]] begin[{] assign[member[.type], literal["any"]] else beg...
Keyword[public] Keyword[void] identifier[subparam] operator[SEP] identifier[String] identifier[type] , identifier[String] identifier[name] , Keyword[final] identifier[Object] identifier[value] , Keyword[double] identifier[min] , Keyword[double] identifier[max] , identifier[String] identifier[strPattern] , Keyword...
public static Expression applyDirective( Expression expr, SoyJsSrcPrintDirective directive, List<Expression> args, SourceLocation location, ErrorReporter errorReporter) { List<JsExpr> argExprs = Lists.transform(args, Expression::singleExprOrName); JsExpr applied; try { ap...
class class_name[name] begin[{] method[applyDirective, return_type[type[Expression]], modifier[public static], parameter[expr, directive, args, location, errorReporter]] begin[{] local_variable[type[List], argExprs] local_variable[type[JsExpr], applied] TryStatement(block=[StatementExpr...
Keyword[public] Keyword[static] identifier[Expression] identifier[applyDirective] operator[SEP] identifier[Expression] identifier[expr] , identifier[SoyJsSrcPrintDirective] identifier[directive] , identifier[List] operator[<] identifier[Expression] operator[>] identifier[args] , identifier[SourceLocation] identifier...
public void setIcon(String icon) { ExtendedInfo info = getInfo(icon); if (info != null) info._icon = icon; }
class class_name[name] begin[{] method[setIcon, return_type[void], modifier[public], parameter[icon]] begin[{] local_variable[type[ExtendedInfo], info] if[binary_operation[member[.info], !=, literal[null]]] begin[{] assign[member[info._icon], member[.icon]] else begi...
Keyword[public] Keyword[void] identifier[setIcon] operator[SEP] identifier[String] identifier[icon] operator[SEP] { identifier[ExtendedInfo] identifier[info] operator[=] identifier[getInfo] operator[SEP] identifier[icon] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[info] operator[!=] Other[nu...
@SuppressWarnings("unchecked") private void updateXmlContents( I_CmsReport report, String resourcePath, boolean inclSubFolder, CmsObject cmsObject) { // write parameters to report report.println(Messages.get().container(Messages.RPT_UPDATEXML_BEGIN_UPDATE_0), I_CmsRe...
class class_name[name] begin[{] method[updateXmlContents, return_type[void], modifier[private], parameter[report, resourcePath, inclSubFolder, cmsObject]] begin[{] call[report.println, parameter[call[Messages.get, parameter[]], member[I_CmsReport.FORMAT_NOTE]]] call[report.print...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[updateXmlContents] operator[SEP] identifier[I_CmsReport] identifier[report] , identifier[String] identifier[resourcePath] , Keyword[boolean] identifier[inclSubFolder] , identifier[CmsObjec...
private void checkMQLinkExists(boolean condition, String mqlinkName) throws SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "checkMQLinkExists", ...
class class_name[name] begin[{] method[checkMQLinkExists, return_type[void], modifier[private], parameter[condition, mqlinkName]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry,...
Keyword[private] Keyword[void] identifier[checkMQLinkExists] operator[SEP] Keyword[boolean] identifier[condition] , identifier[String] identifier[mqlinkName] operator[SEP] Keyword[throws] identifier[SINotPossibleInCurrentConfigurationException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP...
@Override public PersistentTreeMap<K,V> assoc(K key, V val) { Box<Node<K,V>> found = new Box<>(null); Node<K,V> t = add(tree, key, val, found); //null == already contains key if (t == null) { Node<K,V> foundNode = found.val; //note only get same collection on ide...
class class_name[name] begin[{] method[assoc, return_type[type[PersistentTreeMap]], modifier[public], parameter[key, val]] begin[{] local_variable[type[Box], found] local_variable[type[Node], t] if[binary_operation[member[.t], ==, literal[null]]] begin[{] local_varia...
annotation[@] identifier[Override] Keyword[public] identifier[PersistentTreeMap] operator[<] identifier[K] , identifier[V] operator[>] identifier[assoc] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[val] operator[SEP] { identifier[Box] operator[<] identifier[Node] operator[<] identifie...
@SuppressWarnings({"unchecked"}) Set<Class<? extends TrailExceptionHandler<?>>> findTrailExceptionHandlers() { Set<Class<? extends TrailExceptionHandler<?>>> trailExceptionHandlers = auditConfig.getExceptionHandlers(); if (trailExceptionHandlers.isEmpty()) { Collection<Class<?>> scannedT...
class class_name[name] begin[{] method[findTrailExceptionHandlers, return_type[type[Set]], modifier[default], parameter[]] begin[{] local_variable[type[Set], trailExceptionHandlers] if[call[trailExceptionHandlers.isEmpty, parameter[]]] begin[{] local_variable[type[Collection...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] } operator[SEP] identifier[Set] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[TrailExceptionHandler] operator[<] operator[?] operator[>] operator[>] operator[>] identifier[findTrailExceptionHandlers]...
synchronized public long generateId48() { final long blockSize = 1000L; // block 1000 ms long timestamp = System.currentTimeMillis() / blockSize; long sequence = 0; boolean done = false; while (!done) { done = true; while (timestamp < lastTimestampMillisec...
class class_name[name] begin[{] method[generateId48, return_type[type[long]], modifier[synchronized public], parameter[]] begin[{] local_variable[type[long], blockSize] local_variable[type[long], timestamp] local_variable[type[long], sequence] local_variable[type[boolean], done]...
Keyword[synchronized] Keyword[public] Keyword[long] identifier[generateId48] operator[SEP] operator[SEP] { Keyword[final] Keyword[long] identifier[blockSize] operator[=] Other[1000L] operator[SEP] Keyword[long] identifier[timestamp] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] opera...
public String buildProtocolConnectOptionsString(String serverURI, boolean includeAuth, byte[] nonce) { StringBuilder connectString = new StringBuilder(); connectString.append("{"); appendOption(connectString, Options.OPTION_LANG, Nats.CLIENT_LANGUAGE, true, false); appendOption(con...
class class_name[name] begin[{] method[buildProtocolConnectOptionsString, return_type[type[String]], modifier[public], parameter[serverURI, includeAuth, nonce]] begin[{] local_variable[type[StringBuilder], connectString] call[connectString.append, parameter[literal["{"]]] ...
Keyword[public] identifier[String] identifier[buildProtocolConnectOptionsString] operator[SEP] identifier[String] identifier[serverURI] , Keyword[boolean] identifier[includeAuth] , Keyword[byte] operator[SEP] operator[SEP] identifier[nonce] operator[SEP] { identifier[StringBuilder] identifier[connectString] op...
public MappedBuffer map(int offset, int size) { return map(offset, size, FileChannel.MapMode.READ_WRITE); }
class class_name[name] begin[{] method[map, return_type[type[MappedBuffer]], modifier[public], parameter[offset, size]] begin[{] return[call[.map, parameter[member[.offset], member[.size], member[FileChannel.MapMode.READ_WRITE]]]] end[}] END[}]
Keyword[public] identifier[MappedBuffer] identifier[map] operator[SEP] Keyword[int] identifier[offset] , Keyword[int] identifier[size] operator[SEP] { Keyword[return] identifier[map] operator[SEP] identifier[offset] , identifier[size] , identifier[FileChannel] operator[SEP] identifier[MapMode] operator[SEP] i...
@SuppressWarnings("UnstableApiUsage") private void computeProjectDependencies(IdeaModule module) { ARTIFACT_DEPS_OF_PRJ.computeIfAbsent(module.getName(), moduleName -> { Map<String, Set<ArtifactSpec>> dependencies = new HashMap<>(); module.getDependencies().forEach(dep -> { ...
class class_name[name] begin[{] method[computeProjectDependencies, return_type[void], modifier[private], parameter[module]] begin[{] call[ARTIFACT_DEPS_OF_PRJ.computeIfAbsent, parameter[call[module.getName, parameter[]], LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarator...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[computeProjectDependencies] operator[SEP] identifier[IdeaModule] identifier[module] operator[SEP] { identifier[ARTIFACT_DEPS_OF_PRJ] operator[SEP] identifier[computeIfAbsent] operator[...
@SuppressWarnings({"WeakerAccess", "unused"}) // For library users public Searcher setFacet(@NonNull String attribute, boolean isDisjunctive) { if (isDisjunctive && !disjunctiveFacets.contains(attribute)) { disjunctiveFacets.add(attribute); } else { disjunctiveFacets.remove(a...
class class_name[name] begin[{] method[setFacet, return_type[type[Searcher]], modifier[public], parameter[attribute, isDisjunctive]] begin[{] if[binary_operation[member[.isDisjunctive], &&, call[disjunctiveFacets.contains, parameter[member[.attribute]]]]] begin[{] call[d...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] identifier[Searcher] identifier[setFacet] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[attribute] , Keyword[boolean] identifier[isDisjunctive] operato...
@Override public void combine(Iterator<Record> records, Collector<Record> out) throws Exception { // to be implemented, if the reducer should use a combiner. Note that the combining method // is only used, if the stub class is further annotated with the annotation // @ReduceOperator.Combinable reduce(records, ...
class class_name[name] begin[{] method[combine, return_type[void], modifier[public], parameter[records, out]] begin[{] call[.reduce, parameter[member[.records], member[.out]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[combine] operator[SEP] identifier[Iterator] operator[<] identifier[Record] operator[>] identifier[records] , identifier[Collector] operator[<] identifier[Record] operator[>] identifier[out] operator[SEP] Keyword[throws] identifier[Exception] ...
public Column getColumn(int ordinalPosition) throws NoRowException, SQLException { try { return getColumns().get(ordinalPosition-1); } catch(IndexOutOfBoundsException exc) { throw new NoRowException(exc); } }
class class_name[name] begin[{] method[getColumn, return_type[type[Column]], modifier[public], parameter[ordinalPosition]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getColumns, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodIn...
Keyword[public] identifier[Column] identifier[getColumn] operator[SEP] Keyword[int] identifier[ordinalPosition] operator[SEP] Keyword[throws] identifier[NoRowException] , identifier[SQLException] { Keyword[try] { Keyword[return] identifier[getColumns] operator[SEP] operator[SEP] operator[SEP] identif...
public static NetcdfFile getNetcdfFile(HttpServletRequest request, HttpServletResponse response, String path) throws IOException { TdsRequestedDataset trd = new TdsRequestedDataset(request, null); if (path != null) trd.path = path; return trd.openAsNetcdfFile(request, response); }
class class_name[name] begin[{] method[getNetcdfFile, return_type[type[NetcdfFile]], modifier[public static], parameter[request, response, path]] begin[{] local_variable[type[TdsRequestedDataset], trd] if[binary_operation[member[.path], !=, literal[null]]] begin[{] assign[me...
Keyword[public] Keyword[static] identifier[NetcdfFile] identifier[getNetcdfFile] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IOException] { identifier[TdsRe...
public ServiceFuture<List<VpnConnectionInner>> listByVpnGatewayNextAsync(final String nextPageLink, final ServiceFuture<List<VpnConnectionInner>> serviceFuture, final ListOperationCallback<VpnConnectionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse( listByVpnGatewayNextSinglePa...
class class_name[name] begin[{] method[listByVpnGatewayNextAsync, return_type[type[ServiceFuture]], modifier[public], parameter[nextPageLink, serviceFuture, serviceCallback]] begin[{] return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listByVpnGatewayNextSinglePageAsync, parameter[member[...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[VpnConnectionInner] operator[>] operator[>] identifier[listByVpnGatewayNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] , Keyword[final] identifier[ServiceFuture] operator[<] identifier[List...
public static Image newActionImage (String path, ClickHandler onClick) { return newActionImage(path, null, onClick); }
class class_name[name] begin[{] method[newActionImage, return_type[type[Image]], modifier[public static], parameter[path, onClick]] begin[{] return[call[.newActionImage, parameter[member[.path], literal[null], member[.onClick]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Image] identifier[newActionImage] operator[SEP] identifier[String] identifier[path] , identifier[ClickHandler] identifier[onClick] operator[SEP] { Keyword[return] identifier[newActionImage] operator[SEP] identifier[path] , Other[null] , identifier[onClick] operator[S...
public static boolean isWellFormed(byte[] bytes, int off, int len) { int end = off + len; checkPositionIndexes(off, end, bytes.length); // Look for the first non-ASCII character. for (int i = off; i < end; i++) { if (bytes[i] < 0) { return isWellFormedSlowPath(bytes, i, end); } }...
class class_name[name] begin[{] method[isWellFormed, return_type[type[boolean]], modifier[public static], parameter[bytes, off, len]] begin[{] local_variable[type[int], end] call[.checkPositionIndexes, parameter[member[.off], member[.end], member[bytes.length]]] ForStatement(bod...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isWellFormed] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] { Keyword[int] identifier[end] operator[=] identifier[off] operator[+] identifier[len] ...
public static void initialize(final Context context, final String clientId, String clientSecret) { try { WonderPush.logDebug("initialize(" + context.getClass().getSimpleName() + ", " + clientId + ", <redacted clientSecret>)"); if (!sIsInitialized || ( clientId != null...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[public static], parameter[context, clientId, clientSecret]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=B...
Keyword[public] Keyword[static] Keyword[void] identifier[initialize] operator[SEP] Keyword[final] identifier[Context] identifier[context] , Keyword[final] identifier[String] identifier[clientId] , identifier[String] identifier[clientSecret] operator[SEP] { Keyword[try] { identifier[WonderPush] opera...
public boolean syncExtend() { if ( !this.netcdfDataset.hasUnlimitedDimension()) { return false; } try { if ( !this.netcdfDataset.syncExtend()) { return false; } } catch (IOException e) { return false; } // U...
class class_name[name] begin[{] method[syncExtend, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[THIS[member[None.netcdfDataset]call[None.hasUnlimitedDimension, parameter[]]]] begin[{] return[literal[false]] else begin[{] None end[}] ...
Keyword[public] Keyword[boolean] identifier[syncExtend] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[netcdfDataset] operator[SEP] identifier[hasUnlimitedDimension] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean]...
public static int numberAwareCompareTo(Comparable self, Comparable other) { NumberAwareComparator<Comparable> numberAwareComparator = new NumberAwareComparator<Comparable>(); return numberAwareComparator.compare(self, other); }
class class_name[name] begin[{] method[numberAwareCompareTo, return_type[type[int]], modifier[public static], parameter[self, other]] begin[{] local_variable[type[NumberAwareComparator], numberAwareComparator] return[call[numberAwareComparator.compare, parameter[member[.self], member[.other]]]]...
Keyword[public] Keyword[static] Keyword[int] identifier[numberAwareCompareTo] operator[SEP] identifier[Comparable] identifier[self] , identifier[Comparable] identifier[other] operator[SEP] { identifier[NumberAwareComparator] operator[<] identifier[Comparable] operator[>] identifier[numberAwareComparator] operat...
@Override public PutObjectResult putObject(PutObjectRequest request) { request = beforeClientExecution(request); return executePutObject(request); }
class class_name[name] begin[{] method[putObject, return_type[type[PutObjectResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executePutObject, parameter[member[.request]]]] end[}...
annotation[@] identifier[Override] Keyword[public] identifier[PutObjectResult] identifier[putObject] operator[SEP] identifier[PutObjectRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keywo...