code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public CmsUUID readIdForUrlName(CmsRequestContext context, String name) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { return m_driverManager.readIdForUrlName(dbc, name); } catch (Exception e) { CmsMessageContainer message = Mess...
class class_name[name] begin[{] method[readIdForUrlName, return_type[type[CmsUUID]], modifier[public], parameter[context, name]] begin[{] local_variable[type[CmsDbContext], dbc] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=dbc, postfix_operat...
Keyword[public] identifier[CmsUUID] identifier[readIdForUrlName] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[CmsDbContext] identifier[dbc] operator[=] identifier[m_dbContextFactory] oper...
@Override public void run() { do { // Scan for directories: try { log.info("Scanning for directories under {}", root); Files.walkFileTree(root, new Visitor()); } catch (IOException e) { log.info("Error in scanning for direc...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] do[literal[true]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selecto...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[do] { Keyword[try] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[root] operator[SEP] operator[SEP] identifier[Files] oper...
void enableKeepAlive(boolean enable, long keepAliveTimeNanos, long keepAliveTimeoutNanos, boolean keepAliveWithoutCalls) { enableKeepAlive = enable; this.keepAliveTimeNanos = keepAliveTimeNanos; this.keepAliveTimeoutNanos = keepAliveTimeoutNanos; this.keepAliveWithoutCalls = keepAliveWithoutCalls;...
class class_name[name] begin[{] method[enableKeepAlive, return_type[void], modifier[default], parameter[enable, keepAliveTimeNanos, keepAliveTimeoutNanos, keepAliveWithoutCalls]] begin[{] assign[member[.enableKeepAlive], member[.enable]] assign[THIS[member[None.keepAliveTimeNano...
Keyword[void] identifier[enableKeepAlive] operator[SEP] Keyword[boolean] identifier[enable] , Keyword[long] identifier[keepAliveTimeNanos] , Keyword[long] identifier[keepAliveTimeoutNanos] , Keyword[boolean] identifier[keepAliveWithoutCalls] operator[SEP] { identifier[enableKeepAlive] operator[=] identifier[e...
private void checkReceiveState() throws SIIncorrectCallException, SISessionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkReceiveState"); // Only valid if the consumer session is still open checkN...
class class_name[name] begin[{] method[checkReceiveState, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[.tc...
Keyword[private] Keyword[void] identifier[checkReceiveState] operator[SEP] operator[SEP] Keyword[throws] identifier[SIIncorrectCallException] , identifier[SISessionUnavailableException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SE...
private void appendEncoded(StringBuilder builder, String s, Charset charset, boolean isPartiallyEncoded) { if (s == null) { throw new NullPointerException("s == null"); } int escapeStart = -1; for (int i = 0; i < s.length(); i++) { char c = s.charAt(i...
class class_name[name] begin[{] method[appendEncoded, return_type[void], modifier[private], parameter[builder, s, charset, isPartiallyEncoded]] begin[{] if[binary_operation[member[.s], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_ope...
Keyword[private] Keyword[void] identifier[appendEncoded] operator[SEP] identifier[StringBuilder] identifier[builder] , identifier[String] identifier[s] , identifier[Charset] identifier[charset] , Keyword[boolean] identifier[isPartiallyEncoded] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[=...
private void initialize(Configuration conf) { this.nodeHealthScript = conf.get(HEALTH_CHECK_SCRIPT_PROPERTY); this.intervalTime = conf.getLong(HEALTH_CHECK_INTERVAL_PROPERTY, DEFAULT_HEALTH_CHECK_INTERVAL); this.scriptTimeout = conf.getLong(HEALTH_CHECK_FAILURE_INTERVAL_PROPERTY, DEFAULT_HEA...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[conf]] begin[{] assign[THIS[member[None.nodeHealthScript]], call[conf.get, parameter[member[.HEALTH_CHECK_SCRIPT_PROPERTY]]]] assign[THIS[member[None.intervalTime]], call[conf.getL...
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] identifier[Configuration] identifier[conf] operator[SEP] { Keyword[this] operator[SEP] identifier[nodeHealthScript] operator[=] identifier[conf] operator[SEP] identifier[get] operator[SEP] identifier[HEALTH_CHECK_SCRIPT_PROPERTY] operator[SEP] o...
protected static String decode(String component, String charset) throws URIException { if (component == null) { throw new IllegalArgumentException("Component array of chars may not be null"); } byte[] rawdata = null; try { rawdata = URLCodec.decodeUrl(En...
class class_name[name] begin[{] method[decode, return_type[type[String]], modifier[static protected], parameter[component, charset]] begin[{] if[binary_operation[member[.component], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat...
Keyword[protected] Keyword[static] identifier[String] identifier[decode] operator[SEP] identifier[String] identifier[component] , identifier[String] identifier[charset] operator[SEP] Keyword[throws] identifier[URIException] { Keyword[if] operator[SEP] identifier[component] operator[==] Other[null] operator[SEP]...
public static Path getRootFolderForSource(Path sourceFilePath, String packageName) { if (packageName == null || packageName.trim().isEmpty()) { return sourceFilePath.getParent(); } String[] packageNameComponents = packageName.split("\\."); Path currentPath = sourc...
class class_name[name] begin[{] method[getRootFolderForSource, return_type[type[Path]], modifier[public static], parameter[sourceFilePath, packageName]] begin[{] if[binary_operation[binary_operation[member[.packageName], ==, literal[null]], ||, call[packageName.trim, parameter[]]]] begin[{] ...
Keyword[public] Keyword[static] identifier[Path] identifier[getRootFolderForSource] operator[SEP] identifier[Path] identifier[sourceFilePath] , identifier[String] identifier[packageName] operator[SEP] { Keyword[if] operator[SEP] identifier[packageName] operator[==] Other[null] operator[||] identifier[packageNam...
@SuppressWarnings("rawtypes") public static Class loadClass(Class loaderClass, String name) throws ClassNotFoundException { if (loaderClass != null && loaderClass.getClassLoader() != null) return loaderClass.getClassLoader().loadClass(name); return loadClass(name); }
class class_name[name] begin[{] method[loadClass, return_type[type[Class]], modifier[public static], parameter[loaderClass, name]] begin[{] if[binary_operation[binary_operation[member[.loaderClass], !=, literal[null]], &&, binary_operation[call[loaderClass.getClassLoader, parameter[]], !=, lite...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Class] identifier[loadClass] operator[SEP] identifier[Class] identifier[loaderClass] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] ...
private static Map<SegmentId, DataSegment> createLazySegmentsMap(DruidServer server) { return new AbstractMap<SegmentId, DataSegment>() { @Override public Set<Entry<SegmentId, DataSegment>> entrySet() { return new AbstractSet<Entry<SegmentId, DataSegment>>() { @Over...
class class_name[name] begin[{] method[createLazySegmentsMap, return_type[type[Map]], modifier[private static], parameter[server]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=ClassCreator(argu...
Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[SegmentId] , identifier[DataSegment] operator[>] identifier[createLazySegmentsMap] operator[SEP] identifier[DruidServer] identifier[server] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractMap] operator[<] identifier[SegmentI...
private static void verifyArguments(byte[] source, int srcOffset, byte[] destination, int destOffset) { // Lots of error checking and exception throwing if( source == null ){ throw new IllegalArgumentException( "Source array was null." ); } // end if if( destination == null...
class class_name[name] begin[{] method[verifyArguments, return_type[void], modifier[private static], parameter[source, srcOffset, destination, destOffset]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Li...
Keyword[private] Keyword[static] Keyword[void] identifier[verifyArguments] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[source] , Keyword[int] identifier[srcOffset] , Keyword[byte] operator[SEP] operator[SEP] identifier[destination] , Keyword[int] identifier[destOffset] operator[SEP] { K...
@CodingStyleguideUnaware public static <T extends Map <?, ?>> T notNullNoNullValue (final T aValue, final String sName) { if (isEnabled ()) return notNullNoNullValue (aValue, () -> sName); return aValue; }
class class_name[name] begin[{] method[notNullNoNullValue, return_type[type[T]], modifier[public static], parameter[aValue, sName]] begin[{] if[call[.isEnabled, parameter[]]] begin[{] return[call[.notNullNoNullValue, parameter[member[.aValue], LambdaExpression(body=MemberReference(member=sName,...
annotation[@] identifier[CodingStyleguideUnaware] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Map] operator[<] operator[?] , operator[?] operator[>] operator[>] identifier[T] identifier[notNullNoNullValue] operator[SEP] Keyword[final] identifier[T] identifier[aValue] , Keywor...
public static void eventAvailableImage(final Image image) { final Subscription subscription = image.subscription(); System.out.format( "new image on %s streamId %x sessionId %x from %s%n", subscription.channel(), subscription.streamId(), image.sessionId(), image.sourceIdentit...
class class_name[name] begin[{] method[eventAvailableImage, return_type[void], modifier[public static], parameter[image]] begin[{] local_variable[type[Subscription], subscription] call[System.out.format, parameter[literal["new image on %s streamId %x sessionId %x from %s%n"], call[subsc...
Keyword[public] Keyword[static] Keyword[void] identifier[eventAvailableImage] operator[SEP] Keyword[final] identifier[Image] identifier[image] operator[SEP] { Keyword[final] identifier[Subscription] identifier[subscription] operator[=] identifier[image] operator[SEP] identifier[subscription] operator[SEP] operat...
public static final PolygonOptions buildClosedArc(LatLong center, LatLong start, LatLong end, ArcType arcType) { MVCArray res = buildArcPoints(center, start, end); if (ArcType.ROUND.equals(arcType)) { res.push(center); } return new PolygonOptions().paths(res); }
class class_name[name] begin[{] method[buildClosedArc, return_type[type[PolygonOptions]], modifier[final public static], parameter[center, start, end, arcType]] begin[{] local_variable[type[MVCArray], res] if[call[ArcType.ROUND.equals, parameter[member[.arcType]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[final] identifier[PolygonOptions] identifier[buildClosedArc] operator[SEP] identifier[LatLong] identifier[center] , identifier[LatLong] identifier[start] , identifier[LatLong] identifier[end] , identifier[ArcType] identifier[arcType] operator[SEP] { identifier[MVCArray]...
public void scrollAllFilesForFileMove(DbSession session, String projectUuid, ResultHandler<FileMoveRowDto> handler) { mapper(session).scrollAllFilesForFileMove(projectUuid, handler); }
class class_name[name] begin[{] method[scrollAllFilesForFileMove, return_type[void], modifier[public], parameter[session, projectUuid, handler]] begin[{] call[.mapper, parameter[member[.session]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[scrollAllFilesForFileMove] operator[SEP] identifier[DbSession] identifier[session] , identifier[String] identifier[projectUuid] , identifier[ResultHandler] operator[<] identifier[FileMoveRowDto] operator[>] identifier[handler] operator[SEP] { identifier[mapper] operator...
public FeedLoadResult exportTables() { // This result object will be returned to the caller to summarize the feed and report any critical errors. // FIXME: use feed export result object? FeedLoadResult result = new FeedLoadResult(); try { zipOutputStream = new ZipOutputStrea...
class class_name[name] begin[{] method[exportTables, return_type[type[FeedLoadResult]], modifier[public], parameter[]] begin[{] local_variable[type[FeedLoadResult], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=zipOutputStream, postfix_...
Keyword[public] identifier[FeedLoadResult] identifier[exportTables] operator[SEP] operator[SEP] { identifier[FeedLoadResult] identifier[result] operator[=] Keyword[new] identifier[FeedLoadResult] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[zipOutputStream] operator[=] Keyword[n...
public static ScheduleExpression copyBase(ScheduleExpression schedule) // d632906 { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "copy copyBase: " + Util.identity(schedule)); // 'schedule' could be a subclass of ScheduleExpression. // Use only th...
class class_name[name] begin[{] method[copyBase, return_type[type[ScheduleExpression]], modifier[public static], parameter[schedule]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug...
Keyword[public] Keyword[static] identifier[ScheduleExpression] identifier[copyBase] operator[SEP] identifier[ScheduleExpression] identifier[schedule] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identif...
public static void acceptsJson(OptionParser parser) { parser.acceptsAll(Arrays.asList(OPT_J, OPT_JSON), "fetch key/entry by key value of json type") .withRequiredArg() .describedAs("key-list") .withValuesSeparatedBy(',') .ofType(S...
class class_name[name] begin[{] method[acceptsJson, return_type[void], modifier[public static], parameter[parser]] begin[{] call[parser.acceptsAll, parameter[call[Arrays.asList, parameter[member[.OPT_J], member[.OPT_JSON]]], literal["fetch key/entry by key value of json type"]]] end[}] END[...
Keyword[public] Keyword[static] Keyword[void] identifier[acceptsJson] operator[SEP] identifier[OptionParser] identifier[parser] operator[SEP] { identifier[parser] operator[SEP] identifier[acceptsAll] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[OPT_J] , identifier[O...
public boolean needAuthorization(ResponseEvent event) { Response response = event.getResponse(); int status = response.getStatusCode(); if ((status == Response.UNAUTHORIZED) || (status == Response.PROXY_AUTHENTICATION_REQUIRED)) { return true; } return false; }
class class_name[name] begin[{] method[needAuthorization, return_type[type[boolean]], modifier[public], parameter[event]] begin[{] local_variable[type[Response], response] local_variable[type[int], status] if[binary_operation[binary_operation[member[.status], ==, member[Response...
Keyword[public] Keyword[boolean] identifier[needAuthorization] operator[SEP] identifier[ResponseEvent] identifier[event] operator[SEP] { identifier[Response] identifier[response] operator[=] identifier[event] operator[SEP] identifier[getResponse] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[...
public static PayContractorderResult payContractorder(PayContractorder payContractorder,String key){ Map<String,String> map = MapUtil.objectToMap(payContractorder); String sign = SignatureUtil.generateSign(map,payContractorder.getSign_type(),key); payContractorder.setSign(sign); String secapiPayRefundXML = XMLC...
class class_name[name] begin[{] method[payContractorder, return_type[type[PayContractorderResult]], modifier[public static], parameter[payContractorder, key]] begin[{] local_variable[type[Map], map] local_variable[type[String], sign] call[payContractorder.setSign, parameter[memb...
Keyword[public] Keyword[static] identifier[PayContractorderResult] identifier[payContractorder] operator[SEP] identifier[PayContractorder] identifier[payContractorder] , identifier[String] identifier[key] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier...
public PartnerLogData getEntry(int index) { if (tc.isEntryEnabled()) Tr.entry(tc, "getEntry", index); _pltReadLock.lock(); try { final PartnerLogData entry = _partnerLogTable.get(index - 1); if (tc.isEntryEnabled()) Tr.exit(tc, "getEntry", en...
class class_name[name] begin[{] method[getEntry, return_type[type[PartnerLogData]], modifier[public], parameter[index]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[Tr.entry, parameter[member[.tc], literal["getEntry"], member[.index]]] else begin[{] None ...
Keyword[public] identifier[PartnerLogData] identifier[getEntry] operator[SEP] Keyword[int] identifier[index] 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[SEP] ide...
@Override public CPDefinitionOptionValueRel[] findByGroupId_PrevAndNext( long CPDefinitionOptionValueRelId, long groupId, OrderByComparator<CPDefinitionOptionValueRel> orderByComparator) throws NoSuchCPDefinitionOptionValueRelException { CPDefinitionOptionValueRel cpDefinitionOptionValueRel = findByPrimaryKey(...
class class_name[name] begin[{] method[findByGroupId_PrevAndNext, return_type[type[CPDefinitionOptionValueRel]], modifier[public], parameter[CPDefinitionOptionValueRelId, groupId, orderByComparator]] begin[{] local_variable[type[CPDefinitionOptionValueRel], cpDefinitionOptionValueRel] local_var...
annotation[@] identifier[Override] Keyword[public] identifier[CPDefinitionOptionValueRel] operator[SEP] operator[SEP] identifier[findByGroupId_PrevAndNext] operator[SEP] Keyword[long] identifier[CPDefinitionOptionValueRelId] , Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CP...
private static List<List<Integer>> getUniqueBondSubgraphs(List<List<RMap>> subgraphs, IAtomContainer ac) { List<List<Integer>> bondList = new ArrayList<List<Integer>>(); for (List<RMap> subgraph : subgraphs) { List<RMap> current = subgraph; List<Integer> ids = new ArrayList<Integ...
class class_name[name] begin[{] method[getUniqueBondSubgraphs, return_type[type[List]], modifier[private static], parameter[subgraphs, ac]] begin[{] local_variable[type[List], bondList] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[List] operator[<] identifier[Integer] operator[>] operator[>] identifier[getUniqueBondSubgraphs] operator[SEP] identifier[List] operator[<] identifier[List] operator[<] identifier[RMap] operator[>] operator[>] identifier[subgraphs] , identifier[I...
public void removeFileSystem(final DedicatedFileSystem pDedicatedFileSystem) { for (final Iterator<Map.Entry<FileSystem, DedicatedFileSystem>> it = children.entrySet().iterator() ; it.hasNext() ; ) { final Map.Entry<FileSystem, DedicatedFileSystem> next = it.next(); if (pDedicatedFileSys...
class class_name[name] begin[{] method[removeFileSystem, return_type[void], modifier[public], parameter[pDedicatedFileSystem]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvo...
Keyword[public] Keyword[void] identifier[removeFileSystem] operator[SEP] Keyword[final] identifier[DedicatedFileSystem] identifier[pDedicatedFileSystem] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Iterator] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifie...
public void closeContext() throws EFapsException { if (isLogedIn()) { try { if (!Context.isTMNoTransaction()) { if (Context.isTMActive()) { Context.commit(); } else { Context.rollback(...
class class_name[name] begin[{] method[closeContext, return_type[void], modifier[public], parameter[]] begin[{] if[call[.isLogedIn, parameter[]]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTMNoTransaction, postfix_operators=[], prefix_...
Keyword[public] Keyword[void] identifier[closeContext] operator[SEP] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[if] operator[SEP] identifier[isLogedIn] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[Con...
@Override public AttributeValue_4[] read_attributes_4(final String[] names, final DevSource source, final ClntIdent clIdent) throws DevFailed { // final Profiler profilerPeriod = new Profiler("period"); // profilerPeriod.start(Arrays.toString(names)); MDC.setContextMap(contextMap...
class class_name[name] begin[{] method[read_attributes_4, return_type[type[AttributeValue_4]], modifier[public], parameter[names, source, clIdent]] begin[{] call[MDC.setContextMap, parameter[member[.contextMap]]] call[xlogger.entry, parameter[call[Arrays.toString, parameter[memb...
annotation[@] identifier[Override] Keyword[public] identifier[AttributeValue_4] operator[SEP] operator[SEP] identifier[read_attributes_4] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[names] , Keyword[final] identifier[DevSource] identifier[source] , Keyword[final] identifier[...
public Matrix4x3f set3x3(Matrix4x3fc mat) { if (mat instanceof Matrix4x3f) { MemUtil.INSTANCE.copy3x3((Matrix4x3f) mat, this); } else { set3x3Matrix4x3fc(mat); } properties &= mat.properties(); return this; }
class class_name[name] begin[{] method[set3x3, return_type[type[Matrix4x3f]], modifier[public], parameter[mat]] begin[{] if[binary_operation[member[.mat], instanceof, type[Matrix4x3f]]] begin[{] call[MemUtil.INSTANCE.copy3x3, parameter[Cast(expression=MemberReference(mem...
Keyword[public] identifier[Matrix4x3f] identifier[set3x3] operator[SEP] identifier[Matrix4x3fc] identifier[mat] operator[SEP] { Keyword[if] operator[SEP] identifier[mat] Keyword[instanceof] identifier[Matrix4x3f] operator[SEP] { identifier[MemUtil] operator[SEP] identifier[INSTANCE] operator[SEP] iden...
@Nonnull public static <T> LTieDblFunction<T> tieDblFunctionFrom(Consumer<LTieDblFunctionBuilder<T>> buildingFunction) { LTieDblFunctionBuilder builder = new LTieDblFunctionBuilder(); buildingFunction.accept(builder); return builder.build(); }
class class_name[name] begin[{] method[tieDblFunctionFrom, return_type[type[LTieDblFunction]], modifier[public static], parameter[buildingFunction]] begin[{] local_variable[type[LTieDblFunctionBuilder], builder] call[buildingFunction.accept, parameter[member[.builder]]] return[c...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[LTieDblFunction] operator[<] identifier[T] operator[>] identifier[tieDblFunctionFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LTieDblFunctionBuilder] operator[<] identifier[T] operator[>]...
public CondItem genCond(JCTree tree, int crtFlags) { if (!genCrt) return genCond(tree, false); int startpc = code.curCP(); CondItem item = genCond(tree, (crtFlags & CRT_FLOW_CONTROLLER) != 0); code.crt.put(tree, crtFlags, startpc, code.curCP()); return item; }
class class_name[name] begin[{] method[genCond, return_type[type[CondItem]], modifier[public], parameter[tree, crtFlags]] begin[{] if[member[.genCrt]] begin[{] return[call[.genCond, parameter[member[.tree], literal[false]]]] else begin[{] None end[}] local_variable[type[...
Keyword[public] identifier[CondItem] identifier[genCond] operator[SEP] identifier[JCTree] identifier[tree] , Keyword[int] identifier[crtFlags] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[genCrt] operator[SEP] Keyword[return] identifier[genCond] operator[SEP] identifier[tree] , literal[bool...
private void enterDefaultValue(JCExpression defaultValue, Env<AttrContext> localEnv, MethodSymbol m) { m.defaultValue = attributeAnnotationValue(m.type.getReturnType(), defaultValue, localEnv); }
class class_name[name] begin[{] method[enterDefaultValue, return_type[void], modifier[private], parameter[defaultValue, localEnv, m]] begin[{] assign[member[m.defaultValue], call[.attributeAnnotationValue, parameter[call[m.type.getReturnType, parameter[]], member[.defaultValue], member[.localEn...
Keyword[private] Keyword[void] identifier[enterDefaultValue] operator[SEP] identifier[JCExpression] identifier[defaultValue] , identifier[Env] operator[<] identifier[AttrContext] operator[>] identifier[localEnv] , identifier[MethodSymbol] identifier[m] operator[SEP] { identifier[m] operator[SEP] identifier[def...
public void startSetup(@Nullable final OnIabSetupFinishedListener listener) { // If already set up, can't do it again. if (mSetupDone) throw new IllegalStateException("IAB helper is already set up."); // Connection to IAB service Logger.d("Starting in-app billing setup."); mServ...
class class_name[name] begin[{] method[startSetup, return_type[void], modifier[public], parameter[listener]] begin[{] if[member[.mSetupDone]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="IAB he...
Keyword[public] Keyword[void] identifier[startSetup] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[OnIabSetupFinishedListener] identifier[listener] operator[SEP] { Keyword[if] operator[SEP] identifier[mSetupDone] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateExcept...
public QueryRule createShouldQueryRule(String multiOntologyTermIri) { QueryRule shouldQueryRule = new QueryRule(new ArrayList<>()); shouldQueryRule.setOperator(Operator.SHOULD); for (String ontologyTermIri : multiOntologyTermIri.split(COMMA_CHAR)) { OntologyTerm ontologyTerm = ontologyService.getOntol...
class class_name[name] begin[{] method[createShouldQueryRule, return_type[type[QueryRule]], modifier[public], parameter[multiOntologyTermIri]] begin[{] local_variable[type[QueryRule], shouldQueryRule] call[shouldQueryRule.setOperator, parameter[member[Operator.SHOULD]]] ForState...
Keyword[public] identifier[QueryRule] identifier[createShouldQueryRule] operator[SEP] identifier[String] identifier[multiOntologyTermIri] operator[SEP] { identifier[QueryRule] identifier[shouldQueryRule] operator[=] Keyword[new] identifier[QueryRule] operator[SEP] Keyword[new] identifier[ArrayList] operator[<] o...
public static double[][] Kernel2D(int size, double wavelength, double orientation, double phaseOffset, double gaussVariance, double aspectRatio, Config config) { double sigmaX = gaussVariance; double sigmaY = gaussVariance / aspectRatio; int xMax = (int) Math.ceil(Math.max(1, Math.max(Math.abs(...
class class_name[name] begin[{] method[Kernel2D, return_type[type[double]], modifier[public static], parameter[size, wavelength, orientation, phaseOffset, gaussVariance, aspectRatio, config]] begin[{] local_variable[type[double], sigmaX] local_variable[type[double], sigmaY] local_variab...
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Kernel2D] operator[SEP] Keyword[int] identifier[size] , Keyword[double] identifier[wavelength] , Keyword[double] identifier[orientation] , Keyword[double] identifier[phaseOffset] , Keyword[double] iden...
public int getAllContentWidth() { float width = getAllContentWidthBase(mTimeTextWidth); if (!isConvertDaysToHours && isShowDay) { if (isDayLargeNinetyNine) { Rect rect = new Rect(); String tempDay = String.valueOf(mDay); mTimeTextPaint.getText...
class class_name[name] begin[{] method[getAllContentWidth, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[float], width] if[binary_operation[member[.isConvertDaysToHours], &&, member[.isShowDay]]] begin[{] if[member[.isDayLarg...
Keyword[public] Keyword[int] identifier[getAllContentWidth] operator[SEP] operator[SEP] { Keyword[float] identifier[width] operator[=] identifier[getAllContentWidthBase] operator[SEP] identifier[mTimeTextWidth] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[isConvertDaysToHours] ope...
public static HealthReport max(HealthReport a, HealthReport b) { if (a == null && b == null) return null; if (a == null) return b; if (b == null) return a; if (a.compareTo(b) >= 0) return a; return b; }
class class_name[name] begin[{] method[max, return_type[type[HealthReport]], modifier[public static], parameter[a, b]] begin[{] if[binary_operation[binary_operation[member[.a], ==, literal[null]], &&, binary_operation[member[.b], ==, literal[null]]]] begin[{] return[literal[null]] else ...
Keyword[public] Keyword[static] identifier[HealthReport] identifier[max] operator[SEP] identifier[HealthReport] identifier[a] , identifier[HealthReport] identifier[b] operator[SEP] { Keyword[if] operator[SEP] identifier[a] operator[==] Other[null] operator[&&] identifier[b] operator[==] Other[null] operator[SEP...
public void setPublishHistorySize(String publishHistorySize) { if (m_frozen) { throw new CmsRuntimeException(Messages.get().container(Messages.ERR_CONFIG_FROZEN_0)); } m_publishHistorySize = Integer.parseInt(publishHistorySize); }
class class_name[name] begin[{] method[setPublishHistorySize, return_type[void], modifier[public], parameter[publishHistorySize]] begin[{] if[member[.m_frozen]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[]...
Keyword[public] Keyword[void] identifier[setPublishHistorySize] operator[SEP] identifier[String] identifier[publishHistorySize] operator[SEP] { Keyword[if] operator[SEP] identifier[m_frozen] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsRuntimeException] operator[SEP] identifier[Messages] ...
public String convertFNDFtDsFlagsToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
class class_name[name] begin[{] method[convertFNDFtDsFlagsToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] identifier[String] identifier[convertFNDFtDsFlagsToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] { Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[i...
void releaseBlock(BlockId blockId) throws IOException { synchronized (m_accessLock) { if (! m_blockPathMap.containsKey(blockId)) { throw new IllegalArgumentException("Request to release block that is not stored: " + blockId); } Path blockPath = m_blockPathMap...
class class_name[name] begin[{] method[releaseBlock, return_type[void], modifier[default], parameter[blockId]] begin[{] SYNCHRONIZED[member[.m_accessLock]] BEGIN[{] if[call[m_blockPathMap.containsKey, parameter[member[.blockId]]]] begin[{] ThrowStatement(...
Keyword[void] identifier[releaseBlock] operator[SEP] identifier[BlockId] identifier[blockId] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[synchronized] operator[SEP] identifier[m_accessLock] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_blockPathMap] operator[SE...
public JDABuilder setStatus(OnlineStatus status) { if (status == null || status == OnlineStatus.UNKNOWN) throw new IllegalArgumentException("OnlineStatus cannot be null or unknown!"); this.status = status; return this; }
class class_name[name] begin[{] method[setStatus, return_type[type[JDABuilder]], modifier[public], parameter[status]] begin[{] if[binary_operation[binary_operation[member[.status], ==, literal[null]], ||, binary_operation[member[.status], ==, member[OnlineStatus.UNKNOWN]]]] begin[{] ThrowStatem...
Keyword[public] identifier[JDABuilder] identifier[setStatus] operator[SEP] identifier[OnlineStatus] identifier[status] operator[SEP] { Keyword[if] operator[SEP] identifier[status] operator[==] Other[null] operator[||] identifier[status] operator[==] identifier[OnlineStatus] operator[SEP] identifier[UNKNOWN] oper...
public <N> CompletableFutureQueue<T, N> thenCombineAsyncFromArray(Function<R, N>[] nextTransformations) { CompletableFutureQueue cfq = this; for (Function<R, N> nextTransformation : nextTransformations) { cfq = cfq.thenCombineAsync(nextTransformation); } return cfq; }
class class_name[name] begin[{] method[thenCombineAsyncFromArray, return_type[type[CompletableFutureQueue]], modifier[public], parameter[nextTransformations]] begin[{] local_variable[type[CompletableFutureQueue], cfq] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(...
Keyword[public] operator[<] identifier[N] operator[>] identifier[CompletableFutureQueue] operator[<] identifier[T] , identifier[N] operator[>] identifier[thenCombineAsyncFromArray] operator[SEP] identifier[Function] operator[<] identifier[R] , identifier[N] operator[>] operator[SEP] operator[SEP] identifier[nextTrans...
@XmlTransient public String getFieldValueAsString() { Object returnObj = this.getFieldValue(); return (returnObj == null) ? null : returnObj.toString(); }
class class_name[name] begin[{] method[getFieldValueAsString, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Object], returnObj] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=returnObj, postfix_operators=[], prefix_ope...
annotation[@] identifier[XmlTransient] Keyword[public] identifier[String] identifier[getFieldValueAsString] operator[SEP] operator[SEP] { identifier[Object] identifier[returnObj] operator[=] Keyword[this] operator[SEP] identifier[getFieldValue] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[S...
public static <K, V> CompletableFuture<StatefulRedisMasterSlaveConnection<K, V>> connectAsync(RedisClient redisClient, RedisCodec<K, V> codec, Iterable<RedisURI> redisURIs) { return transformAsyncConnectionException(connectAsyncSentinelOrStaticSetup(redisClient, codec, redisURIs), redisURIs); }
class class_name[name] begin[{] method[connectAsync, return_type[type[CompletableFuture]], modifier[public static], parameter[redisClient, codec, redisURIs]] begin[{] return[call[.transformAsyncConnectionException, parameter[call[.connectAsyncSentinelOrStaticSetup, parameter[member[.redisClient], membe...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[CompletableFuture] operator[<] identifier[StatefulRedisMasterSlaveConnection] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[connectAsync] operator[SEP] identifier[RedisClient] identifier[red...
private boolean hasCustomReadObject(Method m, ClassContext classContext,List<String> classesToIgnore) throws CFGBuilderException, DataflowAnalysisException { ConstantPoolGen cpg = classContext.getConstantPoolGen(); CFG cfg = classContext.getCFG(m); int count = 0; for (Iterato...
class class_name[name] begin[{] method[hasCustomReadObject, return_type[type[boolean]], modifier[private], parameter[m, classContext, classesToIgnore]] begin[{] local_variable[type[ConstantPoolGen], cpg] local_variable[type[CFG], cfg] local_variable[type[int], count] ForStatemen...
Keyword[private] Keyword[boolean] identifier[hasCustomReadObject] operator[SEP] identifier[Method] identifier[m] , identifier[ClassContext] identifier[classContext] , identifier[List] operator[<] identifier[String] operator[>] identifier[classesToIgnore] operator[SEP] Keyword[throws] identifier[CFGBuilderException] ,...
private static boolean isBridgedCandidateFor(Method candidateMethod, Method bridgeMethod) { return (!candidateMethod.isBridge() && !candidateMethod.equals(bridgeMethod) && candidateMethod.getName().equals(bridgeMethod.getName()) && candidateMethod.getParameterTypes().length == bridgeMethod.getParameterTypes()...
class class_name[name] begin[{] method[isBridgedCandidateFor, return_type[type[boolean]], modifier[private static], parameter[candidateMethod, bridgeMethod]] begin[{] return[binary_operation[binary_operation[binary_operation[call[candidateMethod.isBridge, parameter[]], &&, call[candidateMethod.equals, ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isBridgedCandidateFor] operator[SEP] identifier[Method] identifier[candidateMethod] , identifier[Method] identifier[bridgeMethod] operator[SEP] { Keyword[return] operator[SEP] operator[!] identifier[candidateMethod] operator[SEP] identifier[isBridge] ...
public <T> Attribute<T> attribute(AttributeDefinition<T> def) { Attribute<T> attribute = attribute(def.name()); if (attribute != null) return attribute; else throw log.noSuchAttribute(def.name(), name); }
class class_name[name] begin[{] method[attribute, return_type[type[Attribute]], modifier[public], parameter[def]] begin[{] local_variable[type[Attribute], attribute] if[binary_operation[member[.attribute], !=, literal[null]]] begin[{] return[member[.attribute]] else begin[{] Thr...
Keyword[public] operator[<] identifier[T] operator[>] identifier[Attribute] operator[<] identifier[T] operator[>] identifier[attribute] operator[SEP] identifier[AttributeDefinition] operator[<] identifier[T] operator[>] identifier[def] operator[SEP] { identifier[Attribute] operator[<] identifier[T] operator[>] i...
@SuppressWarnings("restriction") public final void putLong(int index, long value) { if (CHECKED) { if (index >= 0 && index <= this.memory.length - 8) { UNSAFE.putLong(this.memory, BASE_OFFSET + index, value); } else { throw new IndexOutOfBoundsException(); } } else { UNSAFE.putLong(this.memory,...
class class_name[name] begin[{] method[putLong, return_type[void], modifier[final public], parameter[index, value]] begin[{] if[member[.CHECKED]] begin[{] if[binary_operation[binary_operation[member[.index], >=, literal[0]], &&, binary_operation[member[.index], <=, binar...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] Keyword[void] identifier[putLong] operator[SEP] Keyword[int] identifier[index] , Keyword[long] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[CHECKED] operator[SEP] { ...
void initializeListeners(NavigationViewOptions navigationViewOptions, NavigationViewModel navigationViewModel) { assignFeedbackListener(navigationViewOptions.feedbackListener()); assignNavigationListener(navigationViewOptions.navigationListener(), navigationViewModel); assignRouteListener(navigationViewOpti...
class class_name[name] begin[{] method[initializeListeners, return_type[void], modifier[default], parameter[navigationViewOptions, navigationViewModel]] begin[{] call[.assignFeedbackListener, parameter[call[navigationViewOptions.feedbackListener, parameter[]]]] call[.assignNavig...
Keyword[void] identifier[initializeListeners] operator[SEP] identifier[NavigationViewOptions] identifier[navigationViewOptions] , identifier[NavigationViewModel] identifier[navigationViewModel] operator[SEP] { identifier[assignFeedbackListener] operator[SEP] identifier[navigationViewOptions] operator[SEP] ident...
private void readHierarchy(Object object, ObjectStreamClass classDesc) throws IOException, ClassNotFoundException, NotActiveException { if (object == null && mustResolve) { throw new NotActiveException(); } List<ObjectStreamClass> streamClassList = classDesc.getHierarchy...
class class_name[name] begin[{] method[readHierarchy, return_type[void], modifier[private], parameter[object, classDesc]] begin[{] if[binary_operation[binary_operation[member[.object], ==, literal[null]], &&, member[.mustResolve]]] begin[{] ThrowStatement(expression=ClassCreator(arg...
Keyword[private] Keyword[void] identifier[readHierarchy] operator[SEP] identifier[Object] identifier[object] , identifier[ObjectStreamClass] identifier[classDesc] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] , identifier[NotActiveException] { Keyword[if] operator[...
public Module getPlumbingModules(final Config config) { return new Module() { @Override public void configure(final Binder binder) { binder.install(new ConfigModule(config)); binder.install(new JmxModule()); binder.install(new JmxLoggin...
class class_name[name] begin[{] method[getPlumbingModules, return_type[type[Module]], modifier[public], parameter[config]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(argu...
Keyword[public] identifier[Module] identifier[getPlumbingModules] operator[SEP] Keyword[final] identifier[Config] identifier[config] operator[SEP] { Keyword[return] Keyword[new] identifier[Module] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier...
public void marshall(DescribeGameSessionPlacementRequest describeGameSessionPlacementRequest, ProtocolMarshaller protocolMarshaller) { if (describeGameSessionPlacementRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeGameSessionPlacementRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeGameSessionPlacementRequest], ==, literal[null]]] begin[{] ThrowStatement(expression...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeGameSessionPlacementRequest] identifier[describeGameSessionPlacementRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeGameSessionPlacementReques...
public static String keyVersionToString(ByteArray key, Map<Value, Set<ClusterNode>> versionMap, String storeName, Integer partitionId) { StringBuilder record = new StringBuilder(); for (Map.Entry<Value, Set<ClusterNode>> versionSet : versionMap.entrySet()) { ...
class class_name[name] begin[{] method[keyVersionToString, return_type[type[String]], modifier[public static], parameter[key, versionMap, storeName, partitionId]] begin[{] local_variable[type[StringBuilder], record] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarati...
Keyword[public] Keyword[static] identifier[String] identifier[keyVersionToString] operator[SEP] identifier[ByteArray] identifier[key] , identifier[Map] operator[<] identifier[Value] , identifier[Set] operator[<] identifier[ClusterNode] operator[>] operator[>] identifier[versionMap] , identifier[String] identifier[st...
private void loadMorphoTaggerDicts(final Properties props) { final String resourcesDirectory = props.getProperty("resourcesDirectory"); final Resources resources = new Resources(); final URL binDictMorphoTaggerURL = resources.getBinaryTaggerDict(this.lang, resourcesDirectory); if (binDictMorphoTaggerURL...
class class_name[name] begin[{] method[loadMorphoTaggerDicts, return_type[void], modifier[private], parameter[props]] begin[{] local_variable[type[String], resourcesDirectory] local_variable[type[Resources], resources] local_variable[type[URL], binDictMorphoTaggerURL] if...
Keyword[private] Keyword[void] identifier[loadMorphoTaggerDicts] operator[SEP] Keyword[final] identifier[Properties] identifier[props] operator[SEP] { Keyword[final] identifier[String] identifier[resourcesDirectory] operator[=] identifier[props] operator[SEP] identifier[getProperty] operator[SEP] literal[String]...
@Override public boolean visitBegin(Node node) throws Exception { BindableCpoWhere jcw = (BindableCpoWhere) node; whereClause.append(jcw.toString(cpoClass)); if (jcw.hasParent() || jcw.getLogical() != CpoWhere.LOGIC_NONE) { whereClause.append(" ("); } else { whereClause.append(" "); } ...
class class_name[name] begin[{] method[visitBegin, return_type[type[boolean]], modifier[public], parameter[node]] begin[{] local_variable[type[BindableCpoWhere], jcw] call[whereClause.append, parameter[call[jcw.toString, parameter[member[.cpoClass]]]]] if[binary_operatio...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[visitBegin] operator[SEP] identifier[Node] identifier[node] operator[SEP] Keyword[throws] identifier[Exception] { identifier[BindableCpoWhere] identifier[jcw] operator[=] operator[SEP] identifier[BindableCpoWhere] operator[SEP] identi...
public Object put(String key, Object o) { explode(); return delegee.put(key, o); }
class class_name[name] begin[{] method[put, return_type[type[Object]], modifier[public], parameter[key, o]] begin[{] call[.explode, parameter[]] return[call[delegee.put, parameter[member[.key], member[.o]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[put] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[o] operator[SEP] { identifier[explode] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[delegee] operator[SEP] identifier[put] operator[SEP] identifier[key] , ...
public void reset() throws SQLException { try { this.sessionProxy.resetSession(); } catch (HsqlException e) { throw Util.sqlException(ErrorCode.X_08006, e.getMessage(), e); } }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=sessionProxy, postfix_operators=None, prefix_oper...
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[try] { Keyword[this] operator[SEP] identifier[sessionProxy] operator[SEP] identifier[resetSession] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] ope...
public static Point2d get2DCenter(Iterable<IAtom> atoms) { double xsum = 0; double ysum = 0; int length = 0; for (IAtom atom : atoms) { if (atom.getPoint2d() != null) { xsum += atom.getPoint2d().x; ysum += atom.getPoint2d().y; l...
class class_name[name] begin[{] method[get2DCenter, return_type[type[Point2d]], modifier[public static], parameter[atoms]] begin[{] local_variable[type[double], xsum] local_variable[type[double], ysum] local_variable[type[int], length] ForStatement(body=BlockStatement(label=None...
Keyword[public] Keyword[static] identifier[Point2d] identifier[get2DCenter] operator[SEP] identifier[Iterable] operator[<] identifier[IAtom] operator[>] identifier[atoms] operator[SEP] { Keyword[double] identifier[xsum] operator[=] Other[0] operator[SEP] Keyword[double] identifier[ysum] operator[=] Other[0] oper...
public static boolean isNegative(ZMatrixD1 a, ZMatrixD1 b, double tol) { if( a.numRows != b.numRows || a.numCols != b.numCols ) throw new IllegalArgumentException("Matrix dimensions must match"); int length = a.getNumElements()*2; for( int i = 0; i < length; i++ ) { if(...
class class_name[name] begin[{] method[isNegative, return_type[type[boolean]], modifier[public static], parameter[a, b, tol]] begin[{] if[binary_operation[binary_operation[member[a.numRows], !=, member[b.numRows]], ||, binary_operation[member[a.numCols], !=, member[b.numCols]]]] begin[{] ThrowS...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isNegative] operator[SEP] identifier[ZMatrixD1] identifier[a] , identifier[ZMatrixD1] identifier[b] , Keyword[double] identifier[tol] operator[SEP] { Keyword[if] operator[SEP] identifier[a] operator[SEP] identifier[numRows] operator[!=] identifier[b] ...
private static Set<Key> conditionToKeys(int keyLength, Map<String, Set<Object>> condition) { return crossProduct(new ArrayList<>(condition.values())).stream() .map(v -> Keys.key(keyLength, v.toArray())) .collect(Collectors.toSet()); }
class class_name[name] begin[{] method[conditionToKeys, return_type[type[Set]], modifier[private static], parameter[keyLength, condition]] begin[{] return[call[.crossProduct, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=values, postfix_operators=[], prefix_operators=[], quali...
Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[Key] operator[>] identifier[conditionToKeys] operator[SEP] Keyword[int] identifier[keyLength] , identifier[Map] operator[<] identifier[String] , identifier[Set] operator[<] identifier[Object] operator[>] operator[>] identifier[condition] operator...
@Override public <T> T convert(Object value, final Class<T> toType) { return useDefault(value, toType) ? getDefaultValue(toType) : super.convert(value, toType); }
class class_name[name] begin[{] method[convert, return_type[type[T]], modifier[public], parameter[value, toType]] begin[{] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(m...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[convert] operator[SEP] identifier[Object] identifier[value] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[toType] operator[SEP] { Keyword[return] identifier[use...
static <E> ImmutableSortedSet<E> construct( Comparator<? super E> comparator, int n, E... contents) { if (n == 0) { return emptySet(comparator); } checkElementsNotNull(contents, n); Arrays.sort(contents, 0, n, comparator); int uniques = 1; for (int i = 1; i < n; i++) { E cur = ...
class class_name[name] begin[{] method[construct, return_type[type[ImmutableSortedSet]], modifier[static], parameter[comparator, n, contents]] begin[{] if[binary_operation[member[.n], ==, literal[0]]] begin[{] return[call[.emptySet, parameter[member[.comparator]]]] else begi...
Keyword[static] operator[<] identifier[E] operator[>] identifier[ImmutableSortedSet] operator[<] identifier[E] operator[>] identifier[construct] operator[SEP] identifier[Comparator] operator[<] operator[?] Keyword[super] identifier[E] operator[>] identifier[comparator] , Keyword[int] identifier[n] , identifier[E] ope...
public <T, K> void remove(ColumnFamily<K, String> columnFamily, T item) throws Exception { @SuppressWarnings({ "unchecked" }) Class<T> clazz = (Class<T>) item.getClass(); Mapping<T> mapping = getMapping(clazz); @SuppressWarnings({ "unchecked" }) Class<K> idFieldClass ...
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[columnFamily, item]] begin[{] local_variable[type[Class], clazz] local_variable[type[Mapping], mapping] local_variable[type[Class], idFieldClass] local_variable[type[MutationBatch], mut...
Keyword[public] operator[<] identifier[T] , identifier[K] operator[>] Keyword[void] identifier[remove] operator[SEP] identifier[ColumnFamily] operator[<] identifier[K] , identifier[String] operator[>] identifier[columnFamily] , identifier[T] identifier[item] operator[SEP] Keyword[throws] identifier[Exception] { ...
private void formMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseClicked if (highlighted_outlier != null){ highlighted_outlier.highlight(false); highlighted_outlier = null; } }
class class_name[name] begin[{] method[formMouseClicked, return_type[void], modifier[private], parameter[evt]] begin[{] if[binary_operation[member[.highlighted_outlier], !=, literal[null]]] begin[{] call[highlighted_outlier.highlight, parameter[literal[false]]] ...
Keyword[private] Keyword[void] identifier[formMouseClicked] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[MouseEvent] identifier[evt] operator[SEP] { Keyword[if] operator[SEP] identifier[highlighted_outlier] operator[!=] Other[null] operator...
@Override public int delete(Integer id, boolean autoCommit) throws SQLException { try { // Handle "cascading" delete or constraints on deleting entities that other entities depend on // (e.g., keep a calendar from being deleted if trips reference it). // FIXME: actually a...
class class_name[name] begin[{] method[delete, return_type[type[int]], modifier[public], parameter[id, autoCommit]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tablePrefix, postfix_operators=[], prefix_operators=[], qualifier=, selector...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[delete] operator[SEP] identifier[Integer] identifier[id] , Keyword[boolean] identifier[autoCommit] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[try] { identifier[deleteFromReferencingTables] operator[SEP] i...
public boolean hardLinkTo(String src, String dst) throws IOException { INode dstNode = hardLinkToInternal(src, dst); getEditLog().logSync(false); if (dstNode != null && auditLog.isInfoEnabled()) { logAuditEvent(getCurrentUGI(), Server.getRemoteIp(), "hardlink", src, dst, dstNode); } ...
class class_name[name] begin[{] method[hardLinkTo, return_type[type[boolean]], modifier[public], parameter[src, dst]] begin[{] local_variable[type[INode], dstNode] call[.getEditLog, parameter[]] if[binary_operation[binary_operation[member[.dstNode], !=, literal[null]], &...
Keyword[public] Keyword[boolean] identifier[hardLinkTo] operator[SEP] identifier[String] identifier[src] , identifier[String] identifier[dst] operator[SEP] Keyword[throws] identifier[IOException] { identifier[INode] identifier[dstNode] operator[=] identifier[hardLinkToInternal] operator[SEP] identifier[src] , ...
public static <T> FunctionToTransformerAdapter<T> of(Function<T, T> function) { return new FunctionToTransformerAdapter<>(function); }
class class_name[name] begin[{] method[of, return_type[type[FunctionToTransformerAdapter]], modifier[public static], parameter[function]] begin[{] return[ClassCreator(arguments=[MemberReference(member=function, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructo...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[FunctionToTransformerAdapter] operator[<] identifier[T] operator[>] identifier[of] operator[SEP] identifier[Function] operator[<] identifier[T] , identifier[T] operator[>] identifier[function] operator[SEP] { Keyword[return] Keywor...
public String[] getSynonyms(String string) { if (SYNONYM_MAP != null) { return SYNONYM_MAP.getSynonyms(string.toLowerCase()); } else { return new String[0]; } }
class class_name[name] begin[{] method[getSynonyms, return_type[type[String]], modifier[public], parameter[string]] begin[{] if[binary_operation[member[.SYNONYM_MAP], !=, literal[null]]] begin[{] return[call[SYNONYM_MAP.getSynonyms, parameter[call[string.toLowerCase, parameter[]]]]]...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getSynonyms] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[if] operator[SEP] identifier[SYNONYM_MAP] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[SYNONYM_MAP] operator[SEP] id...
public static String[] split(String input, char delimiter){ if(input == null) throw new NullPointerException("input cannot be null"); final int len = input.length(); // find the number of strings to split into int nSplits = 1; for (int i = 0; i < len; i++) { ...
class class_name[name] begin[{] method[split, return_type[type[String]], modifier[public static], parameter[input, delimiter]] begin[{] if[binary_operation[member[.input], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operato...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[split] operator[SEP] identifier[String] identifier[input] , Keyword[char] identifier[delimiter] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new]...
public static boolean checkSign(PayResultInfo rst, String pubKey) { if (rst == null || pubKey == null) { return false; } Map<String, Object> paramsa = new HashMap<String, Object>(); // 必选参数 paramsa.put("returnCode", rst.getReturnCode()); paramsa.p...
class class_name[name] begin[{] method[checkSign, return_type[type[boolean]], modifier[public static], parameter[rst, pubKey]] begin[{] if[binary_operation[binary_operation[member[.rst], ==, literal[null]], ||, binary_operation[member[.pubKey], ==, literal[null]]]] begin[{] return[l...
Keyword[public] Keyword[static] Keyword[boolean] identifier[checkSign] operator[SEP] identifier[PayResultInfo] identifier[rst] , identifier[String] identifier[pubKey] operator[SEP] { Keyword[if] operator[SEP] identifier[rst] operator[==] Other[null] operator[||] identifier[pubKey] operator[==] Other[null] opera...
@Override public long select(final long j) throws IllegalArgumentException { if (!doCacheCardinalities) { return selectNoCache(j); } // Ensure all cumulatives as we we have straightforward way to know in advance the high of the // j-th value int indexOk = ensureCumulatives(highestHigh()); ...
class class_name[name] begin[{] method[select, return_type[type[long]], modifier[public], parameter[j]] begin[{] if[member[.doCacheCardinalities]] begin[{] return[call[.selectNoCache, parameter[member[.j]]]] else begin[{] None end[}] local_variable[type[int],...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[select] operator[SEP] Keyword[final] Keyword[long] identifier[j] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] operator[!] identifier[doCacheCardinalities] operator[SEP] { Keywo...
public boolean resume(BaasHandler<?> handler) { return BaasBox.getDefaultChecked().resume(this, handler==null?BaasHandler.NOOP:handler); }
class class_name[name] begin[{] method[resume, return_type[type[boolean]], modifier[public], parameter[handler]] begin[{] return[call[BaasBox.getDefaultChecked, parameter[]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[resume] operator[SEP] identifier[BaasHandler] operator[<] operator[?] operator[>] identifier[handler] operator[SEP] { Keyword[return] identifier[BaasBox] operator[SEP] identifier[getDefaultChecked] operator[SEP] operator[SEP] operator[SEP] identifier[resume] operator[S...
public JulianDate add(final JulianDate jds) { int i = this.integer + jds.integer; double f = this.fraction + jds.fraction; return new JulianDate(i, f); }
class class_name[name] begin[{] method[add, return_type[type[JulianDate]], modifier[public], parameter[jds]] begin[{] local_variable[type[int], i] local_variable[type[double], f] return[ClassCreator(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] identifier[JulianDate] identifier[add] operator[SEP] Keyword[final] identifier[JulianDate] identifier[jds] operator[SEP] { Keyword[int] identifier[i] operator[=] Keyword[this] operator[SEP] identifier[integer] operator[+] identifier[jds] operator[SEP] identifier[integer] operator[SEP] Keyword[dou...
@Override public void performKeyStoreAction(Collection<String> modifiedKeyStores) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "performSAFKeyRingAction", new Object[] { modifiedKeyStores }); for (String modifiedKeyStore : modifiedKeyStores) { ...
class class_name[name] begin[{] method[performKeyStoreAction, return_type[void], modifier[public], parameter[modifiedKeyStores]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, par...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[performKeyStoreAction] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[modifiedKeyStores] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTraci...
protected final PrcInvoiceLnGfe<RS, IInvoiceLine<IInvoice>, IInvoice> lazyGetPrcInvoiceLnGfe( final Map<String, Object> pAddParam) throws Exception { @SuppressWarnings("unchecked") PrcInvoiceLnGfe<RS, IInvoiceLine<IInvoice>, IInvoice> proc = (PrcInvoiceLnGfe<RS, IInvoiceLine<IInvoice>, IInvoice>...
class class_name[name] begin[{] method[lazyGetPrcInvoiceLnGfe, return_type[type[PrcInvoiceLnGfe]], modifier[final protected], parameter[pAddParam]] begin[{] local_variable[type[PrcInvoiceLnGfe], proc] if[binary_operation[member[.proc], ==, literal[null]]] begin[{] ...
Keyword[protected] Keyword[final] identifier[PrcInvoiceLnGfe] operator[<] identifier[RS] , identifier[IInvoiceLine] operator[<] identifier[IInvoice] operator[>] , identifier[IInvoice] operator[>] identifier[lazyGetPrcInvoiceLnGfe] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifi...
public boolean discover(){ boolean helloResponse = false; for (int helloRetries = this.retries; helloRetries >= 0; helloRetries--) { List<InetAddress> broadcast = listAllBroadcastAddresses(); if (broadcast == null) return false; for (InetAddress i : broadcast) { ...
class class_name[name] begin[{] method[discover, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], helloResponse] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dim...
Keyword[public] Keyword[boolean] identifier[discover] operator[SEP] operator[SEP] { Keyword[boolean] identifier[helloResponse] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[helloRetries] operator[=] Keyword[this] operator[SEP] identifier[retries] operator[SEP] iden...
public static ImportNodeData createNodeData(NodeData parent, InternalQName name, InternalQName primaryTypeName, int index, int orderNumber) { ImportNodeData nodeData = null; QPath path = QPath.makeChildPath(parent.getQPath(), name, index); nodeData = new ImportNodeData(path, IdGenera...
class class_name[name] begin[{] method[createNodeData, return_type[type[ImportNodeData]], modifier[public static], parameter[parent, name, primaryTypeName, index, orderNumber]] begin[{] local_variable[type[ImportNodeData], nodeData] local_variable[type[QPath], path] assign[membe...
Keyword[public] Keyword[static] identifier[ImportNodeData] identifier[createNodeData] operator[SEP] identifier[NodeData] identifier[parent] , identifier[InternalQName] identifier[name] , identifier[InternalQName] identifier[primaryTypeName] , Keyword[int] identifier[index] , Keyword[int] identifier[orderNumber] ope...
private static boolean checkFieldsWithDataAnnotation(Class<? extends AbstractPlugin> pluginClass) { List<Field> dataFields = new ArrayList<>(); for (Field field : pluginClass.getDeclaredFields()) { if (field.isAnnotationPresent(Plugin.Data.class)) { dataFields.add(field); ...
class class_name[name] begin[{] method[checkFieldsWithDataAnnotation, return_type[type[boolean]], modifier[private static], parameter[pluginClass]] begin[{] local_variable[type[List], dataFields] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arg...
Keyword[private] Keyword[static] Keyword[boolean] identifier[checkFieldsWithDataAnnotation] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[AbstractPlugin] operator[>] identifier[pluginClass] operator[SEP] { identifier[List] operator[<] identifier[Field] operator[>] identifier...
public static void setDefaultJMXDomain (@Nonnull @Nonempty final String sDefaultJMXDomain) { ValueEnforcer.notEmpty (sDefaultJMXDomain, "DefaultJMXDomain"); if (sDefaultJMXDomain.indexOf (':') >= 0 || sDefaultJMXDomain.indexOf (' ') >= 0) throw new IllegalArgumentException ("defaultJMXDomain contains in...
class class_name[name] begin[{] method[setDefaultJMXDomain, return_type[void], modifier[public static], parameter[sDefaultJMXDomain]] begin[{] call[ValueEnforcer.notEmpty, parameter[member[.sDefaultJMXDomain], literal["DefaultJMXDomain"]]] if[binary_operation[binary_operation[ca...
Keyword[public] Keyword[static] Keyword[void] identifier[setDefaultJMXDomain] operator[SEP] annotation[@] identifier[Nonnull] annotation[@] identifier[Nonempty] Keyword[final] identifier[String] identifier[sDefaultJMXDomain] operator[SEP] { identifier[ValueEnforcer] operator[SEP] identifier[notEmpty] operator[SE...
public HomeResources homeResources() { if (home.get() == null) { home.compareAndSet(null, new HomeResourcesImpl(this)); } return home.get(); }
class class_name[name] begin[{] method[homeResources, return_type[type[HomeResources]], modifier[public], parameter[]] begin[{] if[binary_operation[call[home.get, parameter[]], ==, literal[null]]] begin[{] call[home.compareAndSet, parameter[literal[null], ClassCreator(ar...
Keyword[public] identifier[HomeResources] identifier[homeResources] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[home] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[home] operator[SEP] identifier[compareAndSet] opera...
public static Type[] getArgumentTypes(final Method method) { Class[] classes = method.getParameterTypes(); Type[] types = new Type[classes.length]; for (int i = classes.length - 1; i >= 0; --i) { types[i] = getType(classes[i]); } return types; }
class class_name[name] begin[{] method[getArgumentTypes, return_type[type[Type]], modifier[public static], parameter[method]] begin[{] local_variable[type[Class], classes] local_variable[type[Type], types] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expr...
Keyword[public] Keyword[static] identifier[Type] operator[SEP] operator[SEP] identifier[getArgumentTypes] operator[SEP] Keyword[final] identifier[Method] identifier[method] operator[SEP] { identifier[Class] operator[SEP] operator[SEP] identifier[classes] operator[=] identifier[method] operator[SEP] identifier[ge...
@Deprecated protected void handleComputeFields(int julianDay) { int era, year; int[] fields = new int[3]; jdToCE(julianDay, getJDEpochOffset(), fields); // fields[0] eyear // fields[1] month // fields[2] day if (fields[0] <= 0) { era = BCE; ...
class class_name[name] begin[{] method[handleComputeFields, return_type[void], modifier[protected], parameter[julianDay]] begin[{] local_variable[type[int], era] local_variable[type[int], fields] call[.jdToCE, parameter[member[.julianDay], call[.getJDEpochOffset, parameter[]], m...
annotation[@] identifier[Deprecated] Keyword[protected] Keyword[void] identifier[handleComputeFields] operator[SEP] Keyword[int] identifier[julianDay] operator[SEP] { Keyword[int] identifier[era] , identifier[year] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[fields] operator[=] Keyword[new...
protected RegisteredService resolveRegisteredServiceInRequestContext(final RequestContext requestContext) { val resolvedService = resolveServiceFromAuthenticationRequest(requestContext); if (resolvedService != null) { val service = getWebflowEventResolutionConfigurationContext().getServicesM...
class class_name[name] begin[{] method[resolveRegisteredServiceInRequestContext, return_type[type[RegisteredService]], modifier[protected], parameter[requestContext]] begin[{] local_variable[type[val], resolvedService] if[binary_operation[member[.resolvedService], !=, literal[null]]] be...
Keyword[protected] identifier[RegisteredService] identifier[resolveRegisteredServiceInRequestContext] operator[SEP] Keyword[final] identifier[RequestContext] identifier[requestContext] operator[SEP] { identifier[val] identifier[resolvedService] operator[=] identifier[resolveServiceFromAuthenticationRequest] oper...
@Override public Object execute(Rose rose) throws Throwable { InvocationBean inv = rose.getInvocation(); ServletRequest request = inv.getRequest(); // if (request.getCharacterEncoding() == null) { request.setCharacterEncoding("UTF-8"); if (logger.isDebugEnabl...
class class_name[name] begin[{] method[execute, return_type[type[Object]], modifier[public], parameter[rose]] begin[{] local_variable[type[InvocationBean], inv] local_variable[type[ServletRequest], request] if[binary_operation[call[request.getCharacterEncoding, parameter[]], ==,...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[execute] operator[SEP] identifier[Rose] identifier[rose] operator[SEP] Keyword[throws] identifier[Throwable] { identifier[InvocationBean] identifier[inv] operator[=] identifier[rose] operator[SEP] identifier[getInvocation] operator[...
@Override public void delete(IEntityLock lock) throws LockingException { Map m = getLockCache(lock.getEntityType()); synchronized (m) { m.remove(getCacheKey(lock)); } }
class class_name[name] begin[{] method[delete, return_type[void], modifier[public], parameter[lock]] begin[{] local_variable[type[Map], m] SYNCHRONIZED[member[.m]] BEGIN[{] call[m.remove, parameter[call[.getCacheKey, parameter[member[.lock]]]]] END[}] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[delete] operator[SEP] identifier[IEntityLock] identifier[lock] operator[SEP] Keyword[throws] identifier[LockingException] { identifier[Map] identifier[m] operator[=] identifier[getLockCache] operator[SEP] identifier[lock] operator[SEP] i...
public final void remove(final int index) { AbstractItem removedItem = items.remove(index); if (removedItem instanceof Item && ((Item) removedItem).getIcon() != null) { iconCount--; } else if (removedItem instanceof Divider) { dividerCount--; } rawItems ...
class class_name[name] begin[{] method[remove, return_type[void], modifier[final public], parameter[index]] begin[{] local_variable[type[AbstractItem], removedItem] if[binary_operation[binary_operation[member[.removedItem], instanceof, type[Item]], &&, binary_operation[Cast(expression=M...
Keyword[public] Keyword[final] Keyword[void] identifier[remove] operator[SEP] Keyword[final] Keyword[int] identifier[index] operator[SEP] { identifier[AbstractItem] identifier[removedItem] operator[=] identifier[items] operator[SEP] identifier[remove] operator[SEP] identifier[index] operator[SEP] operator[SEP] K...
public synchronized void setCms(CmsObject cms) { if (m_perThreadCmsObject == null) { m_perThreadCmsObject = new ThreadLocal<CmsObject>(); } m_perThreadCmsObject.set(cms); }
class class_name[name] begin[{] method[setCms, return_type[void], modifier[synchronized public], parameter[cms]] begin[{] if[binary_operation[member[.m_perThreadCmsObject], ==, literal[null]]] begin[{] assign[member[.m_perThreadCmsObject], ClassCreator(arguments=[], body...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[setCms] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] { Keyword[if] operator[SEP] identifier[m_perThreadCmsObject] operator[==] Other[null] operator[SEP] { identifier[m_perThreadCmsObject] operator[=] Keyword[new] ident...
@Override public void getCommentsByApplication(SocializeSession session, int startIndex, int endIndex, CommentListener listener) { listAsync(session, ENDPOINT, null, null, null, startIndex, endIndex, listener); }
class class_name[name] begin[{] method[getCommentsByApplication, return_type[void], modifier[public], parameter[session, startIndex, endIndex, listener]] begin[{] call[.listAsync, parameter[member[.session], member[.ENDPOINT], literal[null], literal[null], literal[null], member[.startIndex], me...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[getCommentsByApplication] operator[SEP] identifier[SocializeSession] identifier[session] , Keyword[int] identifier[startIndex] , Keyword[int] identifier[endIndex] , identifier[CommentListener] identifier[listener] operator[SEP] { iden...
public void init(EntityConfig config) { // Instance Members. this.response = (Phrase) config.getValue(SOURCE); this.resource = (Phrase) config.getValue(RESOURCE); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[config]] begin[{] assign[THIS[member[None.response]], Cast(expression=MethodInvocation(arguments=[MemberReference(member=SOURCE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], mem...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[EntityConfig] identifier[config] operator[SEP] { Keyword[this] operator[SEP] identifier[response] operator[=] operator[SEP] identifier[Phrase] operator[SEP] identifier[config] operator[SEP] identifier[getValue] operator[SEP] identifier[SOURC...
private static <T> boolean quickSort(List<T> list, int l, int r, Comparator<? super T> comparator, SortStatistics stats, int currentRecursion, int maxRecursion) { int M=4; if((r-l)>M) { int i=(r+l)/2; if(compare(list, l, i, comparator, stats)>0) swap(list, l, i, stats); // Tri-Median Methode! if(compare...
class class_name[name] begin[{] method[quickSort, return_type[type[boolean]], modifier[private static], parameter[list, l, r, comparator, stats, currentRecursion, maxRecursion]] begin[{] local_variable[type[int], M] if[binary_operation[binary_operation[member[.r], -, member[.l]], >, mem...
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[quickSort] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[list] , Keyword[int] identifier[l] , Keyword[int] identifier[r] , identifier[Comparator] operator[<] operator[?] Keyword[super]...
private void setButtonsVisibleForPreHC() { if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) { ViewHelper.setAlpha(mMidContainer, 1.0f); ViewHelper.setAlpha(mLeftContainer, 1.0f); ViewHelper.setAlpha(mRightContainer, 1.0f); } }
class class_name[name] begin[{] method[setButtonsVisibleForPreHC, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[android.os.Build.VERSION.SDK_INT], <, member[Build.VERSION_CODES.HONEYCOMB]]] begin[{] call[ViewHelper.setAlpha, param...
Keyword[private] Keyword[void] identifier[setButtonsVisibleForPreHC] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[android] operator[SEP] identifier[os] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION] operator[SEP] identifier[SDK_INT] operator[<] identifier[Build] operator[...
public static boolean isSystemHeaderAndNotGruu(ModifiableRule modifiableRule, Parameterable parameterable) { boolean isSettingGruu = false; if(modifiableRule == ModifiableRule.ContactSystem && (parameterable.getParameter("gruu") != null || parameterable.getParameter("gr") != null)) { isSettingGruu = tru...
class class_name[name] begin[{] method[isSystemHeaderAndNotGruu, return_type[type[boolean]], modifier[public static], parameter[modifiableRule, parameterable]] begin[{] local_variable[type[boolean], isSettingGruu] if[binary_operation[binary_operation[member[.modifiableRule], ==, member[...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isSystemHeaderAndNotGruu] operator[SEP] identifier[ModifiableRule] identifier[modifiableRule] , identifier[Parameterable] identifier[parameterable] operator[SEP] { Keyword[boolean] identifier[isSettingGruu] operator[=] literal[boolean] operator[SEP] Ke...
protected void renderTableFooterRow(FacesContext facesContext, ResponseWriter writer, UIComponent component, UIComponent footerFacet, String footerStyleClass, int colspan) throws IOException { renderTableHeaderOrFooterRow(facesContext, writer, component, footerFacet, footerStyleClass, HTML.TD_EL...
class class_name[name] begin[{] method[renderTableFooterRow, return_type[void], modifier[protected], parameter[facesContext, writer, component, footerFacet, footerStyleClass, colspan]] begin[{] call[.renderTableHeaderOrFooterRow, parameter[member[.facesContext], member[.writer], member[.compone...
Keyword[protected] Keyword[void] identifier[renderTableFooterRow] operator[SEP] identifier[FacesContext] identifier[facesContext] , identifier[ResponseWriter] identifier[writer] , identifier[UIComponent] identifier[component] , identifier[UIComponent] identifier[footerFacet] , identifier[String] identifier[footerSt...
public List<LibertyFeature> getRequiredFeatures(LibertyFeature feature, Map<String, LibertyFeature> allFeatures) throws MavenRepoGeneratorException { List<LibertyFeature> dependencies = new ArrayList<LibertyFeature>(); Map<String, Collection<String>> requiredFeaturesWithTolerates = feature.getRequiredFeaturesWit...
class class_name[name] begin[{] method[getRequiredFeatures, return_type[type[List]], modifier[public], parameter[feature, allFeatures]] begin[{] local_variable[type[List], dependencies] local_variable[type[Map], requiredFeaturesWithTolerates] if[binary_operation[member[.required...
Keyword[public] identifier[List] operator[<] identifier[LibertyFeature] operator[>] identifier[getRequiredFeatures] operator[SEP] identifier[LibertyFeature] identifier[feature] , identifier[Map] operator[<] identifier[String] , identifier[LibertyFeature] operator[>] identifier[allFeatures] operator[SEP] Keyword[throw...
public static br_broker[] reboot(nitro_service client, br_broker[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); if(resources.length == 1) return ((br_broker[]) resources[0].perform_operation(client, "reboot")); return ((br_broker[]) perform_o...
class class_name[name] begin[{] method[reboot, return_type[type[br_broker]], modifier[public static], parameter[client, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[br_broker] operator[SEP] operator[SEP] identifier[reboot] operator[SEP] identifier[nitro_service] identifier[client] , identifier[br_broker] operator[SEP] operator[SEP] identifier[resources] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[SEP...
public CmsProject createProject( String name, String description, String groupname, String managergroupname, CmsProject.CmsProjectType projecttype) throws CmsException { return m_securityManager.createProject(m_context, name, description, groupname, managergroupname,...
class class_name[name] begin[{] method[createProject, return_type[type[CmsProject]], modifier[public], parameter[name, description, groupname, managergroupname, projecttype]] begin[{] return[call[m_securityManager.createProject, parameter[member[.m_context], member[.name], member[.description], member[...
Keyword[public] identifier[CmsProject] identifier[createProject] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[description] , identifier[String] identifier[groupname] , identifier[String] identifier[managergroupname] , identifier[CmsProject] operator[SEP] identifier[CmsProjectTyp...
public final void close () throws IOException { LOGGER.info("Closing was requested."); for (Connection c : connections) { c.close(); } connections.clear(); // stop session task thread factory.closedSession(this); executor.shutdown(); }
class class_name[name] begin[{] method[close, return_type[void], modifier[final public], parameter[]] begin[{] call[LOGGER.info, parameter[literal["Closing was requested."]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argumen...
Keyword[public] Keyword[final] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[LOGGER] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Connection] identifier[c] operator...
private static void closeConnection(Connection connection, GuacamoleStatus guacStatus) { closeConnection(connection, guacStatus.getGuacamoleStatusCode(), guacStatus.getWebSocketCode()); }
class class_name[name] begin[{] method[closeConnection, return_type[void], modifier[private static], parameter[connection, guacStatus]] begin[{] call[.closeConnection, parameter[member[.connection], call[guacStatus.getGuacamoleStatusCode, parameter[]], call[guacStatus.getWebSocketCode, paramete...
Keyword[private] Keyword[static] Keyword[void] identifier[closeConnection] operator[SEP] identifier[Connection] identifier[connection] , identifier[GuacamoleStatus] identifier[guacStatus] operator[SEP] { identifier[closeConnection] operator[SEP] identifier[connection] , identifier[guacStatus] operator[SEP] ide...
protected void setupForExpandedWar() { webapp.setServerClasses(getServerClasses()); webapp.setDescriptor(webapp + "/WEB-INF/web.xml"); webapp.setResourceBase(resourceBase); webapp.setParentLoaderPriority(false); }
class class_name[name] begin[{] method[setupForExpandedWar, return_type[void], modifier[protected], parameter[]] begin[{] call[webapp.setServerClasses, parameter[call[.getServerClasses, parameter[]]]] call[webapp.setDescriptor, parameter[binary_operation[member[.webapp], +, lite...
Keyword[protected] Keyword[void] identifier[setupForExpandedWar] operator[SEP] operator[SEP] { identifier[webapp] operator[SEP] identifier[setServerClasses] operator[SEP] identifier[getServerClasses] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[webapp] operator[SEP] identifier[setDescriptor...
public static LocalDateRangeRandomizer aNewLocalDateRangeRandomizer(final LocalDate min, final LocalDate max, final long seed) { return new LocalDateRangeRandomizer(min, max, seed); }
class class_name[name] begin[{] method[aNewLocalDateRangeRandomizer, return_type[type[LocalDateRangeRandomizer]], modifier[public static], parameter[min, max, seed]] begin[{] return[ClassCreator(arguments=[MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
Keyword[public] Keyword[static] identifier[LocalDateRangeRandomizer] identifier[aNewLocalDateRangeRandomizer] operator[SEP] Keyword[final] identifier[LocalDate] identifier[min] , Keyword[final] identifier[LocalDate] identifier[max] , Keyword[final] Keyword[long] identifier[seed] operator[SEP] { Keyword[return]...
public final double getMeanDeviation() { double mean = getArithmeticMean(); double diffs = 0; for (int i = 0; i < dataSetSize; i++) { diffs += Math.abs(mean - dataSet[i]); } return diffs / dataSetSize; }
class class_name[name] begin[{] method[getMeanDeviation, return_type[type[double]], modifier[final public], parameter[]] begin[{] local_variable[type[double], mean] local_variable[type[double], diffs] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expressio...
Keyword[public] Keyword[final] Keyword[double] identifier[getMeanDeviation] operator[SEP] operator[SEP] { Keyword[double] identifier[mean] operator[=] identifier[getArithmeticMean] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[diffs] operator[=] Other[0] operator[SEP] Keyword[for] operator...
protected static String join(final Collection<String> elements, final String joinSeparator) { String separator = ","; if (elements == null) { return null; } if (joinSeparator != null) { separator = joinSeparator; } StringBuilder buffer = new String...
class class_name[name] begin[{] method[join, return_type[type[String]], modifier[static protected], parameter[elements, joinSeparator]] begin[{] local_variable[type[String], separator] if[binary_operation[member[.elements], ==, literal[null]]] begin[{] return[literal[null]] ...
Keyword[protected] Keyword[static] identifier[String] identifier[join] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[String] operator[>] identifier[elements] , Keyword[final] identifier[String] identifier[joinSeparator] operator[SEP] { identifier[String] identifier[separator] operat...