code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final Ix<T> switchIfEmpty(Iterable<? extends T> other) { return new IxSwitchIfEmpty<T>(this, nullCheck(other, "other is null")); }
class class_name[name] begin[{] method[switchIfEmpty, return_type[type[Ix]], modifier[final public], parameter[other]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MethodInvocation(arguments=[MemberReference(member=other, postfix...
Keyword[public] Keyword[final] identifier[Ix] operator[<] identifier[T] operator[>] identifier[switchIfEmpty] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[other] operator[SEP] { Keyword[return] Keyword[new] identifier[IxSwitchIfEmpty] operator[<...
public void filter(MediaPacket packet, String args) { VideoJNI.BitStreamFilter_filter__SWIG_1(swigCPtr, this, MediaPacket.getCPtr(packet), packet, args); }
class class_name[name] begin[{] method[filter, return_type[void], modifier[public], parameter[packet, args]] begin[{] call[VideoJNI.BitStreamFilter_filter__SWIG_1, parameter[member[.swigCPtr], THIS[], call[MediaPacket.getCPtr, parameter[member[.packet]]], member[.packet], member[.args]]] en...
Keyword[public] Keyword[void] identifier[filter] operator[SEP] identifier[MediaPacket] identifier[packet] , identifier[String] identifier[args] operator[SEP] { identifier[VideoJNI] operator[SEP] identifier[BitStreamFilter_filter__SWIG_1] operator[SEP] identifier[swigCPtr] , Keyword[this] , identifier[MediaPac...
@Override public <T> T createMockComponent(final Class<T> type) { if (Modifier.isFinal(type.getModifiers()) || type.isPrimitive()) { LOG.warn("Skipping creation of a mock : {} as it is final or primitive type.", type.getSimpleName()); return null; } T mock = createNiceMock(type); return mock; }
class class_name[name] begin[{] method[createMockComponent, return_type[type[T]], modifier[public], parameter[type]] begin[{] if[binary_operation[call[Modifier.isFinal, parameter[call[type.getModifiers, parameter[]]]], ||, call[type.isPrimitive, parameter[]]]] begin[{] c...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[createMockComponent] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[Modifier] operator[SEP]...
@Override public long read(OutputStream stream, long length, long position) throws IOException { if (url != null) { if (tempFile != null) { return readFromFile(stream, tempFile, length, position); } else if (spoolContent) { spoolCont...
class class_name[name] begin[{] method[read, return_type[type[long]], modifier[public], parameter[stream, length, position]] begin[{] if[binary_operation[member[.url], !=, literal[null]]] begin[{] if[binary_operation[member[.tempFile], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[read] operator[SEP] identifier[OutputStream] identifier[stream] , Keyword[long] identifier[length] , Keyword[long] identifier[position] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[url] o...
boolean setParentNodeReference(N newParent, boolean fireEvent) { final N oldParent = getParentNode(); if (newParent == oldParent) { return false; } this.parent = (newParent == null) ? null : new WeakReference<>(newParent); if (!fireEvent) { return true; } firePropertyParentChanged(oldParent, newPare...
class class_name[name] begin[{] method[setParentNodeReference, return_type[type[boolean]], modifier[default], parameter[newParent, fireEvent]] begin[{] local_variable[type[N], oldParent] if[binary_operation[member[.newParent], ==, member[.oldParent]]] begin[{] return[literal...
Keyword[boolean] identifier[setParentNodeReference] operator[SEP] identifier[N] identifier[newParent] , Keyword[boolean] identifier[fireEvent] operator[SEP] { Keyword[final] identifier[N] identifier[oldParent] operator[=] identifier[getParentNode] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[S...
public ServiceFuture<List<JobExecutionInner>> listByJobExecutionAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final UUID jobExecutionId, final ListOperationCallback<JobExecutionInner> serviceCallback) { return AzureServiceFuture.fromPageResponse(...
class class_name[name] begin[{] method[listByJobExecutionAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, serviceCallback]] begin[{] return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listByJobExecut...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[JobExecutionInner] operator[>] operator[>] identifier[listByJobExecutionAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[serverName] , Keywor...
public static long calc(String arg0, String arg1, String format, DateUnit dateUnit) { try { return calc(getTime(format, arg0), getTime(format, arg1), dateUnit); } catch (Exception e) { logger.error("日期计算出错", e); return -1; } }
class class_name[name] begin[{] method[calc, return_type[type[long]], modifier[public static], parameter[arg0, arg1, format, dateUnit]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=format, postfix_operators=[], pr...
Keyword[public] Keyword[static] Keyword[long] identifier[calc] operator[SEP] identifier[String] identifier[arg0] , identifier[String] identifier[arg1] , identifier[String] identifier[format] , identifier[DateUnit] identifier[dateUnit] operator[SEP] { Keyword[try] { Keyword[return] identifier[calc] ...
public final void removeNavigationListener(@NonNull final NavigationListener listener) { Condition.INSTANCE.ensureNotNull(listener, "The listener may not be null"); navigationListeners.remove(listener); }
class class_name[name] begin[{] method[removeNavigationListener, return_type[void], modifier[final public], parameter[listener]] begin[{] call[Condition.INSTANCE.ensureNotNull, parameter[member[.listener], literal["The listener may not be null"]]] call[navigationListeners.remove...
Keyword[public] Keyword[final] Keyword[void] identifier[removeNavigationListener] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[NavigationListener] identifier[listener] operator[SEP] { identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[ensureNotNull] ope...
protected <S extends Storable> CustomStorableCodec<S> createCodec(Class<S> type, boolean isMaster, Layout layout, RawSupport support) throws SupportException { return createCodec(type, isMaster, layout); }
class class_name[name] begin[{] method[createCodec, return_type[type[CustomStorableCodec]], modifier[protected], parameter[type, isMaster, layout, support]] begin[{] return[call[.createCodec, parameter[member[.type], member[.isMaster], member[.layout]]]] end[}] END[}]
Keyword[protected] operator[<] identifier[S] Keyword[extends] identifier[Storable] operator[>] identifier[CustomStorableCodec] operator[<] identifier[S] operator[>] identifier[createCodec] operator[SEP] identifier[Class] operator[<] identifier[S] operator[>] identifier[type] , Keyword[boolean] identifier[isMaster] , ...
public static byte[] toBytes(String str) { if (str == null) { return null; } //optimization for ascii strings byte[] ascii = toAsciiBytes(str); if(ascii != null) return ascii; ByteBuffer bb = UTF8_CHARSET.encode(str); return getBytes(...
class class_name[name] begin[{] method[toBytes, return_type[type[byte]], modifier[public static], parameter[str]] begin[{] if[binary_operation[member[.str], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[byte]...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[toBytes] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Ke...
protected void entryRemoved (V entry) { if (entry != null) { _size -= _sizer.computeSize(entry); if (_remobs != null) { _remobs.removedFromMap(this, entry); } } }
class class_name[name] begin[{] method[entryRemoved, return_type[void], modifier[protected], parameter[entry]] begin[{] if[binary_operation[member[.entry], !=, literal[null]]] begin[{] assign[member[._size], call[_sizer.computeSize, parameter[member[.entry]]]] ...
Keyword[protected] Keyword[void] identifier[entryRemoved] operator[SEP] identifier[V] identifier[entry] operator[SEP] { Keyword[if] operator[SEP] identifier[entry] operator[!=] Other[null] operator[SEP] { identifier[_size] operator[-=] identifier[_sizer] operator[SEP] identifier[computeSize] operator[...
@Override public void close() { Iterator<Map.Entry<Path, OpenCryptoFile>> iter = openCryptoFiles.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<Path, OpenCryptoFile> entry = iter.next(); iter.remove(); // remove before invoking close() to avoid concurrent modification of this iterator by #clo...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Iterator], iter] while[call[iter.hasNext, parameter[]]] begin[{] local_variable[type[Map], entry] call[iter.remove, parameter[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { identifier[Iterator] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Path] , identifier[OpenCryptoFile] operator[>] operator[>] identifier[iter] operator[=] identif...
public static String get(String name, String defaultValue) { return PropertyManager.getProperty(name, defaultValue); }
class class_name[name] begin[{] method[get, return_type[type[String]], modifier[public static], parameter[name, defaultValue]] begin[{] return[call[PropertyManager.getProperty, parameter[member[.name], member[.defaultValue]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[get] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[PropertyManager] operator[SEP] identifier[getProperty] operator[SEP] identifier[name] , identifier[defaul...
public static List<String> parseLetterLinks(Document aDocument) { final List<String> results = new ArrayList<>(); Elements links = aDocument.select(LETTER_URL_SELECTOR); links.forEach(element -> { if (element.hasAttr(ATTRIBUTE_HREF)) { String subpage = element.attr(ATTRIBUTE_HREF); re...
class class_name[name] begin[{] method[parseLetterLinks, return_type[type[List]], modifier[public static], parameter[aDocument]] begin[{] local_variable[type[List], results] local_variable[type[Elements], links] call[links.forEach, parameter[LambdaExpression(body=[IfStatement(co...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[parseLetterLinks] operator[SEP] identifier[Document] identifier[aDocument] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[results] operator[=] Keyword[new]...
@Override public SqlContext setupSqlBulkInsertContext(final SqlAgent agent, final SqlContext context, final TableMetadata metadata, final Class<? extends Object> entityType, final int numberOfRecords) { return context.setSql(buildBulkInsertSQL(metadata, entityType, agent.getSqlConfig(), numberOfRecords)); }
class class_name[name] begin[{] method[setupSqlBulkInsertContext, return_type[type[SqlContext]], modifier[public], parameter[agent, context, metadata, entityType, numberOfRecords]] begin[{] return[call[context.setSql, parameter[call[.buildBulkInsertSQL, parameter[member[.metadata], member[.entityType],...
annotation[@] identifier[Override] Keyword[public] identifier[SqlContext] identifier[setupSqlBulkInsertContext] operator[SEP] Keyword[final] identifier[SqlAgent] identifier[agent] , Keyword[final] identifier[SqlContext] identifier[context] , Keyword[final] identifier[TableMetadata] identifier[metadata] , Keyword[fin...
public static Preference createMultiTextPreference( String name, String label, TextDisplay displayType, List<String> defaultValues) { MultiTextPreferenceInput input = new MultiTextPreferenceInput(); input.getDefaults().addAll(defaultValues); input.setDisplay(displayType); Pr...
class class_name[name] begin[{] method[createMultiTextPreference, return_type[type[Preference]], modifier[public static], parameter[name, label, displayType, defaultValues]] begin[{] local_variable[type[MultiTextPreferenceInput], input] call[input.getDefaults, parameter[]] ...
Keyword[public] Keyword[static] identifier[Preference] identifier[createMultiTextPreference] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[label] , identifier[TextDisplay] identifier[displayType] , identifier[List] operator[<] identifier[String] operator[>] identifier[defaultValue...
public boolean initSession(BranchReferralInitListener callback, Activity activity) { if (customReferrableSettings_ == CUSTOM_REFERRABLE_SETTINGS.USE_DEFAULT) { initUserSessionInternal(callback, activity, true); } else { boolean isReferrable = customReferrableSettings_ == CUSTOM_R...
class class_name[name] begin[{] method[initSession, return_type[type[boolean]], modifier[public], parameter[callback, activity]] begin[{] if[binary_operation[member[.customReferrableSettings_], ==, member[CUSTOM_REFERRABLE_SETTINGS.USE_DEFAULT]]] begin[{] call[.initUserS...
Keyword[public] Keyword[boolean] identifier[initSession] operator[SEP] identifier[BranchReferralInitListener] identifier[callback] , identifier[Activity] identifier[activity] operator[SEP] { Keyword[if] operator[SEP] identifier[customReferrableSettings_] operator[==] identifier[CUSTOM_REFERRABLE_SETTINGS] opera...
public static <T> Func1<Iterable<T>, SolidList<T>> toSolidList(final int initialCapacity) { return new Func1<Iterable<T>, SolidList<T>>() { @Override public SolidList<T> call(Iterable<T> iterable) { ArrayList<T> list = new ArrayList<>(initialCapacity); for...
class class_name[name] begin[{] method[toSolidList, return_type[type[Func1]], modifier[public static], parameter[initialCapacity]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], dec...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Func1] operator[<] identifier[Iterable] operator[<] identifier[T] operator[>] , identifier[SolidList] operator[<] identifier[T] operator[>] operator[>] identifier[toSolidList] operator[SEP] Keyword[final] Keyword[int] identifier[initialCa...
public Object put(Object name, Object value) { return super.put(name,LazyList.add(null,value)); }
class class_name[name] begin[{] method[put, return_type[type[Object]], modifier[public], parameter[name, value]] begin[{] return[SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[Literal(postfi...
Keyword[public] identifier[Object] identifier[put] operator[SEP] identifier[Object] identifier[name] , identifier[Object] identifier[value] operator[SEP] { Keyword[return] Keyword[super] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[LazyList] operator[SEP] identifier[add] operator[S...
public Response deleteOutcast(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/outcasts/" + jid, new HashMap<String, String>()); }
class class_name[name] begin[{] method[deleteOutcast, return_type[type[Response]], modifier[public], parameter[roomName, jid]] begin[{] return[call[restClient.delete, parameter[binary_operation[binary_operation[binary_operation[literal["chatrooms/"], +, member[.roomName]], +, literal["/outcasts/"]], +,...
Keyword[public] identifier[Response] identifier[deleteOutcast] operator[SEP] identifier[String] identifier[roomName] , identifier[String] identifier[jid] operator[SEP] { Keyword[return] identifier[restClient] operator[SEP] identifier[delete] operator[SEP] literal[String] operator[+] identifier[roomName] operato...
private void registerObjectRead(Object obj, int handle, boolean unshared) throws IOException { if (unshared) { obj = UNSHARED_OBJ; } int index = handle - ObjectStreamConstants.baseWireHandle; int size = objectsRead.size(); // ObjectOutputStream sometimes wastes a hand...
class class_name[name] begin[{] method[registerObjectRead, return_type[void], modifier[private], parameter[obj, handle, unshared]] begin[{] if[member[.unshared]] begin[{] assign[member[.obj], member[.UNSHARED_OBJ]] else begin[{] None end[}] local_...
Keyword[private] Keyword[void] identifier[registerObjectRead] operator[SEP] identifier[Object] identifier[obj] , Keyword[int] identifier[handle] , Keyword[boolean] identifier[unshared] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[unshared] operator[SEP] { ...
public static <T> T queryScalar(String sql, Class<T> scalarType, Object[] params) throws SQLStatementNotFoundException, YankSQLException { return queryScalar(YankPoolManager.DEFAULT_POOL_NAME, sql, scalarType, params); }
class class_name[name] begin[{] method[queryScalar, return_type[type[T]], modifier[public static], parameter[sql, scalarType, params]] begin[{] return[call[.queryScalar, parameter[member[YankPoolManager.DEFAULT_POOL_NAME], member[.sql], member[.scalarType], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[queryScalar] operator[SEP] identifier[String] identifier[sql] , identifier[Class] operator[<] identifier[T] operator[>] identifier[scalarType] , identifier[Object] operator[SEP] operator[SEP] identifier[params] operator[SEP...
public long count(double minX, double minY, double maxX, double maxY) { return query(minX, minY, maxX, maxY).count(); }
class class_name[name] begin[{] method[count, return_type[type[long]], modifier[public], parameter[minX, minY, maxX, maxY]] begin[{] return[call[.query, parameter[member[.minX], member[.minY], member[.maxX], member[.maxY]]]] end[}] END[}]
Keyword[public] Keyword[long] identifier[count] operator[SEP] Keyword[double] identifier[minX] , Keyword[double] identifier[minY] , Keyword[double] identifier[maxX] , Keyword[double] identifier[maxY] operator[SEP] { Keyword[return] identifier[query] operator[SEP] identifier[minX] , identifier[minY] , identi...
private O setResources(ResourceSpec resources) { Preconditions.checkNotNull(resources, "The resources must be not null."); Preconditions.checkArgument(resources.isValid(), "The values in resources must be not less than 0."); this.minResources = resources; this.preferredResources = resources; @SuppressWarnin...
class class_name[name] begin[{] method[setResources, return_type[type[O]], modifier[private], parameter[resources]] begin[{] call[Preconditions.checkNotNull, parameter[member[.resources], literal["The resources must be not null."]]] call[Preconditions.checkArgument, parameter[ca...
Keyword[private] identifier[O] identifier[setResources] operator[SEP] identifier[ResourceSpec] identifier[resources] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[resources] , literal[String] operator[SEP] operator[SEP] identifier[Preconditions] operat...
public EClass getIfcCurvatureMeasure() { if (ifcCurvatureMeasureEClass == null) { ifcCurvatureMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(662); } return ifcCurvatureMeasureEClass; }
class class_name[name] begin[{] method[getIfcCurvatureMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCurvatureMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcCurvatureMeasureEClass], Cast(expressi...
Keyword[public] identifier[EClass] identifier[getIfcCurvatureMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCurvatureMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCurvatureMeasureEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ...
public void autoLoad() throws IOException { // Try load the file from beside jcseg-core-{version}.jar. File proFile = new File(Util.getJarHome(this)+"/"+LEX_PROPERTY_FILE); if ( proFile.exists() ) { pFile = proFile.getAbsolutePath(); load(proFile.getAbsolutePath()); ...
class class_name[name] begin[{] method[autoLoad, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[File], proFile] if[call[proFile.exists, parameter[]]] begin[{] assign[member[.pFile], call[proFile.getAbsolutePath, parameter[]]] ...
Keyword[public] Keyword[void] identifier[autoLoad] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] identifier[proFile] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[Util] operator[SEP] identifier[getJarHome] operator[SEP] Keyword[this] operator[SEP] ope...
@Override public boolean promptRequiredMissingValues(ShellImpl shell) throws InterruptedException { Map<String, InputComponent<?, ?>> inputs = getController().getInputs(); if (hasMissingRequiredInputValues(inputs.values())) { UIOutput output = shell.getOutput(); if (!getContext...
class class_name[name] begin[{] method[promptRequiredMissingValues, return_type[type[boolean]], modifier[public], parameter[shell]] begin[{] local_variable[type[Map], inputs] if[call[.hasMissingRequiredInputValues, parameter[call[inputs.values, parameter[]]]]] begin[{] local...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[promptRequiredMissingValues] operator[SEP] identifier[ShellImpl] identifier[shell] operator[SEP] Keyword[throws] identifier[InterruptedException] { identifier[Map] operator[<] identifier[String] , identifier[InputComponent] operator[...
public ContainerDefinition withVolumesFrom(VolumeFrom... volumesFrom) { if (this.volumesFrom == null) { setVolumesFrom(new com.amazonaws.internal.SdkInternalList<VolumeFrom>(volumesFrom.length)); } for (VolumeFrom ele : volumesFrom) { this.volumesFrom.add(ele); } ...
class class_name[name] begin[{] method[withVolumesFrom, return_type[type[ContainerDefinition]], modifier[public], parameter[volumesFrom]] begin[{] if[binary_operation[THIS[member[None.volumesFrom]], ==, literal[null]]] begin[{] call[.setVolumesFrom, parameter[ClassCreato...
Keyword[public] identifier[ContainerDefinition] identifier[withVolumesFrom] operator[SEP] identifier[VolumeFrom] operator[...] identifier[volumesFrom] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[volumesFrom] operator[==] Other[null] operator[SEP] { identifier[setVo...
public OvhOvhAccount ovhAccount_ovhAccountId_GET(String ovhAccountId) throws IOException { String qPath = "/me/ovhAccount/{ovhAccountId}"; StringBuilder sb = path(qPath, ovhAccountId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhOvhAccount.class); }
class class_name[name] begin[{] method[ovhAccount_ovhAccountId_GET, return_type[type[OvhOvhAccount]], modifier[public], parameter[ovhAccountId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.c...
Keyword[public] identifier[OvhOvhAccount] identifier[ovhAccount_ovhAccountId_GET] operator[SEP] identifier[String] identifier[ovhAccountId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[s...
public Map<CategoryId, Category> getCategories() { Map<CategoryId, Category> map = new HashMap<>(); for (Rule rule : getAllRules()) { map.put(rule.getCategory().getId(), rule.getCategory()); } return map; }
class class_name[name] begin[{] method[getCategories, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], map] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[],...
Keyword[public] identifier[Map] operator[<] identifier[CategoryId] , identifier[Category] operator[>] identifier[getCategories] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[CategoryId] , identifier[Category] operator[>] identifier[map] operator[=] Keyword[new] identifier[HashMap] operat...
public List<ModuleRef> getModules() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final List<ModuleRef> moduleRefs = new ArrayList<>(); for (final ClasspathElement classpathElement : classpathOrder) { ...
class class_name[name] begin[{] method[getModules, return_type[type[List]], modifier[public], parameter[]] begin[{] if[call[closed.get, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selecto...
Keyword[public] identifier[List] operator[<] identifier[ModuleRef] operator[>] identifier[getModules] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[closed] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgum...
public void addTangoChangeListener(ITangoChangeListener listener, String attrName, boolean stateless) throws DevFailed { addTangoChangeListener(listener, attrName, new String[0], stateless); }
class class_name[name] begin[{] method[addTangoChangeListener, return_type[void], modifier[public], parameter[listener, attrName, stateless]] begin[{] call[.addTangoChangeListener, parameter[member[.listener], member[.attrName], ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_oper...
Keyword[public] Keyword[void] identifier[addTangoChangeListener] operator[SEP] identifier[ITangoChangeListener] identifier[listener] , identifier[String] identifier[attrName] , Keyword[boolean] identifier[stateless] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[addTangoChangeListener] operat...
public void addUnrestoredMsgId(long msgId) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "addUnrestoredMsgId", new Long(msgId)); unrestoredMsgIds.add(new Long(msgId)); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "addUnr...
class class_name[name] begin[{] method[addUnrestoredMsgId, return_type[void], modifier[public], parameter[msgId]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[membe...
Keyword[public] Keyword[void] identifier[addUnrestoredMsgId] operator[SEP] Keyword[long] identifier[msgId] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEna...
public void addLocatorReference(String locatorReference, By locator) { Map<String, By> objectReferenceMap = getObjectReferenceMap(By.class); objectReferenceMap.put(locatorReference, locator); }
class class_name[name] begin[{] method[addLocatorReference, return_type[void], modifier[public], parameter[locatorReference, locator]] begin[{] local_variable[type[Map], objectReferenceMap] call[objectReferenceMap.put, parameter[member[.locatorReference], member[.locator]]] end[}] E...
Keyword[public] Keyword[void] identifier[addLocatorReference] operator[SEP] identifier[String] identifier[locatorReference] , identifier[By] identifier[locator] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[By] operator[>] identifier[objectReferenceMap] operator[=] identifier[getO...
public void add(Block key, Block value, int keyPosition, int valuePosition) { if (!keyExists(key, keyPosition)) { addKey(key, keyPosition); if (value.isNull(valuePosition)) { valueBlockBuilder.appendNull(); } else { valueType.ap...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[key, value, keyPosition, valuePosition]] begin[{] if[call[.keyExists, parameter[member[.key], member[.keyPosition]]]] begin[{] call[.addKey, parameter[member[.key], member[.keyPosi...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[Block] identifier[key] , identifier[Block] identifier[value] , Keyword[int] identifier[keyPosition] , Keyword[int] identifier[valuePosition] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[keyExists] operator[SEP] identifi...
@Override public String interpret(String property) { try { property = Cryption.interpret(property); if(property != null && property.indexOf(Styles.DEFAULT_PREFIX) > -1) { property = Text.format(property,this.getProperties()); } } catch (FormatException e) { throw new Con...
class class_name[name] begin[{] method[interpret, return_type[type[String]], modifier[public], parameter[property]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), t...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[interpret] operator[SEP] identifier[String] identifier[property] operator[SEP] { Keyword[try] { identifier[property] operator[=] identifier[Cryption] operator[SEP] identifier[interpret] operator[SEP] identifier[property] ...
public Set<IntEntry<V>> intEntrySet () { return new AbstractSet<IntEntry<V>>() { @Override public int size () { return _size; } @Override public Iterator<IntEntry<V>> iterator () { return new IntEntryIterator(); } }; ...
class class_name[name] begin[{] method[intEntrySet, return_type[type[Set]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MemberReference(member=_size, postfix_ope...
Keyword[public] identifier[Set] operator[<] identifier[IntEntry] operator[<] identifier[V] operator[>] operator[>] identifier[intEntrySet] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractSet] operator[<] identifier[IntEntry] operator[<] identifier[V] operator[>] operator[>] operator...
public HttpHeaders setBasicAuthentication(String username, String password) { String userPass = Preconditions.checkNotNull(username) + ":" + Preconditions.checkNotNull(password); String encoded = Base64.encodeBase64String(StringUtils.getBytesUtf8(userPass)); return setAuthorization("Basic " + encode...
class class_name[name] begin[{] method[setBasicAuthentication, return_type[type[HttpHeaders]], modifier[public], parameter[username, password]] begin[{] local_variable[type[String], userPass] local_variable[type[String], encoded] return[call[.setAuthorization, parameter[binary_operation...
Keyword[public] identifier[HttpHeaders] identifier[setBasicAuthentication] operator[SEP] identifier[String] identifier[username] , identifier[String] identifier[password] operator[SEP] { identifier[String] identifier[userPass] operator[=] identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator...
@Override public void dissect(final Parsable<?> parsable, final String inputname) throws DissectionFailure { final ParsedField field = parsable.getParsableField(INPUT_TYPE, inputname); final String fieldValue = field.getValue().getString(); if (fieldValue == null || fieldValue.isEmpty() || ...
class class_name[name] begin[{] method[dissect, return_type[void], modifier[public], parameter[parsable, inputname]] begin[{] local_variable[type[ParsedField], field] local_variable[type[String], fieldValue] if[binary_operation[binary_operation[binary_operation[member[.fieldValu...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[dissect] operator[SEP] Keyword[final] identifier[Parsable] operator[<] operator[?] operator[>] identifier[parsable] , Keyword[final] identifier[String] identifier[inputname] operator[SEP] Keyword[throws] identifier[DissectionFailure] { ...
public MessageListResult v2GetMessageList(int count, String begin_time, String end_time) throws APIConnectionException, APIRequestException { if(count <= 0 || count > 1000) { throw new IllegalArgumentException("count must more than 0 and less than 1001"); } String reques...
class class_name[name] begin[{] method[v2GetMessageList, return_type[type[MessageListResult]], modifier[public], parameter[count, begin_time, end_time]] begin[{] if[binary_operation[binary_operation[member[.count], <=, literal[0]], ||, binary_operation[member[.count], >, literal[1000]]]] begin[...
Keyword[public] identifier[MessageListResult] identifier[v2GetMessageList] operator[SEP] Keyword[int] identifier[count] , identifier[String] identifier[begin_time] , identifier[String] identifier[end_time] operator[SEP] Keyword[throws] identifier[APIConnectionException] , identifier[APIRequestException] { Key...
protected ResultSetMapper createResultSetMapper(final ResultSet resultSet) { final Map<String, ColumnData> columnAliases = sqlgen != null ? sqlgen.getColumnData() : null; return new DefaultResultSetMapper(dbOom, resultSet, columnAliases, cacheEntities, this); }
class class_name[name] begin[{] method[createResultSetMapper, return_type[type[ResultSetMapper]], modifier[protected], parameter[resultSet]] begin[{] local_variable[type[Map], columnAliases] return[ClassCreator(arguments=[MemberReference(member=dbOom, postfix_operators=[], prefix_operators=[], ...
Keyword[protected] identifier[ResultSetMapper] identifier[createResultSetMapper] operator[SEP] Keyword[final] identifier[ResultSet] identifier[resultSet] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[ColumnData] operator[>] identifier[columnAliases] operator[=] ident...
public static void convolve(Kernel2D_F32 kernel, GrayF32 image, GrayF32 dest , int skip ) { checkParameters(image, dest, skip); if( kernel.width >= image.width ) { ConvolveDownNormalizedNaive.convolve(kernel,image,dest,skip); } else { ConvolveImageDownNoBorder.convolve(kernel,image,dest,skip); ConvolveD...
class class_name[name] begin[{] method[convolve, return_type[void], modifier[public static], parameter[kernel, image, dest, skip]] begin[{] call[.checkParameters, parameter[member[.image], member[.dest], member[.skip]]] if[binary_operation[member[kernel.width], >=, member[image....
Keyword[public] Keyword[static] Keyword[void] identifier[convolve] operator[SEP] identifier[Kernel2D_F32] identifier[kernel] , identifier[GrayF32] identifier[image] , identifier[GrayF32] identifier[dest] , Keyword[int] identifier[skip] operator[SEP] { identifier[checkParameters] operator[SEP] identifier[image...
@SuppressWarnings("unchecked") public M with(final String key, final short value) { validate(key, value); data.putValue(key, value); return (M) this; }
class class_name[name] begin[{] method[with, return_type[type[M]], modifier[public], parameter[key, value]] begin[{] call[.validate, parameter[member[.key], member[.value]]] call[data.putValue, parameter[member[.key], member[.value]]] return[Cast(expression=This(postfix_...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[M] identifier[with] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] Keyword[short] identifier[value] operator[SEP] { identifier[validate] operator[SEP] identifier[ke...
public static KeySet range(KeyRange range) { return new KeySet(false, ImmutableList.<Key>of(), ImmutableList.of(range)); }
class class_name[name] begin[{] method[range, return_type[type[KeySet]], modifier[public static], parameter[range]] begin[{] return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), MethodInvocation(arguments=[], member=ImmutableList,...
Keyword[public] Keyword[static] identifier[KeySet] identifier[range] operator[SEP] identifier[KeyRange] identifier[range] operator[SEP] { Keyword[return] Keyword[new] identifier[KeySet] operator[SEP] literal[boolean] , identifier[ImmutableList] operator[SEP] operator[<] identifier[Key] operator[>] identifier[of...
public static void loadDefaultsFromMetadata(Context context) { defaultsLoaded = true; if (context == null) { return; } ApplicationInfo ai = null; try { ai = context.getPackageManager().getApplicationInfo( context.getPackageName(), Pac...
class class_name[name] begin[{] method[loadDefaultsFromMetadata, return_type[void], modifier[public static], parameter[context]] begin[{] assign[member[.defaultsLoaded], literal[true]] if[binary_operation[member[.context], ==, literal[null]]] begin[{] return[None] ...
Keyword[public] Keyword[static] Keyword[void] identifier[loadDefaultsFromMetadata] operator[SEP] identifier[Context] identifier[context] operator[SEP] { identifier[defaultsLoaded] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { ...
public String[] getPossibleTangoHosts(Database database) { String[] tangoHosts = null; try { DeviceData deviceData = database.command_inout("DbGetCSDbServerList"); tangoHosts = deviceData.extractStringArray(); } catch (DevFailed e) { String desc = e.errors[0]....
class class_name[name] begin[{] method[getPossibleTangoHosts, return_type[type[String]], modifier[public], parameter[database]] begin[{] local_variable[type[String], tangoHosts] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializ...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getPossibleTangoHosts] operator[SEP] identifier[Database] identifier[database] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[tangoHosts] operator[=] Other[null] operator[SEP] Keyword[try] { identifier...
private static String stripDotSuffix(final String value) { if (value == null) { return null; } final int index = value.indexOf("."); if (index != -1) { return value.substring(0, index); } return value; }
class class_name[name] begin[{] method[stripDotSuffix, return_type[type[String]], modifier[private static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_varia...
Keyword[private] Keyword[static] identifier[String] identifier[stripDotSuffix] operator[SEP] Keyword[final] identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } ...
@Override public Sequence<?> getBJSequence() { String seq = getSeqResSequence(); Sequence<AminoAcidCompound> s = null; try { s = new ProteinSequence(seq); } catch (CompoundNotFoundException e) { logger.error("Could not create sequence object from seqres sequence. Some unknown compound: {}",e.getMessa...
class class_name[name] begin[{] method[getBJSequence, return_type[type[Sequence]], modifier[public], parameter[]] begin[{] local_variable[type[String], seq] local_variable[type[Sequence], s] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member...
annotation[@] identifier[Override] Keyword[public] identifier[Sequence] operator[<] operator[?] operator[>] identifier[getBJSequence] operator[SEP] operator[SEP] { identifier[String] identifier[seq] operator[=] identifier[getSeqResSequence] operator[SEP] operator[SEP] operator[SEP] identifier[Sequence] operator[...
private void addFragment(@NonNull final WizardDialog.Builder builder, final int index) { Bundle arguments = new Bundle(); arguments.putInt(DialogFragment.INDEX_EXTRA, index); CharSequence title = shouldHeaderBeShown() ? null : String.format(getString(R.string.dialog_tab_text), in...
class class_name[name] begin[{] method[addFragment, return_type[void], modifier[private], parameter[builder, index]] begin[{] local_variable[type[Bundle], arguments] call[arguments.putInt, parameter[member[DialogFragment.INDEX_EXTRA], member[.index]]] local_variable[type[CharSeq...
Keyword[private] Keyword[void] identifier[addFragment] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[WizardDialog] operator[SEP] identifier[Builder] identifier[builder] , Keyword[final] Keyword[int] identifier[index] operator[SEP] { identifier[Bundle] identifier[arguments] operator[=...
public static <T> IncreasingQualityDataSourceSupplier<T> create( List<Supplier<DataSource<T>>> dataSourceSuppliers, boolean dataSourceLazy) { return new IncreasingQualityDataSourceSupplier<T>(dataSourceSuppliers, dataSourceLazy); }
class class_name[name] begin[{] method[create, return_type[type[IncreasingQualityDataSourceSupplier]], modifier[public static], parameter[dataSourceSuppliers, dataSourceLazy]] begin[{] return[ClassCreator(arguments=[MemberReference(member=dataSourceSuppliers, postfix_operators=[], prefix_operators=[], ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[IncreasingQualityDataSourceSupplier] operator[<] identifier[T] operator[>] identifier[create] operator[SEP] identifier[List] operator[<] identifier[Supplier] operator[<] identifier[DataSource] operator[<] identifier[T] operator[>] operator...
private void updateFields() { if (featureInfo != null) { // Create a header field for each attribute definition: List<ListGridField> fields = new ArrayList<ListGridField>(); if (idInTable) { ListGridField gridField = new ListGridField(ID_NAME, "ID"); gridField.setAlign(Alignment.LEFT); gridField....
class class_name[name] begin[{] method[updateFields, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.featureInfo], !=, literal[null]]] begin[{] local_variable[type[List], fields] if[member[.idInTable]] begin[{] ...
Keyword[private] Keyword[void] identifier[updateFields] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[featureInfo] operator[!=] Other[null] operator[SEP] { identifier[List] operator[<] identifier[ListGridField] operator[>] identifier[fields] operator[=] Keyword[new] identifier[Arr...
public static synchronized Roster getInstanceFor(XMPPConnection connection) { Roster roster = INSTANCES.get(connection); if (roster == null) { roster = new Roster(connection); INSTANCES.put(connection, roster); } return roster; }
class class_name[name] begin[{] method[getInstanceFor, return_type[type[Roster]], modifier[synchronized public static], parameter[connection]] begin[{] local_variable[type[Roster], roster] if[binary_operation[member[.roster], ==, literal[null]]] begin[{] assign[m...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[Roster] identifier[getInstanceFor] operator[SEP] identifier[XMPPConnection] identifier[connection] operator[SEP] { identifier[Roster] identifier[roster] operator[=] identifier[INSTANCES] operator[SEP] identifier[get] operator[SEP] identifier[connec...
@Override public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) { if (isResolvable(base)) { Map<?, ?> map = (Map<?, ?>) base; final Iterator<?> keys = map.keySet().iterator(); return new Iterator<FeatureDescriptor>() { public boolean hasNext() { return keys.hasNex...
class class_name[name] begin[{] method[getFeatureDescriptors, return_type[type[Iterator]], modifier[public], parameter[context, base]] begin[{] if[call[.isResolvable, parameter[member[.base]]]] begin[{] local_variable[type[Map], map] local_variable[type[Iterator], keys] ...
annotation[@] identifier[Override] Keyword[public] identifier[Iterator] operator[<] identifier[FeatureDescriptor] operator[>] identifier[getFeatureDescriptors] operator[SEP] identifier[ELContext] identifier[context] , identifier[Object] identifier[base] operator[SEP] { Keyword[if] operator[SEP] identifier[isRes...
public static <C extends SOABase> AbstractACModel loadACModel(String acFile, Map<String, C> availableContexts, boolean validateModel) throws Exception { ACModelProperties testProperties = new ACModelProperties(); try { testProperties.load(acFile); } catch (IOException e) { ...
class class_name[name] begin[{] method[loadACModel, return_type[type[AbstractACModel]], modifier[public static], parameter[acFile, availableContexts, validateModel]] begin[{] local_variable[type[ACModelProperties], testProperties] TryStatement(block=[StatementExpression(expression=MethodInvocat...
Keyword[public] Keyword[static] operator[<] identifier[C] Keyword[extends] identifier[SOABase] operator[>] identifier[AbstractACModel] identifier[loadACModel] operator[SEP] identifier[String] identifier[acFile] , identifier[Map] operator[<] identifier[String] , identifier[C] operator[>] identifier[availableContexts] ...
@Override public V remove(final Object key) { return doWithWriteLock(c -> c.remove(key)); }
class class_name[name] begin[{] method[remove, return_type[type[V]], modifier[public], parameter[key]] begin[{] return[call[.doWithWriteLock, parameter[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], me...
annotation[@] identifier[Override] Keyword[public] identifier[V] identifier[remove] operator[SEP] Keyword[final] identifier[Object] identifier[key] operator[SEP] { Keyword[return] identifier[doWithWriteLock] operator[SEP] identifier[c] operator[->] identifier[c] operator[SEP] identifier[remove] operator[SEP] ide...
@Override public TServerTransport getTransport() throws TTransportException { if (serverSocket == null) { TSSLTransportParameters params = getServerConfiguration().getSslTransportParameters(); serverSocket = params == null ? new TServerSocket(getServerPort()) : TSSLTransportFactory.getServerSocket(getServ...
class class_name[name] begin[{] method[getTransport, return_type[type[TServerTransport]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.serverSocket], ==, literal[null]]] begin[{] local_variable[type[TSSLTransportParameters], params] ass...
annotation[@] identifier[Override] Keyword[public] identifier[TServerTransport] identifier[getTransport] operator[SEP] operator[SEP] Keyword[throws] identifier[TTransportException] { Keyword[if] operator[SEP] identifier[serverSocket] operator[==] Other[null] operator[SEP] { identifier[TSSLTransportPar...
public JmxMessage attribute(String name, Object value, Class<?> valueType) { if (mbeanInvocation == null) { throw new CitrusRuntimeException("Invalid access to attribute for JMX message"); } ManagedBeanInvocation.Attribute attribute = new ManagedBeanInvocation.Attribute(); a...
class class_name[name] begin[{] method[attribute, return_type[type[JmxMessage]], modifier[public], parameter[name, value, valueType]] begin[{] if[binary_operation[member[.mbeanInvocation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix...
Keyword[public] identifier[JmxMessage] identifier[attribute] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] , identifier[Class] operator[<] operator[?] operator[>] identifier[valueType] operator[SEP] { Keyword[if] operator[SEP] identifier[mbeanInvocation] operator[==] ...
private Map<Key<?>, String> getAllInvalidKeys(DependencyExplorerOutput output) { Map<Key<?>, String> invalidKeys = new LinkedHashMap<Key<?>, String>(); // Look for errors in the nodes, and either report the error (if its required) or remove the // node (if its optional). for (Entry<Key<?>, String> ...
class class_name[name] begin[{] method[getAllInvalidKeys, return_type[type[Map]], modifier[private], parameter[output]] begin[{] local_variable[type[Map], invalidKeys] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvoc...
Keyword[private] identifier[Map] operator[<] identifier[Key] operator[<] operator[?] operator[>] , identifier[String] operator[>] identifier[getAllInvalidKeys] operator[SEP] identifier[DependencyExplorerOutput] identifier[output] operator[SEP] { identifier[Map] operator[<] identifier[Key] operator[<] operator[?...
public final EObject entryRuleDisjunction() throws RecognitionException { EObject current = null; EObject iv_ruleDisjunction = null; try { // InternalXtext.g:1758:52: (iv_ruleDisjunction= ruleDisjunction EOF ) // InternalXtext.g:1759:2: iv_ruleDisjunction= ruleDisjunct...
class class_name[name] begin[{] method[entryRuleDisjunction, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleDisjunction] TryStatement(block=[BlockStatement(label=None, statements=[Stat...
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleDisjunction] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleDisjunction] operator[=] Other[nul...
private List<From> findFrom(SQLTableSource from) { //zhongshu-comment class1.isAssignableFrom(class2) class2是不是class1的子类或者子接口 //改成用instanceof 应该也行吧:from instanceof SQLExprTableSource boolean isSqlExprTable = from.getClass().isAssignableFrom(SQLExprTableSource.class); if (isSqlExprTable)...
class class_name[name] begin[{] method[findFrom, return_type[type[List]], modifier[private], parameter[from]] begin[{] local_variable[type[boolean], isSqlExprTable] if[member[.isSqlExprTable]] begin[{] local_variable[type[SQLExprTableSource], fromExpr] local_vari...
Keyword[private] identifier[List] operator[<] identifier[From] operator[>] identifier[findFrom] operator[SEP] identifier[SQLTableSource] identifier[from] operator[SEP] { Keyword[boolean] identifier[isSqlExprTable] operator[=] identifier[from] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operato...
public void setSpendTarget(com.google.api.ads.adwords.axis.v201809.cm.Money spendTarget) { this.spendTarget = spendTarget; }
class class_name[name] begin[{] method[setSpendTarget, return_type[void], modifier[public], parameter[spendTarget]] begin[{] assign[THIS[member[None.spendTarget]], member[.spendTarget]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setSpendTarget] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP...
public static lbwlm_lbvserver_binding[] get_filtered(nitro_service service, String wlmname, filtervalue[] filter) throws Exception{ lbwlm_lbvserver_binding obj = new lbwlm_lbvserver_binding(); obj.set_wlmname(wlmname); options option = new options(); option.set_filter(filter); lbwlm_lbvserver_binding[] respon...
class class_name[name] begin[{] method[get_filtered, return_type[type[lbwlm_lbvserver_binding]], modifier[public static], parameter[service, wlmname, filter]] begin[{] local_variable[type[lbwlm_lbvserver_binding], obj] call[obj.set_wlmname, parameter[member[.wlmname]]] local_var...
Keyword[public] Keyword[static] identifier[lbwlm_lbvserver_binding] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[wlmname] , identifier[filtervalue] operator[SEP] operator[SEP] identifier[filter] operator[SEP] Keyword[t...
public static LuceneQueryFactory forSingleColumnIndex( ValueFactories factories, Map<String, Object> variables, Map<String, PropertyType> propertyTypesByName ) { return new SingleColumnQueryFact...
class class_name[name] begin[{] method[forSingleColumnIndex, return_type[type[LuceneQueryFactory]], modifier[public static], parameter[factories, variables, propertyTypesByName]] begin[{] return[ClassCreator(arguments=[MemberReference(member=factories, postfix_operators=[], prefix_operators=[], qualifi...
Keyword[public] Keyword[static] identifier[LuceneQueryFactory] identifier[forSingleColumnIndex] operator[SEP] identifier[ValueFactories] identifier[factories] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[variables] , identifier[Map] operator[<] identifier[String] , id...
public void checkin(SocketDestination destination, ClientRequestExecutor clientRequestExecutor) { try { queuedPool.checkin(destination, clientRequestExecutor); } catch(Exception e) { throw new VoldemortException("Failure while checking in socket for " + destination ...
class class_name[name] begin[{] method[checkin, return_type[void], modifier[public], parameter[destination, clientRequestExecutor]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=destination, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[void] identifier[checkin] operator[SEP] identifier[SocketDestination] identifier[destination] , identifier[ClientRequestExecutor] identifier[clientRequestExecutor] operator[SEP] { Keyword[try] { identifier[queuedPool] operator[SEP] identifier[checkin] operator[SEP] identifier[...
public void load(String antecedent, Engine engine) { FuzzyLite.logger().log(Level.FINE, "Antecedent: {0}", antecedent); unload(); setText(antecedent); if (antecedent.trim().isEmpty()) { throw new RuntimeException("[syntax error] antecedent is empty"); } /* ...
class class_name[name] begin[{] method[load, return_type[void], modifier[public], parameter[antecedent, engine]] begin[{] call[FuzzyLite.logger, parameter[]] call[.unload, parameter[]] call[.setText, parameter[member[.antecedent]]] if[call[anteced...
Keyword[public] Keyword[void] identifier[load] operator[SEP] identifier[String] identifier[antecedent] , identifier[Engine] identifier[engine] operator[SEP] { identifier[FuzzyLite] operator[SEP] identifier[logger] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator...
public FessMessages addConstraintsEanMessage(String property, String type) { assertPropertyNotNull(property); add(property, new UserMessage(CONSTRAINTS_EAN_MESSAGE, type)); return this; }
class class_name[name] begin[{] method[addConstraintsEanMessage, return_type[type[FessMessages]], modifier[public], parameter[property, type]] begin[{] call[.assertPropertyNotNull, parameter[member[.property]]] call[.add, parameter[member[.property], ClassCreator(arguments=[Memb...
Keyword[public] identifier[FessMessages] identifier[addConstraintsEanMessage] operator[SEP] identifier[String] identifier[property] , identifier[String] identifier[type] operator[SEP] { identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] operator[SEP] identifier[add] operator[SEP]...
private static Short[] short2DToShort( short[][] dd ) { Short[] d = new Short[ dd.length*dd[0].length ]; for ( int n = 0; n < dd[0].length; n++ ) { for ( int m = 0; m < dd.length; m++ ) { d[ m+n*dd.length ] = dd[m][n]; } } ...
class class_name[name] begin[{] method[short2DToShort, return_type[type[Short]], modifier[private static], parameter[dd]] begin[{] local_variable[type[Short], d] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression...
Keyword[private] Keyword[static] identifier[Short] operator[SEP] operator[SEP] identifier[short2DToShort] operator[SEP] Keyword[short] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[dd] operator[SEP] { identifier[Short] operator[SEP] operator[SEP] identifier[d] operator[=] Keyword[new] identi...
protected AsImpl getAsForRoute(int dpc, int opc, int si, int sls) { // TODO : Loadsharing needs to be implemented String key = (new StringBuffer().append(dpc).append(KEY_SEPARATOR).append(opc).append(KEY_SEPARATOR).append(si)) .toString(); RouteAsImpl routeAs = route.get(key); ...
class class_name[name] begin[{] method[getAsForRoute, return_type[type[AsImpl]], modifier[protected], parameter[dpc, opc, si, sls]] begin[{] local_variable[type[String], key] local_variable[type[RouteAsImpl], routeAs] if[binary_operation[member[.routeAs], ==, literal[null]]] beg...
Keyword[protected] identifier[AsImpl] identifier[getAsForRoute] operator[SEP] Keyword[int] identifier[dpc] , Keyword[int] identifier[opc] , Keyword[int] identifier[si] , Keyword[int] identifier[sls] operator[SEP] { identifier[String] identifier[key] operator[=] operator[SEP] Keyword[new] identifier[StringBuff...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "solidProperty") public JAXBElement<SolidPropertyType> createSolidProperty(SolidPropertyType value) { return new JAXBElement<SolidPropertyType>(_SolidProperty_QNAME, SolidPropertyType.class, null, value); }
class class_name[name] begin[{] method[createSolidProperty, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_SolidProperty_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postf...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[SolidPropertyType] operator[>] identifier[createSolidProperty] operator[SEP] identifier[So...
public void marshall(LinkAttributeUpdate linkAttributeUpdate, ProtocolMarshaller protocolMarshaller) { if (linkAttributeUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(linkAttributeUpdate.ge...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[linkAttributeUpdate, protocolMarshaller]] begin[{] if[binary_operation[member[.linkAttributeUpdate], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[LinkAttributeUpdate] identifier[linkAttributeUpdate] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[linkAttributeUpdate] operator[==] Other[null] operator[SEP] { ...
@Override public T havingBodyEqualTo(final String requestBody) { Validate.notNull(requestBody, "requestBody cannot be null, use an empty string instead"); return havingBody(equalTo(requestBody)); }
class class_name[name] begin[{] method[havingBodyEqualTo, return_type[type[T]], modifier[public], parameter[requestBody]] begin[{] call[Validate.notNull, parameter[member[.requestBody], literal["requestBody cannot be null, use an empty string instead"]]] return[call[.havingBody, paramet...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[havingBodyEqualTo] operator[SEP] Keyword[final] identifier[String] identifier[requestBody] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[requestBody] , literal[String] operator[SEP] oper...
public static CProduct findByGroupId_First(long groupId, OrderByComparator<CProduct> orderByComparator) throws com.liferay.commerce.product.exception.NoSuchCProductException { return getPersistence().findByGroupId_First(groupId, orderByComparator); }
class class_name[name] begin[{] method[findByGroupId_First, return_type[type[CProduct]], modifier[public static], parameter[groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CProduct] identifier[findByGroupId_First] operator[SEP] Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CProduct] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay]...
public static DMatrix2x2 transpose( DMatrix2x2 input , DMatrix2x2 output ) { if( input == null ) input = new DMatrix2x2(); output.a11 = input.a11; output.a12 = input.a21; output.a21 = input.a12; output.a22 = input.a22; return output; }
class class_name[name] begin[{] method[transpose, return_type[type[DMatrix2x2]], modifier[public static], parameter[input, output]] begin[{] if[binary_operation[member[.input], ==, literal[null]]] begin[{] assign[member[.input], ClassCreator(arguments=[], body=None, constructor_type...
Keyword[public] Keyword[static] identifier[DMatrix2x2] identifier[transpose] operator[SEP] identifier[DMatrix2x2] identifier[input] , identifier[DMatrix2x2] identifier[output] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] identifier[input] operator[=] Keyword...
public void read_lock( Key<Job> job_key ) { if( _key != null ) { Log.debug("shared-read-lock "+_key+" by job "+job_key); new ReadLock(job_key).invoke(_key); } }
class class_name[name] begin[{] method[read_lock, return_type[void], modifier[public], parameter[job_key]] begin[{] if[binary_operation[member[._key], !=, literal[null]]] begin[{] call[Log.debug, parameter[binary_operation[binary_operation[binary_operation[literal["share...
Keyword[public] Keyword[void] identifier[read_lock] operator[SEP] identifier[Key] operator[<] identifier[Job] operator[>] identifier[job_key] operator[SEP] { Keyword[if] operator[SEP] identifier[_key] operator[!=] Other[null] operator[SEP] { identifier[Log] operator[SEP] identifier[debug] operator[SEP...
@Override public String listPop(String listName, boolean block) { return listPop(listName, block, DEFAULT_READ_TIMEOUT_SEC); }
class class_name[name] begin[{] method[listPop, return_type[type[String]], modifier[public], parameter[listName, block]] begin[{] return[call[.listPop, parameter[member[.listName], member[.block], member[.DEFAULT_READ_TIMEOUT_SEC]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[listPop] operator[SEP] identifier[String] identifier[listName] , Keyword[boolean] identifier[block] operator[SEP] { Keyword[return] identifier[listPop] operator[SEP] identifier[listName] , identifier[block] , identifier[DEFAULT_R...
public ApiResponse<ApiSuccessResponse> getInteractionDetailsFromWorkbinWithHttpInfo(String interactionId, GetDetailsData getDetailsData) throws ApiException { com.squareup.okhttp.Call call = getInteractionDetailsFromWorkbinValidateBeforeCall(interactionId, getDetailsData, null, null); Type localVarRetur...
class class_name[name] begin[{] method[getInteractionDetailsFromWorkbinWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[interactionId, getDetailsData]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient....
Keyword[public] identifier[ApiResponse] operator[<] identifier[ApiSuccessResponse] operator[>] identifier[getInteractionDetailsFromWorkbinWithHttpInfo] operator[SEP] identifier[String] identifier[interactionId] , identifier[GetDetailsData] identifier[getDetailsData] operator[SEP] Keyword[throws] identifier[ApiExceptio...
public static boolean equalsTopElement(final LinkedList<String> stack, final String str) { if(stack.isEmpty()) { return false; } return stack.peekFirst().equals(str); }
class class_name[name] begin[{] method[equalsTopElement, return_type[type[boolean]], modifier[public static], parameter[stack, str]] begin[{] if[call[stack.isEmpty, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] return[call[stack.peek...
Keyword[public] Keyword[static] Keyword[boolean] identifier[equalsTopElement] operator[SEP] Keyword[final] identifier[LinkedList] operator[<] identifier[String] operator[>] identifier[stack] , Keyword[final] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[stack] operator[...
public void updateDatabase(String pool) { Map<String, String> dbPoolData = new HashMap<String, String>(m_dbPools.get(pool)); // display info System.out.println("JDBC Driver: " + getDbDriver(pool)); System.out.println("JDBC Connection Url: " + getDbUrl(pool)); ...
class class_name[name] begin[{] method[updateDatabase, return_type[void], modifier[public], parameter[pool]] begin[{] local_variable[type[Map], dbPoolData] call[System.out.println, parameter[binary_operation[literal["JDBC Driver: "], +, call[.getDbDriver, parameter[member...
Keyword[public] Keyword[void] identifier[updateDatabase] operator[SEP] identifier[String] identifier[pool] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[dbPoolData] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identif...
private void addPostParams(final Request request) { if (qualityScore != null) { request.addPostParam("QualityScore", qualityScore.toString()); } if (issue != null) { for (Feedback.Issues prop : issue) { request.addPostParam("Issue", prop.toString()); ...
class class_name[name] begin[{] method[addPostParams, return_type[void], modifier[private], parameter[request]] begin[{] if[binary_operation[member[.qualityScore], !=, literal[null]]] begin[{] call[request.addPostParam, parameter[literal["QualityScore"], call[qualityScor...
Keyword[private] Keyword[void] identifier[addPostParams] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] { Keyword[if] operator[SEP] identifier[qualityScore] operator[!=] Other[null] operator[SEP] { identifier[request] operator[SEP] identifier[addPostParam] operator[...
public static void getShare (Activity context, ShareGetListener listener, long id) { proxy.getShare(context, listener, id); }
class class_name[name] begin[{] method[getShare, return_type[void], modifier[public static], parameter[context, listener, id]] begin[{] call[proxy.getShare, parameter[member[.context], member[.listener], member[.id]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[getShare] operator[SEP] identifier[Activity] identifier[context] , identifier[ShareGetListener] identifier[listener] , Keyword[long] identifier[id] operator[SEP] { identifier[proxy] operator[SEP] identifier[getShare] operator[SEP] identifier[context] , ...
public static NumericEqualsCondition.Builder eq(String variable, long expectedValue) { return NumericEqualsCondition.builder().variable(variable).expectedValue(expectedValue); }
class class_name[name] begin[{] method[eq, return_type[type[NumericEqualsCondition]], modifier[public static], parameter[variable, expectedValue]] begin[{] return[call[NumericEqualsCondition.builder, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[NumericEqualsCondition] operator[SEP] identifier[Builder] identifier[eq] operator[SEP] identifier[String] identifier[variable] , Keyword[long] identifier[expectedValue] operator[SEP] { Keyword[return] identifier[NumericEqualsCondition] operator[SEP] identifier[builder]...
public SearchResponse searchAllWithTargetCount(String index, String type) { return searchAllWithTargetCount(index, type, null, null); }
class class_name[name] begin[{] method[searchAllWithTargetCount, return_type[type[SearchResponse]], modifier[public], parameter[index, type]] begin[{] return[call[.searchAllWithTargetCount, parameter[member[.index], member[.type], literal[null], literal[null]]]] end[}] END[}]
Keyword[public] identifier[SearchResponse] identifier[searchAllWithTargetCount] operator[SEP] identifier[String] identifier[index] , identifier[String] identifier[type] operator[SEP] { Keyword[return] identifier[searchAllWithTargetCount] operator[SEP] identifier[index] , identifier[type] , Other[null] , Othe...
public boolean containsMember(Address mbr) { if(mbr == null || members == null) return false; for(Address member: members) if(Objects.equals(member, mbr)) return true; return false; }
class class_name[name] begin[{] method[containsMember, return_type[type[boolean]], modifier[public], parameter[mbr]] begin[{] if[binary_operation[binary_operation[member[.mbr], ==, literal[null]], ||, binary_operation[member[.members], ==, literal[null]]]] begin[{] return[literal[false]] ...
Keyword[public] Keyword[boolean] identifier[containsMember] operator[SEP] identifier[Address] identifier[mbr] operator[SEP] { Keyword[if] operator[SEP] identifier[mbr] operator[==] Other[null] operator[||] identifier[members] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] K...
public static double toDouble(String s) { if ("+inf".equals(s) || "inf".equals(s)) { return Double.POSITIVE_INFINITY; } if ("-inf".equals(s)) { return Double.NEGATIVE_INFINITY; } return Double.parseDouble(s); }
class class_name[name] begin[{] method[toDouble, return_type[type[double]], modifier[public static], parameter[s]] begin[{] if[binary_operation[literal["+inf"], ||, literal["inf"]]] begin[{] return[member[Double.POSITIVE_INFINITY]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] Keyword[double] identifier[toDouble] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[s] operator[SEP] operator[||] literal[String] operator[SEP] identifier[equals] op...
public void setTxtColor(Integer newTxtColor) { Integer oldTxtColor = txtColor; txtColor = newTxtColor; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.LND__TXT_COLOR, oldTxtColor, txtColor)); }
class class_name[name] begin[{] method[setTxtColor, return_type[void], modifier[public], parameter[newTxtColor]] begin[{] local_variable[type[Integer], oldTxtColor] assign[member[.txtColor], member[.newTxtColor]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setTxtColor] operator[SEP] identifier[Integer] identifier[newTxtColor] operator[SEP] { identifier[Integer] identifier[oldTxtColor] operator[=] identifier[txtColor] operator[SEP] identifier[txtColor] operator[=] identifier[newTxtColor] operator[SEP] Keyword[if] operator[SE...
@Override public String path() { try { return new URI(request.uri()).getRawPath(); } catch (URISyntaxException e) { //NOSONAR // Should never be the case. return uri(); } }
class class_name[name] begin[{] method[path, return_type[type[String]], modifier[public], parameter[]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=uri, postfix_operators=[], prefix_operators=[], qualifier=request, selectors=[], t...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[path] operator[SEP] operator[SEP] { Keyword[try] { Keyword[return] Keyword[new] identifier[URI] operator[SEP] identifier[request] operator[SEP] identifier[uri] operator[SEP] operator[SEP] operator[SEP] operator[SEP] ident...
public void emitRecord(String contextName, String recordName, OutputRecord outRec) throws IOException { Calendar currentDate = Calendar.getInstance(); if (fileName != null) { if (currentDate.get(Calendar.DAY_OF_MONTH) != lastRecordDate.get(Calendar.DAY_OF_MONTH)) { // rotate to a new ...
class class_name[name] begin[{] method[emitRecord, return_type[void], modifier[public], parameter[contextName, recordName, outRec]] begin[{] local_variable[type[Calendar], currentDate] if[binary_operation[member[.fileName], !=, literal[null]]] begin[{] if[binary_...
Keyword[public] Keyword[void] identifier[emitRecord] operator[SEP] identifier[String] identifier[contextName] , identifier[String] identifier[recordName] , identifier[OutputRecord] identifier[outRec] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Calendar] identifier[currentDate] operator[=...
protected void submit() { CmsLoginMessage loginMessage = new CmsLoginMessage(); CmsLoginMessage beforeLoginMessage = new CmsLoginMessage(); try { m_formBinderAfter.writeBean(loginMessage); m_formBinderBefore.writeBean(beforeLoginMessage); OpenCms.getLoginMana...
class class_name[name] begin[{] method[submit, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[CmsLoginMessage], loginMessage] local_variable[type[CmsLoginMessage], beforeLoginMessage] TryStatement(block=[StatementExpression(expression=MethodInvocation(...
Keyword[protected] Keyword[void] identifier[submit] operator[SEP] operator[SEP] { identifier[CmsLoginMessage] identifier[loginMessage] operator[=] Keyword[new] identifier[CmsLoginMessage] operator[SEP] operator[SEP] operator[SEP] identifier[CmsLoginMessage] identifier[beforeLoginMessage] operator[=] Keyword[new]...
public static Integer getIntegerValue(QuerySolution resultRow, String variableName) { if (resultRow != null) { Resource res = resultRow.getResource(variableName); if (res != null && res.isLiteral()) { Literal val = res.asLiteral(); if (val != null) { ...
class class_name[name] begin[{] method[getIntegerValue, return_type[type[Integer]], modifier[public static], parameter[resultRow, variableName]] begin[{] if[binary_operation[member[.resultRow], !=, literal[null]]] begin[{] local_variable[type[Resource], res] ...
Keyword[public] Keyword[static] identifier[Integer] identifier[getIntegerValue] operator[SEP] identifier[QuerySolution] identifier[resultRow] , identifier[String] identifier[variableName] operator[SEP] { Keyword[if] operator[SEP] identifier[resultRow] operator[!=] Other[null] operator[SEP] { identifi...
public static void newRecord(HashMap m, String path) { if( path != null ) { String[] paths = path.split(","); int l = paths.length; for(int i=0; i < l; i++) { if( paths[i].contains("@") ) { String temp[] = paths[i].split("[@!]"); ...
class class_name[name] begin[{] method[newRecord, return_type[void], modifier[public static], parameter[m, path]] begin[{] if[binary_operation[member[.path], !=, literal[null]]] begin[{] local_variable[type[String], paths] local_variable[type[int], l] ForStat...
Keyword[public] Keyword[static] Keyword[void] identifier[newRecord] operator[SEP] identifier[HashMap] identifier[m] , identifier[String] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[path] operator[!=] Other[null] operator[SEP] { identifier[String] operator[SEP] operator[SEP] ...
public Resource addReference(Reference reference) { Resource resource = this.rdfWriter.getUri(Vocabulary.getReferenceUri(reference)); this.referenceQueue.add(reference); this.referenceSubjectQueue.add(resource); return resource; }
class class_name[name] begin[{] method[addReference, return_type[type[Resource]], modifier[public], parameter[reference]] begin[{] local_variable[type[Resource], resource] THIS[member[None.referenceQueue]call[None.add, parameter[member[.reference]]]] THIS[member[None.ref...
Keyword[public] identifier[Resource] identifier[addReference] operator[SEP] identifier[Reference] identifier[reference] operator[SEP] { identifier[Resource] identifier[resource] operator[=] Keyword[this] operator[SEP] identifier[rdfWriter] operator[SEP] identifier[getUri] operator[SEP] identifier[Vocabulary] ope...
public static IOException createCompositeException(Collection<IOException> innerExceptions) { checkArgument( innerExceptions != null && !innerExceptions.isEmpty(), "innerExceptions (%s) must be not null and contain at least one element", innerExceptions); Iterator<IOException> innerExceptionIte...
class class_name[name] begin[{] method[createCompositeException, return_type[type[IOException]], modifier[public static], parameter[innerExceptions]] begin[{] call[.checkArgument, parameter[binary_operation[binary_operation[member[.innerExceptions], !=, literal[null]], &&, call[innerExceptions....
Keyword[public] Keyword[static] identifier[IOException] identifier[createCompositeException] operator[SEP] identifier[Collection] operator[<] identifier[IOException] operator[>] identifier[innerExceptions] operator[SEP] { identifier[checkArgument] operator[SEP] identifier[innerExceptions] operator[!=] Other[null...
@Nonnull public Serializable serializeState () { final ICommonsMap <String, Object> aState = new CommonsHashMap <> (); for (final Map.Entry <String, Object> entry : m_aAttributes.entrySet ()) { final String sName = entry.getKey (); final Object aValue = entry.getValue (); if (aValue in...
class class_name[name] begin[{] method[serializeState, return_type[type[Serializable]], modifier[public], parameter[]] begin[{] local_variable[type[ICommonsMap], aState] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar...
annotation[@] identifier[Nonnull] Keyword[public] identifier[Serializable] identifier[serializeState] operator[SEP] operator[SEP] { Keyword[final] identifier[ICommonsMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[aState] operator[=] Keyword[new] identifier[CommonsHashMap] operat...
private File findPathResource(@NonNull String httpPath) { if ("/".equals(httpPath)) { File root = new File(mRootPath); return root.exists() ? root : null; } else { File sourceFile = new File(mRootPath, httpPath); if (sourceFile.exists()) { ...
class class_name[name] begin[{] method[findPathResource, return_type[type[File]], modifier[private], parameter[httpPath]] begin[{] if[literal["/"]] begin[{] local_variable[type[File], root] return[TernaryExpression(condition=MethodInvocation(arguments=[], member=exists, ...
Keyword[private] identifier[File] identifier[findPathResource] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[httpPath] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[httpPath] operator[SEP] operator[SEP] { ...
public Matrix4f lookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ, Matrix4f dest) { if ((properties & PROPERTY_IDENTITY) != 0) return dest.setLookAt(eyeX, eyeY, eyeZ, centerX, ...
class class_name[name] begin[{] method[lookAt, return_type[type[Matrix4f]], modifier[public], parameter[eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ, dest]] begin[{] if[binary_operation[binary_operation[member[.properties], &, member[.PROPERTY_IDENTITY]], !=, literal[0]]] begin[{]...
Keyword[public] identifier[Matrix4f] identifier[lookAt] operator[SEP] Keyword[float] identifier[eyeX] , Keyword[float] identifier[eyeY] , Keyword[float] identifier[eyeZ] , Keyword[float] identifier[centerX] , Keyword[float] identifier[centerY] , Keyword[float] identifier[centerZ] , Keyword[float] identifier[upX] ...
protected void releasing(ByteBuffer buffer) { if (buffer != null && buffer.isDirect()) { DirectByteBufferHelper directByteBufferHelper = this.directByteBufferHelper.get(); if (directByteBufferHelper != null) { directByteBufferHelper.releaseDirectByteBuffer(buffer); ...
class class_name[name] begin[{] method[releasing, return_type[void], modifier[protected], parameter[buffer]] begin[{] if[binary_operation[binary_operation[member[.buffer], !=, literal[null]], &&, call[buffer.isDirect, parameter[]]]] begin[{] local_variable[type[DirectByteBufferHelpe...
Keyword[protected] Keyword[void] identifier[releasing] operator[SEP] identifier[ByteBuffer] identifier[buffer] operator[SEP] { Keyword[if] operator[SEP] identifier[buffer] operator[!=] Other[null] operator[&&] identifier[buffer] operator[SEP] identifier[isDirect] operator[SEP] operator[SEP] operator[SEP] { ...
private static void copyStreamWithoutClosing( InputStream in, OutputStream out ) throws IOException { final int bufferSize = 4096; byte[] b = new byte[ bufferSize ]; int n; while ( ( n = in.read( b ) ) != - 1 ) { out.write( b, 0, n ); } }
class class_name[name] begin[{] method[copyStreamWithoutClosing, return_type[void], modifier[private static], parameter[in, out]] begin[{] local_variable[type[int], bufferSize] local_variable[type[byte], b] local_variable[type[int], n] while[binary_operation[assign[membe...
Keyword[private] Keyword[static] Keyword[void] identifier[copyStreamWithoutClosing] operator[SEP] identifier[InputStream] identifier[in] , identifier[OutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[int] identifier[bufferSize] operator[=] Other[4096] o...
private boolean isAceExcluded(final List<AceFlag> aceFlags, final AceFlag excludedFlag) { boolean res = false; if (excludedFlag != null) { // aceFlags could be null if the ACE applies to 'this object only' and has no other flags set if (aceFlags != null && !aceFlags.isEmpty() && ...
class class_name[name] begin[{] method[isAceExcluded, return_type[type[boolean]], modifier[private], parameter[aceFlags, excludedFlag]] begin[{] local_variable[type[boolean], res] if[binary_operation[member[.excludedFlag], !=, literal[null]]] begin[{] if[binary_o...
Keyword[private] Keyword[boolean] identifier[isAceExcluded] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[AceFlag] operator[>] identifier[aceFlags] , Keyword[final] identifier[AceFlag] identifier[excludedFlag] operator[SEP] { Keyword[boolean] identifier[res] operator[=] literal[boolean] o...
protected void setSubject(Subject subject) { Subject currentSubject = this.subject; if (!(currentSubject == null && subject == null)) { this.subject = subject; if (currentThread() == ioThread) { notifySubjectChanged(subject); } else { ...
class class_name[name] begin[{] method[setSubject, return_type[void], modifier[protected], parameter[subject]] begin[{] local_variable[type[Subject], currentSubject] if[binary_operation[binary_operation[member[.currentSubject], ==, literal[null]], &&, binary_operation[member[.subject], ...
Keyword[protected] Keyword[void] identifier[setSubject] operator[SEP] identifier[Subject] identifier[subject] operator[SEP] { identifier[Subject] identifier[currentSubject] operator[=] Keyword[this] operator[SEP] identifier[subject] operator[SEP] Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[cur...
protected final FactoryAccountingEntries createPutFactoryAccountingEntries() throws Exception { FactoryAccountingEntries factory = new FactoryAccountingEntries(); factory.setDatabaseId(this.srvDatabase.getIdDatabase()); //assigning fully initialized object: this.factoriesMap .put(AccountingEnt...
class class_name[name] begin[{] method[createPutFactoryAccountingEntries, return_type[type[FactoryAccountingEntries]], modifier[final protected], parameter[]] begin[{] local_variable[type[FactoryAccountingEntries], factory] call[factory.setDatabaseId, parameter[THIS[member[None.srvDatab...
Keyword[protected] Keyword[final] identifier[FactoryAccountingEntries] identifier[createPutFactoryAccountingEntries] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[FactoryAccountingEntries] identifier[factory] operator[=] Keyword[new] identifier[FactoryAccountingEntries] operator[...