signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class FactoryAssociation { /** * Returns an algorithm for associating features together which uses a brute force greedy algorithm .
* See { @ link AssociateGreedy } for details .
* @ param score Computes the fit score between two features .
* @ param maxError Maximum allowed error / fit score between two f... | AssociateGreedyBase < D > alg ; if ( BoofConcurrency . USE_CONCURRENT ) { alg = new AssociateGreedy_MT < > ( score , backwardsValidation ) ; } else { alg = new AssociateGreedy < > ( score , backwardsValidation ) ; } alg . setMaxFitError ( maxError ) ; return new WrapAssociateGreedy < > ( alg ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIncludeTile ( ) { } } | if ( includeTileEClass == null ) { includeTileEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 401 ) ; } return includeTileEClass ; |
public class JvmTypesBuilder { /** * Attaches the given documentation of the source element to the given jvmElement .
* The documentation is computed lazily . */
public void copyDocumentationTo ( /* @ Nullable */
final EObject source , /* @ Nullable */
JvmIdentifiableElement jvmElement ) { } } | if ( source == null || jvmElement == null ) return ; DocumentationAdapter documentationAdapter = new DocumentationAdapter ( ) { private boolean computed = false ; @ Override public String getDocumentation ( ) { if ( computed ) { return super . getDocumentation ( ) ; } String result = JvmTypesBuilder . this . getDocumen... |
public class CPRuleLocalServiceBaseImpl { /** * Deletes the cp rule from the database . Also notifies the appropriate model listeners .
* @ param cpRule the cp rule
* @ return the cp rule that was removed
* @ throws PortalException */
@ Indexable ( type = IndexableType . DELETE ) @ Override public CPRule deleteCP... | return cpRulePersistence . remove ( cpRule ) ; |
public class VisitState { /** * Puts this visit state in its entry , if it not empty .
* < p > This method is called only by { @ link Workbench # release ( VisitState ) } .
* Note that the associated entry is < em > not < / em > put back on the workbench . Use
* { @ link WorkbenchEntry # putOnWorkbenchIfNotEmpty ... | assert workbenchEntry != null : this ; assert acquired : this ; assert workbenchEntry . acquired : workbenchEntry ; if ( ! isEmpty ( ) ) workbenchEntry . add ( this ) ; acquired = false ; |
public class FindNonProgressingOperationHandler { /** * Separate from other findNonProgressingOp variant to allow unit testing without needing a mock OperationContext */
static String findNonProgressingOp ( Resource resource , boolean forServer , long timeout ) throws OperationFailedException { } } | Resource . ResourceEntry nonProgressing = null ; for ( Resource . ResourceEntry child : resource . getChildren ( ACTIVE_OPERATION ) ) { ModelNode model = child . getModel ( ) ; if ( model . get ( EXCLUSIVE_RUNNING_TIME ) . asLong ( ) > timeout ) { nonProgressing = child ; ControllerLogger . MGMT_OP_LOGGER . tracef ( "n... |
public class SqlClosureElf { /** * Gets an object using a from clause .
* @ param type The type of the desired object .
* @ param clause The WHERE clause .
* @ param args The arguments for the WHERE clause .
* @ param < T > The type of the object .
* @ return The object or { @ code null } */
public static < T... | return SqlClosure . sqlExecute ( c -> OrmElf . objectFromClause ( c , type , clause , args ) ) ; |
public class ModUniqueIdDissector { @ Override public void dissect ( final Parsable < ? > parsable , final String inputname ) throws DissectionFailure { } } | final ParsedField field = parsable . getParsableField ( INPUT_TYPE , inputname ) ; String fieldValue = field . getValue ( ) . getString ( ) ; if ( fieldValue == null || fieldValue . isEmpty ( ) ) { return ; // Nothing to do here
} UniqueIdRec record = decode ( fieldValue ) ; if ( record == null ) { return ; } if ( want... |
public class DcpControlHandler { /** * Once the channel becomes active , start negotiating the dcp control params . */
@ Override public void channelActive ( final ChannelHandlerContext ctx ) throws Exception { } } | controlSettings = dcpControl . getControls ( getServerVersion ( ctx . channel ( ) ) ) . entrySet ( ) . iterator ( ) ; negotiate ( ctx ) ; |
public class Tr { /** * Register the provided class with the trace service and assign it to the
* provided group name . Translated messages will attempt to use the input
* message bundle source .
* @ param aClass
* a valid < code > Class < / code > to register a component for with
* the trace manager . The cl... | TraceComponent tc = new TraceComponent ( aClass . getName ( ) , aClass , group , bundle ) ; registerTraceComponent ( tc ) ; return tc ; |
public class server { /** * Use this API to add server resources . */
public static base_responses add ( nitro_service client , server resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { server addresources [ ] = new server [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new server ( ) ; addresources [ i ] . name = resources [ i ] . name ; addresources [ i ] . ipaddress ... |
public class DropboxEndpoint { /** * Requests the linked account name .
* @ param dropboxApi the { @ link DropboxAPI } .
* @ return the account name ; or null if not linked . */
private String requestAccountName ( DropboxAPI < AndroidAuthSession > dropboxApi ) { } } | String accountName = null ; if ( dropboxApi != null ) { try { accountName = dropboxApi . accountInfo ( ) . displayName ; } catch ( DropboxException e ) { // Do nothing .
} } return accountName ; |
public class D6Crud { /** * Insert the specified model object into the DB
* @ param modelObjects
* @ return true : DB operation success false : failure */
public boolean execInsert ( D6Model [ ] modelObjects ) { } } | final D6Inex includeExcludeColumnNames = null ; return execInsert ( modelObjects , includeExcludeColumnNames , false ) ; |
public class SCoveragePackageMojo { /** * Creates artifact file containing instrumented classes . */
@ Override public void execute ( ) { } } | if ( "pom" . equals ( project . getPackaging ( ) ) ) { getLog ( ) . info ( "Skipping SCoverage execution for project with packaging type 'pom'" ) ; return ; } if ( skip ) { getLog ( ) . info ( "Skipping Scoverage execution" ) ; return ; } long ts = System . currentTimeMillis ( ) ; SCoverageForkedLifecycleConfigurator .... |
public class DataFrameReader { /** * Reads the given file into a table using default options
* Uses converter specified based on given file extension
* Use { @ link # usingOptions ( ReadOptions ) usingOptions } to use non - default options */
public Table file ( File file ) throws IOException { } } | String extension = Files . getFileExtension ( file . getCanonicalPath ( ) ) ; DataReader < ? > reader = registry . getReaderForExtension ( extension ) ; return reader . read ( new Source ( file ) ) ; |
public class NetworkServiceRecordAgent { /** * Create a new NetworkServiceRecord from a NetworkServiceDescriptor .
* @ param id ID of the NetworkServiceDescriptor
* @ param vduVimInstances a HashMap assigning VimInstance names to VirtualDeploymentUnits
* @ param keys an ArrayList of Key names that shall be passed... | HashMap < String , Serializable > jsonBody = new HashMap < > ( ) ; jsonBody . put ( "keys" , keys ) ; jsonBody . put ( "vduVimInstances" , vduVimInstances ) ; jsonBody . put ( "configurations" , configurations ) ; jsonBody . put ( "monitoringIp" , monitoringIp ) ; return ( NetworkServiceRecord ) this . requestPost ( id... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcBSplineSurface ( ) { } } | if ( ifcBSplineSurfaceEClass == null ) { ifcBSplineSurfaceEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 36 ) ; } return ifcBSplineSurfaceEClass ; |
public class TimeZoneFormat { /** * Parse an exemplar location string .
* @ param text the text contains an exemplar location string at the position .
* @ param pos the position .
* @ return The zone ID for the parsed exemplar location . */
private String parseExemplarLocation ( String text , ParsePosition pos ) ... | int startIdx = pos . getIndex ( ) ; int parsedPos = - 1 ; String tzID = null ; EnumSet < NameType > nameTypes = EnumSet . of ( NameType . EXEMPLAR_LOCATION ) ; Collection < MatchInfo > exemplarMatches = _tznames . find ( text , startIdx , nameTypes ) ; if ( exemplarMatches != null ) { MatchInfo exemplarMatch = null ; f... |
public class NewtonUnconstrained { /** * Hess . step = - Grad */
private DoubleMatrix1D calculateNewtonStep ( DoubleMatrix2D hessX , DoubleMatrix1D gradX ) throws Exception { } } | final KKTSolver kktSolver = new BasicKKTSolver ( ) ; if ( isCheckKKTSolutionAccuracy ( ) ) { kktSolver . setCheckKKTSolutionAccuracy ( isCheckKKTSolutionAccuracy ( ) ) ; kktSolver . setToleranceKKT ( getToleranceKKT ( ) ) ; } kktSolver . setHMatrix ( hessX ) ; kktSolver . setGVector ( gradX ) ; DoubleMatrix1D [ ] sol =... |
public class URIUtils { /** * Return the parent Path .
* Treat a URI like a directory path and return the parent directory .
* @ param p the path to return a parent reference to
* @ return the parent path of the URI */
public static String parentPath ( String p ) { } } | if ( p == null || URIUtils . SLASH . equals ( p ) ) return null ; int slash = p . lastIndexOf ( '/' , p . length ( ) - 2 ) ; if ( slash >= 0 ) return p . substring ( 0 , slash + 1 ) ; return null ; |
public class nsxmlnamespace { /** * Use this API to fetch filtered set of nsxmlnamespace resources .
* set the filter parameter values in filtervalue object . */
public static nsxmlnamespace [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { } } | nsxmlnamespace obj = new nsxmlnamespace ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; nsxmlnamespace [ ] response = ( nsxmlnamespace [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class JobTracker { /** * Safe clean - up all data structures at the end of the
* job ( success / failure / killed ) .
* Here we also ensure that for a given user we maintain
* information for only MAX _ COMPLETE _ USER _ JOBS _ IN _ MEMORY jobs
* on the JobTracker .
* @ param job completed job . */
syn... | // Mark the ' non - running ' tasks for pruning
markCompletedJob ( job ) ; JobEndNotifier . registerNotification ( job . getJobConf ( ) , job . getStatus ( ) ) ; // start the merge of log files
JobID id = job . getStatus ( ) . getJobID ( ) ; // mark the job as completed
try { JobHistory . JobInfo . markCompleted ( id )... |
public class ScheduledThreadPoolExecutor { /** * Constrains the values of all delays in the queue to be within
* Long . MAX _ VALUE of each other , to avoid overflow in compareTo .
* This may occur if a task is eligible to be dequeued , but has
* not yet been , while some other task is added with a delay of
* L... | Delayed head = ( Delayed ) super . getQueue ( ) . peek ( ) ; if ( head != null ) { long headDelay = head . getDelay ( NANOSECONDS ) ; if ( headDelay < 0 && ( delay - headDelay < 0 ) ) delay = Long . MAX_VALUE + headDelay ; } return delay ; |
public class DITypeInfo { /** * Retrieves the fully - qualified name of the HSQLDB - provided java . sql
* interface implementation class whose instances would be manufactured
* by HSQLDB to retrieve column values of this type , if the
* the type does not have a standard Java mapping . < p >
* This value is sim... | switch ( type ) { case Types . SQL_ARRAY : return "org.hsqldb_voltpatches.jdbc.JDBCArray" ; case Types . SQL_BLOB : return "org.hsqldb_voltpatches.jdbc.JDBCBlob" ; case Types . SQL_CLOB : return "org.hsqldb_voltpatches.jdbc.JDBCClob" ; case Types . NCLOB : return "org.hsqldb_voltpatches.jdbc.JDBCNClob" ; case Types . D... |
public class ConfigUtil { /** * Like { @ link # loadInheritedProperties ( String ) } but loads the properties into the supplied
* target object . */
public static void loadInheritedProperties ( String path , Properties target ) throws IOException { } } | loadInheritedProperties ( path , ConfigUtil . class . getClassLoader ( ) , target ) ; |
public class EJBApplicationMetaData { /** * Verifies that the specified bean only depends on other singletons and that it does
* not depend on itself . This method calls itself recursively to process all
* dependencies .
* @ param bmd
* the bean to check
* @ param used
* the set of dependent beans that are ... | boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "resolveBeanDependencies: " + bmd . j2eeName ) ; // F7434950 . CodRev - If another bean depended on this bean , then
// this bean ' s dependencies have already been resolved and verified .
// F74... |
public class JMOptional { /** * Is present all boolean .
* @ param optionals the optionals
* @ return the boolean */
public static boolean isPresentAll ( Optional < ? > ... optionals ) { } } | for ( Optional < ? > optional : optionals ) if ( ! optional . isPresent ( ) ) return false ; return true ; |
public class PropertyDispatcher { /** * Creates a instance of a class PropertyDispatcher subclass .
* @ param < T > Type of PropertyDispatcher subclass
* @ param cls PropertyDispatcher subclass class
* @ param dispatcher
* @ return */
public static < T extends PropertyDispatcher > T getInstance ( Class < T > cl... | try { PropertyDispatcherClass annotation = cls . getAnnotation ( PropertyDispatcherClass . class ) ; if ( annotation == null ) { throw new IllegalArgumentException ( "@" + PropertyDispatcherClass . class . getSimpleName ( ) + " missing in cls" ) ; } Class < ? > c = Class . forName ( annotation . value ( ) ) ; if ( disp... |
public class GasteigerPEPEPartialCharges { /** * get the electrostatic potential of the neighbours of a atom .
* @ param ac The IAtomContainer to study
* @ param ds
* @ param atom1 The position of the IAtom to study
* @ return The sum of electrostatic potential of the neighbours */
private double getElectrostat... | // double CoulombForceConstant = 1 / ( 4 * Math . PI * 8.81 / * Math . pow ( 10 , - 12 ) * / ) ;
double CoulombForceConstant = 0.048 ; double sum = 0.0 ; try { if ( factory == null ) factory = AtomTypeFactory . getInstance ( "org/openscience/cdk/config/data/jmol_atomtypes.txt" , ac . getBuilder ( ) ) ; List < IAtom > a... |
public class AbstractWsBridgeSession { /** * Start up timer for the session timeout of the WebSocket session */
public void startupSessionTimeoutCommand ( ) { } } | if ( initSessionTimeoutCommand . compareAndSet ( false , true ) ) { final Long sessionTimeout = getSessionTimeout ( ) ; if ( sessionTimeout != null && sessionTimeout > 0 ) { if ( scheduledEventslogger . isTraceEnabled ( ) ) { scheduledEventslogger . trace ( "Establishing a session timeout of " + sessionTimeout + " seco... |
public class InterceptorChain { /** * Adds a new interceptor in list after an interceptor of a given type .
* @ return true if the interceptor was added ; i . e . the afterInterceptor exists */
public boolean addInterceptorAfter ( CommandInterceptor toAdd , Class < ? extends CommandInterceptor > afterInterceptor ) { ... | return asyncInterceptorChain . addInterceptorAfter ( toAdd , afterInterceptor ) ; |
public class GitRepo { /** * Pushes the commits od current branch .
* @ param project - Git project */
void pushCurrentBranch ( File project ) { } } | try ( Git git = this . gitFactory . open ( file ( project ) ) ) { this . gitFactory . push ( git ) . call ( ) ; } catch ( Exception e ) { throw new IllegalStateException ( e ) ; } |
public class TriggerManager { /** * Determines which operations the given trigger overrides . */
private int selectTypes ( Trigger < ? super S > trigger ) { } } | Class < ? extends Trigger > triggerClass = trigger . getClass ( ) ; int types = 0 ; if ( overridesOneMethod ( triggerClass , INSERT_METHODS ) ) { types |= FOR_INSERT ; } if ( overridesOneMethod ( triggerClass , UPDATE_METHODS ) ) { types |= FOR_UPDATE ; } if ( overridesOneMethod ( triggerClass , DELETE_METHODS ) ) { ty... |
public class GrailsASTUtils { /** * Generates a fatal compilation error .
* @ param sourceUnit the SourceUnit
* @ param astNode the ASTNode which caused the error
* @ param message The error message */
public static void error ( final SourceUnit sourceUnit , final ASTNode astNode , final String message ) { } } | error ( sourceUnit , astNode , message , true ) ; |
public class PoolManager { /** * Get the pool name for a JobInProgress from its configuration . This uses
* the " project " property in the jobconf by default , or the property set with
* " mapred . fairscheduler . poolnameproperty " . */
public synchronized String getPoolName ( JobInProgress job ) { } } | String name = getExplicitPoolName ( job ) . trim ( ) ; String redirect = poolRedirectMap . get ( name ) ; if ( redirect == null ) { return name ; } else { return redirect ; } |
public class IoUtil { /** * Write the entire contents of the supplied string to the given stream . This method always flushes and closes the stream when
* finished .
* @ param input the content to write to the stream ; may be null
* @ param stream the stream to which the content is to be written
* @ param buffe... | CheckArg . isNotNull ( stream , "destination stream" ) ; CheckArg . isPositive ( bufferSize , "bufferSize" ) ; boolean error = false ; try { if ( input != null ) { byte [ ] buffer = new byte [ bufferSize ] ; try { int numRead = 0 ; while ( ( numRead = input . read ( buffer ) ) > - 1 ) { stream . write ( buffer , 0 , nu... |
public class TagletWriterImpl { /** * { @ inheritDoc } */
public Content commentTagsToOutput ( DocTree holderTag , List < ? extends DocTree > tags ) { } } | return commentTagsToOutput ( holderTag , null , tags , false ) ; |
public class TypeRegistry { /** * Sometimes we discover the reloadabletype during program execution , for example A calls B and we haven ' t yet seen
* B . We find B has been loaded by a parent classloader , let ' s remember B here so we can do fast lookups for it .
* @ param typeId the id for the type
* @ param ... | if ( typeId >= reloadableTypes . length ) { resizeReloadableTypeArray ( typeId ) ; } reloadableTypes [ typeId ] = rtype ; if ( ( typeId + 1 ) > reloadableTypesSize ) { reloadableTypesSize = typeId + 1 ; } |
public class ObjectsApi { /** * Get DNs or agent groups . ( asynchronously )
* Get DNs ( directory numbers ) or agent groups from Configuration Server with the specified filters .
* @ param objectType The type of object . Possible values are dns , skills , dn - groups or agent - groups . ( required )
* @ param dn... | ProgressResponseBody . ProgressListener progressListener = null ; ProgressRequestBody . ProgressRequestListener progressRequestListener = null ; if ( callback != null ) { progressListener = new ProgressResponseBody . ProgressListener ( ) { @ Override public void update ( long bytesRead , long contentLength , boolean do... |
public class StringType { /** * The localized string and the internal string value are equal . So the
* internal value can be set directly with method { @ link # setValue } .
* @ param _ values values to evaluate
* @ return string representation for the < code > _ values < / code > */
protected String eval ( fina... | final String ret ; if ( ( _values == null ) || ( _values . length == 0 ) || ( _values [ 0 ] == null ) ) { ret = null ; } else if ( _values [ 0 ] instanceof String ) { ret = ( String ) _values [ 0 ] ; } else if ( _values [ 0 ] != null ) { ret = _values [ 0 ] . toString ( ) ; } else { ret = null ; } return ret ; |
public class HirshbergMatcher { /** * Gets the Longest Common Subsequence of two strings , using Dynamic
* programming techniques , and minimal memory
* @ param strA the first String
* @ param strB the second String
* @ return the Longest Common Subsequence of strA and strB */
public String getLCS ( String strA... | if ( "" . equals ( strA ) ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; algC ( sb , strA . length ( ) , strB . length ( ) , strA , strB ) ; return sb . toString ( ) ; |
public class StringTrieBuilder { /** * Makes sure that there is only one unique FinalValueNode registered
* with this value .
* Avoids creating a node if the value is a duplicate .
* @ param value A final value .
* @ return A FinalValueNode with the given value . */
private final ValueNode registerFinalValue ( ... | // We always register final values because while ADDING
// we do not know yet whether we will build fast or small .
lookupFinalValueNode . setFinalValue ( value ) ; Node oldNode = nodes . get ( lookupFinalValueNode ) ; if ( oldNode != null ) { return ( ValueNode ) oldNode ; } ValueNode newNode = new ValueNode ( value )... |
public class GetIndividualProfilesRequest { /** * Request the IndividualProfile for the given bank account information .
* This option is mutually exclusive with { @ link # withIndividualId ( int ) }
* and { @ link # withLoginPassword ( String , char [ ] ) } .
* @ param routingNumber The individual ' s bank routi... | this . routingNumber = routingNumber ; this . accountNumber = accountNumber ; return this ; |
public class PageFlowRequestProcessor { /** * See if this action mapping is our custom config type , and if so , see if the action should use a member variable
* in the page flow controller as its form bean ( the < code > useFormBean < / code > attribute on
* < code > & # 64 ; Jpf . Action < / code > ) . If so , re... | if ( mapping instanceof PageFlowActionMapping ) { PageFlowActionMapping pfam = ( PageFlowActionMapping ) mapping ; String formMember = pfam . getFormMember ( ) ; if ( formMember == null ) return null ; Field field = null ; FlowController fc = PageFlowRequestWrapper . get ( request ) . getCurrentFlowController ( ) ; try... |
public class Roster { /** * Returns a List of Presence objects for all of a user ' s current presences if no presence information is available ,
* such as when you are not subscribed to the user ' s presence updates .
* @ param bareJid an XMPP ID , e . g . jdoe @ example . com .
* @ return a List of Presence obje... | Map < Resourcepart , Presence > userPresences = getPresencesInternal ( bareJid ) ; List < Presence > res ; if ( userPresences == null ) { // Create an unavailable presence if none was found
Presence unavailable = new Presence ( Presence . Type . unavailable ) ; unavailable . setFrom ( bareJid ) ; res = new ArrayList < ... |
public class TaggedArgumentParser { /** * Parse a tag string and populate a TaggedArgument with values .
* @ param taggedArg TaggedArgument to receive tags
* @ param longArgName name of the argument being tagged
* @ param tagString tag string ( including logical name and attributes , no option name ) */
public st... | if ( tagString == null ) { taggedArg . setTag ( null ) ; taggedArg . setTagAttributes ( Collections . emptyMap ( ) ) ; } else { final ParsedArgument pa = ParsedArgument . of ( longArgName , tagString ) ; taggedArg . setTag ( pa . getName ( ) ) ; taggedArg . setTagAttributes ( pa . keyValueMap ( ) ) ; } |
public class ElementUI { /** * Returns the URL of the default template to use in createFromTemplate . Override this method to
* provide an alternate default URL .
* @ return The template URL . */
protected String getTemplateUrl ( ) { } } | return "web/" + getClass ( ) . getPackage ( ) . getName ( ) . replace ( "." , "/" ) + "/" + StringUtils . uncapitalize ( getClass ( ) . getSimpleName ( ) ) + ".fsp" ; |
public class MetricReportReporter { /** * Extracts metrics from { @ link com . codahale . metrics . Gauge } .
* @ param name name of the { @ link com . codahale . metrics . Gauge } .
* @ param gauge instance of { @ link com . codahale . metrics . Gauge } to serialize .
* @ return a list of { @ link org . apache .... | List < Metric > metrics = Lists . newArrayList ( ) ; try { metrics . add ( new Metric ( name , Double . parseDouble ( gauge . getValue ( ) . toString ( ) ) ) ) ; } catch ( NumberFormatException exception ) { LOGGER . info ( "Failed to serialize gauge metric. Not compatible with double value." , exception ) ; } return m... |
public class GreenPepperXmlRpcClient { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) public Runner getRunner ( String name , String identifier ) throws GreenPepperServerException { } } | log . debug ( "Retreiving all runners" ) ; Vector < Object > runnerParams = ( Vector < Object > ) execute ( XmlRpcMethodName . getRunner , CollectionUtil . toVector ( name ) , identifier ) ; return XmlRpcDataMarshaller . toRunner ( runnerParams ) ; |
public class PermutationChromosome { /** * Create a new , random chromosome with the given valid alleles .
* @ since 2.0
* @ param < T > the gene type of the chromosome
* @ param alleles the valid alleles used for this permutation arrays .
* @ return a new chromosome with the given alleles
* @ throws IllegalA... | return of ( ISeq . of ( alleles ) ) ; |
public class AgentRoster { /** * Reloads the entire roster from the server . This is an asynchronous operation ,
* which means the method will return immediately , and the roster will be
* reloaded at a later point when the server responds to the reload request .
* @ throws NotConnectedException
* @ throws Inte... | AgentStatusRequest request = new AgentStatusRequest ( ) ; request . setTo ( workgroupJID ) ; connection . sendStanza ( request ) ; |
public class OkCoinMarketDataServiceRaw { /** * 获取合约最高限价和最低限价
* @ param currencyPair
* @ param contractType
* @ return
* @ throws IOException */
public OkCoinFutureComment getFuturePriceLimit ( CurrencyPair currencyPair , FuturesContract contractType ) throws IOException { } } | return okCoin . getFuturePriceLimit ( "1" , OkCoinAdapters . adaptSymbol ( currencyPair ) , contractType . getName ( ) ) ; |
public class UntilElementImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case SimpleAntlrPackage . UNTIL_ELEMENT__LEFT : return left != null ; case SimpleAntlrPackage . UNTIL_ELEMENT__RIGHT : return right != null ; } return super . eIsSet ( featureID ) ; |
public class DataEncoder { /** * Encodes the given signed Long object into exactly 1 or 9 bytes . If the
* Long object is never expected to be null , consider encoding as a long
* primitive .
* @ param value optional signed Long value to encode
* @ param dst destination for encoded bytes
* @ param dstOffset o... | if ( value == null ) { dst [ dstOffset ] = NULL_BYTE_HIGH ; return 1 ; } else { dst [ dstOffset ] = NOT_NULL_BYTE_HIGH ; encode ( value . longValue ( ) , dst , dstOffset + 1 ) ; return 9 ; } |
public class DiagnosticsInner { /** * Execute Analysis .
* Execute Analysis .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param siteName Site Name
* @ param diagnosticCategory Category Name
* @ param analysisName Analysis Resource Name
* @ param startTime Start... | return executeSiteAnalysisWithServiceResponseAsync ( resourceGroupName , siteName , diagnosticCategory , analysisName , startTime , endTime , timeGrain ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class SystemBar { /** * Set the content layout full the NavigationBar , but do not hide NavigationBar . */
@ RequiresApi ( api = Build . VERSION_CODES . LOLLIPOP ) public static void invasionNavigationBar ( Window window ) { } } | View decorView = window . getDecorView ( ) ; decorView . setSystemUiVisibility ( decorView . getSystemUiVisibility ( ) | View . SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View . SYSTEM_UI_FLAG_LAYOUT_STABLE ) ; window . setNavigationBarColor ( Color . TRANSPARENT ) ; |
public class ExternalContext { /** * < p class = " changed _ added _ 2_0 " > Returns the MIME type of the
* specified file or < code > null < / code > if the MIME type is not
* known . The MIME type is determined by the container . < / p >
* < p class = " changed _ added _ 2_0 " > It is valid to call this method ... | if ( defaultExternalContext != null ) { return defaultExternalContext . getMimeType ( file ) ; } throw new UnsupportedOperationException ( ) ; |
public class BaseDestinationHandler { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # registerForMessageEvents ( com . ibm . ws . sib . processor . impl . interfaces . SIMPMessage ) */
@ Override public void registerForMessageEvents ( SIMPMessage msg ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "registerForMessageEvents" , msg ) ; registerForEvents ( msg ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "registerForMessageEvents" ) ; |
public class JdbcDatabase { /** * Open the physical database .
* @ exception DBException On open errors . */
public boolean setupDirectDataSourceConnection ( ) throws DBException { } } | if ( m_JDBCConnection != null ) return true ; try { if ( m_datasourceFactory == null ) { String strClassName = this . getProperty ( SQLParams . DATASOURCE_FACTORY ) ; strClassName = ClassServiceUtility . getFullClassName ( strClassName ) ; try { m_datasourceFactory = ( DatasourceFactory ) ClassServiceUtility . getClass... |
public class SchemasInner { /** * Gets a list of integration account schemas .
* @ param resourceGroupName The resource group name .
* @ param integrationAccountName The integration account name .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the Paged... | return listByIntegrationAccountsWithServiceResponseAsync ( resourceGroupName , integrationAccountName ) . map ( new Func1 < ServiceResponse < Page < IntegrationAccountSchemaInner > > , Page < IntegrationAccountSchemaInner > > ( ) { @ Override public Page < IntegrationAccountSchemaInner > call ( ServiceResponse < Page <... |
public class CommerceOrderNoteLocalServiceBaseImpl { /** * Updates the commerce order note in the database or adds it if it does not yet exist . Also notifies the appropriate model listeners .
* @ param commerceOrderNote the commerce order note
* @ return the commerce order note that was updated */
@ Indexable ( ty... | return commerceOrderNotePersistence . update ( commerceOrderNote ) ; |
public class AggregateEventAnalysisEngine { /** * Pops { @ link Notification } s out of the queue until the start time of the queue ' s head
* is after the parameter time . The queue of notifications MUST be sorted in ascending
* order by start time .
* @ param notifications the queue of { @ link Notification } s... | while ( ! notifications . isEmpty ( ) && ! notifications . peek ( ) . getStartTime ( ) . isAfter ( time ) ) { notifications . poll ( ) ; } |
public class AbstractCacheHealthIndicator { /** * Computes the status code for a given set of cache statistics .
* @ param statistics Cache statistics .
* @ return WARN or OUT _ OF _ SERVICE OR UP . */
protected Status status ( final CacheStatistics statistics ) { } } | if ( statistics . getEvictions ( ) > 0 && statistics . getEvictions ( ) > evictionThreshold ) { return new Status ( "WARN" ) ; } if ( statistics . getPercentFree ( ) > 0 && statistics . getPercentFree ( ) < threshold ) { return Status . OUT_OF_SERVICE ; } return Status . UP ; |
public class XLinkUtils { /** * Returns a distinct List of all RemoteToolViews , contained in a RemoteToolRegistration .
* @ see RemoteToolView
* @ see RemoteToolRegistration */
public static XLinkConnectorView [ ] getViewsOfRegistration ( XLinkConnectorRegistration registration ) { } } | List < XLinkConnectorView > viewsOfRegistration = new ArrayList < XLinkConnectorView > ( ) ; Map < ModelDescription , XLinkConnectorView [ ] > modelsToViews = registration . getModelsToViews ( ) ; for ( XLinkConnectorView [ ] views : modelsToViews . values ( ) ) { for ( int i = 0 ; i < views . length ; i ++ ) { XLinkCo... |
public class CSSMinifierMojo { /** * Minifies the created files .
* @ param file is the file .
* @ return { @ literal false } if the pipeline processing must be interrupted for this event . Most watchers should
* return { @ literal true } to let other watchers be notified .
* @ throws org . wisdom . maven . Wat... | if ( stylesheets != null ) { try { process ( stylesheets ) ; } catch ( MojoExecutionException e ) { throw new WatchingException ( "Error while aggregating or minifying CSS resources" , file , e ) ; } } else { process ( file ) ; } return true ; |
public class JFAPCommunicator { /** * Utility method to invalidate Connection . Parameters passed to ConnectionInterface . invalidate
* @ param notifyPeer
* @ param throwable
* @ param debugReason */
protected void invalidateConnection ( boolean notifyPeer , Throwable throwable , String debugReason ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "invalidateConnection" , new Object [ ] { new Boolean ( notifyPeer ) , throwable , debugReason } ) ; if ( con != null ) { ConnectionInterface connection = con . getConnectionReference ( ) ; if ( connection != null ) { connec... |
public class ListMatrix { /** * { @ inheritDoc } */
public double [ ] getColumn ( int column ) { } } | int i = 0 ; double [ ] columnValues = new double [ vectors . size ( ) ] ; for ( DoubleVector vector : vectors ) columnValues [ i ++ ] = vector . get ( column ) ; return columnValues ; |
public class SmartTable { /** * Configures the specified style names on the specified row and column . The first style is set
* as the primary style and additional styles are added onto that . */
public void setStyleNames ( int row , int column , String ... styles ) { } } | int idx = 0 ; for ( String style : styles ) { if ( idx ++ == 0 ) { getFlexCellFormatter ( ) . setStyleName ( row , column , style ) ; } else { getFlexCellFormatter ( ) . addStyleName ( row , column , style ) ; } } |
public class Get { /** * Retrieves all attributes of the element . If the element isn ' t present , or
* the attributes can ' t be accessed , a null value will be returned .
* @ return String : the value of the css attribute */
@ SuppressWarnings ( "unchecked" ) public Map < String , String > allAttributes ( ) { } ... | if ( ! element . is ( ) . present ( ) ) { return null ; } try { WebElement webElement = element . getWebElement ( ) ; JavascriptExecutor js = ( JavascriptExecutor ) driver ; return ( Map < String , String > ) js . executeScript ( "var items = {}; for (index = 0; index < arguments[0].attributes.length; ++index) { items[... |
public class DoubleMatrix { /** * Returns the four adjacencies with order : up , right , down , left . < code > null < / code > is set if the adjacency doesn ' t exist .
* @ param i
* @ param j
* @ return */
public Stream < IntPair > adjacent4Points ( final int i , final int j ) { } } | final IntPair up = i == 0 ? null : IntPair . of ( i - 1 , j ) ; final IntPair right = j == cols - 1 ? null : IntPair . of ( i , j + 1 ) ; final IntPair down = i == rows - 1 ? null : IntPair . of ( i + 1 , j ) ; final IntPair left = j == 0 ? null : IntPair . of ( i , j - 1 ) ; return Stream . of ( up , right , down , le... |
public class PreferenceFragment { /** * Initializes the preference , which allows to show the edit text dialog . */
private void initializeShowEditTextDialogPreference ( ) { } } | Preference preference = findPreference ( getString ( R . string . show_edit_text_dialog_preference_key ) ) ; preference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( final Preference preference ) { initializeEditTextDialog ( ) ; editTextDialog . setSh... |
public class StepProgress { /** * No constructor with auto logging - call beginStep ( ) first */
@ Override public StringBuilder appendToBuffer ( StringBuilder buf ) { } } | buf . append ( super . getTask ( ) ) ; if ( isComplete ( ) ) { buf . append ( ": complete." ) ; } else { buf . append ( " #" ) . append ( getProcessed ( ) + 1 ) . append ( '/' ) . append ( getTotal ( ) ) ; buf . append ( ": " ) . append ( getStepTitle ( ) ) ; } buf . append ( '\n' ) ; return buf ; |
public class FlowContextFactory { /** * Add flowContext to ThreadLocal when coming to another component .
* @ param flowContext */
public static void addFlowContext ( final FlowContext flowContext ) { } } | if ( null == flowContext ) { clearFlowcontext ( ) ; return ; } FLOW_CONTEXT_THREAD_LOCAL . set ( flowContext ) ; MDC . put ( "flowCtxt" , flowContext . toString ( ) ) ; |
public class DefaultDmnTransform { /** * listeners / / / / / */
protected void notifyTransformListeners ( Decision decision , DmnDecision dmnDecision ) { } } | for ( DmnTransformListener transformListener : transformListeners ) { transformListener . transformDecision ( decision , dmnDecision ) ; } |
public class WFileWidget { /** * Returns a list of strings that determine the allowable file mime types accepted by the file input . If no types
* have been added an empty list is returned . An empty list indicates that all file types are accepted .
* @ return The mime types accepted by this file input e . g . " te... | List < String > fileTypes = getComponentModel ( ) . fileTypes ; if ( fileTypes == null ) { return Collections . emptyList ( ) ; } return Collections . unmodifiableList ( fileTypes ) ; |
public class PUBLISH { /** * Crates a deep copy of a { @ link PUBLISH } object .
* Use this method if you want to reuse a publish received by a callback to prevent side effects .
* @ param original the original PUBLISH message
* @ return a deep copy of the original PUBLISH message */
public static PUBLISH copy ( ... | final PUBLISH publish = new PUBLISH ( ) ; publish . setQoS ( original . getQoS ( ) ) ; publish . setRetain ( original . isRetain ( ) ) ; publish . setPayload ( original . getPayload ( ) ) ; publish . setTopic ( original . getTopic ( ) ) ; publish . setDuplicateDelivery ( original . isDuplicateDelivery ( ) ) ; publish .... |
public class CPDefinitionLocalServiceWrapper { /** * Returns the cp definition matching the UUID and group .
* @ param uuid the cp definition ' s UUID
* @ param groupId the primary key of the group
* @ return the matching cp definition
* @ throws PortalException if a matching cp definition could not be found */... | return _cpDefinitionLocalService . getCPDefinitionByUuidAndGroupId ( uuid , groupId ) ; |
public class Filters { /** * Specify one or more < a > KeyUsage < / a > extension values .
* @ param keyUsage
* Specify one or more < a > KeyUsage < / a > extension values .
* @ see KeyUsageName */
public void setKeyUsage ( java . util . Collection < String > keyUsage ) { } } | if ( keyUsage == null ) { this . keyUsage = null ; return ; } this . keyUsage = new java . util . ArrayList < String > ( keyUsage ) ; |
public class JmsEventTransportImpl { /** * Publish the supplied event to the destination . The destination address ( to publish the event to )
* will be derived using the plugged destination resolver . If you want to implement different / more
* advanced destination resolution , implement your own JMSDestinationRes... | String destinationName = destinationResolver . resolveDestination ( event . getClass ( ) , null ) ; publish ( event , destinationName , eventServiceBindingDescriptor ) ; |
public class Collectors { /** * Returns a { @ code Collector } which performs a reduction of its
* input elements under a specified { @ code BinaryOperator } using the
* provided identity .
* @ apiNote
* The { @ code reducing ( ) } collectors are most useful when used in a
* multi - level reduction , downstre... | return new CollectorImpl < > ( boxSupplier ( identity ) , ( a , t ) -> { a [ 0 ] = op . apply ( a [ 0 ] , t ) ; } , ( a , b ) -> { a [ 0 ] = op . apply ( a [ 0 ] , b [ 0 ] ) ; return a ; } , a -> a [ 0 ] , CH_NOID ) ; |
public class FileUtil { /** * 打开文件为InputStream .
* @ see { @ link Files # newInputStream } */
public static InputStream asInputStream ( File file ) throws IOException { } } | Validate . notNull ( file , "file is null" ) ; return asInputStream ( file . toPath ( ) ) ; |
public class DataTable { /** * Asserts that the given attribute exists as a column in this table .
* @ param attribute the attribute to find
* @ throws UnknownColumnException if the attribute doesn ' t exist */
private void assertAttributeExists ( String attribute ) throws UnknownColumnException { } } | for ( DataColumn column : columns ) { if ( column . getCode ( ) . equals ( attribute ) ) { return ; } } throw new UnknownColumnException ( attribute ) ; |
public class HiveRegistrationUnit { /** * Set table / partition parameters .
* When using { @ link org . apache . gobblin . hive . metastore . HiveMetaStoreBasedRegister } , since it internally use
* { @ link org . apache . hadoop . hive . metastore . api . Table } and { @ link org . apache . hadoop . hive . metast... | for ( String propKey : props . getPropertyNames ( ) ) { setProp ( propKey , props . getProp ( propKey ) ) ; } |
public class Layer { /** * Serializes this Layer as a { @ link com . google . gwt . json . client . JSONObject }
* @ return JSONObject */
@ Override public JSONObject toJSONObject ( ) { } } | final JSONObject object = new JSONObject ( ) ; object . put ( "type" , new JSONString ( getNodeType ( ) . getValue ( ) ) ) ; if ( hasMetaData ( ) ) { final MetaData meta = getMetaData ( ) ; if ( false == meta . isEmpty ( ) ) { object . put ( "meta" , new JSONObject ( meta . getJSO ( ) ) ) ; } } object . put ( "attribut... |
public class HibernateClient { /** * On begin .
* @ return the transaction */
private Transaction onBegin ( ) { } } | Transaction tx ; if ( ( ( StatelessSessionImpl ) s ) . getTransactionCoordinator ( ) . isTransactionActive ( ) ) { tx = ( ( StatelessSessionImpl ) s ) . getTransaction ( ) ; } else { tx = s . beginTransaction ( ) ; } return tx ; |
public class InMemoryAsyncRetryRegistry { /** * { @ inheritDoc } */
@ Override public AsyncRetry retry ( String name , Supplier < RetryConfig > retryConfigSupplier ) { } } | return retries . computeIfAbsent ( Objects . requireNonNull ( name , "Name must not be null" ) , ( k ) -> AsyncRetry . of ( name , retryConfigSupplier . get ( ) ) ) ; |
public class BaseField { /** * Get the status of the the FieldChanged behaviors ?
* @ return The handle field change flag ( if false field change handling is disabled ) . */
public void setEnableListeners ( boolean [ ] rgbEnabled ) { } } | int iIndex = 0 ; FieldListener fieldBehavior = this . getListener ( ) ; while ( fieldBehavior != null ) { boolean bEnable = true ; if ( ( rgbEnabled != null ) && ( iIndex < rgbEnabled . length ) ) bEnable = rgbEnabled [ iIndex ] ; fieldBehavior . setEnabledListener ( bEnable ) ; fieldBehavior = ( FieldListener ) fieldB... |
public class EvalVisitor { /** * If the value is a proto , then set the current access location since we are about to access it
* incorrectly . */
private static void maybeMarkBadProtoAccess ( ExprNode expr , SoyValue value ) { } } | if ( value instanceof SoyProtoValue ) { ( ( SoyProtoValue ) value ) . setAccessLocationKey ( expr . getSourceLocation ( ) ) ; } |
public class DefaultDecomposer { /** * ( non - Javadoc )
* @ see org . jsmpp . util . PDUDecomposer # outbind ( byte [ ] ) */
public Outbind outbind ( byte [ ] b ) throws PDUStringException { } } | Outbind req = new Outbind ( ) ; SequentialBytesReader reader = new SequentialBytesReader ( b ) ; assignHeader ( req , reader ) ; req . setSystemId ( reader . readCString ( ) ) ; StringValidator . validateString ( req . getSystemId ( ) , StringParameter . SYSTEM_ID ) ; req . setPassword ( reader . readCString ( ) ) ; St... |
public class AlertService { /** * Deletes an alert including its notifications and triggers .
* @ param alertId The ID of the alert to delete .
* @ throws IOException If the server cannot be reached .
* @ throws TokenExpiredException If the token sent along with the request has expired */
public void deleteAlert ... | String requestUrl = RESOURCE + "/" + alertId . toString ( ) ; ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . DELETE , requestUrl , null ) ; assertValidResponse ( response , requestUrl ) ; |
public class TxtExporter { /** * Write one tsv field to the file , followed by a separator unless it is the
* last field on the line . Lead and trailing blanks will be removed .
* @ param p print stream
* @ param s The string to write . Any additional quotes or embedded quotes
* will be provided by put . Null m... | if ( s == null ) { // nl ( ) ;
put ( p , "" , column , colSpan , bandElement ) ; return ; } int size = 0 ; if ( colSpan > 1 ) { for ( int i = column ; i < column + colSpan ; i ++ ) { size += columnWidth [ i ] ; } } else { size = columnWidth [ column ] ; } if ( ( bandElement != null ) && bandElement . getHorizontalAlign... |
public class BindDictionary { /** * static image field methods */
public StaticImageField < T > addStaticImageField ( int viewResId , StaticImageLoader < T > staticImageLoader ) { } } | StaticImageField < T > field = new StaticImageField < T > ( viewResId , staticImageLoader ) ; mStaticImageFields . add ( field ) ; return field ; |
public class AssignmentGuardFinder { /** * Creates a new instance of this class . None of the arguments must be
* { @ code null } .
* @ param candidateName
* name of the lazy variable . Must not be empty !
* @ param controlFlowBlock
* the control flow block which is supposed to contain an
* { @ link Assignm... | checkArgument ( ! candidateName . isEmpty ( ) ) ; return new AssignmentGuardFinder ( candidateName , checkNotNull ( controlFlowBlock ) ) ; |
public class DRL5Expressions { /** * $ ANTLR start synpred10 _ DRL5Expressions */
public final void synpred10_DRL5Expressions_fragment ( ) throws RecognitionException { } } | // src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 407:5 : ( DOUBLE _ AMPER ( fullAnnotation [ null ] ) ? operator )
// src / main / resources / org / drools / compiler / lang / DRL5Expressions . g : 407:6 : DOUBLE _ AMPER ( fullAnnotation [ null ] ) ? operator
{ match ( input , DOUBLE_A... |
public class AbstractBean { /** * Sets the process ( the what ) that functionally modified this object .
* @ param modifyingProcess an object denoting the process that modified this object .
* @ see org . cp . elements . lang . Auditable */
@ SuppressWarnings ( "unchecked" ) public void setModifiedWith ( PROCESS mo... | processChange ( "modifiedWith" , this . modifiedWith , modifyingProcess ) ; this . lastModifiedWith = ObjectUtils . defaultIfNull ( this . lastModifiedWith , this . modifiedWith ) ; |
public class ItemReference { /** * PK57207 Returns an estimated size for this message reference */
public int getInMemoryDataSize ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getInMemoryDataSize" ) ; int dataSize ; // If tuning has requested return the size of the message we reference ,
// then delegate to the message . Otherwise call our parent to get a
// ( small ) default size .
if ( _... |
public class TexFileUtilsImpl { /** * ( non - Javadoc )
* @ see org . m2latex . mojo . TexFileUtils # copyOutputToSiteFolder ( java . io . File , java . io . File , java . io . File ) */
public void copyLatexOutputToOutputFolder ( File texFile , File tempDirectory , File outputDirectory ) throws MojoExecutionExceptio... | WildcardFileFilter fileFilter = new WildcardFileFilter ( getFilesToCopy ( texFile , LATEX_OUTPUT_FILES ) ) ; copyLatexOutputToOutputFolder ( texFile , tempDirectory , outputDirectory , fileFilter ) ; |
public class RESTAppListener { /** * Set required VirtualHost . This will be called before activate .
* The target filter will only allow the enabled default _ host virtual
* host to be bound if / when it has an SSL port available */
@ Reference ( service = VirtualHost . class , target = "(&(enabled=true)(id=defaul... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Set vhost: " , vhost ) ; } secureVirtualHost = vhost ; secureAlias = props . get ( "httpsAlias" ) . toString ( ) ; createJMXWorkAreaResourceIfChanged ( vhost ) ; |
public class ManagedBeanDefinition { /** * Create this managed bean operations info .
* @ return */
private MBeanOperationInfo [ ] getOperationInfo ( ) { } } | final List < MBeanOperationInfo > infoList = new ArrayList < > ( ) ; if ( type != null ) { ReflectionUtils . doWithMethods ( type , new ReflectionUtils . MethodCallback ( ) { @ Override public void doWith ( Method method ) throws IllegalArgumentException , IllegalAccessException { infoList . add ( new MBeanOperationInf... |
public class Train { /** * Inits the . */
public void init ( ) { } } | numLabels = model . data . numLabels ( ) ; numFeatures = model . feaGen . numFeatures ( ) ; if ( numLabels <= 0 || numFeatures <= 0 ) { System . out . println ( "Invalid number of labels or features" ) ; return ; } lambda = model . lambda ; tempLambda = new double [ numFeatures ] ; gradLogLi = new double [ numFeatures ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.