code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static BigDecimal acos(BigDecimal x, MathContext mathContext) { checkMathContext(mathContext); if (x.compareTo(ONE) > 0) { throw new ArithmeticException("Illegal acos(x) for x > 1: x = " + x); } if (x.compareTo(MINUS_ONE) < 0) { throw new ArithmeticException("Illegal acos(x) for x < -1: x = " + x);...
class class_name[name] begin[{] method[acos, return_type[type[BigDecimal]], modifier[public static], parameter[x, mathContext]] begin[{] call[.checkMathContext, parameter[member[.mathContext]]] if[binary_operation[call[x.compareTo, parameter[member[.ONE]]], >, literal[0]]] begin...
Keyword[public] Keyword[static] identifier[BigDecimal] identifier[acos] operator[SEP] identifier[BigDecimal] identifier[x] , identifier[MathContext] identifier[mathContext] operator[SEP] { identifier[checkMathContext] operator[SEP] identifier[mathContext] operator[SEP] operator[SEP] Keyword[if] operator[SEP] id...
@Override public T update(T entity) { EntityManager entityManager = getEntityManager(); T result = entityManager.merge(entity); return result; }
class class_name[name] begin[{] method[update, return_type[type[T]], modifier[public], parameter[entity]] begin[{] local_variable[type[EntityManager], entityManager] local_variable[type[T], result] return[member[.result]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[update] operator[SEP] identifier[T] identifier[entity] operator[SEP] { identifier[EntityManager] identifier[entityManager] operator[=] identifier[getEntityManager] operator[SEP] operator[SEP] operator[SEP] identifier[T] identifier[result...
private double probabilityFunction(double AS, int m, int maxIter) { double prob = (C + AS) / (C * Math.sqrt(m)); double norm = (1 - (m * 1.0) / maxIter); // Normalization factor return Math.min(Math.max(prob * norm, 0.0), 1.0); }
class class_name[name] begin[{] method[probabilityFunction, return_type[type[double]], modifier[private], parameter[AS, m, maxIter]] begin[{] local_variable[type[double], prob] local_variable[type[double], norm] return[call[Math.min, parameter[call[Math.max, parameter[binary_operation[m...
Keyword[private] Keyword[double] identifier[probabilityFunction] operator[SEP] Keyword[double] identifier[AS] , Keyword[int] identifier[m] , Keyword[int] identifier[maxIter] operator[SEP] { Keyword[double] identifier[prob] operator[=] operator[SEP] identifier[C] operator[+] identifier[AS] operator[SEP] operato...
public void removeValue(T value, boolean reload) { int idx = getIndex(value); if (idx >= 0) { removeItemInternal(idx, reload); } }
class class_name[name] begin[{] method[removeValue, return_type[void], modifier[public], parameter[value, reload]] begin[{] local_variable[type[int], idx] if[binary_operation[member[.idx], >=, literal[0]]] begin[{] call[.removeItemInternal, parameter[member[.idx]...
Keyword[public] Keyword[void] identifier[removeValue] operator[SEP] identifier[T] identifier[value] , Keyword[boolean] identifier[reload] operator[SEP] { Keyword[int] identifier[idx] operator[=] identifier[getIndex] operator[SEP] identifier[value] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier...
private void setPath(String p_path) throws MalformedURIException { if (p_path == null) { m_path = null; m_queryString = null; m_fragment = null; } else { initializePath(p_path); } }
class class_name[name] begin[{] method[setPath, return_type[void], modifier[private], parameter[p_path]] begin[{] if[binary_operation[member[.p_path], ==, literal[null]]] begin[{] assign[member[.m_path], literal[null]] assign[member[.m_queryString...
Keyword[private] Keyword[void] identifier[setPath] operator[SEP] identifier[String] identifier[p_path] operator[SEP] Keyword[throws] identifier[MalformedURIException] { Keyword[if] operator[SEP] identifier[p_path] operator[==] Other[null] operator[SEP] { identifier[m_path] operator[=] Other[null] oper...
public static Properties getFileAsProperties(String path) { File file = new File(nullToEmpty(path)); return getFileAsProperties(file); }
class class_name[name] begin[{] method[getFileAsProperties, return_type[type[Properties]], modifier[public static], parameter[path]] begin[{] local_variable[type[File], file] return[call[.getFileAsProperties, parameter[member[.file]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Properties] identifier[getFileAsProperties] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[nullToEmpty] operator[SEP] identifier[path] operator[SEP] o...
StatementDMQL compileInsertStatement(RangeVariable[] outerRanges) { read(); readThis(Tokens.INTO); boolean[] columnCheckList; int[] columnMap; int colCount; Table table = readTableName(); boolean overridingUser = false; ...
class class_name[name] begin[{] method[compileInsertStatement, return_type[type[StatementDMQL]], modifier[default], parameter[outerRanges]] begin[{] call[.read, parameter[]] call[.readThis, parameter[member[Tokens.INTO]]] local_variable[type[boolean], columnCheckList] ...
identifier[StatementDMQL] identifier[compileInsertStatement] operator[SEP] identifier[RangeVariable] operator[SEP] operator[SEP] identifier[outerRanges] operator[SEP] { identifier[read] operator[SEP] operator[SEP] operator[SEP] identifier[readThis] operator[SEP] identifier[Tokens] operator[SEP] identifier[INTO] ...
public static Dater of(Date date, String pattern) { return of(date).with(pattern); }
class class_name[name] begin[{] method[of, return_type[type[Dater]], modifier[public static], parameter[date, pattern]] begin[{] return[call[.of, parameter[member[.date]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Dater] identifier[of] operator[SEP] identifier[Date] identifier[date] , identifier[String] identifier[pattern] operator[SEP] { Keyword[return] identifier[of] operator[SEP] identifier[date] operator[SEP] operator[SEP] identifier[with] operator[SEP] identifier[pattern] o...
private StringBuffer loadScriptTemplate() { try (InputStream is = ClassLoaderResourceUtils.getResourceAsStream(SCRIPT_TEMPLATE, this); StringWriter sw = new StringWriter()) { IOUtils.copy(is, sw); return sw.getBuffer(); } catch (IOException e) { Marker fatal = MarkerFactory.getMarker("FATAL"); LOGG...
class class_name[name] begin[{] method[loadScriptTemplate, return_type[type[StringBuffer]], modifier[private], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
Keyword[private] identifier[StringBuffer] identifier[loadScriptTemplate] operator[SEP] operator[SEP] { Keyword[try] operator[SEP] identifier[InputStream] identifier[is] operator[=] identifier[ClassLoaderResourceUtils] operator[SEP] identifier[getResourceAsStream] operator[SEP] identifier[SCRIPT_TEMPLATE] , Keyw...
@Reference( name = "carbon.metrics.management.service", service = MetricManagementService.class, cardinality = ReferenceCardinality.MANDATORY, policy = ReferencePolicy.DYNAMIC, unbind = "unsetMetricManagementService" ) protected void setMetricManagemen...
class class_name[name] begin[{] method[setMetricManagementService, return_type[void], modifier[protected], parameter[metricManagementService]] begin[{] call[DataHolder.getInstance, parameter[]] end[}] END[}]
annotation[@] identifier[Reference] operator[SEP] identifier[name] operator[=] literal[String] , identifier[service] operator[=] identifier[MetricManagementService] operator[SEP] Keyword[class] , identifier[cardinality] operator[=] identifier[ReferenceCardinality] operator[SEP] identifier[MANDATORY] , identifier[pol...
public EClass getIfcFlowFittingType() { if (ifcFlowFittingTypeEClass == null) { ifcFlowFittingTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(243); } return ifcFlowFittingTypeEClass; }
class class_name[name] begin[{] method[getIfcFlowFittingType, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcFlowFittingTypeEClass], ==, literal[null]]] begin[{] assign[member[.ifcFlowFittingTypeEClass], Cast(expression=...
Keyword[public] identifier[EClass] identifier[getIfcFlowFittingType] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcFlowFittingTypeEClass] operator[==] Other[null] operator[SEP] { identifier[ifcFlowFittingTypeEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] ide...
public static boolean isSubclass(Class a, Class b) { if (a == b) return false; if (!(b.isAssignableFrom(a))) return false; return true; }
class class_name[name] begin[{] method[isSubclass, return_type[type[boolean]], modifier[public static], parameter[a, b]] begin[{] if[binary_operation[member[.a], ==, member[.b]]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[b.isAssignableFrom...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isSubclass] operator[SEP] identifier[Class] identifier[a] , identifier[Class] identifier[b] operator[SEP] { Keyword[if] operator[SEP] identifier[a] operator[==] identifier[b] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] oper...
private String getWelcomeFile(String pathInContext) throws MalformedURLException, IOException { if (welcomes == null) { return null; } for (int i = 0; i < welcomes.length; i++) { String welcomeInContext = URIUtil.addPaths(pathInContext, welcomes[i]); final URL url = httpContext.getResource(welco...
class class_name[name] begin[{] method[getWelcomeFile, return_type[type[String]], modifier[private], parameter[pathInContext]] begin[{] if[binary_operation[member[.welcomes], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ForStat...
Keyword[private] identifier[String] identifier[getWelcomeFile] operator[SEP] identifier[String] identifier[pathInContext] operator[SEP] Keyword[throws] identifier[MalformedURLException] , identifier[IOException] { Keyword[if] operator[SEP] identifier[welcomes] operator[==] Other[null] operator[SEP] { ...
@Override public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest request) { request = beforeClientExecution(request); return executeBatchDetectSyntax(request); }
class class_name[name] begin[{] method[batchDetectSyntax, return_type[type[BatchDetectSyntaxResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeBatchDetectSyntax, parameter[membe...
annotation[@] identifier[Override] Keyword[public] identifier[BatchDetectSyntaxResult] identifier[batchDetectSyntax] operator[SEP] identifier[BatchDetectSyntaxRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[...
public static base_response unset(nitro_service client, dnssoarec resource, String[] args) throws Exception{ dnssoarec unsetresource = new dnssoarec(); unsetresource.domain = resource.domain; return unsetresource.unset_resource(client,args); }
class class_name[name] begin[{] method[unset, return_type[type[base_response]], modifier[public static], parameter[client, resource, args]] begin[{] local_variable[type[dnssoarec], unsetresource] assign[member[unsetresource.domain], member[resource.domain]] return[call[unsetreso...
Keyword[public] Keyword[static] identifier[base_response] identifier[unset] operator[SEP] identifier[nitro_service] identifier[client] , identifier[dnssoarec] identifier[resource] , identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[...
public void onAuthentication(Authentication authentication, HttpServletRequest request, HttpServletResponse response) { boolean hadSessionAlready = request.getSession(false) != null; if (!hadSessionAlready && !alwaysCreateSession) { // Session fixation isn't a problem if there's no session return; } ...
class class_name[name] begin[{] method[onAuthentication, return_type[void], modifier[public], parameter[authentication, request, response]] begin[{] local_variable[type[boolean], hadSessionAlready] if[binary_operation[member[.hadSessionAlready], &&, member[.alwaysCreateSession]]] begin[...
Keyword[public] Keyword[void] identifier[onAuthentication] operator[SEP] identifier[Authentication] identifier[authentication] , identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] { Keyword[boolean] identifier[hadSessionAlready] operator[=] i...
private ValidationReport validateBondOrderSum(IAtom atom, IAtomContainer molecule) { ValidationReport report = new ValidationReport(); ValidationTest checkBondSum = new ValidationTest(atom, "The atom's total bond order is too high."); try { AtomTypeFactory structgenATF = AtomTypeFact...
class class_name[name] begin[{] method[validateBondOrderSum, return_type[type[ValidationReport]], modifier[private], parameter[atom, molecule]] begin[{] local_variable[type[ValidationReport], report] local_variable[type[ValidationTest], checkBondSum] TryStatement(block=[LocalVariableDec...
Keyword[private] identifier[ValidationReport] identifier[validateBondOrderSum] operator[SEP] identifier[IAtom] identifier[atom] , identifier[IAtomContainer] identifier[molecule] operator[SEP] { identifier[ValidationReport] identifier[report] operator[=] Keyword[new] identifier[ValidationReport] operator[SEP] op...
public void setMemoryHandler(@NonNull MemoryHandler memoryHandler) { globalLock.writeLock().lock(); this.memoryHandler = memoryHandler; this.memoryHandler.init(configuration, this); globalLock.writeLock().unlock(); }
class class_name[name] begin[{] method[setMemoryHandler, return_type[void], modifier[public], parameter[memoryHandler]] begin[{] call[globalLock.writeLock, parameter[]] assign[THIS[member[None.memoryHandler]], member[.memoryHandler]] THIS[member[None.memoryHandle...
Keyword[public] Keyword[void] identifier[setMemoryHandler] operator[SEP] annotation[@] identifier[NonNull] identifier[MemoryHandler] identifier[memoryHandler] operator[SEP] { identifier[globalLock] operator[SEP] identifier[writeLock] operator[SEP] operator[SEP] operator[SEP] identifier[lock] operator[SEP] operat...
public void free() { if (m_recordOwnerCollection != null) m_recordOwnerCollection.free(); m_recordOwnerCollection = null; if (m_application != null) m_application.removeTask(this); // Remove this session from the list }
class class_name[name] begin[{] method[free, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.m_recordOwnerCollection], !=, literal[null]]] begin[{] call[m_recordOwnerCollection.free, parameter[]] else begin[{] None end[}] ...
Keyword[public] Keyword[void] identifier[free] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[m_recordOwnerCollection] operator[!=] Other[null] operator[SEP] identifier[m_recordOwnerCollection] operator[SEP] identifier[free] operator[SEP] operator[SEP] operator[SEP] identifier[m_recordOwnerCo...
@CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) public final Flowable<T> repeat() { return repeat(Long.MAX_VALUE); }
class class_name[name] begin[{] method[repeat, return_type[type[Flowable]], modifier[final public], parameter[]] begin[{] return[call[.repeat, parameter[member[Long.MAX_VALUE]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[publ...
public static <T extends PopupPanel> T centerOn (T popup, int ypos) { boolean wasHidden = !popup.isShowing(); boolean wasVisible = popup.isVisible(); if (wasVisible) { popup.setVisible(false); } if (wasHidden) { popup.show(); } int left...
class class_name[name] begin[{] method[centerOn, return_type[type[T]], modifier[public static], parameter[popup, ypos]] begin[{] local_variable[type[boolean], wasHidden] local_variable[type[boolean], wasVisible] if[member[.wasVisible]] begin[{] call[popup...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[PopupPanel] operator[>] identifier[T] identifier[centerOn] operator[SEP] identifier[T] identifier[popup] , Keyword[int] identifier[ypos] operator[SEP] { Keyword[boolean] identifier[wasHidden] operator[=] operator[!] identifier...
@Override public int doStartTag() throws JspException { ServletRequest req = pageContext.getRequest(); // This will always be true if the page is called through OpenCms if (!CmsFlexController.isCmsRequest(req)) { return SKIP_BODY; } if (getJs() == null) { ...
class class_name[name] begin[{] method[doStartTag, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[ServletRequest], req] if[call[CmsFlexController.isCmsRequest, parameter[member[.req]]]] begin[{] return[member[.SKIP_BODY]] else beg...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[doStartTag] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[ServletRequest] identifier[req] operator[=] identifier[pageContext] operator[SEP] identifier[getRequest] operator[SEP] operator[SEP] operator[SE...
public boolean checkRootingDevice() { boolean isRootingFlag = false; BufferedReader reader = null; try { Process process = Runtime.getRuntime().exec("find / -name su"); reader = new BufferedReader(new InputStreamReader( process.getInputStream())); String result = reader.readLine(); if (resul...
class class_name[name] begin[{] method[checkRootingDevice, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], isRootingFlag] local_variable[type[BufferedReader], reader] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarato...
Keyword[public] Keyword[boolean] identifier[checkRootingDevice] operator[SEP] operator[SEP] { Keyword[boolean] identifier[isRootingFlag] operator[=] literal[boolean] operator[SEP] identifier[BufferedReader] identifier[reader] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[Process] ide...
public void starting() throws Exception { this.logger.fine( "iPojo registers REST and icons servlets related to Roboconf's DM." ); // Register the servlet Dictionary<String,String> initParams = new Hashtable<> (); initParams.put( "servlet-name", "Roboconf Web Extension (Kibana)" ); this.servlet = new Kibana...
class class_name[name] begin[{] method[starting, return_type[void], modifier[public], parameter[]] begin[{] THIS[member[None.logger]call[None.fine, parameter[literal["iPojo registers REST and icons servlets related to Roboconf's DM."]]]] local_variable[type[Dictionary], initParams] ...
Keyword[public] Keyword[void] identifier[starting] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[this] operator[SEP] identifier[logger] operator[SEP] identifier[fine] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Dictionary] operator[<] identifier[String] , i...
@Override public int deleteIds(Collection<FeatureTileLinkKey> idCollection) throws SQLException { int count = 0; if (idCollection != null) { for (FeatureTileLinkKey id : idCollection) { count += deleteById(id); } } return count; }
class class_name[name] begin[{] method[deleteIds, return_type[type[int]], modifier[public], parameter[idCollection]] begin[{] local_variable[type[int], count] if[binary_operation[member[.idCollection], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None,...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[deleteIds] operator[SEP] identifier[Collection] operator[<] identifier[FeatureTileLinkKey] operator[>] identifier[idCollection] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[int] identifier[count] operator[=] Other[0] o...
public void resize (float width, float height) { if (canvas != null) canvas.close(); canvas = gfx.createCanvas(width, height); }
class class_name[name] begin[{] method[resize, return_type[void], modifier[public], parameter[width, height]] begin[{] if[binary_operation[member[.canvas], !=, literal[null]]] begin[{] call[canvas.close, parameter[]] else begin[{] None end[}] assign[m...
Keyword[public] Keyword[void] identifier[resize] operator[SEP] Keyword[float] identifier[width] , Keyword[float] identifier[height] operator[SEP] { Keyword[if] operator[SEP] identifier[canvas] operator[!=] Other[null] operator[SEP] identifier[canvas] operator[SEP] identifier[close] operator[SEP] operator[SEP] o...
public void pullImageWithPolicy(String image, ImagePullManager pullManager, RegistryConfig registryConfig, boolean hasImage) throws DockerAccessException, MojoExecutionException { // Already pulled, so we don't need to take care if (pullManager.hasAlreadyPulled(image)) { return; ...
class class_name[name] begin[{] method[pullImageWithPolicy, return_type[void], modifier[public], parameter[image, pullManager, registryConfig, hasImage]] begin[{] if[call[pullManager.hasAlreadyPulled, parameter[member[.image]]]] begin[{] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[pullImageWithPolicy] operator[SEP] identifier[String] identifier[image] , identifier[ImagePullManager] identifier[pullManager] , identifier[RegistryConfig] identifier[registryConfig] , Keyword[boolean] identifier[hasImage] operator[SEP] Keyword[throws] identifier[DockerAccess...
@GET @Path("search") @Consumes(Servlets.JSON_MEDIA_TYPE) @Produces(Servlets.JSON_MEDIA_TYPE) public Response search(@QueryParam("query") String query, @DefaultValue(LIMIT_OFFSET_DEFAULT) @QueryParam("limit") int limit, @DefaultValue(LIMIT_OFFSET_DEFA...
class class_name[name] begin[{] method[search, return_type[type[Response]], modifier[public], parameter[query, limit, offset]] begin[{] local_variable[type[boolean], dslQueryFailed] local_variable[type[Response], response] TryStatement(block=[StatementExpression(expression=Assignment(ex...
annotation[@] identifier[GET] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Consumes] operator[SEP] identifier[Servlets] operator[SEP] identifier[JSON_MEDIA_TYPE] operator[SEP] annotation[@] identifier[Produces] operator[SEP] identifier[Servlets] operator[SEP] ident...
@Mode(TestMode.EXPERIMENTAL) @Test @AllowedFFDC // The tested exceptions cause FFDC so we have to allow for this. public void runFreshMasterBranchTck() throws Exception { File repoParent = new File(GIT_REPO_PARENT_DIR); File repo = new File(repoParent, GIT_REPO_NAME); MvnUtils.mvnC...
class class_name[name] begin[{] method[runFreshMasterBranchTck, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[File], repoParent] local_variable[type[File], repo] call[MvnUtils.mvnCleanInstall, parameter[member[.repo]]] local_variable[type...
annotation[@] identifier[Mode] operator[SEP] identifier[TestMode] operator[SEP] identifier[EXPERIMENTAL] operator[SEP] annotation[@] identifier[Test] annotation[@] identifier[AllowedFFDC] Keyword[public] Keyword[void] identifier[runFreshMasterBranchTck] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] ...
public String getJavaCreateString() { StringBuilder sb = new StringBuilder(); sb.append("new com.caucho.v5.make.DependencyList()"); for (int i = 0; i < _dependencyList.size(); i++) { sb.append(".add("); sb.append(_dependencyList.get(i).getJavaCreateString()); sb.append(")"); } ...
class class_name[name] begin[{] method[getJavaCreateString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], sb] call[sb.append, parameter[literal["new com.caucho.v5.make.DependencyList()"]]] ForStatement(body=BlockStatement(...
Keyword[public] identifier[String] identifier[getJavaCreateString] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] literal[String] oper...
public static SoapAttachment parseAttachment(Element attachmentElement) { SoapAttachment soapAttachment = new SoapAttachment(); if (attachmentElement.hasAttribute("content-id")) { soapAttachment.setContentId(attachmentElement.getAttribute("content-id")); } if (attachmentEle...
class class_name[name] begin[{] method[parseAttachment, return_type[type[SoapAttachment]], modifier[public static], parameter[attachmentElement]] begin[{] local_variable[type[SoapAttachment], soapAttachment] if[call[attachmentElement.hasAttribute, parameter[literal["content-id"]]]] begi...
Keyword[public] Keyword[static] identifier[SoapAttachment] identifier[parseAttachment] operator[SEP] identifier[Element] identifier[attachmentElement] operator[SEP] { identifier[SoapAttachment] identifier[soapAttachment] operator[=] Keyword[new] identifier[SoapAttachment] operator[SEP] operator[SEP] operator[SEP...
public Polygon createPolygon(Bbox bbox) { Coordinate tl = new Coordinate(bbox.getX(), bbox.getY()); Coordinate tr = new Coordinate(bbox.getX() + bbox.getWidth(), bbox.getY()); Coordinate br = new Coordinate(bbox.getX() + bbox.getWidth(), bbox.getY() + bbox.getHeight()); Coordinate bl = new Coordinate(bbox.getX(...
class class_name[name] begin[{] method[createPolygon, return_type[type[Polygon]], modifier[public], parameter[bbox]] begin[{] local_variable[type[Coordinate], tl] local_variable[type[Coordinate], tr] local_variable[type[Coordinate], br] local_variable[type[Coordinate], bl] ...
Keyword[public] identifier[Polygon] identifier[createPolygon] operator[SEP] identifier[Bbox] identifier[bbox] operator[SEP] { identifier[Coordinate] identifier[tl] operator[=] Keyword[new] identifier[Coordinate] operator[SEP] identifier[bbox] operator[SEP] identifier[getX] operator[SEP] operator[SEP] , identifi...
public static String[] splitc(final String src, final String d) { if ((d.length() == 0) || (src.length() == 0)) { return new String[] {src}; } return splitc(src, d.toCharArray()); }
class class_name[name] begin[{] method[splitc, return_type[type[String]], modifier[public static], parameter[src, d]] begin[{] if[binary_operation[binary_operation[call[d.length, parameter[]], ==, literal[0]], ||, binary_operation[call[src.length, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[splitc] operator[SEP] Keyword[final] identifier[String] identifier[src] , Keyword[final] identifier[String] identifier[d] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[d] operator[SEP] identifier[lengt...
@Override public void info( F0<String> msg ) { if ( compilerLogger.isInfoEnabled() ) { compilerLogger.info( msg.apply() ); } }
class class_name[name] begin[{] method[info, return_type[void], modifier[public], parameter[msg]] begin[{] if[call[compilerLogger.isInfoEnabled, parameter[]]] begin[{] call[compilerLogger.info, parameter[call[msg.apply, parameter[]]]] else begin[{] None e...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[info] operator[SEP] identifier[F0] operator[<] identifier[String] operator[>] identifier[msg] operator[SEP] { Keyword[if] operator[SEP] identifier[compilerLogger] operator[SEP] identifier[isInfoEnabled] operator[SEP] operator[SEP] operat...
private ThymeleafTemplater getOrCreateTemplater() { ThymeleafTemplater templater = this.templater.get(); // Lazy-create a ThymeleafTemplater if (templater == null) { final TemplateEngine engine = getOrCreateEngine(); templater = new ThymeleafTemplater(engine, configuration, metrics, userProvider); ...
class class_name[name] begin[{] method[getOrCreateTemplater, return_type[type[ThymeleafTemplater]], modifier[private], parameter[]] begin[{] local_variable[type[ThymeleafTemplater], templater] if[binary_operation[member[.templater], ==, literal[null]]] begin[{] local_variabl...
Keyword[private] identifier[ThymeleafTemplater] identifier[getOrCreateTemplater] operator[SEP] operator[SEP] { identifier[ThymeleafTemplater] identifier[templater] operator[=] Keyword[this] operator[SEP] identifier[templater] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] ope...
public static boolean checkIsValidH2WriteHeader(String headerName) { if (!headerName.startsWith(":")) { if ("Connection".equalsIgnoreCase(headerName)) { return false; } if ("TE".equalsIgnoreCase(headerName)) { return false; } ...
class class_name[name] begin[{] method[checkIsValidH2WriteHeader, return_type[type[boolean]], modifier[public static], parameter[headerName]] begin[{] if[call[headerName.startsWith, parameter[literal[":"]]]] begin[{] if[literal["Connection"]] begin[{] ret...
Keyword[public] Keyword[static] Keyword[boolean] identifier[checkIsValidH2WriteHeader] operator[SEP] identifier[String] identifier[headerName] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[headerName] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP...
static <E> E from(Class<E> serviceInterface, ClassLoader classLoader, Target target) { Utils.notNull(target, "target must not be null"); Utils.notNull(serviceInterface, "descriptor must not be null"); if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } // Validate s...
class class_name[name] begin[{] method[from, return_type[type[E]], modifier[static], parameter[serviceInterface, classLoader, target]] begin[{] call[Utils.notNull, parameter[member[.target], literal["target must not be null"]]] call[Utils.notNull, parameter[member[.serviceInterf...
Keyword[static] operator[<] identifier[E] operator[>] identifier[E] identifier[from] operator[SEP] identifier[Class] operator[<] identifier[E] operator[>] identifier[serviceInterface] , identifier[ClassLoader] identifier[classLoader] , identifier[Target] identifier[target] operator[SEP] { identifier[Utils] ope...
public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType) { int arity = 0; TypeDescription componentType = typeDescription; while (componentType.isArray()) { componentType = componentType.getComponentType(); arity++; } ...
class class_name[name] begin[{] method[resolve, return_type[type[TypeDescription]], modifier[public static], parameter[typeDescription, targetType]] begin[{] local_variable[type[int], arity] local_variable[type[TypeDescription], componentType] while[call[componentType.isArray, p...
Keyword[public] Keyword[static] identifier[TypeDescription] identifier[resolve] operator[SEP] identifier[TypeDescription] identifier[typeDescription] , identifier[TypeDescription] identifier[targetType] operator[SEP] { Keyword[int] identifier[arity] operator[=] Other[0] operator[SEP] identifier[TypeDescription]...
public static <C extends Collection<E>, E> Iterator<C> unchain(int channelSize, Iterator<E> iterator, Supplier<C> channelProvider) { return new UnchainIterator<C, E>(channelSize, iterator, channelProvider); }
class class_name[name] begin[{] method[unchain, return_type[type[Iterator]], modifier[public static], parameter[channelSize, iterator, channelProvider]] begin[{] return[ClassCreator(arguments=[MemberReference(member=channelSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Memb...
Keyword[public] Keyword[static] operator[<] identifier[C] Keyword[extends] identifier[Collection] operator[<] identifier[E] operator[>] , identifier[E] operator[>] identifier[Iterator] operator[<] identifier[C] operator[>] identifier[unchain] operator[SEP] Keyword[int] identifier[channelSize] , identifier[Iterator] o...
static String getDefaultClientName(WarningReporter reporter) { try { return UUID.randomUUID().toString(); } catch (Exception e) { reporter.warn("No client name was set on appender!", e); return null; } }
class class_name[name] begin[{] method[getDefaultClientName, return_type[type[String]], modifier[static], parameter[reporter]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=randomUUID, postfix_operators=[], prefix_operators=[], qualifier=UUID, selectors=[...
Keyword[static] identifier[String] identifier[getDefaultClientName] operator[SEP] identifier[WarningReporter] identifier[reporter] operator[SEP] { Keyword[try] { Keyword[return] identifier[UUID] operator[SEP] identifier[randomUUID] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operato...
public static Instrumentation getInstrumentation() { SecurityManager securityManager = System.getSecurityManager(); if (securityManager != null) { securityManager.checkPermission(new RuntimePermission("getInstrumentation")); } Instrumentation instrumentation = Installer.instrumentation; if (instrumentation ==...
class class_name[name] begin[{] method[getInstrumentation, return_type[type[Instrumentation]], modifier[public static], parameter[]] begin[{] local_variable[type[SecurityManager], securityManager] if[binary_operation[member[.securityManager], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Instrumentation] identifier[getInstrumentation] operator[SEP] operator[SEP] { identifier[SecurityManager] identifier[securityManager] operator[=] identifier[System] operator[SEP] identifier[getSecurityManager] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operat...
public static RedisConnectionException create(Throwable cause) { if (cause instanceof RedisConnectionException) { return new RedisConnectionException(cause.getMessage(), cause.getCause()); } return new RedisConnectionException("Unable to connect", cause); }
class class_name[name] begin[{] method[create, return_type[type[RedisConnectionException]], modifier[public static], parameter[cause]] begin[{] if[binary_operation[member[.cause], instanceof, type[RedisConnectionException]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(a...
Keyword[public] Keyword[static] identifier[RedisConnectionException] identifier[create] operator[SEP] identifier[Throwable] identifier[cause] operator[SEP] { Keyword[if] operator[SEP] identifier[cause] Keyword[instanceof] identifier[RedisConnectionException] operator[SEP] { Keyword[return] Keyword[new...
public final void mTIME_STRING_FUN_NAME() throws RecognitionException { try { int _type = TIME_STRING_FUN_NAME; int _channel = DEFAULT_TOKEN_CHANNEL; // EventFilter.g:50:22: ( 'time-string' ) // EventFilter.g:50:24: 'time-string' { match("t...
class class_name[name] begin[{] method[mTIME_STRING_FUN_NAME, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=TIME_STRING_FUN_NAME, postfix_ope...
Keyword[public] Keyword[final] Keyword[void] identifier[mTIME_STRING_FUN_NAME] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[TIME_STRING_FUN_NAME] operator[SEP] Keyword[int] identifier[_channel] opera...
public Observable<Void> resendRequestEmailsAsync(String resourceGroupName, String certificateOrderName, String name) { return resendRequestEmailsWithServiceResponseAsync(resourceGroupName, certificateOrderName, name).map(new Func1<ServiceResponse<Void>, Void>() { @Override public Void ca...
class class_name[name] begin[{] method[resendRequestEmailsAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, certificateOrderName, name]] begin[{] return[call[.resendRequestEmailsWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.certificateOrderNa...
Keyword[public] identifier[Observable] operator[<] identifier[Void] operator[>] identifier[resendRequestEmailsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[certificateOrderName] , identifier[String] identifier[name] operator[SEP] { Keyword[return] identif...
private static String parseZoneID(String text, ParsePosition pos) { String resolvedID = null; if (ZONE_ID_TRIE == null) { synchronized (TimeZoneFormat.class) { if (ZONE_ID_TRIE == null) { // Build zone ID trie TextTrieMap<String> trie =...
class class_name[name] begin[{] method[parseZoneID, return_type[type[String]], modifier[private static], parameter[text, pos]] begin[{] local_variable[type[String], resolvedID] if[binary_operation[member[.ZONE_ID_TRIE], ==, literal[null]]] begin[{] SYNCHRONIZED[C...
Keyword[private] Keyword[static] identifier[String] identifier[parseZoneID] operator[SEP] identifier[String] identifier[text] , identifier[ParsePosition] identifier[pos] operator[SEP] { identifier[String] identifier[resolvedID] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[ZONE_ID_T...
public Scriptable wrapJavaClass(Context cx, Scriptable scope, Class<?> javaClass) { return new NativeJavaClass(scope, javaClass); }
class class_name[name] begin[{] method[wrapJavaClass, return_type[type[Scriptable]], modifier[public], parameter[cx, scope, javaClass]] begin[{] return[ClassCreator(arguments=[MemberReference(member=scope, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=java...
Keyword[public] identifier[Scriptable] identifier[wrapJavaClass] operator[SEP] identifier[Context] identifier[cx] , identifier[Scriptable] identifier[scope] , identifier[Class] operator[<] operator[?] operator[>] identifier[javaClass] operator[SEP] { Keyword[return] Keyword[new] identifier[NativeJavaClass] ope...
public com.google.api.ads.admanager.axis.v201811.Money getGrossRate() { return grossRate; }
class class_name[name] begin[{] method[getGrossRate, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.grossRate]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201811] operator[SEP] identifier[Money] identifier[getGrossRate] operator[SEP] operator[SEP] { ...
public Integer getInt(String name, Integer def) { final String s = getProperty(name); try { return Integer.parseInt(s); } catch (Exception e) { return def; } }
class class_name[name] begin[{] method[getInt, return_type[type[Integer]], modifier[public], parameter[name, def]] begin[{] local_variable[type[String], s] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators...
Keyword[public] identifier[Integer] identifier[getInt] operator[SEP] identifier[String] identifier[name] , identifier[Integer] identifier[def] operator[SEP] { Keyword[final] identifier[String] identifier[s] operator[=] identifier[getProperty] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[tr...
public OvhFailoverIp project_serviceName_ip_failover_id_attach_POST(String serviceName, String id, String instanceId) throws IOException { String qPath = "/cloud/project/{serviceName}/ip/failover/{id}/attach"; StringBuilder sb = path(qPath, serviceName, id); HashMap<String, Object>o = new HashMap<String, Object>(...
class class_name[name] begin[{] method[project_serviceName_ip_failover_id_attach_POST, return_type[type[OvhFailoverIp]], modifier[public], parameter[serviceName, id, instanceId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[Has...
Keyword[public] identifier[OvhFailoverIp] identifier[project_serviceName_ip_failover_id_attach_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[id] , identifier[String] identifier[instanceId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String...
public long findFirstSet(long start, byte[] temp) throws IOException { long pos = start >> 3; try { lock().acquireReadLock(); while (true) { int amt = mFile.read(pos, temp, 0, temp.length); if (amt <= 0) { return -1; ...
class class_name[name] begin[{] method[findFirstSet, return_type[type[long]], modifier[public], parameter[start, temp]] begin[{] local_variable[type[long], pos] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=lock, postfix_operators=[], prefix_operators=...
Keyword[public] Keyword[long] identifier[findFirstSet] operator[SEP] Keyword[long] identifier[start] , Keyword[byte] operator[SEP] operator[SEP] identifier[temp] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[pos] operator[=] identifier[start] operator[>] operator[>] Other[3] o...
public static IssuerFraudRecord retrieve(String issuerFraudRecord) throws StripeException { return retrieve(issuerFraudRecord, (Map<String, Object>) null, (RequestOptions) null); }
class class_name[name] begin[{] method[retrieve, return_type[type[IssuerFraudRecord]], modifier[public static], parameter[issuerFraudRecord]] begin[{] return[call[.retrieve, parameter[member[.issuerFraudRecord], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selector...
Keyword[public] Keyword[static] identifier[IssuerFraudRecord] identifier[retrieve] operator[SEP] identifier[String] identifier[issuerFraudRecord] operator[SEP] Keyword[throws] identifier[StripeException] { Keyword[return] identifier[retrieve] operator[SEP] identifier[issuerFraudRecord] , operator[SEP] identifie...
protected void addStringsForTopic(final POBuildData buildData, final SpecTopic specTopic, final Map<String, TranslationDetails> translations, final List<String> ignoredSourceStrings) throws BuildProcessingException { if (buildData.getTranslationMap().containsKey(specTopic.getDBId().toString())) { ...
class class_name[name] begin[{] method[addStringsForTopic, return_type[void], modifier[protected], parameter[buildData, specTopic, translations, ignoredSourceStrings]] begin[{] if[call[buildData.getTranslationMap, parameter[]]] begin[{] local_variable[type[Map], translatedTopicStrin...
Keyword[protected] Keyword[void] identifier[addStringsForTopic] operator[SEP] Keyword[final] identifier[POBuildData] identifier[buildData] , Keyword[final] identifier[SpecTopic] identifier[specTopic] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[TranslationDetails] operator[>] identifi...
HorizontalLayout addInfoLayout(String key, Object value, boolean editable) { HorizontalLayout res = new HorizontalLayout(); res.setWidth("100%"); res.setSpacing(true); TextField keyField = new TextField(); keyField.setValue(key); keyField.setEnabled(editable); k...
class class_name[name] begin[{] method[addInfoLayout, return_type[type[HorizontalLayout]], modifier[default], parameter[key, value, editable]] begin[{] local_variable[type[HorizontalLayout], res] call[res.setWidth, parameter[literal["100%"]]] call[res.setSpacing, paramet...
identifier[HorizontalLayout] identifier[addInfoLayout] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[value] , Keyword[boolean] identifier[editable] operator[SEP] { identifier[HorizontalLayout] identifier[res] operator[=] Keyword[new] identifier[HorizontalLayout] operator[SEP]...
public static boolean newDirectories(Path dir, FileAttribute<?>... attrs) throws IOException { Path directory = Files.createDirectories(dir, attrs); return Files.exists(directory); }
class class_name[name] begin[{] method[newDirectories, return_type[type[boolean]], modifier[public static], parameter[dir, attrs]] begin[{] local_variable[type[Path], directory] return[call[Files.exists, parameter[member[.directory]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[newDirectories] operator[SEP] identifier[Path] identifier[dir] , identifier[FileAttribute] operator[<] operator[?] operator[>] operator[...] identifier[attrs] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Path] identifier[directory...
public byte[] convertToXmlByteArray(BucketTaggingConfiguration config) throws SdkClientException { XmlWriter xml = new XmlWriter(); xml.start("Tagging"); for (TagSet tagset : config.getAllTagSets()) { writeRule(xml, tagset); } xml.end(); return xml.getByte...
class class_name[name] begin[{] method[convertToXmlByteArray, return_type[type[byte]], modifier[public], parameter[config]] begin[{] local_variable[type[XmlWriter], xml] call[xml.start, parameter[literal["Tagging"]]] ForStatement(body=BlockStatement(label=None, statements=[State...
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[convertToXmlByteArray] operator[SEP] identifier[BucketTaggingConfiguration] identifier[config] operator[SEP] Keyword[throws] identifier[SdkClientException] { identifier[XmlWriter] identifier[xml] operator[=] Keyword[new] identifier[XmlWriter] o...
private String dealWithUnsatisfiedXMLTimers(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> xmlTimers, BeanMetaData bmd) throws EJBConfigurationException { String mostRecentMethodWithError = null; for (Map.Entry<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> entry : xmlTimers.entrySet()) { ...
class class_name[name] begin[{] method[dealWithUnsatisfiedXMLTimers, return_type[type[String]], modifier[private], parameter[xmlTimers, bmd]] begin[{] local_variable[type[String], mostRecentMethodWithError] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatemen...
Keyword[private] identifier[String] identifier[dealWithUnsatisfiedXMLTimers] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP]...
private String nonControl(String s,int start) { String ret=""; cPos=s.indexOf("%",start); if (cPos==-1) cPos=s.length(); return s.substring(start,cPos); }
class class_name[name] begin[{] method[nonControl, return_type[type[String]], modifier[private], parameter[s, start]] begin[{] local_variable[type[String], ret] assign[member[.cPos], call[s.indexOf, parameter[literal["%"], member[.start]]]] if[binary_operation[member[.cP...
Keyword[private] identifier[String] identifier[nonControl] operator[SEP] identifier[String] identifier[s] , Keyword[int] identifier[start] operator[SEP] { identifier[String] identifier[ret] operator[=] literal[String] operator[SEP] identifier[cPos] operator[=] identifier[s] operator[SEP] identifier[indexOf] ope...
public ListIterator<E> listIterator(int index) { if (index < 0 || index > size) throw new IndexOutOfBoundsException("Index: "+index); return new ListItr(index); }
class class_name[name] begin[{] method[listIterator, return_type[type[ListIterator]], modifier[public], parameter[index]] begin[{] if[binary_operation[binary_operation[member[.index], <, literal[0]], ||, binary_operation[member[.index], >, member[.size]]]] begin[{] ThrowStatement(expression=Cla...
Keyword[public] identifier[ListIterator] operator[<] identifier[E] operator[>] identifier[listIterator] operator[SEP] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[index] operator[<] Other[0] operator[||] identifier[index] operator[>] identifier[size] operator[SEP] Keyword[t...
public static void addPlural(String match, String rule, boolean insensitive){ plurals.add(0, new Replacer(match, rule, insensitive)); }
class class_name[name] begin[{] method[addPlural, return_type[void], modifier[public static], parameter[match, rule, insensitive]] begin[{] call[plurals.add, parameter[literal[0], ClassCreator(arguments=[MemberReference(member=match, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[static] Keyword[void] identifier[addPlural] operator[SEP] identifier[String] identifier[match] , identifier[String] identifier[rule] , Keyword[boolean] identifier[insensitive] operator[SEP] { identifier[plurals] operator[SEP] identifier[add] operator[SEP] Other[0] , Keyword[new] identi...
@Override public void reset() { if (!iter.resetSupported()) { throw new IllegalStateException( "Cannot reset MultipleEpochsIterator with base iter that does not support reset"); } epochs = 0; lastBatch = batch; batch = 0; iterat...
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] if[call[iter.resetSupported, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[iter] operator[SEP] identifier[resetSupported] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalSta...
private static OBinaryRequest<? extends OBinaryResponse> createRequest(int requestType) { switch (requestType) { case OChannelBinaryProtocol.REQUEST_DB_OPEN: return new OOpenRequest(); case OChannelBinaryProtocol.REQUEST_CONNECT: return new OConnectRequest(); case OChannelBinaryProtocol.RE...
class class_name[name] begin[{] method[createRequest, return_type[type[OBinaryRequest]], modifier[private static], parameter[requestType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=REQUEST_DB_OPEN, postfix_operators=[], prefix_operators=[], qualifier=OChannelBinar...
Keyword[private] Keyword[static] identifier[OBinaryRequest] operator[<] operator[?] Keyword[extends] identifier[OBinaryResponse] operator[>] identifier[createRequest] operator[SEP] Keyword[int] identifier[requestType] operator[SEP] { Keyword[switch] operator[SEP] identifier[requestType] operator[SEP] { ...
private double[] replacementVector(double[][] distanceMatrix) { double[] replacementVector = new double[distanceMatrix.length - 1]; // Energy between archive member k and new solution double[] individualEnergy = new double[distanceMatrix.length - 1]; // Sum of all individual energies double tot...
class class_name[name] begin[{] method[replacementVector, return_type[type[double]], modifier[private], parameter[distanceMatrix]] begin[{] local_variable[type[double], replacementVector] local_variable[type[double], individualEnergy] local_variable[type[double], totalEnergy] Fo...
Keyword[private] Keyword[double] operator[SEP] operator[SEP] identifier[replacementVector] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[distanceMatrix] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[replacementVector] operator[=] Keyword...
public static StatDescriptor[] listStatMembers(StatDescriptor sd, boolean recursive) { if (disabled) return null; ModuleItem module = null; if (sd == null) module = moduleRoot; // root else module = findModuleItem(sd.getPath()); if (module == ...
class class_name[name] begin[{] method[listStatMembers, return_type[type[StatDescriptor]], modifier[public static], parameter[sd, recursive]] begin[{] if[member[.disabled]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[ModuleItem], module] ...
Keyword[public] Keyword[static] identifier[StatDescriptor] operator[SEP] operator[SEP] identifier[listStatMembers] operator[SEP] identifier[StatDescriptor] identifier[sd] , Keyword[boolean] identifier[recursive] operator[SEP] { Keyword[if] operator[SEP] identifier[disabled] operator[SEP] Keyword[return] Other[n...
public static List<ScanRange> intersection(ScanRange left, ScanRange right) { List<ScanRange> unwrappedLeft = left.unwrapped(); List<ScanRange> unwrappedRight = right.unwrapped(); boolean leftWrapped = unwrappedLeft.size() > 1; boolean rightWrapped = unwrappedRight.size() > 1; ...
class class_name[name] begin[{] method[intersection, return_type[type[List]], modifier[public static], parameter[left, right]] begin[{] local_variable[type[List], unwrappedLeft] local_variable[type[List], unwrappedRight] local_variable[type[boolean], leftWrapped] local_variable[...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ScanRange] operator[>] identifier[intersection] operator[SEP] identifier[ScanRange] identifier[left] , identifier[ScanRange] identifier[right] operator[SEP] { identifier[List] operator[<] identifier[ScanRange] operator[>] identifier[unwrapp...
public static ClientOptions of(ClientOptions baseOptions, ClientOptions options) { // TODO(trustin): Reduce the cost of creating a derived ClientOptions. requireNonNull(baseOptions, "baseOptions"); requireNonNull(options, "options"); return new ClientOptions(baseOptions, options); }
class class_name[name] begin[{] method[of, return_type[type[ClientOptions]], modifier[public static], parameter[baseOptions, options]] begin[{] call[.requireNonNull, parameter[member[.baseOptions], literal["baseOptions"]]] call[.requireNonNull, parameter[member[.options], litera...
Keyword[public] Keyword[static] identifier[ClientOptions] identifier[of] operator[SEP] identifier[ClientOptions] identifier[baseOptions] , identifier[ClientOptions] identifier[options] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[baseOptions] , literal[String] operator[SEP] operator[SEP]...
public void addTrainingInstance(String label, List<String> features) { maxent.addInstance(label,features); }
class class_name[name] begin[{] method[addTrainingInstance, return_type[void], modifier[public], parameter[label, features]] begin[{] call[maxent.addInstance, parameter[member[.label], member[.features]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addTrainingInstance] operator[SEP] identifier[String] identifier[label] , identifier[List] operator[<] identifier[String] operator[>] identifier[features] operator[SEP] { identifier[maxent] operator[SEP] identifier[addInstance] operator[SEP] identifier[label] , identifi...
protected void enterTypevars(Type t) { if (t.getEnclosingType() != null && t.getEnclosingType().hasTag(CLASS)) enterTypevars(t.getEnclosingType()); for (List<Type> xs = t.getTypeArguments(); xs.nonEmpty(); xs = xs.tail) typevars.enter(xs.head.tsym); }
class class_name[name] begin[{] method[enterTypevars, return_type[void], modifier[protected], parameter[t]] begin[{] if[binary_operation[binary_operation[call[t.getEnclosingType, parameter[]], !=, literal[null]], &&, call[t.getEnclosingType, parameter[]]]] begin[{] call[.enterTypeva...
Keyword[protected] Keyword[void] identifier[enterTypevars] operator[SEP] identifier[Type] identifier[t] operator[SEP] { Keyword[if] operator[SEP] identifier[t] operator[SEP] identifier[getEnclosingType] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] identifier[t] operator[SEP] identifier[getEn...
public synchronized void throwQuorumException(String msg) throws QuorumException { Preconditions.checkState(!exceptions.isEmpty()); throw QuorumException.create(msg, successes, exceptions); }
class class_name[name] begin[{] method[throwQuorumException, return_type[void], modifier[synchronized public], parameter[msg]] begin[{] call[Preconditions.checkState, parameter[call[exceptions.isEmpty, parameter[]]]] ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[throwQuorumException] operator[SEP] identifier[String] identifier[msg] operator[SEP] Keyword[throws] identifier[QuorumException] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] operator[!] identifier[exceptions] operato...
private double getHistoryErrorRate(List<Integer> predHistory){ double sumCorrect = 0; for (Integer e : predHistory) { sumCorrect += e; } return 1. - (sumCorrect / predHistory.size()); }
class class_name[name] begin[{] method[getHistoryErrorRate, return_type[type[double]], modifier[private], parameter[predHistory]] begin[{] local_variable[type[double], sumCorrect] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Memb...
Keyword[private] Keyword[double] identifier[getHistoryErrorRate] operator[SEP] identifier[List] operator[<] identifier[Integer] operator[>] identifier[predHistory] operator[SEP] { Keyword[double] identifier[sumCorrect] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Integer] identifier[e...
public void destroyInternal() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "destroyInternal; " + this); } // Stop and destroy the chain. Ignore exceptions try { this.cf.stopChainInternal(getChain(), 0); this.cf.dest...
class class_name[name] begin[{] method[destroyInternal, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[memb...
Keyword[public] Keyword[void] identifier[destroyInternal] 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] o...
public static SingleColumnFilterFactory getOperator(String condition, boolean idPresent, boolean useFilter) { if (condition.equals("=")) { return SingleColumnFilterFactory.EQUAL; } else if (condition.equals(">")) { return SingleColumnFilterFactory.GREA...
class class_name[name] begin[{] method[getOperator, return_type[type[SingleColumnFilterFactory]], modifier[public static], parameter[condition, idPresent, useFilter]] begin[{] if[call[condition.equals, parameter[literal["="]]]] begin[{] return[member[SingleColumnFilterFactory.EQUAL]...
Keyword[public] Keyword[static] identifier[SingleColumnFilterFactory] identifier[getOperator] operator[SEP] identifier[String] identifier[condition] , Keyword[boolean] identifier[idPresent] , Keyword[boolean] identifier[useFilter] operator[SEP] { Keyword[if] operator[SEP] identifier[condition] operator[SEP] id...
public static Map<String, List<URL>> getStageLibrariesClasspaths(String stageLibrariesDir, String librariesExtraDir, final Set<String> stageLibs, String libsCommonLibDir) throws Exception { Map<String, List<URL>> map = new LinkedHashMap<String, List<URL>>(); File baseDir = new File(stageLibrariesDir).get...
class class_name[name] begin[{] method[getStageLibrariesClasspaths, return_type[type[Map]], modifier[public static], parameter[stageLibrariesDir, librariesExtraDir, stageLibs, libsCommonLibDir]] begin[{] local_variable[type[Map], map] local_variable[type[File], baseDir] if[call[...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[URL] operator[>] operator[>] identifier[getStageLibrariesClasspaths] operator[SEP] identifier[String] identifier[stageLibrariesDir] , identifier[String] identifier[librariesExtraDir] , Keyword[fin...
public EEnum getCPCVSFlags() { if (cpcvsFlagsEEnum == null) { cpcvsFlagsEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(14); } return cpcvsFlagsEEnum; }
class class_name[name] begin[{] method[getCPCVSFlags, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.cpcvsFlagsEEnum], ==, literal[null]]] begin[{] assign[member[.cpcvsFlagsEEnum], Cast(expression=MethodInvocation(arguments=...
Keyword[public] identifier[EEnum] identifier[getCPCVSFlags] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[cpcvsFlagsEEnum] operator[==] Other[null] operator[SEP] { identifier[cpcvsFlagsEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP] identifier[EPackage] operator[S...
public int startServer() throws IOException, InterruptedException { long serverStart = System.currentTimeMillis(); // The port file is locked and the server port and cookie is written into it. portFile = getPortFile(portfilename); synchronized (portFile) { portFile.lock(); ...
class class_name[name] begin[{] method[startServer, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[long], serverStart] assign[member[.portFile], call[.getPortFile, parameter[member[.portfilename]]]] SYNCHRONIZED[member[.portFile]] BEG...
Keyword[public] Keyword[int] identifier[startServer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[long] identifier[serverStart] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP]...
public Pager<Commit> getCommits(Object projectIdOrPath, String ref, Date since, Date until, String path, int itemsPerPage) throws GitLabApiException { Form formData = new GitLabApiForm() .withParam("ref_name", ref) .withParam("since", ISO8601.toString(since, false)) ...
class class_name[name] begin[{] method[getCommits, return_type[type[Pager]], modifier[public], parameter[projectIdOrPath, ref, since, until, path, itemsPerPage]] begin[{] local_variable[type[Form], formData] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] identifier[Pager] operator[<] identifier[Commit] operator[>] identifier[getCommits] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[String] identifier[ref] , identifier[Date] identifier[since] , identifier[Date] identifier[until] , identifier[String] identifier[path] , Key...
public void put(String cfName, WriteOptions writeOptions, String key, byte[] value) throws RocksDbException { if (cfName == null) { cfName = DEFAULT_COLUMN_FAMILY; } try { put(columnFamilyHandles.get(cfName), writeOptions, key.getBytes(StandardCharsets.UTF_8),...
class class_name[name] begin[{] method[put, return_type[void], modifier[public], parameter[cfName, writeOptions, key, value]] begin[{] if[binary_operation[member[.cfName], ==, literal[null]]] begin[{] assign[member[.cfName], member[.DEFAULT_COLUMN_FAMILY]] else b...
Keyword[public] Keyword[void] identifier[put] operator[SEP] identifier[String] identifier[cfName] , identifier[WriteOptions] identifier[writeOptions] , identifier[String] identifier[key] , Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] Keyword[throws] identifier[RocksDbException] { ...
private void init() { if (properties != null) { return; } LOGGER.info("Initializing Configuration"); properties = new Properties(); final String alpineAppProp = PathUtil.resolve(System.getProperty(ALPINE_APP_PROP)); if (StringUtils.isNotBlank(alpineAppProp))...
class class_name[name] begin[{] method[init, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.properties], !=, literal[null]]] begin[{] return[None] else begin[{] None end[}] call[LOGGER.info, parameter[literal["...
Keyword[private] Keyword[void] identifier[init] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[properties] operator[!=] Other[null] operator[SEP] { Keyword[return] operator[SEP] } identifier[LOGGER] operator[SEP] identifier[info] operator[SEP] literal[String] operator...
private static File _getClassSource (final Class <?> type) { if (type != null) { final String classResource = type.getName ().replace ('.', '/') + ".class"; return _getResourceSource (classResource, type.getClassLoader ()); } return null; }
class class_name[name] begin[{] method[_getClassSource, return_type[type[File]], modifier[private static], parameter[type]] begin[{] if[binary_operation[member[.type], !=, literal[null]]] begin[{] local_variable[type[String], classResource] return[call[._getResourceSourc...
Keyword[private] Keyword[static] identifier[File] identifier[_getClassSource] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[!=] Other[null] operator[SEP] { Keyword[final] identifie...
private InputStream getSourceAsInputStream() throws IOException { if (!mapping.hasArchive()) return IOUtil.toBufferedInputStream(getPhyscalFile().getInputStream()); else if (isLoad(LOAD_PHYSICAL)) return IOUtil.toBufferedInputStream(getPhyscalFile().getInputStream()); else if (isLoad(LOAD_ARCHIVE)) { StringBuff...
class class_name[name] begin[{] method[getSourceAsInputStream, return_type[type[InputStream]], modifier[private], parameter[]] begin[{] if[call[mapping.hasArchive, parameter[]]] begin[{] return[call[IOUtil.toBufferedInputStream, parameter[call[.getPhyscalFile, parameter[]]]]] else begin...
Keyword[private] identifier[InputStream] identifier[getSourceAsInputStream] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] identifier[mapping] operator[SEP] identifier[hasArchive] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[IOU...
public double calculateSigmaElectronegativity(IAtomContainer ac, IAtom atom) { return calculateSigmaElectronegativity(ac, atom, maxI, maxRS); }
class class_name[name] begin[{] method[calculateSigmaElectronegativity, return_type[type[double]], modifier[public], parameter[ac, atom]] begin[{] return[call[.calculateSigmaElectronegativity, parameter[member[.ac], member[.atom], member[.maxI], member[.maxRS]]]] end[}] END[}]
Keyword[public] Keyword[double] identifier[calculateSigmaElectronegativity] operator[SEP] identifier[IAtomContainer] identifier[ac] , identifier[IAtom] identifier[atom] operator[SEP] { Keyword[return] identifier[calculateSigmaElectronegativity] operator[SEP] identifier[ac] , identifier[atom] , identifier[maxI...
public static LineMap makeLineMap(char[] src, int max, boolean expandTabs) { LineMapImpl lineMap = expandTabs ? new LineTabMapImpl(max) : new LineMapImpl(); lineMap.build(src, max); return lineMap; }
class class_name[name] begin[{] method[makeLineMap, return_type[type[LineMap]], modifier[public static], parameter[src, max, expandTabs]] begin[{] local_variable[type[LineMapImpl], lineMap] call[lineMap.build, parameter[member[.src], member[.max]]] return[member[.lineMap]] e...
Keyword[public] Keyword[static] identifier[LineMap] identifier[makeLineMap] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[src] , Keyword[int] identifier[max] , Keyword[boolean] identifier[expandTabs] operator[SEP] { identifier[LineMapImpl] identifier[lineMap] operator[=] identifier[expandT...
public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { int sResult = resultset.getInt(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else { if ((!this.isNullable()) &...
class class_name[name] begin[{] method[moveSQLToField, return_type[void], modifier[public], parameter[resultset, iColumn]] begin[{] local_variable[type[int], sResult] if[call[resultset.wasNull, parameter[]]] begin[{] THIS[call[None.setString, parameter[member[Constants.BLANK...
Keyword[public] Keyword[void] identifier[moveSQLToField] operator[SEP] identifier[ResultSet] identifier[resultset] , Keyword[int] identifier[iColumn] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[int] identifier[sResult] operator[=] identifier[resultset] operator[SEP] identifier[getInt] opera...
private PropDesc createProp(Field field) { final String fieldName = field.getName(); final Class<?> fieldType = field.getType(); final boolean isBooeanField = BooleanUtil.isBoolean(fieldType); Method getter = null; Method setter = null; String methodName; Class<?>[] parameterTypes; for (Meth...
class class_name[name] begin[{] method[createProp, return_type[type[PropDesc]], modifier[private], parameter[field]] begin[{] local_variable[type[String], fieldName] local_variable[type[Class], fieldType] local_variable[type[boolean], isBooeanField] local_variable[type[Method], ...
Keyword[private] identifier[PropDesc] identifier[createProp] operator[SEP] identifier[Field] identifier[field] operator[SEP] { Keyword[final] identifier[String] identifier[fieldName] operator[=] identifier[field] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifie...
public synchronized ProgressBar setMin(int min) { if(min > max) { setMax(min); } if(min > value) { setValue(min); } if(this.min != min) { this.min = min; invalidate(); } return this; }
class class_name[name] begin[{] method[setMin, return_type[type[ProgressBar]], modifier[synchronized public], parameter[min]] begin[{] if[binary_operation[member[.min], >, member[.max]]] begin[{] call[.setMax, parameter[member[.min]]] else begin[{] None e...
Keyword[public] Keyword[synchronized] identifier[ProgressBar] identifier[setMin] operator[SEP] Keyword[int] identifier[min] operator[SEP] { Keyword[if] operator[SEP] identifier[min] operator[>] identifier[max] operator[SEP] { identifier[setMax] operator[SEP] identifier[min] operator[SEP] operator[SEP]...
public void setRadius(com.google.api.ads.adwords.axis.v201809.cm.ConstantOperand radius) { this.radius = radius; }
class class_name[name] begin[{] method[setRadius, return_type[void], modifier[public], parameter[radius]] begin[{] assign[THIS[member[None.radius]], member[.radius]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setRadius] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[cm] operator[SEP] ide...
public boolean endsWith(final BinaryString suffix) { ensureMaterialized(); suffix.ensureMaterialized(); return matchAt(suffix, sizeInBytes - suffix.sizeInBytes); }
class class_name[name] begin[{] method[endsWith, return_type[type[boolean]], modifier[public], parameter[suffix]] begin[{] call[.ensureMaterialized, parameter[]] call[suffix.ensureMaterialized, parameter[]] return[call[.matchAt, parameter[member[.suffix], binary_operatio...
Keyword[public] Keyword[boolean] identifier[endsWith] operator[SEP] Keyword[final] identifier[BinaryString] identifier[suffix] operator[SEP] { identifier[ensureMaterialized] operator[SEP] operator[SEP] operator[SEP] identifier[suffix] operator[SEP] identifier[ensureMaterialized] operator[SEP] operator[SEP] opera...
@Override public QueryBuilder<V> from(String table) { Preconditions.checkNotNull(table, "FROM clause cannot be null"); table = removeKeyword(table, FROM); this.from = table; return this; }
class class_name[name] begin[{] method[from, return_type[type[QueryBuilder]], modifier[public], parameter[table]] begin[{] call[Preconditions.checkNotNull, parameter[member[.table], literal["FROM clause cannot be null"]]] assign[member[.table], call[.removeKeyword, parameter[mem...
annotation[@] identifier[Override] Keyword[public] identifier[QueryBuilder] operator[<] identifier[V] operator[>] identifier[from] operator[SEP] identifier[String] identifier[table] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[table] , literal[String]...
public CoreRemoteMongoDatabaseImpl getDatabase(final String databaseName) { return new CoreRemoteMongoDatabaseImpl( databaseName, service, dataSynchronizer, appInfo.getNetworkMonitor() ); }
class class_name[name] begin[{] method[getDatabase, return_type[type[CoreRemoteMongoDatabaseImpl]], modifier[public], parameter[databaseName]] begin[{] return[ClassCreator(arguments=[MemberReference(member=databaseName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferen...
Keyword[public] identifier[CoreRemoteMongoDatabaseImpl] identifier[getDatabase] operator[SEP] Keyword[final] identifier[String] identifier[databaseName] operator[SEP] { Keyword[return] Keyword[new] identifier[CoreRemoteMongoDatabaseImpl] operator[SEP] identifier[databaseName] , identifier[service] , identifier...
public JPEParser getJPEParser(String format) throws NoParserRegisteredException { JPEParser parser = this.registeredFormats.get(format); if (parser == null) { throw new NoParserRegisteredException( "No parser registered for format: " + format); } try { return parser.getClass().newInstance(); }...
class class_name[name] begin[{] method[getJPEParser, return_type[type[JPEParser]], modifier[public], parameter[format]] begin[{] local_variable[type[JPEParser], parser] if[binary_operation[member[.parser], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(a...
Keyword[public] identifier[JPEParser] identifier[getJPEParser] operator[SEP] identifier[String] identifier[format] operator[SEP] Keyword[throws] identifier[NoParserRegisteredException] { identifier[JPEParser] identifier[parser] operator[=] Keyword[this] operator[SEP] identifier[registeredFormats] operator[SEP] i...
private String getPathVariables(final Map<String, Object> map) { final StringBuilder bpath = new StringBuilder(); for (Map.Entry<String, Object> param : map.entrySet()) { if (bpath.length() > 1) { bpath.append("&"); } try { bpath.append...
class class_name[name] begin[{] method[getPathVariables, return_type[type[String]], modifier[private], parameter[map]] begin[{] local_variable[type[StringBuilder], bpath] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arg...
Keyword[private] identifier[String] identifier[getPathVariables] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[bpath] operator[=] Keyword[new] identifier[StringBuild...
public void startRecovery(RecoveryLogFactory fac) { if (tc.isEntryEnabled()) Tr.entry(tc, "startRecovery", fac); // This is a stand alone server. HA can never effect this server so direct local recovery now. RecoveryDirector director = null; try { director = Reco...
class class_name[name] begin[{] method[startRecovery, return_type[void], modifier[public], parameter[fac]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["startRecovery"], member[.fac]]] else begin[{] None end...
Keyword[public] Keyword[void] identifier[startRecovery] operator[SEP] identifier[RecoveryLogFactory] identifier[fac] operator[SEP] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[...
private Iterator<IEntityGroup> getMemberGroups() throws GroupsException { Set<IEntityGroup> rslt = new HashSet<>(); for (IGroupMember child : getChildren()) { if (child.isGroup()) { rslt.add((IEntityGroup) child); } } return rslt.iterator(); ...
class class_name[name] begin[{] method[getMemberGroups, return_type[type[Iterator]], modifier[private], parameter[]] begin[{] local_variable[type[Set], rslt] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=isGroup, postfix_ope...
Keyword[private] identifier[Iterator] operator[<] identifier[IEntityGroup] operator[>] identifier[getMemberGroups] operator[SEP] operator[SEP] Keyword[throws] identifier[GroupsException] { identifier[Set] operator[<] identifier[IEntityGroup] operator[>] identifier[rslt] operator[=] Keyword[new] identifier[HashSe...
public int encodeDigits(ByteArrayOutputStream bos) { boolean isOdd = this.oddFlag == _FLAG_ODD; byte b = 0; int count = (!isOdd) ? address.length() : address.length() - 1; int bytesCount = 0; for (int i = 0; i < count - 1; i += 2) { String ds1 = address.substring(i, ...
class class_name[name] begin[{] method[encodeDigits, return_type[type[int]], modifier[public], parameter[bos]] begin[{] local_variable[type[boolean], isOdd] local_variable[type[byte], b] local_variable[type[int], count] local_variable[type[int], bytesCount] ForStatement(...
Keyword[public] Keyword[int] identifier[encodeDigits] operator[SEP] identifier[ByteArrayOutputStream] identifier[bos] operator[SEP] { Keyword[boolean] identifier[isOdd] operator[=] Keyword[this] operator[SEP] identifier[oddFlag] operator[==] identifier[_FLAG_ODD] operator[SEP] Keyword[byte] identifier[b] operato...
public static MozuUrl addExtendedPropertiesUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/carts/current/extendedproperties"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
class class_name[name] begin[{] method[addExtendedPropertiesUrl, return_type[type[MozuUrl]], modifier[public static], parameter[]] begin[{] local_variable[type[UrlFormatter], formatter] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getResourceUrl, postfix_operators=[], pr...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[addExtendedPropertiesUrl] operator[SEP] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier...
public static boolean uniform(Color color, Pixel[] pixels) { return Arrays.stream(pixels).allMatch(p -> p.toInt() == color.toRGB().toInt()); }
class class_name[name] begin[{] method[uniform, return_type[type[boolean]], modifier[public static], parameter[color, pixels]] begin[{] return[call[Arrays.stream, parameter[member[.pixels]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[uniform] operator[SEP] identifier[Color] identifier[color] , identifier[Pixel] operator[SEP] operator[SEP] identifier[pixels] operator[SEP] { Keyword[return] identifier[Arrays] operator[SEP] identifier[stream] operator[SEP] identifier[pixels] operator[...
private void cleanup(boolean atStartup) { boolean allTasksIdle = false; while (!allTasksIdle) { int activeCount = 0; for (Task task: taskDao.listTasks()) { if (!task.getState().equals(Task.IDLE)) { activeCount++; if (!task.g...
class class_name[name] begin[{] method[cleanup, return_type[void], modifier[private], parameter[atStartup]] begin[{] local_variable[type[boolean], allTasksIdle] while[member[.allTasksIdle]] begin[{] local_variable[type[int], activeCount] ForStatement(body=BlockSt...
Keyword[private] Keyword[void] identifier[cleanup] operator[SEP] Keyword[boolean] identifier[atStartup] operator[SEP] { Keyword[boolean] identifier[allTasksIdle] operator[=] literal[boolean] operator[SEP] Keyword[while] operator[SEP] operator[!] identifier[allTasksIdle] operator[SEP] { Keyword[int] id...
public static <K, V> String joinIgnoreNull(Map<K, V> map, String separator, String keyValueSeparator) { return join(map, separator, keyValueSeparator, true); }
class class_name[name] begin[{] method[joinIgnoreNull, return_type[type[String]], modifier[public static], parameter[map, separator, keyValueSeparator]] begin[{] return[call[.join, parameter[member[.map], member[.separator], member[.keyValueSeparator], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[String] identifier[joinIgnoreNull] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[map] , identifier[String] identifier[separator] , identifier[String] identifier[keyValueS...
@Override public final boolean removeExistingConfigurations(String filter) throws Exception { final boolean trace = TraceComponent.isAnyTracingEnabled(); ConfigurationAdmin configAdmin = configAdminRef.getService(); Configuration[] existingConfigurations = configAdmin.listConfigurations(fil...
class class_name[name] begin[{] method[removeExistingConfigurations, return_type[type[boolean]], modifier[final public], parameter[filter]] begin[{] local_variable[type[boolean], trace] local_variable[type[ConfigurationAdmin], configAdmin] local_variable[type[Configuration], existingCon...
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[boolean] identifier[removeExistingConfigurations] operator[SEP] identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] Keyword[boolean] identifier[trace] operator[=] identifier[TraceCompo...
@Override public boolean exists() { try { URL url = this.servletContext.getResource(this.path); return (url != null); } catch (MalformedURLException ex) { return false; } }
class class_name[name] begin[{] method[exists, return_type[type[boolean]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None, sele...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[exists] operator[SEP] operator[SEP] { Keyword[try] { identifier[URL] identifier[url] operator[=] Keyword[this] operator[SEP] identifier[servletContext] operator[SEP] identifier[getResource] operator[SEP] Keyword[this] opera...
public static Icon from(File file) throws IOException { Checks.notNull(file, "Provided File"); Checks.check(file.exists(), "Provided file does not exist!"); return from(IOUtil.readFully(file)); }
class class_name[name] begin[{] method[from, return_type[type[Icon]], modifier[public static], parameter[file]] begin[{] call[Checks.notNull, parameter[member[.file], literal["Provided File"]]] call[Checks.check, parameter[call[file.exists, parameter[]], literal["Provided file d...
Keyword[public] Keyword[static] identifier[Icon] identifier[from] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Checks] operator[SEP] identifier[notNull] operator[SEP] identifier[file] , literal[String] operator[SEP] operator[SEP] identifier[C...