code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private static void addProperty ( final Map<String, String> props, final String key, final String value ) { if ( value == null ) { return; } props.put ( key, value ); }
class class_name[name] begin[{] method[addProperty, return_type[void], modifier[private static], parameter[props, key, value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] call[props....
Keyword[private] Keyword[static] Keyword[void] identifier[addProperty] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[props] , Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[value] operator[SEP]...
protected Paint createHorizontalGradient(Shape s, FourColors colors) { Rectangle2D bounds = s.getBounds2D(); float x = (float) bounds.getX(); float y = (float) bounds.getY(); float w = (float) bounds.getWidth(); float h = (float) bounds...
class class_name[name] begin[{] method[createHorizontalGradient, return_type[type[Paint]], modifier[protected], parameter[s, colors]] begin[{] local_variable[type[Rectangle2D], bounds] local_variable[type[float], x] local_variable[type[float], y] local_variable[type[float], w] ...
Keyword[protected] identifier[Paint] identifier[createHorizontalGradient] operator[SEP] identifier[Shape] identifier[s] , identifier[FourColors] identifier[colors] operator[SEP] { identifier[Rectangle2D] identifier[bounds] operator[=] identifier[s] operator[SEP] identifier[getBounds2D] operator[SEP] operator[SE...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.MGORG__RG_LENGTH: return getRGLength(); case AfplibPackage.MGORG__TRIPLETS: return getTriplets(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=MGORG__RG_LENGTH, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selec...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
@WillCloseWhenClosed public static void sleepFor(long timeout, TimeUnit unit) { try { unit.sleep(timeout); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } }
class class_name[name] begin[{] method[sleepFor, return_type[void], modifier[public static], parameter[timeout, unit]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=timeout, postfix_operators=[], prefix_operators=[], qualifier=, selectors...
annotation[@] identifier[WillCloseWhenClosed] Keyword[public] Keyword[static] Keyword[void] identifier[sleepFor] operator[SEP] Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] { Keyword[try] { identifier[unit] operator[SEP] identifier[sleep] operator[SEP] identi...
public static PublicKey deserializePublicKey(byte[] keyData, String algorithm) { LOGGER.trace("deserialize public key from data using algorithm \"{}\"", algorithm); X509EncodedKeySpec pubSpec = new X509EncodedKeySpec(keyData); try { KeyFactory keyFactory = KeyFactory.getInstance(algo...
class class_name[name] begin[{] method[deserializePublicKey, return_type[type[PublicKey]], modifier[public static], parameter[keyData, algorithm]] begin[{] call[LOGGER.trace, parameter[literal["deserialize public key from data using algorithm \"{}\""], member[.algorithm]]] local_variabl...
Keyword[public] Keyword[static] identifier[PublicKey] identifier[deserializePublicKey] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[keyData] , identifier[String] identifier[algorithm] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[trace] operator[SEP] literal[String] , identi...
public CharSequence format(Monetary monetary) { // preparation int maxDecimals = minDecimals; if (decimalGroups != null) for (int group : decimalGroups) maxDecimals += group; int smallestUnitExponent = monetary.smallestUnitExponent(); checkState(maxDec...
class class_name[name] begin[{] method[format, return_type[type[CharSequence]], modifier[public], parameter[monetary]] begin[{] local_variable[type[int], maxDecimals] if[binary_operation[member[.decimalGroups], !=, literal[null]]] begin[{] ForStatement(body=StatementExpression(expressio...
Keyword[public] identifier[CharSequence] identifier[format] operator[SEP] identifier[Monetary] identifier[monetary] operator[SEP] { Keyword[int] identifier[maxDecimals] operator[=] identifier[minDecimals] operator[SEP] Keyword[if] operator[SEP] identifier[decimalGroups] operator[!=] Other[null] operator[SEP] Key...
static void initializeExtension(ExtensionRegistry extensionRegistry, String module, ManagementResourceRegistration rootRegistration, ExtensionRegistryType extensionRegistryType) { try { boolean unknownModule = false; ...
class class_name[name] begin[{] method[initializeExtension, return_type[void], modifier[static], parameter[extensionRegistry, module, rootRegistration, extensionRegistryType]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initialize...
Keyword[static] Keyword[void] identifier[initializeExtension] operator[SEP] identifier[ExtensionRegistry] identifier[extensionRegistry] , identifier[String] identifier[module] , identifier[ManagementResourceRegistration] identifier[rootRegistration] , identifier[ExtensionRegistryType] identifier[extensionRegistryTyp...
public Object instantiate(String className, ObjectName loaderName) throws ReflectionException, MBeanException, InstanceNotFoundException { return delegate.instantiate(className, loaderName); }
class class_name[name] begin[{] method[instantiate, return_type[type[Object]], modifier[public], parameter[className, loaderName]] begin[{] return[call[delegate.instantiate, parameter[member[.className], member[.loaderName]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[instantiate] operator[SEP] identifier[String] identifier[className] , identifier[ObjectName] identifier[loaderName] operator[SEP] Keyword[throws] identifier[ReflectionException] , identifier[MBeanException] , identifier[InstanceNotFoundException] { Keyword[return]...
@Override public void registerNoTtl(final String name) { logger.info("HealthService::register() {} ", name); final NodeHealthStat nodeHealthStat = new NodeHealthStat(name); nodeHealthStat.setStatus(HealthStatus.PASS); serviceHealthStatMap.put(name, nodeHealthStat); super.inc...
class class_name[name] begin[{] method[registerNoTtl, return_type[void], modifier[public], parameter[name]] begin[{] call[logger.info, parameter[literal["HealthService::register() {} "], member[.name]]] local_variable[type[NodeHealthStat], nodeHealthStat] call[nodeHealth...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[registerNoTtl] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[name] operator[SEP] operator[SEP] Keyword[final...
private MaccsKey[] keys(final IChemObjectBuilder builder) throws CDKException { MaccsKey[] result = keys; if (result == null) { synchronized (lock) { result = keys; if (result == null) { try { keys = result = readKey...
class class_name[name] begin[{] method[keys, return_type[type[MaccsKey]], modifier[private], parameter[builder]] begin[{] local_variable[type[MaccsKey], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] SYNCHRONIZED[member[.lock]] BEGIN[{]...
Keyword[private] identifier[MaccsKey] operator[SEP] operator[SEP] identifier[keys] operator[SEP] Keyword[final] identifier[IChemObjectBuilder] identifier[builder] operator[SEP] Keyword[throws] identifier[CDKException] { identifier[MaccsKey] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[ke...
public SizeableLinkedList<WAMInstruction> compileBodyCall(Functor expression, boolean isFirstBody, boolean isLastBody, boolean chainRule, int permVarsRemaining) { // Used to build up the results in. SizeableLinkedList<WAMInstruction> instructions = new SizeableLinkedList<WAMInstruction>(); ...
class class_name[name] begin[{] method[compileBodyCall, return_type[type[SizeableLinkedList]], modifier[public], parameter[expression, isFirstBody, isLastBody, chainRule, permVarsRemaining]] begin[{] local_variable[type[SizeableLinkedList], instructions] if[member[.isLastBody]] begin[{]...
Keyword[public] identifier[SizeableLinkedList] operator[<] identifier[WAMInstruction] operator[>] identifier[compileBodyCall] operator[SEP] identifier[Functor] identifier[expression] , Keyword[boolean] identifier[isFirstBody] , Keyword[boolean] identifier[isLastBody] , Keyword[boolean] identifier[chainRule] , Keywo...
public synchronized boolean isRateLimited() { final double rate = TOKEN_BUCKET_RATE.get(); final double window = TOKEN_BUCKET_WINDOW.get(); final long current = System.currentTimeMillis(); final double timePassed = current - tkBktLastCheckTime; tkBktLastCheckTime = current; ...
class class_name[name] begin[{] method[isRateLimited, return_type[type[boolean]], modifier[synchronized public], parameter[]] begin[{] local_variable[type[double], rate] local_variable[type[double], window] local_variable[type[long], current] local_variable[type[double], timePas...
Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[isRateLimited] operator[SEP] operator[SEP] { Keyword[final] Keyword[double] identifier[rate] operator[=] identifier[TOKEN_BUCKET_RATE] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[double] identifie...
public static int poolSize() { int poolSize = 0; for (ExecutorService pool : EXECUTORS) { if (pool instanceof ThreadPoolExecutor) { poolSize += ((ThreadPoolExecutor) pool).getPoolSize(); } } for (ExecutorService pool : EXPLICIT_EXECUTORS) { ...
class class_name[name] begin[{] method[poolSize, return_type[type[int]], modifier[public static], parameter[]] begin[{] local_variable[type[int], poolSize] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=pool, postfi...
Keyword[public] Keyword[static] Keyword[int] identifier[poolSize] operator[SEP] operator[SEP] { Keyword[int] identifier[poolSize] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[ExecutorService] identifier[pool] operator[:] identifier[EXECUTORS] operator[SEP] { Keyword[if] op...
public static Method tryGetMethod(String id) { if (id.length() != NAME_LEN) { // we use it to fast discard the request without doing map lookup return null; } return idToMethod.get(id); }
class class_name[name] begin[{] method[tryGetMethod, return_type[type[Method]], modifier[public static], parameter[id]] begin[{] if[binary_operation[call[id.length, parameter[]], !=, member[.NAME_LEN]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Method] identifier[tryGetMethod] operator[SEP] identifier[String] identifier[id] operator[SEP] { Keyword[if] operator[SEP] identifier[id] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[!=] identifier[NAME_LEN] operator[SEP] { Keyword[re...
@Override public EEnum getIfcProjectedOrTrueLengthEnum() { if (ifcProjectedOrTrueLengthEnumEEnum == null) { ifcProjectedOrTrueLengthEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1039); } return ifcProjectedOrTrueLengthEnumEEnum; }
class class_name[name] begin[{] method[getIfcProjectedOrTrueLengthEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcProjectedOrTrueLengthEnumEEnum], ==, literal[null]]] begin[{] assign[member[.ifcProjectedOrTrueLengthE...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getIfcProjectedOrTrueLengthEnum] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcProjectedOrTrueLengthEnumEEnum] operator[==] Other[null] operator[SEP] { identifier[ifcProjectedOrTrueLengthEnumEEnum] ...
public static Credential credential( AccessTokenProvider accessTokenProvider, Collection<String> scopes) throws IOException, GeneralSecurityException { return getCredentialFromAccessTokenProvider(accessTokenProvider, scopes); }
class class_name[name] begin[{] method[credential, return_type[type[Credential]], modifier[public static], parameter[accessTokenProvider, scopes]] begin[{] return[call[.getCredentialFromAccessTokenProvider, parameter[member[.accessTokenProvider], member[.scopes]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Credential] identifier[credential] operator[SEP] identifier[AccessTokenProvider] identifier[accessTokenProvider] , identifier[Collection] operator[<] identifier[String] operator[>] identifier[scopes] operator[SEP] Keyword[throws] identifier[IOException] , identifier[GeneralS...
public ServiceRefHandlerChainType<ServiceRefHandlerChainsType<T>> getOrCreateHandlerChain() { List<Node> nodeList = childNode.get("handler-chain"); if (nodeList != null && nodeList.size() > 0) { return new ServiceRefHandlerChainTypeImpl<ServiceRefHandlerChainsType<T>>(this, "handler-chain...
class class_name[name] begin[{] method[getOrCreateHandlerChain, return_type[type[ServiceRefHandlerChainType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operation[ca...
Keyword[public] identifier[ServiceRefHandlerChainType] operator[<] identifier[ServiceRefHandlerChainsType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateHandlerChain] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList] operator[=]...
private static String normalizePath(String path) { path = PathUtils.removeTrailingSlash(path); path = PathUtils.addLeadingSlash(path); return path; }
class class_name[name] begin[{] method[normalizePath, return_type[type[String]], modifier[private static], parameter[path]] begin[{] assign[member[.path], call[PathUtils.removeTrailingSlash, parameter[member[.path]]]] assign[member[.path], call[PathUtils.addLeadingSlash, paramet...
Keyword[private] Keyword[static] identifier[String] identifier[normalizePath] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[path] operator[=] identifier[PathUtils] operator[SEP] identifier[removeTrailingSlash] operator[SEP] identifier[path] operator[SEP] operator[SEP] identifier[pa...
@Override public CommerceWarehouse findByG_P_First(long groupId, boolean primary, OrderByComparator<CommerceWarehouse> orderByComparator) throws NoSuchWarehouseException { CommerceWarehouse commerceWarehouse = fetchByG_P_First(groupId, primary, orderByComparator); if (commerceWarehouse != null) { retur...
class class_name[name] begin[{] method[findByG_P_First, return_type[type[CommerceWarehouse]], modifier[public], parameter[groupId, primary, orderByComparator]] begin[{] local_variable[type[CommerceWarehouse], commerceWarehouse] if[binary_operation[member[.commerceWarehouse], !=, literal...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceWarehouse] identifier[findByG_P_First] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[primary] , identifier[OrderByComparator] operator[<] identifier[CommerceWarehouse] operator[>] identifier[orderByComparator] operat...
public static String getRpcUrl( String hostname, int port, String endpointName, HighAvailabilityServicesUtils.AddressResolution addressResolution, AkkaProtocol akkaProtocol) throws UnknownHostException { checkNotNull(hostname, "hostname is null"); checkNotNull(endpointName, "endpointName is null"); ...
class class_name[name] begin[{] method[getRpcUrl, return_type[type[String]], modifier[public static], parameter[hostname, port, endpointName, addressResolution, akkaProtocol]] begin[{] call[.checkNotNull, parameter[member[.hostname], literal["hostname is null"]]] call[.checkNotN...
Keyword[public] Keyword[static] identifier[String] identifier[getRpcUrl] operator[SEP] identifier[String] identifier[hostname] , Keyword[int] identifier[port] , identifier[String] identifier[endpointName] , identifier[HighAvailabilityServicesUtils] operator[SEP] identifier[AddressResolution] identifier[addressResolu...
public boolean isInSphere(Vector origin, double radius) { return (NumberConversions.square(origin.x - x) + NumberConversions.square(origin.y - y) + NumberConversions.square(origin.z - z)) <= NumberConversions.square(radius); }
class class_name[name] begin[{] method[isInSphere, return_type[type[boolean]], modifier[public], parameter[origin, radius]] begin[{] return[binary_operation[binary_operation[binary_operation[call[NumberConversions.square, parameter[binary_operation[member[origin.x], -, member[.x]]]], +, call[NumberConv...
Keyword[public] Keyword[boolean] identifier[isInSphere] operator[SEP] identifier[Vector] identifier[origin] , Keyword[double] identifier[radius] operator[SEP] { Keyword[return] operator[SEP] identifier[NumberConversions] operator[SEP] identifier[square] operator[SEP] identifier[origin] operator[SEP] identifier[...
public void addTangoDataReadyListener(ITangoDataReadyListener listener, String attrName, boolean stateless) throws DevFailed { addTangoDataReadyListener(listener, attrName, new String[0], stateless); }
class class_name[name] begin[{] method[addTangoDataReadyListener, return_type[void], modifier[public], parameter[listener, attrName, stateless]] begin[{] call[.addTangoDataReadyListener, parameter[member[.listener], member[.attrName], ArrayCreator(dimensions=[Literal(postfix_operators=[], prefi...
Keyword[public] Keyword[void] identifier[addTangoDataReadyListener] operator[SEP] identifier[ITangoDataReadyListener] identifier[listener] , identifier[String] identifier[attrName] , Keyword[boolean] identifier[stateless] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[addTangoDataReadyListene...
public ApiResponse<List<BloodlinesResponse>> getUniverseBloodlinesWithHttpInfo(String acceptLanguage, String datasource, String ifNoneMatch, String language) throws ApiException { com.squareup.okhttp.Call call = getUniverseBloodlinesValidateBeforeCall(acceptLanguage, datasource, ifNo...
class class_name[name] begin[{] method[getUniverseBloodlinesWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[acceptLanguage, datasource, ifNoneMatch, language]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[a...
Keyword[public] identifier[ApiResponse] operator[<] identifier[List] operator[<] identifier[BloodlinesResponse] operator[>] operator[>] identifier[getUniverseBloodlinesWithHttpInfo] operator[SEP] identifier[String] identifier[acceptLanguage] , identifier[String] identifier[datasource] , identifier[String] identifier[...
protected void _computeTypes(SarlBreakExpression object, ITypeComputationState state) { final LightweightTypeReference primitiveVoid = getPrimitiveVoid(state); state.acceptActualType(primitiveVoid); }
class class_name[name] begin[{] method[_computeTypes, return_type[void], modifier[protected], parameter[object, state]] begin[{] local_variable[type[LightweightTypeReference], primitiveVoid] call[state.acceptActualType, parameter[member[.primitiveVoid]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[_computeTypes] operator[SEP] identifier[SarlBreakExpression] identifier[object] , identifier[ITypeComputationState] identifier[state] operator[SEP] { Keyword[final] identifier[LightweightTypeReference] identifier[primitiveVoid] operator[=] identifier[getPrimitiveVoid]...
@Reference(authors = "Erich Schubert, Arthur Zimek, Hans-Peter Kriegel", // title = "Geodetic Distance Queries on R-Trees for Indexing Geographic Data", // booktitle = "Int. Symp. Advances in Spatial and Temporal Databases (SSTD'2013)", // url = "https://doi.org/10.1007/978-3-642-40235-7_9", // ...
class class_name[name] begin[{] method[latlngMinDistDeg, return_type[type[double]], modifier[public static], parameter[plat, plng, rminlat, rminlng, rmaxlat, rmaxlng]] begin[{] return[call[.latlngMinDistRad, parameter[call[.deg2rad, parameter[member[.plat]]], call[.deg2rad, parameter[member[.plng]]], c...
annotation[@] identifier[Reference] operator[SEP] identifier[authors] operator[=] literal[String] , identifier[title] operator[=] literal[String] , identifier[booktitle] operator[=] literal[String] , identifier[url] operator[=] literal[String] , identifier[bibkey] operator[=] literal[String] operator[SEP] Keyword[p...
private static void queueTask(long threadId, Runnable toRun){ assert control.isHeldByCurrentThread(); assert threadId != currentThread; //(get queue) if(!threadedLogQueue.containsKey(threadId)){ threadedLogQueue.put(threadId, new LinkedList<Runnable>()); } Queue<Runnable> threadLogQ...
class class_name[name] begin[{] method[queueTask, return_type[void], modifier[private static], parameter[threadId, toRun]] begin[{] AssertStatement(condition=MethodInvocation(arguments=[], member=isHeldByCurrentThread, postfix_operators=[], prefix_operators=[], qualifier=control, selectors=[], type_arg...
Keyword[private] Keyword[static] Keyword[void] identifier[queueTask] operator[SEP] Keyword[long] identifier[threadId] , identifier[Runnable] identifier[toRun] operator[SEP] { Keyword[assert] identifier[control] operator[SEP] identifier[isHeldByCurrentThread] operator[SEP] operator[SEP] operator[SEP] Keyword[ass...
public static boolean[] removeAllOccurrences(final boolean[] a, final boolean element) { if (N.isNullOrEmpty(a)) { return N.EMPTY_BOOLEAN_ARRAY; } final boolean[] copy = a.clone(); int idx = 0; for (int i = 0, len = a.length; i < len; i++) { if ...
class class_name[name] begin[{] method[removeAllOccurrences, return_type[type[boolean]], modifier[public static], parameter[a, element]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.a]]]] begin[{] return[member[N.EMPTY_BOOLEAN_ARRAY]] else begin[{] None end[}]...
Keyword[public] Keyword[static] Keyword[boolean] operator[SEP] operator[SEP] identifier[removeAllOccurrences] operator[SEP] Keyword[final] Keyword[boolean] operator[SEP] operator[SEP] identifier[a] , Keyword[final] Keyword[boolean] identifier[element] operator[SEP] { Keyword[if] operator[SEP] identifier[N] oper...
private Map<String, Object> getContentForNav(Map<String, Object> document) { Map<String, Object> navDocument = new HashMap<>(); navDocument.put(Attributes.NO_EXTENSION_URI, document.get(Attributes.NO_EXTENSION_URI)); navDocument.put(Attributes.URI, document.get(Attributes.URI)); navDocum...
class class_name[name] begin[{] method[getContentForNav, return_type[type[Map]], modifier[private], parameter[document]] begin[{] local_variable[type[Map], navDocument] call[navDocument.put, parameter[member[Attributes.NO_EXTENSION_URI], call[document.get, parameter[member[Attributes.NO...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getContentForNav] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[document] operator[SEP] { identifier[Map] operator[<] identifier[String] , iden...
public <T> TypedStringConverter<T> findTypedConverter(final Class<T> cls) { TypedStringConverter<T> conv = findConverterQuiet(cls); if (conv == null) { throw new IllegalStateException("No registered converter found: " + cls); } return conv; }
class class_name[name] begin[{] method[findTypedConverter, return_type[type[TypedStringConverter]], modifier[public], parameter[cls]] begin[{] local_variable[type[TypedStringConverter], conv] if[binary_operation[member[.conv], ==, literal[null]]] begin[{] ThrowStatement(expr...
Keyword[public] operator[<] identifier[T] operator[>] identifier[TypedStringConverter] operator[<] identifier[T] operator[>] identifier[findTypedConverter] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[cls] operator[SEP] { identifier[TypedStringConverter] operato...
public void copyProviderDataToBuilder(TemplateBuilder builder, TemplateBuilderDataProvider templateBuilderDataProvider) { PageSize size = templateBuilderDataProvider.getPageSize(); if (templateBuilderDataProvider.isLandscape()) { builder.setPageHeight(size.getWidth()); builder.setPageWidth(size.ge...
class class_name[name] begin[{] method[copyProviderDataToBuilder, return_type[void], modifier[public], parameter[builder, templateBuilderDataProvider]] begin[{] local_variable[type[PageSize], size] if[call[templateBuilderDataProvider.isLandscape, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[copyProviderDataToBuilder] operator[SEP] identifier[TemplateBuilder] identifier[builder] , identifier[TemplateBuilderDataProvider] identifier[templateBuilderDataProvider] operator[SEP] { identifier[PageSize] identifier[size] operator[=] identifier[templateBuilderDataProv...
public EmbedBuilder addField(MessageEmbed.Field field) { return field == null ? this : addField(field.getName(), field.getValue(), field.isInline()); }
class class_name[name] begin[{] method[addField, return_type[type[EmbedBuilder]], modifier[public], parameter[field]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal...
Keyword[public] identifier[EmbedBuilder] identifier[addField] operator[SEP] identifier[MessageEmbed] operator[SEP] identifier[Field] identifier[field] operator[SEP] { Keyword[return] identifier[field] operator[==] Other[null] operator[?] Keyword[this] operator[:] identifier[addField] operator[SEP] identifier[fi...
protected ImageView getIcon(final String picturePath) { ImageView iv = null; if (picturePath == null) { iv = new ImageView(new Image(DEFAULT_ICON)); } else { iv = new ImageView(new Image(picturePath)); } iv.setPreserveRatio(true); iv.setFitHeight(20); return iv; }
class class_name[name] begin[{] method[getIcon, return_type[type[ImageView]], modifier[protected], parameter[picturePath]] begin[{] local_variable[type[ImageView], iv] if[binary_operation[member[.picturePath], ==, literal[null]]] begin[{] assign[member[.iv], Clas...
Keyword[protected] identifier[ImageView] identifier[getIcon] operator[SEP] Keyword[final] identifier[String] identifier[picturePath] operator[SEP] { identifier[ImageView] identifier[iv] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[picturePath] operator[==] Other[null] operator[SEP] ...
public DerefQueryNode createDerefQueryNode(QueryNode parent, InternalQName nameTest, boolean descendants) { return new DerefQueryNode(parent, nameTest, descendants); }
class class_name[name] begin[{] method[createDerefQueryNode, return_type[type[DerefQueryNode]], modifier[public], parameter[parent, nameTest, descendants]] begin[{] return[ClassCreator(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Member...
Keyword[public] identifier[DerefQueryNode] identifier[createDerefQueryNode] operator[SEP] identifier[QueryNode] identifier[parent] , identifier[InternalQName] identifier[nameTest] , Keyword[boolean] identifier[descendants] operator[SEP] { Keyword[return] Keyword[new] identifier[DerefQueryNode] operator[SEP] id...
@SuppressWarnings("unchecked") private List<File> getI18nSourceFiles(File sourceDirectory) throws IOException { if (i18nSourceFiles == null) { if (!sourceDirectory.isDirectory()) { i18nSourceFiles = Collections.emptyList(); } else { // get list of source files String inc...
class class_name[name] begin[{] method[getI18nSourceFiles, return_type[type[List]], modifier[private], parameter[sourceDirectory]] begin[{] if[binary_operation[member[.i18nSourceFiles], ==, literal[null]]] begin[{] if[call[sourceDirectory.isDirectory, parameter[]]] begin...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[List] operator[<] identifier[File] operator[>] identifier[getI18nSourceFiles] operator[SEP] identifier[File] identifier[sourceDirectory] operator[SEP] Keyword[throws] identifier[IOException] { Keywo...
public void setStringIfNotEmpty(@NotNull final String key, @Nullable final String value) { if (null != value && !value.isEmpty()) { setString(key, value); } }
class class_name[name] begin[{] method[setStringIfNotEmpty, return_type[void], modifier[public], parameter[key, value]] begin[{] if[binary_operation[binary_operation[literal[null], !=, member[.value]], &&, call[value.isEmpty, parameter[]]]] begin[{] call[.setString, para...
Keyword[public] Keyword[void] identifier[setStringIfNotEmpty] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[key] , annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[...
public Collection<FileAnnotation> parse(final File file, final String moduleName) throws InvocationTargetException { try { Collection<FileAnnotation> annotations = new ParserRegistry(parsers, defaultEncoding, includePattern, excludePattern).parse(file); for (FileAnnotation annotation : a...
class class_name[name] begin[{] method[parse, return_type[type[Collection]], modifier[public], parameter[file, moduleName]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=par...
Keyword[public] identifier[Collection] operator[<] identifier[FileAnnotation] operator[>] identifier[parse] operator[SEP] Keyword[final] identifier[File] identifier[file] , Keyword[final] identifier[String] identifier[moduleName] operator[SEP] Keyword[throws] identifier[InvocationTargetException] { Keyword[try]...
public static ServerEnvironmentWrapper determineEnvironment(String[] args, Properties systemProperties, Map<String, String> systemEnvironment, ServerEnvironment.LaunchType launchType, long startTime) { final int argsLength = args.length; String se...
class class_name[name] begin[{] method[determineEnvironment, return_type[type[ServerEnvironmentWrapper]], modifier[public static], parameter[args, systemProperties, systemEnvironment, launchType, startTime]] begin[{] local_variable[type[int], argsLength] local_variable[type[String], serverConfi...
Keyword[public] Keyword[static] identifier[ServerEnvironmentWrapper] identifier[determineEnvironment] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] , identifier[Properties] identifier[systemProperties] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] i...
public static dnspolicy_binding get(nitro_service service, String name) throws Exception{ dnspolicy_binding obj = new dnspolicy_binding(); obj.set_name(name); dnspolicy_binding response = (dnspolicy_binding) obj.get_resource(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[dnspolicy_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[dnspolicy_binding], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[dnspolicy_binding], respons...
Keyword[public] Keyword[static] identifier[dnspolicy_binding] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[dnspolicy_binding] identifier[obj] operator[=] Keyword[new] identifier[...
public RatingValuesMap getAllRatings(Reference reference) { return getResourceFactory().getApiResource( "/rating/" + reference.toURLFragment()).get( RatingValuesMap.class); }
class class_name[name] begin[{] method[getAllRatings, return_type[type[RatingValuesMap]], modifier[public], parameter[reference]] begin[{] return[call[.getResourceFactory, parameter[]]] end[}] END[}]
Keyword[public] identifier[RatingValuesMap] identifier[getAllRatings] operator[SEP] identifier[Reference] identifier[reference] operator[SEP] { Keyword[return] identifier[getResourceFactory] operator[SEP] operator[SEP] operator[SEP] identifier[getApiResource] operator[SEP] literal[String] operator[+] identifier[...
public static boolean isJsonRequest(ServletRequest request) { HttpServletRequest sr = (HttpServletRequest)request; return (sr.getQueryString() != null) && (sr.getQueryString().contains("__json=true")); }
class class_name[name] begin[{] method[isJsonRequest, return_type[type[boolean]], modifier[public static], parameter[request]] begin[{] local_variable[type[HttpServletRequest], sr] return[binary_operation[binary_operation[call[sr.getQueryString, parameter[]], !=, literal[null]], &&, call[sr.get...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isJsonRequest] operator[SEP] identifier[ServletRequest] identifier[request] operator[SEP] { identifier[HttpServletRequest] identifier[sr] operator[=] operator[SEP] identifier[HttpServletRequest] operator[SEP] identifier[request] operator[SEP] Keyword[re...
public static void clearCaches() { synchronized (AbstractCache.CACHES) { for (final AbstractCache<?> cache : AbstractCache.CACHES) { cache.getCache4Id().clear(); cache.getCache4Name().clear(); cache.getCache4UUID().clear(); } } ...
class class_name[name] begin[{] method[clearCaches, return_type[void], modifier[public static], parameter[]] begin[{] SYNCHRONIZED[member[AbstractCache.CACHES]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argument...
Keyword[public] Keyword[static] Keyword[void] identifier[clearCaches] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[AbstractCache] operator[SEP] identifier[CACHES] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[AbstractCache] operator[<] operator[?]...
public static Document parseDocument(DocumentBuilder builder, File file) throws IOException, SAXException { final DocumentBuilder docBuilder = builder; final File parsingFile = file; try { return (Document) AccessController.doPrivileged(new PrivilegedExceptionAction() { ...
class class_name[name] begin[{] method[parseDocument, return_type[type[Document]], modifier[public static], parameter[builder, file]] begin[{] local_variable[type[DocumentBuilder], docBuilder] local_variable[type[File], parsingFile] TryStatement(block=[ReturnStatement(expression=Cast(ex...
Keyword[public] Keyword[static] identifier[Document] identifier[parseDocument] operator[SEP] identifier[DocumentBuilder] identifier[builder] , identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SAXException] { Keyword[final] identifier[DocumentBuilder] identifi...
private static long switchValue8(long currentHexValue, int digitCount) { long result = 0x7 & currentHexValue; int shift = 0; while(--digitCount > 0) { shift += 3; currentHexValue >>>= 4; result |= (0x7 & currentHexValue) << shift; } return result; }
class class_name[name] begin[{] method[switchValue8, return_type[type[long]], modifier[private static], parameter[currentHexValue, digitCount]] begin[{] local_variable[type[long], result] local_variable[type[int], shift] while[binary_operation[member[.digitCount], >, literal[0]]...
Keyword[private] Keyword[static] Keyword[long] identifier[switchValue8] operator[SEP] Keyword[long] identifier[currentHexValue] , Keyword[int] identifier[digitCount] operator[SEP] { Keyword[long] identifier[result] operator[=] literal[Integer] operator[&] identifier[currentHexValue] operator[SEP] Keyword[int] i...
public static double pixelXToLongitude(double pixelX, long mapSize) { if (pixelX < 0 || pixelX > mapSize) { throw new IllegalArgumentException("invalid pixelX coordinate " + mapSize + ": " + pixelX); } return 360 * ((pixelX / mapSize) - 0.5); }
class class_name[name] begin[{] method[pixelXToLongitude, return_type[type[double]], modifier[public static], parameter[pixelX, mapSize]] begin[{] if[binary_operation[binary_operation[member[.pixelX], <, literal[0]], ||, binary_operation[member[.pixelX], >, member[.mapSize]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[double] identifier[pixelXToLongitude] operator[SEP] Keyword[double] identifier[pixelX] , Keyword[long] identifier[mapSize] operator[SEP] { Keyword[if] operator[SEP] identifier[pixelX] operator[<] Other[0] operator[||] identifier[pixelX] operator[>] identifier[mapSize] ope...
public static Optional<Path> createTempDirPathAsOpt(Path path) { debug(log, "createTempDirPathAsOpt", path); try { return Optional.of(Files.createTempDirectory(path.toString())) .filter(JMPath.ExistFilter) .map(JMPathOperation::deleteOnExit); }...
class class_name[name] begin[{] method[createTempDirPathAsOpt, return_type[type[Optional]], modifier[public static], parameter[path]] begin[{] call[.debug, parameter[member[.log], literal["createTempDirPathAsOpt"], member[.path]]] TryStatement(block=[ReturnStatement(expression=MethodInv...
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[Path] operator[>] identifier[createTempDirPathAsOpt] operator[SEP] identifier[Path] identifier[path] operator[SEP] { identifier[debug] operator[SEP] identifier[log] , literal[String] , identifier[path] operator[SEP] operator[SEP] Keywo...
private static IQ respondError(AdHocCommandData response, StanzaError.Builder error) { response.setType(IQ.Type.error); response.setError(error); return response; }
class class_name[name] begin[{] method[respondError, return_type[type[IQ]], modifier[private static], parameter[response, error]] begin[{] call[response.setType, parameter[member[IQ.Type.error]]] call[response.setError, parameter[member[.error]]] return[member[.response]...
Keyword[private] Keyword[static] identifier[IQ] identifier[respondError] operator[SEP] identifier[AdHocCommandData] identifier[response] , identifier[StanzaError] operator[SEP] identifier[Builder] identifier[error] operator[SEP] { identifier[response] operator[SEP] identifier[setType] operator[SEP] identifier[I...
@Override public void onTaskFailure(Execution taskExecution, Throwable cause) { final ExecutionVertex ev = taskExecution.getVertex(); final FailoverRegion failoverRegion = vertexToRegion.get(ev); if (failoverRegion == null) { executionGraph.failGlobal(new FlinkException( "Can not find a failover region ...
class class_name[name] begin[{] method[onTaskFailure, return_type[void], modifier[public], parameter[taskExecution, cause]] begin[{] local_variable[type[ExecutionVertex], ev] local_variable[type[FailoverRegion], failoverRegion] if[binary_operation[member[.failoverRegion], ==, li...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onTaskFailure] operator[SEP] identifier[Execution] identifier[taskExecution] , identifier[Throwable] identifier[cause] operator[SEP] { Keyword[final] identifier[ExecutionVertex] identifier[ev] operator[=] identifier[taskExecution] opera...
public static Properties readProperties( InputStream stream, Properties mappings, boolean closeStream ) throws IOException { try { Properties p = new Properties(); p.load( stream ); mappings.putAll( p ); boolean doAgain = true; whil...
class class_name[name] begin[{] method[readProperties, return_type[type[Properties]], modifier[public static], parameter[stream, mappings, closeStream]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argument...
Keyword[public] Keyword[static] identifier[Properties] identifier[readProperties] operator[SEP] identifier[InputStream] identifier[stream] , identifier[Properties] identifier[mappings] , Keyword[boolean] identifier[closeStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { i...
public <K> Stream<T> distinctBy(final Function<? super T, K> keyMapper, final Predicate<? super Long> occurrencesFilter) { final Supplier<? extends Map<Keyed<K, T>, Long>> supplier = isParallel() ? Suppliers.<Keyed<K, T>, Long> ofConcurrentHashMap() : Suppliers.<Keyed<K, T>, Long> ofLinkedHash...
class class_name[name] begin[{] method[distinctBy, return_type[type[Stream]], modifier[public], parameter[keyMapper, occurrencesFilter]] begin[{] local_variable[type[Supplier], supplier] return[call[.groupBy, parameter[call[.Fn, parameter[member[.keyMapper]]], call[Collectors.counting, paramete...
Keyword[public] operator[<] identifier[K] operator[>] identifier[Stream] operator[<] identifier[T] operator[>] identifier[distinctBy] operator[SEP] Keyword[final] identifier[Function] operator[<] operator[?] Keyword[super] identifier[T] , identifier[K] operator[>] identifier[keyMapper] , Keyword[final] identifier[Pre...
@CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Observable<T> debounce(long timeout, TimeUnit unit) { return debounce(timeout, unit, Schedulers.computation()); }
class class_name[name] begin[{] method[debounce, return_type[type[Observable]], modifier[final public], parameter[timeout, unit]] begin[{] return[call[.debounce, parameter[member[.timeout], member[.unit], call[Schedulers.computation, parameter[]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[COMPUTATION] operator[SEP] Keyword[public] Keyword[final] identifier[Observable] operator[<] identifier[T] operator[>] identifier[debounce] operator[SEP] Keyword[long...
public static Builder newBuilder(TableId destinationTable, List<TableId> sourceTables) { return new Builder().setDestinationTable(destinationTable).setSourceTables(sourceTables); }
class class_name[name] begin[{] method[newBuilder, return_type[type[Builder]], modifier[public static], parameter[destinationTable, sourceTables]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=...
Keyword[public] Keyword[static] identifier[Builder] identifier[newBuilder] operator[SEP] identifier[TableId] identifier[destinationTable] , identifier[List] operator[<] identifier[TableId] operator[>] identifier[sourceTables] operator[SEP] { Keyword[return] Keyword[new] identifier[Builder] operator[SEP] operato...
public String getFirstHeaderStringValue(String name) { Object value = get(name.toLowerCase(Locale.US)); if (value == null) { return null; } Class<? extends Object> valueClass = value.getClass(); if (value instanceof Iterable<?> || valueClass.isArray()) { for (Object repeatedValue : Types...
class class_name[name] begin[{] method[getFirstHeaderStringValue, return_type[type[String]], modifier[public], parameter[name]] begin[{] local_variable[type[Object], value] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[null]] else be...
Keyword[public] identifier[String] identifier[getFirstHeaderStringValue] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[get] operator[SEP] identifier[name] operator[SEP] identifier[toLowerCase] operator[SEP] identifier[Locale] operato...
@Override public Enumeration<String> getHeaderNames() { List<String> names = this.request.getHeaderNames(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "getHeaderNames: " + names.size()); } return Collections.enumeration(names); }
class class_name[name] begin[{] method[getHeaderNames, return_type[type[Enumeration]], modifier[public], parameter[]] begin[{] local_variable[type[List], names] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{]...
annotation[@] identifier[Override] Keyword[public] identifier[Enumeration] operator[<] identifier[String] operator[>] identifier[getHeaderNames] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[names] operator[=] Keyword[this] operator[SEP] identifier[request] ...
public void setMonths(String[] newMonths, int context, int width) { switch (context) { case FORMAT : switch(width) { case WIDE : months = duplicate(newMonths); break; case ABBREVIATED : shortMo...
class class_name[name] begin[{] method[setMonths, return_type[void], modifier[public], parameter[newMonths, context, width]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['FORMAT'], statements=[SwitchStatement(cases=[SwitchStatementCase(case=['WIDE'], statements=[StatementExpression(express...
Keyword[public] Keyword[void] identifier[setMonths] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[newMonths] , Keyword[int] identifier[context] , Keyword[int] identifier[width] operator[SEP] { Keyword[switch] operator[SEP] identifier[context] operator[SEP] { Keyword[case] i...
public int executeUpdate(String name, DataObject object) throws SQLException { ParametricStatement statement = _statements.get(name); if (statement != null) { return statement.executeUpdate(DataSourceUtils.getConnection(_dataSource), object); } else { throw new Runti...
class class_name[name] begin[{] method[executeUpdate, return_type[type[int]], modifier[public], parameter[name, object]] begin[{] local_variable[type[ParametricStatement], statement] if[binary_operation[member[.statement], !=, literal[null]]] begin[{] return[call[statement.e...
Keyword[public] Keyword[int] identifier[executeUpdate] operator[SEP] identifier[String] identifier[name] , identifier[DataObject] identifier[object] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[ParametricStatement] identifier[statement] operator[=] identifier[_statements] operator[SEP] id...
public static MessageManager getMessageManager(App app) { return RemoteMessageManager.getMessageManager(app, null, null, true); }
class class_name[name] begin[{] method[getMessageManager, return_type[type[MessageManager]], modifier[public static], parameter[app]] begin[{] return[call[RemoteMessageManager.getMessageManager, parameter[member[.app], literal[null], literal[null], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[MessageManager] identifier[getMessageManager] operator[SEP] identifier[App] identifier[app] operator[SEP] { Keyword[return] identifier[RemoteMessageManager] operator[SEP] identifier[getMessageManager] operator[SEP] identifier[app] , Other[null] , Other[null] , litera...
public static Token[] optimize(Token[] tokens) { if (tokens == null) { return null; } String firstVal = null; String lastVal = null; if (tokens.length == 1) { if (tokens[0].getType() == TokenType.TEXT) { firstVal = tokens[0].getDefaultVal...
class class_name[name] begin[{] method[optimize, return_type[type[Token]], modifier[public static], parameter[tokens]] begin[{] if[binary_operation[member[.tokens], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[ty...
Keyword[public] Keyword[static] identifier[Token] operator[SEP] operator[SEP] identifier[optimize] operator[SEP] identifier[Token] operator[SEP] operator[SEP] identifier[tokens] operator[SEP] { Keyword[if] operator[SEP] identifier[tokens] operator[==] Other[null] operator[SEP] { Keyword[return] Other[...
@Deprecated public static ParquetMetadata mergeMetadataFiles(List<Path> files, Configuration conf) throws IOException { Preconditions.checkArgument(!files.isEmpty(), "Cannot merge an empty list of metadata"); GlobalMetaData globalMetaData = null; List<BlockMetaData> blocks = new ArrayList<BlockMetaData>...
class class_name[name] begin[{] method[mergeMetadataFiles, return_type[type[ParquetMetadata]], modifier[public static], parameter[files, conf]] begin[{] call[Preconditions.checkArgument, parameter[call[files.isEmpty, parameter[]], literal["Cannot merge an empty list of metadata"]]] loca...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[ParquetMetadata] identifier[mergeMetadataFiles] operator[SEP] identifier[List] operator[<] identifier[Path] operator[>] identifier[files] , identifier[Configuration] identifier[conf] operator[SEP] Keyword[throws] identifier[IOException] {...
private String parameterToString(Object param) { if (param == null) { return ""; } else if (param instanceof Date) { return formatDate((Date) param); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); for (Object o : (...
class class_name[name] begin[{] method[parameterToString, return_type[type[String]], modifier[private], parameter[param]] begin[{] if[binary_operation[member[.param], ==, literal[null]]] begin[{] return[literal[""]] else begin[{] if[binary_operation[member[.param...
Keyword[private] identifier[String] identifier[parameterToString] operator[SEP] identifier[Object] identifier[param] operator[SEP] { Keyword[if] operator[SEP] identifier[param] operator[==] Other[null] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[else] Keyword[...
public static UnixPath getPath(boolean permitEmptyComponents, String first, String... more) { if (more.length == 0) { return getPath(permitEmptyComponents, first); } StringBuilder builder = new StringBuilder(first); for (int i = 0; i < more.length; i++) { String part = more[i]; if (par...
class class_name[name] begin[{] method[getPath, return_type[type[UnixPath]], modifier[public static], parameter[permitEmptyComponents, first, more]] begin[{] if[binary_operation[member[more.length], ==, literal[0]]] begin[{] return[call[.getPath, parameter[member[.permitEmptyCompone...
Keyword[public] Keyword[static] identifier[UnixPath] identifier[getPath] operator[SEP] Keyword[boolean] identifier[permitEmptyComponents] , identifier[String] identifier[first] , identifier[String] operator[...] identifier[more] operator[SEP] { Keyword[if] operator[SEP] identifier[more] operator[SEP] identifie...
public static String param(HttpServletRequest request, String param, String defaultValue) { String value = request.getParameter(param); return (StringUtils.isEmpty(value)) ? defaultValue : value; }
class class_name[name] begin[{] method[param, return_type[type[String]], modifier[public static], parameter[request, param, defaultValue]] begin[{] local_variable[type[String], value] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=...
Keyword[public] Keyword[static] identifier[String] identifier[param] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[String] identifier[param] , identifier[String] identifier[defaultValue] operator[SEP] { identifier[String] identifier[value] operator[=] identifier[request] operato...
public static String[] buildArrayWithDelimiter(String stringWithDelimiter, String delimiter) { return toArray(JMCollections .buildListWithDelimiter(stringWithDelimiter, delimiter)); }
class class_name[name] begin[{] method[buildArrayWithDelimiter, return_type[type[String]], modifier[public static], parameter[stringWithDelimiter, delimiter]] begin[{] return[call[.toArray, parameter[call[JMCollections.buildListWithDelimiter, parameter[member[.stringWithDelimiter], member[.delimiter]]]...
Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[buildArrayWithDelimiter] operator[SEP] identifier[String] identifier[stringWithDelimiter] , identifier[String] identifier[delimiter] operator[SEP] { Keyword[return] identifier[toArray] operator[SEP] identifier[JMCollection...
protected boolean isBeanActionFormType(Type parameterType) { final String typeName = parameterType.getTypeName(); if (isJavaStandardClass(typeName)) { return false; } return determineBeanActionFormTypeName(typeName); }
class class_name[name] begin[{] method[isBeanActionFormType, return_type[type[boolean]], modifier[protected], parameter[parameterType]] begin[{] local_variable[type[String], typeName] if[call[.isJavaStandardClass, parameter[member[.typeName]]]] begin[{] return[literal[false]...
Keyword[protected] Keyword[boolean] identifier[isBeanActionFormType] operator[SEP] identifier[Type] identifier[parameterType] operator[SEP] { Keyword[final] identifier[String] identifier[typeName] operator[=] identifier[parameterType] operator[SEP] identifier[getTypeName] operator[SEP] operator[SEP] operator[SEP...
@SuppressWarnings("unchecked") public static Object getClassInstance(String className, Class[] attrTypes, Object[] attrValues) throws DISIException { Constructor constr; try { Class cl = Class.for...
class class_name[name] begin[{] method[getClassInstance, return_type[type[Object]], modifier[public static], parameter[className, attrTypes, attrValues]] begin[{] local_variable[type[Constructor], constr] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarat...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Object] identifier[getClassInstance] operator[SEP] identifier[String] identifier[className] , identifier[Class] operator[SEP] operator[SEP] identifier[attrTypes] , identifier[Object] opera...
public static FunctionVersionCreator creator(final String pathServiceSid, final String pathFunctionSid, final String path, final FunctionVersion.Visibility visibility) { ...
class class_name[name] begin[{] method[creator, return_type[type[FunctionVersionCreator]], modifier[public static], parameter[pathServiceSid, pathFunctionSid, path, visibility]] begin[{] return[ClassCreator(arguments=[MemberReference(member=pathServiceSid, postfix_operators=[], prefix_operators=[], qua...
Keyword[public] Keyword[static] identifier[FunctionVersionCreator] identifier[creator] operator[SEP] Keyword[final] identifier[String] identifier[pathServiceSid] , Keyword[final] identifier[String] identifier[pathFunctionSid] , Keyword[final] identifier[String] identifier[path] , Keyword[final] identifier[FunctionVe...
private void readResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx) { for (Project.Resources.Resource.ExtendedAttribute attrib : xml.getExtendedAttribute()) { int xmlFieldID = Integer.parseInt(attrib.getFieldID()) & 0x0000FFFF; ResourceField mpxFieldID = MPPResourc...
class class_name[name] begin[{] method[readResourceExtendedAttributes, return_type[void], modifier[private], parameter[xml, mpx]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryO...
Keyword[private] Keyword[void] identifier[readResourceExtendedAttributes] operator[SEP] identifier[Project] operator[SEP] identifier[Resources] operator[SEP] identifier[Resource] identifier[xml] , identifier[Resource] identifier[mpx] operator[SEP] { Keyword[for] operator[SEP] identifier[Project] operator[SEP] i...
protected String statusMsg(final String queue, final Job job) throws IOException { final WorkerStatus status = new WorkerStatus(); status.setRunAt(new Date()); status.setQueue(queue); status.setPayload(job); return ObjectMapperFactory.get().writeValueAsString(status); }
class class_name[name] begin[{] method[statusMsg, return_type[type[String]], modifier[protected], parameter[queue, job]] begin[{] local_variable[type[WorkerStatus], status] call[status.setRunAt, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_ope...
Keyword[protected] identifier[String] identifier[statusMsg] operator[SEP] Keyword[final] identifier[String] identifier[queue] , Keyword[final] identifier[Job] identifier[job] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[WorkerStatus] identifier[status] operator[=] Keyword[ne...
public static <ViewType extends FxmlView<? extends ViewModelType>, ViewModelType extends ViewModel> FxmlViewStep<ViewType, ViewModelType> fxmlView( Class<? extends ViewType> viewType) { return new FxmlViewStep<>(viewType); }
class class_name[name] begin[{] method[fxmlView, return_type[type[FxmlViewStep]], modifier[public static], parameter[viewType]] begin[{] return[ClassCreator(arguments=[MemberReference(member=viewType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arg...
Keyword[public] Keyword[static] operator[<] identifier[ViewType] Keyword[extends] identifier[FxmlView] operator[<] operator[?] Keyword[extends] identifier[ViewModelType] operator[>] , identifier[ViewModelType] Keyword[extends] identifier[ViewModel] operator[>] identifier[FxmlViewStep] operator[<] identifier[ViewType] ...
static private void encodeBytes(byte previous, byte current, int byteIndex, StringBuilder output) { int chunk; int offset = byteIndex % 5; switch (offset) { case 0: chunk = ((current & 0xF8) >>> 3); output.append(lookupTable.charAt(chunk)); ...
class class_name[name] begin[{] method[encodeBytes, return_type[void], modifier[private static], parameter[previous, current, byteIndex, output]] begin[{] local_variable[type[int], chunk] local_variable[type[int], offset] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_...
Keyword[static] Keyword[private] Keyword[void] identifier[encodeBytes] operator[SEP] Keyword[byte] identifier[previous] , Keyword[byte] identifier[current] , Keyword[int] identifier[byteIndex] , identifier[StringBuilder] identifier[output] operator[SEP] { Keyword[int] identifier[chunk] operator[SEP] Keyword[i...
public void currentSampleChanged(float [] leftSample, float [] rightSample) { getVULMeterPanel().setVUMeter(leftSample); getVURMeterPanel().setVUMeter(rightSample); getSALMeterPanel().setMeter(leftSample); getSARMeterPanel().setMeter(rightSample); }
class class_name[name] begin[{] method[currentSampleChanged, return_type[void], modifier[public], parameter[leftSample, rightSample]] begin[{] call[.getVULMeterPanel, parameter[]] call[.getVURMeterPanel, parameter[]] call[.getSALMeterPanel, parameter[]] ...
Keyword[public] Keyword[void] identifier[currentSampleChanged] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[leftSample] , Keyword[float] operator[SEP] operator[SEP] identifier[rightSample] operator[SEP] { identifier[getVULMeterPanel] operator[SEP] operator[SEP] operator[SEP] identifier[se...
public final NonLockingCursor newNonLockingItemStreamCursor(Filter filter) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "newNonLockingItemStreamCursor", filter); NonLockingCursor cursor = new UnprioritizedNonlockingCursor(_itemStreams, filter); ...
class class_name[name] begin[{] method[newNonLockingItemStreamCursor, return_type[type[NonLockingCursor]], modifier[final public], parameter[filter]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] Keyword[final] identifier[NonLockingCursor] identifier[newNonLockingItemStreamCursor] operator[SEP] identifier[Filter] identifier[filter] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ide...
public IPAddressSeqRange[] subtract(IPAddressSeqRange other) { IPAddress otherLower = other.getLower(); IPAddress otherUpper = other.getUpper(); IPAddress lower = this.getLower(); IPAddress upper = this.getUpper(); if(compareLowValues(lower, otherLower) < 0) { if(compareLowValues(upper, otherUpper) > 0) { ...
class class_name[name] begin[{] method[subtract, return_type[type[IPAddressSeqRange]], modifier[public], parameter[other]] begin[{] local_variable[type[IPAddress], otherLower] local_variable[type[IPAddress], otherUpper] local_variable[type[IPAddress], lower] local_variable[type[...
Keyword[public] identifier[IPAddressSeqRange] operator[SEP] operator[SEP] identifier[subtract] operator[SEP] identifier[IPAddressSeqRange] identifier[other] operator[SEP] { identifier[IPAddress] identifier[otherLower] operator[=] identifier[other] operator[SEP] identifier[getLower] operator[SEP] operator[SEP] op...
public final EObject entryRuleCrossReference() throws RecognitionException { EObject current = null; EObject iv_ruleCrossReference = null; try { // InternalXtext.g:2627:55: (iv_ruleCrossReference= ruleCrossReference EOF ) // InternalXtext.g:2628:2: iv_ruleCrossReferenc...
class class_name[name] begin[{] method[entryRuleCrossReference, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[EObject], iv_ruleCrossReference] TryStatement(block=[BlockStatement(label=None, statements...
Keyword[public] Keyword[final] identifier[EObject] identifier[entryRuleCrossReference] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[iv_ruleCrossReference] operator[=] Oth...
public static ChaincodeCollectionConfiguration fromYamlFile(File configFile) throws InvalidArgumentException, IOException, ChaincodeCollectionConfigurationException { return fromFile(configFile, false); }
class class_name[name] begin[{] method[fromYamlFile, return_type[type[ChaincodeCollectionConfiguration]], modifier[public static], parameter[configFile]] begin[{] return[call[.fromFile, parameter[member[.configFile], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[ChaincodeCollectionConfiguration] identifier[fromYamlFile] operator[SEP] identifier[File] identifier[configFile] operator[SEP] Keyword[throws] identifier[InvalidArgumentException] , identifier[IOException] , identifier[ChaincodeCollectionConfigurationException] { Keyw...
private void failTimedOutMissingContentRequests() { if (isStopped()) return; if (requestsMissingContent.isEmpty()) return; final List<String> toRemove = new ArrayList<>(); // prevent ConcurrentModificationException for (final String id : requestsMissingContent.keySet()) { final RequestResponseHt...
class class_name[name] begin[{] method[failTimedOutMissingContentRequests, return_type[void], modifier[private], parameter[]] begin[{] if[call[.isStopped, parameter[]]] begin[{] return[None] else begin[{] None end[}] if[call[requestsMissingContent.isEmpty, parame...
Keyword[private] Keyword[void] identifier[failTimedOutMissingContentRequests] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isStopped] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifier[requestsMissingContent] operator[SEP] identifier...
public void setMode(ArrayList<Long> tokens, String mode){ JSONObject jobj = new JSONObject(); try { // int a[] = {256265, 408065, 779521, 738561, 177665, 25601}; JSONArray list = new JSONArray(); JSONArray listMain = new JSONArray(); listMain.put(0, mode);...
class class_name[name] begin[{] method[setMode, return_type[void], modifier[public], parameter[tokens, mode]] begin[{] local_variable[type[JSONObject], jobj] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(argu...
Keyword[public] Keyword[void] identifier[setMode] operator[SEP] identifier[ArrayList] operator[<] identifier[Long] operator[>] identifier[tokens] , identifier[String] identifier[mode] operator[SEP] { identifier[JSONObject] identifier[jobj] operator[=] Keyword[new] identifier[JSONObject] operator[SEP] operator[S...
public static final TimeUnit parseDurationTimeUnits(BigInteger value, TimeUnit defaultValue) { TimeUnit result = defaultValue; if (value != null) { switch (value.intValue()) { case 3: case 35: { result = TimeUnit.MINUTES; ...
class class_name[name] begin[{] method[parseDurationTimeUnits, return_type[type[TimeUnit]], modifier[final public static], parameter[value, defaultValue]] begin[{] local_variable[type[TimeUnit], result] if[binary_operation[member[.value], !=, literal[null]]] begin[{] SwitchS...
Keyword[public] Keyword[static] Keyword[final] identifier[TimeUnit] identifier[parseDurationTimeUnits] operator[SEP] identifier[BigInteger] identifier[value] , identifier[TimeUnit] identifier[defaultValue] operator[SEP] { identifier[TimeUnit] identifier[result] operator[=] identifier[defaultValue] operator[SEP]...
@Override public void writeIntUnchecked(int v) throws IOException { outputStream.write(0xFF & v); outputStream.write(0xFF & (v >> 8)); outputStream.write(0xFF & (v >> 16)); outputStream.write(0xFF & (v >> 24)); bytesWritten += 4; }
class class_name[name] begin[{] method[writeIntUnchecked, return_type[void], modifier[public], parameter[v]] begin[{] call[outputStream.write, parameter[binary_operation[literal[0xFF], &, member[.v]]]] call[outputStream.write, parameter[binary_operation[literal[0xFF], &, binary_...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeIntUnchecked] operator[SEP] Keyword[int] identifier[v] operator[SEP] Keyword[throws] identifier[IOException] { identifier[outputStream] operator[SEP] identifier[write] operator[SEP] literal[Integer] operator[&] identifier[v] operato...
@Override public void setAttribute(String name, Object value) { if (name.startsWith(IPortletRenderer.RENDERER_ATTRIBUTE_PREFIX)) { throw new IllegalArgumentException( "Portlets cannot set attributes that start with: " + IPortletRenderer.RENDERER_AT...
class class_name[name] begin[{] method[setAttribute, return_type[void], modifier[public], parameter[name, value]] begin[{] if[call[name.startsWith, parameter[member[IPortletRenderer.RENDERER_ATTRIBUTE_PREFIX]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setAttribute] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[SEP] identifier[startsWith] operator[SEP] identifier[IPortletRend...
private JSONNavi<?> failure(String err, Object jPathPostfix) { failure = true; StringBuilder sb = new StringBuilder(); sb.append("Error: "); sb.append(err); sb.append(" at "); sb.append(getJPath()); if (jPathPostfix != null) if (jPathPostfix instanceof Integer) sb.append('[').append(jPathPostfix).a...
class class_name[name] begin[{] method[failure, return_type[type[JSONNavi]], modifier[private], parameter[err, jPathPostfix]] begin[{] assign[member[.failure], literal[true]] local_variable[type[StringBuilder], sb] call[sb.append, parameter[literal["Error: "]]] ...
Keyword[private] identifier[JSONNavi] operator[<] operator[?] operator[>] identifier[failure] operator[SEP] identifier[String] identifier[err] , identifier[Object] identifier[jPathPostfix] operator[SEP] { identifier[failure] operator[=] literal[boolean] operator[SEP] identifier[StringBuilder] identifier[sb] ope...
@Deprecated public final FluentIterable<T> postOrderTraversal(final T root) { checkNotNull(root); return new FluentIterable<T>() { @Override public UnmodifiableIterator<T> iterator() { return postOrderIterator(root); } }; }
class class_name[name] begin[{] method[postOrderTraversal, return_type[type[FluentIterable]], modifier[final public], parameter[root]] begin[{] call[.checkNotNull, parameter[member[.root]]] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, n...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[final] identifier[FluentIterable] operator[<] identifier[T] operator[>] identifier[postOrderTraversal] operator[SEP] Keyword[final] identifier[T] identifier[root] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[root] operator[SEP] ope...
private boolean stage2(final Document document) { beginStage(PHASE1_STAGE2_HDR, "2", NUM_PHASES); final StringBuilder bldr = new StringBuilder(); Collection<Namespace> namespaces = document.getNamespaceMap().values(); final int docNSCount = namespaces.size(); bldr.append("Compi...
class class_name[name] begin[{] method[stage2, return_type[type[boolean]], modifier[private], parameter[document]] begin[{] call[.beginStage, parameter[member[.PHASE1_STAGE2_HDR], literal["2"], member[.NUM_PHASES]]] local_variable[type[StringBuilder], bldr] local_variable[type[C...
Keyword[private] Keyword[boolean] identifier[stage2] operator[SEP] Keyword[final] identifier[Document] identifier[document] operator[SEP] { identifier[beginStage] operator[SEP] identifier[PHASE1_STAGE2_HDR] , literal[String] , identifier[NUM_PHASES] operator[SEP] operator[SEP] Keyword[final] identifier[StringB...
@JsonProperty("key_hsm") @JsonSerialize(using = Base64UrlJsonSerializer.class) @JsonDeserialize(using = Base64UrlJsonDeserializer.class) public byte[] t() { return ByteExtensions.clone(this.t); }
class class_name[name] begin[{] method[t, return_type[type[byte]], modifier[public], parameter[]] begin[{] return[call[ByteExtensions.clone, parameter[THIS[member[None.t]]]]] end[}] END[}]
annotation[@] identifier[JsonProperty] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[JsonSerialize] operator[SEP] identifier[using] operator[=] identifier[Base64UrlJsonSerializer] operator[SEP] Keyword[class] operator[SEP] annotation[@] identifier[JsonDeserialize] operator[SEP] identifier[using] ...
public BatchConfigurationInner get(String resourceGroupName, String integrationAccountName, String batchConfigurationName) { return getWithServiceResponseAsync(resourceGroupName, integrationAccountName, batchConfigurationName).toBlocking().single().body(); }
class class_name[name] begin[{] method[get, return_type[type[BatchConfigurationInner]], modifier[public], parameter[resourceGroupName, integrationAccountName, batchConfigurationName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.integrationAccountName...
Keyword[public] identifier[BatchConfigurationInner] identifier[get] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[integrationAccountName] , identifier[String] identifier[batchConfigurationName] operator[SEP] { Keyword[return] identifier[getWithServiceResponseAsy...
private void await() { try { // Clean up all filter join leaf nodes that have been converted boolean nodeRemoved = this.removeConvertedNodes(root); // If some nodes were removed, it means that we converted in the previous iteration // at least one filter join into a field data terms query. W...
class class_name[name] begin[{] method[await, return_type[void], modifier[private], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[Me...
Keyword[private] Keyword[void] identifier[await] operator[SEP] operator[SEP] { Keyword[try] { Keyword[boolean] identifier[nodeRemoved] operator[=] Keyword[this] operator[SEP] identifier[removeConvertedNodes] operator[SEP] identifier[root] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[...
private void buildFileEntry() { final HashMap result = new HashMap(); Reader reader = null; boolean error1 = false; try { if (openLoginFileAction != null) { if (tc.isDebugEnabled()) { Tr.debug(tc, "JAAS login configuration file: " + _logi...
class class_name[name] begin[{] method[buildFileEntry, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[HashMap], result] local_variable[type[Reader], reader] local_variable[type[boolean], error1] TryStatement(block=[IfStatement(condition=BinaryOpe...
Keyword[private] Keyword[void] identifier[buildFileEntry] operator[SEP] operator[SEP] { Keyword[final] identifier[HashMap] identifier[result] operator[=] Keyword[new] identifier[HashMap] operator[SEP] operator[SEP] operator[SEP] identifier[Reader] identifier[reader] operator[=] Other[null] operator[SEP] Keyword[...
public DrawerProfile setRoundedAvatar(Context context, Bitmap image) { return setAvatar(new RoundedAvatarDrawable(new BitmapDrawable(context.getResources(), image).getBitmap())); }
class class_name[name] begin[{] method[setRoundedAvatar, return_type[type[DrawerProfile]], modifier[public], parameter[context, image]] begin[{] return[call[.setAvatar, parameter[ClassCreator(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getResources, postfix_operators=[], pr...
Keyword[public] identifier[DrawerProfile] identifier[setRoundedAvatar] operator[SEP] identifier[Context] identifier[context] , identifier[Bitmap] identifier[image] operator[SEP] { Keyword[return] identifier[setAvatar] operator[SEP] Keyword[new] identifier[RoundedAvatarDrawable] operator[SEP] Keyword[new] identi...
public static int encode(byte[] value, int valueOffset, int valueLength, byte[] dst, int dstOffset) { if (value == null) { dst[dstOffset] = NULL_BYTE_HIGH; return 1; } // Write the value length first, in a variable amount of bytes. ...
class class_name[name] begin[{] method[encode, return_type[type[int]], modifier[public static], parameter[value, valueOffset, valueLength, dst, dstOffset]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] assign[member[.dst], member[.NULL_BYTE_HI...
Keyword[public] Keyword[static] Keyword[int] identifier[encode] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[value] , Keyword[int] identifier[valueOffset] , Keyword[int] identifier[valueLength] , Keyword[byte] operator[SEP] operator[SEP] identifier[dst] , Keyword[int] identifier[dstOffset] ope...
private void checkDestinationType(DestinationType expectedDestType, SIDestinationAddress destAddr, DestinationHandler destination, boolean system) throws SINotPossibleInCurrentConfigurat...
class class_name[name] begin[{] method[checkDestinationType, return_type[void], modifier[private], parameter[expectedDestType, destAddr, destination, system]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[checkDestinationType] operator[SEP] identifier[DestinationType] identifier[expectedDestType] , identifier[SIDestinationAddress] identifier[destAddr] , identifier[DestinationHandler] identifier[destination] , Keyword[boolean] identifier[system] operator[SEP] Keyword[throws] i...
private static FeedItemOperation createDsaUrlAddOperation( DSAFeedDetails feedDetails, String url, String labelName) { // Create the FeedItemAttributeValues for the URL and label. FeedItemAttributeValue urlAttributeValue = new FeedItemAttributeValue(); urlAttributeValue.setFeedAttributeId(feedDetails....
class class_name[name] begin[{] method[createDsaUrlAddOperation, return_type[type[FeedItemOperation]], modifier[private static], parameter[feedDetails, url, labelName]] begin[{] local_variable[type[FeedItemAttributeValue], urlAttributeValue] call[urlAttributeValue.setFeedAttributeId, pa...
Keyword[private] Keyword[static] identifier[FeedItemOperation] identifier[createDsaUrlAddOperation] operator[SEP] identifier[DSAFeedDetails] identifier[feedDetails] , identifier[String] identifier[url] , identifier[String] identifier[labelName] operator[SEP] { identifier[FeedItemAttributeValue] identifier[urlA...
@SuppressWarnings("unchecked") public static <T> Map<String, T> fromJsonAsMap(Class<T> eleType, Reader reader) { return (Map<String, T>) fromJson(NutType.mapStr(eleType), reader); }
class class_name[name] begin[{] method[fromJsonAsMap, return_type[type[Map]], modifier[public static], parameter[eleType, reader]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=eleType, postfix_operators=[], prefix_operators=[], qualifier...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Map] operator[<] identifier[String] , identifier[T] operator[>] identifier[fromJsonAsMap] operator[SEP] identifier[Class] operator[<] identifier[T] ope...
protected PreparedStatement getPreparedStatement(String sql) throws SQLException { // Inject the schema name into the SQL String replacedSQL = injectSchema(sql); return getPreparedStatement(replacedSQL, replacedSQL); }
class class_name[name] begin[{] method[getPreparedStatement, return_type[type[PreparedStatement]], modifier[protected], parameter[sql]] begin[{] local_variable[type[String], replacedSQL] return[call[.getPreparedStatement, parameter[member[.replacedSQL], member[.replacedSQL]]]] end[}] END[}]
Keyword[protected] identifier[PreparedStatement] identifier[getPreparedStatement] operator[SEP] identifier[String] identifier[sql] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[String] identifier[replacedSQL] operator[=] identifier[injectSchema] operator[SEP] identifier[sql] operator[SEP] o...
public static File findFile(File rootDir, FilenameFilter filter) { File[] files = rootDir.listFiles(filter); Arrays.sort(files); if (files.length > 0) { return files[0]; } files = rootDir.listFiles(directoryFilter); Arrays.sort(files); for (File subDi...
class class_name[name] begin[{] method[findFile, return_type[type[File]], modifier[public static], parameter[rootDir, filter]] begin[{] local_variable[type[File], files] call[Arrays.sort, parameter[member[.files]]] if[binary_operation[member[files.length], >, literal[0]]...
Keyword[public] Keyword[static] identifier[File] identifier[findFile] operator[SEP] identifier[File] identifier[rootDir] , identifier[FilenameFilter] identifier[filter] operator[SEP] { identifier[File] operator[SEP] operator[SEP] identifier[files] operator[=] identifier[rootDir] operator[SEP] identifier[listFil...
@Override public void sessionClosed(NextFilter nextFilter, IoSession session) throws SSLException { SslHandler handler = getSslSessionHandler(session); try { synchronized (handler) { // release resources handler.destroy(); } ...
class class_name[name] begin[{] method[sessionClosed, return_type[void], modifier[public], parameter[nextFilter, session]] begin[{] local_variable[type[SslHandler], handler] TryStatement(block=[SynchronizedStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=des...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[sessionClosed] operator[SEP] identifier[NextFilter] identifier[nextFilter] , identifier[IoSession] identifier[session] operator[SEP] Keyword[throws] identifier[SSLException] { identifier[SslHandler] identifier[handler] operator[=] ident...
protected List<MetricDatum> latencyMetricOf(MetricType metricType, Request<?> req, Object response, boolean includesRequestType) { AWSRequestMetrics m = req.getAWSRequestMetrics(); TimingInfo root = m.getTimingInfo(); final String metricName = metricType.name(); List<TimingIn...
class class_name[name] begin[{] method[latencyMetricOf, return_type[type[List]], modifier[protected], parameter[metricType, req, response, includesRequestType]] begin[{] local_variable[type[AWSRequestMetrics], m] local_variable[type[TimingInfo], root] local_variable[type[String], metric...
Keyword[protected] identifier[List] operator[<] identifier[MetricDatum] operator[>] identifier[latencyMetricOf] operator[SEP] identifier[MetricType] identifier[metricType] , identifier[Request] operator[<] operator[?] operator[>] identifier[req] , identifier[Object] identifier[response] , Keyword[boolean] identifier...
@Override protected void eval() { if (srcControl.get() instanceof TextInputControl) { evalTextInputField(); } if (srcControl.get() instanceof ComboBoxBase) { evalComboBoxField(); } }
class class_name[name] begin[{] method[eval, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[call[srcControl.get, parameter[]], instanceof, type[TextInputControl]]] begin[{] call[.evalTextInputField, parameter[]] else begin[{] No...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[eval] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[srcControl] operator[SEP] identifier[get] operator[SEP] operator[SEP] Keyword[instanceof] identifier[TextInputControl] operator[SEP] { identifier[eval...
@SuppressWarnings("unchecked") public static <T> Stream<T> concat(Stream<? extends T> a, Stream<? extends T> b) { return new Stream(Iterators.concat(a.iterator, b.iterator)); }
class class_name[name] begin[{] method[concat, return_type[type[Stream]], modifier[public static], parameter[a, b]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=iterator, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[]), MemberReference...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Stream] operator[<] identifier[T] operator[>] identifier[concat] operator[SEP] identifier[Stream] operator[<] operator[?] Keyword[extends] identifier[T]...
@Override @GraphTransaction public void deleteTrait(String guid, String traitNameToBeDeleted) throws TraitNotFoundException, EntityNotFoundException, RepositoryException { LOG.debug("Deleting trait={} from entity={}", traitNameToBeDeleted, guid); GraphTransactionInterceptor.lockObjectAndReleaseP...
class class_name[name] begin[{] method[deleteTrait, return_type[void], modifier[public], parameter[guid, traitNameToBeDeleted]] begin[{] call[LOG.debug, parameter[literal["Deleting trait={} from entity={}"], member[.traitNameToBeDeleted], member[.guid]]] call[GraphTransactionInt...
annotation[@] identifier[Override] annotation[@] identifier[GraphTransaction] Keyword[public] Keyword[void] identifier[deleteTrait] operator[SEP] identifier[String] identifier[guid] , identifier[String] identifier[traitNameToBeDeleted] operator[SEP] Keyword[throws] identifier[TraitNotFoundException] , identifier[Enti...
public Object evaluate(String scriptName, Reader reader) { try { scriptEngine.put(ScriptEngine.FILENAME, scriptName); return scriptEngine.eval(reader); } catch (ScriptException e) { throw new BundlingProcessException("Error while evaluating script : " + scriptName, e); } }
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[public], parameter[scriptName, reader]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FILENAME, postfix_operators=[], prefix_operators=[], qualifier=Scri...
Keyword[public] identifier[Object] identifier[evaluate] operator[SEP] identifier[String] identifier[scriptName] , identifier[Reader] identifier[reader] operator[SEP] { Keyword[try] { identifier[scriptEngine] operator[SEP] identifier[put] operator[SEP] identifier[ScriptEngine] operator[SEP] identifier...
private void read() { // define the specification format final int key = 0; final int description = 1; final int offset = 2; final int length = 3; SpecificationFormat format = new SpecificationFormat(key, description, offset, length); // read the h...
class class_name[name] begin[{] method[read, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[int], key] local_variable[type[int], description] local_variable[type[int], offset] local_variable[type[int], length] local_variable[type[Specific...
Keyword[private] Keyword[void] identifier[read] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[key] operator[=] Other[0] operator[SEP] Keyword[final] Keyword[int] identifier[description] operator[=] Other[1] operator[SEP] Keyword[final] Keyword[int] identifier[offset] operator[=] Other[2] o...