signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class QueryRpc { /** * Parses a query string legacy style query from the URI * @ param tsdb The TSDB we belong to * @ param query The HTTP Query for parsing * @ return A TSQuery if parsing was successful * @ throws BadRequestException if parsing was unsuccessful * @ since 2.3 */ public static TSQuery p...
return parseQuery ( tsdb , query , null ) ;
public class CommerceWarehouseUtil { /** * Returns all the commerce warehouses where groupId = & # 63 ; and commerceCountryId = & # 63 ; and primary = & # 63 ; . * @ param groupId the group ID * @ param commerceCountryId the commerce country ID * @ param primary the primary * @ return the matching commerce ware...
return getPersistence ( ) . findByG_C_P ( groupId , commerceCountryId , primary ) ;
public class DefaultEditorRegistry { /** * Returns an EditorDescriptor keyed by the class of the * injected object . If non exists null is returned . */ public EditorDescriptor getEditorDescriptor ( Object editorObject ) { } }
Class editorClass = editorObject . getClass ( ) ; EditorDescriptor descriptor = ( EditorDescriptor ) editorMap . get ( editorClass ) ; if ( descriptor == null ) { Iterator it = editorMap . keySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Class klass = ( Class ) it . next ( ) ; if ( klass . isAssignableFrom ( ed...
public class JsonRpcHttpAsyncClient { /** * Invokes the given method with the given arguments and returns * immediately . The { @ code extraHeaders } are added to the request . The * { @ code Future < T > } object that is returned can be used to retrieve the * result . * @ param methodName the name of the metho...
return doInvoke ( methodName , argument , returnType , extraHeaders , new JsonRpcFuture < T > ( ) ) ;
public class BrokerSummaryMarshaller { /** * Marshall the given parameter object . */ public void marshall ( BrokerSummary brokerSummary , ProtocolMarshaller protocolMarshaller ) { } }
if ( brokerSummary == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( brokerSummary . getBrokerArn ( ) , BROKERARN_BINDING ) ; protocolMarshaller . marshall ( brokerSummary . getBrokerId ( ) , BROKERID_BINDING ) ; protocolMarshaller . marsha...
public class AmqpConfiguration { /** * Create AMQP handler service bean for authentication messages . * @ return handler service bean */ @ Bean AmqpAuthenticationMessageHandler amqpAuthenticationMessageHandler ( final RabbitTemplate rabbitTemplate , final AmqpControllerAuthentication authenticationManager , final Art...
return new AmqpAuthenticationMessageHandler ( rabbitTemplate , authenticationManager , artifactManagement , downloadIdCache , hostnameResolver , controllerManagement , tenantAware ) ;
public class JcrNodeTypeManager { /** * Registers or updates the specified array of { @ code NodeTypeDefinition } objects . This method is used to register or update a * set of node types with mutual dependencies . Returns an iterator over the resulting { @ code NodeType } objects . * The effect of the method is " ...
try { session . checkWorkspacePermission ( session . workspaceName ( ) , ModeShapePermissions . REGISTER_TYPE ) ; } catch ( AccessControlException ace ) { throw new AccessDeniedException ( ace ) ; } List < JcrNodeType > jcrNodeTypes = this . repositoryTypeManager . registerNodeTypes ( Arrays . asList ( ntds ) , ! allow...
public class ModelUtils { /** * Applies unboxing conversion to { @ code mirror } , if it can be unboxed . */ public static Optional < TypeMirror > maybeUnbox ( TypeMirror mirror , Types types ) { } }
try { return Optional . of ( types . unboxedType ( mirror ) ) ; } catch ( IllegalArgumentException e ) { return Optional . empty ( ) ; }
public class EntityDataModelUtil { /** * Get the ' Structural Property ' from the given ' Entity Data Model ' and ' Structured Type ' looking up all the base * types recursively . * @ param entityDataModel The given ' Entity Data Model ' . * @ param structuredType The given ' Structured Type ' . * @ param prope...
StructuralProperty structuralProperty = structuredType . getStructuralProperty ( propertyName ) ; if ( structuralProperty != null ) { return structuralProperty ; } else { // Look up recursively in the ' base type ' String baseTypeName = structuredType . getBaseTypeName ( ) ; if ( ! isNullOrEmpty ( baseTypeName ) ) { Ty...
public class CmsDefaultResourceStatusProvider { /** * Gets the list of relation targets for a resource . < p > * @ param cms the current CMS context * @ param locale the locale * @ param resource the resource for which we want the relation targets * @ param additionalStructureIds structure ids of additional res...
CmsRelationTargetListBean listBean = getContainerpageRelationTargets ( cms , resource . getStructureId ( ) , additionalStructureIds , false ) ; List < CmsResourceStatusRelationBean > result = new ArrayList < CmsResourceStatusRelationBean > ( ) ; for ( CmsResource target : listBean . getResources ( ) ) { try { CmsPermis...
public class ExpressionFactory { /** * Add an expression to the map . * WARNING : The map is not thread safe so don ' t use this to dynamically * modify the map while the TSD is running . * @ param name The name of the expression * @ param expr The expression object to store . * @ throws IllegalArgumentExcept...
if ( name == null || name . isEmpty ( ) ) { throw new IllegalArgumentException ( "Missing function name" ) ; } if ( expr == null ) { throw new IllegalArgumentException ( "Function cannot be null" ) ; } available_functions . put ( name , expr ) ;
public class SortPomImpl { /** * Sorts the pom file . */ public void sortPom ( ) { } }
log . info ( "Sorting file " + pomFile . getAbsolutePath ( ) ) ; String originalXml = fileUtil . getPomFileContent ( ) ; String sortedXml = sortXml ( originalXml ) ; if ( pomFileIsSorted ( originalXml , sortedXml ) ) { log . info ( "Pom file is already sorted, exiting" ) ; return ; } createBackupFile ( ) ; saveSortedPo...
public class MainActivity { /** * region ImageGalleryAdapter . ImageThumbnailLoader Methods */ @ Override public void loadImageThumbnail ( final ImageView iv , String imageUrl , int dimension ) { } }
if ( ! TextUtils . isEmpty ( imageUrl ) ) { Picasso . with ( iv . getContext ( ) ) . load ( imageUrl ) . resize ( dimension , dimension ) . centerCrop ( ) . into ( iv ) ; } else { iv . setImageDrawable ( null ) ; }
public class MiniMax { /** * Merges two clusters given by x , y , their points with smallest IDs , and y to * keep * @ param size number of ids in the data set * @ param mat distance matrix * @ param prots calculated prototypes * @ param builder Result builder * @ param clusters the clusters * @ param dq ...
assert ( y < x ) ; final DBIDArrayIter ix = mat . ix . seek ( x ) , iy = mat . iy . seek ( y ) ; final double [ ] distances = mat . matrix ; int offset = MatrixParadigm . triangleSize ( x ) + y ; if ( LOG . isDebuggingFine ( ) ) { LOG . debugFine ( "Merging: " + DBIDUtil . toString ( ix ) + " -> " + DBIDUtil . toString...
public class ReferenceFinder { /** * Parses a given ClassFile and invoke the visitor if there is any reference * to the constant pool entries referencing field , method , or * interface method that are accepted . This method will return * { @ code true } if there is one or more accepted constant pool entries * ...
List < Integer > cprefs = new ArrayList < > ( ) ; int index = 1 ; for ( ConstantPool . CPInfo cpInfo : cf . constant_pool . entries ( ) ) { if ( cpInfo . accept ( cpVisitor , cf . constant_pool ) ) { cprefs . add ( index ) ; } index += cpInfo . size ( ) ; } if ( cprefs . isEmpty ( ) ) { return false ; } for ( Method m ...
public class PollForJobsRequest { /** * A map of property names and values . For an action type with no queryable properties , this value must be null or * an empty map . For an action type with a queryable property , you must supply that property as a key in the map . * Only jobs whose action configuration matches...
setQueryParam ( queryParam ) ; return this ;
public class ProgressFragment { /** * Set the content content from a layout resource . * @ param layoutResId Resource ID to be inflated . * @ see # setContentView ( android . view . View ) * @ see # getContentView ( ) */ public void setContentView ( int layoutResId ) { } }
LayoutInflater layoutInflater = LayoutInflater . from ( getActivity ( ) ) ; View contentView = layoutInflater . inflate ( layoutResId , null ) ; setContentView ( contentView ) ;
public class DiskClient { /** * Deletes the specified persistent disk . Deleting a disk removes its data permanently and is * irreversible . However , deleting a disk does not delete any snapshots previously made from the * disk . You must separately delete snapshots . * < p > Sample code : * < pre > < code > ...
DeleteDiskHttpRequest request = DeleteDiskHttpRequest . newBuilder ( ) . setDisk ( disk == null ? null : disk . toString ( ) ) . build ( ) ; return deleteDisk ( request ) ;
public class TypedValue { /** * / * ( non - Javadoc ) * @ see org . openprovenance . prov . xml . TypedValue # setValue ( java . lang . String ) */ @ Override public void setValue ( org . openprovenance . prov . model . LangString value ) { } }
this . value = value ;
public class CSSClassManager { /** * Make a ( filled ) CSS style element for the given document . * @ param document Document * @ return Style element */ public Element makeStyleElement ( Document document ) { } }
Element style = SVGUtil . makeStyleElement ( document ) ; updateStyleElement ( document , style ) ; return style ;
public class CPDisplayLayoutLocalServiceWrapper { /** * Returns a range of all the cp display layouts . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes in the result set . ...
return _cpDisplayLayoutLocalService . getCPDisplayLayouts ( start , end ) ;
public class AbstractStreamEx { /** * Folds the elements of this stream using the provided seed object and * accumulation function , going left to right . This is equivalent to : * < pre > * { @ code * U result = seed ; * for ( T element : this stream ) * result = accumulator . apply ( result , element ) ...
Box < U > result = new Box < > ( seed ) ; forEachOrdered ( t -> result . a = accumulator . apply ( result . a , t ) ) ; return result . a ;
public class Counters { /** * Delete ' top ' and ' bottom ' number of elements from the top and bottom * respectively */ public static < E > List < E > deleteOutofRange ( Counter < E > c , int top , int bottom ) { } }
List < E > purgedItems = new ArrayList < E > ( ) ; int numToPurge = top + bottom ; if ( numToPurge <= 0 ) { return purgedItems ; } List < E > l = Counters . toSortedList ( c ) ; for ( int i = 0 ; i < top ; i ++ ) { E item = l . get ( i ) ; purgedItems . add ( item ) ; c . remove ( item ) ; } int size = c . size ( ) ; f...
public class JobTracker { /** * Update totalMapTaskCapacity and totalReduceTaskCapacity to resolve the * number of slots changed in a tasktracker . The change could be from * TaskScheduler or TaskTrackerStatus * @ param status The status of the tasktracker */ private void updateTotalTaskCapacity ( TaskTrackerStat...
int mapSlots = taskScheduler . getMaxSlots ( status , TaskType . MAP ) ; String trackerName = status . getTrackerName ( ) ; Integer oldMapSlots = trackerNameToMapSlots . get ( trackerName ) ; if ( oldMapSlots == null ) { oldMapSlots = 0 ; } int delta = mapSlots - oldMapSlots ; if ( delta != 0 ) { totalMapTaskCapacity +...
public class RestUtils { /** * Returns the path parameter value . * @ param param a parameter name * @ param ctx ctx * @ return a value */ public static String pathParam ( String param , ContainerRequestContext ctx ) { } }
return ctx . getUriInfo ( ) . getPathParameters ( ) . getFirst ( param ) ;
public class SunCalc { /** * Returns the sun position as a coordinate with the following properties * x : sun azimuth in radians ( direction along the horizon , measured from south to * west ) , e . g . 0 is south and Math . PI * 3/4 is northwest . * y : sun altitude above the horizon in radians , e . g . 0 at th...
if ( isGeographic ( lat , lng ) ) { double lw = rad * - lng ; double phi = rad * lat ; double J = dateToJulianDate ( date ) ; double M = getSolarMeanAnomaly ( J ) ; double C = getEquationOfCenter ( M ) ; double Ls = getEclipticLongitude ( M , C ) ; double d = getSunDeclination ( Ls ) ; double a = getRightAscension ( Ls...
public class ComputeNodesImpl { /** * Updates the password and expiration time of a user account on the specified compute node . * This operation replaces of all the updatable properties of the account . For example , if the expiryTime element is not specified , the current value is replaced with the default value , ...
return updateUserWithServiceResponseAsync ( poolId , nodeId , userName , nodeUpdateUserParameter , computeNodeUpdateUserOptions ) . map ( new Func1 < ServiceResponseWithHeaders < Void , ComputeNodeUpdateUserHeaders > , Void > ( ) { @ Override public Void call ( ServiceResponseWithHeaders < Void , ComputeNodeUpdateUserH...
public class SnapshotResource { /** * Returns a list of snapshots . * @ return */ @ GET @ Produces ( MediaType . APPLICATION_JSON ) public Response list ( @ QueryParam ( "host" ) String host , @ QueryParam ( "storeId" ) String storeId , @ QueryParam ( "status" ) SnapshotStatus status ) { } }
try { List < Snapshot > snapshots = listSnapshots ( host , storeId , status ) ; List < SnapshotSummary > summaries = new ArrayList < > ( snapshots . size ( ) ) ; for ( Snapshot snapshot : snapshots ) { summaries . add ( createSnapshotSummary ( snapshot ) ) ; } log . debug ( "returning {}" , snapshots ) ; return Respons...
public class AbstractUnitConverter { /** * Computes and returns the average character width of the specified test string using the given * FontMetrics . The test string shall represent an " average " text . * @ param metrics used to compute the test string ' s width * @ param testString the string that shall repr...
int width = metrics . stringWidth ( testString ) ; double average = ( double ) width / testString . length ( ) ; // System . out . println ( " Average width of ' " + testString + " ' = " + average ) ; return average ;
public class DeployKeysApi { /** * Get a list of the deploy keys for the specified project . This method requires admin access . * < pre > < code > GitLab Endpoint : GET / projects / : id / deploy _ keys < / code > < / pre > * @ param projectIdOrPath the project in the form of an Integer ( ID ) , String ( path ) , ...
return ( getProjectDeployKeys ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ;
public class AioSession { /** * 读取数据到Buffer * @ param handler { @ link CompletionHandler } * @ return this */ public AioSession read ( CompletionHandler < Integer , AioSession > handler ) { } }
if ( isOpen ( ) ) { this . readBuffer . clear ( ) ; this . channel . read ( this . readBuffer , Math . max ( this . readTimeout , 0L ) , TimeUnit . MILLISECONDS , this , handler ) ; } return this ;
public class GroupService { /** * Extract { @ link Group } from { @ link GroupFilter } * @ param groupFilter group search criteria * @ return array of groups */ private Group [ ] getRefsFromFilter ( GroupFilter groupFilter ) { } }
checkNotNull ( groupFilter , "Group filter must be not null" ) ; List < Group > groupList = findLazy ( groupFilter ) . map ( metadata -> Group . refById ( metadata . getId ( ) ) ) . collect ( toList ( ) ) ; return groupList . toArray ( new Group [ groupList . size ( ) ] ) ;
public class SmilesValencyChecker { /** * Returns whether a bond is saturated . A bond is saturated if * < b > both < / b > Atoms in the bond are saturated . */ public boolean isSaturated ( IBond bond , IAtomContainer atomContainer ) throws CDKException { } }
logger . debug ( "isBondSaturated?: " , bond ) ; IAtom [ ] atoms = BondManipulator . getAtomArray ( bond ) ; boolean isSaturated = true ; for ( int i = 0 ; i < atoms . length ; i ++ ) { logger . debug ( "isSaturated(Bond, AC): atom I=" , i ) ; isSaturated = isSaturated && isSaturated ( atoms [ i ] , atomContainer ) ; }...
public class crvserver_crpolicy_binding { /** * Use this API to fetch crvserver _ crpolicy _ binding resources of given name . */ public static crvserver_crpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
crvserver_crpolicy_binding obj = new crvserver_crpolicy_binding ( ) ; obj . set_name ( name ) ; crvserver_crpolicy_binding response [ ] = ( crvserver_crpolicy_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcPlaneAngleMeasure ( ) { } }
if ( ifcPlaneAngleMeasureEClass == null ) { ifcPlaneAngleMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 723 ) ; } return ifcPlaneAngleMeasureEClass ;
public class Task { /** * Answer to a partition state check issued after a failed partition request . */ @ VisibleForTesting void onPartitionStateUpdate ( IntermediateDataSetID intermediateDataSetId , ResultPartitionID resultPartitionId , ExecutionState producerState ) throws IOException , InterruptedException { } }
if ( executionState == ExecutionState . RUNNING ) { final SingleInputGate inputGate = inputGatesById . get ( intermediateDataSetId ) ; if ( inputGate != null ) { if ( producerState == ExecutionState . SCHEDULED || producerState == ExecutionState . DEPLOYING || producerState == ExecutionState . RUNNING || producerState ...
public class ExampleStereoTwoViewsOneCamera { /** * Convert a set of associated point features from pixel coordinates into normalized image coordinates . */ public static List < AssociatedPair > convertToNormalizedCoordinates ( List < AssociatedPair > matchedFeatures , CameraPinholeBrown intrinsic ) { } }
Point2Transform2_F64 p_to_n = LensDistortionFactory . narrow ( intrinsic ) . undistort_F64 ( true , false ) ; List < AssociatedPair > calibratedFeatures = new ArrayList < > ( ) ; for ( AssociatedPair p : matchedFeatures ) { AssociatedPair c = new AssociatedPair ( ) ; p_to_n . compute ( p . p1 . x , p . p1 . y , c . p1 ...
public class AOStream { /** * Helper method called by the AOStream when a persistent tick representing a persistently locked * message should be removed since the message has been rejected . This method will also unlock the * message * @ param t the transaction * @ param stream the stream making this call * @...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "unlockRejectedTick" ) ; try { SIMPMessage msg = consumerDispatcher . getMessageByValue ( storedTick ) ; Transaction msTran = mp . resolveAndEnlistMsgStoreTransaction ( t ) ; if ( msg != null ) { // Set the rme unlock count ...
public class SmtpRequests { /** * Creates a { @ code MAIL } request . */ public static SmtpRequest mail ( CharSequence sender , CharSequence ... mailParameters ) { } }
if ( mailParameters == null || mailParameters . length == 0 ) { return new DefaultSmtpRequest ( SmtpCommand . MAIL , sender != null ? "FROM:<" + sender + '>' : FROM_NULL_SENDER ) ; } else { List < CharSequence > params = new ArrayList < CharSequence > ( mailParameters . length + 1 ) ; params . add ( sender != null ? "F...
public class DataProvider { /** * Build entity metadata from entity class * @ param clazz Entity class * @ return EntityMetadata * @ throws MetadataException */ private EntityMetadata build ( Class < V > clazz ) throws MetadataException { } }
return EntityMetadata . buildEntityMetadata ( clazz , getCassandraClient ( ) ) ;
public class SftpSubsystemChannel { /** * Get the attributes of a file . * @ param file * @ return SftpFileAttributes * @ throws SftpStatusException * , SshException */ public SftpFileAttributes getAttributes ( SftpFile file ) throws SftpStatusException , SshException { } }
try { if ( file . getHandle ( ) == null ) { return getAttributes ( file . getAbsolutePath ( ) ) ; } UnsignedInteger32 requestId = nextRequestId ( ) ; Packet msg = createPacket ( ) ; msg . write ( SSH_FXP_FSTAT ) ; msg . writeInt ( requestId . longValue ( ) ) ; msg . writeBinaryString ( file . getHandle ( ) ) ; if ( ver...
public class HttpServer { /** * Adds gzip filter for automatic response messages compressing . */ private void addGzipFilter ( ) { } }
FilterMapping filterMapping = new FilterMapping ( ) ; filterMapping . setFilterName ( "gzip-filter" ) ; filterMapping . setPathSpec ( "/*" ) ; FilterHolder filterHolder = new FilterHolder ( new GzipServletFilter ( ) ) ; filterHolder . setName ( "gzip-filter" ) ; servletHandler . addFilter ( filterHolder , filterMapping...
public class PGDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setXpgSize ( Integer newXpgSize ) { } }
Integer oldXpgSize = xpgSize ; xpgSize = newXpgSize ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . PGD__XPG_SIZE , oldXpgSize , xpgSize ) ) ;
public class ImplAverageDownSample { /** * Down samples the image along the x - axis only . Image height ' s must be the same . * @ param src Input image . Not modified . * @ param dst Output image . Modified . */ public static void horizontal ( GrayF32 src , GrayF32 dst ) { } }
if ( src . width < dst . width ) throw new IllegalArgumentException ( "src width must be >= dst width" ) ; if ( src . height != dst . height ) throw new IllegalArgumentException ( "src height must equal dst height" ) ; float scale = src . width / ( float ) dst . width ; // CONCURRENT _ BELOW BoofConcurrency . loopFor (...
public class DateUtils { /** * 计算两个日期之间相差的天数 * @ param start 较小的时间 * @ param end 较大的时间 * @ return 相差天数 * @ since 2.0.2 */ public static int getPeriodDays ( Date start , Date end ) { } }
try { start = FORMAT_DATE_ . parse ( FORMAT_DATE_ . format ( start ) ) ; end = FORMAT_DATE_ . parse ( FORMAT_DATE_ . format ( end ) ) ; Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( start ) ; long time1 = cal . getTimeInMillis ( ) ; cal . setTime ( end ) ; long time2 = cal . getTimeInMillis ( ) ; long bet...
public class BaseDatabase { /** * Get the owner of this property key . * @ param strPropertyCode The key I ' m looking for the owner to . * @ return The owner of this property key . */ public PropertyOwner retrieveUserProperties ( String strRegistrationKey ) { } }
if ( m_properties != null ) if ( m_properties . get ( strRegistrationKey ) != null ) return this ; return m_databaseOwner . retrieveUserProperties ( strRegistrationKey ) ;
public class SymmetricCrypto { /** * 加密 * @ param data 被加密的字符串 * @ param charset 编码 * @ return 加密后的Hex */ public String encryptHex ( String data , String charset ) { } }
return HexUtil . encodeHexStr ( encrypt ( data , charset ) ) ;
public class RepositoryApi { /** * Get a Stream of repository files and directories in a project . * < pre > < code > GitLab Endpoint : GET / projects / : id / repository / tree < / code > < / pre > * id ( required ) - The ID of a project * path ( optional ) - The path inside repository . Used to get contend of s...
return ( getTree ( projectIdOrPath , filePath , refName , recursive , getDefaultPerPage ( ) ) . stream ( ) ) ;
public class Utils { /** * Gets an { @ link Optional } for the loaded { @ link Chunk } at the specified { @ link BlockPos } . * @ param world the world * @ param pos the pos * @ return the loaded chunk */ public static Optional < Chunk > getLoadedChunk ( World world , BlockPos pos ) { } }
if ( world . getChunkProvider ( ) == null ) return Optional . empty ( ) ; return Optional . ofNullable ( world . getChunkProvider ( ) . getLoadedChunk ( pos . getX ( ) >> 4 , pos . getZ ( ) >> 4 ) ) ;
public class PluginManager { /** * This is used to pass all the methods into the model for editGroup * ( mostly just for testing and seeing how things work for now ) * gets all the methods so that i can pass them in as an attribute to our model * @ return List of all Methods * @ throws Exception exception */ pu...
ArrayList < com . groupon . odo . proxylib . models . Method > methods = new ArrayList < com . groupon . odo . proxylib . models . Method > ( ) ; String [ ] classes = getPluginClasses ( ) ; for ( int i = 0 ; i < classes . length ; i ++ ) { try { String [ ] methodNames = getMethods ( classes [ i ] ) ; for ( int j = 0 ; ...
public class EventHubConnectionsInner { /** * Creates or updates a Event Hub connection . * @ param resourceGroupName The name of the resource group containing the Kusto cluster . * @ param clusterName The name of the Kusto cluster . * @ param databaseName The name of the database in the Kusto cluster . * @ par...
return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , clusterName , databaseName , eventHubConnectionName , parameters ) . map ( new Func1 < ServiceResponse < EventHubConnectionInner > , EventHubConnectionInner > ( ) { @ Override public EventHubConnectionInner call ( ServiceResponse < EventHubConnect...
public class IntListUtil { /** * Converts an array of Integer objects to an array of primitives . */ public static int [ ] unbox ( Collection < Integer > list ) { } }
if ( list == null ) { return null ; } int [ ] unboxed = new int [ list . size ( ) ] ; int ii = 0 ; for ( Integer value : list ) { unboxed [ ii ++ ] = value ; } return unboxed ;
public class ReconnectFilter { /** * private helpers */ private String getRequiredScope ( ApiException apiException ) { } }
return apiException instanceof InsufficientPermissionException ? ( ( InsufficientPermissionException ) apiException ) . getRequiredPermission ( ) : null ;
public class CaliperConfig { /** * Returns the configuration of the current host JVM ( including the flags used to create it ) . Any * args specified using { @ code vm . args } will also be applied */ public VmConfig getDefaultVmConfig ( ) { } }
return new Builder ( new File ( System . getProperty ( "java.home" ) ) ) . addAllOptions ( Collections2 . filter ( ManagementFactory . getRuntimeMXBean ( ) . getInputArguments ( ) , new Predicate < String > ( ) { @ Override public boolean apply ( @ Nullable String input ) { // Exclude the - agentlib : jdwp param which ...
public class IterableUtil { /** * Transform the Iterable by applying a function to each element * */ public static < T , R > Iterable < R > map ( final Iterable < T > iterable , final IFunction < T , R > mapper ) { } }
return new Iterable < R > ( ) { @ Override public Iterator < R > iterator ( ) { return map ( iterable . iterator ( ) , mapper ) ; } } ;
public class PackageInfoList { /** * Find the subset of the { @ link PackageInfo } objects in this list for which the given filter predicate is true . * @ param filter * The { @ link PackageInfoFilter } to apply . * @ return The subset of the { @ link PackageInfo } objects in this list for which the given filter ...
final PackageInfoList packageInfoFiltered = new PackageInfoList ( ) ; for ( final PackageInfo resource : this ) { if ( filter . accept ( resource ) ) { packageInfoFiltered . add ( resource ) ; } } return packageInfoFiltered ;
public class CorporationApi { /** * Get corporation standings ( asynchronously ) Return corporation standings * from agents , NPC corporations , and factions - - - This route is cached for * up to 3600 seconds SSO Scope : esi - corporations . read _ standings . v1 * @ param corporationId * An EVE corporation ID...
com . squareup . okhttp . Call call = getCorporationsCorporationIdStandingsValidateBeforeCall ( corporationId , datasource , ifNoneMatch , page , token , callback ) ; Type localVarReturnType = new TypeToken < List < CorporationStandingsResponse > > ( ) { } . getType ( ) ; apiClient . executeAsync ( call , localVarRetur...
public class ProjectFilterSettings { /** * Return whether or not a warning should be displayed , according to the * project filter settings . * @ param bugInstance * the warning * @ return true if the warning should be displayed , false if not */ public boolean displayWarning ( BugInstance bugInstance ) { } }
int priority = bugInstance . getPriority ( ) ; if ( priority > getMinPriorityAsInt ( ) ) { return false ; } int rank = bugInstance . getBugRank ( ) ; if ( rank > getMinRank ( ) ) { return false ; } BugPattern bugPattern = bugInstance . getBugPattern ( ) ; // HACK : it is conceivable that the detector plugin which gener...
public class DistributedAvatarFileSystem { /** * Return statistics for each datanode . * @ return array of data node reports * @ throw IOException */ public DatanodeInfo [ ] getDataNodeStats ( final boolean useStandby ) throws IOException { } }
return new StandbyCaller < DatanodeInfo [ ] > ( ) { @ Override DatanodeInfo [ ] call ( DistributedFileSystem fs ) throws IOException { return fs . getDataNodeStats ( ) ; } } . callFS ( useStandby ) ;
public class CustomizableThreadCreator { /** * Template method for the creation of a new { @ link Thread } . * The default implementation creates a new Thread for the given * { @ link Runnable } , applying an appropriate thread name . * @ param runnable * the Runnable to execute * @ see # nextThreadName ( ) *...
Thread thread = new Thread ( getThreadGroup ( ) , runnable , nextThreadName ( ) ) ; thread . setPriority ( getThreadPriority ( ) ) ; thread . setDaemon ( isDaemon ( ) ) ; return thread ;
public class BusinessUtils { /** * Optionally returns the qualifier annotation of a class . */ public static Optional < Annotation > getQualifier ( AnnotatedElement annotatedElement ) { } }
AnnotatedElement cleanedAnnotatedElement ; if ( annotatedElement instanceof Class < ? > ) { cleanedAnnotatedElement = ProxyUtils . cleanProxy ( ( Class < ? > ) annotatedElement ) ; } else { cleanedAnnotatedElement = annotatedElement ; } return Annotations . on ( cleanedAnnotatedElement ) . findAll ( ) . filter ( Annota...
public class hanode { /** * Use this API to fetch hanode resources of given names . */ public static hanode [ ] get ( nitro_service service , Long id [ ] ) throws Exception { } }
if ( id != null && id . length > 0 ) { hanode response [ ] = new hanode [ id . length ] ; hanode obj [ ] = new hanode [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { obj [ i ] = new hanode ( ) ; obj [ i ] . set_id ( id [ i ] ) ; response [ i ] = ( hanode ) obj [ i ] . get_resource ( service ) ; } return ...
public class LabeledChunkIdentifier { /** * Find and annotate chunks . Returns list of CoreMap ( Annotation ) objects . * @ param tokens - List of tokens to look for chunks * @ param totalTokensOffset - Index of tokens to offset by * @ param textKey - Key to use to find the token text * @ param labelKey - Key t...
return getAnnotatedChunks ( tokens , totalTokensOffset , textKey , labelKey , null , null ) ;
public class BitfinexSymbols { /** * Returns symbol for candlestick channel * @ param currency of candles * @ param profitCurrency of candles * @ param timeframe configuration of candles * @ return symbol */ public static BitfinexCandlestickSymbol candlesticks ( final String currency , final String profitCurren...
final String currencyNonNull = Objects . requireNonNull ( currency ) . toUpperCase ( ) ; final String profitCurrencyNonNull = Objects . requireNonNull ( profitCurrency ) . toUpperCase ( ) ; return candlesticks ( BitfinexCurrencyPair . of ( currencyNonNull , profitCurrencyNonNull ) , timeframe ) ;
public class JidePageDescriptor { /** * Builds the initial page layout by iterating the * collection of view descriptors . */ public void buildInitialLayout ( PageLayoutBuilder pageLayout ) { } }
for ( Iterator iter = _viewDescriptors . iterator ( ) ; iter . hasNext ( ) ; ) { String viewDescriptorId = ( String ) iter . next ( ) ; pageLayout . addView ( viewDescriptorId ) ; }
public class PathMatchingResourcePatternResolver { /** * Find all class location resources with the given path via the ClassLoader . * Called by { @ link # findAllClassPathResources ( String ) } . * @ param path the absolute path within the classpath ( never a leading slash ) * @ return a mutable Set of matching ...
Set < Resource > result = new LinkedHashSet < Resource > ( 16 ) ; ClassLoader cl = getClassLoader ( ) ; Enumeration < URL > resourceUrls = ( cl != null ? cl . getResources ( path ) : ClassLoader . getSystemResources ( path ) ) ; while ( resourceUrls . hasMoreElements ( ) ) { URL url = resourceUrls . nextElement ( ) ; r...
public class BatchDeleteBuildsResult { /** * Information about any builds that could not be successfully deleted . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setBuildsNotDeleted ( java . util . Collection ) } or { @ link # withBuildsNotDeleted ( java . u...
if ( this . buildsNotDeleted == null ) { setBuildsNotDeleted ( new java . util . ArrayList < BuildNotDeleted > ( buildsNotDeleted . length ) ) ; } for ( BuildNotDeleted ele : buildsNotDeleted ) { this . buildsNotDeleted . add ( ele ) ; } return this ;
public class TrieNode { /** * Gets child . * @ param token the token * @ return the child */ public Optional < ? extends TrieNode > getChild ( char token ) { } }
NodeData data = getData ( ) ; int min = data . firstChildIndex ; int max = data . firstChildIndex + data . numberOfChildren - 1 ; while ( min <= max ) { int i = ( min + max ) / 2 ; TrieNode node = new TrieNode ( this . trie , i , TrieNode . this ) ; char c = node . getChar ( ) ; int compare = Character . compare ( c , ...
public class Lookup { /** * Returns an error string describing the result code of this lookup . * @ return A string , which may either directly correspond the result code * or be more specific . * @ throws IllegalStateException The lookup has not completed . */ public String getErrorString ( ) { } }
checkDone ( ) ; if ( error != null ) return error ; switch ( result ) { case SUCCESSFUL : return "successful" ; case UNRECOVERABLE : return "unrecoverable error" ; case TRY_AGAIN : return "try again" ; case HOST_NOT_FOUND : return "host not found" ; case TYPE_NOT_FOUND : return "type not found" ; } throw new IllegalSta...
public class InstanceIdentityProvider { /** * Shortcut to { @ link KeyPair # getPrivate ( ) } . * @ return the private key . { @ code null } if { @ link # getKeyPair ( ) } is { @ code null } . */ @ SuppressWarnings ( "unchecked" ) @ CheckForNull protected PRIV getPrivateKey ( ) { } }
KeyPair keyPair = getKeyPair ( ) ; return keyPair == null ? null : ( PRIV ) keyPair . getPrivate ( ) ;
public class XMLUtils { /** * Escapes a character sequence so that it is valid XML . * @ param s * The character sequence . * @ return The escaped version of the character sequence . */ @ Nonnull public static String escapeXML ( CharSequence s ) { } }
// double quote - - quot // ampersand - - amp // less than - - lt // greater than - - gt // apostrophe - - apos StringBuilder sb = new StringBuilder ( s . length ( ) * 2 ) ; for ( int i = 0 ; i < s . length ( ) ; ) { int codePoint = Character . codePointAt ( s , i ) ; if ( codePoint == '<' ) { sb . append ( LT ) ; } el...
public class Img { /** * 给图片添加图片水印 * @ param pressImg 水印图片 , 可以使用 { @ link ImageIO # read ( File ) } 方法读取文件 * @ param x 修正值 。 默认在中间 , 偏移量相对于中间偏移 * @ param y 修正值 。 默认在中间 , 偏移量相对于中间偏移 * @ param alpha 透明度 : alpha 必须是范围 [ 0.0 , 1.0 ] 之内 ( 包含边界值 ) 的一个浮点数字 * @ return this */ public Img pressImage ( Image pressImg ,...
final int pressImgWidth = pressImg . getWidth ( null ) ; final int pressImgHeight = pressImg . getHeight ( null ) ; return pressImage ( pressImg , new Rectangle ( x , y , pressImgWidth , pressImgHeight ) , alpha ) ;
public class Compass { /** * < editor - fold defaultstate = " collapsed " desc = " Initialization " > */ @ Override public AbstractGauge init ( final int WIDTH , final int HEIGHT ) { } }
final int GAUGE_WIDTH = isFrameVisible ( ) ? WIDTH : getGaugeBounds ( ) . width ; final int GAUGE_HEIGHT = isFrameVisible ( ) ? HEIGHT : getGaugeBounds ( ) . height ; if ( GAUGE_WIDTH <= 1 || GAUGE_HEIGHT <= 1 ) { return this ; } if ( ! isFrameVisible ( ) ) { setFramelessOffset ( - getGaugeBounds ( ) . width * 0.084112...
public class CloseableIteratorChain { /** * Updates the current iterator field to ensure that the current Iterator is * not exhausted */ protected void updateCurrentIterator ( ) throws DataSourceReadException { } }
if ( currentIterator == null ) { if ( iteratorChain . isEmpty ( ) ) { currentIterator = new EmptyDataStreamingEventIterator ( ) ; } else { currentIterator = iteratorChain . remove ( ) ; } // set last used iterator here , in case the user calls remove // before calling hasNext ( ) or next ( ) ( although they shouldn ' t...
public class CubicInterpolation { /** * In C : again - two - registers . c find _ straddle _ aux L1322 */ private static int recursiveFindStraddle ( final double [ ] xArr , final int left , final int right , final double x ) { } }
final int middle ; assert ( left < right ) ; assert ( ( xArr [ left ] <= x ) && ( x < xArr [ right ] ) ) ; /* the invariant */ if ( ( left + 1 ) == right ) { return ( left ) ; } middle = left + ( ( right - left ) / 2 ) ; if ( xArr [ middle ] <= x ) { return ( recursiveFindStraddle ( xArr , middle , right , x ) ) ; } el...
public class AbstractStatisticalTokenDistance { /** * Accumulate statistics on how often each token value occurs */ public void train ( StringWrapperIterator i ) { } }
Set seenTokens = new HashSet ( ) ; while ( i . hasNext ( ) ) { BagOfTokens bag = asBagOfTokens ( i . nextStringWrapper ( ) ) ; seenTokens . clear ( ) ; for ( Iterator j = bag . tokenIterator ( ) ; j . hasNext ( ) ; ) { totalTokenCount ++ ; Token tokj = ( Token ) j . next ( ) ; if ( ! seenTokens . contains ( tokj ) ) { ...
public class ApiOvhTelephony { /** * Alter this object properties * REST : PUT / telephony / { billingAccount } / screen / { serviceName } * @ param body [ required ] New object properties * @ param billingAccount [ required ] The name of your billingAccount * @ param serviceName [ required ] */ public void bil...
String qPath = "/telephony/{billingAccount}/screen/{serviceName}" ; StringBuilder sb = path ( qPath , billingAccount , serviceName ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class EncodedImage { /** * We get the size from a generic image */ private ImageMetaData readImageMetaData ( ) { } }
InputStream inputStream = null ; ImageMetaData metaData = null ; try { inputStream = getInputStream ( ) ; metaData = BitmapUtil . decodeDimensionsAndColorSpace ( inputStream ) ; mColorSpace = metaData . getColorSpace ( ) ; Pair < Integer , Integer > dimensions = metaData . getDimensions ( ) ; if ( dimensions != null ) ...
public class UrlTileGenerator { /** * Download the tile from the URL * @ param zoomUrl * @ param url * @ param z * @ param x * @ param y * @ return tile bytes */ private byte [ ] downloadTile ( String zoomUrl , URL url , int z , long x , long y ) { } }
byte [ ] bytes = null ; HttpURLConnection connection = null ; try { connection = ( HttpURLConnection ) url . openConnection ( ) ; connection . connect ( ) ; int responseCode = connection . getResponseCode ( ) ; if ( responseCode == HttpURLConnection . HTTP_MOVED_PERM || responseCode == HttpURLConnection . HTTP_MOVED_TE...
public class CeActivityDao { /** * Ordered by id desc - > newest to oldest */ public List < CeActivityDto > selectByQuery ( DbSession dbSession , CeTaskQuery query , Pagination pagination ) { } }
if ( query . isShortCircuitedByMainComponentUuids ( ) ) { return Collections . emptyList ( ) ; } return mapper ( dbSession ) . selectByQuery ( query , pagination ) ;
public class LBiObjIntConsumerBuilder { /** * One of ways of creating builder . This might be the only way ( considering all _ functional _ builders ) that might be utilize to specify generic params only once . */ @ Nonnull public static < T1 , T2 > LBiObjIntConsumerBuilder < T1 , T2 > biObjIntConsumer ( Consumer < LBi...
return new LBiObjIntConsumerBuilder ( consumer ) ;
public class Flowable { /** * Returns a Single that emits only the last item emitted by this Flowable , or a default item * if this Flowable completes without emitting any items . * < img width = " 640 " height = " 305 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / ...
ObjectHelper . requireNonNull ( defaultItem , "defaultItem" ) ; return RxJavaPlugins . onAssembly ( new FlowableLastSingle < T > ( this , defaultItem ) ) ;
public class ListIndexedIterating { /** * overrides the interface to create and clear the stack and loops tracker * @ param classContext * the context object for the currently parsed class */ @ Override public void visitClassContext ( ClassContext classContext ) { } }
try { stack = new OpcodeStack ( ) ; possibleForLoops = new HashSet < > ( ) ; super . visitClassContext ( classContext ) ; } finally { stack = null ; possibleForLoops = null ; }
public class DefaultWhenFileSystem { /** * Obtain properties for the file represented by { @ code path } , asynchronously . * If the file is a link , the link will be followed . * @ param path the path to the file * @ return a promise for file properties */ @ Override public Promise < FileProps > props ( String p...
return adapter . toPromise ( handler -> vertx . fileSystem ( ) . props ( path , handler ) ) ;
public class MutableHttpServletRequest { /** * Set the cachedInputStream as a copy of passed { @ link InputStream } * @ param stream The { @ link InputStream } to set ( copy ) */ public void setInputStream ( InputStream stream ) { } }
try { cachedInputStream = new ByteArrayOutputStream ( ) ; IOUtils . copy ( stream , cachedInputStream ) ; } catch ( IOException e ) { LOG . error ( "Exception on writing InputStream." , e ) ; }
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public String convertMappingOptionMapValueToString ( EDataType eDataType , Object instanceValue ) { } }
return instanceValue == null ? null : instanceValue . toString ( ) ;
public class ConfigArgP { /** * Returns the { @ link ConfigurationItem } with the passed key * @ param key The key of the item to fetch * @ return The matching ConfigurationItem or null if one was not found */ public ConfigurationItem getConfigurationItem ( final String key ) { } }
if ( key == null || key . trim ( ) . isEmpty ( ) ) throw new IllegalArgumentException ( "The passed key was null or empty" ) ; return getConfigurationItemByKey ( configItemsByKey , key ) ;
public class AreaFiller { /** * Fills area . Pixels fullfilling target are replaced with * replacement color . * < p > Note ! Pattern is in relative coordinates * @ param isInside * @ param pattern */ public void fill ( IntBiPredicate isInside , IntBinaryOperator pattern ) { } }
fill ( 0 , 0 , width , height , isInside , pattern ) ;
public class View { /** * Attempts to copy the visual layout information ( e . g . x , y coordinates ) of elements and relationships * from the specified source view into this view . * @ param source the source View */ void copyLayoutInformationFrom ( @ Nonnull View source ) { } }
if ( this . getPaperSize ( ) == null ) { this . setPaperSize ( source . getPaperSize ( ) ) ; } for ( ElementView sourceElementView : source . getElements ( ) ) { ElementView destinationElementView = findElementView ( sourceElementView ) ; if ( destinationElementView != null ) { destinationElementView . copyLayoutInform...
public class CollectionHelper { /** * Returns the index of the only element in a collection that matches the given predicate . * Returns { # NOT _ FOUND _ INDEX } if no element matches the given predicate . * Throws a { @ link InvalidOperationException } if there is more than 1 element matching the predicate . * ...
int result = NOT_FOUND_INDEX ; if ( ! isEmpty ( items ) ) { int index = 0 ; for ( T item : items ) { if ( predicate . apply ( item ) ) { if ( result == NOT_FOUND_INDEX ) { result = index ; } else { throw new InvalidOperationException ( "Multiple items match!" ) ; } } index ++ ; } } return result ;
public class GenomicsUtils { /** * Gets ReadGroupSetIds from a given datasetId using the Genomics API . * @ param datasetId The id of the dataset to query . * @ param auth The OfflineAuth for the API request . * @ return The list of readGroupSetIds in the dataset . * @ throws IOException If dataset does not con...
List < String > output = Lists . newArrayList ( ) ; Genomics genomics = GenomicsFactory . builder ( ) . build ( ) . fromOfflineAuth ( auth ) ; Iterable < ReadGroupSet > rgs = Paginator . ReadGroupSets . create ( genomics ) . search ( new SearchReadGroupSetsRequest ( ) . setDatasetIds ( Lists . newArrayList ( datasetId ...
public class AnonymousClassUtil { /** * / * @ Nullable */ private static SymbolData symbolData ( Node n ) { } }
return n instanceof SymbolDataAware ? ( ( SymbolDataAware ) n ) . getSymbolData ( ) : null ;
public class KvStateService { public void start ( ) { } }
synchronized ( lock ) { Preconditions . checkState ( ! isShutdown , "The KvStateService has already been shut down." ) ; LOG . info ( "Starting the kvState service and its components." ) ; if ( kvStateServer != null ) { try { kvStateServer . start ( ) ; } catch ( Throwable ie ) { kvStateServer . shutdown ( ) ; kvStateS...
public class TreeGraphNodeFactory { /** * docs inherited */ public Tree newTreeNode ( final String parent , final List < Tree > children ) { } }
return newTreeNode ( mlf . newLabel ( parent ) , children ) ;
public class Options { /** * Given a path e . g . org . bedework . global . module return all children which * are leaf nodes , i . e values . * @ param subroot * @ param pathElements * @ param pos * @ return Collection */ @ SuppressWarnings ( "unchecked" ) private static Collection match ( final OptionElemen...
if ( pos >= 0 ) { // Not at root . if ( ! pathElements [ pos ] . equals ( subroot . name ) ) { return null ; } } if ( subroot . isValue ) { // pos must be last entry if ( ( pos + 1 ) != pathElements . length ) { return null ; } ArrayList res = new ArrayList ( ) ; res . add ( subroot . val ) ; return res ; } ArrayList r...
public class CustomHostnameVerifier { /** * Returns true if { @ code certificate } matches { @ code hostname } . */ private boolean verifyHostname ( String hostname , X509Certificate certificate ) { } }
hostname = hostname . toLowerCase ( Locale . US ) ; boolean hasDns = false ; List < String > altNames = getSubjectAltNames ( certificate , ALT_DNS_NAME ) ; for ( int i = 0 , size = altNames . size ( ) ; i < size ; i ++ ) { hasDns = true ; if ( verifyHostname ( hostname , altNames . get ( i ) ) ) { return true ; } } if ...
public class Tree { /** * Associates the specified byte array with the specified path . If the * structure previously contained a mapping for the path , the old value is * replaced . Sample code : < br > * < br > * Tree node = new Tree ( ) ; < br > * node . put ( " a . b . c " , " test " . getBytes ( ) ) ; ...
if ( asBase64String ) { return putObjectInternal ( path , BASE64 . encode ( value ) , false ) ; } return putObjectInternal ( path , value , false ) ;
public class PullFileLoader { /** * Load a { @ link Properties } compatible path using fallback as fallback . * @ return The { @ link Config } in path with fallback as fallback . * @ throws IOException */ private Config loadJavaPropsWithFallback ( Path propertiesPath , Config fallback ) throws IOException { } }
PropertiesConfiguration propertiesConfiguration = new PropertiesConfiguration ( ) ; try ( InputStreamReader inputStreamReader = new InputStreamReader ( this . fs . open ( propertiesPath ) , Charsets . UTF_8 ) ) { propertiesConfiguration . setDelimiterParsingDisabled ( ConfigUtils . getBoolean ( fallback , PROPERTY_DELI...
public class ClassInfo { /** * Set up the screen input fields . */ public void setupFields ( ) { } }
FieldInfo field = null ; field = new FieldInfo ( this , ID , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setDataClass ( Integer . class ) ; field . setHidden ( true ) ; field = new FieldInfo ( this , LAST_CHANGED , Constants . DEFAULT_FIELD_LENGTH , null , null ) ; field . setDataClass ( Date . class ) ;...
public class ConfigurationImpl { /** * Returns the data sources belonging to a particular group of data * sources . Data sources are grouped in record linkage mode , but not * in deduplication mode , so only use this method in record linkage * mode . */ public Collection < DataSource > getDataSources ( int groupn...
if ( groupno == 1 ) return group1 ; else if ( groupno == 2 ) return group2 ; else throw new DukeConfigException ( "Invalid group number: " + groupno ) ;