code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public void ensureCapacity(int capacity) { if (capacity > data.length) { int newCap = Math.max(data.length << 1, capacity); int[] tmp = new int[newCap]; System.arraycopy(data, 0, tmp, 0, data.length); data = tmp; } }
class class_name[name] begin[{] method[ensureCapacity, return_type[void], modifier[public], parameter[capacity]] begin[{] if[binary_operation[member[.capacity], >, member[data.length]]] begin[{] local_variable[type[int], newCap] local_variable[type[int], tmp] ...
Keyword[public] Keyword[void] identifier[ensureCapacity] operator[SEP] Keyword[int] identifier[capacity] operator[SEP] { Keyword[if] operator[SEP] identifier[capacity] operator[>] identifier[data] operator[SEP] identifier[length] operator[SEP] { Keyword[int] identifier[newCap] operator[=] identifier[M...
private void auditStatusWhenQualityGateDetailsFound(Map condition, CodeQualityAuditResponse codeQualityAuditResponse) { if (StringUtils.equalsIgnoreCase(condition.get("metric").toString(), CodeQualityMetricType.BLOCKER_VIOLATIONS.getType())) { codeQualityAuditResponse.addAuditStatus(CodeQualityAudit...
class class_name[name] begin[{] method[auditStatusWhenQualityGateDetailsFound, return_type[void], modifier[private], parameter[condition, codeQualityAuditResponse]] begin[{] if[call[StringUtils.equalsIgnoreCase, parameter[call[condition.get, parameter[literal["metric"]]], call[CodeQualityMetric...
Keyword[private] Keyword[void] identifier[auditStatusWhenQualityGateDetailsFound] operator[SEP] identifier[Map] identifier[condition] , identifier[CodeQualityAuditResponse] identifier[codeQualityAuditResponse] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[equalsIgnor...
public static List<HostAndPort> hostAndPorts(AbstractConfig config, String key) { return hostAndPorts(config, key, null); }
class class_name[name] begin[{] method[hostAndPorts, return_type[type[List]], modifier[public static], parameter[config, key]] begin[{] return[call[.hostAndPorts, parameter[member[.config], member[.key], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[HostAndPort] operator[>] identifier[hostAndPorts] operator[SEP] identifier[AbstractConfig] identifier[config] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[hostAndPorts] operator[SEP] identifier[config] , ...
protected void activate(ComponentContext compcontext) { if (TC.isDebugEnabled()) { Tr.debug(TC, "Activating " + this.getClass().getName()); } this.userTransaction.activate(compcontext); this.transactionManager.activate(compcontext); }
class class_name[name] begin[{] method[activate, return_type[void], modifier[protected], parameter[compcontext]] begin[{] if[call[TC.isDebugEnabled, parameter[]]] begin[{] call[Tr.debug, parameter[member[.TC], binary_operation[literal["Activating "], +, THIS[call[None.ge...
Keyword[protected] Keyword[void] identifier[activate] operator[SEP] identifier[ComponentContext] identifier[compcontext] operator[SEP] { Keyword[if] operator[SEP] identifier[TC] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[Tr] operator[SEP] identifier...
private LinkedList<Class> getClassesToDelete() { LinkedHashSet<Class> classesToDelete = new LinkedHashSet<Class>(); for (Object object : getObjects()) { classesToDelete.add(object.getClass()); } return new LinkedList<Class>(classesToDelete); }
class class_name[name] begin[{] method[getClassesToDelete, return_type[type[LinkedList]], modifier[private], parameter[]] begin[{] local_variable[type[LinkedHashSet], classesToDelete] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argume...
Keyword[private] identifier[LinkedList] operator[<] identifier[Class] operator[>] identifier[getClassesToDelete] operator[SEP] operator[SEP] { identifier[LinkedHashSet] operator[<] identifier[Class] operator[>] identifier[classesToDelete] operator[=] Keyword[new] identifier[LinkedHashSet] operator[<] identifier[...
public static Map duplicateMap(Map map, boolean doKeysLower, boolean deepCopy) throws PageException { if (doKeysLower) { Map newMap; try { newMap = (Map) ClassUtil.loadInstance(map.getClass()); } catch (ClassException e) { newMap = new HashMap(); } boolean inside = ThreadLocalDuplicat...
class class_name[name] begin[{] method[duplicateMap, return_type[type[Map]], modifier[public static], parameter[map, doKeysLower, deepCopy]] begin[{] if[member[.doKeysLower]] begin[{] local_variable[type[Map], newMap] TryStatement(block=[StatementExpression(expression=As...
Keyword[public] Keyword[static] identifier[Map] identifier[duplicateMap] operator[SEP] identifier[Map] identifier[map] , Keyword[boolean] identifier[doKeysLower] , Keyword[boolean] identifier[deepCopy] operator[SEP] Keyword[throws] identifier[PageException] { Keyword[if] operator[SEP] identifier[doKeysLower] o...
public FieldErrorBuilder variables(final String key, final Object value) { this.variables.put(key, value); return this; }
class class_name[name] begin[{] method[variables, return_type[type[FieldErrorBuilder]], modifier[public], parameter[key, value]] begin[{] THIS[member[None.variables]call[None.put, parameter[member[.key], member[.value]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[FieldErrorBuilder] identifier[variables] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[Object] identifier[value] operator[SEP] { Keyword[this] operator[SEP] identifier[variables] operator[SEP] identifier[put] operator[SEP] identifier[key] ...
@Override protected MtasDataItemDoubleFull getItem(int i) { if (i >= 0 && i < size) { return new MtasDataItemDoubleFull( ArrayUtils.toPrimitive(fullValueList[i]), hasSub() ? subCollectorListNextLevel[i] : null, getStatsItems(), sortType, sortDirection, errorNumber[i], errorList...
class class_name[name] begin[{] method[getItem, return_type[type[MtasDataItemDoubleFull]], modifier[protected], parameter[i]] begin[{] if[binary_operation[binary_operation[member[.i], >=, literal[0]], &&, binary_operation[member[.i], <, member[.size]]]] begin[{] return[ClassCreator(...
annotation[@] identifier[Override] Keyword[protected] identifier[MtasDataItemDoubleFull] identifier[getItem] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[>=] Other[0] operator[&&] identifier[i] operator[<] identifier[size] operator[SEP] { Ke...
public static String getKeyString(Server server, Query query, Result result, List<String> typeNames, String rootPrefix) { StringBuilder sb = new StringBuilder(); addRootPrefix(rootPrefix, sb); addAlias(server, sb); addSeparator(sb); addMBeanIdentifier(query, result, sb); addSeparator(sb); addTypeName(quer...
class class_name[name] begin[{] method[getKeyString, return_type[type[String]], modifier[public static], parameter[server, query, result, typeNames, rootPrefix]] begin[{] local_variable[type[StringBuilder], sb] call[.addRootPrefix, parameter[member[.rootPrefix], member[.sb]]] ...
Keyword[public] Keyword[static] identifier[String] identifier[getKeyString] operator[SEP] identifier[Server] identifier[server] , identifier[Query] identifier[query] , identifier[Result] identifier[result] , identifier[List] operator[<] identifier[String] operator[>] identifier[typeNames] , identifier[String] ident...
protected String getUniqueTargetNamespace(String targetNamespacePrefix, final String baseName) throws IOException { if (targetNamespacePrefix == null || targetNamespacePrefix.length() == 0) { return null; } if (baseName == null || baseName.length() == 0)...
class class_name[name] begin[{] method[getUniqueTargetNamespace, return_type[type[String]], modifier[protected], parameter[targetNamespacePrefix, baseName]] begin[{] if[binary_operation[binary_operation[member[.targetNamespacePrefix], ==, literal[null]], ||, binary_operation[call[targetNamespac...
Keyword[protected] identifier[String] identifier[getUniqueTargetNamespace] operator[SEP] identifier[String] identifier[targetNamespacePrefix] , Keyword[final] identifier[String] identifier[baseName] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[targetNamespacePrefi...
public JSONObject getJSONObject() { TextFile df = getDataFile(); if(df.exists()) { try { return JSONObject.fromObject(df.read()); } catch (JSONException | IOException e) { LOGGER.log(Level.SEVERE,"Failed to parse "+df,e); df.delete(...
class class_name[name] begin[{] method[getJSONObject, return_type[type[JSONObject]], modifier[public], parameter[]] begin[{] local_variable[type[TextFile], df] if[call[df.exists, parameter[]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments...
Keyword[public] identifier[JSONObject] identifier[getJSONObject] operator[SEP] operator[SEP] { identifier[TextFile] identifier[df] operator[=] identifier[getDataFile] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[df] operator[SEP] identifier[exists] operator[SEP] operator[SEP] op...
private String getTargetColumnName(String sourceColumnName, String alias) { String targetColumnName = alias; Schema obj = this.getMetadataColumnMap().get(sourceColumnName.toLowerCase()); if (obj == null) { targetColumnName = (targetColumnName == null ? "unknown" + this.unknownColumnCounter : targetCol...
class class_name[name] begin[{] method[getTargetColumnName, return_type[type[String]], modifier[private], parameter[sourceColumnName, alias]] begin[{] local_variable[type[String], targetColumnName] local_variable[type[Schema], obj] if[binary_operation[member[.obj], ==, literal[n...
Keyword[private] identifier[String] identifier[getTargetColumnName] operator[SEP] identifier[String] identifier[sourceColumnName] , identifier[String] identifier[alias] operator[SEP] { identifier[String] identifier[targetColumnName] operator[=] identifier[alias] operator[SEP] identifier[Schema] identifier[obj] ...
@Trivial public static String getSymbol(String s) { String outputSymbol = null; if (s != null) { if (s.length() > 3) { // ${} .. look for $ int pos = s.indexOf('$'); if (pos >= 0) { // look for { after $ ...
class class_name[name] begin[{] method[getSymbol, return_type[type[String]], modifier[public static], parameter[s]] begin[{] local_variable[type[String], outputSymbol] if[binary_operation[member[.s], !=, literal[null]]] begin[{] if[binary_operation[call[s.length,...
annotation[@] identifier[Trivial] Keyword[public] Keyword[static] identifier[String] identifier[getSymbol] operator[SEP] identifier[String] identifier[s] operator[SEP] { identifier[String] identifier[outputSymbol] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[s] operator[!=] Other[nu...
public java.util.List<AggregationAuthorization> getAggregationAuthorizations() { if (aggregationAuthorizations == null) { aggregationAuthorizations = new com.amazonaws.internal.SdkInternalList<AggregationAuthorization>(); } return aggregationAuthorizations; }
class class_name[name] begin[{] method[getAggregationAuthorizations, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.aggregationAuthorizations], ==, literal[null]]] begin[{] assign[member[.aggregationAuthorizations], ClassCrea...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[AggregationAuthorization] operator[>] identifier[getAggregationAuthorizations] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[aggregationAuthorizations] operator[==] Other[nul...
@Override public List<CPMeasurementUnit> findByG_T(long groupId, int type) { return findByG_T(groupId, type, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[findByG_T, return_type[type[List]], modifier[public], parameter[groupId, type]] begin[{] return[call[.findByG_T, parameter[member[.groupId], member[.type], member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CPMeasurementUnit] operator[>] identifier[findByG_T] operator[SEP] Keyword[long] identifier[groupId] , Keyword[int] identifier[type] operator[SEP] { Keyword[return] identifier[findByG_T] operator[SEP] identifier[groupId] ...
final static protected List<FileStatus> listStatus(JobContext job ) throws IOException { List<FileStatus> result = new ArrayList<FileStatus>(); Path[] dirs = getInputPaths(job); if (dirs.length == 0) { throw new IOException("No input paths specified in job"); ...
class class_name[name] begin[{] method[listStatus, return_type[type[List]], modifier[protected final static], parameter[job]] begin[{] local_variable[type[List], result] local_variable[type[Path], dirs] if[binary_operation[member[dirs.length], ==, literal[0]]] begin[{] ...
Keyword[final] Keyword[static] Keyword[protected] identifier[List] operator[<] identifier[FileStatus] operator[>] identifier[listStatus] operator[SEP] identifier[JobContext] identifier[job] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[FileStatus] operator[>] ide...
public EmbeddedMongoDB withVersion(Version.Main version) { Objects.requireNonNull(version, "version can not be null"); this.version = version; return this; }
class class_name[name] begin[{] method[withVersion, return_type[type[EmbeddedMongoDB]], modifier[public], parameter[version]] begin[{] call[Objects.requireNonNull, parameter[member[.version], literal["version can not be null"]]] assign[THIS[member[None.version]], member[.version...
Keyword[public] identifier[EmbeddedMongoDB] identifier[withVersion] operator[SEP] identifier[Version] operator[SEP] identifier[Main] identifier[version] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[version] , literal[String] operator[SEP] operator[SEP] Ke...
@Override public void addAttack(Attack attack) { logger.warn("Security attack " + attack.getName() + " triggered by user: " + attack.getUser().getUsername()); attacks.add(attack); super.notifyListeners(attack); }
class class_name[name] begin[{] method[addAttack, return_type[void], modifier[public], parameter[attack]] begin[{] call[logger.warn, parameter[binary_operation[binary_operation[binary_operation[literal["Security attack "], +, call[attack.getName, parameter[]]], +, literal[" triggered by user: "...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addAttack] operator[SEP] identifier[Attack] identifier[attack] operator[SEP] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] identifier[attack] operator[SEP] identifier[getName] operator[SEP]...
Method findBridgedMethod() { if (!bridgeMethod.isBridge()) { return bridgeMethod; } // Gather all methods with matching name and parameter size. List<Method> candidateMethods = reflect().methods().deep() .filter(new SimpleBridgeCandidatePredicate()) .from(bridgeMethod.getDeclaringC...
class class_name[name] begin[{] method[findBridgedMethod, return_type[type[Method]], modifier[default], parameter[]] begin[{] if[call[bridgeMethod.isBridge, parameter[]]] begin[{] return[member[.bridgeMethod]] else begin[{] None end[}] local_variable[type[Lis...
identifier[Method] identifier[findBridgedMethod] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[bridgeMethod] operator[SEP] identifier[isBridge] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[bridgeMethod] operator[SEP] } identifier...
@Override public void close() throws IOException { if (this.in != null) { this.in.close(); } if (!this.tempFile.delete()) { LOG.warn("Cannot delete tempFile: " + this.tempFile.getAbsolutePath()); throw new IOException("Cannot delete tempFile: " + this.tempFile.getAbsolutePath()); } ; }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.in]], !=, literal[null]]] begin[{] THIS[member[None.in]call[None.close, parameter[]]] else begin[{] None end[}] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[in] operator[!=] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[...
public static CmsXmlContainerPage unmarshal(CmsObject cms, CmsFile file, boolean keepEncoding) throws CmsXmlException { return unmarshal(cms, file, keepEncoding, false); }
class class_name[name] begin[{] method[unmarshal, return_type[type[CmsXmlContainerPage]], modifier[public static], parameter[cms, file, keepEncoding]] begin[{] return[call[.unmarshal, parameter[member[.cms], member[.file], member[.keepEncoding], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CmsXmlContainerPage] identifier[unmarshal] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsFile] identifier[file] , Keyword[boolean] identifier[keepEncoding] operator[SEP] Keyword[throws] identifier[CmsXmlException] { Keyword[return] identifier[unm...
public static Short checkNull(Short value, short elseValue) { return checkNull(value, Short.valueOf(elseValue)); }
class class_name[name] begin[{] method[checkNull, return_type[type[Short]], modifier[public static], parameter[value, elseValue]] begin[{] return[call[.checkNull, parameter[member[.value], call[Short.valueOf, parameter[member[.elseValue]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Short] identifier[checkNull] operator[SEP] identifier[Short] identifier[value] , Keyword[short] identifier[elseValue] operator[SEP] { Keyword[return] identifier[checkNull] operator[SEP] identifier[value] , identifier[Short] operator[SEP] identifier[valueOf] operator[S...
public String convert(Long theMoney, Long theKopeiki) { if (theMoney == null) { throw new IllegalArgumentException("theMoney is null"); } if (theKopeiki == null) { throw new IllegalArgumentException("theKopeiki is null"); } StringBuilder money2str = new St...
class class_name[name] begin[{] method[convert, return_type[type[String]], modifier[public], parameter[theMoney, theKopeiki]] begin[{] if[binary_operation[member[.theMoney], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
Keyword[public] identifier[String] identifier[convert] operator[SEP] identifier[Long] identifier[theMoney] , identifier[Long] identifier[theKopeiki] operator[SEP] { Keyword[if] operator[SEP] identifier[theMoney] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalAr...
@Override public void onError(InvocationContext context, Exception error) { AsyncHandler<Object> asyncHandler = getAsyncHandler(context); if(asyncHandler != null) { try { asyncHandler.onError(error instanceof InvocationException? (InvocationException)error :InvocationException.newInstanc...
class class_name[name] begin[{] method[onError, return_type[void], modifier[public], parameter[context, error]] begin[{] local_variable[type[AsyncHandler], asyncHandler] if[binary_operation[member[.asyncHandler], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpr...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onError] operator[SEP] identifier[InvocationContext] identifier[context] , identifier[Exception] identifier[error] operator[SEP] { identifier[AsyncHandler] operator[<] identifier[Object] operator[>] identifier[asyncHandler] operator[=] ...
protected void renderDebugBoundingBox(Graphics2D context) { /* */java.awt.Color previousColor = context.getColor(); context.setColor(java.awt.Color.RED); context.draw(getBoundingBox()); context.setColor(previousColor);/* */ }
class class_name[name] begin[{] method[renderDebugBoundingBox, return_type[void], modifier[protected], parameter[context]] begin[{] local_variable[type[java], previousColor] call[context.setColor, parameter[member[java.awt.Color.RED]]] call[context.draw, parameter[call[....
Keyword[protected] Keyword[void] identifier[renderDebugBoundingBox] operator[SEP] identifier[Graphics2D] identifier[context] operator[SEP] { identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[Color] identifier[previousColor] operator[=] identifier[context] operator[SEP] identifier[getColor] ...
public static Field getDeclaredField(Class clazz, String fieldName) throws NoSuchFieldException { Field f = getField(clazz, fieldName); if (f == null) { // Try the parent class Class parent = clazz.getSuperclass(); if (parent != null) { return getDeclaredField(parent, fieldNa...
class class_name[name] begin[{] method[getDeclaredField, return_type[type[Field]], modifier[public static], parameter[clazz, fieldName]] begin[{] local_variable[type[Field], f] if[binary_operation[member[.f], ==, literal[null]]] begin[{] local_variable[type[Class], parent] ...
Keyword[public] Keyword[static] identifier[Field] identifier[getDeclaredField] operator[SEP] identifier[Class] identifier[clazz] , identifier[String] identifier[fieldName] operator[SEP] Keyword[throws] identifier[NoSuchFieldException] { identifier[Field] identifier[f] operator[=] identifier[getField] operator[S...
public void dereferenceControllable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dereferenceControllable"); destinationManager = null; baseDest = null; index = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.ex...
class class_name[name] begin[{] method[dereferenceControllable, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[membe...
Keyword[public] Keyword[void] identifier[dereferenceControllable] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operato...
public static ODatabaseDocument castToODatabaseDocument(ODatabase<?> db) { while(db!=null && !(db instanceof ODatabaseDocument)) { if(db instanceof ODatabaseInternal<?>) { db = ((ODatabaseInternal<?>)db).getUnderlying(); } } return (ODatabaseDocument)db; }
class class_name[name] begin[{] method[castToODatabaseDocument, return_type[type[ODatabaseDocument]], modifier[public static], parameter[db]] begin[{] while[binary_operation[binary_operation[member[.db], !=, literal[null]], &&, binary_operation[member[.db], instanceof, type[ODatabaseDocument]]]...
Keyword[public] Keyword[static] identifier[ODatabaseDocument] identifier[castToODatabaseDocument] operator[SEP] identifier[ODatabase] operator[<] operator[?] operator[>] identifier[db] operator[SEP] { Keyword[while] operator[SEP] identifier[db] operator[!=] Other[null] operator[&&] operator[!] operator[SEP] iden...
@Override public void writeValue(TimeValue value, Resource resource) throws RDFHandlerException { this.rdfWriter.writeTripleValueObject(resource, RdfWriter.RDF_TYPE, RdfWriter.WB_TIME_VALUE); this.rdfWriter.writeTripleValueObject(resource, RdfWriter.WB_TIME, TimeValueConverter.getTimeLiteral(value, thi...
class class_name[name] begin[{] method[writeValue, return_type[void], modifier[public], parameter[value, resource]] begin[{] THIS[member[None.rdfWriter]call[None.writeTripleValueObject, parameter[member[.resource], member[RdfWriter.RDF_TYPE], member[RdfWriter.WB_TIME_VALUE]]]] T...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeValue] operator[SEP] identifier[TimeValue] identifier[value] , identifier[Resource] identifier[resource] operator[SEP] Keyword[throws] identifier[RDFHandlerException] { Keyword[this] operator[SEP] identifier[rdfWriter] operator[SEP...
protected Component createCustomEditor() { JPanel panel; panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); m_EditComponent = (ClassOptionEditComponent) getEditComponent((ClassOption) getValue()); m_EditComponent.addChangeListener(new ChangeListener() { ...
class class_name[name] begin[{] method[createCustomEditor, return_type[type[Component]], modifier[protected], parameter[]] begin[{] local_variable[type[JPanel], panel] assign[member[.panel], ClassCreator(arguments=[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, p...
Keyword[protected] identifier[Component] identifier[createCustomEditor] operator[SEP] operator[SEP] { identifier[JPanel] identifier[panel] operator[SEP] identifier[panel] operator[=] Keyword[new] identifier[JPanel] operator[SEP] Keyword[new] identifier[BorderLayout] operator[SEP] operator[SEP] operator[SEP] oper...
private static boolean multiPointIntersectsMultiPoint_( MultiPoint _multipointA, MultiPoint _multipointB, double tolerance, ProgressTracker progress_tracker) { MultiPoint multipoint_a; MultiPoint multipoint_b; if (_multipointA.getPointCount() > _multipointB.getPointCount()) { multipoint_a = _multipointB...
class class_name[name] begin[{] method[multiPointIntersectsMultiPoint_, return_type[type[boolean]], modifier[private static], parameter[_multipointA, _multipointB, tolerance, progress_tracker]] begin[{] local_variable[type[MultiPoint], multipoint_a] local_variable[type[MultiPoint], multipoint_b...
Keyword[private] Keyword[static] Keyword[boolean] identifier[multiPointIntersectsMultiPoint_] operator[SEP] identifier[MultiPoint] identifier[_multipointA] , identifier[MultiPoint] identifier[_multipointB] , Keyword[double] identifier[tolerance] , identifier[ProgressTracker] identifier[progress_tracker] operator[SEP...
public ArrayList<OvhGenericProductDefinition> cart_cartId_dedicatedReseller_GET(String cartId, String family, String planCode) throws IOException { String qPath = "/order/cart/{cartId}/dedicatedReseller"; StringBuilder sb = path(qPath, cartId); query(sb, "family", family); query(sb, "planCode", planCode); Str...
class class_name[name] begin[{] method[cart_cartId_dedicatedReseller_GET, return_type[type[ArrayList]], modifier[public], parameter[cartId, family, planCode]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb],...
Keyword[public] identifier[ArrayList] operator[<] identifier[OvhGenericProductDefinition] operator[>] identifier[cart_cartId_dedicatedReseller_GET] operator[SEP] identifier[String] identifier[cartId] , identifier[String] identifier[family] , identifier[String] identifier[planCode] operator[SEP] Keyword[throws] identi...
@Override public ChangeResourceRecordSetsResult changeResourceRecordSets(ChangeResourceRecordSetsRequest request) { request = beforeClientExecution(request); return executeChangeResourceRecordSets(request); }
class class_name[name] begin[{] method[changeResourceRecordSets, return_type[type[ChangeResourceRecordSetsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeChangeResourceRecord...
annotation[@] identifier[Override] Keyword[public] identifier[ChangeResourceRecordSetsResult] identifier[changeResourceRecordSets] operator[SEP] identifier[ChangeResourceRecordSetsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifi...
public double transformNumber(double number) { if (ruleSet == null) { return number / divisor; } else { return Math.floor(number / divisor); } }
class class_name[name] begin[{] method[transformNumber, return_type[type[double]], modifier[public], parameter[number]] begin[{] if[binary_operation[member[.ruleSet], ==, literal[null]]] begin[{] return[binary_operation[member[.number], /, member[.divisor]]] else begin[{] ...
Keyword[public] Keyword[double] identifier[transformNumber] operator[SEP] Keyword[double] identifier[number] operator[SEP] { Keyword[if] operator[SEP] identifier[ruleSet] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[number] operator[/] identifier[divisor] operator[SEP] } ...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DroolsPackage.META_DATA_TYPE__META_VALUE: return getMetaValue(); case DroolsPackage.META_DATA_TYPE__NAME: return getName(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=META_DATA_TYPE__META_VALUE, postfix_operators=[], prefix_operators=[], qualifier=DroolsPack...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
void convertWith(Converter converter, String... attributes) { for (String attribute : attributes) { convertWith(converter, attribute); } }
class class_name[name] begin[{] method[convertWith, return_type[void], modifier[default], parameter[converter, attributes]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=converter, postfix_operators=[]...
Keyword[void] identifier[convertWith] operator[SEP] identifier[Converter] identifier[converter] , identifier[String] operator[...] identifier[attributes] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[attribute] operator[:] identifier[attributes] operator[SEP] { identifier[...
private static void write(DocFile outFile, Writer out, String text) throws DocFileIOException { try { out.write(text); } catch (IOException e) { throw new DocFileIOException(outFile, DocFileIOException.Mode.WRITE, e); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[private static], parameter[outFile, out, text]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=text, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
Keyword[private] Keyword[static] Keyword[void] identifier[write] operator[SEP] identifier[DocFile] identifier[outFile] , identifier[Writer] identifier[out] , identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[DocFileIOException] { Keyword[try] { identifier[out] operator[SEP...
public Observable<ServiceResponse<RunCommandResultInner>> runCommandWithServiceResponseAsync(String resourceGroupName, String vmName, RunCommandInput parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); ...
class class_name[name] begin[{] method[runCommandWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, vmName, parameters]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ThrowStatement(expressi...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[RunCommandResultInner] operator[>] operator[>] identifier[runCommandWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vmName] , identifier[RunCom...
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { try { if (com.google.api.ads.adwords.axis.v201809.o.TrafficEstimatorServiceInterface.class.isAssignableFrom(serviceEndpointInterface)) { com.google.api.ads.adwords.axis.v201809.o.Tr...
class class_name[name] begin[{] method[getPort, return_type[type[java]], modifier[public], parameter[serviceEndpointInterface]] begin[{] TryStatement(block=[IfStatement(condition=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=com.google.api.ads.adwords.axis.v201809.o, selectors=[Me...
Keyword[public] identifier[java] operator[SEP] identifier[rmi] operator[SEP] identifier[Remote] identifier[getPort] operator[SEP] identifier[Class] identifier[serviceEndpointInterface] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] identifier[rpc] operator[SEP] identifier[Se...
protected HierarchicalProperty supportedMethodSet() { HierarchicalProperty supportedMethodProp = new HierarchicalProperty(SUPPORTEDMETHODSET); supportedMethodProp.addChild(new HierarchicalProperty(new QName("DAV:", "supported-method"))).setAttribute( "name", "PROPFIND"); supportedMe...
class class_name[name] begin[{] method[supportedMethodSet, return_type[type[HierarchicalProperty]], modifier[protected], parameter[]] begin[{] local_variable[type[HierarchicalProperty], supportedMethodProp] call[supportedMethodProp.addChild, parameter[ClassCreator(arguments=[ClassCreato...
Keyword[protected] identifier[HierarchicalProperty] identifier[supportedMethodSet] operator[SEP] operator[SEP] { identifier[HierarchicalProperty] identifier[supportedMethodProp] operator[=] Keyword[new] identifier[HierarchicalProperty] operator[SEP] identifier[SUPPORTEDMETHODSET] operator[SEP] operator[SEP] iden...
public <T extends View> ArrayList<T> getCurrentViews(Class<T> classToFilterBy, boolean includeSubclasses) { return getCurrentViews(classToFilterBy, includeSubclasses, null); }
class class_name[name] begin[{] method[getCurrentViews, return_type[type[ArrayList]], modifier[public], parameter[classToFilterBy, includeSubclasses]] begin[{] return[call[.getCurrentViews, parameter[member[.classToFilterBy], member[.includeSubclasses], literal[null]]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[View] operator[>] identifier[ArrayList] operator[<] identifier[T] operator[>] identifier[getCurrentViews] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[classToFilterBy] , Keyword[boolean] identifier[includeSubclass...
public boolean shouldRetryFor(Class<E> candidate) { Preconditions.checkNotNull(candidate, "Requires a non-null candidate class"); if (dontRetry != null) { return !dontRetry.contains(candidate); } else { return true; } }
class class_name[name] begin[{] method[shouldRetryFor, return_type[type[boolean]], modifier[public], parameter[candidate]] begin[{] call[Preconditions.checkNotNull, parameter[member[.candidate], literal["Requires a non-null candidate class"]]] if[binary_operation[member[.dontRet...
Keyword[public] Keyword[boolean] identifier[shouldRetryFor] operator[SEP] identifier[Class] operator[<] identifier[E] operator[>] identifier[candidate] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[candidate] , literal[String] operator[SEP] operator[SE...
protected void extractBankData(final byte[] pData) { // Extract BIC data byte[] bic = TlvUtil.getValue(pData, EmvTags.BANK_IDENTIFIER_CODE); if (bic != null) { template.get().getCard().setBic(new String(bic)); } // Extract IBAN byte[] iban = TlvUtil.getValue(pData, EmvTags.IBAN); if (iban != null) { ...
class class_name[name] begin[{] method[extractBankData, return_type[void], modifier[protected], parameter[pData]] begin[{] local_variable[type[byte], bic] if[binary_operation[member[.bic], !=, literal[null]]] begin[{] call[template.get, parameter[]] else ...
Keyword[protected] Keyword[void] identifier[extractBankData] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[pData] operator[SEP] { Keyword[byte] operator[SEP] operator[SEP] identifier[bic] operator[=] identifier[TlvUtil] operator[SEP] identifier[getValue] operator[SEP] identifi...
@Override public String formatMessage(final int connectionId, final String now, final long elapsed, final String category, final String prepared, final String sql, final String url) { String customLogMessageFormat = P6SpyOptions.getActiveInstance().getCustomLogMessageFormat(); if (customLogMessageFormat == ...
class class_name[name] begin[{] method[formatMessage, return_type[type[String]], modifier[public], parameter[connectionId, now, elapsed, category, prepared, sql, url]] begin[{] local_variable[type[String], customLogMessageFormat] if[binary_operation[member[.customLogMessageFormat], ==, ...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[formatMessage] operator[SEP] Keyword[final] Keyword[int] identifier[connectionId] , Keyword[final] identifier[String] identifier[now] , Keyword[final] Keyword[long] identifier[elapsed] , Keyword[final] identifier[String] identifier[cate...
public Observable<ServiceResponseWithHeaders<ImmutabilityPolicyInner, BlobContainersDeleteImmutabilityPolicyHeaders>> deleteImmutabilityPolicyWithServiceResponseAsync(String resourceGroupName, String accountName, String containerName, String ifMatch) { if (resourceGroupName == null) { throw new Ille...
class class_name[name] begin[{] method[deleteImmutabilityPolicyWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, accountName, containerName, ifMatch]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponseWithHeaders] operator[<] identifier[ImmutabilityPolicyInner] , identifier[BlobContainersDeleteImmutabilityPolicyHeaders] operator[>] operator[>] identifier[deleteImmutabilityPolicyWithServiceResponseAsync] operator[SEP] identifier[String] ide...
@Override public StatementInfo getInfo(String CorpNum, int ItemCode, String MgtKey) throws PopbillException { if (MgtKey == null || MgtKey.isEmpty()) throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다."); return httpget("/Statement/" + ItemCode + "/" + MgtKey, CorpNum, null, StatementInf...
class class_name[name] begin[{] method[getInfo, return_type[type[StatementInfo]], modifier[public], parameter[CorpNum, ItemCode, MgtKey]] begin[{] if[binary_operation[binary_operation[member[.MgtKey], ==, literal[null]], ||, call[MgtKey.isEmpty, parameter[]]]] begin[{] ThrowStatement(expression...
annotation[@] identifier[Override] Keyword[public] identifier[StatementInfo] identifier[getInfo] operator[SEP] identifier[String] identifier[CorpNum] , Keyword[int] identifier[ItemCode] , identifier[String] identifier[MgtKey] operator[SEP] Keyword[throws] identifier[PopbillException] { Keyword[if] operator[SEP...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case KEY: return isSetKey(); case COLUMN_PARENT: return isSetColumn_parent(); case COLUMN_SLICES: return isSetColumn_slices(); case REVERSED: ret...
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
public static ProcessApplicationInfo getProcessApplicationInfo(String processDefinitionId) { ProcessEngineService processEngineService = BpmPlatform.getProcessEngineService(); ProcessApplicationService processAppService = BpmPlatform.getProcessApplicationService(); // iterate over all process applications for (...
class class_name[name] begin[{] method[getProcessApplicationInfo, return_type[type[ProcessApplicationInfo]], modifier[public static], parameter[processDefinitionId]] begin[{] local_variable[type[ProcessEngineService], processEngineService] local_variable[type[ProcessApplicationService], process...
Keyword[public] Keyword[static] identifier[ProcessApplicationInfo] identifier[getProcessApplicationInfo] operator[SEP] identifier[String] identifier[processDefinitionId] operator[SEP] { identifier[ProcessEngineService] identifier[processEngineService] operator[=] identifier[BpmPlatform] operator[SEP] identifier[...
public void garbageCollection() { // number of tiles to remove from cache int toBeRemoved = Integer.MAX_VALUE; // MAX_VALUE for stressed memory case final int size = mCachedTiles.size(); if (!mStressedMemory) { toBeRemoved = size - mCapacity; if (toBeRemoved <= 0) { return; } } refreshAddition...
class class_name[name] begin[{] method[garbageCollection, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], toBeRemoved] local_variable[type[int], size] if[member[.mStressedMemory]] begin[{] assign[member[.toBeRemoved], ...
Keyword[public] Keyword[void] identifier[garbageCollection] operator[SEP] operator[SEP] { Keyword[int] identifier[toBeRemoved] operator[=] identifier[Integer] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[final] Keyword[int] identifier[size] operator[=] identifier[mCachedTiles] operator[SEP] identifi...
protected void keepTopFeatures(Map<Object, Double> featureScores, int maxFeatures) { logger.debug("keepTopFeatures()"); logger.debug("Estimating the minPermittedScore"); Double minPermittedScore = SelectKth.largest(featureScores.values().iterator(), maxFeatures); //remove any entry wit...
class class_name[name] begin[{] method[keepTopFeatures, return_type[void], modifier[protected], parameter[featureScores, maxFeatures]] begin[{] call[logger.debug, parameter[literal["keepTopFeatures()"]]] call[logger.debug, parameter[literal["Estimating the minPermittedScore"]]] ...
Keyword[protected] Keyword[void] identifier[keepTopFeatures] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Double] operator[>] identifier[featureScores] , Keyword[int] identifier[maxFeatures] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[St...
void addFillComponents( Container panel, int[] cols, int[] rows ) { Dimension filler = new Dimension(10,10); boolean filled_cell_11 = false; CellConstraints cc = new CellConstraints(); if ( cols.length > 0 && rows.length > 0 ) { if ( cols[0] == 1 && rows[0] == 1 ) { ...
class class_name[name] begin[{] method[addFillComponents, return_type[void], modifier[default], parameter[panel, cols, rows]] begin[{] local_variable[type[Dimension], filler] local_variable[type[boolean], filled_cell_11] local_variable[type[CellConstraints], cc] if[binar...
Keyword[void] identifier[addFillComponents] operator[SEP] identifier[Container] identifier[panel] , Keyword[int] operator[SEP] operator[SEP] identifier[cols] , Keyword[int] operator[SEP] operator[SEP] identifier[rows] operator[SEP] { identifier[Dimension] identifier[filler] operator[=] Keyword[new] identifier[...
public static <T> T[] sort(T[] self) { Arrays.sort(self, new NumberAwareComparator<T>()); return self; }
class class_name[name] begin[{] method[sort, return_type[type[T]], modifier[public static], parameter[self]] begin[{] call[Arrays.sort, parameter[member[.self], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, sele...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[sort] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[self] operator[SEP] { identifier[Arrays] operator[SEP] identifier[sort] operator[SEP] identifier[self] , Keyword[new...
public int getDay() { if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null) jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date"); return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_day);}
class class_name[name] begin[{] method[getDay, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[Date_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
Keyword[public] Keyword[int] identifier[getDay] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[Date_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Date_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casFeat_day] o...
public byte[] encrypt(byte[] data) { lock.lock(); try { if (null == this.params) { cipher.init(Cipher.ENCRYPT_MODE, secretKey); } else { cipher.init(Cipher.ENCRYPT_MODE, secretKey, params); } return cipher.doFinal(data); } catch (Exception e) { throw new CryptoException(e); } f...
class class_name[name] begin[{] method[encrypt, return_type[type[byte]], modifier[public], parameter[data]] begin[{] call[lock.lock, parameter[]] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selecto...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[encrypt] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { identifier[lock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] Othe...
protected boolean isUpToDate(FilePath expectedLocation, Installable i) throws IOException, InterruptedException { FilePath marker = expectedLocation.child(".installedFrom"); return marker.exists() && marker.readToString().equals(i.url); }
class class_name[name] begin[{] method[isUpToDate, return_type[type[boolean]], modifier[protected], parameter[expectedLocation, i]] begin[{] local_variable[type[FilePath], marker] return[binary_operation[call[marker.exists, parameter[]], &&, call[marker.readToString, parameter[]]]] end[}] E...
Keyword[protected] Keyword[boolean] identifier[isUpToDate] operator[SEP] identifier[FilePath] identifier[expectedLocation] , identifier[Installable] identifier[i] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { identifier[FilePath] identifier[marker] operator[=] ident...
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { int header = in.readByte(); switch (header) { case NEGATIVE_DAY_OF_MONTH_PATTERN_TYPE: this.obj = readPattern(in); break; default: ...
class class_name[name] begin[{] method[readExternal, return_type[void], modifier[public], parameter[in]] begin[{] local_variable[type[int], header] SwitchStatement(cases=[SwitchStatementCase(case=['NEGATIVE_DAY_OF_MONTH_PATTERN_TYPE'], statements=[StatementExpression(expression=Assignment(expre...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[readExternal] operator[SEP] identifier[ObjectInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { Keyword[int] identifier[header] operator[=] identifier[in] operator[SEP] ide...
private String[] getPermissions(HierarchicalProperty property) { Set<String> permissionsToBeChanged = new HashSet<String>(); // grant|deny element must have at least one privilege element // <!ELEMENT grant (privilege+)> // <!ELEMENT deny (privilege+)> if (property.getChildren().size...
class class_name[name] begin[{] method[getPermissions, return_type[type[String]], modifier[private], parameter[property]] begin[{] local_variable[type[Set], permissionsToBeChanged] if[binary_operation[call[property.getChildren, parameter[]], ==, literal[0]]] begin[{] ThrowSt...
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[getPermissions] operator[SEP] identifier[HierarchicalProperty] identifier[property] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[permissionsToBeChanged] operator[=] Keyword[new] identifier[HashSet]...
public UnprotectedStringBuffer getAttributeValueWithPrefix(CharSequence prefix, CharSequence name) { for (Attribute attr : event.attributes) if (attr.localName.equals(name) && attr.namespacePrefix.equals(prefix)) return attr.value; return null; }
class class_name[name] begin[{] method[getAttributeValueWithPrefix, return_type[type[UnprotectedStringBuffer]], modifier[public], parameter[prefix, name]] begin[{] ForStatement(body=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=name, postfix_operators...
Keyword[public] identifier[UnprotectedStringBuffer] identifier[getAttributeValueWithPrefix] operator[SEP] identifier[CharSequence] identifier[prefix] , identifier[CharSequence] identifier[name] operator[SEP] { Keyword[for] operator[SEP] identifier[Attribute] identifier[attr] operator[:] identifier[event] opera...
public static Matcher<ContextElement> identifier(final Matcher<Class<?>> matcher) { return new Matcher<ContextElement>() { @Override protected boolean matchesSafely(ContextElement t) { return matcher.matches(t.identifier()); } @Override public String toString() { retu...
class class_name[name] begin[{] method[identifier, return_type[type[Matcher]], modifier[public static], parameter[matcher]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(argumen...
Keyword[public] Keyword[static] identifier[Matcher] operator[<] identifier[ContextElement] operator[>] identifier[identifier] operator[SEP] Keyword[final] identifier[Matcher] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[matcher] operator[SEP] { Keyword[return] Keyword[...
public Optional<Range<T>> intersect(Tuple2<T, T> other) { return Tuple2.intersect(this, other).map(Range::new); }
class class_name[name] begin[{] method[intersect, return_type[type[Optional]], modifier[public], parameter[other]] begin[{] return[call[Tuple2.intersect, parameter[THIS[], member[.other]]]] end[}] END[}]
Keyword[public] identifier[Optional] operator[<] identifier[Range] operator[<] identifier[T] operator[>] operator[>] identifier[intersect] operator[SEP] identifier[Tuple2] operator[<] identifier[T] , identifier[T] operator[>] identifier[other] operator[SEP] { Keyword[return] identifier[Tuple2] operator[SEP] ide...
public void setFragment(boolean newFragment) { boolean oldFragment = fragment; fragment = newFragment; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, XtextPackage.TERMINAL_RULE__FRAGMENT, oldFragment, fragment)); }
class class_name[name] begin[{] method[setFragment, return_type[void], modifier[public], parameter[newFragment]] begin[{] local_variable[type[boolean], oldFragment] assign[member[.fragment], member[.newFragment]] if[call[.eNotificationRequired, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setFragment] operator[SEP] Keyword[boolean] identifier[newFragment] operator[SEP] { Keyword[boolean] identifier[oldFragment] operator[=] identifier[fragment] operator[SEP] identifier[fragment] operator[=] identifier[newFragment] operator[SEP] Keyword[if] operator[SEP] ide...
protected static String getStemPrefix() { String uportalStem = GrouperClientUtils.propertiesValue(STEM_PREFIX, false); // make sure it ends in colon if (!StringUtils.isBlank(uportalStem)) { if (uportalStem.endsWith(":")) { uportalStem = uportalStem.substring(0, upor...
class class_name[name] begin[{] method[getStemPrefix, return_type[type[String]], modifier[static protected], parameter[]] begin[{] local_variable[type[String], uportalStem] if[call[StringUtils.isBlank, parameter[member[.uportalStem]]]] begin[{] if[call[uportalSte...
Keyword[protected] Keyword[static] identifier[String] identifier[getStemPrefix] operator[SEP] operator[SEP] { identifier[String] identifier[uportalStem] operator[=] identifier[GrouperClientUtils] operator[SEP] identifier[propertiesValue] operator[SEP] identifier[STEM_PREFIX] , literal[boolean] operator[SEP] ope...
public List<Form> getFormDescendants( List<Long> electronicFormIdsParam, boolean includeFieldDataParam, boolean includeTableFieldsParam, boolean includeTableFieldFormRecordInfoParam) { if(electronicFormIdsParam == null || electronicFormIdsParam.isEmpty()) { return null; } //String stringQue...
class class_name[name] begin[{] method[getFormDescendants, return_type[type[List]], modifier[public], parameter[electronicFormIdsParam, includeFieldDataParam, includeTableFieldsParam, includeTableFieldFormRecordInfoParam]] begin[{] if[binary_operation[binary_operation[member[.electronicFormIdsP...
Keyword[public] identifier[List] operator[<] identifier[Form] operator[>] identifier[getFormDescendants] operator[SEP] identifier[List] operator[<] identifier[Long] operator[>] identifier[electronicFormIdsParam] , Keyword[boolean] identifier[includeFieldDataParam] , Keyword[boolean] identifier[includeTableFieldsParam...
public static SynchronizedInterner<Object> setGlobal(Interner<Object> delegate) { synchronized(globalMutex) { SynchronizedInterner<Object> oldInterner = SynchronizedInterner.interner; SynchronizedInterner.interner = Generics.newSynchronizedInterner(delegate); return oldInterner; } }
class class_name[name] begin[{] method[setGlobal, return_type[type[SynchronizedInterner]], modifier[public static], parameter[delegate]] begin[{] SYNCHRONIZED[member[.globalMutex]] BEGIN[{] local_variable[type[SynchronizedInterner], oldInterner] assign[member...
Keyword[public] Keyword[static] identifier[SynchronizedInterner] operator[<] identifier[Object] operator[>] identifier[setGlobal] operator[SEP] identifier[Interner] operator[<] identifier[Object] operator[>] identifier[delegate] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[globalMutex] operator...
public static void checkAmendExtensionsCompatibility( final Class<? extends RepositoryMethodDescriptor> descriptorType, final List<Annotation> extensions) { final List<Class<? extends AmendMethodExtension>> exts = Lists.transform(extensions, new Function<Annotation, Class...
class class_name[name] begin[{] method[checkAmendExtensionsCompatibility, return_type[void], modifier[public static], parameter[descriptorType, extensions]] begin[{] local_variable[type[List], exts] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodIn...
Keyword[public] Keyword[static] Keyword[void] identifier[checkAmendExtensionsCompatibility] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[RepositoryMethodDescriptor] operator[>] identifier[descriptorType] , Keyword[final] identifier[List] operator[<] identifier[Anno...
public static boolean is_haladi(String str) { String s1 = VarnaUtil.getAdiVarna(str); if (is_kavarga(s1) || is_chavarga(s1) || is_Tavarga(s1) || is_tavarga(s1) || is_pavarga(s1) || is_shar(s1) || is_yan(s1) || s1.equals("h") || s1.equals("M")) return true; return false; }
class class_name[name] begin[{] method[is_haladi, return_type[type[boolean]], modifier[public static], parameter[str]] begin[{] local_variable[type[String], s1] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[bina...
Keyword[public] Keyword[static] Keyword[boolean] identifier[is_haladi] operator[SEP] identifier[String] identifier[str] operator[SEP] { identifier[String] identifier[s1] operator[=] identifier[VarnaUtil] operator[SEP] identifier[getAdiVarna] operator[SEP] identifier[str] operator[SEP] operator[SEP] Keyword[if] o...
@Override public void unsubscribeAll(EventPublisher source) { checkPermission(); if (source == null) { throw new IllegalArgumentException("Parameter cannot be null"); } super.unsubscribeAll(source); }
class class_name[name] begin[{] method[unsubscribeAll, return_type[void], modifier[public], parameter[source]] begin[{] call[.checkPermission, parameter[]] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[unsubscribeAll] operator[SEP] identifier[EventPublisher] identifier[source] operator[SEP] { identifier[checkPermission] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] opera...
@Override public int doStartTag() throws JspException { String string = null; Boolean bool = null; if (getBase64Expr() != null && (bool = EvalHelper.evalBoolean("base64", getBase64Expr(), this, pageContext)) != null) { setBase64(bool); } if (getSrcExpr() != null && (string = EvalHelper.evalStrin...
class class_name[name] begin[{] method[doStartTag, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[String], string] local_variable[type[Boolean], bool] if[binary_operation[binary_operation[call[.getBase64Expr, parameter[]], !=, literal[null]],...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[doStartTag] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[String] identifier[string] operator[=] Other[null] operator[SEP] identifier[Boolean] identifier[bool] operator[=] Other[null] operator[SEP] Keyw...
public CallTreeNode addChild(String name) { if (children == null) { children = new HashMap<>(); } CallTreeNode child = new CallTreeNode(name); children.put(name, child); child.parent = this; return child; }
class class_name[name] begin[{] method[addChild, return_type[type[CallTreeNode]], modifier[public], parameter[name]] begin[{] if[binary_operation[member[.children], ==, literal[null]]] begin[{] assign[member[.children], ClassCreator(arguments=[], body=None, constructor_t...
Keyword[public] identifier[CallTreeNode] identifier[addChild] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[children] operator[==] Other[null] operator[SEP] { identifier[children] operator[=] Keyword[new] identifier[HashMap] operator[<] operator...
private byte[] doDigest(byte[]... datas) { for (byte[] data : datas) { if (null != data) { this.digest.update(data); } } return this.digest.digest(); }
class class_name[name] begin[{] method[doDigest, return_type[type[byte]], modifier[private], parameter[datas]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]...
Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[doDigest] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] operator[...] identifier[datas] operator[SEP] { Keyword[for] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[:] identifier[datas] operator[SEP...
public Transferable getTransferable(Component c) { if (c instanceof javax.swing.JTree && ((javax.swing.JTree)c).getModel() instanceof OjbMetaDataTreeModel) { try { javax.swing.JTree tree = (javax.swing.JTree)c; OjbMetaDataT...
class class_name[name] begin[{] method[getTransferable, return_type[type[Transferable]], modifier[public], parameter[c]] begin[{] if[binary_operation[binary_operation[member[.c], instanceof, type[javax]], &&, binary_operation[Cast(expression=MemberReference(member=c, postfix_operators=[], prefi...
Keyword[public] identifier[Transferable] identifier[getTransferable] operator[SEP] identifier[Component] identifier[c] operator[SEP] { Keyword[if] operator[SEP] identifier[c] Keyword[instanceof] identifier[javax] operator[SEP] identifier[swing] operator[SEP] identifier[JTree] operator[&&] operator[SEP] operator[...
public void dereferenceControllable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "dereferenceControllable"); messageProcessor = null; destinationIndex = null; destinationManager = null; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
class class_name[name] begin[{] method[dereferenceControllable, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[membe...
Keyword[public] Keyword[void] identifier[dereferenceControllable] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operato...
void sendCalledFromAsynsSendRunThread(Message message, int SendMethodType, Object[] params, CompletionListener cListener) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "sendCalledFromAsynsSendRunThread", new Object[] { message, SendMethodType, params, cListener }...
class class_name[name] begin[{] method[sendCalledFromAsynsSendRunThread, return_type[void], modifier[default], parameter[message, SendMethodType, params, cListener]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] be...
Keyword[void] identifier[sendCalledFromAsynsSendRunThread] operator[SEP] identifier[Message] identifier[message] , Keyword[int] identifier[SendMethodType] , identifier[Object] operator[SEP] operator[SEP] identifier[params] , identifier[CompletionListener] identifier[cListener] operator[SEP] { Keyword[if] oper...
protected void initializeStateMachine() { stateMachine = new StateMachine<ReplicationState, ReplicationTrigger>(ReplicationState.INITIAL); // hierarchy stateMachine.configure(ReplicationState.IDLE).substateOf(ReplicationState.RUNNING); stateMachine.configure(ReplicationState.OFFLINE).s...
class class_name[name] begin[{] method[initializeStateMachine, return_type[void], modifier[protected], parameter[]] begin[{] assign[member[.stateMachine], ClassCreator(arguments=[MemberReference(member=INITIAL, postfix_operators=[], prefix_operators=[], qualifier=ReplicationState, selectors=[])...
Keyword[protected] Keyword[void] identifier[initializeStateMachine] operator[SEP] operator[SEP] { identifier[stateMachine] operator[=] Keyword[new] identifier[StateMachine] operator[<] identifier[ReplicationState] , identifier[ReplicationTrigger] operator[>] operator[SEP] identifier[ReplicationState] operator[S...
protected final void setParentNode(final DiffNode parentNode) { if (this.parentNode != null && this.parentNode != parentNode) { throw new IllegalStateException("The parent of a node cannot be changed, once it's set."); } this.parentNode = parentNode; }
class class_name[name] begin[{] method[setParentNode, return_type[void], modifier[final protected], parameter[parentNode]] begin[{] if[binary_operation[binary_operation[THIS[member[None.parentNode]], !=, literal[null]], &&, binary_operation[THIS[member[None.parentNode]], !=, member[.parentNode]...
Keyword[protected] Keyword[final] Keyword[void] identifier[setParentNode] operator[SEP] Keyword[final] identifier[DiffNode] identifier[parentNode] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[parentNode] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identif...
public FileInfo getFileInfo() throws IOException { try { load(false); if (m_resource.isFile()) { // Fill in a file information object for this file/directory long flen = m_resource.getLength(); //long alloc = (flen + 512L) & ...
class class_name[name] begin[{] method[getFileInfo, return_type[type[FileInfo]], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=...
Keyword[public] identifier[FileInfo] identifier[getFileInfo] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[load] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[m_resource] operator[SEP] identifier[isFile...
public void removeSearchIndex(I_CmsSearchIndex searchIndex) { // shut down index to remove potential config files of Solr indexes searchIndex.shutDown(); if (searchIndex instanceof CmsSolrIndex) { CmsSolrIndex solrIndex = (CmsSolrIndex)searchIndex; m_coreContainer.unload...
class class_name[name] begin[{] method[removeSearchIndex, return_type[void], modifier[public], parameter[searchIndex]] begin[{] call[searchIndex.shutDown, parameter[]] if[binary_operation[member[.searchIndex], instanceof, type[CmsSolrIndex]]] begin[{] local_variable[...
Keyword[public] Keyword[void] identifier[removeSearchIndex] operator[SEP] identifier[I_CmsSearchIndex] identifier[searchIndex] operator[SEP] { identifier[searchIndex] operator[SEP] identifier[shutDown] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[searchIndex] Keyword[instanceof]...
public long longer(Node element, String path) throws XmlException { String str; str = string(element, path); try { return Long.parseLong(str); } catch (NumberFormatException e) { throw new XmlException("number expected node " + path + ": " + str); } }
class class_name[name] begin[{] method[longer, return_type[type[long]], modifier[public], parameter[element, path]] begin[{] local_variable[type[String], str] assign[member[.str], call[.string, parameter[member[.element], member[.path]]]] TryStatement(block=[ReturnStatement(expr...
Keyword[public] Keyword[long] identifier[longer] operator[SEP] identifier[Node] identifier[element] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[XmlException] { identifier[String] identifier[str] operator[SEP] identifier[str] operator[=] identifier[string] operator[SEP] identif...
public static String feature2Dxf( FeatureMate featureMate, String layerName, String elevationAttrName, boolean suffix, boolean force2CoordsToLine ) { Geometry g = featureMate.getGeometry(); if (EGeometryType.isPoint(g)) { return point2Dxf(featureMate, layerName, elevationAttrNam...
class class_name[name] begin[{] method[feature2Dxf, return_type[type[String]], modifier[public static], parameter[featureMate, layerName, elevationAttrName, suffix, force2CoordsToLine]] begin[{] local_variable[type[Geometry], g] if[call[EGeometryType.isPoint, parameter[member[.g]]]] beg...
Keyword[public] Keyword[static] identifier[String] identifier[feature2Dxf] operator[SEP] identifier[FeatureMate] identifier[featureMate] , identifier[String] identifier[layerName] , identifier[String] identifier[elevationAttrName] , Keyword[boolean] identifier[suffix] , Keyword[boolean] identifier[force2CoordsToLin...
public Vector4i zero() { Vector4i dest = thisOrNew(); MemUtil.INSTANCE.zero(dest); return dest; }
class class_name[name] begin[{] method[zero, return_type[type[Vector4i]], modifier[public], parameter[]] begin[{] local_variable[type[Vector4i], dest] call[MemUtil.INSTANCE.zero, parameter[member[.dest]]] return[member[.dest]] end[}] END[}]
Keyword[public] identifier[Vector4i] identifier[zero] operator[SEP] operator[SEP] { identifier[Vector4i] identifier[dest] operator[=] identifier[thisOrNew] operator[SEP] operator[SEP] operator[SEP] identifier[MemUtil] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[zero] operator[SEP] identifier[dest...
@Override protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { // convert from forward / backward notation to up / down / left / right // (ugh). if (direction == View.FOCUS_FORWARD) { direction = View.FOCUS_DOWN; } else if (direction ...
class class_name[name] begin[{] method[onRequestFocusInDescendants, return_type[type[boolean]], modifier[protected], parameter[direction, previouslyFocusedRect]] begin[{] if[binary_operation[member[.direction], ==, member[View.FOCUS_FORWARD]]] begin[{] assign[member[.dir...
annotation[@] identifier[Override] Keyword[protected] Keyword[boolean] identifier[onRequestFocusInDescendants] operator[SEP] Keyword[int] identifier[direction] , identifier[Rect] identifier[previouslyFocusedRect] operator[SEP] { Keyword[if] operator[SEP] identifier[direction] operator[==] identifier[View] opera...
public <T> T safeGet(String fieldName){ try { return get(fieldName); } catch (Exception e) { return null; } }
class class_name[name] begin[{] method[safeGet, return_type[type[T]], modifier[public], parameter[fieldName]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=fieldName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], memb...
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[safeGet] operator[SEP] identifier[String] identifier[fieldName] operator[SEP] { Keyword[try] { Keyword[return] identifier[get] operator[SEP] identifier[fieldName] operator[SEP] operator[SEP] } Keyword[catch] o...
public void createResource(final InputStream inputStream, final String resourceName) throws JaxRxException { synchronized (resourceName) { if (inputStream == null) { throw new JaxRxException(400, "Bad user request"); } else { try { ...
class class_name[name] begin[{] method[createResource, return_type[void], modifier[public], parameter[inputStream, resourceName]] begin[{] SYNCHRONIZED[member[.resourceName]] BEGIN[{] if[binary_operation[member[.inputStream], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[void] identifier[createResource] operator[SEP] Keyword[final] identifier[InputStream] identifier[inputStream] , Keyword[final] identifier[String] identifier[resourceName] operator[SEP] Keyword[throws] identifier[JaxRxException] { Keyword[synchronized] operator[SEP] identifier[resourceNam...
long getInitialDelay(long stepSize) { long now = clock().wallTime(); long stepBoundary = now / stepSize * stepSize; // Buffer by 10% of the step interval on either side long offset = stepSize / 10; // Check if the current delay is within the acceptable range long delay = now - stepBoundary; ...
class class_name[name] begin[{] method[getInitialDelay, return_type[type[long]], modifier[default], parameter[stepSize]] begin[{] local_variable[type[long], now] local_variable[type[long], stepBoundary] local_variable[type[long], offset] local_variable[type[long], delay] ...
Keyword[long] identifier[getInitialDelay] operator[SEP] Keyword[long] identifier[stepSize] operator[SEP] { Keyword[long] identifier[now] operator[=] identifier[clock] operator[SEP] operator[SEP] operator[SEP] identifier[wallTime] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[stepBoundary] op...
public ConsulResponse<List<ServiceHealth>> getHealthyServicesByDatacenterAndTag(final String serviceName, final String datacenter, final String tag) { ...
class class_name[name] begin[{] method[getHealthyServicesByDatacenterAndTag, return_type[type[ConsulResponse]], modifier[public], parameter[serviceName, datacenter, tag]] begin[{] return[call[.getHealthyServices, parameter[member[.serviceName], member[.datacenter], member[.tag], member[RequestOptions.B...
Keyword[public] identifier[ConsulResponse] operator[<] identifier[List] operator[<] identifier[ServiceHealth] operator[>] operator[>] identifier[getHealthyServicesByDatacenterAndTag] operator[SEP] Keyword[final] identifier[String] identifier[serviceName] , Keyword[final] identifier[String] identifier[datacenter] , Ke...
@XmlElementDecl(namespace = "http://www.w3.org/1998/Math/MathML", name = "mean") public JAXBElement<MeanType> createMean(MeanType value) { return new JAXBElement<MeanType>(_Mean_QNAME, MeanType.class, null, value); }
class class_name[name] begin[{] method[createMean, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Mean_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], p...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[MeanType] operator[>] identifier[createMean] operator[SEP] identifier[MeanType] identifier...
@Override protected void onRemovedInternal() { final List<AnalyzerChangeListener> listeners = getAllListeners(); for (final AnalyzerChangeListener listener : listeners) { listener.onRemove(this); } }
class class_name[name] begin[{] method[onRemovedInternal, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[List], listeners] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operator...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onRemovedInternal] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[AnalyzerChangeListener] operator[>] identifier[listeners] operator[=] identifier[getAllListeners] operator[SEP] operator[SEP] oper...
static void clearPartnerLevel() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "clearPartnerLevel"); partnerLevel.set(null); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "clearPartnerLevel"); }
class class_name[name] begin[{] method[clearPartnerLevel, return_type[void], modifier[static], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc]...
Keyword[static] Keyword[void] identifier[clearPartnerLevel] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP]...
@Override public int append(ReadableByteChannel channel) throws IOException { assert invariant(true); int totalRead = 0; try { boolean done; // precondition: the channel has data do { ByteBuffer dest = writableBuf(); int space = dest.remaining(); assert space > 0; int read = chann...
class class_name[name] begin[{] method[append, return_type[type[int]], modifier[public], parameter[channel]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=invariant, postfix_operators=...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[append] operator[SEP] identifier[ReadableByteChannel] identifier[channel] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[assert] identifier[invariant] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[int...
void loadVertexIndices(GraphTraversalSource traversalSource, Vertex schemaVertex) { List<Path> indices = traversalSource .V(schemaVertex) .out(SQLG_SCHEMA_SCHEMA_VERTEX_EDGE).as("vertex") .out(SQLG_SCHEMA_VERTEX_INDEX_EDGE).as("index") .outE(SQLG_S...
class class_name[name] begin[{] method[loadVertexIndices, return_type[void], modifier[default], parameter[traversalSource, schemaVertex]] begin[{] local_variable[type[List], indices] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[V...
Keyword[void] identifier[loadVertexIndices] operator[SEP] identifier[GraphTraversalSource] identifier[traversalSource] , identifier[Vertex] identifier[schemaVertex] operator[SEP] { identifier[List] operator[<] identifier[Path] operator[>] identifier[indices] operator[=] identifier[traversalSource] operator[SEP]...
protected @Nonnull List<BeanDefinitionReference> resolveBeanDefinitionReferences() { final SoftServiceLoader<BeanDefinitionReference> definitions = SoftServiceLoader.load(BeanDefinitionReference.class, classLoader); List<BeanDefinitionReference> list = new ArrayList<>(300); for (ServiceDefinitio...
class class_name[name] begin[{] method[resolveBeanDefinitionReferences, return_type[type[List]], modifier[protected], parameter[]] begin[{] local_variable[type[SoftServiceLoader], definitions] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=[IfSt...
Keyword[protected] annotation[@] identifier[Nonnull] identifier[List] operator[<] identifier[BeanDefinitionReference] operator[>] identifier[resolveBeanDefinitionReferences] operator[SEP] operator[SEP] { Keyword[final] identifier[SoftServiceLoader] operator[<] identifier[BeanDefinitionReference] operator[>] iden...
private static String createSecureRandom() { try { final String no = "" + SECURE_RANDOM.nextInt(); final MessageDigest md = MessageDigest.getInstance("SHA-1"); final byte[] digest = md.digest(no.getBytes()); return encodeBase64(digest); } catch (fina...
class class_name[name] begin[{] method[createSecureRandom, return_type[type[String]], modifier[private static], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=Literal(postfix_operator...
Keyword[private] Keyword[static] identifier[String] identifier[createSecureRandom] operator[SEP] operator[SEP] { Keyword[try] { Keyword[final] identifier[String] identifier[no] operator[=] literal[String] operator[+] identifier[SECURE_RANDOM] operator[SEP] identifier[nextInt] operator[SEP] operator[SE...
public Content getMarkerAnchor(String anchorName, Content anchorContent) { if (anchorContent == null) anchorContent = new Comment(" "); Content markerAnchor = HtmlTree.A(configuration.htmlVersion, anchorName, anchorContent); return markerAnchor; }
class class_name[name] begin[{] method[getMarkerAnchor, return_type[type[Content]], modifier[public], parameter[anchorName, anchorContent]] begin[{] if[binary_operation[member[.anchorContent], ==, literal[null]]] begin[{] assign[member[.anchorContent], ClassCreator(arguments=[Litera...
Keyword[public] identifier[Content] identifier[getMarkerAnchor] operator[SEP] identifier[String] identifier[anchorName] , identifier[Content] identifier[anchorContent] operator[SEP] { Keyword[if] operator[SEP] identifier[anchorContent] operator[==] Other[null] operator[SEP] identifier[anchorContent] operator[=]...
protected synchronized long popFirstAvailableHole(final int iRecordSize) throws IOException { if (maxHoleSize > -1 && iRecordSize + ODataLocal.RECORD_FIX_SIZE + 50 > maxHoleSize) // DON'T BROWSE: NO ONE HOLE WITH THIS SIZE IS AVAILABLE return -1; final long timer = OProfiler.getInstance().star...
class class_name[name] begin[{] method[popFirstAvailableHole, return_type[type[long]], modifier[synchronized protected], parameter[iRecordSize]] begin[{] if[binary_operation[binary_operation[member[.maxHoleSize], >, literal[1]], &&, binary_operation[binary_operation[binary_operation[member[.iRe...
Keyword[protected] Keyword[synchronized] Keyword[long] identifier[popFirstAvailableHole] operator[SEP] Keyword[final] Keyword[int] identifier[iRecordSize] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[maxHoleSize] operator[>] operator[-] Other[1] operator[&&] identi...
public String getSelectedText( ParsedPage pp ){ if( pp == null ) return null; StringBuilder sb = new StringBuilder(); levelModifier = pp.getSection(0).getLevel()-1; if( pageHandling == null ){ if( firstParagraphHandling != null ){ handleContent( pp.getFirstParagraph(), firstParagraphHandling...
class class_name[name] begin[{] method[getSelectedText, return_type[type[String]], modifier[public], parameter[pp]] begin[{] if[binary_operation[member[.pp], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[StringBuilder], ...
Keyword[public] identifier[String] identifier[getSelectedText] operator[SEP] identifier[ParsedPage] identifier[pp] operator[SEP] { Keyword[if] operator[SEP] identifier[pp] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] Keyword...
@Override public void notifyHandlableAdded(Featurable featurable) { if (featurable.hasFeature(Refreshable.class)) { final Refreshable refreshable = featurable.getFeature(Refreshable.class); final Integer layer = getLayer(featurable); final Collection<Re...
class class_name[name] begin[{] method[notifyHandlableAdded, return_type[void], modifier[public], parameter[featurable]] begin[{] if[call[featurable.hasFeature, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimen...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[notifyHandlableAdded] operator[SEP] identifier[Featurable] identifier[featurable] operator[SEP] { Keyword[if] operator[SEP] identifier[featurable] operator[SEP] identifier[hasFeature] operator[SEP] identifier[Refreshable] operator[SEP] K...
@Override protected void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException { boolean responseSet = false; boolean validRequest = Arrays.asList( CSS_STYLESHEET, BANNER_IMAGE ).contains( req.getServletPath()); if( ! validRequest ) this.logger.severe( "An unexpected...
class class_name[name] begin[{] method[doGet, return_type[void], modifier[protected], parameter[req, resp]] begin[{] local_variable[type[boolean], responseSet] local_variable[type[boolean], validRequest] if[member[.validRequest]] begin[{] THIS[member[None.logger]call...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doGet] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[resp] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] { Keyword[boolean] identifie...
public void marshall(SnapshotOptionsStatus snapshotOptionsStatus, ProtocolMarshaller protocolMarshaller) { if (snapshotOptionsStatus == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(snapshotOptionsS...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[snapshotOptionsStatus, protocolMarshaller]] begin[{] if[binary_operation[member[.snapshotOptionsStatus], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Lit...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[SnapshotOptionsStatus] identifier[snapshotOptionsStatus] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[snapshotOptionsStatus] operator[==] Other[null] operator[SEP] ...
@SuppressWarnings("unchecked") @Override public E get(int index) { stateLock.readLock().lock(); try { switch (state) { case BLOCKING: if (waitForIndex(index)) { return (E) elements[index]; } ...
class class_name[name] begin[{] method[get, return_type[type[E]], modifier[public], parameter[index]] begin[{] call[stateLock.readLock, parameter[]] TryStatement(block=[SwitchStatement(cases=[SwitchStatementCase(case=['BLOCKING'], statements=[IfStatement(condition=MethodInvocation(argum...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[E] identifier[get] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[stateLock] operator[SEP] identifier[readLock] operator[SEP] operator[SEP]...
private static void partialSort( final WordIterator[] a, final int maxChangedIndex, final int size, final Comparator<WordIterator> comp ) { for (int i = maxChangedIndex; i >= 0; i--) { WordIterator it = a[i]; for (int j = i + 1; j < size; j++) { WordIterator it2 = a[j...
class class_name[name] begin[{] method[partialSort, return_type[void], modifier[private static], parameter[a, maxChangedIndex, size, comp]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializ...
Keyword[private] Keyword[static] Keyword[void] identifier[partialSort] operator[SEP] Keyword[final] identifier[WordIterator] operator[SEP] operator[SEP] identifier[a] , Keyword[final] Keyword[int] identifier[maxChangedIndex] , Keyword[final] Keyword[int] identifier[size] , Keyword[final] identifier[Comparator] opera...