code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private HttpResponse executeUploadInitiation(GenericUrl initiationRequestUrl) throws IOException { updateStateAndNotifyListener(UploadState.INITIATION_STARTED); initiationRequestUrl.put("uploadType", "resumable"); HttpContent content = metadata == null ? new EmptyContent() : metadata; HttpRequest reque...
class class_name[name] begin[{] method[executeUploadInitiation, return_type[type[HttpResponse]], modifier[private], parameter[initiationRequestUrl]] begin[{] call[.updateStateAndNotifyListener, parameter[member[UploadState.INITIATION_STARTED]]] call[initiationRequestUrl.put, par...
Keyword[private] identifier[HttpResponse] identifier[executeUploadInitiation] operator[SEP] identifier[GenericUrl] identifier[initiationRequestUrl] operator[SEP] Keyword[throws] identifier[IOException] { identifier[updateStateAndNotifyListener] operator[SEP] identifier[UploadState] operator[SEP] identifier[INITI...
private Optional<String> get(String key, Set<String> processingKeys) { for (ConfigurationSource configurationSource : config.getConfigurationSources()) { Optional<String> value = configurationSource.get(key); if (value.isPresent()) { return Optional.of(interpolateStri...
class class_name[name] begin[{] method[get, return_type[type[Optional]], modifier[private], parameter[key, processingKeys]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocat...
Keyword[private] identifier[Optional] operator[<] identifier[String] operator[>] identifier[get] operator[SEP] identifier[String] identifier[key] , identifier[Set] operator[<] identifier[String] operator[>] identifier[processingKeys] operator[SEP] { Keyword[for] operator[SEP] identifier[ConfigurationSource] ide...
private void recordMount(SlotReference slot) { if (mediaMounts.add(slot)) { deliverMountUpdate(slot, true); } if (!mediaDetails.containsKey(slot)) { try { VirtualCdj.getInstance().sendMediaQuery(slot); } catch (Exception e) { lo...
class class_name[name] begin[{] method[recordMount, return_type[void], modifier[private], parameter[slot]] begin[{] if[call[mediaMounts.add, parameter[member[.slot]]]] begin[{] call[.deliverMountUpdate, parameter[member[.slot], literal[true]]] else begin[{] None ...
Keyword[private] Keyword[void] identifier[recordMount] operator[SEP] identifier[SlotReference] identifier[slot] operator[SEP] { Keyword[if] operator[SEP] identifier[mediaMounts] operator[SEP] identifier[add] operator[SEP] identifier[slot] operator[SEP] operator[SEP] { identifier[deliverMountUpdate] op...
@Override public GetRoomSkillParameterResult getRoomSkillParameter(GetRoomSkillParameterRequest request) { request = beforeClientExecution(request); return executeGetRoomSkillParameter(request); }
class class_name[name] begin[{] method[getRoomSkillParameter, return_type[type[GetRoomSkillParameterResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeGetRoomSkillParameter, par...
annotation[@] identifier[Override] Keyword[public] identifier[GetRoomSkillParameterResult] identifier[getRoomSkillParameter] operator[SEP] identifier[GetRoomSkillParameterRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[reques...
public static AlipayOpenAuthTokenAppQueryResponse openAuthTokenAppQueryToResponse( AlipayOpenAuthTokenAppQueryModel model) throws AlipayApiException { AlipayOpenAuthTokenAppQueryRequest request = new AlipayOpenAuthTokenAppQueryRequest(); request.setBizModel(model); return AliPayApiConfigKit.getAliPayApiConfig(...
class class_name[name] begin[{] method[openAuthTokenAppQueryToResponse, return_type[type[AlipayOpenAuthTokenAppQueryResponse]], modifier[public static], parameter[model]] begin[{] local_variable[type[AlipayOpenAuthTokenAppQueryRequest], request] call[request.setBizModel, parameter[membe...
Keyword[public] Keyword[static] identifier[AlipayOpenAuthTokenAppQueryResponse] identifier[openAuthTokenAppQueryToResponse] operator[SEP] identifier[AlipayOpenAuthTokenAppQueryModel] identifier[model] operator[SEP] Keyword[throws] identifier[AlipayApiException] { identifier[AlipayOpenAuthTokenAppQueryRequest] id...
private int registerBlockInstance() { int blockInstNo = blockInstTabCnt++; if (blockInstTab == null) { blockInstTab = new BlockInstTabRec[64]; } if (blockInstTabCnt > blockInstTab.length) { blockInstTab = (BlockInstTabRec[]) MiniTemplatorParser.resizeArray(b...
class class_name[name] begin[{] method[registerBlockInstance, return_type[type[int]], modifier[private], parameter[]] begin[{] local_variable[type[int], blockInstNo] if[binary_operation[member[.blockInstTab], ==, literal[null]]] begin[{] assign[member[.blockInstT...
Keyword[private] Keyword[int] identifier[registerBlockInstance] operator[SEP] operator[SEP] { Keyword[int] identifier[blockInstNo] operator[=] identifier[blockInstTabCnt] operator[++] operator[SEP] Keyword[if] operator[SEP] identifier[blockInstTab] operator[==] Other[null] operator[SEP] { identifier[b...
void readMeta() { final int check = buffer.getInt(); if(check != MAGIC) { throw new AbortException("File does not start with expected magic."); } final int nummeta = buffer.getInt(); assert (nummeta > 0) : "Empty bundle?"; meta = new BundleMeta(nummeta); sers = new ByteBufferSerializer...
class class_name[name] begin[{] method[readMeta, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[int], check] if[binary_operation[member[.check], !=, member[.MAGIC]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_o...
Keyword[void] identifier[readMeta] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[check] operator[=] identifier[buffer] operator[SEP] identifier[getInt] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[check] operator[!=] identifier[MAGIC] operator[SEP] { ...
public void setTables(final List<Table> tables) { this.tablesMap.clear(); for (final Table table : tables) this.addTableConfig(table.getConfigEntry()); }
class class_name[name] begin[{] method[setTables, return_type[void], modifier[public], parameter[tables]] begin[{] THIS[member[None.tablesMap]call[None.clear, parameter[]]] ForStatement(body=StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, s...
Keyword[public] Keyword[void] identifier[setTables] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Table] operator[>] identifier[tables] operator[SEP] { Keyword[this] operator[SEP] identifier[tablesMap] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[for] o...
public void getNotifications(Patient patient, Collection<Notification> result) { List<String> lst = null; result.clear(); if (patient == null) { lst = broker.callRPCList("RGCWXQ ALRLIST", null); } else if (patient != null) { lst = broker.callRPCList("RGCWXQ ALRLI...
class class_name[name] begin[{] method[getNotifications, return_type[void], modifier[public], parameter[patient, result]] begin[{] local_variable[type[List], lst] call[result.clear, parameter[]] if[binary_operation[member[.patient], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[getNotifications] operator[SEP] identifier[Patient] identifier[patient] , identifier[Collection] operator[<] identifier[Notification] operator[>] identifier[result] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[lst] operator[=] Ot...
@Override public int prepare(Xid xid) throws XAException { if (logger.logDebug()) { debug("preparing transaction xid = " + xid); } // Check preconditions if (!currentXid.equals(xid)) { throw new CloudSpannerXAException(CloudSpannerXAException.PREPARE_WITH_SAME, Code.UNI...
class class_name[name] begin[{] method[prepare, return_type[type[int]], modifier[public], parameter[xid]] begin[{] if[call[logger.logDebug, parameter[]]] begin[{] call[.debug, parameter[binary_operation[literal["preparing transaction xid = "], +, member[.xid]]]] ...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[prepare] operator[SEP] identifier[Xid] identifier[xid] operator[SEP] Keyword[throws] identifier[XAException] { Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[logDebug] operator[SEP] operator[SEP] operator[SEP] { ...
public static <K, V> Map<K, V> asDeepMap(Map<K, V> map) { return from(map).deepLook().map(); }
class class_name[name] begin[{] method[asDeepMap, return_type[type[Map]], modifier[public static], parameter[map]] begin[{] return[call[.from, parameter[member[.map]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[asDeepMap] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[map] operator[SEP] { Keyword[return] ...
public static byte[] decode( byte[] source ){ byte[] decoded = null; try { decoded = decode( source, 0, source.length, Base64.NO_OPTIONS ); } catch( java.io.IOException ex ) { assert false : "IOExceptions only come from GZipping, which is turned off: " + ex.getMessage(); ...
class class_name[name] begin[{] method[decode, return_type[type[byte]], modifier[public static], parameter[source]] begin[{] local_variable[type[byte], decoded] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=decoded, postfix_operators=[], prefix...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decode] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[source] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[decoded] operator[=] Other[null] operator[SEP] Keyword[try] { ide...
public static boolean safeCloseAll(Iterable<? extends Closeable> closeables) { final Iterator<? extends Closeable> it = closeables.iterator(); boolean result = true; while (it.hasNext()) { result &= safeClose(it.next()); } return result; }
class class_name[name] begin[{] method[safeCloseAll, return_type[type[boolean]], modifier[public static], parameter[closeables]] begin[{] local_variable[type[Iterator], it] local_variable[type[boolean], result] while[call[it.hasNext, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[safeCloseAll] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[Closeable] operator[>] identifier[closeables] operator[SEP] { Keyword[final] identifier[Iterator] operator[<] operator[?] Keyword[extends] identifier[Cl...
private ArrayList obtainCandidateList(String[] tTokens, String[] uTokens, double[] tIdfArray, double[] uIdfArray) { ArrayList candidateList = new ArrayList(); double minStringSize = getMinStringSize(tTokens, uTokens); for (int t = 0; t < tTokens.length; t++) { ...
class class_name[name] begin[{] method[obtainCandidateList, return_type[type[ArrayList]], modifier[private], parameter[tTokens, uTokens, tIdfArray, uIdfArray]] begin[{] local_variable[type[ArrayList], candidateList] local_variable[type[double], minStringSize] ForStatement(body=BlockStat...
Keyword[private] identifier[ArrayList] identifier[obtainCandidateList] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[tTokens] , identifier[String] operator[SEP] operator[SEP] identifier[uTokens] , Keyword[double] operator[SEP] operator[SEP] identifier[tIdfArray] , Keyword[double] operator[S...
public static WsByteBuffer allocateByteBuffer(int size, boolean allocateDirect) { WsByteBuffer newBuffer = null; // Allocate based on the input parameter. if (allocateDirect) { newBuffer = ChannelFrameworkFactory.getBufferManager().allocateDirect(size); } else { n...
class class_name[name] begin[{] method[allocateByteBuffer, return_type[type[WsByteBuffer]], modifier[public static], parameter[size, allocateDirect]] begin[{] local_variable[type[WsByteBuffer], newBuffer] if[member[.allocateDirect]] begin[{] assign[member[.newBuf...
Keyword[public] Keyword[static] identifier[WsByteBuffer] identifier[allocateByteBuffer] operator[SEP] Keyword[int] identifier[size] , Keyword[boolean] identifier[allocateDirect] operator[SEP] { identifier[WsByteBuffer] identifier[newBuffer] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identif...
@Override public SendObjectMessage recipients(Iterable<String> recipients) { this.recipients.addAll(Sets.newHashSet(recipients)); return this; }
class class_name[name] begin[{] method[recipients, return_type[type[SendObjectMessage]], modifier[public], parameter[recipients]] begin[{] THIS[member[None.recipients]call[None.addAll, parameter[call[Sets.newHashSet, parameter[member[.recipients]]]]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[SendObjectMessage] identifier[recipients] operator[SEP] identifier[Iterable] operator[<] identifier[String] operator[>] identifier[recipients] operator[SEP] { Keyword[this] operator[SEP] identifier[recipients] operator[SEP] identifier[addAll] operator...
public <T extends RestTemplate> T build(Class<T> restTemplateClass) { return configure(BeanUtils.instantiateClass(restTemplateClass)); }
class class_name[name] begin[{] method[build, return_type[type[T]], modifier[public], parameter[restTemplateClass]] begin[{] return[call[.configure, parameter[call[BeanUtils.instantiateClass, parameter[member[.restTemplateClass]]]]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[RestTemplate] operator[>] identifier[T] identifier[build] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[restTemplateClass] operator[SEP] { Keyword[return] identifier[configure] operator[SEP] identifier[BeanUt...
@SuppressWarnings("unchecked") private void doMessage(final JsonObject message) { Object value = deserializer.deserialize(message); if (value != null && messageHandler != null) { if (log.isDebugEnabled()) { log.debug(String.format("%s - Received: Message[id=%d, value=%s]", this, message.getLong(...
class class_name[name] begin[{] method[doMessage, return_type[void], modifier[private], parameter[message]] begin[{] local_variable[type[Object], value] if[binary_operation[binary_operation[member[.value], !=, literal[null]], &&, binary_operation[member[.messageHandler], !=, literal[nul...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[doMessage] operator[SEP] Keyword[final] identifier[JsonObject] identifier[message] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[deserializer] operator[SE...
public void close() throws OpenViduJavaClientException, OpenViduHttpException { HttpDelete request = new HttpDelete(OpenVidu.urlOpenViduServer + OpenVidu.API_SESSIONS + "/" + this.sessionId); request.setHeader(HttpHeaders.CONTENT_TYPE, "application/x-www-form-urlencoded"); HttpResponse response; try { respo...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[HttpDelete], request] call[request.setHeader, parameter[member[HttpHeaders.CONTENT_TYPE], literal["application/x-www-form-urlencoded"]]] local_variable[ty...
Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[OpenViduJavaClientException] , identifier[OpenViduHttpException] { identifier[HttpDelete] identifier[request] operator[=] Keyword[new] identifier[HttpDelete] operator[SEP] identifier[OpenVidu] operator[SEP] id...
public static void forceDelete(File file) { if (file.exists()) { // If the File instance to delete is a directory, delete all it's // contents. if (file.isDirectory()) { for (File contentFile : file.listFiles()) { forceDelete(conten...
class class_name[name] begin[{] method[forceDelete, return_type[void], modifier[public static], parameter[file]] begin[{] if[call[file.exists, parameter[]]] begin[{] if[call[file.isDirectory, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=N...
Keyword[public] Keyword[static] Keyword[void] identifier[forceDelete] operator[SEP] identifier[File] identifier[file] operator[SEP] { Keyword[if] operator[SEP] identifier[file] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[file] opera...
public TopicRecord retrieveCallbackFromConnectionIndex( ConnectionImpl connection, ConsumerSetChangeCallback callback) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "retrieveCallbackFromConnectionIndex", new Object[] {connection, ...
class class_name[name] begin[{] method[retrieveCallbackFromConnectionIndex, return_type[type[TopicRecord]], modifier[public], parameter[connection, callback]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] identifier[TopicRecord] identifier[retrieveCallbackFromConnectionIndex] operator[SEP] identifier[ConnectionImpl] identifier[connection] , identifier[ConsumerSetChangeCallback] identifier[callback] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAny...
protected void resize(int newCapacity) { parent = Arrays.copyOf(parent, newCapacity); left = Arrays.copyOf(left, newCapacity); right = Arrays.copyOf(right, newCapacity); depth = Arrays.copyOf(depth, newCapacity); }
class class_name[name] begin[{] method[resize, return_type[void], modifier[protected], parameter[newCapacity]] begin[{] assign[member[.parent], call[Arrays.copyOf, parameter[member[.parent], member[.newCapacity]]]] assign[member[.left], call[Arrays.copyOf, parameter[member[.left...
Keyword[protected] Keyword[void] identifier[resize] operator[SEP] Keyword[int] identifier[newCapacity] operator[SEP] { identifier[parent] operator[=] identifier[Arrays] operator[SEP] identifier[copyOf] operator[SEP] identifier[parent] , identifier[newCapacity] operator[SEP] operator[SEP] identifier[left] operat...
@Override public String getTemplateURI(GroovyObject controller, String templateName) { return getTemplateURI(getLogicalControllerName(controller), templateName); }
class class_name[name] begin[{] method[getTemplateURI, return_type[type[String]], modifier[public], parameter[controller, templateName]] begin[{] return[call[.getTemplateURI, parameter[call[.getLogicalControllerName, parameter[member[.controller]]], member[.templateName]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getTemplateURI] operator[SEP] identifier[GroovyObject] identifier[controller] , identifier[String] identifier[templateName] operator[SEP] { Keyword[return] identifier[getTemplateURI] operator[SEP] identifier[getLogicalControllerNam...
public void insert( int index , int value ) { if( size == data.length ) { int temp[] = new int[ size * 2]; System.arraycopy(data,0,temp,0,index); temp[index] = value; System.arraycopy(data,index,temp,index+1,size-index); this.data = temp; size++; } else { size++; for( int i = size-1; i > ind...
class class_name[name] begin[{] method[insert, return_type[void], modifier[public], parameter[index, value]] begin[{] if[binary_operation[member[.size], ==, member[data.length]]] begin[{] local_variable[type[int], temp] call[System.arraycopy, parameter[member...
Keyword[public] Keyword[void] identifier[insert] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[size] operator[==] identifier[data] operator[SEP] identifier[length] operator[SEP] { Keyword[int] identifier[temp] operat...
public Object execute(final Object dataIn) throws DevFailed { xlogger.entry(name); Object result; try { result = behavior.execute(dataIn); } catch (final DevFailed e) { lastError = e; throw e; } xlogger.exit(name); return result...
class class_name[name] begin[{] method[execute, return_type[type[Object]], modifier[public], parameter[dataIn]] begin[{] call[xlogger.entry, parameter[member[.name]]] local_variable[type[Object], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=M...
Keyword[public] identifier[Object] identifier[execute] operator[SEP] Keyword[final] identifier[Object] identifier[dataIn] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[xlogger] operator[SEP] identifier[entry] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[Object] identif...
@Override public Long decrBy(final byte[] key, final long decrement) { checkIsInMultiOrPipeline(); client.decrBy(key, decrement); return client.getIntegerReply(); }
class class_name[name] begin[{] method[decrBy, return_type[type[Long]], modifier[public], parameter[key, decrement]] begin[{] call[.checkIsInMultiOrPipeline, parameter[]] call[client.decrBy, parameter[member[.key], member[.decrement]]] return[call[client.getIntegerReply,...
annotation[@] identifier[Override] Keyword[public] identifier[Long] identifier[decrBy] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[final] Keyword[long] identifier[decrement] operator[SEP] { identifier[checkIsInMultiOrPipeline] operator[SEP] operator[SEP] oper...
public static String concatPathAndFilename(final String path, final String filename, final String separator) { checkNotNull("filename", filename); checkNotNull("separator", separator); checkNotEmpty("separator", separator); if (path == null) { return filename; ...
class class_name[name] begin[{] method[concatPathAndFilename, return_type[type[String]], modifier[public static], parameter[path, filename, separator]] begin[{] call[.checkNotNull, parameter[literal["filename"], member[.filename]]] call[.checkNotNull, parameter[literal["separato...
Keyword[public] Keyword[static] identifier[String] identifier[concatPathAndFilename] operator[SEP] Keyword[final] identifier[String] identifier[path] , Keyword[final] identifier[String] identifier[filename] , Keyword[final] identifier[String] identifier[separator] operator[SEP] { identifier[checkNotNull] opera...
public int compare(Point2D other) { return y < other.y ? -1 : (y > other.y ? 1 : (x < other.x ? -1 : (x > other.x ? 1 : 0))); }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public], parameter[other]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(membe...
Keyword[public] Keyword[int] identifier[compare] operator[SEP] identifier[Point2D] identifier[other] operator[SEP] { Keyword[return] identifier[y] operator[<] identifier[other] operator[SEP] identifier[y] operator[?] operator[-] Other[1] operator[:] operator[SEP] identifier[y] operator[>] identifier[other] oper...
public OutlierResult run(Relation<V> relation) { final DBIDs ids = relation.getDBIDs(); KNNQuery<V> knnQuery = QueryUtil.getKNNQuery(relation, getDistanceFunction(), k + 1); final int dim = RelationUtil.dimensionality(relation); if(k <= dim + 1) { LOG.warning("PCA is underspecified with a too low...
class class_name[name] begin[{] method[run, return_type[type[OutlierResult]], modifier[public], parameter[relation]] begin[{] local_variable[type[DBIDs], ids] local_variable[type[KNNQuery], knnQuery] local_variable[type[int], dim] if[binary_operation[member[.k], <=, bina...
Keyword[public] identifier[OutlierResult] identifier[run] operator[SEP] identifier[Relation] operator[<] identifier[V] operator[>] identifier[relation] operator[SEP] { Keyword[final] identifier[DBIDs] identifier[ids] operator[=] identifier[relation] operator[SEP] identifier[getDBIDs] operator[SEP] operator[SEP] ...
public void marshall(GetBulkPublishDetailsRequest getBulkPublishDetailsRequest, ProtocolMarshaller protocolMarshaller) { if (getBulkPublishDetailsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getBulkPublishDetailsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getBulkPublishDetailsRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetBulkPublishDetailsRequest] identifier[getBulkPublishDetailsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getBulkPublishDetailsRequest] operator[==] Other...
public static HiveColumnHandle bucketColumnHandle() { return new HiveColumnHandle(BUCKET_COLUMN_NAME, BUCKET_HIVE_TYPE, BUCKET_TYPE_SIGNATURE, BUCKET_COLUMN_INDEX, SYNTHESIZED, Optional.empty()); }
class class_name[name] begin[{] method[bucketColumnHandle, return_type[type[HiveColumnHandle]], modifier[public static], parameter[]] begin[{] return[ClassCreator(arguments=[MemberReference(member=BUCKET_COLUMN_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(...
Keyword[public] Keyword[static] identifier[HiveColumnHandle] identifier[bucketColumnHandle] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[HiveColumnHandle] operator[SEP] identifier[BUCKET_COLUMN_NAME] , identifier[BUCKET_HIVE_TYPE] , identifier[BUCKET_TYPE_SIGNATURE] , identifier[BUCKE...
public static AuditEntryBean policiesReordered(ApiVersionBean apiVersion, PolicyType policyType, ISecurityContext securityContext) { AuditEntryBean entry = newEntry(apiVersion.getApi().getOrganization().getId(), AuditEntityType.Api, securityContext); entry.setEntityId(apiVersion.getApi().get...
class class_name[name] begin[{] method[policiesReordered, return_type[type[AuditEntryBean]], modifier[public static], parameter[apiVersion, policyType, securityContext]] begin[{] local_variable[type[AuditEntryBean], entry] call[entry.setEntityId, parameter[call[apiVersion.getApi, parame...
Keyword[public] Keyword[static] identifier[AuditEntryBean] identifier[policiesReordered] operator[SEP] identifier[ApiVersionBean] identifier[apiVersion] , identifier[PolicyType] identifier[policyType] , identifier[ISecurityContext] identifier[securityContext] operator[SEP] { identifier[AuditEntryBean] identifi...
private void moveClassLevelUp(Outline outline, JDefinedClass clazz) { // Modify the container so it now refers the class. Container can be a class or package. JDefinedClass parent = (JDefinedClass) clazz.parentContainer(); JClassContainer grandParent = parent.parentContainer(); Map<String, JDefinedClass> classe...
class class_name[name] begin[{] method[moveClassLevelUp, return_type[void], modifier[private], parameter[outline, clazz]] begin[{] local_variable[type[JDefinedClass], parent] local_variable[type[JClassContainer], grandParent] local_variable[type[Map], classes] if[call[gr...
Keyword[private] Keyword[void] identifier[moveClassLevelUp] operator[SEP] identifier[Outline] identifier[outline] , identifier[JDefinedClass] identifier[clazz] operator[SEP] { identifier[JDefinedClass] identifier[parent] operator[=] operator[SEP] identifier[JDefinedClass] operator[SEP] identifier[clazz] operato...
public void logIfNeeded(boolean granted, AccessControlEntry ace) { Assert.notNull(ace, "AccessControlEntry required"); if (ace instanceof AuditableAccessControlEntry) { AuditableAccessControlEntry auditableAce = (AuditableAccessControlEntry) ace; if (granted && auditableAce.isAuditSuccess()) { System.ou...
class class_name[name] begin[{] method[logIfNeeded, return_type[void], modifier[public], parameter[granted, ace]] begin[{] call[Assert.notNull, parameter[member[.ace], literal["AccessControlEntry required"]]] if[binary_operation[member[.ace], instanceof, type[AuditableAccessCont...
Keyword[public] Keyword[void] identifier[logIfNeeded] operator[SEP] Keyword[boolean] identifier[granted] , identifier[AccessControlEntry] identifier[ace] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[ace] , literal[String] operator[SEP] operator[SEP] Keyword[if] ...
@Override public void actionPerformed(ActionEvent e) { int row = table.convertRowIndexToModel(table.getEditingRow()); fireEditingStopped(); // Invoke the Action ActionEvent event = new ActionEvent( table, ActionEvent.ACTION_PERFORMED, ...
class class_name[name] begin[{] method[actionPerformed, return_type[void], modifier[public], parameter[e]] begin[{] local_variable[type[int], row] call[.fireEditingStopped, parameter[]] local_variable[type[ActionEvent], event] call[action.actionPerformed, paramet...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[actionPerformed] operator[SEP] identifier[ActionEvent] identifier[e] operator[SEP] { Keyword[int] identifier[row] operator[=] identifier[table] operator[SEP] identifier[convertRowIndexToModel] operator[SEP] identifier[table] operator[SEP...
public void setPrefixLists(java.util.Collection<PrefixList> prefixLists) { if (prefixLists == null) { this.prefixLists = null; return; } this.prefixLists = new com.amazonaws.internal.SdkInternalList<PrefixList>(prefixLists); }
class class_name[name] begin[{] method[setPrefixLists, return_type[void], modifier[public], parameter[prefixLists]] begin[{] if[binary_operation[member[.prefixLists], ==, literal[null]]] begin[{] assign[THIS[member[None.prefixLists]], literal[null]] return[No...
Keyword[public] Keyword[void] identifier[setPrefixLists] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[PrefixList] operator[>] identifier[prefixLists] operator[SEP] { Keyword[if] operator[SEP] identifier[prefixLists] operator[==] Other[n...
private ClassLoader createPluginClassLoader() throws CliExecutionException { ClassLoader parentClassLoader = Task.class.getClassLoader(); File homeDirectory = getHomeDirectory(); if (homeDirectory != null) { File pluginDirectory = new File(homeDirectory, DIRECTORY_PLUGINS); ...
class class_name[name] begin[{] method[createPluginClassLoader, return_type[type[ClassLoader]], modifier[private], parameter[]] begin[{] local_variable[type[ClassLoader], parentClassLoader] local_variable[type[File], homeDirectory] if[binary_operation[member[.homeDirectory], !=,...
Keyword[private] identifier[ClassLoader] identifier[createPluginClassLoader] operator[SEP] operator[SEP] Keyword[throws] identifier[CliExecutionException] { identifier[ClassLoader] identifier[parentClassLoader] operator[=] identifier[Task] operator[SEP] Keyword[class] operator[SEP] identifier[getClassLoader] ope...
public JRecordExtractor<T, double[]> extractWithSettingsDouble(String settings) { return new JRecordExtractor<>(JavaOps.extractWithSettingsDouble(self, settings)); }
class class_name[name] begin[{] method[extractWithSettingsDouble, return_type[type[JRecordExtractor]], modifier[public], parameter[settings]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=self, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
Keyword[public] identifier[JRecordExtractor] operator[<] identifier[T] , Keyword[double] operator[SEP] operator[SEP] operator[>] identifier[extractWithSettingsDouble] operator[SEP] identifier[String] identifier[settings] operator[SEP] { Keyword[return] Keyword[new] identifier[JRecordExtractor] operator[<] opera...
public static BufferedImage colorizeGradient(GrayS16 derivX, GrayS16 derivY, int maxAbsValue, BufferedImage output) { InputSanityCheck.checkSameShape(derivX,derivY); if( output == null ) output = new BufferedImage(derivX.width,derivX.height,BufferedImage.TYPE_INT_RGB); WritableRaster raster = output.getRaste...
class class_name[name] begin[{] method[colorizeGradient, return_type[type[BufferedImage]], modifier[public static], parameter[derivX, derivY, maxAbsValue, output]] begin[{] call[InputSanityCheck.checkSameShape, parameter[member[.derivX], member[.derivY]]] if[binary_operation[mem...
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[colorizeGradient] operator[SEP] identifier[GrayS16] identifier[derivX] , identifier[GrayS16] identifier[derivY] , Keyword[int] identifier[maxAbsValue] , identifier[BufferedImage] identifier[output] operator[SEP] { identifier[InputSanityCheck...
public FeatureMap getParameterValueGroup() { return (FeatureMap)getGroup().<FeatureMap.Entry>list(BpsimPackage.Literals.ENUM_PARAMETER_TYPE__PARAMETER_VALUE_GROUP); }
class class_name[name] begin[{] method[getParameterValueGroup, return_type[type[FeatureMap]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[], member=getGroup, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[Memb...
Keyword[public] identifier[FeatureMap] identifier[getParameterValueGroup] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[FeatureMap] operator[SEP] identifier[getGroup] operator[SEP] operator[SEP] operator[SEP] operator[<] identifier[FeatureMap] operator[SEP] identifier[Entry] operator[>] ...
@Override public void setStartTime(Date startTime) { if (startTime == null) { throw new IllegalArgumentException("Start time cannot be null"); } Date eTime = getEndTime(); if (eTime != null && startTime != null && eTime.before(startTime)) { throw new IllegalArgumentException("End time ca...
class class_name[name] begin[{] method[setStartTime, return_type[void], modifier[public], parameter[startTime]] begin[{] if[binary_operation[member[.startTime], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setStartTime] operator[SEP] identifier[Date] identifier[startTime] operator[SEP] { Keyword[if] operator[SEP] identifier[startTime] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgument...
@GET @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON}) @Path("/{gavc}" + ServerAPI.GET_ORGANIZATION) public Response getOrganization(@PathParam("gavc") final String gavc, @Context final UriInfo uriInfo){ if(LOG.isInfoEnabled()) { LOG.info(String.format("Got a get artifact's or...
class class_name[name] begin[{] method[getOrganization, return_type[type[Response]], modifier[public], parameter[gavc, uriInfo]] begin[{] if[call[LOG.isInfoEnabled, parameter[]]] begin[{] call[LOG.info, parameter[call[String.format, parameter[literal["Got a get artifact'...
annotation[@] identifier[GET] annotation[@] identifier[Produces] operator[SEP] { identifier[MediaType] operator[SEP] identifier[TEXT_HTML] , identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] } operator[SEP] annotation[@] identifier[Path] operator[SEP] literal[String] operator[+] identifier[Ser...
private static Thread createAsyncStreamThread(final InputStream input, final StringBuilder processOutputStringBuilder, final boolean isVerbose) { Thread thread = new Thread() { @Override public void run() { ...
class class_name[name] begin[{] method[createAsyncStreamThread, return_type[type[Thread]], modifier[private static], parameter[input, processOutputStringBuilder, isVerbose]] begin[{] local_variable[type[Thread], thread] call[thread.setDaemon, parameter[literal[true]]] return[mem...
Keyword[private] Keyword[static] identifier[Thread] identifier[createAsyncStreamThread] operator[SEP] Keyword[final] identifier[InputStream] identifier[input] , Keyword[final] identifier[StringBuilder] identifier[processOutputStringBuilder] , Keyword[final] Keyword[boolean] identifier[isVerbose] operator[SEP] { ...
public static Histogram joinHistogram(Histogram hist1, Histogram hist2, String fldName1, String fldName2) { Histogram prodHist = ProductPlan.productHistogram(hist1, hist2); Set<String> group = new HashSet<String>(); group.add(fldName1); group.add(fldName2); return SelectPlan.joinFieldsHistogram(prodH...
class class_name[name] begin[{] method[joinHistogram, return_type[type[Histogram]], modifier[public static], parameter[hist1, hist2, fldName1, fldName2]] begin[{] local_variable[type[Histogram], prodHist] local_variable[type[Set], group] call[group.add, parameter[member[.fldName...
Keyword[public] Keyword[static] identifier[Histogram] identifier[joinHistogram] operator[SEP] identifier[Histogram] identifier[hist1] , identifier[Histogram] identifier[hist2] , identifier[String] identifier[fldName1] , identifier[String] identifier[fldName2] operator[SEP] { identifier[Histogram] identifier[p...
DictionaryPage readDictionary(ColumnChunkMetaData meta) throws IOException { if (!meta.getEncodings().contains(Encoding.PLAIN_DICTIONARY) && !meta.getEncodings().contains(Encoding.RLE_DICTIONARY)) { return null; } // TODO: this should use getDictionaryPageOffset() but it isn't reliable. i...
class class_name[name] begin[{] method[readDictionary, return_type[type[DictionaryPage]], modifier[default], parameter[meta]] begin[{] if[binary_operation[call[meta.getEncodings, parameter[]], &&, call[meta.getEncodings, parameter[]]]] begin[{] return[literal[null]] else beg...
identifier[DictionaryPage] identifier[readDictionary] operator[SEP] identifier[ColumnChunkMetaData] identifier[meta] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[meta] operator[SEP] identifier[getEncodings] operator[SEP] operator[SEP] operator[SEP] iden...
public static CuratorFramework startCuratorFramework(Configuration configuration) { Preconditions.checkNotNull(configuration, "configuration"); String zkQuorum = configuration.getValue(HighAvailabilityOptions.HA_ZOOKEEPER_QUORUM); if (zkQuorum == null || StringUtils.isBlank(zkQuorum)) { throw new RuntimeExcep...
class class_name[name] begin[{] method[startCuratorFramework, return_type[type[CuratorFramework]], modifier[public static], parameter[configuration]] begin[{] call[Preconditions.checkNotNull, parameter[member[.configuration], literal["configuration"]]] local_variable[type[String], zkQuo...
Keyword[public] Keyword[static] identifier[CuratorFramework] identifier[startCuratorFramework] operator[SEP] identifier[Configuration] identifier[configuration] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[configuration] , literal[String] operator[SEP...
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { return (XString)getArg0AsString(xctxt); }
class class_name[name] begin[{] method[execute, return_type[type[XObject]], modifier[public], parameter[xctxt]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=xctxt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getArg0AsString, postfi...
Keyword[public] identifier[XObject] identifier[execute] operator[SEP] identifier[XPathContext] identifier[xctxt] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[transform] operator[SEP] identifier[TransformerException] { Keyword[return] operator[SEP] identif...
public void setValidTable(TableCandidate tc) { /** * TODO [improve]: Table/TableCandidate not match * */ this.setHeight(tc.getHeight()); this.setWidth(tc.getWidth()); this.setCaption(tc.getCaption()); this.setRowNumber(tc.getRows().size()); this.setColumnNumber(tc....
class class_name[name] begin[{] method[setValidTable, return_type[void], modifier[public], parameter[tc]] begin[{] THIS[call[None.setHeight, parameter[call[tc.getHeight, parameter[]]]]] THIS[call[None.setWidth, parameter[call[tc.getWidth, parameter[]]]]] THIS[cal...
Keyword[public] Keyword[void] identifier[setValidTable] operator[SEP] identifier[TableCandidate] identifier[tc] operator[SEP] { Keyword[this] operator[SEP] identifier[setHeight] operator[SEP] identifier[tc] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[this] ...
public static String decodeURN(String urn) { String publicId = ""; if (urn.startsWith("urn:publicid:")) { publicId = urn.substring(13); } else { return urn; } publicId = PublicId.stringReplace(publicId, "%2F", "/"); publicId = PublicId.stringReplace(publicId, ":", "//"); public...
class class_name[name] begin[{] method[decodeURN, return_type[type[String]], modifier[public static], parameter[urn]] begin[{] local_variable[type[String], publicId] if[call[urn.startsWith, parameter[literal["urn:publicid:"]]]] begin[{] assign[member[.publicId], ...
Keyword[public] Keyword[static] identifier[String] identifier[decodeURN] operator[SEP] identifier[String] identifier[urn] operator[SEP] { identifier[String] identifier[publicId] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[urn] operator[SEP] identifier[startsWith] operator[SEP] ...
public void syncStorageKeys(String resourceGroupName, String mediaServiceName, String id) { syncStorageKeysWithServiceResponseAsync(resourceGroupName, mediaServiceName, id).toBlocking().single().body(); }
class class_name[name] begin[{] method[syncStorageKeys, return_type[void], modifier[public], parameter[resourceGroupName, mediaServiceName, id]] begin[{] call[.syncStorageKeysWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.mediaServiceName], member[.id]]] end[}] END[...
Keyword[public] Keyword[void] identifier[syncStorageKeys] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[mediaServiceName] , identifier[String] identifier[id] operator[SEP] { identifier[syncStorageKeysWithServiceResponseAsync] operator[SEP] identifier[resourceGro...
public String getSnippetContent(Integer snippetId) throws GitLabApiException { Response response = get(Response.Status.OK, null, "snippets", snippetId, "raw"); return (response.readEntity(String.class)); }
class class_name[name] begin[{] method[getSnippetContent, return_type[type[String]], modifier[public], parameter[snippetId]] begin[{] local_variable[type[Response], response] return[call[response.readEntity, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[public] identifier[String] identifier[getSnippetContent] operator[SEP] identifier[Integer] identifier[snippetId] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[Response] identifier[response] operator[=] identifier[get] operator[SEP] identifier[Response] operator[SEP] identifier...
@SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SarlPackage.SARL_CAPACITY_USES__CAPACITIES: getCapacities().clear(); getCapacities().addAll((Collection<? extends JvmParameterizedTypeReference>)newValue); return; } super.eSet...
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=SARL_CAPACITY_USES__CAPACITIES, postfix_operators=[], prefix_operators=[], qualifier=SarlPackage, selectors=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identi...
@Override public void addEmptyTag(String tagName, String attrName, String attrValue) { _xml.addXML(_indent.toString()); _xml.addEmptyTag(tagName, attrName, attrValue); _xml.addXML("\n"); }
class class_name[name] begin[{] method[addEmptyTag, return_type[void], modifier[public], parameter[tagName, attrName, attrValue]] begin[{] call[_xml.addXML, parameter[call[_indent.toString, parameter[]]]] call[_xml.addEmptyTag, parameter[member[.tagName], member[.attrName], memb...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addEmptyTag] operator[SEP] identifier[String] identifier[tagName] , identifier[String] identifier[attrName] , identifier[String] identifier[attrValue] operator[SEP] { identifier[_xml] operator[SEP] identifier[addXML] operator[SEP] iden...
private void lifeCycleExceptionHandler(Throwable t, EJBModuleMetaDataImpl mmd) // F743-14982 { if (t instanceof RuntimeException) { // Is the RuntimeException an application exception? RuntimeException rtex = (RuntimeException) t; if (mmd.getApplicationExceptionRollback(r...
class class_name[name] begin[{] method[lifeCycleExceptionHandler, return_type[void], modifier[private], parameter[t, mmd]] begin[{] if[binary_operation[member[.t], instanceof, type[RuntimeException]]] begin[{] local_variable[type[RuntimeException], rtex] if[b...
Keyword[private] Keyword[void] identifier[lifeCycleExceptionHandler] operator[SEP] identifier[Throwable] identifier[t] , identifier[EJBModuleMetaDataImpl] identifier[mmd] operator[SEP] { Keyword[if] operator[SEP] identifier[t] Keyword[instanceof] identifier[RuntimeException] operator[SEP] { identifie...
protected void setMapProperty(Map<String, Object> map, String name, Object value, FormMappingOption option, Object parentBean, String parentName) { final boolean strArray = isMapValueStringArray(parentBean, parentName); final Object registered; if (value instanceof String[]) { ...
class class_name[name] begin[{] method[setMapProperty, return_type[void], modifier[protected], parameter[map, name, value, option, parentBean, parentName]] begin[{] local_variable[type[boolean], strArray] local_variable[type[Object], registered] if[binary_operation[member[.value...
Keyword[protected] Keyword[void] identifier[setMapProperty] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] , identifier[String] identifier[name] , identifier[Object] identifier[value] , identifier[FormMappingOption] identifier[option] , identifier[Obje...
public void e(String msg, Throwable tr) { println(LogLevel.ERROR, msg, tr); }
class class_name[name] begin[{] method[e, return_type[void], modifier[public], parameter[msg, tr]] begin[{] call[.println, parameter[member[LogLevel.ERROR], member[.msg], member[.tr]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[e] operator[SEP] identifier[String] identifier[msg] , identifier[Throwable] identifier[tr] operator[SEP] { identifier[println] operator[SEP] identifier[LogLevel] operator[SEP] identifier[ERROR] , identifier[msg] , identifier[tr] operator[SEP] operator[SEP] }
public int compareTo(Version ver) { int[] otherComponents = ver._components; // work out the minimum length of the components for each version. int mylen = _components.length; int otherlen = otherComponents.length; // work out if the other one is longer than this one. boolean longer = (mylen...
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[ver]] begin[{] local_variable[type[int], otherComponents] local_variable[type[int], mylen] local_variable[type[int], otherlen] local_variable[type[boolean], longer] loca...
Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] identifier[Version] identifier[ver] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[otherComponents] operator[=] identifier[ver] operator[SEP] identifier[_components] operator[SEP] Keyword[int] identifier[mylen] operator[=] iden...
@Override @Deprecated public <T> List<ComponentDescriptor<T>> getComponentDescriptorList(Class<T> role) { return getComponentManager().getComponentDescriptorList(role); }
class class_name[name] begin[{] method[getComponentDescriptorList, return_type[type[List]], modifier[public], parameter[role]] begin[{] return[call[.getComponentManager, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] annotation[@] identifier[Deprecated] Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[ComponentDescriptor] operator[<] identifier[T] operator[>] operator[>] identifier[getComponentDescriptorList] operator[SEP] identifier[Class] operator[<] ...
private boolean isClearShiroAnnotationPresent(Method method) { Annotation a = method.getAnnotation(ClearShiro.class); return a != null; }
class class_name[name] begin[{] method[isClearShiroAnnotationPresent, return_type[type[boolean]], modifier[private], parameter[method]] begin[{] local_variable[type[Annotation], a] return[binary_operation[member[.a], !=, literal[null]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[isClearShiroAnnotationPresent] operator[SEP] identifier[Method] identifier[method] operator[SEP] { identifier[Annotation] identifier[a] operator[=] identifier[method] operator[SEP] identifier[getAnnotation] operator[SEP] identifier[ClearShiro] operator[SEP] Keyword[cl...
protected void postLayoutChild(final int dataIndex) { if (!mContainer.isDynamic()) { boolean visibleInLayout = !mViewPort.isClippingEnabled() || inViewPort(dataIndex); ViewPortVisibility visibility = visibleInLayout ? ViewPortVisibility.FULLY_VISIBLE : ViewPortVisibil...
class class_name[name] begin[{] method[postLayoutChild, return_type[void], modifier[protected], parameter[dataIndex]] begin[{] if[call[mContainer.isDynamic, parameter[]]] begin[{] local_variable[type[boolean], visibleInLayout] local_variable[type[ViewPortVisibility], vis...
Keyword[protected] Keyword[void] identifier[postLayoutChild] operator[SEP] Keyword[final] Keyword[int] identifier[dataIndex] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[mContainer] operator[SEP] identifier[isDynamic] operator[SEP] operator[SEP] operator[SEP] { Keyword[boolean] ide...
public Rule longestString(final String first, final String second, final String... others) { return trie(first, second, others); }
class class_name[name] begin[{] method[longestString, return_type[type[Rule]], modifier[public], parameter[first, second, others]] begin[{] return[call[.trie, parameter[member[.first], member[.second], member[.others]]]] end[}] END[}]
Keyword[public] identifier[Rule] identifier[longestString] operator[SEP] Keyword[final] identifier[String] identifier[first] , Keyword[final] identifier[String] identifier[second] , Keyword[final] identifier[String] operator[...] identifier[others] operator[SEP] { Keyword[return] identifier[trie] operator[SEP]...
public synchronized EvernoteLinkedNotebookHelper getLinkedNotebookHelper(@NonNull LinkedNotebook linkedNotebook) throws EDAMUserException, EDAMSystemException, EDAMNotFoundException, TException { String key = linkedNotebook.getGuid(); EvernoteLinkedNotebookHelper notebookHelper = mLinkedNot...
class class_name[name] begin[{] method[getLinkedNotebookHelper, return_type[type[EvernoteLinkedNotebookHelper]], modifier[synchronized public], parameter[linkedNotebook]] begin[{] local_variable[type[String], key] local_variable[type[EvernoteLinkedNotebookHelper], notebookHelper] ...
Keyword[public] Keyword[synchronized] identifier[EvernoteLinkedNotebookHelper] identifier[getLinkedNotebookHelper] operator[SEP] annotation[@] identifier[NonNull] identifier[LinkedNotebook] identifier[linkedNotebook] operator[SEP] Keyword[throws] identifier[EDAMUserException] , identifier[EDAMSystemException] , ident...
@GuardedBy("lock") protected void move(int num_rows) { if(num_rows <= 0 || num_rows > matrix.length) return; int target_index=0; for(int i=num_rows; i < matrix.length; i++) matrix[target_index++]=matrix[i]; for(int i=matrix.length - num_rows; i < matrix.leng...
class class_name[name] begin[{] method[move, return_type[void], modifier[protected], parameter[num_rows]] begin[{] if[binary_operation[binary_operation[member[.num_rows], <=, literal[0]], ||, binary_operation[member[.num_rows], >, member[matrix.length]]]] begin[{] return[None] else begi...
annotation[@] identifier[GuardedBy] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[void] identifier[move] operator[SEP] Keyword[int] identifier[num_rows] operator[SEP] { Keyword[if] operator[SEP] identifier[num_rows] operator[<=] Other[0] operator[||] identifier[num_rows] operator[>] iden...
@Override public double[] getVotesForInstance(Instance inst) { double[] votes = {0.5, 0.5}; if(this.neighbourhood.size() > 2) { votes[1] = Math.pow(2.0, -1.0 * this.getAnomalyScore(inst) / this.tau); votes[0] = 1.0 - votes[1]; } return votes; }
class class_name[name] begin[{] method[getVotesForInstance, return_type[type[double]], modifier[public], parameter[inst]] begin[{] local_variable[type[double], votes] if[binary_operation[THIS[member[None.neighbourhood]call[None.size, parameter[]]], >, literal[2]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getVotesForInstance] operator[SEP] identifier[Instance] identifier[inst] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[votes] operator[=] { literal[Float] , literal[Float...
public static boolean contains(String name, Iterable<String> patterns) { String nameUpper = name.toUpperCase(); for (String pattern : patterns) { String patternUpper = pattern.toUpperCase(); if (nameUpper.equals(patternUpper) || nameUpper.contains(patternUpper)) { ...
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public static], parameter[name, patterns]] begin[{] local_variable[type[String], nameUpper] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variab...
Keyword[public] Keyword[static] Keyword[boolean] identifier[contains] operator[SEP] identifier[String] identifier[name] , identifier[Iterable] operator[<] identifier[String] operator[>] identifier[patterns] operator[SEP] { identifier[String] identifier[nameUpper] operator[=] identifier[name] operator[SEP] ident...
public final List<T> findSortedByQuery(String query, String sort, Object... params) { return this.findSortedByQuery(query, sort, (Integer) null, (Integer) null, params); }
class class_name[name] begin[{] method[findSortedByQuery, return_type[type[List]], modifier[final public], parameter[query, sort, params]] begin[{] return[THIS[call[None.findSortedByQuery, parameter[member[.query], member[.sort], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[final] identifier[List] operator[<] identifier[T] operator[>] identifier[findSortedByQuery] operator[SEP] identifier[String] identifier[query] , identifier[String] identifier[sort] , identifier[Object] operator[...] identifier[params] operator[SEP] { Keyword[return] Keyword[this] operat...
@FFDCIgnore(IllegalArgumentException.class) private void definePackage(final ByteResourceInformation classBytesResourceInformation, String packageName) { /* * We don't extend URL classloader so we automatically pass the manifest from the JAR to our supertype, still try to get hold of it though so t...
class class_name[name] begin[{] method[definePackage, return_type[void], modifier[private], parameter[classBytesResourceInformation, packageName]] begin[{] local_variable[type[Manifest], manifest] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=manifest...
annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[IllegalArgumentException] operator[SEP] Keyword[class] operator[SEP] Keyword[private] Keyword[void] identifier[definePackage] operator[SEP] Keyword[final] identifier[ByteResourceInformation] identifier[classBytesResourceInformation] , identifier[String] ide...
private void addMVScalar() { Set<String> values = new HashSet<>(m_dbObj.getFieldValues(m_fieldName)); String fieldValue = Utils.concatenate(values, CommonDefs.MV_SCALAR_SEP_CHAR); m_dbTran.addScalarValueColumn(m_tableDef, m_dbObj.getObjectID(), m_fieldName, fieldValue); addTermColumn...
class class_name[name] begin[{] method[addMVScalar, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Set], values] local_variable[type[String], fieldValue] call[m_dbTran.addScalarValueColumn, parameter[member[.m_tableDef], call[m_dbObj.getObjectID,...
Keyword[private] Keyword[void] identifier[addMVScalar] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[values] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] identifier[m_dbObj] operator[SEP] identifier[getFieldValues] operat...
public static SimpleAntlrFactory init() { try { SimpleAntlrFactory theSimpleAntlrFactory = (SimpleAntlrFactory)EPackage.Registry.INSTANCE.getEFactory(SimpleAntlrPackage.eNS_URI); if (theSimpleAntlrFactory != null) { return theSimpleAntlrFactory; } } catch (Exception exc...
class class_name[name] begin[{] method[init, return_type[type[SimpleAntlrFactory]], modifier[public static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MemberRe...
Keyword[public] Keyword[static] identifier[SimpleAntlrFactory] identifier[init] operator[SEP] operator[SEP] { Keyword[try] { identifier[SimpleAntlrFactory] identifier[theSimpleAntlrFactory] operator[=] operator[SEP] identifier[SimpleAntlrFactory] operator[SEP] identifier[EPackage] operator[SEP] identi...
public float[] readData(RandomAccessFile raf, long drsPos) throws IOException { raf.seek(drsPos); Grib2SectionDataRepresentation drs = new Grib2SectionDataRepresentation(raf); Grib2SectionBitMap bms = new Grib2SectionBitMap(raf); Grib2SectionData dataSection = new Grib2SectionData(raf); Grib2...
class class_name[name] begin[{] method[readData, return_type[type[float]], modifier[public], parameter[raf, drsPos]] begin[{] call[raf.seek, parameter[member[.drsPos]]] local_variable[type[Grib2SectionDataRepresentation], drs] local_variable[type[Grib2SectionBitMap], bms] ...
Keyword[public] Keyword[float] operator[SEP] operator[SEP] identifier[readData] operator[SEP] identifier[RandomAccessFile] identifier[raf] , Keyword[long] identifier[drsPos] operator[SEP] Keyword[throws] identifier[IOException] { identifier[raf] operator[SEP] identifier[seek] operator[SEP] identifier[drsPos] op...
public Map<String, ChangeParameterMetaData> getSetParameters(Change change) { Map<String, ChangeParameterMetaData> returnMap = new HashMap<>(); for (Map.Entry<String, ChangeParameterMetaData> entry : getParameters().entrySet()) { if (entry.getValue().getCurrentValue(change) != null) { ...
class class_name[name] begin[{] method[getSetParameters, return_type[type[Map]], modifier[public], parameter[change]] begin[{] local_variable[type[Map], returnMap] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[ChangeParameterMetaData] operator[>] identifier[getSetParameters] operator[SEP] identifier[Change] identifier[change] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[ChangeParameterMetaData] operator[>] iden...
public VarValueDef addProperties( Collection<String> properties) { if( properties != null) { assertPropertyIdentifiers( properties); properties_.addAll( properties); } return this; }
class class_name[name] begin[{] method[addProperties, return_type[type[VarValueDef]], modifier[public], parameter[properties]] begin[{] if[binary_operation[member[.properties], !=, literal[null]]] begin[{] call[.assertPropertyIdentifiers, parameter[member[.properties]]] ...
Keyword[public] identifier[VarValueDef] identifier[addProperties] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[properties] operator[SEP] { Keyword[if] operator[SEP] identifier[properties] operator[!=] Other[null] operator[SEP] { identifier[assertPropertyId...
public static Object parse(final String s, final BSONCallback c) { if (s == null || (s.trim()).equals("")) { return null; } JSONParser p = new JSONParser(s, c); return p.parse(); }
class class_name[name] begin[{] method[parse, return_type[type[Object]], modifier[public static], parameter[s, c]] begin[{] if[binary_operation[binary_operation[member[.s], ==, literal[null]], ||, call[s.trim, parameter[]]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[Object] identifier[parse] operator[SEP] Keyword[final] identifier[String] identifier[s] , Keyword[final] identifier[BSONCallback] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[||] operator[SEP] identifier[s] ope...
public ApplicationPage createApplicationPage(ApplicationWindow window, PageDescriptor descriptor) { if (reusePages) { VLDockingApplicationPage page = findPage(window, descriptor); if (page != null) { return page; } } VLDockingApplicationPage pa...
class class_name[name] begin[{] method[createApplicationPage, return_type[type[ApplicationPage]], modifier[public], parameter[window, descriptor]] begin[{] if[member[.reusePages]] begin[{] local_variable[type[VLDockingApplicationPage], page] if[binary_operati...
Keyword[public] identifier[ApplicationPage] identifier[createApplicationPage] operator[SEP] identifier[ApplicationWindow] identifier[window] , identifier[PageDescriptor] identifier[descriptor] operator[SEP] { Keyword[if] operator[SEP] identifier[reusePages] operator[SEP] { identifier[VLDockingApplica...
public void setEndDateTime(com.google.api.ads.admanager.axis.v201808.DateTime endDateTime) { this.endDateTime = endDateTime; }
class class_name[name] begin[{] method[setEndDateTime, return_type[void], modifier[public], parameter[endDateTime]] begin[{] assign[THIS[member[None.endDateTime]], member[.endDateTime]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setEndDateTime] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[DateTime] iden...
public static int getWrappedValue(int currentValue, int wrapValue, int minValue, int maxValue) { return getWrappedValue(currentValue + wrapValue, minValue, maxValue); }
class class_name[name] begin[{] method[getWrappedValue, return_type[type[int]], modifier[public static], parameter[currentValue, wrapValue, minValue, maxValue]] begin[{] return[call[.getWrappedValue, parameter[binary_operation[member[.currentValue], +, member[.wrapValue]], member[.minValue], member[.ma...
Keyword[public] Keyword[static] Keyword[int] identifier[getWrappedValue] operator[SEP] Keyword[int] identifier[currentValue] , Keyword[int] identifier[wrapValue] , Keyword[int] identifier[minValue] , Keyword[int] identifier[maxValue] operator[SEP] { Keyword[return] identifier[getWrappedValue] operator[SEP] id...
@Override public DescribeIamInstanceProfileAssociationsResult describeIamInstanceProfileAssociations(DescribeIamInstanceProfileAssociationsRequest request) { request = beforeClientExecution(request); return executeDescribeIamInstanceProfileAssociations(request); }
class class_name[name] begin[{] method[describeIamInstanceProfileAssociations, return_type[type[DescribeIamInstanceProfileAssociationsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeIamInstanceProfileAssociationsResult] identifier[describeIamInstanceProfileAssociations] operator[SEP] identifier[DescribeIamInstanceProfileAssociationsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[bef...
public static <T extends Comparable<T>> Matcher<T> between(T min, T max) { return allOf(greaterThan(min), lessThan(max)); }
class class_name[name] begin[{] method[between, return_type[type[Matcher]], modifier[public static], parameter[min, max]] begin[{] return[call[.allOf, parameter[call[.greaterThan, parameter[member[.min]]], call[.lessThan, parameter[member[.max]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] identifier[T] operator[>] operator[>] identifier[Matcher] operator[<] identifier[T] operator[>] identifier[between] operator[SEP] identifier[T] identifier[min] , identifier[T] identifier[max] operator[SEP] { ...
public JobInner get(String resourceGroupName, String accountName, String transformName, String jobName) { return getWithServiceResponseAsync(resourceGroupName, accountName, transformName, jobName).toBlocking().single().body(); }
class class_name[name] begin[{] method[get, return_type[type[JobInner]], modifier[public], parameter[resourceGroupName, accountName, transformName, jobName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.transformName], member[.jo...
Keyword[public] identifier[JobInner] identifier[get] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[transformName] , identifier[String] identifier[jobName] operator[SEP] { Keyword[return] identifier[getWithServiceResp...
public <T> CorsConfigBuilder preflightResponseHeader(final CharSequence name, final Iterable<T> value) { preflightHeaders.put(name, new ConstantValueGenerator(value)); return this; }
class class_name[name] begin[{] method[preflightResponseHeader, return_type[type[CorsConfigBuilder]], modifier[public], parameter[name, value]] begin[{] call[preflightHeaders.put, parameter[member[.name], ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operato...
Keyword[public] operator[<] identifier[T] operator[>] identifier[CorsConfigBuilder] identifier[preflightResponseHeader] operator[SEP] Keyword[final] identifier[CharSequence] identifier[name] , Keyword[final] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[value] operator[SEP] { identifier[...
public static br_disable[] disable(nitro_service client, br_disable[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); if(resources.length == 1) return ((br_disable[]) resources[0].perform_operation(client, "disable")); return ((br_disable[])...
class class_name[name] begin[{] method[disable, return_type[type[br_disable]], modifier[public static], parameter[client, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[static] identifier[br_disable] operator[SEP] operator[SEP] identifier[disable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[br_disable] operator[SEP] operator[SEP] identifier[resources] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[...
private boolean crevdissect(RuntimeSubexpression t, int begin, int end) { Dfa d; Dfa d2; int mid; assert t.op == '.'; assert t.left != null && t.left.machine.states.length > 0; assert t.right != null && t.right.machine.states.length > 0; assert 0 != (t.left.flags...
class class_name[name] begin[{] method[crevdissect, return_type[type[boolean]], modifier[private], parameter[t, begin, end]] begin[{] local_variable[type[Dfa], d] local_variable[type[Dfa], d2] local_variable[type[int], mid] AssertStatement(condition=BinaryOperation(operandl=Memb...
Keyword[private] Keyword[boolean] identifier[crevdissect] operator[SEP] identifier[RuntimeSubexpression] identifier[t] , Keyword[int] identifier[begin] , Keyword[int] identifier[end] operator[SEP] { identifier[Dfa] identifier[d] operator[SEP] identifier[Dfa] identifier[d2] operator[SEP] Keyword[int] identifier...
@Override public void setBreak(boolean enabled) throws IllegalStateException, IOException{ // validate state if (isClosed()) throw new IllegalStateException("Serial connection is not open; cannot 'setBreak()'."); // control the constant state of the BREAK signal com.pi4j...
class class_name[name] begin[{] method[setBreak, return_type[void], modifier[public], parameter[enabled]] begin[{] if[call[.isClosed, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setBreak] operator[SEP] Keyword[boolean] identifier[enabled] operator[SEP] Keyword[throws] identifier[IllegalStateException] , identifier[IOException] { Keyword[if] operator[SEP] identifier[isClosed] operator[SEP] operator[SEP] operator...
public Object get(String key) { if (syncWorker != null) return syncWorker.get(key); return null; }
class class_name[name] begin[{] method[get, return_type[type[Object]], modifier[public], parameter[key]] begin[{] if[binary_operation[member[.syncWorker], !=, literal[null]]] begin[{] return[call[syncWorker.get, parameter[member[.key]]]] else begin[{] None end[}] return[...
Keyword[public] identifier[Object] identifier[get] operator[SEP] identifier[String] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[syncWorker] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[syncWorker] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[S...
public static ExpectedCondition<Boolean> textToBePresentInElementValue(final By locator, final String text) { return new ExpectedCondition<Boolean>() { @Override public Boolean apply(WebDriver driver) { try { Str...
class class_name[name] begin[{] method[textToBePresentInElementValue, return_type[type[ExpectedCondition]], modifier[public static], parameter[locator, text]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[TryStatement(blo...
Keyword[public] Keyword[static] identifier[ExpectedCondition] operator[<] identifier[Boolean] operator[>] identifier[textToBePresentInElementValue] operator[SEP] Keyword[final] identifier[By] identifier[locator] , Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] Keyword[new] id...
public V put(ResourceType type, String poolGroupName, V value) { Map<String, V> poolGroupNameMap = typePoolGroupNameMap.get(type); if (poolGroupNameMap == null) { poolGroupNameMap = new HashMap<String, V>(); typePoolGroupNameMap.put(type, poolGroupNameMap); } return poolGroupNameMap.put(pool...
class class_name[name] begin[{] method[put, return_type[type[V]], modifier[public], parameter[type, poolGroupName, value]] begin[{] local_variable[type[Map], poolGroupNameMap] if[binary_operation[member[.poolGroupNameMap], ==, literal[null]]] begin[{] assign[memb...
Keyword[public] identifier[V] identifier[put] operator[SEP] identifier[ResourceType] identifier[type] , identifier[String] identifier[poolGroupName] , identifier[V] identifier[value] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[V] operator[>] identifier[poolGroupNameMap] operato...
public MultipartBuilder addPart(NetworkRequest part) { if (part == null) { throw new NullPointerException("part == null"); } parts.add(part); return this; }
class class_name[name] begin[{] method[addPart, return_type[type[MultipartBuilder]], modifier[public], parameter[part]] begin[{] if[binary_operation[member[.part], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_ope...
Keyword[public] identifier[MultipartBuilder] identifier[addPart] operator[SEP] identifier[NetworkRequest] identifier[part] operator[SEP] { Keyword[if] operator[SEP] identifier[part] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] lite...
private void setConfigValues(Configuration config, JLanguageTool langTool) { this.config = config; this.langTool = langTool; this.noMultiReset = config.isNoMultiReset(); for (SingleDocument document : documents) { document.setConfigValues(config); } }
class class_name[name] begin[{] method[setConfigValues, return_type[void], modifier[private], parameter[config, langTool]] begin[{] assign[THIS[member[None.config]], member[.config]] assign[THIS[member[None.langTool]], member[.langTool]] assign[THIS[member[None.n...
Keyword[private] Keyword[void] identifier[setConfigValues] operator[SEP] identifier[Configuration] identifier[config] , identifier[JLanguageTool] identifier[langTool] operator[SEP] { Keyword[this] operator[SEP] identifier[config] operator[=] identifier[config] operator[SEP] Keyword[this] operator[SEP] identifie...
public static StepExecutionItem createPluginStepItem( final String type, final Map configuration, final boolean keepgoingOnSuccess, final StepExecutionItem handler, final String label, final List<PluginConfiguration> filterConfigurations ) ...
class class_name[name] begin[{] method[createPluginStepItem, return_type[type[StepExecutionItem]], modifier[public static], parameter[type, configuration, keepgoingOnSuccess, handler, label, filterConfigurations]] begin[{] return[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[]...
Keyword[public] Keyword[static] identifier[StepExecutionItem] identifier[createPluginStepItem] operator[SEP] Keyword[final] identifier[String] identifier[type] , Keyword[final] identifier[Map] identifier[configuration] , Keyword[final] Keyword[boolean] identifier[keepgoingOnSuccess] , Keyword[final] identifier[StepE...
static Number coerceToPrimitiveNumber(long pValue, Class pClass) throws ELException { if (pClass == Byte.class || pClass == Byte.TYPE) { return PrimitiveObjects.getByte((byte) pValue); } else if (pClass == Short.class || pClass == Short.T...
class class_name[name] begin[{] method[coerceToPrimitiveNumber, return_type[type[Number]], modifier[static], parameter[pValue, pClass]] begin[{] if[binary_operation[binary_operation[member[.pClass], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=Ref...
Keyword[static] identifier[Number] identifier[coerceToPrimitiveNumber] operator[SEP] Keyword[long] identifier[pValue] , identifier[Class] identifier[pClass] operator[SEP] Keyword[throws] identifier[ELException] { Keyword[if] operator[SEP] identifier[pClass] operator[==] identifier[Byte] operator[SEP] Keyword[cl...
@NonNull public ListenerToken addDocumentChangeListener( @NonNull String id, Executor executor, @NonNull DocumentChangeListener listener) { if (id == null) { throw new IllegalArgumentException("id cannot be null."); } if (listener == null) { throw new IllegalArgumentException...
class class_name[name] begin[{] method[addDocumentChangeListener, return_type[type[ListenerToken]], modifier[public], parameter[id, executor, listener]] begin[{] if[binary_operation[member[.id], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
annotation[@] identifier[NonNull] Keyword[public] identifier[ListenerToken] identifier[addDocumentChangeListener] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[id] , identifier[Executor] identifier[executor] , annotation[@] identifier[NonNull] identifier[DocumentChangeListener] identif...
public Token[] tokenize(String input) { char[] stringChars = input.toCharArray(); List<Token> tokens = new ArrayList<Token>(); for (char c : stringChars) { if(Character.isLetterOrDigit(c)){ tokens.add(internSomething(Character.toString(c))); } else if (!ignorePunctuation && !Char...
class class_name[name] begin[{] method[tokenize, return_type[type[Token]], modifier[public], parameter[input]] begin[{] local_variable[type[char], stringChars] local_variable[type[List], tokens] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocat...
Keyword[public] identifier[Token] operator[SEP] operator[SEP] identifier[tokenize] operator[SEP] identifier[String] identifier[input] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[stringChars] operator[=] identifier[input] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] o...
public ManualRequestEditorDialog getResendDialog() { if (resendDialog == null) { resendDialog = new ManualHttpRequestEditorDialog(true, "resend", "ui.dialogs.manreq"); resendDialog.setTitle(Constant.messages.getString("manReq.dialog.title")); // ZAP: i18n } return resendDialog; }
class class_name[name] begin[{] method[getResendDialog, return_type[type[ManualRequestEditorDialog]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.resendDialog], ==, literal[null]]] begin[{] assign[member[.resendDialog], ClassCreator(arguments=[Lit...
Keyword[public] identifier[ManualRequestEditorDialog] identifier[getResendDialog] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[resendDialog] operator[==] Other[null] operator[SEP] { identifier[resendDialog] operator[=] Keyword[new] identifier[ManualHttpRequestEditorDialog] operat...
public double getColorPercentage(Color color) { if (color == null) return 0; else { Integer num = colors.get(colorKey(color)); if (num == null) num = 0; if (totalLength == 0) return 0; else return (do...
class class_name[name] begin[{] method[getColorPercentage, return_type[type[double]], modifier[public], parameter[color]] begin[{] if[binary_operation[member[.color], ==, literal[null]]] begin[{] return[literal[0]] else begin[{] local_variable[type[Integer], num] ...
Keyword[public] Keyword[double] identifier[getColorPercentage] operator[SEP] identifier[Color] identifier[color] operator[SEP] { Keyword[if] operator[SEP] identifier[color] operator[==] Other[null] operator[SEP] Keyword[return] Other[0] operator[SEP] Keyword[else] { identifier[Integer] identifier[num]...
@Override public Pair<D, Integer> answerQuery(Word<I> prefix, Word<I> loop, int repeat) { assert repeat > 0; final List<S> states = new ArrayList<>(repeat + 1); final WordBuilder<I> wb = new WordBuilder<>(prefix.length() + loop.length() * repeat, prefix); S stateIter = simpleDTS.ge...
class class_name[name] begin[{] method[answerQuery, return_type[type[Pair]], modifier[public], parameter[prefix, loop, repeat]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=repeat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Liter...
annotation[@] identifier[Override] Keyword[public] identifier[Pair] operator[<] identifier[D] , identifier[Integer] operator[>] identifier[answerQuery] operator[SEP] identifier[Word] operator[<] identifier[I] operator[>] identifier[prefix] , identifier[Word] operator[<] identifier[I] operator[>] identifier[loop] , K...
private static void writeZonePropsByDOW(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int weekInMonth, int dayOfWeek, long startTime, long untilTime) throws IOException { beginZoneProps(writer, isDst, tzname, fromOffset, toOffset, startTime); beginRRU...
class class_name[name] begin[{] method[writeZonePropsByDOW, return_type[void], modifier[private static], parameter[writer, isDst, tzname, fromOffset, toOffset, month, weekInMonth, dayOfWeek, startTime, untilTime]] begin[{] call[.beginZoneProps, parameter[member[.writer], member[.isDst], member[...
Keyword[private] Keyword[static] Keyword[void] identifier[writeZonePropsByDOW] operator[SEP] identifier[Writer] identifier[writer] , Keyword[boolean] identifier[isDst] , identifier[String] identifier[tzname] , Keyword[int] identifier[fromOffset] , Keyword[int] identifier[toOffset] , Keyword[int] identifier[month] ...
public void processResetRequestAck(long dmeVersion, SendDispatcher sendDispatcher) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "processResetRequestAck", Long.valueOf(dmeVersion)); // Only consider non-stale request acks if (dmeVersion >= _latestDMEVersion) ...
class class_name[name] begin[{] method[processResetRequestAck, return_type[void], modifier[public], parameter[dmeVersion, sendDispatcher]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Sib...
Keyword[public] Keyword[void] identifier[processResetRequestAck] operator[SEP] Keyword[long] identifier[dmeVersion] , identifier[SendDispatcher] identifier[sendDispatcher] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SE...
protected static CertificateFactory getCertificateFactory() throws GeneralSecurityException { if (provider == null) { return CertificateFactory.getInstance("X.509"); } else { return CertificateFactory.getInstance("X.509", provider); } }
class class_name[name] begin[{] method[getCertificateFactory, return_type[type[CertificateFactory]], modifier[static protected], parameter[]] begin[{] if[binary_operation[member[.provider], ==, literal[null]]] begin[{] return[call[CertificateFactory.getInstance, parameter[literal["X...
Keyword[protected] Keyword[static] identifier[CertificateFactory] identifier[getCertificateFactory] operator[SEP] operator[SEP] Keyword[throws] identifier[GeneralSecurityException] { Keyword[if] operator[SEP] identifier[provider] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[Cert...
public static void transform( Se3_F64 se, Point3D_F64[] points , int start , int length ) { for (int i = 0; i < length; i++) { Point3D_F64 p = points[i+start]; transform(se,p,p); } }
class class_name[name] begin[{] method[transform, return_type[void], modifier[public static], parameter[se, points, start, length]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Membe...
Keyword[public] Keyword[static] Keyword[void] identifier[transform] operator[SEP] identifier[Se3_F64] identifier[se] , identifier[Point3D_F64] operator[SEP] operator[SEP] identifier[points] , Keyword[int] identifier[start] , Keyword[int] identifier[length] operator[SEP] { Keyword[for] operator[SEP] Keyword[in...
static <K, V> PageMetadata<K, V> mergeTokenAndQueryParameters(String paginationToken, final ViewQueryParameters<K, V> initialParameters) { // Decode the base64 token into JSON String json = new String(Base64.decodeBase64(paginationToken), Charset.forName("UTF-8")); // Get a suitable Gson, ...
class class_name[name] begin[{] method[mergeTokenAndQueryParameters, return_type[type[PageMetadata]], modifier[static], parameter[paginationToken, initialParameters]] begin[{] local_variable[type[String], json] local_variable[type[Gson], paginationTokenGson] local_variable[type[Paginati...
Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[PageMetadata] operator[<] identifier[K] , identifier[V] operator[>] identifier[mergeTokenAndQueryParameters] operator[SEP] identifier[String] identifier[paginationToken] , Keyword[final] identifier[ViewQueryParameters] operator[<] ident...