code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public X509Certificate []getClientCertificates() throws CertificateException { SSLSocket sslSocket = _sslSocket; if (sslSocket == null) { return null; } SSLSession sslSession = sslSocket.getSession(); if (sslSession == null) return null; try { retur...
class class_name[name] begin[{] method[getClientCertificates, return_type[type[X509Certificate]], modifier[public], parameter[]] begin[{] local_variable[type[SSLSocket], sslSocket] if[binary_operation[member[.sslSocket], ==, literal[null]]] begin[{] return[literal[null]] ...
annotation[@] identifier[Override] Keyword[public] identifier[X509Certificate] operator[SEP] operator[SEP] identifier[getClientCertificates] operator[SEP] operator[SEP] Keyword[throws] identifier[CertificateException] { identifier[SSLSocket] identifier[sslSocket] operator[=] identifier[_sslSocket] operator[SEP] ...
static boolean addListToJSON(StringBuilder sb, String name, Object[] list, boolean jsonEscapeValues, boolean isFirstField) { if (name == null || list == null) return false; // add comma if isFirstField == false if (!isFirstField) sb.append(","); sb.append("\"" +...
class class_name[name] begin[{] method[addListToJSON, return_type[type[boolean]], modifier[static], parameter[sb, name, list, jsonEscapeValues, isFirstField]] begin[{] if[binary_operation[binary_operation[member[.name], ==, literal[null]], ||, binary_operation[member[.list], ==, literal[null]]]...
Keyword[static] Keyword[boolean] identifier[addListToJSON] operator[SEP] identifier[StringBuilder] identifier[sb] , identifier[String] identifier[name] , identifier[Object] operator[SEP] operator[SEP] identifier[list] , Keyword[boolean] identifier[jsonEscapeValues] , Keyword[boolean] identifier[isFirstField] operat...
boolean addCompoundMessageFiles(List<StoredFile> associatedFiles) { String messageNonce = associatedFiles.get(0).getId(); SQLiteDatabase db = null; long ret = -1; try { db = getWritableDatabase(); db.beginTransaction(); // Always delete existing rows with the same nonce to ensure add/update both work ...
class class_name[name] begin[{] method[addCompoundMessageFiles, return_type[type[boolean]], modifier[default], parameter[associatedFiles]] begin[{] local_variable[type[String], messageNonce] local_variable[type[SQLiteDatabase], db] local_variable[type[long], ret] TryStatement(bl...
Keyword[boolean] identifier[addCompoundMessageFiles] operator[SEP] identifier[List] operator[<] identifier[StoredFile] operator[>] identifier[associatedFiles] operator[SEP] { identifier[String] identifier[messageNonce] operator[=] identifier[associatedFiles] operator[SEP] identifier[get] operator[SEP] Other[0] o...
@Override public CreateEndpointResult createEndpoint(CreateEndpointRequest request) { request = beforeClientExecution(request); return executeCreateEndpoint(request); }
class class_name[name] begin[{] method[createEndpoint, return_type[type[CreateEndpointResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateEndpoint, parameter[member[.reques...
annotation[@] identifier[Override] Keyword[public] identifier[CreateEndpointResult] identifier[createEndpoint] operator[SEP] identifier[CreateEndpointRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] oper...
@Override public UpdateThingShadowResult updateThingShadow(UpdateThingShadowRequest request) { request = beforeClientExecution(request); return executeUpdateThingShadow(request); }
class class_name[name] begin[{] method[updateThingShadow, return_type[type[UpdateThingShadowResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateThingShadow, parameter[membe...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateThingShadowResult] identifier[updateThingShadow] operator[SEP] identifier[UpdateThingShadowRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[...
public ResponseFromManager generateUpdateExecuteTask(ParallelTask task) { // add to map now; as can only pass final ParallelTaskManager.getInstance().addTaskToInProgressMap( task.getTaskId(), task); logger.info("Added task {} to the running inprogress map...", ta...
class class_name[name] begin[{] method[generateUpdateExecuteTask, return_type[type[ResponseFromManager]], modifier[public], parameter[task]] begin[{] call[ParallelTaskManager.getInstance, parameter[]] call[logger.info, parameter[literal["Added task {} to the running inprogress m...
Keyword[public] identifier[ResponseFromManager] identifier[generateUpdateExecuteTask] operator[SEP] identifier[ParallelTask] identifier[task] operator[SEP] { identifier[ParallelTaskManager] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[addTaskToInProgressMap] operator...
@Override @FFDCIgnore({ ExecutionException.class }) public R get(long methodTimeout, TimeUnit methodUnit) throws InterruptedException, ExecutionException, TimeoutException { R result = null; Future<Future<R>> resultFuture = getResultFuture(); try { long start = System.nanoTi...
class class_name[name] begin[{] method[get, return_type[type[R]], modifier[public], parameter[methodTimeout, methodUnit]] begin[{] local_variable[type[R], result] local_variable[type[Future], resultFuture] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Variabl...
annotation[@] identifier[Override] annotation[@] identifier[FFDCIgnore] operator[SEP] { identifier[ExecutionException] operator[SEP] Keyword[class] } operator[SEP] Keyword[public] identifier[R] identifier[get] operator[SEP] Keyword[long] identifier[methodTimeout] , identifier[TimeUnit] identifier[methodUnit]...
public static int compare(Date d1, Date d2) { int result; if (d1 == null || d2 == null) { result = (d1 == d2 ? 0 : (d1 == null ? 1 : -1)); } else { long diff = d1.getTime() - d2.getTime(); result = ((diff == 0) ? 0 : ((diff > 0) ? 1 : -1)); } ...
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public static], parameter[d1, d2]] begin[{] local_variable[type[int], result] if[binary_operation[binary_operation[member[.d1], ==, literal[null]], ||, binary_operation[member[.d2], ==, literal[null]]]] beg...
Keyword[public] Keyword[static] Keyword[int] identifier[compare] operator[SEP] identifier[Date] identifier[d1] , identifier[Date] identifier[d2] operator[SEP] { Keyword[int] identifier[result] operator[SEP] Keyword[if] operator[SEP] identifier[d1] operator[==] Other[null] operator[||] identifier[d2] operator[==...
public ContextDataType withHttpHeaders(HttpHeader... httpHeaders) { if (this.httpHeaders == null) { setHttpHeaders(new java.util.ArrayList<HttpHeader>(httpHeaders.length)); } for (HttpHeader ele : httpHeaders) { this.httpHeaders.add(ele); } return this; ...
class class_name[name] begin[{] method[withHttpHeaders, return_type[type[ContextDataType]], modifier[public], parameter[httpHeaders]] begin[{] if[binary_operation[THIS[member[None.httpHeaders]], ==, literal[null]]] begin[{] call[.setHttpHeaders, parameter[ClassCreator(ar...
Keyword[public] identifier[ContextDataType] identifier[withHttpHeaders] operator[SEP] identifier[HttpHeader] operator[...] identifier[httpHeaders] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[httpHeaders] operator[==] Other[null] operator[SEP] { identifier[setHttpHe...
public void marshall(ListReviewPolicyResultsForHITRequest listReviewPolicyResultsForHITRequest, ProtocolMarshaller protocolMarshaller) { if (listReviewPolicyResultsForHITRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listReviewPolicyResultsForHITRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listReviewPolicyResultsForHITRequest], ==, literal[null]]] begin[{] ThrowStatement(expressi...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListReviewPolicyResultsForHITRequest] identifier[listReviewPolicyResultsForHITRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listReviewPolicyResultsForHITReq...
public static <T> Func1<Iterable<T>, SparseArray<T>> toSparseArray(Func1<T, Integer> itemToKey) { return toSparseArray(itemToKey, 10); }
class class_name[name] begin[{] method[toSparseArray, return_type[type[Func1]], modifier[public static], parameter[itemToKey]] begin[{] return[call[.toSparseArray, parameter[member[.itemToKey], literal[10]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Func1] operator[<] identifier[Iterable] operator[<] identifier[T] operator[>] , identifier[SparseArray] operator[<] identifier[T] operator[>] operator[>] identifier[toSparseArray] operator[SEP] identifier[Func1] operator[<] identifier[T] ...
public static <T> Position.Readable<T> readOnly(final Type type, final T value) { Validate.isTrue(TypeUtils.isInstance(value, type), "%s is not an instance of %s", value, Types.toString(type)); return readOnly(type, () -> value); }
class class_name[name] begin[{] method[readOnly, return_type[type[Position]], modifier[public static], parameter[type, value]] begin[{] call[Validate.isTrue, parameter[call[TypeUtils.isInstance, parameter[member[.value], member[.type]]], literal["%s is not an instance of %s"], member[.value], c...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Position] operator[SEP] identifier[Readable] operator[<] identifier[T] operator[>] identifier[readOnly] operator[SEP] Keyword[final] identifier[Type] identifier[type] , Keyword[final] identifier[T] identifier[value] operator[SEP] { ...
public static void main(final String[] args) { ByteArray8Holder b1 = new ByteArray8Holder(new byte[] { 0, 0, 0, 0, 0, 0, 0, 1 }); ByteArray8Holder b2 = new ByteArray8Holder(new byte[] { 0, 0, 0, 0, 0, 0, 0, 2 }); ByteArray8Holder b2b = new ByteArray8Holder(new byte[] { 0, 0, 0, 0, 0, 0, 0, 2 });...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[ByteArray8Holder], b1] local_variable[type[ByteArray8Holder], b2] local_variable[type[ByteArray8Holder], b2b] call[System.out.println, p...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[ByteArray8Holder] identifier[b1] operator[=] Keyword[new] identifier[ByteArray8Holder] operator[SEP] Keyword[new] Keyword[byte] op...
static void putIntegerIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Integer value) { if (value == null) { return; } try { jsonObject.put(fieldName, value.intValue()); } catch (JSO...
class class_name[name] begin[{] method[putIntegerIfNotNull, return_type[void], modifier[static], parameter[jsonObject, fieldName, value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] TryState...
Keyword[static] Keyword[void] identifier[putIntegerIfNotNull] operator[SEP] annotation[@] identifier[NonNull] identifier[JSONObject] identifier[jsonObject] , annotation[@] identifier[NonNull] annotation[@] identifier[Size] operator[SEP] identifier[min] operator[=] Other[1] operator[SEP] identifier[String] identifier[f...
public void registerFont (String name, java.awt.Font font) { if (font == null) throw new NullPointerException(); fonts.put(name, font); }
class class_name[name] begin[{] method[registerFont, return_type[void], modifier[public], parameter[name, font]] begin[{] if[binary_operation[member[.font], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_oper...
Keyword[public] Keyword[void] identifier[registerFont] operator[SEP] identifier[String] identifier[name] , identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[Font] identifier[font] operator[SEP] { Keyword[if] operator[SEP] identifier[font] operator[==] Other[null] operator[SEP] Keyword[thro...
protected boolean seekToRow(long currentRow) throws IOException { boolean seeked = false; // If this holds it means we checked if the row is null, and it was not, // and when we skipRows we don't want to skip this row. if (currentRow != previousPresentRow) { nextIsNull(currentRow); } if ...
class class_name[name] begin[{] method[seekToRow, return_type[type[boolean]], modifier[protected], parameter[currentRow]] begin[{] local_variable[type[boolean], seeked] if[binary_operation[member[.currentRow], !=, member[.previousPresentRow]]] begin[{] call[.next...
Keyword[protected] Keyword[boolean] identifier[seekToRow] operator[SEP] Keyword[long] identifier[currentRow] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[boolean] identifier[seeked] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[currentRow] operator[!=] identif...
public static int copy(InputStream input, OutputStream output) throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; BufferedInputStream in = new BufferedInputStream(input, BUFFER_SIZE); BufferedOutputStream out = new BufferedOutputStream(output, BUFFER_SIZE); int count = 0, n = 0; try { while (...
class class_name[name] begin[{] method[copy, return_type[type[int]], modifier[public static], parameter[input, output]] begin[{] local_variable[type[byte], buffer] local_variable[type[BufferedInputStream], in] local_variable[type[BufferedOutputStream], out] local_variable[type[i...
Keyword[public] Keyword[static] Keyword[int] identifier[copy] operator[SEP] identifier[InputStream] identifier[input] , identifier[OutputStream] identifier[output] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] operator[=] Keyword[new] Keywor...
@Override public void injectionMetaDataCreated(InjectionMetaData injectionMetaData) throws InjectionException { ReferenceContext referenceContext = injectionMetaData.getReferenceContext(); if (referenceContext != null) { ApplicationMetaData appMetaData = injectionMetaData.getComponentNa...
class class_name[name] begin[{] method[injectionMetaDataCreated, return_type[void], modifier[public], parameter[injectionMetaData]] begin[{] local_variable[type[ReferenceContext], referenceContext] if[binary_operation[member[.referenceContext], !=, literal[null]]] begin[{] l...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[injectionMetaDataCreated] operator[SEP] identifier[InjectionMetaData] identifier[injectionMetaData] operator[SEP] Keyword[throws] identifier[InjectionException] { identifier[ReferenceContext] identifier[referenceContext] operator[=] iden...
public T setBindAddressHint(final String interfaceName, final String address) { if (interfaceName == null) { throw LauncherMessages.MESSAGES.nullParam("interfaceName"); } setSingleServerArg("-b" + interfaceName, address); return getThis(); }
class class_name[name] begin[{] method[setBindAddressHint, return_type[type[T]], modifier[public], parameter[interfaceName, address]] begin[{] if[binary_operation[member[.interfaceName], ==, literal[null]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[Literal(postf...
Keyword[public] identifier[T] identifier[setBindAddressHint] operator[SEP] Keyword[final] identifier[String] identifier[interfaceName] , Keyword[final] identifier[String] identifier[address] operator[SEP] { Keyword[if] operator[SEP] identifier[interfaceName] operator[==] Other[null] operator[SEP] { K...
private static void configureCaches( ImagePipelineConfig.Builder configBuilder, Context context) { final MemoryCacheParams bitmapCacheParams = new MemoryCacheParams( ConfigConstants.MAX_MEMORY_CACHE_SIZE, // Max total size of elements in the cache Integer.MAX_VALUE, /...
class class_name[name] begin[{] method[configureCaches, return_type[void], modifier[private static], parameter[configBuilder, context]] begin[{] local_variable[type[MemoryCacheParams], bitmapCacheParams] call[configBuilder.setBitmapMemoryCacheParamsSupplier, parameter[ClassCreator(argum...
Keyword[private] Keyword[static] Keyword[void] identifier[configureCaches] operator[SEP] identifier[ImagePipelineConfig] operator[SEP] identifier[Builder] identifier[configBuilder] , identifier[Context] identifier[context] operator[SEP] { Keyword[final] identifier[MemoryCacheParams] identifier[bitmapCacheParams...
public static void start(String name, Version version, String resourcesDir) { Engine.start(new EngineHeadless(name, version, resourcesDir)); }
class class_name[name] begin[{] method[start, return_type[void], modifier[public static], parameter[name, version, resourcesDir]] begin[{] call[Engine.start, parameter[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Memb...
Keyword[public] Keyword[static] Keyword[void] identifier[start] operator[SEP] identifier[String] identifier[name] , identifier[Version] identifier[version] , identifier[String] identifier[resourcesDir] operator[SEP] { identifier[Engine] operator[SEP] identifier[start] operator[SEP] Keyword[new] identifier[Engi...
public SIBusMessage next() throws SISessionDroppedException, SIConnectionDroppedException, SISessionUnavailableException, SIConnectionUnavailableException, SIConnectionLostException, SINotAuthorizedException, SIResourceException, SIErrorException { checkValid(); return _delegate.next(); }
class class_name[name] begin[{] method[next, return_type[type[SIBusMessage]], modifier[public], parameter[]] begin[{] call[.checkValid, parameter[]] return[call[_delegate.next, parameter[]]] end[}] END[}]
Keyword[public] identifier[SIBusMessage] identifier[next] operator[SEP] operator[SEP] Keyword[throws] identifier[SISessionDroppedException] , identifier[SIConnectionDroppedException] , identifier[SISessionUnavailableException] , identifier[SIConnectionUnavailableException] , identifier[SIConnectionLostException] , ...
@SuppressWarnings ({"unchecked", "varargs"}) @CheckReturnValue public static Stubber doThrow(Class<? extends Throwable> toBeThrown, Class<? extends Throwable>... toBeThrownNext) { return MOCKITO_CORE.stubber().doThrow(toBeThrown, toBeThrownNext); }
class class_name[name] begin[{] method[doThrow, return_type[type[Stubber]], modifier[public static], parameter[toBeThrown, toBeThrownNext]] begin[{] return[call[MOCKITO_CORE.stubber, parameter[]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] annotation[@] identifier[CheckReturnValue] Keyword[public] Keyword[static] identifier[Stubber] identifier[doThrow] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T...
protected JComponent createDialogContentPane() { pageControl = new JPanel(new BorderLayout()); JPanel titlePaneContainer = new JPanel(new BorderLayout()); setMessage(getDescription()); titlePaneContainer.add(titlePane.getControl()); titlePaneContainer.add(new JSeparator(), BorderLayout.SOUTH); pageControl.a...
class class_name[name] begin[{] method[createDialogContentPane, return_type[type[JComponent]], modifier[protected], parameter[]] begin[{] assign[member[.pageControl], ClassCreator(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_oper...
Keyword[protected] identifier[JComponent] identifier[createDialogContentPane] operator[SEP] operator[SEP] { identifier[pageControl] operator[=] Keyword[new] identifier[JPanel] operator[SEP] Keyword[new] identifier[BorderLayout] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[JPanel] identifier...
@Override public String mset(final byte[]... keysvalues) { checkIsInMultiOrPipeline(); client.mset(keysvalues); return client.getStatusCodeReply(); }
class class_name[name] begin[{] method[mset, return_type[type[String]], modifier[public], parameter[keysvalues]] begin[{] call[.checkIsInMultiOrPipeline, parameter[]] call[client.mset, parameter[member[.keysvalues]]] return[call[client.getStatusCodeReply, parameter[]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[mset] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] operator[...] identifier[keysvalues] operator[SEP] { identifier[checkIsInMultiOrPipeline] operator[SEP] operator[SEP] operator[SEP] identifier[client] oper...
protected void generateReadme(String basename) { final Object content = getReadmeFileContent(basename); if (content != null) { final String textualContent = content.toString(); if (!Strings.isEmpty(textualContent)) { final byte[] bytes = textualContent.getBytes(); for (final String output : getOutputs...
class class_name[name] begin[{] method[generateReadme, return_type[void], modifier[protected], parameter[basename]] begin[{] local_variable[type[Object], content] if[binary_operation[member[.content], !=, literal[null]]] begin[{] local_variable[type[String], textualContent] ...
Keyword[protected] Keyword[void] identifier[generateReadme] operator[SEP] identifier[String] identifier[basename] operator[SEP] { Keyword[final] identifier[Object] identifier[content] operator[=] identifier[getReadmeFileContent] operator[SEP] identifier[basename] operator[SEP] operator[SEP] Keyword[if] operator[...
private List<String> scanFileSet(File sourceDirectory, FileSet fileSet) { final String[] emptyStringArray = {}; DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir(sourceDirectory); if (fileSet.getIncludes() != null && !fileSet.getIncludes().isEmpty()) { s...
class class_name[name] begin[{] method[scanFileSet, return_type[type[List]], modifier[private], parameter[sourceDirectory, fileSet]] begin[{] local_variable[type[String], emptyStringArray] local_variable[type[DirectoryScanner], scanner] call[scanner.setBasedir, parameter[member[...
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[scanFileSet] operator[SEP] identifier[File] identifier[sourceDirectory] , identifier[FileSet] identifier[fileSet] operator[SEP] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[emptyStringArray] ope...
public void operationTimedOut(InvokeImpl invoke) { // this op died cause of timeout, TC-L-CANCEL! try { this.dialogLock.lock(); int index = getIndexFromInvokeId(invoke.getInvokeId()); freeInvokeId(invoke.getInvokeId()); this.operationsSent[index] = null; ...
class class_name[name] begin[{] method[operationTimedOut, return_type[void], modifier[public], parameter[invoke]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=dialogLock, postfix_operators=N...
Keyword[public] Keyword[void] identifier[operationTimedOut] operator[SEP] identifier[InvokeImpl] identifier[invoke] operator[SEP] { Keyword[try] { Keyword[this] operator[SEP] identifier[dialogLock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[index] ...
public Bitflyer4j createInstance(Properties properties) { log.info("Creating instance."); final AbstractConfiguration conf = createConfiguration(properties); final Class<? extends RealtimeService> realtimeClass = getRealtimeType(conf); Module module = new AbstractModule() { ...
class class_name[name] begin[{] method[createInstance, return_type[type[Bitflyer4j]], modifier[public], parameter[properties]] begin[{] call[log.info, parameter[literal["Creating instance."]]] local_variable[type[AbstractConfiguration], conf] local_variable[type[Class], realtime...
Keyword[public] identifier[Bitflyer4j] identifier[createInstance] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[AbstractConfiguration] identifier[conf] ...
@Override public boolean doesCoordinateOverlapWithCommittedCoordinate(Coordinate coordinate) { return fixedRows.get(coordinate.row) || fixedVertices.contains(coordinate.match.vertex); }
class class_name[name] begin[{] method[doesCoordinateOverlapWithCommittedCoordinate, return_type[type[boolean]], modifier[public], parameter[coordinate]] begin[{] return[binary_operation[call[fixedRows.get, parameter[member[coordinate.row]]], ||, call[fixedVertices.contains, parameter[member[coordinate...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[doesCoordinateOverlapWithCommittedCoordinate] operator[SEP] identifier[Coordinate] identifier[coordinate] operator[SEP] { Keyword[return] identifier[fixedRows] operator[SEP] identifier[get] operator[SEP] identifier[coordinate] operato...
public static <T> Iterator<T> iterator(Queue<T> queue) { return new XIteratorImpl<>(()->!queue.isEmpty(), queue::remove); }
class class_name[name] begin[{] method[iterator, return_type[type[Iterator]], modifier[public static], parameter[queue]] begin[{] return[ClassCreator(arguments=[LambdaExpression(body=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=queue, selectors=...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Iterator] operator[<] identifier[T] operator[>] identifier[iterator] operator[SEP] identifier[Queue] operator[<] identifier[T] operator[>] identifier[queue] operator[SEP] { Keyword[return] Keyword[new] identifier[XIteratorImpl] oper...
public static Tailer create(final File file, final TailerListener listener, final long delayMillis, final boolean end, final int bufSize) { return Tailer.create(file, listener, delayMillis, end, false, bufSize); }
class class_name[name] begin[{] method[create, return_type[type[Tailer]], modifier[public static], parameter[file, listener, delayMillis, end, bufSize]] begin[{] return[call[Tailer.create, parameter[member[.file], member[.listener], member[.delayMillis], member[.end], literal[false], member[.bufSize]]]...
Keyword[public] Keyword[static] identifier[Tailer] identifier[create] operator[SEP] Keyword[final] identifier[File] identifier[file] , Keyword[final] identifier[TailerListener] identifier[listener] , Keyword[final] Keyword[long] identifier[delayMillis] , Keyword[final] Keyword[boolean] identifier[end] , Keyword[fin...
public void addLanguage(Language language) { languages.add(language); if (dropdown.isAttached()) { addLanguageItem(language); } else { lazyLoaded = true; } }
class class_name[name] begin[{] method[addLanguage, return_type[void], modifier[public], parameter[language]] begin[{] call[languages.add, parameter[member[.language]]] if[call[dropdown.isAttached, parameter[]]] begin[{] call[.addLanguageItem, parameter[m...
Keyword[public] Keyword[void] identifier[addLanguage] operator[SEP] identifier[Language] identifier[language] operator[SEP] { identifier[languages] operator[SEP] identifier[add] operator[SEP] identifier[language] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[dropdown] operator[SEP] identifier[...
public synchronized int getSoTimeout() throws IOException { if (isClosed()) throw new SocketException("Socket is closed"); Object o = getImpl().getOption(SocketOptions.SO_TIMEOUT); /* extra type safety */ if (o instanceof Integer) { return ((Integer) o).intValue()...
class class_name[name] begin[{] method[getSoTimeout, return_type[type[int]], modifier[synchronized public], parameter[]] begin[{] if[call[.isClosed, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, select...
Keyword[public] Keyword[synchronized] Keyword[int] identifier[getSoTimeout] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[isClosed] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[SocketException] operator[SEP] literal[...
public EClass getIfcAirTerminalBoxType() { if (ifcAirTerminalBoxTypeEClass == null) { ifcAirTerminalBoxTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(7); } return ifcAirTerminalBoxTypeEClass; }
class class_name[name] begin[{] method[getIfcAirTerminalBoxType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcAirTerminalBoxTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcAirTerminalBoxTypeEClass], Cast(ex...
Keyword[public] identifier[EClass] identifier[getIfcAirTerminalBoxType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcAirTerminalBoxTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcAirTerminalBoxTypeEClass] operator[=] operator[SEP] identifier[EClass] operator...
public static Bson descending(final List<String> fieldNames) { notNull("fieldNames", fieldNames); return compoundIndex(fieldNames, new BsonInt32(-1)); }
class class_name[name] begin[{] method[descending, return_type[type[Bson]], modifier[public static], parameter[fieldNames]] begin[{] call[.notNull, parameter[literal["fieldNames"], member[.fieldNames]]] return[call[.compoundIndex, parameter[member[.fieldNames], ClassCreator(arguments=[L...
Keyword[public] Keyword[static] identifier[Bson] identifier[descending] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[fieldNames] operator[SEP] { identifier[notNull] operator[SEP] literal[String] , identifier[fieldNames] operator[SEP] operator[SEP] Keyword[r...
public void setStatus(int status) { // 311717 if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.entering(CLASS_NAME,"setStatus", " status --> " + String.valueOf(status)+ " ["+this+"]"); } WebAppDispatcherContext di...
class class_name[name] begin[{] method[setStatus, return_type[void], modifier[public], parameter[status]] begin[{] if[binary_operation[call[com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FINE]]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setStatus] operator[SEP] Keyword[int] identifier[status] operator[SEP] { Keyword[if] operator[SEP] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ejs] operator[SEP] identifier[ras] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[i...
private ResultSet getForeignKeys( final String client, String parentCatalog, String parentSchema, final String parentTable, final String foreignCatalog, final String foreignSchema, final String foreignTable) throws SQLException { raiseSQLExceptionIfConnectionIsClosed(); Statement...
class class_name[name] begin[{] method[getForeignKeys, return_type[type[ResultSet]], modifier[private], parameter[client, parentCatalog, parentSchema, parentTable, foreignCatalog, foreignSchema, foreignTable]] begin[{] call[.raiseSQLExceptionIfConnectionIsClosed, parameter[]] local_vari...
Keyword[private] identifier[ResultSet] identifier[getForeignKeys] operator[SEP] Keyword[final] identifier[String] identifier[client] , identifier[String] identifier[parentCatalog] , identifier[String] identifier[parentSchema] , Keyword[final] identifier[String] identifier[parentTable] , Keyword[final] identifier[St...
private void listBeans(JsonGenerator jg, ObjectName qry, String attribute, HttpServletResponse response) throws IOException { Set<ObjectName> names = null; names = mBeanServer.queryNames(qry, null); jg.writeArrayFieldStart("beans"); Iterator<ObjectName> it = names.iterator(); while (it...
class class_name[name] begin[{] method[listBeans, return_type[void], modifier[private], parameter[jg, qry, attribute, response]] begin[{] local_variable[type[Set], names] assign[member[.names], call[mBeanServer.queryNames, parameter[member[.qry], literal[null]]]] call[jg...
Keyword[private] Keyword[void] identifier[listBeans] operator[SEP] identifier[JsonGenerator] identifier[jg] , identifier[ObjectName] identifier[qry] , identifier[String] identifier[attribute] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] { identif...
@Override public JobStatus createJobStatus(long jobInstanceId) { logger.entering(CLASSNAME, "createJobStatus", jobInstanceId); Connection conn = null; PreparedStatement statement = null; JobStatus jobStatus = new JobStatus(jobInstanceId); try { conn = getConnection(); statement = conn.prepareSt...
class class_name[name] begin[{] method[createJobStatus, return_type[type[JobStatus]], modifier[public], parameter[jobInstanceId]] begin[{] call[logger.entering, parameter[member[.CLASSNAME], literal["createJobStatus"], member[.jobInstanceId]]] local_variable[type[Connection], conn] ...
annotation[@] identifier[Override] Keyword[public] identifier[JobStatus] identifier[createJobStatus] operator[SEP] Keyword[long] identifier[jobInstanceId] operator[SEP] { identifier[logger] operator[SEP] identifier[entering] operator[SEP] identifier[CLASSNAME] , literal[String] , identifier[jobInstanceId] oper...
public SoapServerFaultResponseActionBuilder attachment(String contentId, String contentType, Resource contentResource, Charset charset) { SoapAttachment attachment = new SoapAttachment(); attachment.setContentId(contentId); attachment.setContentType(contentType); try { attac...
class class_name[name] begin[{] method[attachment, return_type[type[SoapServerFaultResponseActionBuilder]], modifier[public], parameter[contentId, contentType, contentResource, charset]] begin[{] local_variable[type[SoapAttachment], attachment] call[attachment.setContentId, parameter[me...
Keyword[public] identifier[SoapServerFaultResponseActionBuilder] identifier[attachment] operator[SEP] identifier[String] identifier[contentId] , identifier[String] identifier[contentType] , identifier[Resource] identifier[contentResource] , identifier[Charset] identifier[charset] operator[SEP] { identifier[So...
public static <T extends ImageGray<T>> BinaryEllipseDetector<T> ellipse(@Nullable ConfigEllipseDetector config , Class<T> imageType ) { if( config == null ) config = new ConfigEllipseDetector(); config.checkValidity(); BinaryEllipseDetectorPixel detector = new BinaryEllipseDetectorPixel(config.contourRule)...
class class_name[name] begin[{] method[ellipse, return_type[type[BinaryEllipseDetector]], modifier[public static], parameter[config, imageType]] begin[{] if[binary_operation[member[.config], ==, literal[null]]] begin[{] assign[member[.config], ClassCreator(arguments=[], body=None, c...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageGray] operator[<] identifier[T] operator[>] operator[>] identifier[BinaryEllipseDetector] operator[<] identifier[T] operator[>] identifier[ellipse] operator[SEP] annotation[@] identifier[Nullable] identifier[ConfigEllipseDetector...
@Override public void clearCache(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) { entityCache.removeResult(CPDefinitionGroupedEntryModelImpl.ENTITY_CACHE_ENABLED, CPDefinitionGroupedEntryImpl.class, cpDefinitionGroupedEntry.getPrimaryKey()); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION)...
class class_name[name] begin[{] method[clearCache, return_type[void], modifier[public], parameter[cpDefinitionGroupedEntry]] begin[{] call[entityCache.removeResult, parameter[member[CPDefinitionGroupedEntryModelImpl.ENTITY_CACHE_ENABLED], ClassReference(postfix_operators=[], prefix_operators=[]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[clearCache] operator[SEP] identifier[CPDefinitionGroupedEntry] identifier[cpDefinitionGroupedEntry] operator[SEP] { identifier[entityCache] operator[SEP] identifier[removeResult] operator[SEP] identifier[CPDefinitionGroupedEntryModelImpl...
public IfcProtectiveDeviceTrippingUnitTypeEnum createIfcProtectiveDeviceTrippingUnitTypeEnumFromString( EDataType eDataType, String initialValue) { IfcProtectiveDeviceTrippingUnitTypeEnum result = IfcProtectiveDeviceTrippingUnitTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentExcep...
class class_name[name] begin[{] method[createIfcProtectiveDeviceTrippingUnitTypeEnumFromString, return_type[type[IfcProtectiveDeviceTrippingUnitTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcProtectiveDeviceTrippingUnitTypeEnum], result] ...
Keyword[public] identifier[IfcProtectiveDeviceTrippingUnitTypeEnum] identifier[createIfcProtectiveDeviceTrippingUnitTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcProtectiveDeviceTrippingUnitTypeEnum] iden...
public boolean onLogin() { SStaticString sfStaticField = null; String strUserName = null; String strPassword = null; for (int i = 0; i < this.getSFieldCount(); i++) { ScreenField sField = this.getSField(i); if (sfStaticField == null) if...
class class_name[name] begin[{] method[onLogin, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[SStaticString], sfStaticField] local_variable[type[String], strUserName] local_variable[type[String], strPassword] ForStatement(body=BlockState...
Keyword[public] Keyword[boolean] identifier[onLogin] operator[SEP] operator[SEP] { identifier[SStaticString] identifier[sfStaticField] operator[=] Other[null] operator[SEP] identifier[String] identifier[strUserName] operator[=] Other[null] operator[SEP] identifier[String] identifier[strPassword] operator[=] Othe...
public static MozuUrl getCurrencyExchangeRateUrl(String currencyCode, String responseFields, String toCurrencyCode) { UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/currency/{currencyCode}/exchangerates/{toCurrencyCode}?responseFields={responseFields}"); formatter.formatUrl("currencyCode", ...
class class_name[name] begin[{] method[getCurrencyExchangeRateUrl, return_type[type[MozuUrl]], modifier[public static], parameter[currencyCode, responseFields, toCurrencyCode]] begin[{] local_variable[type[UrlFormatter], formatter] call[formatter.formatUrl, parameter[literal["currencyCo...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[getCurrencyExchangeRateUrl] operator[SEP] identifier[String] identifier[currencyCode] , identifier[String] identifier[responseFields] , identifier[String] identifier[toCurrencyCode] operator[SEP] { identifier[UrlFormatter] identifier[formatter] ope...
private List<String> searchClasses(List<String> lines) { List<String> result = new LinkedList<String>(); for (String line : lines) { if (isCSharpClass(line)) { result.add(getClassName(line)); } } return result; }
class class_name[name] begin[{] method[searchClasses, return_type[type[List]], modifier[private], parameter[lines]] begin[{] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=line,...
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[searchClasses] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[lines] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new...
public static MetaFieldInfo[] toMetaFieldInfoArray(Object obj, String stringForNullValues, boolean ignoreAnnotatedName) { return toMetaFieldInfoArray((obj != null ? obj.getClass() : null), obj, stringForNullValues, ignoreAnnotatedName, true); }
class class_name[name] begin[{] method[toMetaFieldInfoArray, return_type[type[MetaFieldInfo]], modifier[public static], parameter[obj, stringForNullValues, ignoreAnnotatedName]] begin[{] return[call[.toMetaFieldInfoArray, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(me...
Keyword[public] Keyword[static] identifier[MetaFieldInfo] operator[SEP] operator[SEP] identifier[toMetaFieldInfoArray] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[stringForNullValues] , Keyword[boolean] identifier[ignoreAnnotatedName] operator[SEP] { Keyword[return] identif...
public static void generateJavaDocForContentProvider(final SQLiteModelMethod method, MethodSpec.Builder methodBuilder) { // javadoc String operation = method.jql.operationType.toString(); methodBuilder.addJavadoc("<h1>Content provider URI ($L operation):</h1>\n", operation); methodBuilder.addJavadoc("<pre>$L</...
class class_name[name] begin[{] method[generateJavaDocForContentProvider, return_type[void], modifier[public static], parameter[method, methodBuilder]] begin[{] local_variable[type[String], operation] call[methodBuilder.addJavadoc, parameter[literal["<h1>Content provider URI ($L operati...
Keyword[public] Keyword[static] Keyword[void] identifier[generateJavaDocForContentProvider] operator[SEP] Keyword[final] identifier[SQLiteModelMethod] identifier[method] , identifier[MethodSpec] operator[SEP] identifier[Builder] identifier[methodBuilder] operator[SEP] { identifier[String] identifier[operation] ...
public HashSet<String> getDataById(String id) throws IOException { if (idToVersion.containsKey(id)) { return get(id); } else { return null; } }
class class_name[name] begin[{] method[getDataById, return_type[type[HashSet]], modifier[public], parameter[id]] begin[{] if[call[idToVersion.containsKey, parameter[member[.id]]]] begin[{] return[call[.get, parameter[member[.id]]]] else begin[{] return[literal[nu...
Keyword[public] identifier[HashSet] operator[<] identifier[String] operator[>] identifier[getDataById] operator[SEP] identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[idToVersion] operator[SEP] identifier[containsKey] operator[SEP] iden...
public static <K, V> CompletableFuture<StatefulRedisMasterReplicaConnection<K, V>> connectAsync(RedisClient redisClient, RedisCodec<K, V> codec, RedisURI redisURI) { return MasterSlave.connectAsync(redisClient, codec, redisURI).thenApply(MasterReplicaConnectionWrapper::new); }
class class_name[name] begin[{] method[connectAsync, return_type[type[CompletableFuture]], modifier[public static], parameter[redisClient, codec, redisURI]] begin[{] return[call[MasterSlave.connectAsync, parameter[member[.redisClient], member[.codec], member[.redisURI]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[CompletableFuture] operator[<] identifier[StatefulRedisMasterReplicaConnection] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[connectAsync] operator[SEP] identifier[RedisClient] identifier[r...
@Override public AssociateClientVpnTargetNetworkResult associateClientVpnTargetNetwork(AssociateClientVpnTargetNetworkRequest request) { request = beforeClientExecution(request); return executeAssociateClientVpnTargetNetwork(request); }
class class_name[name] begin[{] method[associateClientVpnTargetNetwork, return_type[type[AssociateClientVpnTargetNetworkResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeAssoci...
annotation[@] identifier[Override] Keyword[public] identifier[AssociateClientVpnTargetNetworkResult] identifier[associateClientVpnTargetNetwork] operator[SEP] identifier[AssociateClientVpnTargetNetworkRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] o...
public boolean compareAndSet(long encoded, int hi, int lo) { long update = encode(hi, lo); return compareAndSet(encoded, update); }
class class_name[name] begin[{] method[compareAndSet, return_type[type[boolean]], modifier[public], parameter[encoded, hi, lo]] begin[{] local_variable[type[long], update] return[call[.compareAndSet, parameter[member[.encoded], member[.update]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[compareAndSet] operator[SEP] Keyword[long] identifier[encoded] , Keyword[int] identifier[hi] , Keyword[int] identifier[lo] operator[SEP] { Keyword[long] identifier[update] operator[=] identifier[encode] operator[SEP] identifier[hi] , identifier[lo] operator[SEP] ope...
protected final void notifyStopped() { monitor.enter(); try { // We check the internal state of the snapshot instead of state() directly so we don't allow // notifyStopped() to be called while STARTING, even if stop() has already been called. State previous = snapshot.state; if (previous...
class class_name[name] begin[{] method[notifyStopped, return_type[void], modifier[final protected], parameter[]] begin[{] call[monitor.enter, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberRefere...
Keyword[protected] Keyword[final] Keyword[void] identifier[notifyStopped] operator[SEP] operator[SEP] { identifier[monitor] operator[SEP] identifier[enter] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[State] identifier[previous] operator[=] identifier[snapshot] operator[SEP] ide...
public int available() throws IOException { if (in == null) throw new XZIOException("Stream closed"); if (exception != null) throw exception; return isLZMAChunk ? uncompressedSize : Math.min(uncompressedSize, in.available()); }
class class_name[name] begin[{] method[available, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.in], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, se...
Keyword[public] Keyword[int] identifier[available] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[in] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[XZIOException] operator[SEP] literal[String] operator[SEP] operator[SEP] ...
public static DbEntityColumnDescriptor resolveColumnDescriptors( final DbEntityDescriptor dbEntityDescriptor, final PropertyDescriptor property, final boolean isAnnotated, final ColumnNamingStrategy columnNamingStrategy) { String columnName = null; boolean isId = false; Class<? extends SqlType> sqlTypeCl...
class class_name[name] begin[{] method[resolveColumnDescriptors, return_type[type[DbEntityColumnDescriptor]], modifier[public static], parameter[dbEntityDescriptor, property, isAnnotated, columnNamingStrategy]] begin[{] local_variable[type[String], columnName] local_variable[type[boolean], isId...
Keyword[public] Keyword[static] identifier[DbEntityColumnDescriptor] identifier[resolveColumnDescriptors] operator[SEP] Keyword[final] identifier[DbEntityDescriptor] identifier[dbEntityDescriptor] , Keyword[final] identifier[PropertyDescriptor] identifier[property] , Keyword[final] Keyword[boolean] identifier[isAnnot...
@SuppressWarnings("unchecked") @Override public EList<Double> getSelfWeightCoefficients() { return (EList<Double>) eGet(Ifc4Package.Literals.IFC_STRUCTURAL_LOAD_CASE__SELF_WEIGHT_COEFFICIENTS, true); }
class class_name[name] begin[{] method[getSelfWeightCoefficients, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_STRUCTURAL_LOAD_CASE__SELF_WEIGHT_COEFFICIENTS, postfix_operators=[], prefix_operators=[], qu...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[Double] operator[>] identifier[getSelfWeightCoefficients] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList...
public Observable<Page<IotHubQuotaMetricInfoInner>> getQuotaMetricsNextAsync(final String nextPageLink) { return getQuotaMetricsNextWithServiceResponseAsync(nextPageLink) .map(new Func1<ServiceResponse<Page<IotHubQuotaMetricInfoInner>>, Page<IotHubQuotaMetricInfoInner>>() { @Override...
class class_name[name] begin[{] method[getQuotaMetricsNextAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.getQuotaMetricsNextWithServiceResponseAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[IotHubQuotaMetricInfoInner] operator[>] operator[>] identifier[getQuotaMetricsNextAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[getQuotaMetricsNe...
@Override public final void setHorizontalAlignment(int alignment) { if ((alignment == LEFT) || (alignment == CENTER) || (alignment == RIGHT)) { this.alignment = alignment; reajustTextGap(); } else { throw new IllegalArgumentException(); } }
class class_name[name] begin[{] method[setHorizontalAlignment, return_type[void], modifier[final public], parameter[alignment]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.alignment], ==, member[.LEFT]], ||, binary_operation[member[.alignment], ==, member[.CENTER]]], ...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[setHorizontalAlignment] operator[SEP] Keyword[int] identifier[alignment] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[alignment] operator[==] identifier[LEFT] operator[SEP] operator[||] operator[SEP] ...
public Response post(String endpoint, Request params, File file) { return call(Method.POST, endpoint, params, file); }
class class_name[name] begin[{] method[post, return_type[type[Response]], modifier[public], parameter[endpoint, params, file]] begin[{] return[call[.call, parameter[member[Method.POST], member[.endpoint], member[.params], member[.file]]]] end[}] END[}]
Keyword[public] identifier[Response] identifier[post] operator[SEP] identifier[String] identifier[endpoint] , identifier[Request] identifier[params] , identifier[File] identifier[file] operator[SEP] { Keyword[return] identifier[call] operator[SEP] identifier[Method] operator[SEP] identifier[POST] , identifier...
@SuppressWarnings("unchecked") public static <T> T deserialize(final byte[] data) { if (data == null) { return null; } try (final ByteArrayInputStream bais = new ByteArrayInputStream(data)) { final ObjectInputStream in = new ObjectInputStream(bais); ...
class class_name[name] begin[{] method[deserialize, return_type[type[T]], modifier[public static], parameter[data]] begin[{] if[binary_operation[member[.data], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] TryStatement(block=[Lo...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[deserialize] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[if] op...
@Override public boolean deleteAllMissingExternal() { boolean deleted = false; List<GeoPackageMetadata> externalGeoPackages = getExternalGeoPackages(); for (GeoPackageMetadata external : externalGeoPackages) { if (!new File(external.getExternalPath()).exists()) { ...
class class_name[name] begin[{] method[deleteAllMissingExternal, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], deleted] local_variable[type[List], externalGeoPackages] ForStatement(body=BlockStatement(label=None, statements=[IfStatemen...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[deleteAllMissingExternal] operator[SEP] operator[SEP] { Keyword[boolean] identifier[deleted] operator[=] literal[boolean] operator[SEP] identifier[List] operator[<] identifier[GeoPackageMetadata] operator[>] identifier[externalGeoPack...
@Override protected UserProfile extractUserProfile(final String body) { GlobusProfile profile = new GlobusProfile(); JsonNode json = JsonHelper.getFirstNode(body); if (json != null) { String username = JsonHelper.get(json, GlobusAttributesDefinition.USERNAME).toString(); ...
class class_name[name] begin[{] method[extractUserProfile, return_type[type[UserProfile]], modifier[protected], parameter[body]] begin[{] local_variable[type[GlobusProfile], profile] local_variable[type[JsonNode], json] if[binary_operation[member[.json], !=, literal[null]]] begi...
annotation[@] identifier[Override] Keyword[protected] identifier[UserProfile] identifier[extractUserProfile] operator[SEP] Keyword[final] identifier[String] identifier[body] operator[SEP] { identifier[GlobusProfile] identifier[profile] operator[=] Keyword[new] identifier[GlobusProfile] operator[SEP] operator[SEP...
public void setDependsOn(java.util.Collection<ContainerDependency> dependsOn) { if (dependsOn == null) { this.dependsOn = null; return; } this.dependsOn = new com.amazonaws.internal.SdkInternalList<ContainerDependency>(dependsOn); }
class class_name[name] begin[{] method[setDependsOn, return_type[void], modifier[public], parameter[dependsOn]] begin[{] if[binary_operation[member[.dependsOn], ==, literal[null]]] begin[{] assign[THIS[member[None.dependsOn]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setDependsOn] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ContainerDependency] operator[>] identifier[dependsOn] operator[SEP] { Keyword[if] operator[SEP] identifier[dependsOn] operator[==] Othe...
public static BundleContext getBundleContext( final Bundle bundle ) { try { // first try to find the getBundleContext method (OSGi spec >= 4.10) final Method method = Bundle.class.getDeclaredMethod( "getBundleContext" ); if( !method.isAccessible() ) { ...
class class_name[name] begin[{] method[getBundleContext, return_type[type[BundleContext]], modifier[public static], parameter[bundle]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassReference(postfix_operators=[], pr...
Keyword[public] Keyword[static] identifier[BundleContext] identifier[getBundleContext] operator[SEP] Keyword[final] identifier[Bundle] identifier[bundle] operator[SEP] { Keyword[try] { Keyword[final] identifier[Method] identifier[method] operator[=] identifier[Bundle] operator[SEP] Keyword[class] oper...
public void playTogether(Animator... items) { if (items != null) { mNeedsSort = true; Builder builder = play(items[0]); for (int i = 1; i < items.length; ++i) { builder.with(items[i]); } } }
class class_name[name] begin[{] method[playTogether, return_type[void], modifier[public], parameter[items]] begin[{] if[binary_operation[member[.items], !=, literal[null]]] begin[{] assign[member[.mNeedsSort], literal[true]] local_variable[type[Builder], buil...
Keyword[public] Keyword[void] identifier[playTogether] operator[SEP] identifier[Animator] operator[...] identifier[items] operator[SEP] { Keyword[if] operator[SEP] identifier[items] operator[!=] Other[null] operator[SEP] { identifier[mNeedsSort] operator[=] literal[boolean] operator[SEP] identifier[Bu...
public static <K, V> UnifiedSetMultimap<V, K> flip(SetMultimap<K, V> setMultimap) { final UnifiedSetMultimap<V, K> result = new UnifiedSetMultimap<V, K>(); setMultimap.forEachKeyMultiValues(new Procedure2<K, Iterable<V>>() { public void value(final K key, Iterable<V> values) ...
class class_name[name] begin[{] method[flip, return_type[type[UnifiedSetMultimap]], modifier[public static], parameter[setMultimap]] begin[{] local_variable[type[UnifiedSetMultimap], result] call[setMultimap.forEachKeyMultiValues, parameter[ClassCreator(arguments=[], body=[MethodDeclara...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[UnifiedSetMultimap] operator[<] identifier[V] , identifier[K] operator[>] identifier[flip] operator[SEP] identifier[SetMultimap] operator[<] identifier[K] , identifier[V] operator[>] identifier[setMultimap] operator[SEP]...
private void processFailedReceivedDeleted(long[] failedMap, Block[] sent) { synchronized (receivedAndDeletedBlockList) { // Blocks that do not belong to an Inode are saved for // retransmisions for (int i = sent.length - 1 ; i >= 0; i--) { if(!LightWeightBitSet.get(failedMap, i)){ ...
class class_name[name] begin[{] method[processFailedReceivedDeleted, return_type[void], modifier[private], parameter[failedMap, sent]] begin[{] SYNCHRONIZED[member[.receivedAndDeletedBlockList]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=...
Keyword[private] Keyword[void] identifier[processFailedReceivedDeleted] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[failedMap] , identifier[Block] operator[SEP] operator[SEP] identifier[sent] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[receivedAndDeletedBlockList] opera...
public <T> HttpClientRequest.Builder<T> perform(final String methodName, final URI uri, final HttpClientResponseHandler<T> httpHandler) { final HttpClientMethod method; try { method = HttpClientMethod.valueOf(methodName.toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException ...
class class_name[name] begin[{] method[perform, return_type[type[HttpClientRequest]], modifier[public], parameter[methodName, uri, httpHandler]] begin[{] local_variable[type[HttpClientMethod], method] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(memb...
Keyword[public] operator[<] identifier[T] operator[>] identifier[HttpClientRequest] operator[SEP] identifier[Builder] operator[<] identifier[T] operator[>] identifier[perform] operator[SEP] Keyword[final] identifier[String] identifier[methodName] , Keyword[final] identifier[URI] identifier[uri] , Keyword[final] ident...
public Object evaluate(Element m, TaskRequest req) { // Assertions. if (m == null) { String msg = "Argument 'm [Element]' cannot be null."; throw new IllegalArgumentException(msg); } return evaluate(compileTask(m), req); }
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[public], parameter[m, req]] begin[{] if[binary_operation[member[.m], ==, literal[null]]] begin[{] local_variable[type[String], msg] ThrowStatement(expression=ClassCreator(arguments=[Memb...
Keyword[public] identifier[Object] identifier[evaluate] operator[SEP] identifier[Element] identifier[m] , identifier[TaskRequest] identifier[req] operator[SEP] { Keyword[if] operator[SEP] identifier[m] operator[==] Other[null] operator[SEP] { identifier[String] identifier[msg] operator[=] literal[Str...
protected ModuleConfig getModuleConfig( String modulePath, ServletRequest request, ServletResponse response ) throws IOException, ServletException { return ensureModuleRegistered(modulePath); }
class class_name[name] begin[{] method[getModuleConfig, return_type[type[ModuleConfig]], modifier[protected], parameter[modulePath, request, response]] begin[{] return[call[.ensureModuleRegistered, parameter[member[.modulePath]]]] end[}] END[}]
Keyword[protected] identifier[ModuleConfig] identifier[getModuleConfig] operator[SEP] identifier[String] identifier[modulePath] , identifier[ServletRequest] identifier[request] , identifier[ServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] { ...
private void update(int index) { int delta = receivedIndex - index; /* update the replay bit mask */ if (delta > 0) { replayWindow = replayWindow << delta; replayWindow |= 1; } else { replayWindow |= ( 1 << delt...
class class_name[name] begin[{] method[update, return_type[void], modifier[private], parameter[index]] begin[{] local_variable[type[int], delta] if[binary_operation[member[.delta], >, literal[0]]] begin[{] assign[member[.replayWindow], binary_operation[member[.re...
Keyword[private] Keyword[void] identifier[update] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[int] identifier[delta] operator[=] identifier[receivedIndex] operator[-] identifier[index] operator[SEP] Keyword[if] operator[SEP] identifier[delta] operator[>] Other[0] operator[SEP] { ...
@Override public void setState(MotorState state) { switch(state) { case STOP: { // set internal tracking state currentState = MotorState.STOP; // turn all GPIO pins to OFF state for(GpioPinDigitalOutput pin : pins) ...
class class_name[name] begin[{] method[setState, return_type[void], modifier[public], parameter[state]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['STOP'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=curr...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setState] operator[SEP] identifier[MotorState] identifier[state] operator[SEP] { Keyword[switch] operator[SEP] identifier[state] operator[SEP] { Keyword[case] identifier[STOP] operator[:] { identifier[currentSt...
private Mono<String> getTokenFromUri(String uri) { URL url = null; try { url = new URL(uri); } catch (MalformedURLException e) { return Mono.error(e); } String host = String.format("%s://%s%s/", url.getProtocol(), url.getHost(), url.getPort() > 0 ? ":" + u...
class class_name[name] begin[{] method[getTokenFromUri, return_type[type[Mono]], modifier[private], parameter[uri]] begin[{] local_variable[type[URL], url] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=url, postfix_operators=[], prefix_operator...
Keyword[private] identifier[Mono] operator[<] identifier[String] operator[>] identifier[getTokenFromUri] operator[SEP] identifier[String] identifier[uri] operator[SEP] { identifier[URL] identifier[url] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[url] operator[=] Keyword[new] identi...
private final static void traverse(Element element, ElementVisitor visitor) { visitor.visit(element); NodeList children = element.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node node = children.item(i); if (node.getNodeType() != Node.ELEMENT_NODE) continue; traverse((Eleme...
class class_name[name] begin[{] method[traverse, return_type[void], modifier[final private static], parameter[element, visitor]] begin[{] call[visitor.visit, parameter[member[.element]]] local_variable[type[NodeList], children] ForStatement(body=BlockStatement(label=None, statem...
Keyword[private] Keyword[final] Keyword[static] Keyword[void] identifier[traverse] operator[SEP] identifier[Element] identifier[element] , identifier[ElementVisitor] identifier[visitor] operator[SEP] { identifier[visitor] operator[SEP] identifier[visit] operator[SEP] identifier[element] operator[SEP] operator[S...
public static void writeInt(int num, ByteBuffer buf) { if(num == 0) { buf.put((byte)0); return; } final byte bytes_needed=bytesRequiredFor(num); buf.put(bytes_needed); for(int i=0; i < bytes_needed; i++) buf.put(getByteAt(num, i)); }
class class_name[name] begin[{] method[writeInt, return_type[void], modifier[public static], parameter[num, buf]] begin[{] if[binary_operation[member[.num], ==, literal[0]]] begin[{] call[buf.put, parameter[Cast(expression=Literal(postfix_operators=[], prefix_operators=[...
Keyword[public] Keyword[static] Keyword[void] identifier[writeInt] operator[SEP] Keyword[int] identifier[num] , identifier[ByteBuffer] identifier[buf] operator[SEP] { Keyword[if] operator[SEP] identifier[num] operator[==] Other[0] operator[SEP] { identifier[buf] operator[SEP] identifier[put] operator...
protected Object getInjectionObjectInstance(Object targetObject, InjectionTargetContext targetContext) throws Exception { ObjectFactory objectFactory = ivObjectFactory; // volatile-read InjectionObjectFactory injObjFactory = ivInjec...
class class_name[name] begin[{] method[getInjectionObjectInstance, return_type[type[Object]], modifier[protected], parameter[targetObject, targetContext]] begin[{] local_variable[type[ObjectFactory], objectFactory] local_variable[type[InjectionObjectFactory], injObjFactory] if[b...
Keyword[protected] identifier[Object] identifier[getInjectionObjectInstance] operator[SEP] identifier[Object] identifier[targetObject] , identifier[InjectionTargetContext] identifier[targetContext] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ObjectFactory] identifier[objectFactory] operator...
public static void notifyRequestListener(Http2SourceHandler http2SourceHandler, HttpCarbonMessage httpRequestMsg, int streamId) { if (http2SourceHandler.getServerConnectorFuture() != null) { try { ServerConnectorFuture outboundRespFuture =...
class class_name[name] begin[{] method[notifyRequestListener, return_type[void], modifier[public static], parameter[http2SourceHandler, httpRequestMsg, streamId]] begin[{] if[binary_operation[call[http2SourceHandler.getServerConnectorFuture, parameter[]], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[notifyRequestListener] operator[SEP] identifier[Http2SourceHandler] identifier[http2SourceHandler] , identifier[HttpCarbonMessage] identifier[httpRequestMsg] , Keyword[int] identifier[streamId] operator[SEP] { Keyword[if] operator[SEP] identifier[http2So...
public SnapshotRecord readSnapshotRecord() throws IOException, ClassNotFoundException { byte[] key = DataSerializer.readByteArray(dis); if (key == null) { return null; } byte[] value = DataSerializer.readByteArray(dis); return new SnapshotRecord(key, value); }
class class_name[name] begin[{] method[readSnapshotRecord, return_type[type[SnapshotRecord]], modifier[public], parameter[]] begin[{] local_variable[type[byte], key] if[binary_operation[member[.key], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] No...
Keyword[public] identifier[SnapshotRecord] identifier[readSnapshotRecord] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[=] identifier[DataSerializer] operator[SEP] identifier[readByteA...
@Override public DeleteBaiduChannelResult deleteBaiduChannel(DeleteBaiduChannelRequest request) { request = beforeClientExecution(request); return executeDeleteBaiduChannel(request); }
class class_name[name] begin[{] method[deleteBaiduChannel, return_type[type[DeleteBaiduChannelResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteBaiduChannel, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[DeleteBaiduChannelResult] identifier[deleteBaiduChannel] operator[SEP] identifier[DeleteBaiduChannelRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public final void alarm(Object obj) { if (messagingEngine != null) SibTr.push(messagingEngine); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "alarm"); int indexUsed = 0; long streamsLoaded = 0; long startTime = 0; String str...
class class_name[name] begin[{] method[alarm, return_type[void], modifier[final public], parameter[obj]] begin[{] if[binary_operation[member[.messagingEngine], !=, literal[null]]] begin[{] call[SibTr.push, parameter[member[.messagingEngine]]] else begin[{] None end[}...
Keyword[public] Keyword[final] Keyword[void] identifier[alarm] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[messagingEngine] operator[!=] Other[null] operator[SEP] identifier[SibTr] operator[SEP] identifier[push] operator[SEP] identifier[messagingEngine] o...
public final B serverAddresses(Iterable<InetSocketAddress> serverAddresses) { requireNonNull(serverAddresses, "serverAddresses"); final DnsServerAddresses addrs = DnsServerAddresses.sequential(serverAddresses); serverAddressStreamProvider = hostname -> addrs.stream(); return self(); ...
class class_name[name] begin[{] method[serverAddresses, return_type[type[B]], modifier[final public], parameter[serverAddresses]] begin[{] call[.requireNonNull, parameter[member[.serverAddresses], literal["serverAddresses"]]] local_variable[type[DnsServerAddresses], addrs] ...
Keyword[public] Keyword[final] identifier[B] identifier[serverAddresses] operator[SEP] identifier[Iterable] operator[<] identifier[InetSocketAddress] operator[>] identifier[serverAddresses] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[serverAddresses] , literal[String] operator[SEP] opera...
private void sortPrimitiveList(EList<IdEObject> list) { ECollections.sort(list, new Comparator<IdEObject>() { @Override public int compare(IdEObject o1, IdEObject o2) { return comparePrimitives(o1, o2); } }); }
class class_name[name] begin[{] method[sortPrimitiveList, return_type[void], modifier[private], parameter[list]] begin[{] call[ECollections.sort, parameter[member[.list], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatem...
Keyword[private] Keyword[void] identifier[sortPrimitiveList] operator[SEP] identifier[EList] operator[<] identifier[IdEObject] operator[>] identifier[list] operator[SEP] { identifier[ECollections] operator[SEP] identifier[sort] operator[SEP] identifier[list] , Keyword[new] identifier[Comparator] operator[<] ide...
public static void appendImage(String imagePath, int pictureType, int width, int height, ParagraphAlignment alignment) throws IOException, InvalidFormatException { appendImage(getNewRun(alignment), imagePath, pictureType, width, height); }
class class_name[name] begin[{] method[appendImage, return_type[void], modifier[public static], parameter[imagePath, pictureType, width, height, alignment]] begin[{] call[.appendImage, parameter[call[.getNewRun, parameter[member[.alignment]]], member[.imagePath], member[.pictureType], member[.w...
Keyword[public] Keyword[static] Keyword[void] identifier[appendImage] operator[SEP] identifier[String] identifier[imagePath] , Keyword[int] identifier[pictureType] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[ParagraphAlignment] identifier[alignment] operator[SEP] Keyword[throws] ...
static public ArrayDouble.D2 makeXEdgesRotated(ArrayDouble.D2 midx) { int[] shape = midx.getShape(); int ny = shape[0]; int nx = shape[1]; ArrayDouble.D2 edgex = new ArrayDouble.D2(ny + 2, nx + 1); // compute the interior rows for (int y = 0; y < ny; y++) { for (int x = 1; x < nx;...
class class_name[name] begin[{] method[makeXEdgesRotated, return_type[type[ArrayDouble]], modifier[public static], parameter[midx]] begin[{] local_variable[type[int], shape] local_variable[type[int], ny] local_variable[type[int], nx] local_variable[type[ArrayDouble], edgex] ...
Keyword[static] Keyword[public] identifier[ArrayDouble] operator[SEP] identifier[D2] identifier[makeXEdgesRotated] operator[SEP] identifier[ArrayDouble] operator[SEP] identifier[D2] identifier[midx] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[shape] operator[=] identifier[midx] operator[S...
public String getValue(int i) { if (i < 0 || i >= values.size()) { return null; } return values.get(i); }
class class_name[name] begin[{] method[getValue, return_type[type[String]], modifier[public], parameter[i]] begin[{] if[binary_operation[binary_operation[member[.i], <, literal[0]], ||, binary_operation[member[.i], >=, call[values.size, parameter[]]]]] begin[{] return[literal[null]]...
Keyword[public] identifier[String] identifier[getValue] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[<] Other[0] operator[||] identifier[i] operator[>=] identifier[values] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] { ...
public static int[] join(int[] arr, int... is) { if (null == arr) return is; int length = arr.length + is.length; int[] re = new int[length]; System.arraycopy(arr, 0, re, 0, arr.length); int i = arr.length; for (int num : is) re[i++] = num;...
class class_name[name] begin[{] method[join, return_type[type[int]], modifier[public static], parameter[arr, is]] begin[{] if[binary_operation[literal[null], ==, member[.arr]]] begin[{] return[member[.is]] else begin[{] None end[}] local_variable[type[int], length] ...
Keyword[public] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[join] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[arr] , Keyword[int] operator[...] identifier[is] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[arr] operator[SEP] Keyword[re...
public void callback(int reason, String msg, int datatype, StringBuilder retData) { try { String st; switch (reason) { case NEED_PASSPHRASE_LOAD: case NEED_PASSPHRASE_SAVE: getOutStream().print(msg + ": "); getOutS...
class class_name[name] begin[{] method[callback, return_type[void], modifier[public], parameter[reason, msg, datatype, retData]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=st)], modifiers=set(), type=Refere...
Keyword[public] Keyword[void] identifier[callback] operator[SEP] Keyword[int] identifier[reason] , identifier[String] identifier[msg] , Keyword[int] identifier[datatype] , identifier[StringBuilder] identifier[retData] operator[SEP] { Keyword[try] { identifier[String] identifier[st] operator[SEP] Ke...
@Nullable @Deprecated public static <T extends Annotation> T getAnnotation(Tree tree, Class<T> annotationClass) { Symbol sym = getSymbol(tree); return sym == null ? null : getAnnotation(sym, annotationClass); }
class class_name[name] begin[{] method[getAnnotation, return_type[type[T]], modifier[public static], parameter[tree, annotationClass]] begin[{] local_variable[type[Symbol], sym] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=sym, postfix_operators=[], prefix_...
annotation[@] identifier[Nullable] annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Annotation] operator[>] identifier[T] identifier[getAnnotation] operator[SEP] identifier[Tree] identifier[tree] , identifier[Class] operator[<] identifier[T] ope...
public static SortField buildSortField(Map<String, Object> conf) { final String field = Optional.ofNullable((String) conf.get("field")).orElse(null); final String type = Optional.ofNullable(((String) conf.get("type")).toUpperCase()).orElse(SortField.Type.STRING.name()); final Boolean reverse = Optional.ofN...
class class_name[name] begin[{] method[buildSortField, return_type[type[SortField]], modifier[public static], parameter[conf]] begin[{] local_variable[type[String], field] local_variable[type[String], type] local_variable[type[Boolean], reverse] local_variable[type[SortField], s...
Keyword[public] Keyword[static] identifier[SortField] identifier[buildSortField] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[conf] operator[SEP] { Keyword[final] identifier[String] identifier[field] operator[=] identifier[Optional] operator[SEP] ident...
public EpollServerSocketChannelConfig setIpTransparent(boolean transparent) { try { ((EpollServerSocketChannel) channel).socket.setIpTransparent(transparent); return this; } catch (IOException e) { throw new ChannelException(e); } }
class class_name[name] begin[{] method[setIpTransparent, return_type[type[EpollServerSocketChannelConfig]], modifier[public], parameter[transparent]] begin[{] TryStatement(block=[StatementExpression(expression=Cast(expression=MemberReference(member=channel, postfix_operators=[], prefix_operators=[], qu...
Keyword[public] identifier[EpollServerSocketChannelConfig] identifier[setIpTransparent] operator[SEP] Keyword[boolean] identifier[transparent] operator[SEP] { Keyword[try] { operator[SEP] operator[SEP] identifier[EpollServerSocketChannel] operator[SEP] identifier[channel] operator[SEP] operator[SEP] i...
public static <T> XmlParser<T> xmlParser( Class<T> root ) { return new XmlParser<>( root, NodeBuilder.tree( root ) ); }
class class_name[name] begin[{] method[xmlParser, return_type[type[XmlParser]], modifier[public static], parameter[root]] begin[{] return[ClassCreator(arguments=[MemberReference(member=root, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReferenc...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[XmlParser] operator[<] identifier[T] operator[>] identifier[xmlParser] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[root] operator[SEP] { Keyword[return] Keyword[new] identifier[XmlParser] operato...
public static String getText(String key, ResourceBundle bundle, Object... arguments) { try { String value = bundle.getString(key); return MessageFormat.format(value, arguments); } catch (MissingResourceException ex) { return key; } }
class class_name[name] begin[{] method[getText, return_type[type[String]], modifier[public static], parameter[key, bundle, arguments]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRefer...
Keyword[public] Keyword[static] identifier[String] identifier[getText] operator[SEP] identifier[String] identifier[key] , identifier[ResourceBundle] identifier[bundle] , identifier[Object] operator[...] identifier[arguments] operator[SEP] { Keyword[try] { identifier[String] identifier[value] operato...
public VoiceMessageResponse sendVoiceMessage(final String body, final List<BigInteger> recipients) throws UnauthorizedException, GeneralException { final VoiceMessage message = new VoiceMessage(body, recipients); return messageBirdService.sendPayLoad(VOICEMESSAGESPATH, message, VoiceMessageResponse.clas...
class class_name[name] begin[{] method[sendVoiceMessage, return_type[type[VoiceMessageResponse]], modifier[public], parameter[body, recipients]] begin[{] local_variable[type[VoiceMessage], message] return[call[messageBirdService.sendPayLoad, parameter[member[.VOICEMESSAGESPATH], member[.message...
Keyword[public] identifier[VoiceMessageResponse] identifier[sendVoiceMessage] operator[SEP] Keyword[final] identifier[String] identifier[body] , Keyword[final] identifier[List] operator[<] identifier[BigInteger] operator[>] identifier[recipients] operator[SEP] Keyword[throws] identifier[UnauthorizedException] , ident...
private static StringBuffer doAppendClosingTag(StringBuffer buffer, String tag) { buffer.append(SEQUENCE__TAG__BEGIN_CLOSING_TAG).append(tag).append(SEQUENCE__TAG__END_OF_TAG); return buffer; }
class class_name[name] begin[{] method[doAppendClosingTag, return_type[type[StringBuffer]], modifier[private static], parameter[buffer, tag]] begin[{] call[buffer.append, parameter[member[.SEQUENCE__TAG__BEGIN_CLOSING_TAG]]] return[member[.buffer]] end[}] END[}]
Keyword[private] Keyword[static] identifier[StringBuffer] identifier[doAppendClosingTag] operator[SEP] identifier[StringBuffer] identifier[buffer] , identifier[String] identifier[tag] operator[SEP] { identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[SEQUENCE__TAG__BEGIN_CLOSING_TAG] o...
protected boolean mergeEventsToLastBatch() throws IOException { // Checks if we can merge _batch into _lastBatch if(_lastBatch != null && _eventBatchSize >= (_lastBatch.getSize() + _batch.getSize())) { _batch.setCompletionTime(System.currentTimeMillis()); if(_flushLi...
class class_name[name] begin[{] method[mergeEventsToLastBatch, return_type[type[boolean]], modifier[protected], parameter[]] begin[{] if[binary_operation[binary_operation[member[._lastBatch], !=, literal[null]], &&, binary_operation[member[._eventBatchSize], >=, binary_operation[call[_lastBatch...
Keyword[protected] Keyword[boolean] identifier[mergeEventsToLastBatch] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[_lastBatch] operator[!=] Other[null] operator[&&] identifier[_eventBatchSize] operator[>=] operator[SEP] identifier[_lastBatch] operato...
public List<SAXParseException> validate(File file) { return validate(file, CycloneDxSchema.Version.VERSION_11); }
class class_name[name] begin[{] method[validate, return_type[type[List]], modifier[public], parameter[file]] begin[{] return[call[.validate, parameter[member[.file], member[CycloneDxSchema.Version.VERSION_11]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[SAXParseException] operator[>] identifier[validate] operator[SEP] identifier[File] identifier[file] operator[SEP] { Keyword[return] identifier[validate] operator[SEP] identifier[file] , identifier[CycloneDxSchema] operator[SEP] identifier[Version] operator...
public void writePackage(OutputStream output, String group, String name, String version) throws IOException, RepositoryException { String root = "jcr_root"; ZipOutputStream zipStream = new ZipOutputStream(output); writeProperties(zipStream, group, name, version); writeFilter...
class class_name[name] begin[{] method[writePackage, return_type[void], modifier[public], parameter[output, group, name, version]] begin[{] local_variable[type[String], root] local_variable[type[ZipOutputStream], zipStream] call[.writeProperties, parameter[member[.zipStream], me...
Keyword[public] Keyword[void] identifier[writePackage] operator[SEP] identifier[OutputStream] identifier[output] , identifier[String] identifier[group] , identifier[String] identifier[name] , identifier[String] identifier[version] operator[SEP] Keyword[throws] identifier[IOException] , identifier[RepositoryExceptio...
public static BulkheadExports ofBulkhead(String prefix, Bulkhead bulkhead) { return new BulkheadExports(prefix, Array.of(bulkhead)); }
class class_name[name] begin[{] method[ofBulkhead, return_type[type[BulkheadExports]], modifier[public static], parameter[prefix, bulkhead]] begin[{] return[ClassCreator(arguments=[MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(argu...
Keyword[public] Keyword[static] identifier[BulkheadExports] identifier[ofBulkhead] operator[SEP] identifier[String] identifier[prefix] , identifier[Bulkhead] identifier[bulkhead] operator[SEP] { Keyword[return] Keyword[new] identifier[BulkheadExports] operator[SEP] identifier[prefix] , identifier[Array] operat...
public void formatAndRestartMasters() throws Exception { stopMasters(); Format.format(Format.Mode.MASTER, ServerConfiguration.global()); startMasters(); }
class class_name[name] begin[{] method[formatAndRestartMasters, return_type[void], modifier[public], parameter[]] begin[{] call[.stopMasters, parameter[]] call[Format.format, parameter[member[Format.Mode.MASTER], call[ServerConfiguration.global, parameter[]]]] ca...
Keyword[public] Keyword[void] identifier[formatAndRestartMasters] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[stopMasters] operator[SEP] operator[SEP] operator[SEP] identifier[Format] operator[SEP] identifier[format] operator[SEP] identifier[Format] operator[SEP] identifier[Mod...