signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class ContainerUtil { /** * Returns the cube ID for the container . By default , this is the container * name , but can be overridden by the user in the container properties , e . g . * < code > & lt ; cubeId & gt ; pod - name & lt ; / cubeId & gt ; < / code > . * @ param container * the arquillian conta...
final String cubeID ; final Map < String , String > containerProperties = container . getContainerConfiguration ( ) . getContainerProperties ( ) ; if ( containerProperties == null ) { // test cases may not mock entire hierarchy cubeID = null ; } else { cubeID = containerProperties . get ( "cubeId" ) ; } return cubeID =...
public class NodeHierarchyCreatorImpl { /** * { @ inheritDoc } */ public Node getUserApplicationNode ( SessionProvider sessionProvider , String userName ) throws Exception { } }
Node userNode = getUserNode ( sessionProvider , userName ) ; return dataDistributionManager_ . getDataDistributionType ( DataDistributionMode . NONE ) . getOrCreateDataNode ( userNode , getJcrPath ( USER_APPLICATION ) ) ;
public class J4pClient { /** * Execute a single J4pRequest which returns a single response . * @ param pRequest request to execute * @ param pMethod method to use which should be either " GET " or " POST " * @ param pProcessingOptions optional map of processing options * @ param < RESP > response type * @ par...
return this . < RESP , REQ > execute ( pRequest , pMethod , pProcessingOptions , responseExtractor ) ;
public class NFRuleSet { /** * Determine the best fraction rule to use . Rules matching the decimal point from * DecimalFormatSymbols become the main set of rules to use . * @ param originalIndex The index into nonNumericalRules * @ param newRule The new rule to consider * @ param rememberRule Should the new ru...
if ( rememberRule ) { if ( fractionRules == null ) { fractionRules = new LinkedList < NFRule > ( ) ; } fractionRules . add ( newRule ) ; } NFRule bestResult = nonNumericalRules [ originalIndex ] ; if ( bestResult == null ) { nonNumericalRules [ originalIndex ] = newRule ; } else { // We have more than one . Which one i...
public class LogicExpression { /** * Return a list of the arguments contained in the expression . * @ return */ public List < String > getArgs ( ) { } }
List < String > args = new ArrayList < String > ( ) ; getArgs ( this . expression , args ) ; return args ;
public class _Private_Utils { /** * Calls { @ link InputStream # read ( byte [ ] , int , int ) } until the buffer is * filled or EOF is encountered . * This method will block until the request is satisfied . * @ param in The stream to read from . * @ param buf The buffer to read to . * @ return the number of ...
return readFully ( in , buf , 0 , buf . length ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractTunnelType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractTunnelType } { @ code...
return new JAXBElement < AbstractTunnelType > ( __AbstractTunnel_QNAME , AbstractTunnelType . class , null , value ) ;
public class ChannelServiceImpl { /** * 根据NodeId和Channel状态找到对应的Channel列表 。 */ public List < Channel > listByNodeId ( Long nodeId , ChannelStatus ... statuses ) { } }
List < Channel > channels = new ArrayList < Channel > ( ) ; List < Channel > results = new ArrayList < Channel > ( ) ; try { List < Pipeline > pipelines = pipelineService . listByNodeId ( nodeId ) ; List < Long > pipelineIds = new ArrayList < Long > ( ) ; for ( Pipeline pipeline : pipelines ) { pipelineIds . add ( pipe...
public class Functions { /** * A { @ link Collector } that collects { @ linkplain Optional optional } values to a list . * The collector only collects values that are { @ linkplain Optional # isPresent ( ) present } . * @ param < T > the type of values to collect . * @ return a collector that collects optional va...
return ( Collector ) FLAT_LIST ;
public class MoreMeters { /** * Returns a newly - registered { @ link Timer } configured by { @ link # distributionStatisticConfig ( ) } . */ public static Timer newTimer ( MeterRegistry registry , String name , Iterable < Tag > tags ) { } }
requireNonNull ( registry , "registry" ) ; requireNonNull ( name , "name" ) ; requireNonNull ( tags , "tags" ) ; final Duration maxExpectedValue = Optional . ofNullable ( distStatCfg . getMaximumExpectedValue ( ) ) . map ( Duration :: ofNanos ) . orElse ( null ) ; final Duration minExpectedValue = Optional . ofNullable...
public class LottieDrawable { /** * Sets the minimum frame that the animation will start from when playing or looping . */ public void setMinFrame ( final int minFrame ) { } }
if ( composition == null ) { lazyCompositionTasks . add ( new LazyCompositionTask ( ) { @ Override public void run ( LottieComposition composition ) { setMinFrame ( minFrame ) ; } } ) ; return ; } animator . setMinFrame ( minFrame ) ;
public class CollUtil { /** * 过滤 < br > * 过滤过程通过传入的Filter实现来过滤返回需要的元素内容 , 这个Filter实现可以实现以下功能 : * < pre > * 1 、 过滤出需要的对象 , { @ link Filter # accept ( Object ) } 方法返回true的对象将被加入结果集合中 * < / pre > * @ param < T > 集合元素类型 * @ param list 集合 * @ param filter 过滤器 * @ return 过滤后的数组 * @ since 4.1.8 */ public sta...
if ( null == list || null == filter ) { return list ; } final List < T > list2 = ( list instanceof LinkedList ) ? new LinkedList < T > ( ) : new ArrayList < T > ( list . size ( ) ) ; for ( T t : list ) { if ( filter . accept ( t ) ) { list2 . add ( t ) ; } } return list2 ;
public class SocketBindingJBossASClient { /** * Adds a socket binding with the given name in the named socket binding group . * If sysPropName is null , this simply sets the port number explicitly to the given port number . * If sysPropName is not null , this sets the port to the expression " $ { sysPropName : port...
if ( isSocketBinding ( socketBindingGroupName , socketBindingName ) ) { return ; } String portValue ; if ( sysPropName != null ) { portValue = "${" + sysPropName + ":" + port + "}" ; } else { portValue = String . valueOf ( port ) ; } Address addr = Address . root ( ) . add ( SOCKET_BINDING_GROUP , socketBindingGroupNam...
public class WebService { /** * method to combine the new MonomerStore to the existing one , in case of * xHELM as input * @ param monomerStore * MonomerStore * @ throws MonomerLoadingException * if the monomer store can not be read * @ throws IOException * if the monomer store can not be read * @ throw...
for ( Monomer monomer : monomerStore . getAllMonomersList ( ) ) { MonomerFactory . getInstance ( ) . getMonomerStore ( ) . addNewMonomer ( monomer ) ; // save monomer db to local file after successful update / / MonomerFactory . getInstance ( ) . saveMonomerCache ( ) ; }
public class Quartz { /** * Method to initialize the Quartz . * @ throws EFapsException on error */ public static void initialize ( ) throws EFapsException { } }
Quartz . QUARTZ = new Quartz ( ) ; try { // Kernel - Configuration final SystemConfiguration config = EFapsSystemConfiguration . get ( ) ; final Properties props = config . getAttributeValueAsProperties ( KernelSettings . QUARTZPROPS ) ; final StdSchedulerFactory schedFact = new StdSchedulerFactory ( ) ; javax . naming...
public class BsfUtils { /** * Transform a snake - case string to a camel - case one . * @ param snakeCase * @ return */ public static String snakeCaseToCamelCase ( String snakeCase ) { } }
if ( snakeCase . contains ( "-" ) ) { StringBuilder camelCaseStr = new StringBuilder ( snakeCase . length ( ) ) ; boolean toUpperCase = false ; for ( char c : snakeCase . toCharArray ( ) ) { if ( c == '-' ) toUpperCase = true ; else { if ( toUpperCase ) { toUpperCase = false ; c = Character . toUpperCase ( c ) ; } came...
public class CmsLinkProcessor { /** * Visitor method to process a tag ( start ) . < p > * @ param tag the tag to process */ @ Override public void visitTag ( Tag tag ) { } }
if ( tag instanceof LinkTag ) { processLinkTag ( ( LinkTag ) tag ) ; } else if ( tag instanceof ImageTag ) { processImageTag ( ( ImageTag ) tag ) ; } else if ( tag instanceof ObjectTag ) { processObjectTag ( ( ObjectTag ) tag ) ; } else { // there are no specialized tag classes for these tags : ( if ( TAG_EMBED . equal...
public class snmpuser { /** * Use this API to fetch filtered set of snmpuser resources . * filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */ public static snmpuser [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
snmpuser obj = new snmpuser ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; snmpuser [ ] response = ( snmpuser [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class FSDirectory { /** * Get { @ link INode } associated with the file . */ INodeFile getFileINode ( String src ) { } }
byte [ ] [ ] components = INodeDirectory . getPathComponents ( src ) ; readLock ( ) ; try { INode inode = rootDir . getNode ( components ) ; if ( inode == null || inode . isDirectory ( ) ) return null ; return ( INodeFile ) inode ; } finally { readUnlock ( ) ; }
public class TraceEventHelper { /** * Get the structured pool data * @ param data The data * @ param ignoreDelist Should DELIST be ignored * @ param ignoreTracking Should TRACKING be ignored * @ param ignoreIncomplete Ignore incomplete traces * @ return The result */ public static Map < String , List < Intera...
// Pool - > Interactions Map < String , List < Interaction > > result = new TreeMap < String , List < Interaction > > ( ) ; // Pool - > ConnectionListener - > Events Map < String , Map < String , List < TraceEvent > > > temp = new TreeMap < String , Map < String , List < TraceEvent > > > ( ) ; for ( int i = 0 ; i < dat...
public class TransactionMethodInterceptor { /** * Complete the transaction * @ param tx * @ param readOnly * the read - only flag on the transaction ( if true , the transaction will be rolled back , otherwise the transaction will be */ private final void complete ( Transaction tx , boolean readOnly ) { } }
if ( log . isTraceEnabled ( ) ) log . trace ( "Complete " + tx ) ; if ( ! readOnly ) tx . commit ( ) ; else tx . rollback ( ) ;
public class Cluster { /** * Get the zone where this cluster is located . */ @ SuppressWarnings ( "WeakerAccess" ) public String getZone ( ) { } }
LocationName location = Verify . verifyNotNull ( LocationName . parse ( stateProto . getLocation ( ) ) ) ; // noinspection ConstantConditions return location . getLocation ( ) ;
public class CommerceOrderLocalServiceUtil { /** * Deletes the commerce order from the database . Also notifies the appropriate model listeners . * @ param commerceOrder the commerce order * @ return the commerce order that was removed * @ throws PortalException */ public static com . liferay . commerce . model ....
return getService ( ) . deleteCommerceOrder ( commerceOrder ) ;
public class Channel { /** * Update channel with specified channel configuration * @ param updateChannelConfiguration Channel configuration * @ param signers signers * @ param orderer The specific orderer to use . * @ throws TransactionException * @ throws InvalidArgumentException */ public void updateChannel...
checkChannelState ( ) ; checkOrderer ( orderer ) ; try { final long startLastConfigIndex = getLastConfigIndex ( orderer ) ; logger . trace ( format ( "startLastConfigIndex: %d. Channel config wait time is: %d" , startLastConfigIndex , CHANNEL_CONFIG_WAIT_TIME ) ) ; sendUpdateChannel ( updateChannelConfiguration . getUp...
public class TableStreamer { /** * Activate the stream with the given predicates on the given table . * @ param context Context * @ param undoToken The undo token * @ param predicates Predicates associated with the stream * @ return true if activation succeeded . */ public boolean activate ( SystemProcedureExec...
if ( ! context . activateTableStream ( m_tableId , m_type , undo , predicates ) ) { String tableName = CatalogUtil . getTableNameFromId ( context . getDatabase ( ) , m_tableId ) ; log . debug ( "Attempted to activate a table stream of type " + m_type + "for table " + tableName + " and failed" ) ; return false ; } retur...
public class WorkspacePanel { /** * Assigns workspace names to the combo box into column 2. * @ param values */ public void setWorkspaceNames ( String [ ] values ) { } }
col2 . combo . setValueMap ( values ) ; if ( values . length > 0 ) { col2 . combo . setValue ( values [ 0 ] ) ; }
public class ConstraintSolver { /** * Get all the { @ link Variable } s contained in this { @ link ConstraintSolver } ' s { @ link ConstraintNetwork } . * @ param component Only { @ link Variable } s associated with the given label ( component ) should be returned . * @ return all the { @ link Variable } s containe...
ArrayList < Variable > ret = this . components . get ( component ) ; if ( ret == null ) return new Variable [ 0 ] ; ArrayList < Variable > retFiltered = new ArrayList < Variable > ( ) ; for ( Variable v : ret ) { boolean found = false ; if ( v . getMarking ( ) != null ) for ( Object m : markingsToExclude ) { if ( m . e...
public class LogicalContainerAwareReentrantTypeResolver { /** * Assign computed type references to the identifiable structural elements in the processed type . * @ return the stacked resolved types that shall be used in the computation . */ protected Map < JvmIdentifiableElement , ResolvedTypes > prepare ( ResolvedTy...
Map < JvmIdentifiableElement , ResolvedTypes > resolvedTypesByContext = Maps . newHashMapWithExpectedSize ( 3 ) ; JvmType root = getRootJvmType ( ) ; rootedInstances . add ( root ) ; recordExpressions ( root ) ; doPrepare ( resolvedTypes , featureScopeSession , root , resolvedTypesByContext ) ; return resolvedTypesByCo...
public class CommandLine { /** * Equivalent to { @ code new CommandLine ( command ) . usage ( out , ansi ) } . * See { @ link # usage ( PrintStream , Help . Ansi ) } for details . * @ param command the object annotated with { @ link Command } , { @ link Option } and { @ link Parameters } * @ param out the print s...
toCommandLine ( command , new DefaultFactory ( ) ) . usage ( out , ansi ) ;
public class CRDTReplicationMigrationService { /** * Schedules a { @ link CRDTMigrationTask } with a delay of { @ code delaySeconds } * seconds . */ void scheduleMigrationTask ( long delaySeconds ) { } }
if ( nodeEngine . getLocalMember ( ) . isLiteMember ( ) ) { return ; } nodeEngine . getExecutionService ( ) . schedule ( CRDT_REPLICATION_MIGRATION_EXECUTOR , new CRDTMigrationTask ( nodeEngine , this ) , delaySeconds , TimeUnit . SECONDS ) ;
public class BytecodeScanner { /** * Scan the raw bytecodes of a method . * @ param instructionList * the bytecodes * @ param callback * the callback object */ public void scan ( byte [ ] instructionList , Callback callback ) { } }
boolean wide = false ; for ( int index = 0 ; index < instructionList . length ; ) { short opcode = unsignedValueOf ( instructionList [ index ] ) ; callback . handleInstruction ( opcode , index ) ; if ( DEBUG ) { System . out . println ( index + ": " + Const . getOpcodeName ( opcode ) ) ; } switch ( opcode ) { // Single...
public class ProvenanceChallenge2 { /** * / * ( non - Javadoc ) * @ see org . openprovenance . prov . tutorial . tutorial5 . Challenge # softmean ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . la...
Collection < StatementOrBundle > ll = new LinkedList < StatementOrBundle > ( ) ; Activity a9 = pFactory . newActivity ( pc ( activity ) ) ; pFactory . addType ( a9 , pFactory . newQualifiedName ( PRIM_NS , SOFTMEAN , PRIM_PREFIX ) , name . PROV_QUALIFIED_NAME ) ; Entity e15 = pFactory . newEntity ( pc ( imgfile1 ) ) ; ...
public class CpcSketch { /** * Returns a copy of this sketch * @ return a copy of this sketch */ CpcSketch copy ( ) { } }
final CpcSketch copy = new CpcSketch ( lgK , seed ) ; copy . numCoupons = numCoupons ; copy . mergeFlag = mergeFlag ; copy . fiCol = fiCol ; copy . windowOffset = windowOffset ; copy . slidingWindow = ( slidingWindow == null ) ? null : slidingWindow . clone ( ) ; copy . pairTable = ( pairTable == null ) ? null : pairTa...
public class CmsSystemConfiguration { /** * Sets the mail settings . < p > * @ param mailSettings the mail settings to set . */ public void setMailSettings ( CmsMailSettings mailSettings ) { } }
m_mailSettings = mailSettings ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_MAIL_SETTINGS_1 , mailSettings ) ) ; }
public class DefaultBrokerCache { /** * Get an object for the specified factory , key , and broker at the scope selected by the factory . { @ link DefaultBrokerCache } * guarantees that calling this method from brokers with the same leaf scope will return the same object . */ @ SuppressWarnings ( value = "unchecked" ...
// figure out auto scope RawJobBrokerKey autoscopeCacheKey = new RawJobBrokerKey ( broker . getWrappedSelfScope ( ) , factory . getName ( ) , key ) ; ScopeWrapper < S > selectedScope = this . autoScopeCache . get ( autoscopeCacheKey , new Callable < ScopeWrapper < S > > ( ) { @ Override public ScopeWrapper < S > call (...
public class FileListOperations { /** * Optimized implementation to perform both a remove and an add * @ param toRemove * @ param toAdd */ public void removeAndAdd ( final String toRemove , final String toAdd ) { } }
writeLock . lock ( ) ; try { FileListCacheValue fileList = getFileList ( ) ; boolean done = fileList . addAndRemove ( toAdd , toRemove ) ; if ( done ) { updateFileList ( fileList ) ; if ( trace ) { log . trace ( "Updated file listing: added " + toAdd + " and removed " + toRemove ) ; } } } finally { writeLock . unlock (...
public class Descriptives { /** * Calculates the modes ( more than one if found ) . * @ param flatDataCollection * @ return */ public static FlatDataCollection mode ( FlatDataCollection flatDataCollection ) { } }
AssociativeArray frequencies = frequencies ( flatDataCollection ) ; int maxCounter = 0 ; FlatDataList modeList = new FlatDataList ( ) ; for ( Map . Entry < Object , Object > entry : frequencies . entrySet ( ) ) { Object key = entry . getKey ( ) ; int count = ( ( Number ) entry . getValue ( ) ) . intValue ( ) ; if ( max...
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertTileSetColorCSPACEToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class Util { /** * Clears ( sets to null ) all blocks between off ( inclusive ) and off + len ( exclusive ) in the given * array . */ static void clear ( byte [ ] [ ] blocks , int off , int len ) { } }
// this is significantly faster than looping or Arrays . fill ( which loops ) , particularly when // the length of the slice to be cleared is < = to ARRAY _ LEN ( in that case , it ' s faster by a // factor of 2) int remaining = len ; while ( remaining > ARRAY_LEN ) { System . arraycopy ( NULL_ARRAY , 0 , blocks , off ...
public class MenuDrawer { /** * Attaches the MenuDrawer to the Activity . * @ param activity The activity the menu drawer will be attached to . * @ param position Where to position the menu . * @ return The created MenuDrawer instance . */ public static MenuDrawer attach ( Activity activity , Position position ) ...
return attach ( activity , Type . BEHIND , position ) ;
public class ARCoreAnchor { /** * Update the anchor based on arcore best knowledge of the world * @ param scale */ protected void update ( float scale ) { } }
// Updates only when the plane is in the scene GVRSceneObject owner = getOwnerObject ( ) ; if ( ( owner != null ) && isEnabled ( ) && owner . isEnabled ( ) ) { convertFromARtoVRSpace ( scale ) ; }
public class TextFormatter { /** * Similar to { @ link # appendElapsedAndSize ( StringBuilder , long , long , long ) } except that this method * creates a new { @ link StringBuilder } . */ public static StringBuilder elapsedAndSize ( long startTimeNanos , long endTimeNanos , long size ) { } }
final StringBuilder buf = new StringBuilder ( 16 ) ; appendElapsedAndSize ( buf , startTimeNanos , endTimeNanos , size ) ; return buf ;
public class WebRiskServiceV1Beta1Client { /** * Gets the full hashes that match the requested hash prefix . This is used after a hash prefix is * looked up in a threatList and there is a match . The client side threatList only holds partial * hashes so the client must query this method to determine if there is a f...
SearchHashesRequest request = SearchHashesRequest . newBuilder ( ) . setHashPrefix ( hashPrefix ) . addAllThreatTypes ( threatTypes ) . build ( ) ; return searchHashes ( request ) ;
public class MessageProcessor { /** * Indicates that the WAS server is closing for E - business . * This event is propagated to all instances of mediation point , so the * mediations can all be closed properly . * Part of the JsEngineComponent interface . */ @ Override public void serverStopping ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "serverStopping" ) ; synchronized ( _mpStartStopLock ) { _isWASOpenForEBusiness = false ; } // If the destination manager is null , then don ' t even attempt this . // There is a possibility that the destination manager inst...
public class Logger { /** * Log a message and a throwable with level { @ link LogLevel # VERBOSE } . * @ param msg the message to log * @ param tr the throwable to be log */ public void v ( String msg , Throwable tr ) { } }
println ( LogLevel . VERBOSE , msg , tr ) ;
public class PhoneNumberUtil { /** * parse phone number . * @ param pphoneNumber phone number as string * @ param pcountryCode iso code of country * @ return PhoneNumberData */ public ValueWithPos < PhoneNumberData > parsePhoneNumber ( final ValueWithPos < String > pphoneNumber , final String pcountryCode ) { } }
return this . parsePhoneNumber ( pphoneNumber , pcountryCode , Locale . ROOT ) ;
public class PubSubInputHandler { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . DownstreamControl # sendFlushedMessage ( com . ibm . ws . sib . utils . SIBUuid12) * This is only called from attemptFlush ( ) as flushQuery ' s are processed * by the PubSubOuputHandler */ @ O...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "sendFlushedMessage" , new Object [ ] { streamID } ) ; // This flush should be broadcast to all downstream neighbors // for this cell as it is the result of a startFlush ( ) // This is a bit of a kludge since we may be sendi...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link ArrayAssociationType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link ArrayAssociationType } { @ ...
return new JAXBElement < ArrayAssociationType > ( _Members_QNAME , ArrayAssociationType . class , null , value ) ;
public class KafkaMsgConsumer { /** * Gets number of partitions of a topic . * @ param topicName * @ return topic ' s number of partitions , or { @ code 0 } if the topic does not * exist * @ since 1.2.0 */ public int getNumPartitions ( String topicName ) { } }
Map < String , List < PartitionInfo > > topicInfo = getTopicInfo ( ) ; List < PartitionInfo > partitionInfo = topicInfo != null ? topicInfo . get ( topicName ) : null ; return partitionInfo != null ? partitionInfo . size ( ) : 0 ;
public class ExtensionStdMenus { /** * private PopupMenuShowResponseInBrowser getPopupMenuShowResponseInBrowser ( int menuIndex ) { if * ( popupMenuShowResponseInBrowser = = null ) { / / TODO ! popupMenuShowResponseInBrowser = new * PopupMenuShowResponseInBrowser ( Constant . messages . getString ( " history . show...
if ( popupExcludeFromProxyMenu == null ) { popupExcludeFromProxyMenu = new PopupExcludeFromProxyMenu ( ) ; popupExcludeFromProxyMenu . setMenuIndex ( menuIndex ) ; } return popupExcludeFromProxyMenu ;
public class StorIOSQLite { /** * Allows observer changes of required table . * Notice that { @ link StorIOSQLite } knows only about changes * that happened as a result of Put or Delete Operations executed * on this instance of { @ link StorIOSQLite } . * Emission may happen on any thread that performed Put or ...
checkNotEmpty ( table , "Table can not be null or empty" ) ; return observeChangesInTables ( Collections . singleton ( table ) , backpressureStrategy ) ;
public class HttpHelper { /** * Downloads the entire resource instead of part . * @ param uri URI to retrieve * @ param type expected text - like MIME type of that content * @ return content as a { @ code String } * @ throws IOException if the content can ' t be retrieved because of a bad URI , network problem ...
return downloadViaHttp ( uri , type , Integer . MAX_VALUE ) ;
public class MatrixFeatures_ZDRM { /** * Checks to see if any element in the matrix is NaN . * @ param m A matrix . Not modified . * @ return True if any element in the matrix is NaN . */ public static boolean hasNaN ( ZMatrixD1 m ) { } }
int length = m . getDataLength ( ) ; for ( int i = 0 ; i < length ; i ++ ) { if ( Double . isNaN ( m . data [ i ] ) ) return true ; } return false ;
public class AbstractGenerateSoyEscapingDirectiveCode { /** * Called reflectively when Ant sees { @ code < libdefined > } . */ public void addConfiguredLibdefined ( FunctionNamePredicate p ) { } }
final Pattern namePattern = p . namePattern ; if ( namePattern == null ) { throw new IllegalStateException ( "Please specify a pattern attribute for <libdefined>" ) ; } availableIdentifiers = availableIdentifiers . or ( identifierName -> namePattern . matcher ( identifierName ) . matches ( ) ) ;
public class MpRoSitePool { /** * Inform the pool that the work associated with the given txnID is complete */ void completeWork ( long txnId ) { } }
if ( m_shuttingDown ) { return ; } MpRoSiteContext site = m_busySites . remove ( txnId ) ; if ( site == null ) { throw new RuntimeException ( "No busy site for txnID: " + txnId + " found, shouldn't happen." ) ; } // check the catalog versions , only push back onto idle if the catalog hasn ' t changed // otherwise , jus...
public class InteractiveElement { /** * ( non - Javadoc ) * @ see qc . automation . framework . widget . IClickableElement # doubleClick ( ) */ @ Override public void doubleClick ( ) throws WidgetException { } }
try { Actions builder = new Actions ( getGUIDriver ( ) . getWrappedDriver ( ) ) ; synchronized ( InteractiveElement . class ) { getGUIDriver ( ) . focus ( ) ; builder . doubleClick ( getWebElement ( ) ) . build ( ) . perform ( ) ; } } catch ( Exception e ) { throw new WidgetException ( "Error while double clicking elem...
public class ForkJoinTask { /** * Returns the result of the computation when it { @ link # isDone is * done } . This method differs from { @ link # get ( ) } in that * abnormal completion results in { @ code RuntimeException } or * { @ code Error } , not { @ code ExecutionException } , and that * interrupts of ...
int s ; if ( ( s = doJoin ( ) & DONE_MASK ) != NORMAL ) reportException ( s ) ; return getRawResult ( ) ;
public class DisambiguatedAlchemyEntity { /** * Set link to OpenCyc . Note : Provided only for entities that exist in this * that exist in this linked data - set . * @ param opencyc link to OpenCyc */ public void setOpencyc ( String opencyc ) { } }
if ( opencyc != null ) { opencyc = opencyc . trim ( ) ; } this . opencyc = opencyc ;
public class CatalogEntryMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CatalogEntry catalogEntry , ProtocolMarshaller protocolMarshaller ) { } }
if ( catalogEntry == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( catalogEntry . getDatabaseName ( ) , DATABASENAME_BINDING ) ; protocolMarshaller . marshall ( catalogEntry . getTableName ( ) , TABLENAME_BINDING ) ; } catch ( Exception e ...
public class AbstractRegistry { /** * Helper used to get or create an instance of a core meter type . This is mostly used * internally to this implementation , but may be useful in rare cases for creating * customizations based on a core type in a sub - class . * @ param id * Identifier used to lookup this mete...
try { Preconditions . checkNotNull ( id , "id" ) ; Meter m = Utils . computeIfAbsent ( meters , id , i -> compute ( factory . apply ( i ) , dflt ) ) ; if ( ! cls . isAssignableFrom ( m . getClass ( ) ) ) { logTypeError ( id , cls , m . getClass ( ) ) ; m = dflt ; } return ( T ) m ; } catch ( Exception e ) { propagate (...
public class ReedSolomonDecoder { /** * Decode the inputs provided and write to the output . * @ param inputs array of inputs . * @ param erasedLocations indexes in the inputs which are known to be erased . * @ param erasedLocationToFix index in the inputs which needs to be fixed . * @ param limit maximum numbe...
LOG . info ( "Need to write " + limit + " bytes for erased location index " + erasedLocationToFix ) ; if ( crc != null ) { crc . reset ( ) ; } int [ ] tmp = new int [ inputs . length ] ; int [ ] decoded = new int [ erasedLocations . length ] ; // Loop while the number of written bytes is less than the max . long writte...
public class URI { /** * Get the path for this URI ( optionally with the query string and * fragment ) . * @ param p _ includeQueryString if true ( and query string is not null ) , * then a " ? " followed by the query string * will be appended * @ param p _ includeFragment if true ( and fragment is not null )...
StringBuffer pathString = new StringBuffer ( m_path ) ; if ( p_includeQueryString && m_queryString != null ) { pathString . append ( '?' ) ; pathString . append ( m_queryString ) ; } if ( p_includeFragment && m_fragment != null ) { pathString . append ( '#' ) ; pathString . append ( m_fragment ) ; } return pathString ....
public class Nodes { /** * Creates a new Node ( of the same type as the original node ) that * is similar to the orginal but doesn ' t contain any empty text or * CDATA nodes and where all textual content including attribute * values or comments are trimmed and normalized . * < p > " normalized " in this contex...
Node cloned = original . cloneNode ( true ) ; cloned . normalize ( ) ; handleWsRec ( cloned , true ) ; return cloned ;
public class RegionOperationClient { /** * Retrieves the specified region - specific Operations resource . * < p > Sample code : * < pre > < code > * try ( RegionOperationClient regionOperationClient = RegionOperationClient . create ( ) ) { * ProjectRegionOperationName operation = ProjectRegionOperationName . o...
GetRegionOperationHttpRequest request = GetRegionOperationHttpRequest . newBuilder ( ) . setOperation ( operation ) . build ( ) ; return getRegionOperation ( request ) ;
public class HadoopArchives { /** * this assumes that there are two types of files file / dir * @ param fs the input filesystem * @ param p the top level path * @ param out the list of paths output of recursive ls * @ throws IOException */ private void recursivels ( FileSystem fs , Path p , List < FileStatus > ...
FileStatus fstatus = fs . getFileStatus ( p ) ; if ( ! fstatus . isDir ( ) ) { out . add ( fstatus ) ; return ; } else { out . add ( fstatus ) ; FileStatus [ ] listStatus = fs . listStatus ( p ) ; for ( FileStatus stat : listStatus ) { recursivels ( fs , stat . getPath ( ) , out ) ; } }
public class WhiteboxImpl { /** * Copy state . * @ param object the object * @ param context the context * @ param strategy The field matching strategy . */ static void copyState ( Object object , Object context , FieldMatchingStrategy strategy ) { } }
if ( object == null ) { throw new IllegalArgumentException ( "object to set state cannot be null" ) ; } else if ( context == null ) { throw new IllegalArgumentException ( "context cannot be null" ) ; } else if ( strategy == null ) { throw new IllegalArgumentException ( "strategy cannot be null" ) ; } Set < Field > allF...
public class PcapPktHdr { /** * Create new PcapPktHdr instance . * @ param caplen capture length . * @ param len length . * @ param tvSec tv _ sec . * @ param tvUsec tv _ usec . * @ return returns PcapPktHdr . */ public static PcapPktHdr newInstance ( final int caplen , final int len , final int tvSec , final...
return new PcapPktHdr ( caplen , len , tvSec , tvUsec ) ;
public class Reflection { /** * Serialize a ( { @ linkplain Serializable serializable } ) lambda . * @ param lambda the ( { @ linkplain Serializable serializable } ) lambda to serialize . * @ return the serialized form of the given lambda . */ private static SerializedLambda serializedLambda ( Serializable lambda )...
try { Method replaceMethod = lambda . getClass ( ) . getDeclaredMethod ( "writeReplace" ) ; replaceMethod . setAccessible ( true ) ; return ( SerializedLambda ) replaceMethod . invoke ( lambda ) ; } catch ( Exception e ) { throw new IllegalStateException ( "Reflection failed." ) ; }
public class CommsByteBuffer { /** * Puts an SIDestinationAddress into the byte buffer . * @ param destAddr * @ param fapLevel the FAP level of this connection . Used to decide what information to flow down the wire . */ public synchronized void putSIDestinationAddress ( SIDestinationAddress destAddr , short fapLev...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "putSIDestinationAddress" , new Object [ ] { destAddr , Short . valueOf ( fapLevel ) } ) ; checkValid ( ) ; String destName = null ; String busName = null ; byte [ ] uuid = new byte [ 0 ] ; boolean localOnly = false ;...
public class Configuration { /** * Set the array of string values for the < code > name < / code > property as * as comma delimited values . * @ param name property name . * @ param values The values */ public void setStrings ( String name , String ... values ) { } }
set ( name , StringUtils . join ( values , "," ) ) ;
public class JSDocInfoBuilder { /** * Records that the { @ link JSDocInfo } being built should have its * { @ link JSDocInfo # isFinal ( ) } flag set to { @ code true } . * @ return { @ code true } if the finality was recorded and { @ code false } if it was already defined */ public boolean recordFinality ( ) { } }
if ( ! currentInfo . isFinal ( ) ) { currentInfo . setFinal ( true ) ; populated = true ; return true ; } else { return false ; }
public class BlockManagement { /** * Copies the specified interval of characters for the array . * @ return specified interval */ private String copy ( final char [ ] array , final int start , final int end ) { } }
StringBuilder text = new StringBuilder ( ) ; for ( int j = start ; j < end ; j ++ ) { text . append ( array [ j ] ) ; } return text . toString ( ) ;
public class Strands { /** * Awaits the termination of a given strand , at most for the timeout duration specified . * This method blocks until this strand terminates or the timeout elapses . * @ param strand the strand to join . May be an object of type { @ code Strand } , { @ code Fiber } or { @ code Thread } . ...
Strand . join ( strand , timeout , unit ) ;
public class Logger { /** * Log a message at the WARN level . * @ param marker The marker specific to this log statement * @ param message the message string to be logged * @ param o1 the first argument * @ param o2 the second argument * @ since 1.0.0 */ public void warn ( final Marker marker , final String m...
log . warn ( marker , sanitize ( message ) , o1 , o1 ) ;
public class PossibleMemoryBloat { /** * implements the visitor to look for methods that empty a bloatable field if found , remove these fields from the current list * @ param seen * the opcode of the currently parsed instruction */ @ Override public void sawOpcode ( int seen ) { } }
XField userValue = null ; try { stack . precomputation ( this ) ; if ( ( seen == Const . INVOKEVIRTUAL ) || ( seen == Const . INVOKEINTERFACE ) || ( seen == Const . INVOKEDYNAMIC ) ) { String sig = getSigConstantOperand ( ) ; int argCount = SignatureUtils . getNumParameters ( sig ) ; if ( stack . getStackDepth ( ) > ar...
public class GameOfLife { /** * It is not very efficient but it is simple enough */ public static void emptyMatrix ( byte [ ] [ ] matrix , int maxX , int maxY ) { } }
for ( int i = 0 ; i < maxX ; i ++ ) { for ( int j = 0 ; j < maxY ; j ++ ) { matrix [ i ] [ j ] = 0 ; } }
public class ProcedureExtensions { /** * Curries a procedure that takes two arguments . * @ param procedure * the original procedure . May not be < code > null < / code > . * @ param argument * the fixed first argument of { @ code procedure } . * @ return a procedure that takes one argument . Never < code > n...
if ( procedure == null ) throw new NullPointerException ( "procedure" ) ; return new Procedure1 < P2 > ( ) { @ Override public void apply ( P2 p ) { procedure . apply ( argument , p ) ; } } ;
public class SignalHandler { /** * Register some signal handlers . * @ param LOG The slf4j logger */ public static void register ( final Logger LOG ) { } }
synchronized ( SignalHandler . class ) { if ( registered ) { return ; } registered = true ; final String [ ] SIGNALS = OperatingSystem . isWindows ( ) ? new String [ ] { "TERM" , "INT" } : new String [ ] { "TERM" , "HUP" , "INT" } ; StringBuilder bld = new StringBuilder ( ) ; bld . append ( "Registered UNIX signal hand...
public class Quaterniond { /** * Add the quaternion < code > ( x , y , z , w ) < / code > to this quaternion . * @ param x * the x component of the vector part * @ param y * the y component of the vector part * @ param z * the z component of the vector part * @ param w * the real / scalar component * ...
return add ( x , y , z , w , this ) ;
public class ItemUtils { /** * Converts a map of string to simple objects into the low - level * representation ; or null if the input is null . */ public static Map < String , AttributeValue > fromSimpleMap ( Map < String , Object > map ) { } }
if ( map == null ) return null ; // row with multiple attributes Map < String , AttributeValue > result = new LinkedHashMap < String , AttributeValue > ( ) ; for ( Map . Entry < String , Object > entry : map . entrySet ( ) ) result . put ( entry . getKey ( ) , toAttributeValue ( entry . getValue ( ) ) ) ; return result...
public class AbstractSearchStructure { /** * Returns a { @ link LatLng } object with the geolocation of the vector with the given internal id or null * if the internal id does not exist . Accesses the BDB store ! * @ param iid * The internal id of the vector * @ return The geolocation mapped to the given intern...
if ( iid < 0 || iid > loadCounter ) { System . out . println ( "Internal id " + iid + " is out of range!" ) ; return null ; } DatabaseEntry key = new DatabaseEntry ( ) ; IntegerBinding . intToEntry ( iid , key ) ; DatabaseEntry data = new DatabaseEntry ( ) ; if ( ( iidToGeolocationDB . get ( null , key , data , null ) ...
public class SipServletRequestImpl { /** * ( non - Javadoc ) * @ see java . io . Externalizable # readExternal ( java . io . ObjectInput ) */ public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } }
if ( logger . isDebugEnabled ( ) ) { logger . debug ( "readExternal" ) ; } super . readExternal ( in ) ; String messageString = in . readUTF ( ) ; try { message = SipFactoryImpl . messageFactory . createRequest ( messageString ) ; } catch ( ParseException e ) { throw new IllegalArgumentException ( "Message " + messageS...
public class JsHdrsImpl { /** * Clear the Guaranteed Delivery Remote Browse information in the message . * Javadoc description supplied by JsMessage interface . */ public void clearGuaranteedRemoteBrowse ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "clearGuaranteedRemoteBrowse" ) ; getHdr2 ( ) . setChoiceField ( JsHdr2Access . GUARANTEEDREMOTEBROWSE , JsHdr2Access . IS_GUARANTEEDREMOTEBROWSE_EMPTY ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntry...
public class LatentDirichletAllocation { /** * Utility method that increases the map value by 1. * @ param < K > * @ param map * @ param key */ private < K > void increase ( Map < K , Integer > map , K key ) { } }
map . put ( key , map . getOrDefault ( key , 0 ) + 1 ) ;
public class DRL6Expressions { /** * $ ANTLR start synpred20 _ DRL6Expressions */ public final void synpred20_DRL6Expressions_fragment ( ) throws RecognitionException { } }
// src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 540:8 : ( LEFT _ PAREN primitiveType ) // src / main / resources / org / drools / compiler / lang / DRL6Expressions . g : 540:9 : LEFT _ PAREN primitiveType { match ( input , LEFT_PAREN , FOLLOW_LEFT_PAREN_in_synpred20_DRL6Expressions272...
public class MultiUserChat { /** * Returns a list of < code > Affiliate < / code > with the room outcasts . * @ return a list of < code > Affiliate < / code > with the room outcasts . * @ throws XMPPErrorException if you don ' t have enough privileges to get this information . * @ throws NoResponseException if th...
return getAffiliatesByAdmin ( MUCAffiliation . outcast ) ;
public class PublicKeyRegistryByAliasImpl { /** * Returns the selected public key or null if not found . * @ param keyStoreChooser the keystore chooser * @ param publicKeyChooserByAlias the public key chooser by alias * @ return the selected public key or null if not found */ public PublicKey get ( KeyStoreChoose...
CacheKey cacheKey = new CacheKey ( keyStoreChooser . getKeyStoreName ( ) , publicKeyChooserByAlias . getAlias ( ) ) ; PublicKey retrievedPublicKey = cache . get ( cacheKey ) ; if ( retrievedPublicKey != null ) { return retrievedPublicKey ; } KeyStore keyStore = keyStoreRegistry . get ( keyStoreChooser ) ; if ( keyStore...
public class DefaultImageFormatChecker { /** * Checks if first headerSize bytes of imageHeaderBytes constitute a valid header for a HEIF * image . Details on HEIF header can be found at : < a * href = " http : / / nokiatech . github . io / heif / technical . html " > < / a > * @ param imageHeaderBytes * @ param...
if ( headerSize < HEIF_HEADER_LENGTH ) { return false ; } final byte boxLength = imageHeaderBytes [ 3 ] ; if ( boxLength < 8 ) { return false ; } for ( final String heifFtype : HEIF_HEADER_SUFFIXES ) { final int indexOfHeaderPattern = ImageFormatCheckerUtils . indexOfPattern ( imageHeaderBytes , imageHeaderBytes . leng...
public class OrdinalValue { /** * Compares this value and another according to the defined order , or * checks this number value for membership in a value list . * @ param o a { @ link Value } . * @ return If the provided value is an { @ link OrdinalValue } , returns * { @ link ValueComparator # GREATER _ THAN ...
if ( o == null ) { return ValueComparator . NOT_EQUAL_TO ; } switch ( o . getType ( ) ) { case ORDINALVALUE : OrdinalValue other = ( OrdinalValue ) o ; if ( val == null || other . val == null ) { return ValueComparator . UNKNOWN ; } int c = this . index - other . index ; if ( c == 0 ) { return ValueComparator . EQUAL_T...
public class DatabaseStoreImpl { /** * Automatic table creation . * @ param persistenceServiceUnit persistence service unit * @ throws Exception if an error occurs creating tables . */ private void createTables ( PersistenceServiceUnit persistenceServiceUnit ) throws Exception { } }
// Run under a new transaction and commit right away LocalTransactionCurrent localTranCurrent = this . localTranCurrent ; LocalTransactionCoordinator suspendedLTC = localTranCurrent . suspend ( ) ; EmbeddableWebSphereTransactionManager tranMgr = this . tranMgr ; Transaction suspendedTran = suspendedLTC == null ? tranMg...
public class BigMoney { /** * Returns a copy of this monetary value with a collection of monetary amounts subtracted . * This subtracts the specified amounts from this monetary amount , returning a new object . * The amounts are subtracted one by one as though using { @ link # minus ( BigMoneyProvider ) } . * The...
BigDecimal total = amount ; for ( BigMoneyProvider moneyProvider : moniesToSubtract ) { BigMoney money = checkCurrencyEqual ( moneyProvider ) ; total = total . subtract ( money . amount ) ; } return with ( total ) ;
public class CDocumentCut { /** * return true if n is a descendant of ref * @ param n node to test * @ param ref reference node * @ return true if n is a descendant of ref */ private static boolean isDescendant ( final Node n , final Node ref ) { } }
if ( ref == null ) { return false ; } // end if if ( n == ref ) { return true ; } // end if NodeList nl = ref . getChildNodes ( ) ; for ( int i = 0 ; i < nl . getLength ( ) ; i ++ ) { boolean result = isDescendant ( n , nl . item ( i ) ) ; if ( result ) { return result ; } // end if } // end for return false ;
public class CoreOAuthProviderSupport { /** * Loads the significant parameters ( name - to - value map ) that are to be used to calculate the signature base string . * The parameters will be encoded , per the spec section 9.1. * @ param request The request . * @ return The significan parameters . */ protected Sor...
// first collect the relevant parameters . . . SortedMap < String , SortedSet < String > > significantParameters = new TreeMap < String , SortedSet < String > > ( ) ; // first pull from the request . . . Enumeration parameterNames = request . getParameterNames ( ) ; while ( parameterNames . hasMoreElements ( ) ) { Stri...
public class MemoryFileManager { /** * Returns a { @ linkplain JavaFileObject file object } for output * representing the specified class of the specified kind in the * given location . * < p > Optionally , this file manager might consider the sibling as * a hint for where to place the output . The exact semant...
OutputMemoryJavaFileObject fo ; fo = new OutputMemoryJavaFileObject ( className , kind ) ; classObjects . put ( className , fo ) ; proc . debug ( DBG_FMGR , "Set out file: %s = %s\n" , className , fo ) ; if ( classListener != null ) { classListener . newClassFile ( fo , location , className , kind , sibling ) ; } retur...
public class TopoGraph { /** * Returns a user index value for the chain . */ int getChainUserIndex ( int chain , int index ) { } }
int i = getChainIndex_ ( chain ) ; AttributeStreamOfInt32 stream = m_chainIndices . get ( index ) ; if ( stream . size ( ) <= i ) return - 1 ; return stream . read ( i ) ;
public class ThreadSet { /** * Get threads blocked by any of current threads . */ public @ Nonnull SetType getBlockedThreads ( ) { } }
Set < ThreadLock > acquired = new HashSet < ThreadLock > ( ) ; for ( ThreadType thread : threads ) { acquired . addAll ( thread . getAcquiredLocks ( ) ) ; } Set < ThreadType > blocked = new HashSet < ThreadType > ( ) ; for ( ThreadType thread : runtime . getThreads ( ) ) { if ( acquired . contains ( thread . getWaiting...
public class XmlInOut { /** * Enable or disable all the behaviors . * @ param record The target record . * @ param bEnableRecordBehaviors Enable / disable all the record behaviors . * @ param bEnableFieldBehaviors Enable / disable all the field behaviors . */ public static void enableAllBehaviors ( Record record ...
if ( record == null ) return ; record . setEnableListeners ( bEnableRecordBehaviors ) ; // Disable all file behaviors for ( int iFieldSeq = 0 ; iFieldSeq < record . getFieldCount ( ) ; iFieldSeq ++ ) { BaseField field = record . getField ( iFieldSeq ) ; field . setEnableListeners ( bEnableFieldBehaviors ) ; }
public class SeaGlassLookAndFeel { /** * Returns true if the Style should be updated in response to the specified * PropertyChangeEvent . This forwards to < code > * shouldUpdateStyleOnAncestorChanged < / code > as necessary . * @ param event the property change event . * @ return { @ code true } if the style s...
String eName = event . getPropertyName ( ) ; if ( "name" == eName ) { // Always update on a name change return true ; } else if ( "componentOrientation" == eName ) { // Always update on a component orientation change return true ; } else if ( "ancestor" == eName && event . getNewValue ( ) != null ) { // Only update on ...
public class JobExecutionsInner { /** * Lists all executions in a job agent . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param jobAgentName T...
return listByAgentSinglePageAsync ( resourceGroupName , serverName , jobAgentName , createTimeMin , createTimeMax , endTimeMin , endTimeMax , isActive , skip , top ) . concatMap ( new Func1 < ServiceResponse < Page < JobExecutionInner > > , Observable < ServiceResponse < Page < JobExecutionInner > > > > ( ) { @ Overrid...
public class pqbinding { /** * Use this API to fetch all the pqbinding resources that are configured on netscaler . * This uses pqbinding _ args which is a way to provide additional arguments while fetching the resources . */ public static pqbinding [ ] get ( nitro_service service , pqbinding_args args ) throws Excep...
pqbinding obj = new pqbinding ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; pqbinding [ ] response = ( pqbinding [ ] ) obj . get_resources ( service , option ) ; return response ;