signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class NettyClientConfig { /** * 因为每次连接执行都会init都会被remove , 所以每次调用booter都会用新的handler来进行连接配置
* @ param address
* @ param init
* @ return */
protected ChannelFuture doBooterConnect ( InetSocketAddress address , final ChannelHandler init ) { } } | ChannelFuture cf ; synchronized ( booter ) { if ( booter . config ( ) . group ( ) == null ) { booterInit ( ) ; } final CountDownLatch latch = new CountDownLatch ( 1 ) ; ChannelHandler handler = initHandlerAdapter ( init ) ; booter . handler ( handler ) ; cf = booter . connect ( address ) ; cf . addListener ( new Channe... |
public class Utility { /** * Escape unprintable characters using < backslash > uxxxx notation
* for U + 0000 to U + FFFF and < backslash > Uxxxxx for U + 10000 and
* above . If the character is printable ASCII , then do nothing
* and return FALSE . Otherwise , append the escaped notation and
* return TRUE . */
... | try { if ( isUnprintable ( c ) ) { result . append ( '\\' ) ; if ( ( c & ~ 0xFFFF ) != 0 ) { result . append ( 'U' ) ; result . append ( DIGITS [ 0xF & ( c >> 28 ) ] ) ; result . append ( DIGITS [ 0xF & ( c >> 24 ) ] ) ; result . append ( DIGITS [ 0xF & ( c >> 20 ) ] ) ; result . append ( DIGITS [ 0xF & ( c >> 16 ) ] )... |
public class ServerRequest { /** * < p > Sets a { @ link JSONObject } containing the post data supplied with the current request . < / p >
* @ param post A { @ link JSONObject } containing the post data supplied with the current request
* as key - value pairs . */
protected void setPost ( JSONObject post ) throws J... | params_ = post ; if ( getBranchRemoteAPIVersion ( ) == BRANCH_API_VERSION . V2 ) { try { JSONObject userDataObj = new JSONObject ( ) ; params_ . put ( Defines . Jsonkey . UserData . getKey ( ) , userDataObj ) ; DeviceInfo . getInstance ( ) . updateRequestWithV2Params ( context_ , prefHelper_ , userDataObj ) ; } catch (... |
public class EnforcementJobRestEntity { /** * Gets an specific enforcements given a agreementId If the enforcementJob
* it is not in the database , it returns 404 with empty payload
* < pre >
* GET / enforcements / { agreementId }
* Request :
* GET / enforcements HTTP / 1.1
* Response :
* { @ code
* < ?... | logger . debug ( "StartOf getEnforcementJobByAgreementId - REQUEST for /enforcements/{}" , agreementUUID ) ; EnforcementJobHelperE enforcementJobService = getHelper ( ) ; EnforcementJob enforcementJob = enforcementJobService . getEnforcementJobByUUID ( agreementUUID ) ; if ( enforcementJob == null ) { logger . info ( "... |
public class AbstractHttpTransport { /** * Returns a map containing the has - condition / value pairs specified in the request
* @ param request
* The http request object
* @ param versionError
* True if a version error was detected .
* @ return The map containing the has - condition / value pairs .
* @ thr... | final String sourceMethod = "getFeaturesFromRequest" ; // $ NON - NLS - 1 $
boolean isTraceLogging = log . isLoggable ( Level . FINER ) ; if ( isTraceLogging ) { log . entering ( sourceClass , sourceMethod , new Object [ ] { request , versionError } ) ; } StringBuffer sb = request . getRequestURL ( ) ; if ( sb != null ... |
public class Webcam { /** * Get RAW image ByteBuffer . It will always return buffer with 3 x 1 bytes per each pixel , where
* RGB components are on ( 0 , 1 , 2 ) and color space is sRGB . < br >
* < br >
* < b > IMPORTANT ! < / b > < br >
* Some drivers can return direct ByteBuffer , so there is no guarantee th... | if ( ! isReady ( ) ) { return null ; } assert driver != null ; assert device != null ; long t1 = 0 ; long t2 = 0 ; // some devices can support direct image buffers , and for those call
// processor task , and for those which does not support direct image
// buffers , just convert image to RGB byte array
if ( device ins... |
public class StatsHelper { /** * TODO : change to StringBuffer for better performance */
public static String statsToTclAttrString ( StatsImpl stats , DataDescriptor dd , String nodeName , String serverName ) { } } | return statsToTclAttrString ( null , stats , dd , nodeName , serverName ) ; |
public class DependencyVersion { /** * Parses a version string into its sub parts : major , minor , revision ,
* build , etc . < b > Note < / b > , this should only be used to parse something that
* is already known to be a version number .
* @ param version the version string to parse */
public final void parseV... | versionParts = new ArrayList < > ( ) ; if ( version != null ) { final Pattern rx = Pattern . compile ( "(\\d+[a-z]{1,3}$|[a-z]+\\d+|\\d+|(release|beta|alpha)$)" ) ; final Matcher matcher = rx . matcher ( version . toLowerCase ( ) ) ; while ( matcher . find ( ) ) { versionParts . add ( matcher . group ( ) ) ; } if ( ver... |
public class MessageAttributeValue { /** * Not implemented . Reserved for future use .
* @ return Not implemented . Reserved for future use . */
public java . util . List < java . nio . ByteBuffer > getBinaryListValues ( ) { } } | if ( binaryListValues == null ) { binaryListValues = new com . amazonaws . internal . SdkInternalList < java . nio . ByteBuffer > ( ) ; } return binaryListValues ; |
public class MapperHelper { /** * 配置指定的接口
* @ param configuration
* @ param mapperInterface */
public void processConfiguration ( Configuration configuration , Class < ? > mapperInterface ) { } } | String prefix ; if ( mapperInterface != null ) { prefix = mapperInterface . getCanonicalName ( ) ; } else { prefix = "" ; } for ( Object object : new ArrayList < Object > ( configuration . getMappedStatements ( ) ) ) { if ( object instanceof MappedStatement ) { MappedStatement ms = ( MappedStatement ) object ; if ( ms ... |
public class XStreamTranscoder { /** * Get the object represented by the given serialized bytes .
* @ param in
* the bytes to deserialize
* @ return the resulting object */
@ Override public ConcurrentMap < String , Object > deserializeAttributes ( final byte [ ] in ) { } } | final ByteArrayInputStream bis = new ByteArrayInputStream ( in ) ; try { @ SuppressWarnings ( "unchecked" ) final ConcurrentMap < String , Object > result = ( ConcurrentMap < String , Object > ) _xstream . fromXML ( bis ) ; return result ; } catch ( final RuntimeException e ) { LOG . warn ( "Caught Exception decoding "... |
public class AbstractPrintQuery { /** * Get the String representation of a phrase .
* @ param _ selectBldr the select bldr
* @ param _ msgPhrase the msg phrase
* @ return String representation of the phrase
* @ throws EFapsException on error */
public String getMsgPhrase ( final SelectBuilder _selectBldr , fina... | return getMsgPhrase ( _selectBldr , _msgPhrase . getMsgPhrase ( ) ) ; |
public class OrgAPI { /** * Returns the members , both invited and active , of the given organization .
* This method is only available for organization administrators . For users
* only invited , only very limited information will be returned for the user
* and profile .
* @ param orgId
* The id of the organ... | return getResourceFactory ( ) . getApiResource ( "/org/" + orgId + "/member/" ) . get ( new GenericType < List < OrganizationMember > > ( ) { } ) ; |
public class ConsumerDispatcher { /** * Method setReadyForUse .
* < p > Sets the state of the ConsumerDispatcher to " READY _ FOR _ USE " < / p > */
@ Override public void setReadyForUse ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setReadyForUse" ) ; state = SIMPState . READY_FOR_USE ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "setReadyForUse" ) ; |
public class HibernateBundle { /** * Override to configure the { @ link Hibernate5Module } . */
protected Hibernate5Module createHibernate5Module ( ) { } } | Hibernate5Module module = new Hibernate5Module ( ) ; if ( lazyLoadingEnabled ) { module . enable ( Feature . FORCE_LAZY_LOADING ) ; } return module ; |
public class EndpointMessageResultMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EndpointMessageResult endpointMessageResult , ProtocolMarshaller protocolMarshaller ) { } } | if ( endpointMessageResult == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( endpointMessageResult . getAddress ( ) , ADDRESS_BINDING ) ; protocolMarshaller . marshall ( endpointMessageResult . getDeliveryStatus ( ) , DELIVERYSTATUS_BINDING... |
public class Period { /** * Returns a copy of this period with the specified months subtracted .
* This subtracts the amount from the months unit in a copy of this period .
* The years and days units are unaffected .
* For example , " 1 year , 6 months and 3 days " minus 2 months returns " 1 year , 4 months and 3... | return ( monthsToSubtract == Long . MIN_VALUE ? plusMonths ( Long . MAX_VALUE ) . plusMonths ( 1 ) : plusMonths ( - monthsToSubtract ) ) ; |
public class FormatStep { /** * < p > Startet einen neuen oder - Block . < / p >
* @ return updated format step
* @ throws IllegalStateException if a new or - block was already started
* @ since 3.14/4.11 */
FormatStep startNewOrBlock ( ) { } } | if ( this . orMarker ) { throw new IllegalStateException ( "Cannot start or-block twice." ) ; } return new FormatStep ( this . processor , this . level , this . section , this . sectionalAttrs , null , // called before build of formatter
this . reserved , this . padLeft , this . padRight , true , - 1 ) ; |
public class SequenceRenderer { /** * Initialize resolution .
* @ param source The resolution source ( must not be < code > null < / code > ) .
* @ throws LionEngineException If invalid argument . */
void initResolution ( Resolution source ) { } } | Check . notNull ( source ) ; setSystemCursorVisible ( cursorVisibility . booleanValue ( ) ) ; this . source = source ; screen . onSourceChanged ( source ) ; final int width = source . getWidth ( ) ; final int height = source . getHeight ( ) ; // Standard rendering
final Resolution output = config . getOutput ( ) ; if (... |
public class AccuracyWeightedEnsemble { /** * Processes a chunk .
* @ param useMseR Determines whether to use the MSEr threshold . */
protected void processChunk ( ) { } } | // Compute weights
double candidateClassifierWeight = this . computeCandidateWeight ( this . candidateClassifier , this . currentChunk , this . numFolds ) ; for ( int i = 0 ; i < this . storedLearners . length ; i ++ ) { this . storedWeights [ i ] [ 0 ] = this . computeWeight ( this . storedLearners [ ( int ) this . st... |
public class S4WindowTinyLfuPolicy { /** * Returns all variations of this policy based on the configuration parameters . */
public static Set < Policy > policies ( Config config ) { } } | S4WindowTinyLfuSettings settings = new S4WindowTinyLfuSettings ( config ) ; return settings . percentMain ( ) . stream ( ) . map ( percentMain -> new S4WindowTinyLfuPolicy ( percentMain , settings ) ) . collect ( toSet ( ) ) ; |
public class UserDistributionDataPointTypeImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case BpsimPackage . USER_DISTRIBUTION_DATA_POINT_TYPE__PARAMETER_VALUE_GROUP : if ( coreType ) return getParameterValueGroup ( ) ; return ( ( FeatureMap . Internal ) getParameterValueGroup ( ) ) . getWrapper ( ) ; case BpsimPackage . USER_DISTRIBUTION_DATA_POINT_TYPE__PARAMETER_VALUE : return get... |
public class ClientSessionSubmitter { /** * Submits a query to the cluster .
* @ param query The query to submit .
* @ param < T > The query result type .
* @ return A completable future to be completed once the query has been submitted . */
public < T > CompletableFuture < T > submit ( Query < T > query ) { } } | CompletableFuture < T > future = new CompletableFuture < > ( ) ; context . executor ( ) . execute ( ( ) -> submitQuery ( query , future ) ) ; return future ; |
public class AnnotationTypeRequiredMemberBuilder { /** * Build the comments for the member . Do nothing if
* { @ link Configuration # nocomment } is set to true .
* @ param node the XML element that specifies which components to document
* @ param annotationDocTree the content tree to which the documentation will... | if ( ! configuration . nocomment ) { writer . addComments ( currentMember , annotationDocTree ) ; } |
public class ComputationGraph { /** * Fit the ComputationGraph using a MultiDataSet */
public void fit ( MultiDataSet multiDataSet ) { } } | fit ( multiDataSet . getFeatures ( ) , multiDataSet . getLabels ( ) , multiDataSet . getFeaturesMaskArrays ( ) , multiDataSet . getLabelsMaskArrays ( ) ) ; if ( multiDataSet . hasMaskArrays ( ) ) clearLayerMaskArrays ( ) ; |
public class DescribeCommand { /** * < pre > - - tags < / pre >
* Instead of using only the annotated tags , use any tag found in . git / refs / tags .
* This option enables matching a lightweight ( non - annotated ) tag .
* < p > Searching for lightweight tags is < b > false < / b > by default . < / p >
* Exam... | if ( includeLightweightTagsInSearch != null && includeLightweightTagsInSearch ) { tagsFlag = includeLightweightTagsInSearch ; log . info ( "--tags = {}" , includeLightweightTagsInSearch ) ; } return this ; |
public class AttributeQuery { /** * Execute the actual statement against the database .
* @ param _ complStmt Statment to be executed
* @ return true if executed with success
* @ throws EFapsException on error */
protected boolean executeOneCompleteStmt ( final String _complStmt ) throws EFapsException { } } | final boolean ret = false ; ConnectionResource con = null ; try { con = Context . getThreadContext ( ) . getConnectionResource ( ) ; if ( AbstractObjectQuery . LOG . isDebugEnabled ( ) ) { AbstractObjectQuery . LOG . debug ( _complStmt . toString ( ) ) ; } final Statement stmt = con . createStatement ( ) ; final Result... |
public class ControlMessageFactoryImpl { /** * Create a new , empty ControlResetRequestAckAck Message
* @ return The new ControlResetRequestAckAck
* @ exception MessageCreateFailedException Thrown if such a message can not be created */
public final ControlResetRequestAckAck createNewControlResetRequestAckAck ( ) t... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createNewControlResetRequestAckAck" ) ; ControlResetRequestAckAck msg = null ; try { msg = new ControlResetRequestAckAckImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; } catch ( MessageDecodeFailedException e ) { /* No need to ... |
public class Logging { /** * Log a statistics object .
* @ param stats Statistics object to report . */
public void statistics ( Statistic stats ) { } } | if ( stats != null ) { log ( Level . STATISTICS , stats . getKey ( ) + ": " + stats . formatValue ( ) ) ; } |
public class ContentSpecParser { /** * TODO
* @ param parserData
* @ param value
* @ param key
* @ return */
private SpecTopic parseSpecTopicMetaData ( final ParserData parserData , final String value , final String key , final int lineNumber ) throws ParsingException { } } | final String fixedValue = value . trim ( ) . replaceAll ( "(?i)^" + key + "\\s*" , "" ) ; if ( fixedValue . trim ( ) . startsWith ( "[" ) && fixedValue . trim ( ) . endsWith ( "]" ) ) { final String topicString = key + " " + fixedValue . trim ( ) ; return parseTopic ( parserData , topicString , lineNumber ) ; } else { ... |
public class DoradusServer { /** * Start all registered services . */
private void startServices ( ) { } } | m_logger . info ( "Starting services: {}" , simpleServiceNames ( m_initializedServices ) ) ; for ( Service service : m_initializedServices ) { m_logger . debug ( "Starting service: " + service . getClass ( ) . getSimpleName ( ) ) ; service . start ( ) ; m_startedServices . add ( service ) ; } |
public class CClassLoader { /** * reload this loader
* @ param config
* a loader config object */
public final void reload ( final CClassLoaderConfig config ) { } } | if ( this == CClassLoader . getRootLoader ( ) ) { return ; } if ( config == null ) { return ; } final CClassLoader parent = ( ( CClassLoader ) this . getParent ( ) ) ; parent . removeLoader ( this . name ) ; if ( this . isMandatory ( ) ) { CClassLoader . mandatoryLoadersMap . remove ( this . getPath ( ) ) ; } final CCl... |
public class VariableModel { /** * Returns a child of the given node . */
@ Override public Object getChild ( Object nodeObj , int i ) { } } | if ( debugger == null ) { return null ; } VariableNode node = ( VariableNode ) nodeObj ; return children ( node ) [ i ] ; |
public class LongTermRetentionBackupsInner { /** * Gets a long term retention backup .
* @ param locationName The location of the database .
* @ param longTermRetentionServerName the String value
* @ param longTermRetentionDatabaseName the String value
* @ param backupName The backup name .
* @ param serviceC... | return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( locationName , longTermRetentionServerName , longTermRetentionDatabaseName , backupName ) , serviceCallback ) ; |
public class ObjectIntMap { /** * Skips checks for existing keys . */
private void putResize ( K key , int value ) { } } | // Check for empty buckets .
int hashCode = key . hashCode ( ) ; int index1 = hashCode & mask ; K key1 = keyTable [ index1 ] ; if ( key1 == null ) { keyTable [ index1 ] = key ; valueTable [ index1 ] = value ; if ( size ++ >= threshold ) resize ( capacity << 1 ) ; return ; } int index2 = hash2 ( hashCode ) ; K key2 = ke... |
public class ApiOvhTelephony { /** * Get this object properties
* REST : GET / telephony / { billingAccount } / easyHunting / { serviceName } / sound / { soundId }
* @ param billingAccount [ required ] The name of your billingAccount
* @ param serviceName [ required ]
* @ param soundId [ required ] */
public Ov... | String qPath = "/telephony/{billingAccount}/easyHunting/{serviceName}/sound/{soundId}" ; StringBuilder sb = path ( qPath , billingAccount , serviceName , soundId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOvhPabxSound . class ) ; |
public class HtmlTree { /** * Generates a Table tag with style class , border , cell padding ,
* cellspacing and summary attributes and some content .
* @ param styleClass style of the table
* @ param border border for the table
* @ param cellPadding cell padding for the table
* @ param cellSpacing cell spaci... | HtmlTree htmltree = new HtmlTree ( HtmlTag . TABLE , nullCheck ( body ) ) ; if ( styleClass != null ) htmltree . addStyle ( styleClass ) ; htmltree . addAttr ( HtmlAttr . BORDER , Integer . toString ( border ) ) ; htmltree . addAttr ( HtmlAttr . CELLPADDING , Integer . toString ( cellPadding ) ) ; htmltree . addAttr ( ... |
public class GuestAuthManager { /** * * It should have returned a boolean , but . . .
* Watch out GuestPermissionDenied ( subtype of GuestOperationsFault )
* for invalid authentication . */
public void ValidateCredentialsInGuest ( GuestAuthentication auth ) throws GuestOperationsFault , InvalidState , TaskInProgres... | getVimService ( ) . validateCredentialsInGuest ( getMOR ( ) , vm . getMOR ( ) , auth ) ; |
public class GuidedDTDRLPersistence { /** * take a CSV list and turn it into DRL syntax */
String makeInList ( final String cell ) { } } | if ( cell . startsWith ( "(" ) ) { return cell ; } String result = "" ; Iterator < String > iterator = Arrays . asList ( ListSplitter . split ( "\"" , true , cell ) ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { final String item = iterator . next ( ) ; if ( item . startsWith ( "\"" ) ) { result += item ; } else... |
public class LocalQueueSession { /** * ( non - Javadoc )
* @ see javax . jms . QueueSession # createSender ( javax . jms . Queue ) */
@ Override public QueueSender createSender ( Queue queue ) throws JMSException { } } | externalAccessLock . readLock ( ) . lock ( ) ; try { checkNotClosed ( ) ; LocalQueueSender sender = new LocalQueueSender ( this , queue , idProvider . createID ( ) ) ; registerProducer ( sender ) ; return sender ; } finally { externalAccessLock . readLock ( ) . unlock ( ) ; } |
public class AttributeMethodBuilder { /** * Create a Tango attribute { @ link Attribute }
* @ param device
* @ param businessObject
* @ param method
* @ param isOnDeviceImpl
* @ throws DevFailed */
public void build ( final DeviceImpl device , final Object businessObject , final Method method , final boolean ... | xlogger . entry ( ) ; Object target ; if ( isOnDeviceImpl ) { target = device ; } else { target = businessObject ; } checkSyntax ( method ) ; // retrieve field attribute
final String getterName ; final String setterName ; final String removedGet ; final String fieldName ; final Class < ? > type ; Method setter = null ;... |
public class CmsAddDialogTypeHelper { /** * Precomputes type lists for multiple views . < p >
* @ param cms the CMS context
* @ param folderRootPath the current folder
* @ param checkViewableReferenceUri the reference uri to use for viewability check
* @ param views the views for which to generate the type list... | Multimap < CmsUUID , CmsResourceTypeBean > result = ArrayListMultimap . create ( ) ; // Sort list to make sure that ' Other types ' view is processed last , because we may need to display
// types filtered / removed from other views , which we only know once we have processed these views
Collections . sort ( views , ne... |
public class PropertyGet { /** * Visits this node , the target expression , and the property name . */
@ Override public void visit ( NodeVisitor v ) { } } | if ( v . visit ( this ) ) { getTarget ( ) . visit ( v ) ; getProperty ( ) . visit ( v ) ; } |
public class CmsToolManager { /** * Returns the OpenCms link for the given tool path which requires parameters . < p >
* Please note : Don ' t overuse the parameter map because this will likely introduce issues
* with encoding . If possible , don ' t pass parameters at all , or only very simple parameters
* with ... | if ( params == null ) { // no parameters - take the shortcut
return linkForToolPath ( jsp , toolPath ) ; } params . put ( CmsToolDialog . PARAM_PATH , new String [ ] { toolPath } ) ; return CmsRequestUtil . appendParameters ( jsp . link ( VIEW_JSPPAGE_LOCATION ) , params , true ) ; |
public class StatementBuilder { /** * Prepare our statement for the subclasses .
* @ param limit
* Limit for queries . Can be null if none . */
protected MappedPreparedStmt < T , ID > prepareStatement ( Long limit , boolean cacheStore ) throws SQLException { } } | List < ArgumentHolder > argList = new ArrayList < ArgumentHolder > ( ) ; String statement = buildStatementString ( argList ) ; ArgumentHolder [ ] selectArgs = argList . toArray ( new ArgumentHolder [ argList . size ( ) ] ) ; FieldType [ ] resultFieldTypes = getResultFieldTypes ( ) ; FieldType [ ] argFieldTypes = new Fi... |
public class FastDateFormat { /** * < p > Gets a formatter instance using the specified pattern , time zone
* and locale . < / p >
* @ param pattern { @ link java . text . SimpleDateFormat } compatible
* pattern
* @ param timeZone optional time zone , overrides time zone of
* formatted date
* @ param locale... | FastDateFormat emptyFormat = new FastDateFormat ( pattern , timeZone , locale ) ; FastDateFormat format = ( FastDateFormat ) cInstanceCache . get ( emptyFormat ) ; if ( format == null ) { format = emptyFormat ; format . init ( ) ; // convert shell format into usable one
cInstanceCache . put ( format , format ) ; // thi... |
public class RaAuthenticationMechanism { /** * Set the authentication mechanism type
* @ param the authentication mechanism type */
@ XmlElement ( name = "authentication-mechanism-type" , required = true ) public void setAuthenticationMechanismType ( String authMech ) { } } | AuthenticationMechanismType type = AuthenticationMechanismType . valueOf ( authMech ) ; authenticationMechanismType = type . name ( ) ; |
public class Throttle { /** * Used for testing . */
public static void main ( String [ ] args ) { } } | // set up a throttle for 5 ops per 10 seconds
Throttle throttle = new Throttle ( 5 , 10000 ) ; // try doing one operation per second and we should hit the throttle on the sixth operation
// and then kick in again on the eleventh , only to stop again on the fifteenth
for ( int i = 0 ; i < 20 ; i ++ ) { System . out . pr... |
public class UploadDocumentsResult { /** * Any warnings returned by the document service about the documents being uploaded .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setWarnings ( java . util . Collection ) } or { @ link # withWarnings ( java . util .... | if ( this . warnings == null ) { setWarnings ( new com . amazonaws . internal . SdkInternalList < DocumentServiceWarning > ( warnings . length ) ) ; } for ( DocumentServiceWarning ele : warnings ) { this . warnings . add ( ele ) ; } return this ; |
public class SliceDictionaryStreamReader { /** * Reads dictionary into data and offsetVector */
private static void readDictionary ( @ Nullable ByteArrayInputStream dictionaryDataStream , int dictionarySize , int [ ] dictionaryLengthVector , int offsetVectorOffset , byte [ ] data , int [ ] offsetVector , Type type ) th... | Slice slice = wrappedBuffer ( data ) ; // initialize the offset if necessary ;
// otherwise , use the previous offset
if ( offsetVectorOffset == 0 ) { offsetVector [ 0 ] = 0 ; } // truncate string and update offsets
for ( int i = 0 ; i < dictionarySize ; i ++ ) { int offsetIndex = offsetVectorOffset + i ; int offset = ... |
public class KeyVaultClientBaseImpl { /** * Lists the deleted keys in the specified vault .
* Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a deleted key . This operation includes deletion - specific information . The Get Deleted Keys operation is applicable ... | return AzureServiceFuture . fromPageResponse ( getDeletedKeysSinglePageAsync ( vaultBaseUrl , maxresults ) , new Func1 < String , Observable < ServiceResponse < Page < DeletedKeyItem > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DeletedKeyItem > > > call ( String nextPageLink ) { return getDelet... |
public class CmsDatabaseExportDialog { /** * Returns the present export files on the server to show in the combo box . < p >
* The result list elements are of type < code > { @ link org . opencms . widgets . CmsSelectWidgetOption } < / code > . < p >
* @ return the present export files on the server to show in the ... | List result = new ArrayList ( 8 ) ; Iterator i = CmsDatabaseImportFromServer . getFileListFromServer ( true ) . iterator ( ) ; while ( i . hasNext ( ) ) { String fileName = ( String ) i . next ( ) ; String helpText = key ( Messages . GUI_EDITOR_HELP_EXPORTFILE_1 , new String [ ] { fileName } ) ; result . add ( new CmsS... |
public class Tag { /** * Gets the tag value description .
* @ param encodedValue the encoded value
* @ return the tag value description */
public String getTextDescription ( String encodedValue ) { } } | if ( forceDescription != null ) { return forceDescription ; } String desc = null ; if ( tagValueDescriptions . containsKey ( encodedValue ) ) { desc = tagValueDescriptions . get ( encodedValue ) ; } return desc ; |
public class WorkspacePersistentDataManager { /** * Tell if the path is jcr : system descendant .
* @ param path
* path to check
* @ return boolean result , true if yes - it ' s jcr : system tree path */
private boolean isSystemDescendant ( QPath path ) { } } | return path . isDescendantOf ( Constants . JCR_SYSTEM_PATH ) || path . equals ( Constants . JCR_SYSTEM_PATH ) ; |
public class GeoCodeBasic { /** * { @ inheritDoc } */
@ Override public final GeoCodeItem find ( final String placeName , final String modernPlaceName ) { } } | if ( modernPlaceName == null || modernPlaceName . isEmpty ( ) ) { return find ( placeName ) ; } logger . debug ( "find(\"" + placeName + "\", \"" + modernPlaceName + "\")" ) ; final GeoDocument geoDocument = getDocument ( placeName ) ; if ( geoDocument != null ) { // We found one .
if ( modernPlaceName . equals ( geoDo... |
public class UserSettingRepository { /** * region > helpers */
private UserSettingJdo newSetting ( final String user , final String key , final String description , final SettingType settingType , final String valueRaw ) { } } | final UserSettingJdo setting = repositoryService . instantiate ( UserSettingJdo . class ) ; setting . setUser ( user ) ; setting . setKey ( key ) ; setting . setType ( settingType ) ; setting . setDescription ( description ) ; setting . setValueRaw ( valueRaw ) ; repositoryService . persist ( setting ) ; return setting... |
public class ConsulUtils { /** * get path of url from service id in consul
* @ param serviceId service id
* @ return path */
public static String getPathFromServiceId ( String serviceId ) { } } | return serviceId . substring ( serviceId . indexOf ( ":" ) + 1 , serviceId . lastIndexOf ( ":" ) ) ; |
public class MaterialDatePicker { /** * Set the pickers date . */
public void setPickerDate ( JsDate date , Element picker ) { } } | try { $ ( picker ) . pickadate ( "picker" ) . set ( "select" , date , ( ) -> { DOM . createFieldSet ( ) . setPropertyObject ( "muted" , true ) ; } ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } |
public class OtpEpmd { /** * this function will get an exception if it tries to talk to a very old
* epmd , or if something else happens that it cannot forsee . In both cases
* we return an exception . We no longer support r3 , so the exception is
* fatal . If we manage to successfully communicate with an r4 epmd... | OtpTransport s = null ; try { @ SuppressWarnings ( "resource" ) final OtpOutputStream obuf = new OtpOutputStream ( ) ; s = node . createTransport ( ( String ) null , EpmdPort . get ( ) ) ; obuf . write2BE ( node . alive ( ) . length ( ) + 13 ) ; obuf . write1 ( publish4req ) ; obuf . write2BE ( node . port ( ) ) ; obuf... |
public class CmsPublishEngine { /** * Enqueues a new publish job with the given information in publish queue . < p >
* All resources should already be locked . < p >
* If possible , the publish job starts immediately . < p >
* @ param cms the cms context to publish for
* @ param publishList the resources to pub... | // check the driver manager
if ( ( m_driverManager == null ) || ( m_dbContextFactory == null ) ) { // the resources are unlocked in the driver manager
throw new CmsPublishException ( Messages . get ( ) . container ( Messages . ERR_PUBLISH_ENGINE_NOT_INITIALIZED_0 ) ) ; } // prevent new jobs if the engine is disabled
if... |
public class TemplateElementField { /** * Gets the fieldMedia value for this TemplateElementField .
* @ return fieldMedia * Media value for non - text field types . Null if a text field .
* This
* fields must be specified if fieldText is null . */
public com . google . api . ads . adwords . axis . v201809 . cm . ... | return fieldMedia ; |
public class OmemoService { /** * Refresh and merge device list of contact .
* @ param connection authenticated XMPP connection
* @ param userDevice our OmemoDevice
* @ param contact contact we want to fetch the deviceList from
* @ return cached device list after refresh .
* @ throws InterruptedException
* ... | // refreshOmemoDeviceList ;
OmemoDeviceListElement publishedList ; try { publishedList = fetchDeviceList ( connection , contact ) ; } catch ( PubSubException . NotAPubSubNodeException e ) { LOGGER . log ( Level . WARNING , "Error refreshing deviceList: " , e ) ; publishedList = null ; } if ( publishedList == null ) { p... |
public class LayoutGridScreen { /** * Add button ( s ) to the toolbar . */
public void addToolbarButtons ( ToolScreen toolScreen ) { } } | new SCannedBox ( toolScreen . getNextLocation ( ScreenConstants . NEXT_LOGICAL , ScreenConstants . SET_ANCHOR ) , toolScreen , null , ScreenConstants . DEFAULT_DISPLAY , null , MenuConstants . FORMDETAIL , MenuConstants . FORMDETAIL , MenuConstants . FORMDETAIL , null ) ; new SCannedBox ( toolScreen . getNextLocation (... |
public class OfflineDataUploadError { /** * Gets the reason value for this OfflineDataUploadError .
* @ return reason */
public com . google . api . ads . adwords . axis . v201809 . rm . OfflineDataUploadErrorReason getReason ( ) { } } | return reason ; |
public class VirtualConnectionImpl { /** * @ see VirtualConnection # requestPermissionToFinishRead ( ) */
@ Override public boolean requestPermissionToFinishRead ( ) { } } | boolean rc = true ; synchronized ( this ) { if ( ( currentState & FINISH_NOT_ALLOWED_MASK ) != 0 ) { rc = false ; } else { currentState = ( currentState | READ_FINISHING ) & READ_FINISHING_CLEAR_OUT ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "requestPermissionTo... |
public class LPPrimalDualMethod { /** * Computes the term Grad [ fi ] . stepX */
protected DoubleMatrix1D gradFiStepX ( DoubleMatrix1D stepX ) { } } | DoubleMatrix1D ret = F1 . make ( getMieq ( ) ) ; for ( int i = 0 ; i < getDim ( ) ; i ++ ) { ret . setQuick ( i , - stepX . getQuick ( i ) ) ; ret . setQuick ( getDim ( ) + i , stepX . getQuick ( i ) ) ; } return ret ; |
public class RegistrationManagerImpl { /** * { @ inheritDoc } */
@ Override public void unregisterService ( String serviceName , String providerAddress ) throws ServiceException { } } | ServiceInstanceUtils . validateManagerIsStarted ( isStarted . get ( ) ) ; ServiceInstanceUtils . validateServiceName ( serviceName ) ; ServiceInstanceUtils . validateAddress ( providerAddress ) ; getRegistrationService ( ) . unregisterService ( serviceName , providerAddress ) ; |
public class AnnotationManager { /** * Construct label for all { @ link ru . yandex . qatools . allure . annotations . Features } annotations
* using { @ link ru . yandex . qatools . allure . config . AllureModelUtils # createFeatureLabel ( String ) }
* @ return { @ link java . util . List } of created labels */
pu... | if ( ! isAnnotationPresent ( Features . class ) ) { return Collections . emptyList ( ) ; } List < Label > result = new ArrayList < > ( ) ; for ( String feature : getAnnotation ( Features . class ) . value ( ) ) { result . add ( createFeatureLabel ( feature ) ) ; } return result ; |
public class VMCommandLine { /** * Replies a binary executable filename depending of the current platform .
* @ param name is the name which must be converted into a binary executable filename .
* @ return the binary executable filename . */
@ Pure public static String getExecutableFilename ( String name ) { } } | if ( OperatingSystem . WIN . isCurrentOS ( ) ) { return name + ".exe" ; // $ NON - NLS - 1 $
} return name ; |
public class BccClient { /** * Modifying the password of the instance .
* You can reboot the instance only when the instance is Running or Stopped ,
* otherwise , it ' s will get < code > 409 < / code > errorCode .
* This is an asynchronous interface ,
* you can get the latest status by invoke { @ link # getIns... | checkNotNull ( request , "request should not be null." ) ; checkStringNotEmpty ( request . getInstanceId ( ) , "request instanceId should not be empty." ) ; checkStringNotEmpty ( request . getAdminPass ( ) , "request adminPass should not be empty." ) ; InternalRequest internalRequest = this . createRequest ( request , ... |
public class CmsGlobalForm { /** * Set up of combo box for default uri . < p >
* @ param allSites alls available sites */
private void setUpDefaultUriComboBox ( List < CmsSite > allSites ) { } } | BeanItemContainer < CmsSite > objects = new BeanItemContainer < CmsSite > ( CmsSite . class , allSites ) ; m_fieldDefaultURI . setContainerDataSource ( objects ) ; m_fieldDefaultURI . setNullSelectionAllowed ( false ) ; m_fieldDefaultURI . setTextInputAllowed ( false ) ; m_fieldDefaultURI . setItemCaptionPropertyId ( "... |
public class RateBasedRuleMarshaller { /** * Marshall the given parameter object . */
public void marshall ( RateBasedRule rateBasedRule , ProtocolMarshaller protocolMarshaller ) { } } | if ( rateBasedRule == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( rateBasedRule . getRuleId ( ) , RULEID_BINDING ) ; protocolMarshaller . marshall ( rateBasedRule . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( rateBased... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractTopoPrimitiveType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractTopoPrimitiveT... | return new JAXBElement < AbstractTopoPrimitiveType > ( __TopoPrimitive_QNAME , AbstractTopoPrimitiveType . class , null , value ) ; |
public class RestfulServer { /** * Unregister one provider ( either a Resource provider or a plain provider ) */
public void unregisterProvider ( Object provider ) { } } | if ( provider != null ) { Collection < Object > providerList = new ArrayList < > ( 1 ) ; providerList . add ( provider ) ; unregisterProviders ( providerList ) ; } |
public class LongPollingMessagingDelegate { /** * Posts a message to a long polling channel .
* @ param ccid
* the identifier of the long polling channel
* @ param serializedMessage
* the message to send serialized as a SMRF message
* @ return the path segment for the message status . The path , appended to
... | ImmutableMessage message ; try { message = new ImmutableMessage ( serializedMessage ) ; } catch ( EncodingException | UnsuppportedVersionException e ) { throw new JoynrHttpException ( Status . BAD_REQUEST , JOYNRMESSAGINGERROR_DESERIALIZATIONFAILED ) ; } if ( ccid == null ) { log . error ( "POST message {} to cluster c... |
public class I18NUtils { /** * Looks up the value for < code > key < / code > in the
* < code > ResourceBundle < / code > referenced by
* < code > bundleName < / code > , then formats that value for the
* specified < code > Locale < / code > using < code > args < / code > .
* @ return Localized , formatted text... | if ( locale == null ) { // When formatting Date objects and such , MessageFormat
// cannot have a null Locale .
locale = Locale . getDefault ( ) ; } String value = getString ( bundleName , locale , key ) ; if ( args == null ) { args = NO_ARGS ; } // FIXME : after switching to JDK 1.4 , it will be possible to clean
// t... |
public class TemplateSignatureRequest { /** * Adds the value to fill in for a custom field with the given field name .
* @ param fieldNameOrApiId String name ( or " Field Label " ) of the custom field
* to be filled in . The " api _ id " can also be used instead of the name .
* @ param value String value */
publi... | CustomField f = new CustomField ( ) ; f . setName ( fieldNameOrApiId ) ; f . setValue ( value ) ; customFields . add ( f ) ; |
public class AvailabilityZone { /** * @ param supportedPlatforms */
public void setSupportedPlatforms ( java . util . Collection < SupportedPlatform > supportedPlatforms ) { } } | if ( supportedPlatforms == null ) { this . supportedPlatforms = null ; return ; } this . supportedPlatforms = new com . amazonaws . internal . SdkInternalList < SupportedPlatform > ( supportedPlatforms ) ; |
public class PreservingHttpHeaderProcessor { /** * prefix prepended to the name of headers preserved .
* < p > Example : " { @ code X - Archive - Orig - } " .
* Empty String is translated to { @ code null } .
* Default value is { @ code null } . < / p >
* @ param prefix header name prefix */
public void setPref... | this . prefix = prefix ; if ( this . prefix != null && this . prefix . isEmpty ( ) ) this . prefix = null ; |
public class Extract { /** * Add more primary keys to the existing set of primary keys .
* @ param primaryKeyFieldName primary key names
* @ deprecated @ deprecated It is recommended to add primary keys in { @ code WorkUnit } instead of { @ code Extract } . */
@ Deprecated public void addPrimaryKey ( String ... pri... | StringBuilder sb = new StringBuilder ( getProp ( ConfigurationKeys . EXTRACT_PRIMARY_KEY_FIELDS_KEY , "" ) ) ; Joiner . on ( "," ) . appendTo ( sb , primaryKeyFieldName ) ; setProp ( ConfigurationKeys . EXTRACT_PRIMARY_KEY_FIELDS_KEY , sb . toString ( ) ) ; |
public class TableFactorBuilder { /** * Sets the weight of { @ code a } to { @ code weight } in the table factor returned
* by { @ link # build ( ) } . If { @ code a } has already been associated with a weight
* in { @ code this } builder , this call overwrites the old weight . If
* { @ code weight } is 0.0 , { @... | Preconditions . checkArgument ( a . containsAll ( vars . getVariableNumsArray ( ) ) ) ; weightBuilder . put ( vars . assignmentToIntArray ( a ) , weight ) ; |
public class Tree { /** * Remove the node from children
* @ param node
* @ return has removed */
public boolean remove ( Tree < T > node ) { } } | return getChild ( node ) . map ( function ( n -> n . parent = null ) ) . map ( children :: remove ) . orElse ( false ) ; |
public class CmsExternalLayout { /** * This is overridden so that { @ link # setWidget ( Widget ) } uses the specified
* external element . */
@ Override @ SuppressWarnings ( "deprecation" ) // have to use old Element here because of superclass
protected com . google . gwt . user . client . Element getContainerElemen... | return DOM . asOld ( getRenderTargetElement ( ) ) ; |
public class DirectoryResourceImpl { /** * Using the given type , obtain a reference to the child resource of the given type . If the result is not of the
* requested type and does not exist , return null . If the result is not of the requested type and exists , throw
* { @ link ResourceException } */
@ Override @ ... | T result ; Resource < ? > child = getChild ( name ) ; if ( type . isAssignableFrom ( child . getClass ( ) ) ) { result = ( T ) child ; } else if ( child . exists ( ) ) { throw new ResourceException ( "Requested resource [" + name + "] was not of type [" + type . getName ( ) + "], but was instead [" + child . getClass (... |
public class Configuration { /** * Parses all target - specific settings form the main configuration file .
* @ param root The root element of the configuration . */
private final void parseTargetSpecificSettings ( final Element root ) { } } | final NodeList targets = root . getElementsByTagName ( ELEMENT_TARGET ) ; Node target ; Node parameter ; NodeList parameters ; try { for ( int i = 0 ; i < targets . getLength ( ) ; i ++ ) { target = targets . item ( i ) ; parameters = target . getChildNodes ( ) ; // extract target address and the port ( if specified )
... |
public class DptXlatorMeteringValue { /** * try to find the coding based on unit */
private int coding ( final String unit ) throws KNXFormatException { } } | expUnitAdjustment = 0 ; // @ formatter : off
switch ( unit ) { case "Wh" : return 0b00000000 ; case "MWh" : expUnitAdjustment = 6 ; return 0b10000000 ; case "kJ" : expUnitAdjustment = 3 ; return 0b00001000 ; case "GJ" : expUnitAdjustment = 9 ; return 0b10001000 ; case "l" : expUnitAdjustment = - 3 ; return 0b00010000 ;... |
public class Dependency { /** * Returns an array of String with the name of every dependency from a list of dependencies .
* @ param dependencies List of dependencies
* @ return String [ ] with all names of the dependencies */
public static String [ ] getArrayOfNames ( Map < String , Dependency > dependencies ) { }... | List < String > nameList = new LinkedList < String > ( ) ; for ( Dependency dependency : dependencies . values ( ) ) { nameList . add ( dependency . getName ( ) ) ; } return nameList . toArray ( new String [ nameList . size ( ) ] ) ; |
public class CoreStitchAuth { /** * prevent too many refreshes happening one after the other . */
private void tryRefreshAccessToken ( final Long reqStartedAt ) { } } | authLock . writeLock ( ) . lock ( ) ; try { if ( ! isLoggedIn ( ) ) { throw new StitchClientException ( StitchClientErrorCode . LOGGED_OUT_DURING_REQUEST ) ; } try { final Jwt jwt = Jwt . fromEncoded ( getAuthInfo ( ) . getAccessToken ( ) ) ; if ( jwt . getIssuedAt ( ) >= reqStartedAt ) { return ; } } catch ( final IOE... |
public class GroupListHelperImpl { /** * ( non - Javadoc )
* @ see org . apereo . portal . layout . dlm . remoting . IGroupListHelper # getEntityType ( org . apereo . portal . groups . IGroupMember ) */
@ Override public EntityEnum getEntityType ( IGroupMember entity ) { } } | if ( entity == null ) { throw new IllegalArgumentException ( "Parameter must not be null" ) ; } if ( IEntityGroup . class . isAssignableFrom ( entity . getClass ( ) ) ) { return EntityEnum . getEntityEnum ( entity . getLeafType ( ) , true ) ; } else { return EntityEnum . getEntityEnum ( entity . getLeafType ( ) , false... |
public class AbstractIndex { /** * Returns an < code > IndexReader < / code > on this index . This index reader
* may be used to delete documents .
* @ return an < code > IndexReader < / code > on this index .
* @ throws IOException if the reader cannot be obtained . */
protected synchronized CommittableIndexRead... | if ( indexWriter != null ) { indexWriter . close ( ) ; log . debug ( "closing IndexWriter." ) ; indexWriter = null ; } if ( indexReader == null || ! indexReader . isCurrent ( ) ) { IndexReader reader = IndexReader . open ( getDirectory ( ) , null , false , termInfosIndexDivisor ) ; // if modeHandler ! = null and mode =... |
public class RemoteMessageRequest { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPControllable # getName ( ) */
public String getName ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getName" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "No implementation" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( ... |
public class UtilizationShell { /** * Obtain the result to print in command line
* @ param argv
* @ return the response to show users
* @ throws IOException */
public String getResponse ( String [ ] argv ) throws IOException { } } | String result = "" ; if ( argv . length < 1 ) { return result ; } if ( argv [ 0 ] . equals ( "-all" ) ) { result += rpcCollector . getClusterUtilization ( ) ; result += JobUtilization . legendString + JobUtilization . unitString ; for ( JobUtilization job : rpcCollector . getAllRunningJobUtilization ( ) ) { result += j... |
public class LightweightTypeReference { /** * / * @ Nullable */
protected JvmType findType ( Class < ? > type ) { } } | return getServices ( ) . getTypeReferences ( ) . findDeclaredType ( type , getOwner ( ) . getContextResourceSet ( ) ) ; |
public class ChangedList { /** * Releases the reservation on the file ( if still reserved ) and returns
* it to the list .
* @ param changedFile */
synchronized void unreserve ( ChangedFile changedFile ) { } } | ChangedFile removedFile = this . reservedFiles . remove ( getKey ( changedFile ) ) ; if ( removedFile != null && ! this . fileList . containsKey ( getKey ( removedFile ) ) ) { addChangedFile ( removedFile ) ; } |
public class OperationMetadataV1 { /** * < pre >
* Time that this operation was created .
* & # 64 ; OutputOnly
* < / pre >
* < code > . google . protobuf . Timestamp insert _ time = 2 ; < / code > */
public com . google . protobuf . Timestamp getInsertTime ( ) { } } | return insertTime_ == null ? com . google . protobuf . Timestamp . getDefaultInstance ( ) : insertTime_ ; |
public class RuntimeHttpUtils { /** * Returns an URI for the given endpoint .
* Prefixes the protocol if the endpoint given does not have it .
* @ throws IllegalArgumentException if the inputs are null . */
public static URI toUri ( String endpoint , ClientConfiguration config ) { } } | if ( config == null ) { throw new IllegalArgumentException ( "ClientConfiguration cannot be null" ) ; } return toUri ( endpoint , config . getProtocol ( ) ) ; |
public class vpnglobal_vpnclientlessaccesspolicy_binding { /** * Use this API to fetch filtered set of vpnglobal _ vpnclientlessaccesspolicy _ binding resources .
* set the filter parameter values in filtervalue object . */
public static vpnglobal_vpnclientlessaccesspolicy_binding [ ] get_filtered ( nitro_service ser... | vpnglobal_vpnclientlessaccesspolicy_binding obj = new vpnglobal_vpnclientlessaccesspolicy_binding ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; vpnglobal_vpnclientlessaccesspolicy_binding [ ] response = ( vpnglobal_vpnclientlessaccesspolicy_binding [ ] ) obj . getfiltered ( service , option ... |
public class ProgressBar { /** * Wraps a { @ link Stream } so that when iterated , a progress bar is shown to track the traversal progress .
* @ param stream Underlying stream ( can be sequential or parallel )
* @ param task Task name */
public static < T , S extends BaseStream < T , S > > Stream < T > wrap ( S str... | ProgressBarBuilder pbb = new ProgressBarBuilder ( ) . setTaskName ( task ) ; return wrap ( stream , pbb ) ; |
public class IQ2DatalogTranslatorImpl { /** * Assumes that ORDER BY is ABOVE the first construction node */
private IQTree getFirstNonQueryModifierTree ( IQ query ) { } } | // Non - final
IQTree iqTree = query . getTree ( ) ; while ( iqTree . getRootNode ( ) instanceof QueryModifierNode ) { iqTree = ( ( UnaryIQTree ) iqTree ) . getChild ( ) ; } return iqTree ; |
public class TileBoundingBoxUtils { /** * Get the pixel x size for the bounding box with matrix width and tile
* width
* @ param webMercatorBoundingBox
* web mercator bounding box
* @ param matrixWidth
* matrix width
* @ param tileWidth
* tile width
* @ return pixel x size */
public static double getPix... | double pixelXSize = ( webMercatorBoundingBox . getMaxLongitude ( ) - webMercatorBoundingBox . getMinLongitude ( ) ) / matrixWidth / tileWidth ; return pixelXSize ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.