code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
static <R extends ChronoLocalDate> ChronoLocalDateTimeImpl<R> ensureValid(Chronology chrono, Temporal temporal) { @SuppressWarnings("unchecked") ChronoLocalDateTimeImpl<R> other = (ChronoLocalDateTimeImpl<R>) temporal; if (chrono.equals(other.getChronology()) == false) { throw new Cl...
class class_name[name] begin[{] method[ensureValid, return_type[type[ChronoLocalDateTimeImpl]], modifier[static], parameter[chrono, temporal]] begin[{] local_variable[type[ChronoLocalDateTimeImpl], other] if[binary_operation[call[chrono.equals, parameter[call[other.getChronology, parame...
Keyword[static] operator[<] identifier[R] Keyword[extends] identifier[ChronoLocalDate] operator[>] identifier[ChronoLocalDateTimeImpl] operator[<] identifier[R] operator[>] identifier[ensureValid] operator[SEP] identifier[Chronology] identifier[chrono] , identifier[Temporal] identifier[temporal] operator[SEP] { ...
public static void storeProperties(Properties p, File file) throws IOException { FileOutputStream fos = new FileOutputStream(file); try { p.store(fos,""); } finally { ArchiveUtils.closeQuietly(fos); } }
class class_name[name] begin[{] method[storeProperties, return_type[void], modifier[public static], parameter[p, file]] begin[{] local_variable[type[FileOutputStream], fos] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=fos, postfix_operato...
Keyword[public] Keyword[static] Keyword[void] identifier[storeProperties] operator[SEP] identifier[Properties] identifier[p] , identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileOutputStream] identifier[fos] operator[=] Keyword[new] identifier[FileOutputStre...
public static void copyParamsToAttributes( final HttpServletRequest servletRequest, final boolean treatEmptyParamsAsNull, final boolean ignoreEmptyRequestParams) { Enumeration paramNames = servletRequest.getParameterNames(); while (paramNames.hasMoreElements()) { String paramName = (String) paramNames.nex...
class class_name[name] begin[{] method[copyParamsToAttributes, return_type[void], modifier[public static], parameter[servletRequest, treatEmptyParamsAsNull, ignoreEmptyRequestParams]] begin[{] local_variable[type[Enumeration], paramNames] while[call[paramNames.hasMoreElements, parameter...
Keyword[public] Keyword[static] Keyword[void] identifier[copyParamsToAttributes] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[servletRequest] , Keyword[final] Keyword[boolean] identifier[treatEmptyParamsAsNull] , Keyword[final] Keyword[boolean] identifier[ignoreEmptyRequestParams] operator[S...
@Override protected void initParser() throws MtasConfigException { namespaceURI = "http://ilk.uvt.nl/folia"; namespaceURI_id = "http://www.w3.org/XML/1998/namespace"; rootTag = "FoLiA"; contentTag = "text"; allowNonContent = true; super.initParser(); }
class class_name[name] begin[{] method[initParser, return_type[void], modifier[protected], parameter[]] begin[{] assign[member[.namespaceURI], literal["http://ilk.uvt.nl/folia"]] assign[member[.namespaceURI_id], literal["http://www.w3.org/XML/1998/namespace"]] as...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[initParser] operator[SEP] operator[SEP] Keyword[throws] identifier[MtasConfigException] { identifier[namespaceURI] operator[=] literal[String] operator[SEP] identifier[namespaceURI_id] operator[=] literal[String] operator[SEP] identif...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.SET_BI_LEVEL_IMAGE_COLOR__AREA: return getAREA(); case AfplibPackage.SET_BI_LEVEL_IMAGE_COLOR__RESERVED: return getReserved(); case AfplibPackage.SET_BI_LEVEL_IMAGE_COLOR__NAMECOL...
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=SET_BI_LEVEL_IMAGE_COLOR__AREA, postfix_operators=[], prefix_operators=[], qualifier=Afplib...
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...
public String getDescription(Locale locale) { if (m_systemRole) { // localize role names for system roles return Messages.get().getBundle(locale).key("GUI_ROLE_DESCRIPTION_" + m_roleName + "_0"); } else { return getName(locale); } }
class class_name[name] begin[{] method[getDescription, return_type[type[String]], modifier[public], parameter[locale]] begin[{] if[member[.m_systemRole]] begin[{] return[call[Messages.get, parameter[]]] else begin[{] return[call[.getName, parameter[member[.locale...
Keyword[public] identifier[String] identifier[getDescription] operator[SEP] identifier[Locale] identifier[locale] operator[SEP] { Keyword[if] operator[SEP] identifier[m_systemRole] operator[SEP] { Keyword[return] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[S...
@Override public JsonObject serialize(CallDetailRecordList cdrList, Type type, JsonSerializationContext context) { JsonObject result = new JsonObject(); JsonArray array = new JsonArray(); for (CallDetailRecord cdr : cdrList.getCallDetailRecords()) { array.add(context.serialize(...
class class_name[name] begin[{] method[serialize, return_type[type[JsonObject]], modifier[public], parameter[cdrList, type, context]] begin[{] local_variable[type[JsonObject], result] local_variable[type[JsonArray], array] ForStatement(body=BlockStatement(label=None, statements=[Stateme...
annotation[@] identifier[Override] Keyword[public] identifier[JsonObject] identifier[serialize] operator[SEP] identifier[CallDetailRecordList] identifier[cdrList] , identifier[Type] identifier[type] , identifier[JsonSerializationContext] identifier[context] operator[SEP] { identifier[JsonObject] identifier[res...
private Integer parseDateComponent(final String component, final char padding) { if (component != null && component.indexOf(padding) == -1) { try { return Integer.valueOf(component); } catch (NumberFormatException e) { return null; } } return null; }
class class_name[name] begin[{] method[parseDateComponent, return_type[type[Integer]], modifier[private], parameter[component, padding]] begin[{] if[binary_operation[binary_operation[member[.component], !=, literal[null]], &&, binary_operation[call[component.indexOf, parameter[member[.padding]]...
Keyword[private] identifier[Integer] identifier[parseDateComponent] operator[SEP] Keyword[final] identifier[String] identifier[component] , Keyword[final] Keyword[char] identifier[padding] operator[SEP] { Keyword[if] operator[SEP] identifier[component] operator[!=] Other[null] operator[&&] identifier[component]...
public static String orderQuery(boolean isSandbox, Map<String, String> params) { if (isSandbox) return doPost(ORDERQUERY_SANDBOXNEW_URL, params); return doPost(ORDERQUERY_URL, params); }
class class_name[name] begin[{] method[orderQuery, return_type[type[String]], modifier[public static], parameter[isSandbox, params]] begin[{] if[member[.isSandbox]] begin[{] return[call[.doPost, parameter[member[.ORDERQUERY_SANDBOXNEW_URL], member[.params]]]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[String] identifier[orderQuery] operator[SEP] Keyword[boolean] identifier[isSandbox] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[params] operator[SEP] { Keyword[if] operator[SEP] identifier[isSandbox] operator[SEP] Keywo...
@Override public String interpreterCall( boolean isTagFile, String expression, Class expectedType, String fnmapvar, boolean XmlEscape, String pageContextVar) { //PK65013 /* * Determine which context object to use. */ Str...
class class_name[name] begin[{] method[interpreterCall, return_type[type[String]], modifier[public], parameter[isTagFile, expression, expectedType, fnmapvar, XmlEscape, pageContextVar]] begin[{] local_variable[type[String], jspCtxt] if[member[.isTagFile]] begin[{] assign[mem...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[interpreterCall] operator[SEP] Keyword[boolean] identifier[isTagFile] , identifier[String] identifier[expression] , identifier[Class] identifier[expectedType] , identifier[String] identifier[fnmapvar] , Keyword[boolean] identifier[XmlE...
@Override public void findOne(String sql, Object[] params, Result<Cursor> result) { _db.findOne(sql, result, params); }
class class_name[name] begin[{] method[findOne, return_type[void], modifier[public], parameter[sql, params, result]] begin[{] call[_db.findOne, parameter[member[.sql], member[.result], member[.params]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[findOne] operator[SEP] identifier[String] identifier[sql] , identifier[Object] operator[SEP] operator[SEP] identifier[params] , identifier[Result] operator[<] identifier[Cursor] operator[>] identifier[result] operator[SEP] { identifier...
public static void clearCookie (HttpServletResponse rsp, String name) { Cookie c = new Cookie(name, "x"); c.setPath("/"); c.setMaxAge(0); rsp.addCookie(c); }
class class_name[name] begin[{] method[clearCookie, return_type[void], modifier[public static], parameter[rsp, name]] begin[{] local_variable[type[Cookie], c] call[c.setPath, parameter[literal["/"]]] call[c.setMaxAge, parameter[literal[0]]] call[rsp.addCo...
Keyword[public] Keyword[static] Keyword[void] identifier[clearCookie] operator[SEP] identifier[HttpServletResponse] identifier[rsp] , identifier[String] identifier[name] operator[SEP] { identifier[Cookie] identifier[c] operator[=] Keyword[new] identifier[Cookie] operator[SEP] identifier[name] , literal[String]...
public static void tql2(int n, double d[], double e[], double v[][]) { // This is derived from the Algol procedures tql2, by // Bowdler, Martin, Reinsch, and Wilkinson, Handbook for // Auto. Comp., Vol.ii-Linear Algebra, and the corresponding // Fortran subroutine in EISPACK. System.arraycopy(...
class class_name[name] begin[{] method[tql2, return_type[void], modifier[public static], parameter[n, d, e, v]] begin[{] call[System.arraycopy, parameter[member[.e], literal[1], member[.e], literal[0], binary_operation[member[.n], -, literal[1]]]] assign[member[.e], literal[0.0]...
Keyword[public] Keyword[static] Keyword[void] identifier[tql2] operator[SEP] Keyword[int] identifier[n] , Keyword[double] identifier[d] operator[SEP] operator[SEP] , Keyword[double] identifier[e] operator[SEP] operator[SEP] , Keyword[double] identifier[v] operator[SEP] operator[SEP] operator[SEP] operator[SEP] opera...
public synchronized void putSIMessageHandles(SIMessageHandle[] siMsgHandles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "putSIMessageHandles", siMsgHandles); putInt(siMsgHandles.length); for (int handleIndex = 0; handleIndex < siMsgHandles.length; ++handleI...
class class_name[name] begin[{] method[putSIMessageHandles, return_type[void], modifier[synchronized public], parameter[siMsgHandles]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.e...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[putSIMessageHandles] operator[SEP] identifier[SIMessageHandle] operator[SEP] operator[SEP] identifier[siMsgHandles] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] opera...
private Set<Artifact> getProjectDependencies() { Set<Artifact> result = new LinkedHashSet<Artifact>(); for (MavenProject p : getSession().getProjectDependencyGraph().getSortedProjects()) { for (Dependency dependency : p.getDependencies()) { result.add(toArtifact(dependency));...
class class_name[name] begin[{] method[getProjectDependencies, return_type[type[Set]], modifier[private], parameter[]] begin[{] local_variable[type[Set], result] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression...
Keyword[private] identifier[Set] operator[<] identifier[Artifact] operator[>] identifier[getProjectDependencies] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[Artifact] operator[>] identifier[result] operator[=] Keyword[new] identifier[LinkedHashSet] operator[<] identifier[Artifact] operat...
public static AFPChain deleteHighestDistanceColumn(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException { int[][][] optAln = afpChain.getOptAln(); int maxBlock = 0; int maxPos = 0; double maxDistance = Double.MIN_VALUE; for (int b = 0; b < optAln.length; b++) { for (int p = 0; p < opt...
class class_name[name] begin[{] method[deleteHighestDistanceColumn, return_type[type[AFPChain]], modifier[public static], parameter[afpChain, ca1, ca2]] begin[{] local_variable[type[int], optAln] local_variable[type[int], maxBlock] local_variable[type[int], maxPos] local_variabl...
Keyword[public] Keyword[static] identifier[AFPChain] identifier[deleteHighestDistanceColumn] operator[SEP] identifier[AFPChain] identifier[afpChain] , identifier[Atom] operator[SEP] operator[SEP] identifier[ca1] , identifier[Atom] operator[SEP] operator[SEP] identifier[ca2] operator[SEP] Keyword[throws] identifier[St...
public void step() { if (this.isSolved()) return; explain = true; session.setGlobal("explain", explain); this.counter.setCount(1); session.update(session.getFactHandle(this.counter), this.counter); if( steppingFactHandle == null ){ steppingFactHandle = session...
class class_name[name] begin[{] method[step, return_type[void], modifier[public], parameter[]] begin[{] if[THIS[call[None.isSolved, parameter[]]]] begin[{] return[None] else begin[{] None end[}] assign[member[.explain], literal[true]] call[session...
Keyword[public] Keyword[void] identifier[step] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isSolved] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[explain] operator[=] literal[boolean] operator[SEP] identifier[session] operat...
public void setInstanceLevel(int[] enabled, int[] enabledSync, int newLevel, boolean recursive) { // fine grained spec is not defined, use 5.0 level if (newLevel != PmiConstants.LEVEL_FINEGRAIN) { if (newLevel != PmiConstants.LEVEL_UNDEFINED) { setInstanceLevel_V5(newLevel, r...
class class_name[name] begin[{] method[setInstanceLevel, return_type[void], modifier[public], parameter[enabled, enabledSync, newLevel, recursive]] begin[{] if[binary_operation[member[.newLevel], !=, member[PmiConstants.LEVEL_FINEGRAIN]]] begin[{] if[binary_operation[mem...
Keyword[public] Keyword[void] identifier[setInstanceLevel] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[enabled] , Keyword[int] operator[SEP] operator[SEP] identifier[enabledSync] , Keyword[int] identifier[newLevel] , Keyword[boolean] identifier[recursive] operator[SEP] { Keyword[if] oper...
protected void fireInsertUpdate( DocumentEvent evt ) { super.fireInsertUpdate(evt); try { processChangedLines(evt.getOffset(), evt.getLength()); } catch (BadLocationException ex) { System.out.println("" + ex); } }
class class_name[name] begin[{] method[fireInsertUpdate, return_type[void], modifier[protected], parameter[evt]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=evt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fireInsertUpdate, postfix_operator...
Keyword[protected] Keyword[void] identifier[fireInsertUpdate] operator[SEP] identifier[DocumentEvent] identifier[evt] operator[SEP] { Keyword[super] operator[SEP] identifier[fireInsertUpdate] operator[SEP] identifier[evt] operator[SEP] operator[SEP] Keyword[try] { identifier[processChangedLines] opera...
protected void findMatching(Class<? extends T> type, BiPredicate<Class<? extends T>, D> predicate) { traverseType(type, predicate, new HashSet<>()); }
class class_name[name] begin[{] method[findMatching, return_type[void], modifier[protected], parameter[type, predicate]] begin[{] call[.traverseType, parameter[member[.type], member[.predicate], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_...
Keyword[protected] Keyword[void] identifier[findMatching] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[type] , identifier[BiPredicate] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] , identifier[D] opera...
public void setValue(final String key, final String value, final String profile) { if (profile == null) { data.putBaseProperty(key, value, false); } else { data.putProfileProperty(key, value, profile, false); } initialized = false; }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[key, value, profile]] begin[{] if[binary_operation[member[.profile], ==, literal[null]]] begin[{] call[data.putBaseProperty, parameter[member[.key], member[.value], literal[fa...
Keyword[public] Keyword[void] identifier[setValue] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[value] , Keyword[final] identifier[String] identifier[profile] operator[SEP] { Keyword[if] operator[SEP] identifier[profile] operator[==] Other[null]...
@Override public void setExceptionHandler(final ExceptionHandler exceptionHandler) { for (final Worker worker : this.workers) { worker.setExceptionHandler(exceptionHandler); } }
class class_name[name] begin[{] method[setExceptionHandler, return_type[void], modifier[public], parameter[exceptionHandler]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=exceptionHandler, postfix_ope...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setExceptionHandler] operator[SEP] Keyword[final] identifier[ExceptionHandler] identifier[exceptionHandler] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Worker] identifier[worker] operator[:] Keyword[this] operat...
public void setFunctions(java.util.Collection<String> functions) { if (functions == null) { this.functions = null; return; } this.functions = new java.util.ArrayList<String>(functions); }
class class_name[name] begin[{] method[setFunctions, return_type[void], modifier[public], parameter[functions]] begin[{] if[binary_operation[member[.functions], ==, literal[null]]] begin[{] assign[THIS[member[None.functions]], literal[null]] return[None] ...
Keyword[public] Keyword[void] identifier[setFunctions] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[functions] operator[SEP] { Keyword[if] operator[SEP] identifier[functions] operator[==] Other[null] opera...
@Override public void visitClassContext(ClassContext classContext) { try { JavaClass cls = classContext.getJavaClass(); for (CompareSpec entry : compareClasses) { if (cls.implementationOf(entry.getCompareClass())) { methodInfo = entry.getMethodInfo...
class class_name[name] begin[{] method[visitClassContext, return_type[void], modifier[public], parameter[classContext]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getJavaClass, po...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitClassContext] operator[SEP] identifier[ClassContext] identifier[classContext] operator[SEP] { Keyword[try] { identifier[JavaClass] identifier[cls] operator[=] identifier[classContext] operator[SEP] identifier[getJavaClass...
@Override public ExtendedSet<T> tailSet(T fromElement) { if (elements instanceof SortedSet<?>) { GenericExtendedSet<T> c = empty(); c.elements = ((SortedSet<T>) elements).tailSet(fromElement); return c; } return super.headSet(fromElement); }
class class_name[name] begin[{] method[tailSet, return_type[type[ExtendedSet]], modifier[public], parameter[fromElement]] begin[{] if[binary_operation[member[.elements], instanceof, type[SortedSet]]] begin[{] local_variable[type[GenericExtendedSet], c] assign...
annotation[@] identifier[Override] Keyword[public] identifier[ExtendedSet] operator[<] identifier[T] operator[>] identifier[tailSet] operator[SEP] identifier[T] identifier[fromElement] operator[SEP] { Keyword[if] operator[SEP] identifier[elements] Keyword[instanceof] identifier[SortedSet] operator[<] operator[?]...
@NonNull public Searcher updateFacetRefinement(@NonNull String attribute, @NonNull String value, boolean active) { if (active) { addFacetRefinement(attribute, value); } else { removeFacetRefinement(attribute, value); } return this; }
class class_name[name] begin[{] method[updateFacetRefinement, return_type[type[Searcher]], modifier[public], parameter[attribute, value, active]] begin[{] if[member[.active]] begin[{] call[.addFacetRefinement, parameter[member[.attribute], member[.value]]] else b...
annotation[@] identifier[NonNull] Keyword[public] identifier[Searcher] identifier[updateFacetRefinement] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[attribute] , annotation[@] identifier[NonNull] identifier[String] identifier[value] , Keyword[boolean] identifier[active] operator[SEP]...
public void rotateToFaceCamera(final GVRTransform transform) { //see http://stackoverflow.com/questions/5782658/extracting-yaw-from-a-quaternion final GVRTransform t = getMainCameraRig().getHeadTransform(); final Quaternionf q = new Quaternionf(0, t.getRotationY(), 0, t.getRotationW()).normalize...
class class_name[name] begin[{] method[rotateToFaceCamera, return_type[void], modifier[public], parameter[transform]] begin[{] local_variable[type[GVRTransform], t] local_variable[type[Quaternionf], q] call[transform.rotateWithPivot, parameter[member[q.w], member[q.x], member[q....
Keyword[public] Keyword[void] identifier[rotateToFaceCamera] operator[SEP] Keyword[final] identifier[GVRTransform] identifier[transform] operator[SEP] { Keyword[final] identifier[GVRTransform] identifier[t] operator[=] identifier[getMainCameraRig] operator[SEP] operator[SEP] operator[SEP] identifier[getHeadTrans...
public static MediaPictureConverter createConverter( String converterDescriptor, PixelFormat.Type pictureType, int pictureWidth, int pictureHeight, int imageWidth, int imageHeight) { MediaPictureConverter converter = null; // establish the converter type Type converterType = findReg...
class class_name[name] begin[{] method[createConverter, return_type[type[MediaPictureConverter]], modifier[public static], parameter[converterDescriptor, pictureType, pictureWidth, pictureHeight, imageWidth, imageHeight]] begin[{] local_variable[type[MediaPictureConverter], converter] local_var...
Keyword[public] Keyword[static] identifier[MediaPictureConverter] identifier[createConverter] operator[SEP] identifier[String] identifier[converterDescriptor] , identifier[PixelFormat] operator[SEP] identifier[Type] identifier[pictureType] , Keyword[int] identifier[pictureWidth] , Keyword[int] identifier[pictureHeig...
private AmqpBuffer putBit(Boolean v) { byte value = 0; if (v) { value = 1; } if (this.bitCount > 0) { byte lastByte = this.getAt(this.position() - 1); lastByte = (byte)((value << this.bitCount) | lastByte); this.p...
class class_name[name] begin[{] method[putBit, return_type[type[AmqpBuffer]], modifier[private], parameter[v]] begin[{] local_variable[type[byte], value] if[member[.v]] begin[{] assign[member[.value], literal[1]] else begin[{] None end[}] ...
Keyword[private] identifier[AmqpBuffer] identifier[putBit] operator[SEP] identifier[Boolean] identifier[v] operator[SEP] { Keyword[byte] identifier[value] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[v] operator[SEP] { identifier[value] operator[=] Other[1] operator[SEP] ...
public void putClientMetrics(ClientMetrics clientMetrics) throws GalaxyFDSClientException { URI uri = formatUri(fdsConfig.getBaseUri(), "", (SubResource[]) null); ContentType contentType = ContentType.APPLICATION_JSON; HashMap<String, String> params = new HashMap<String, String>(); params.put("cli...
class class_name[name] begin[{] method[putClientMetrics, return_type[void], modifier[public], parameter[clientMetrics]] begin[{] local_variable[type[URI], uri] local_variable[type[ContentType], contentType] local_variable[type[HashMap], params] call[params.put, parameter...
Keyword[public] Keyword[void] identifier[putClientMetrics] operator[SEP] identifier[ClientMetrics] identifier[clientMetrics] operator[SEP] Keyword[throws] identifier[GalaxyFDSClientException] { identifier[URI] identifier[uri] operator[=] identifier[formatUri] operator[SEP] identifier[fdsConfig] operator[SEP] ide...
public static String getDisplayName(String localeID, ULocale displayLocale) { return getDisplayNameInternal(new ULocale(localeID), displayLocale); }
class class_name[name] begin[{] method[getDisplayName, return_type[type[String]], modifier[public static], parameter[localeID, displayLocale]] begin[{] return[call[.getDisplayNameInternal, parameter[ClassCreator(arguments=[MemberReference(member=localeID, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[static] identifier[String] identifier[getDisplayName] operator[SEP] identifier[String] identifier[localeID] , identifier[ULocale] identifier[displayLocale] operator[SEP] { Keyword[return] identifier[getDisplayNameInternal] operator[SEP] Keyword[new] identifier[ULocale] operator[SEP] iden...
public static boolean available(String groupName, String unitName) { return LocalUnitsManager.getLocalUnit(groupName, unitName) != null || UnitDiscovery.singleton != null && UnitDiscovery.singleton.firstInstance(Unit.fullName(groupName, unitName)) != null; }
class class_name[name] begin[{] method[available, return_type[type[boolean]], modifier[public static], parameter[groupName, unitName]] begin[{] return[binary_operation[binary_operation[call[LocalUnitsManager.getLocalUnit, parameter[member[.groupName], member[.unitName]]], !=, literal[null]], ||, binary...
Keyword[public] Keyword[static] Keyword[boolean] identifier[available] operator[SEP] identifier[String] identifier[groupName] , identifier[String] identifier[unitName] operator[SEP] { Keyword[return] identifier[LocalUnitsManager] operator[SEP] identifier[getLocalUnit] operator[SEP] identifier[groupName] , iden...
public void setUniformDistribution(UniformDistributionType newUniformDistribution) { ((FeatureMap.Internal)getMixed()).set(BpsimPackage.Literals.DOCUMENT_ROOT__UNIFORM_DISTRIBUTION, newUniformDistribution); }
class class_name[name] begin[{] method[setUniformDistribution, return_type[void], modifier[public], parameter[newUniformDistribution]] begin[{] Cast(expression=MethodInvocation(arguments=[], member=getMixed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=Non...
Keyword[public] Keyword[void] identifier[setUniformDistribution] operator[SEP] identifier[UniformDistributionType] identifier[newUniformDistribution] operator[SEP] { operator[SEP] operator[SEP] identifier[FeatureMap] operator[SEP] identifier[Internal] operator[SEP] identifier[getMixed] operator[SEP] operator[SEP...
public void flushInternal() throws IOException { if (listener == null) { if (anyAreSet(state, FLAG_CLOSED)) { //just return return; } if (buffer != null && buffer.position() != 0) { writeBufferBlocking(false); } ...
class class_name[name] begin[{] method[flushInternal, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.listener], ==, literal[null]]] begin[{] if[call[.anyAreSet, parameter[member[.state], member[.FLAG_CLOSED]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[flushInternal] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[listener] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[anyAreSet] operator[SEP] identifier[state] , ident...
private void initClassPath() { /* Classpath can be specified in one of two ways, depending on whether the compilation is embedded or invoked from Jspc. 1. Calculated by the web container, and passed to Jasper in the context attribute. 2. Jspc directly invoke JspCo...
class class_name[name] begin[{] method[initClassPath, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[StringBuilder], cpath] local_variable[type[String], sep] call[cpath.append, parameter[binary_operation[call[options.getScratchDir, parameter[]], ...
Keyword[private] Keyword[void] identifier[initClassPath] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[cpath] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[sep] operator[=] identifier[System] operator[SEP] identifie...
public ListBackupPlansResult withBackupPlansList(BackupPlansListMember... backupPlansList) { if (this.backupPlansList == null) { setBackupPlansList(new java.util.ArrayList<BackupPlansListMember>(backupPlansList.length)); } for (BackupPlansListMember ele : backupPlansList) { ...
class class_name[name] begin[{] method[withBackupPlansList, return_type[type[ListBackupPlansResult]], modifier[public], parameter[backupPlansList]] begin[{] if[binary_operation[THIS[member[None.backupPlansList]], ==, literal[null]]] begin[{] call[.setBackupPlansList, par...
Keyword[public] identifier[ListBackupPlansResult] identifier[withBackupPlansList] operator[SEP] identifier[BackupPlansListMember] operator[...] identifier[backupPlansList] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[backupPlansList] operator[==] Other[null] operator[SEP] { ...
protected void setProperties(Properties properties) { Properties oldProperties = internalProperties; synchronized(this) { internalProperties = properties; } notifyPropertiesChanged(oldProperties); }
class class_name[name] begin[{] method[setProperties, return_type[void], modifier[protected], parameter[properties]] begin[{] local_variable[type[Properties], oldProperties] SYNCHRONIZED[THIS[]] BEGIN[{] assign[member[.internalProperties], member[.properties]] ...
Keyword[protected] Keyword[void] identifier[setProperties] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] { identifier[Properties] identifier[oldProperties] operator[=] identifier[internalProperties] operator[SEP] Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { ...
public static RedissonCache monitor(MeterRegistry registry, RedissonCache cache, Iterable<Tag> tags) { new RedissonCacheMetrics(cache, tags).bindTo(registry); return cache; }
class class_name[name] begin[{] method[monitor, return_type[type[RedissonCache]], modifier[public static], parameter[registry, cache, tags]] begin[{] ClassCreator(arguments=[MemberReference(member=cache, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(membe...
Keyword[public] Keyword[static] identifier[RedissonCache] identifier[monitor] operator[SEP] identifier[MeterRegistry] identifier[registry] , identifier[RedissonCache] identifier[cache] , identifier[Iterable] operator[<] identifier[Tag] operator[>] identifier[tags] operator[SEP] { Keyword[new] identifier[Rediss...
@Override public Headers getHeaders() { UIContext uic = UIContextHolder.getCurrent(); return uic == null ? null : uic.getHeaders(); }
class class_name[name] begin[{] method[getHeaders, return_type[type[Headers]], modifier[public], parameter[]] begin[{] local_variable[type[UIContext], uic] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=uic, postfix_operators=[], prefix_operators=[], qualifie...
annotation[@] identifier[Override] Keyword[public] identifier[Headers] identifier[getHeaders] operator[SEP] operator[SEP] { identifier[UIContext] identifier[uic] operator[=] identifier[UIContextHolder] operator[SEP] identifier[getCurrent] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[uic] ...
protected void linearScanBatchKNN(List<O> objs, List<KNNHeap> heaps) { final PrimitiveDistanceFunction<? super O> rawdist = this.rawdist; final Relation<? extends O> relation = getRelation(); final int size = objs.size(); // Linear scan style KNN. for(DBIDIter iter = relation.getDBIDs().iter(); iter...
class class_name[name] begin[{] method[linearScanBatchKNN, return_type[void], modifier[protected], parameter[objs, heaps]] begin[{] local_variable[type[PrimitiveDistanceFunction], rawdist] local_variable[type[Relation], relation] local_variable[type[int], size] ForStatement(body...
Keyword[protected] Keyword[void] identifier[linearScanBatchKNN] operator[SEP] identifier[List] operator[<] identifier[O] operator[>] identifier[objs] , identifier[List] operator[<] identifier[KNNHeap] operator[>] identifier[heaps] operator[SEP] { Keyword[final] identifier[PrimitiveDistanceFunction] operator[<] ...
@SuppressWarnings("unchecked") @Override public EList<IfcDocumentReference> getHasDocumentReferences() { return (EList<IfcDocumentReference>) eGet( Ifc4Package.Literals.IFC_DOCUMENT_INFORMATION__HAS_DOCUMENT_REFERENCES, true); }
class class_name[name] begin[{] method[getHasDocumentReferences, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_DOCUMENT_INFORMATION__HAS_DOCUMENT_REFERENCES, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcDocumentReference] operator[>] identifier[getHasDocumentReferences] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] ide...
public List<CmsRelation> readRelations(CmsRelationFilter filter) throws CmsException { return m_securityManager.getRelationsForResource(m_context, null, filter); }
class class_name[name] begin[{] method[readRelations, return_type[type[List]], modifier[public], parameter[filter]] begin[{] return[call[m_securityManager.getRelationsForResource, parameter[member[.m_context], literal[null], member[.filter]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[CmsRelation] operator[>] identifier[readRelations] operator[SEP] identifier[CmsRelationFilter] identifier[filter] operator[SEP] Keyword[throws] identifier[CmsException] { Keyword[return] identifier[m_securityManager] operator[SEP] identifier[getRelationsFor...
@Override public void registerAsynchConsumer( AsynchConsumerCallback callback, int maxActiveMessages, long messageLockExpiry, int maxBatchSize, ...
class class_name[name] begin[{] method[registerAsynchConsumer, return_type[void], modifier[public], parameter[callback, maxActiveMessages, messageLockExpiry, maxBatchSize, unrecoverableReliability, inLine, orderingGroup, optionalCallbackBusyLock]] begin[{] if[binary_operation[call[TraceComponen...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerAsynchConsumer] operator[SEP] identifier[AsynchConsumerCallback] identifier[callback] , Keyword[int] identifier[maxActiveMessages] , Keyword[long] identifier[messageLockExpiry] , Keyword[int] identifier[maxBatchSize] , identifier[Re...
public void report() { try (Writer w = new NonClosingSystemOut()) { report(w); } catch (IOException e) { throw new IllegalStateException("Should never be an exception writing to System.out", e); } }
class class_name[name] begin[{] method[report, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=report, postfi...
Keyword[public] Keyword[void] identifier[report] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[Writer] identifier[w] operator[=] Keyword[new] identifier[NonClosingSystemOut] operator[SEP] operator[SEP] operator[SEP] { identifier[report] operator[SEP] identifier[w] operator[SEP] o...
public static <T extends Parcelable> ParcelablePickerDialogFragment<T> newInstance( int pickerId, String title, String positiveButtonText, String negativeButtonText, boolean enableMultipleSelection, int[] selectedItemIndices, ArrayList<...
class class_name[name] begin[{] method[newInstance, return_type[type[ParcelablePickerDialogFragment]], modifier[public static], parameter[pickerId, title, positiveButtonText, negativeButtonText, enableMultipleSelection, selectedItemIndices, availableItems]] begin[{] local_variable[type[ParcelablePicker...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Parcelable] operator[>] identifier[ParcelablePickerDialogFragment] operator[<] identifier[T] operator[>] identifier[newInstance] operator[SEP] Keyword[int] identifier[pickerId] , identifier[String] identifier[title] , identifier[Str...
@Option(name = "-sl", aliases = "--select-length", metaVar = "<length>", usage = "Length of select in seconds.") void setSelectLength(Duration selectLength) { m_selectLength = selectLength; }
class class_name[name] begin[{] method[setSelectLength, return_type[void], modifier[default], parameter[selectLength]] begin[{] assign[member[.m_selectLength], member[.selectLength]] end[}] END[}]
annotation[@] identifier[Option] operator[SEP] identifier[name] operator[=] literal[String] , identifier[aliases] operator[=] literal[String] , identifier[metaVar] operator[=] literal[String] , identifier[usage] operator[=] literal[String] operator[SEP] Keyword[void] identifier[setSelectLength] operator[SEP] identif...
@CheckReturnValue public MessageAction sendTo(MessageChannel channel) { Checks.notNull(channel, "Target Channel"); switch (channel.getType()) { case TEXT: final TextChannel text = (TextChannel) channel; final Member self = text.getGuild().getSe...
class class_name[name] begin[{] method[sendTo, return_type[type[MessageAction]], modifier[public], parameter[channel]] begin[{] call[Checks.notNull, parameter[member[.channel], literal["Target Channel"]]] SwitchStatement(cases=[SwitchStatementCase(case=['TEXT'], statements=[LocalVariabl...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[MessageAction] identifier[sendTo] operator[SEP] identifier[MessageChannel] identifier[channel] operator[SEP] { identifier[Checks] operator[SEP] identifier[notNull] operator[SEP] identifier[channel] , literal[String] operator[SEP] operator[SEP...
@Override public RandomVariable getForward(AnalyticModel model, double fixingTime, double paymentOffset) { // @TODO: A warning should be issued that this implementation does not use // if(paymentOffset != this.getPaymentOffset(fixingTime)) { // Logger.getLogger("net.finmath").warning("Requesting forward with...
class class_name[name] begin[{] method[getForward, return_type[type[RandomVariable]], modifier[public], parameter[model, fixingTime, paymentOffset]] begin[{] return[THIS[call[None.getForward, parameter[member[.model], member[.fixingTime]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[getForward] operator[SEP] identifier[AnalyticModel] identifier[model] , Keyword[double] identifier[fixingTime] , Keyword[double] identifier[paymentOffset] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identif...
private void processComponents(MAPDialogImpl mapDialogImpl, Component[] components) { // Now let us decode the Components for (Component c : components) { doProcessComponent(mapDialogImpl, c); } }
class class_name[name] begin[{] method[processComponents, return_type[void], modifier[private], parameter[mapDialogImpl, components]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=mapDialogImpl, postfi...
Keyword[private] Keyword[void] identifier[processComponents] operator[SEP] identifier[MAPDialogImpl] identifier[mapDialogImpl] , identifier[Component] operator[SEP] operator[SEP] identifier[components] operator[SEP] { Keyword[for] operator[SEP] identifier[Component] identifier[c] operator[:] identifier[compone...
private StereoBond findStereoBond(IAtom atom) { for (IBond bond : stereoBonds) if (bond.contains(atom)) return (StereoBond) bond; return null; }
class class_name[name] begin[{] method[findStereoBond, return_type[type[StereoBond]], modifier[private], parameter[atom]] begin[{] ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=atom, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], memb...
Keyword[private] identifier[StereoBond] identifier[findStereoBond] operator[SEP] identifier[IAtom] identifier[atom] operator[SEP] { Keyword[for] operator[SEP] identifier[IBond] identifier[bond] operator[:] identifier[stereoBonds] operator[SEP] Keyword[if] operator[SEP] identifier[bond] operator[SEP] identifier[...
public void inputGraph(final InputStream jsonInputStream, int bufferSize, final Set<String> edgePropertyKeys, final Set<String> vertexPropertyKeys) throws IOException { final JsonParser jp = jsonFactory.createJsonParser(jsonInputStream); // if this is a transactional localGraph then we're buffering ...
class class_name[name] begin[{] method[inputGraph, return_type[void], modifier[public], parameter[jsonInputStream, bufferSize, edgePropertyKeys, vertexPropertyKeys]] begin[{] local_variable[type[JsonParser], jp] local_variable[type[BatchGraph], batchGraph] local_variable[type[ElementFac...
Keyword[public] Keyword[void] identifier[inputGraph] operator[SEP] Keyword[final] identifier[InputStream] identifier[jsonInputStream] , Keyword[int] identifier[bufferSize] , Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[edgePropertyKeys] , Keyword[final] identifier[Set] operato...
public SAMLEndpointResponse getSAMLAssertionVerifying(String appId, String devideId, String stateToken, String otpToken, String urlEndpoint, Boolean doNotNotify) throws OAuthSystemException, OAuthProblemException, URISyntaxException { cleanError(); prepareToken(); String target; if (urlEndpoint != null && !url...
class class_name[name] begin[{] method[getSAMLAssertionVerifying, return_type[type[SAMLEndpointResponse]], modifier[public], parameter[appId, devideId, stateToken, otpToken, urlEndpoint, doNotNotify]] begin[{] call[.cleanError, parameter[]] call[.prepareToken, parameter[]] ...
Keyword[public] identifier[SAMLEndpointResponse] identifier[getSAMLAssertionVerifying] operator[SEP] identifier[String] identifier[appId] , identifier[String] identifier[devideId] , identifier[String] identifier[stateToken] , identifier[String] identifier[otpToken] , identifier[String] identifier[urlEndpoint] , id...
static public void writeNcML(NetcdfFile ncfile, Writer writer, WantValues showValues, String url) throws IOException { Preconditions.checkNotNull(ncfile); Preconditions.checkNotNull(writer); Preconditions.checkNotNull(showValues); Predicate<Variable> writeVarsPred; switch (showValues) { case ...
class class_name[name] begin[{] method[writeNcML, return_type[void], modifier[public static], parameter[ncfile, writer, showValues, url]] begin[{] call[Preconditions.checkNotNull, parameter[member[.ncfile]]] call[Preconditions.checkNotNull, parameter[member[.writer]]] ...
Keyword[static] Keyword[public] Keyword[void] identifier[writeNcML] operator[SEP] identifier[NetcdfFile] identifier[ncfile] , identifier[Writer] identifier[writer] , identifier[WantValues] identifier[showValues] , identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] { ident...
public synchronized boolean next(DocumentID key, LineDocTextAndOp value) throws IOException { if (pos >= end) { return false; } // key is document id, which are bytes until first space if (!readInto(key.getText(), SPACE)) { return false; } // read operation: i/d/u,...
class class_name[name] begin[{] method[next, return_type[type[boolean]], modifier[synchronized public], parameter[key, value]] begin[{] if[binary_operation[member[.pos], >=, member[.end]]] begin[{] return[literal[false]] else begin[{] None end[}] if[c...
Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[next] operator[SEP] identifier[DocumentID] identifier[key] , identifier[LineDocTextAndOp] identifier[value] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[pos] operator[>=] identifier[end] operator[SE...
public static Date parseDate(final String str) { ArgUtils.notEmpty(str, str); try { SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); format.setTimeZone(TimeZone.getTimeZone("GMT-00:00")); return format.parse(str); } ca...
class class_name[name] begin[{] method[parseDate, return_type[type[Date]], modifier[public static], parameter[str]] begin[{] call[ArgUtils.notEmpty, parameter[member[.str], member[.str]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens...
Keyword[public] Keyword[static] identifier[Date] identifier[parseDate] operator[SEP] Keyword[final] identifier[String] identifier[str] operator[SEP] { identifier[ArgUtils] operator[SEP] identifier[notEmpty] operator[SEP] identifier[str] , identifier[str] operator[SEP] operator[SEP] Keyword[try] { ide...
public FriendGroup addFriendGroup(String name) { final RosterGroup g = connection.getRoster().createGroup(name); if (g != null) { return new FriendGroup(this, connection, g); } return null; }
class class_name[name] begin[{] method[addFriendGroup, return_type[type[FriendGroup]], modifier[public], parameter[name]] begin[{] local_variable[type[RosterGroup], g] if[binary_operation[member[.g], !=, literal[null]]] begin[{] return[ClassCreator(arguments=[This(postfix_op...
Keyword[public] identifier[FriendGroup] identifier[addFriendGroup] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[final] identifier[RosterGroup] identifier[g] operator[=] identifier[connection] operator[SEP] identifier[getRoster] operator[SEP] operator[SEP] operator[SEP] identifier[cre...
public TrackedPeer update(RequestEvent event, ByteBuffer peerId, String hexPeerId, String ip, int port, long uploaded, long downloaded, long left) throws UnsupportedEncodingException { logger.trace("event {}, Peer: {}:{}", new Object[]{event.getEventName(), ip...
class class_name[name] begin[{] method[update, return_type[type[TrackedPeer]], modifier[public], parameter[event, peerId, hexPeerId, ip, port, uploaded, downloaded, left]] begin[{] call[logger.trace, parameter[literal["event {}, Peer: {}:{}"], ArrayCreator(dimensions=[None], initializer=ArrayIn...
Keyword[public] identifier[TrackedPeer] identifier[update] operator[SEP] identifier[RequestEvent] identifier[event] , identifier[ByteBuffer] identifier[peerId] , identifier[String] identifier[hexPeerId] , identifier[String] identifier[ip] , Keyword[int] identifier[port] , Keyword[long] identifier[uploaded] , Keyw...
boolean allAlive(Frame fr) { for( Vec vec : fr.vecs() ) assert _refcnt.get(vec)._val > 0; return true; }
class class_name[name] begin[{] method[allAlive, return_type[type[boolean]], modifier[default], parameter[fr]] begin[{] ForStatement(body=AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=vec, postfix_operators=[], prefix_operators=[], qualifier=, sel...
Keyword[boolean] identifier[allAlive] operator[SEP] identifier[Frame] identifier[fr] operator[SEP] { Keyword[for] operator[SEP] identifier[Vec] identifier[vec] operator[:] identifier[fr] operator[SEP] identifier[vecs] operator[SEP] operator[SEP] operator[SEP] Keyword[assert] identifier[_refcnt] operator[SEP] id...
public @NotNull Counter bytes(@NotNull String name) { return counters.computeIfAbsent("vertx_" + name + "_bytes", key -> register(Counter.build(key, "Read/written bytes") .labelNames("local_address", "type").create())); }
class class_name[name] begin[{] method[bytes, return_type[type[Counter]], modifier[public], parameter[name]] begin[{] return[call[counters.computeIfAbsent, parameter[binary_operation[binary_operation[literal["vertx_"], +, member[.name]], +, literal["_bytes"]], LambdaExpression(body=MethodInvocation(arg...
Keyword[public] annotation[@] identifier[NotNull] identifier[Counter] identifier[bytes] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[counters] operator[SEP] identifier[computeIfAbsent] operator[SEP] literal[String] operator[+] iden...
private boolean isMajorIsotope(int number, int mass) { try { IIsotope isotope = Isotopes.getInstance().getMajorIsotope(number); return isotope != null && isotope.getMassNumber().equals(mass); } catch (IOException e) { return false; } }
class class_name[name] begin[{] method[isMajorIsotope, return_type[type[boolean]], modifier[private], parameter[number, mass]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInstan...
Keyword[private] Keyword[boolean] identifier[isMajorIsotope] operator[SEP] Keyword[int] identifier[number] , Keyword[int] identifier[mass] operator[SEP] { Keyword[try] { identifier[IIsotope] identifier[isotope] operator[=] identifier[Isotopes] operator[SEP] identifier[getInstance] operator[SEP] opera...
private void initializeDrawer() { mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.ic_drawer, R.string.show, R.string.hide); mDrawerLayout.setDrawerListener(mDrawerToggle); getActionBar().setDisplayHomeAsUp...
class class_name[name] begin[{] method[initializeDrawer, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.mDrawerLayout], Cast(expression=MethodInvocation(arguments=[MemberReference(member=drawer_layout, postfix_operators=[], prefix_operators=[], qualifier=R.id, select...
Keyword[private] Keyword[void] identifier[initializeDrawer] operator[SEP] operator[SEP] { identifier[mDrawerLayout] operator[=] operator[SEP] identifier[DrawerLayout] operator[SEP] identifier[findViewById] operator[SEP] identifier[R] operator[SEP] identifier[id] operator[SEP] identifier[drawer_layout] operator[S...
public static xen_websensevpx_image[] get(nitro_service client) throws Exception { xen_websensevpx_image resource = new xen_websensevpx_image(); resource.validate("get"); return (xen_websensevpx_image[]) resource.get_resources(client); }
class class_name[name] begin[{] method[get, return_type[type[xen_websensevpx_image]], modifier[public static], parameter[client]] begin[{] local_variable[type[xen_websensevpx_image], resource] call[resource.validate, parameter[literal["get"]]] return[Cast(expression=MethodInvoca...
Keyword[public] Keyword[static] identifier[xen_websensevpx_image] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] { identifier[xen_websensevpx_image] identifier[resource] operator[=] Keyword[new] identifier...
public static void insertBand( GrayI8 input, int band , InterleavedI8 output) { final int numBands = output.numBands; for (int y = 0; y < input.height; y++) { int indexIn = input.getStartIndex() + y * input.getStride(); int indexOut = output.getStartIndex() + y * output.getStride() + band; int end = index...
class class_name[name] begin[{] method[insertBand, return_type[void], modifier[public static], parameter[input, band, output]] begin[{] local_variable[type[int], numBands] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDecl...
Keyword[public] Keyword[static] Keyword[void] identifier[insertBand] operator[SEP] identifier[GrayI8] identifier[input] , Keyword[int] identifier[band] , identifier[InterleavedI8] identifier[output] operator[SEP] { Keyword[final] Keyword[int] identifier[numBands] operator[=] identifier[output] operator[SEP] id...
private static Map<String, Set<String>> expand(Map<String, Set<String>> viewToPropNames) { Set<String> baseProps = viewToPropNames.get(PropertyView.BASE_VIEW); if (baseProps == null) { baseProps = ImmutableSet.of(); } if (!SquigglyConfig.isFilterImplicitlyIncludeBaseFields...
class class_name[name] begin[{] method[expand, return_type[type[Map]], modifier[private static], parameter[viewToPropNames]] begin[{] local_variable[type[Set], baseProps] if[binary_operation[member[.baseProps], ==, literal[null]]] begin[{] assign[member[.baseProp...
Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Set] operator[<] identifier[String] operator[>] operator[>] identifier[expand] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Set] operator[<] identifier[String] operator[>] operator[>] identifier[v...
private DataResultSet getResultSet(String name, Service service) { ResultSet rs = service.getBinder().getResultSet(name); DataResultSet drs = new DataResultSet(); if (rs != null) { drs.copy(rs); return drs; } return null; }
class class_name[name] begin[{] method[getResultSet, return_type[type[DataResultSet]], modifier[private], parameter[name, service]] begin[{] local_variable[type[ResultSet], rs] local_variable[type[DataResultSet], drs] if[binary_operation[member[.rs], !=, literal[null]]] begin[{]...
Keyword[private] identifier[DataResultSet] identifier[getResultSet] operator[SEP] identifier[String] identifier[name] , identifier[Service] identifier[service] operator[SEP] { identifier[ResultSet] identifier[rs] operator[=] identifier[service] operator[SEP] identifier[getBinder] operator[SEP] operator[SEP] ope...
private Integer zGetWeekNumberForASevenDayRange(LocalDate firstDateInRange, WeekFields weekFieldRules, boolean requireUnanimousWeekNumber) { // Get the week number for each of the seven days in the range. ArrayList<Integer> weekNumbersList = new ArrayList<Integer>(); for (int daysIntoTh...
class class_name[name] begin[{] method[zGetWeekNumberForASevenDayRange, return_type[type[Integer]], modifier[private], parameter[firstDateInRange, weekFieldRules, requireUnanimousWeekNumber]] begin[{] local_variable[type[ArrayList], weekNumbersList] ForStatement(body=BlockStatement(label=None, ...
Keyword[private] identifier[Integer] identifier[zGetWeekNumberForASevenDayRange] operator[SEP] identifier[LocalDate] identifier[firstDateInRange] , identifier[WeekFields] identifier[weekFieldRules] , Keyword[boolean] identifier[requireUnanimousWeekNumber] operator[SEP] { identifier[ArrayList] operator[<] ident...
boolean validate(StringBuilder out) { this.isValid = true; // If log from construction has content, append to validation output msg. if (this.log.length() > 0) { out.append(this.log); } // Validity check: 'name' cannot be null. (Though, 'name' // can be an empty string.) if (this.get...
class class_name[name] begin[{] method[validate, return_type[type[boolean]], modifier[default], parameter[out]] begin[{] assign[THIS[member[None.isValid]], literal[true]] if[binary_operation[THIS[member[None.log]call[None.length, parameter[]]], >, literal[0]]] begin[{] ...
Keyword[boolean] identifier[validate] operator[SEP] identifier[StringBuilder] identifier[out] operator[SEP] { Keyword[this] operator[SEP] identifier[isValid] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[log] operator[SEP] identifier[length] operator[...
@Draft public ZMsg msgBinaryPicture(String picture, Object... args) { if (!BINARY_FORMAT.matcher(picture).matches()) { throw new ZMQException(picture + " is not in expected binary format " + BINARY_FORMAT.pattern(), ZError.EPROTO); } ZMsg msg = new ZMsg();...
class class_name[name] begin[{] method[msgBinaryPicture, return_type[type[ZMsg]], modifier[public], parameter[picture, args]] begin[{] if[call[BINARY_FORMAT.matcher, parameter[member[.picture]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Bin...
annotation[@] identifier[Draft] Keyword[public] identifier[ZMsg] identifier[msgBinaryPicture] operator[SEP] identifier[String] identifier[picture] , identifier[Object] operator[...] identifier[args] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[BINARY_FORMAT] operator[SEP] identifier[matcher]...
protected SQLException translateException(Exception e) { if (isAcquireTimeoutException(e)) { eventPublisher.publish(new ConnectionAcquireTimeoutEvent(configurationProperties.getUniqueName())); return new AcquireTimeoutException(e); } else if (e instanceof SQLException) { ...
class class_name[name] begin[{] method[translateException, return_type[type[SQLException]], modifier[protected], parameter[e]] begin[{] if[call[.isAcquireTimeoutException, parameter[member[.e]]]] begin[{] call[eventPublisher.publish, parameter[ClassCreator(arguments=[Met...
Keyword[protected] identifier[SQLException] identifier[translateException] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[isAcquireTimeoutException] operator[SEP] identifier[e] operator[SEP] operator[SEP] { identifier[eventPublisher] operator[SEP...
public static <T> List<T> toList(final Class<T> type, final EvaluationContext ctx, final List<Parameter> parameters) { List<T> values = new ArrayList(); if (null != parameters) { for (Parameter param : parameters) { consume(type, ctx, values, param.getValue()); } ...
class class_name[name] begin[{] method[toList, return_type[type[List]], modifier[public static], parameter[type, ctx, parameters]] begin[{] local_variable[type[List], values] if[binary_operation[literal[null], !=, member[.parameters]]] begin[{] ForStatement(body=BlockStateme...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[toList] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , Keyword[final] identifier[EvaluationContext] identifier[ctx] , Keyword...
public static JsonInputValidator getValidator(Class<?> clazz) { if (clazz.equals(Scope.class)) { return ScopeValidator.getInstance(); } if (clazz.equals(ApplicationInfo.class)) { return ApplicationInfoValidator.getInstance(); } return null; }
class class_name[name] begin[{] method[getValidator, return_type[type[JsonInputValidator]], modifier[public static], parameter[clazz]] begin[{] if[call[clazz.equals, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, ...
Keyword[public] Keyword[static] identifier[JsonInputValidator] identifier[getValidator] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[if] operator[SEP] identifier[clazz] operator[SEP] identifier[equals] operator[SEP] identifier[Scope] operator[SEP] ...
private void fireBackgroundDataFlushExceptionEvent(final Throwable e) { for (final WeakReference<OBackgroundExceptionListener> ref : backgroundExceptionListeners) { final OBackgroundExceptionListener listener = ref.get(); if (listener != null) { listener.onException(e); } } }
class class_name[name] begin[{] method[fireBackgroundDataFlushExceptionEvent, return_type[void], modifier[private], parameter[e]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodI...
Keyword[private] Keyword[void] identifier[fireBackgroundDataFlushExceptionEvent] operator[SEP] Keyword[final] identifier[Throwable] identifier[e] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[WeakReference] operator[<] identifier[OBackgroundExceptionListener] operator[>] identifier[ref] op...
public void marshall(UserPoolAddOnsType userPoolAddOnsType, ProtocolMarshaller protocolMarshaller) { if (userPoolAddOnsType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(userPoolAddOnsType.getAdv...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[userPoolAddOnsType, protocolMarshaller]] begin[{] if[binary_operation[member[.userPoolAddOnsType], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UserPoolAddOnsType] identifier[userPoolAddOnsType] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[userPoolAddOnsType] operator[==] Other[null] operator[SEP] { ...
private static String readString(String fieldName, ByteBuf in) { int length = in.bytesBefore(MAX_FIELD_LENGTH + 1, (byte) 0); if (length < 0) { throw new DecoderException("field '" + fieldName + "' longer than " + MAX_FIELD_LENGTH + " chars"); } String value = in.readSlice(l...
class class_name[name] begin[{] method[readString, return_type[type[String]], modifier[private static], parameter[fieldName, in]] begin[{] local_variable[type[int], length] if[binary_operation[member[.length], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(a...
Keyword[private] Keyword[static] identifier[String] identifier[readString] operator[SEP] identifier[String] identifier[fieldName] , identifier[ByteBuf] identifier[in] operator[SEP] { Keyword[int] identifier[length] operator[=] identifier[in] operator[SEP] identifier[bytesBefore] operator[SEP] identifier[MAX_FIE...
@Override public EClass getIfcShadingDeviceType() { if (ifcShadingDeviceTypeEClass == null) { ifcShadingDeviceTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(594); } return ifcShadingDeviceTypeEClass; }
class class_name[name] begin[{] method[getIfcShadingDeviceType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcShadingDeviceTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcShadingDeviceTypeEClass], Cast(expre...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcShadingDeviceType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcShadingDeviceTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcShadingDeviceTypeEClass] operator[=] operator[...
public static void initClass() { // registers a factory for creating new instances of this widget CmsWidgetFactoryRegistry.instance().registerFactory(WIDGET_TYPE, new I_CmsFormWidgetFactory() { /** * @see org.opencms.gwt.client.ui.input.form.I_CmsFormWidgetFactory#createWidget...
class class_name[name] begin[{] method[initClass, return_type[void], modifier[public static], parameter[]] begin[{] call[CmsWidgetFactoryRegistry.instance, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[initClass] operator[SEP] operator[SEP] { identifier[CmsWidgetFactoryRegistry] operator[SEP] identifier[instance] operator[SEP] operator[SEP] operator[SEP] identifier[registerFactory] operator[SEP] identifier[WIDGET_TYPE] , Keyword[new] identifier[I_CmsFor...
public void setFaces(java.util.Collection<FaceDetection> faces) { if (faces == null) { this.faces = null; return; } this.faces = new java.util.ArrayList<FaceDetection>(faces); }
class class_name[name] begin[{] method[setFaces, return_type[void], modifier[public], parameter[faces]] begin[{] if[binary_operation[member[.faces], ==, literal[null]]] begin[{] assign[THIS[member[None.faces]], literal[null]] return[None] else begin[{...
Keyword[public] Keyword[void] identifier[setFaces] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[FaceDetection] operator[>] identifier[faces] operator[SEP] { Keyword[if] operator[SEP] identifier[faces] operator[==] Other[null] operator[S...
public ModifyCallResponse modifyCall(String uuid, ModifyCallAction action) throws IOException, NexmoClientException { return this.modifyCall(new CallModifier(uuid, action)); }
class class_name[name] begin[{] method[modifyCall, return_type[type[ModifyCallResponse]], modifier[public], parameter[uuid, action]] begin[{] return[THIS[call[None.modifyCall, parameter[ClassCreator(arguments=[MemberReference(member=uuid, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
Keyword[public] identifier[ModifyCallResponse] identifier[modifyCall] operator[SEP] identifier[String] identifier[uuid] , identifier[ModifyCallAction] identifier[action] operator[SEP] Keyword[throws] identifier[IOException] , identifier[NexmoClientException] { Keyword[return] Keyword[this] operator[SEP] identi...
public Permissions getPerms(String photoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PERMS); parameters.put("photo_id", photoId); Response response = transport.get(transport.getPath(), parameters,...
class class_name[name] begin[{] method[getPerms, return_type[type[Permissions]], modifier[public], parameter[photoId]] begin[{] local_variable[type[Map], parameters] call[parameters.put, parameter[literal["method"], member[.METHOD_GET_PERMS]]] call[parameters.put, parame...
Keyword[public] identifier[Permissions] identifier[getPerms] operator[SEP] identifier[String] identifier[photoId] operator[SEP] Keyword[throws] identifier[FlickrException] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[parameters] operator[=] Keyword[new] identifier...
public byte[] asByteArray( Object object ) { FSTObjectOutput objectOutput = getObjectOutput(); try { objectOutput.writeObject(object); return objectOutput.getCopyOfWrittenBuffer(); } catch (IOException e) { try { // FSTConfiguration.prettyPrintJ...
class class_name[name] begin[{] method[asByteArray, return_type[type[byte]], modifier[public], parameter[object]] begin[{] local_variable[type[FSTObjectOutput], objectOutput] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=object, postfix_op...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[asByteArray] operator[SEP] identifier[Object] identifier[object] operator[SEP] { identifier[FSTObjectOutput] identifier[objectOutput] operator[=] identifier[getObjectOutput] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { id...
protected void scheduleEvent(final Event event, final long delay, final long period) { final Timer timer = new Timer(); timer.schedule(new ScheduleEvent().event(event), delay, period); timers.add(timer); }
class class_name[name] begin[{] method[scheduleEvent, return_type[void], modifier[protected], parameter[event, delay, period]] begin[{] local_variable[type[Timer], timer] call[timer.schedule, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operat...
Keyword[protected] Keyword[void] identifier[scheduleEvent] operator[SEP] Keyword[final] identifier[Event] identifier[event] , Keyword[final] Keyword[long] identifier[delay] , Keyword[final] Keyword[long] identifier[period] operator[SEP] { Keyword[final] identifier[Timer] identifier[timer] operator[=] Keyword[n...
public static final Level brokenConnection(Level level, Throwable thr) { if (thr instanceof EOFException) { return level; } if (thr instanceof ClosedChannelException) { return level; } if ((thr instanceof IOException) && ( ...
class class_name[name] begin[{] method[brokenConnection, return_type[type[Level]], modifier[final public static], parameter[level, thr]] begin[{] if[binary_operation[member[.thr], instanceof, type[EOFException]]] begin[{] return[member[.level]] else begin[{] None end...
Keyword[public] Keyword[static] Keyword[final] identifier[Level] identifier[brokenConnection] operator[SEP] identifier[Level] identifier[level] , identifier[Throwable] identifier[thr] operator[SEP] { Keyword[if] operator[SEP] identifier[thr] Keyword[instanceof] identifier[EOFException] operator[SEP] { ...
@Nonnull public static GregorianCalendar getCalendarUTC (final long nMillis) { final GregorianCalendar aCalendar = new GregorianCalendar (PDTConfig.getUTCTimeZone (), Locale.getDefault (Locale.Category.FORMAT)); aCalendar.setTimeInMillis (nMilli...
class class_name[name] begin[{] method[getCalendarUTC, return_type[type[GregorianCalendar]], modifier[public static], parameter[nMillis]] begin[{] local_variable[type[GregorianCalendar], aCalendar] call[aCalendar.setTimeInMillis, parameter[member[.nMillis]]] return[member[.aCale...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[GregorianCalendar] identifier[getCalendarUTC] operator[SEP] Keyword[final] Keyword[long] identifier[nMillis] operator[SEP] { Keyword[final] identifier[GregorianCalendar] identifier[aCalendar] operator[=] Keyword[new] identifier[Gregoria...
void initializeClientUnprotected(String host, int port, String sessionId) throws IOException { if (client != null) { return; } LOG.info("Creating JT client to " + host + ":" + port); long connectTimeout = RemoteJTProxy.getRemotJTTimeout(conf); int rpcTimeout = RemoteJTProxy.getRemoteJTRPCT...
class class_name[name] begin[{] method[initializeClientUnprotected, return_type[void], modifier[default], parameter[host, port, sessionId]] begin[{] if[binary_operation[member[.client], !=, literal[null]]] begin[{] return[None] else begin[{] None end[}] ...
Keyword[void] identifier[initializeClientUnprotected] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] , identifier[String] identifier[sessionId] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[client] operator[!=] Other[null] operat...
public Map<TypeDescription, Class<?>> load(ClassLoader classLoader, Map<TypeDescription, byte[]> types) { Map<String, Class<?>> availableTypes = new HashMap<String, Class<?>>(preregisteredTypes); for (Class<?> type : instrumentation.getInitiatedClasses(classLoader)) { availableTypes.put(Type...
class class_name[name] begin[{] method[load, return_type[type[Map]], modifier[public], parameter[classLoader, types]] begin[{] local_variable[type[Map], availableTypes] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvo...
Keyword[public] identifier[Map] operator[<] identifier[TypeDescription] , identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[load] operator[SEP] identifier[ClassLoader] identifier[classLoader] , identifier[Map] operator[<] identifier[TypeDescription] , Keyword[byte] operator[SEP] operator[S...
private int mapNSTokens(String pat, int startSubstring, int posOfNSSep, int posOfScan) throws javax.xml.transform.TransformerException { String prefix = ""; if ((startSubstring >= 0) && (posOfNSSep >= 0)) { prefix = pat.substring(startSubstring, posOfNSSep)...
class class_name[name] begin[{] method[mapNSTokens, return_type[type[int]], modifier[private], parameter[pat, startSubstring, posOfNSSep, posOfScan]] begin[{] local_variable[type[String], prefix] if[binary_operation[binary_operation[member[.startSubstring], >=, literal[0]], &&, binary_o...
Keyword[private] Keyword[int] identifier[mapNSTokens] operator[SEP] identifier[String] identifier[pat] , Keyword[int] identifier[startSubstring] , Keyword[int] identifier[posOfNSSep] , Keyword[int] identifier[posOfScan] operator[SEP] Keyword[throws] identifier[javax] operator[SEP] identifier[xml] operator[SEP] ident...
public static String createNaaccrIdFromItemName(String name) { if (name == null || name.isEmpty()) return ""; // not including 10 (and after) because I feel like X might be a legit occurrence... Map<String, String> romanNumerals = new HashMap<>(); romanNumerals.put("I", "1")...
class class_name[name] begin[{] method[createNaaccrIdFromItemName, return_type[type[String]], modifier[public static], parameter[name]] begin[{] if[binary_operation[binary_operation[member[.name], ==, literal[null]], ||, call[name.isEmpty, parameter[]]]] begin[{] return[literal[""]] els...
Keyword[public] Keyword[static] identifier[String] identifier[createNaaccrIdFromItemName] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[||] identifier[name] operator[SEP] identifier[isEmpty] operator[SEP] operator[SE...
public void removeAttribute(String name) { if (!_iSess.isValid()) throw new IllegalStateException(); if (_iSess != null) { _iSess.removeAttribute(name); } }
class class_name[name] begin[{] method[removeAttribute, return_type[void], modifier[public], parameter[name]] begin[{] if[call[_iSess.isValid, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[void] identifier[removeAttribute] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[_iSess] operator[SEP] identifier[isValid] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateExcep...
public static void setLevel(Level outputLevel) { Logger appRooLogger = Logger.getLogger("edu.ucla.sspace"); Handler verboseHandler = new ConsoleHandler(); verboseHandler.setLevel(outputLevel); appRooLogger.addHandler(verboseHandler); appRooLogger.setLevel(outputLevel); ap...
class class_name[name] begin[{] method[setLevel, return_type[void], modifier[public static], parameter[outputLevel]] begin[{] local_variable[type[Logger], appRooLogger] local_variable[type[Handler], verboseHandler] call[verboseHandler.setLevel, parameter[member[.outputLevel]]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[setLevel] operator[SEP] identifier[Level] identifier[outputLevel] operator[SEP] { identifier[Logger] identifier[appRooLogger] operator[=] identifier[Logger] operator[SEP] identifier[getLogger] operator[SEP] literal[String] operator[SEP] operator[SEP] ident...
protected void registerDefaults() { register(Long.class, new LongConverter()); register(Integer.class, new IntegerConverter()); register(Short.class, new ShortConverter()); register(Byte.class, new ByteConverter()); register(Double.class, new DoubleConverter()); register(...
class class_name[name] begin[{] method[registerDefaults, return_type[void], modifier[protected], parameter[]] begin[{] call[.register, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Long, sub...
Keyword[protected] Keyword[void] identifier[registerDefaults] operator[SEP] operator[SEP] { identifier[register] operator[SEP] identifier[Long] operator[SEP] Keyword[class] , Keyword[new] identifier[LongConverter] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[register] operator[SEP] identif...
public String wordSegment(String text){ String ret = text; if (vnSegmenter == null) return ret; ret = vnSegmenter.segmenting(ret); return ret; }
class class_name[name] begin[{] method[wordSegment, return_type[type[String]], modifier[public], parameter[text]] begin[{] local_variable[type[String], ret] if[binary_operation[member[.vnSegmenter], ==, literal[null]]] begin[{] return[member[.ret]] else begin[{] None end...
Keyword[public] identifier[String] identifier[wordSegment] operator[SEP] identifier[String] identifier[text] operator[SEP] { identifier[String] identifier[ret] operator[=] identifier[text] operator[SEP] Keyword[if] operator[SEP] identifier[vnSegmenter] operator[==] Other[null] operator[SEP] Keyword[return] ident...
public static List<DTCellValue52> makeDataRowList( Object[] oldRow ) { List<DTCellValue52> row = new ArrayList<DTCellValue52>(); //Row numbers are numerical if ( oldRow[ 0 ] instanceof String ) { DTCellValue52 rowDcv = new DTCellValue52( new Integer( (String) oldRow[ 0 ] ) ); ...
class class_name[name] begin[{] method[makeDataRowList, return_type[type[List]], modifier[public static], parameter[oldRow]] begin[{] local_variable[type[List], row] if[binary_operation[member[.oldRow], instanceof, type[String]]] begin[{] local_variable[type[DTCellValue52], ...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[DTCellValue52] operator[>] identifier[makeDataRowList] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[oldRow] operator[SEP] { identifier[List] operator[<] identifier[DTCellValue52] operator[>] identifier[row] operato...
@Override public void contextRootAdded(String contextRoot, VirtualHost virtualHost) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Added contextRoot {0} to virtual host {1}", contextRoot, virtualHost.getName()); } // Check that our app got ins...
class class_name[name] begin[{] method[contextRootAdded, return_type[void], modifier[public], parameter[contextRoot, virtualHost]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEventEnabled, parameter[]]]] begin[{] call...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[contextRootAdded] operator[SEP] identifier[String] identifier[contextRoot] , identifier[VirtualHost] identifier[virtualHost] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabl...
public ApplicationListNextOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; } else { this.ocpDate = new DateTimeRfc1123(ocpDate); } return this; }
class class_name[name] begin[{] method[withOcpDate, return_type[type[ApplicationListNextOptions]], modifier[public], parameter[ocpDate]] begin[{] if[binary_operation[member[.ocpDate], ==, literal[null]]] begin[{] assign[THIS[member[None.ocpDate]], literal[null]] ...
Keyword[public] identifier[ApplicationListNextOptions] identifier[withOcpDate] operator[SEP] identifier[DateTime] identifier[ocpDate] operator[SEP] { Keyword[if] operator[SEP] identifier[ocpDate] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[ocpDate] operator[=] Other...
public Observable<ServiceResponse<DomainInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String domainName, DomainInner domainInfo) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot ...
class class_name[name] begin[{] method[createOrUpdateWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, domainName, domainInfo]] begin[{] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]]...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[DomainInner] operator[>] operator[>] identifier[createOrUpdateWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[domainName] , identifier[DomainIn...
public List<Database> getInternalDatabases() { List<Database> returnList = new ArrayList<>(); for (SortedSet<Database> set : internalDatabases.values()) { returnList.add(set.iterator().next()); } return returnList; }
class class_name[name] begin[{] method[getInternalDatabases, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], returnList] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocati...
Keyword[public] identifier[List] operator[<] identifier[Database] operator[>] identifier[getInternalDatabases] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Database] operator[>] identifier[returnList] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] op...
private static InsnList popMethodResult(AbstractInsnNode invokeInsnNode) { Validate.notNull(invokeInsnNode); Type returnType = getReturnTypeOfInvocation(invokeInsnNode); InsnList ret = new InsnList(); switch (returnType.getSort()) { case Type.LONG: ...
class class_name[name] begin[{] method[popMethodResult, return_type[type[InsnList]], modifier[private static], parameter[invokeInsnNode]] begin[{] call[Validate.notNull, parameter[member[.invokeInsnNode]]] local_variable[type[Type], returnType] local_variable[type[InsnList], ret...
Keyword[private] Keyword[static] identifier[InsnList] identifier[popMethodResult] operator[SEP] identifier[AbstractInsnNode] identifier[invokeInsnNode] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[invokeInsnNode] operator[SEP] operator[SEP] identifier[Type] iden...
public static EventHandlerWrapper wrapEventHandler(@NonNull String type, String producer, @NonNull Object subscriber, String action) { return new EventHandlerWrapper(type, producer, subscriber, action); }
class class_name[name] begin[{] method[wrapEventHandler, return_type[type[EventHandlerWrapper]], modifier[public static], parameter[type, producer, subscriber, action]] begin[{] return[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=...
Keyword[public] Keyword[static] identifier[EventHandlerWrapper] identifier[wrapEventHandler] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[type] , identifier[String] identifier[producer] , annotation[@] identifier[NonNull] identifier[Object] identifier[subscriber] , identifier[String]...
@Nullable private ByteBuf checkForCompletion(GELFMessage gelfMessage) { if (!chunks.isEmpty() && log.isDebugEnabled()) { log.debug("Dumping GELF chunk map [chunks for {} messages]:\n{}", chunks.size(), humanReadableChunkMap()); } final GELFMessageChunk chunk = new GELFMessageChun...
class class_name[name] begin[{] method[checkForCompletion, return_type[type[ByteBuf]], modifier[private], parameter[gelfMessage]] begin[{] if[binary_operation[call[chunks.isEmpty, parameter[]], &&, call[log.isDebugEnabled, parameter[]]]] begin[{] call[log.debug, paramete...
annotation[@] identifier[Nullable] Keyword[private] identifier[ByteBuf] identifier[checkForCompletion] operator[SEP] identifier[GELFMessage] identifier[gelfMessage] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[chunks] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[&&] ...
public static String format(String format, Object[] args) { StringBuilder answer = new StringBuilder(format.length() + (args.length * 20)); String[] argStrings = new String[args.length]; for (int i = 0; i < args.length; ++i) { if (args[i] == null) argStrings[i] = "<null>"; //$NON-NLS-1$ else argS...
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[format, args]] begin[{] local_variable[type[StringBuilder], answer] local_variable[type[String], argStrings] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(...
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] identifier[String] identifier[format] , identifier[Object] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[StringBuilder] identifier[answer] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP...