signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class BrokerHelper { /** * returns true if the primary key fields are valid for delete , else false . * PK fields are valid if each of them contains a valid non - null value * @ param cld the ClassDescriptor * @ param obj the object * @ return boolean */ public boolean assertValidPkForDelete ( ClassDescr...
if ( ! ProxyHelper . isProxy ( obj ) ) { FieldDescriptor fieldDescriptors [ ] = cld . getPkFields ( ) ; int fieldDescriptorSize = fieldDescriptors . length ; for ( int i = 0 ; i < fieldDescriptorSize ; i ++ ) { FieldDescriptor fd = fieldDescriptors [ i ] ; Object pkValue = fd . getPersistentField ( ) . get ( obj ) ; if...
public class JCurand { /** * < pre > * Generate Poisson - distributed unsigned ints . * Use generator to generate n unsigned int results into device memory at * outputPtr . The device memory must have been previously allocated and must be * large enough to hold all the results . Launches are done with the strea...
return checkResult ( curandGeneratePoissonNative ( generator , outputPtr , n , lambda ) ) ;
public class PeepholeRemoveDeadCode { /** * Try removing identity assignments and empty destructuring pattern assignments * @ return the replacement node , if changed , or the original if not */ private Node tryOptimizeNameDeclaration ( Node subtree ) { } }
checkState ( NodeUtil . isNameDeclaration ( subtree ) ) ; Node left = subtree . getFirstChild ( ) ; if ( left . isDestructuringLhs ( ) && left . hasTwoChildren ( ) ) { Node pattern = left . getFirstChild ( ) ; if ( ! pattern . hasChildren ( ) ) { // ` var [ ] = foo ( ) ; ` becomes ` foo ( ) ; ` Node value = left . getS...
public class ZTimer { /** * Add timer to the set , timer repeats forever , or until cancel is called . * @ param interval the interval of repetition in milliseconds . * @ param handler the callback called at the expiration of the timer . * @ param args the optional arguments for the handler . * @ return an opaq...
if ( handler == null ) { return null ; } return new Timer ( timer . add ( interval , handler , args ) ) ;
public class SourceStream { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . BatchListener # batchPrecommit ( com . ibm . ws . sib . msgstore . transactions . Transaction ) */ public void batchPrecommit ( TransactionCommon currentTran ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "batchPrecommit" , currentTran ) ; // Holds TickRanges of all messages to be sent downstream TickRange tr1 = null ; TickRange tickRange = null ; synchronized ( this ) { // 316010 : It is possible for the sourcestream ...
public class AbstractSearchStructure { /** * This method creates and / or opens the BDB databases with the appropriate parameters . * @ throws Exception */ private void createOrOpenBDBDbs ( ) throws Exception { } }
// configuration for the mapping dbs DatabaseConfig dbConfig = new DatabaseConfig ( ) ; dbConfig . setAllowCreate ( true ) ; // db will be created if it does not exist dbConfig . setReadOnly ( readOnly ) ; dbConfig . setTransactional ( transactional ) ; // create / open mapping dbs using config iidToIdDB = dbEnv . open...
public class ClassInfo { /** * Return property type , return null when not found . */ public final Class < ? > getPropertyType ( String property ) { } }
MethodInfo info = propertyWriteMethods . get ( property ) ; if ( null == info ) return null ; else return info . parameterTypes [ 0 ] ;
public class Dynamic { /** * Binds the supplied bootstrap method or constructor for the resolution of a dynamic constant . * @ param name The name of the bootstrap constant that is provided to the bootstrap method or constructor . * @ param bootstrapMethod The bootstrap method or constructor to invoke . * @ param...
if ( name . length ( ) == 0 || name . contains ( "." ) ) { throw new IllegalArgumentException ( "Not a valid field name: " + name ) ; } List < Object > arguments = new ArrayList < Object > ( rawArguments . size ( ) ) ; for ( Object argument : rawArguments ) { if ( argument == null ) { argument = ofNullConstant ( ) ; } ...
public class FSInputChecker { /** * / * Read up one checksum chunk to array < i > b < / i > at pos < i > off < / i > * It requires a checksum chunk boundary * in between < cur _ pos , cur _ pos + len > * and it stops reading at the boundary or at the end of the stream ; * Otherwise an IllegalArgumentException i...
// invalidate buffer count = pos = 0 ; int read = 0 ; boolean retry = true ; int retriesLeft = numOfRetries ; do { retriesLeft -- ; try { read = readChunk ( chunkPos , b , off , len , checksum ) ; if ( read > 0 ) { if ( needChecksum ( ) ) { sum . update ( b , off , read ) ; verifySum ( chunkPos ) ; if ( cliData != null...
public class BatchUpdateDaemon { /** * This will send a " CLEAR " command to all caches . */ public void cacheCommand_Clear ( boolean waitOnInvalidation , DCache cache ) { } }
String template = cache . getCacheName ( ) ; synchronized ( this ) { BatchUpdateList bul = getUpdateList ( cache ) ; bul . invalidateByIdEvents . clear ( ) ; bul . invalidateByTemplateEvents . clear ( ) ; bul . pushCacheEntryEvents . clear ( ) ; bul . pushECFEvents . clear ( ) ; InvalidateByTemplateEvent invalidateByTe...
public class OtfHeaderDecoder { /** * Get the schema version number from the message header . * @ param buffer from which to read the value . * @ param bufferOffset in the buffer at which the message header begins . * @ return the value of the schema version number . */ public int getSchemaVersion ( final DirectB...
return Types . getInt ( buffer , bufferOffset + schemaVersionOffset , schemaVersionType , schemaVersionByteOrder ) ;
public class MisoScenePanel { /** * Called when an object or object menu item has been clicked . */ protected void fireObjectAction ( ObjectActionHandler handler , SceneObject scobj , ActionEvent event ) { } }
if ( handler == null ) { Controller . postAction ( event ) ; } else { handler . handleAction ( scobj , event ) ; }
public class CSSParseHelper { /** * Remove surrounding quotes ( single or double ) of a string ( if present ) . If * the start and the end quote are not equal , nothing happens . * @ param sStr * The string where the quotes should be removed * @ return The string without quotes . */ @ Nullable public static Str...
if ( StringHelper . hasNoText ( sStr ) || sStr . length ( ) < 2 ) return sStr ; final char cFirst = sStr . charAt ( 0 ) ; if ( ( cFirst == '"' || cFirst == '\'' ) && StringHelper . getLastChar ( sStr ) == cFirst ) { // Remove quotes around the string return _trimBy ( sStr , 1 , 1 ) ; } return sStr ;
public class LocalQueue { /** * ( non - Javadoc ) * @ see net . timewalker . ffmq4 . local . destination . AbstractLocalDestination # close ( ) */ @ Override public final void close ( ) throws JMSException { } }
synchronized ( closeLock ) { if ( closed ) return ; closed = true ; } ActivityWatchdog . getInstance ( ) . unregister ( this ) ; synchronized ( storeLock ) { if ( volatileStore != null ) { volatileStore . close ( ) ; // Delete message store if the queue was temporary if ( queueDef . isTemporary ( ) ) volatileStore . de...
public class TablePodImpl { /** * Notify the watches on the target server . */ @ Override public void notifyForeignWatch ( byte [ ] key , String serverId ) { } }
ClusterServiceKraken proxy = _podKraken . getProxy ( serverId ) ; if ( proxy != null ) { proxy . notifyLocalWatch ( _table . getKey ( ) , key ) ; }
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link RelationsType } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "leq" ) public JAXBElement < RelationsType > createLeq ( RelationsType value ) { } }
return new JAXBElement < RelationsType > ( _Leq_QNAME , RelationsType . class , null , value ) ;
public class MigrationModel { /** * < p > findMigrationResource . < / p > * @ return a { @ link java . util . List } object . */ protected List < MigrationResource > findMigrationResource ( ) { } }
final List < MigrationResource > resources = Lists . newArrayList ( ) ; BeanDescriptor < ScriptInfo > beanDescriptor = server . getBeanDescriptor ( ScriptInfo . class ) ; Transaction transaction = server . createTransaction ( TxIsolation . READ_COMMITED ) ; try ( Connection connection = transaction . getConnection ( ) ...
public class AbstractDatabaseEngine { /** * Check if the entity has an identity column . * @ param entity The entity to check . * @ return True if the entity has an identity column and false otherwise . */ public boolean hasIdentityColumn ( DbEntity entity ) { } }
for ( final DbColumn column : entity . getColumns ( ) ) { if ( column . isAutoInc ( ) ) { return true ; } } return false ;
public class DatabaseMetaData { /** * { @ inheritDoc } */ public ResultSet getPseudoColumns ( final String catalog , final String schemaPattern , final String tableNamePattern , final String columnNamePattern ) throws SQLException { } }
return RowLists . rowList8 ( String . class , String . class , String . class , String . class , String . class , String . class , String . class , String . class ) . withLabel ( 1 , "TABLE_CAT" ) . withLabel ( 2 , "TABLE_SCHEM" ) . withLabel ( 3 , "TABLE_NAME" ) . withLabel ( 4 , "COLUMN_NAME" ) . withLabel ( 5 , "GRA...
public class AbstractDraweeControllerBuilder { /** * Creates a data source supplier for the given image request . */ protected Supplier < DataSource < IMAGE > > getDataSourceSupplierForRequest ( final DraweeController controller , String controllerId , REQUEST imageRequest ) { } }
return getDataSourceSupplierForRequest ( controller , controllerId , imageRequest , CacheLevel . FULL_FETCH ) ;
public class KerasEmbedding { /** * Get layer output type . * @ param inputType Array of InputTypes * @ return output type as InputType * @ throws InvalidKerasConfigurationException Invalid Keras config */ @ Override public InputType getOutputType ( InputType ... inputType ) throws InvalidKerasConfigurationExcept...
/* Check whether layer requires a preprocessor for this InputType . */ InputPreProcessor preprocessor = getInputPreprocessor ( inputType [ 0 ] ) ; if ( preprocessor != null ) { return this . getEmbeddingLayer ( ) . getOutputType ( - 1 , preprocessor . getOutputType ( inputType [ 0 ] ) ) ; } return this . getEmbeddingLa...
public class DiffieHellmanSuiteImpl { /** * DH3K RIM implementation is currently buggy and DOES NOT WORK ! ! ! */ public void setAlgorithm ( KeyAgreementType dh ) { } }
log ( "DH algorithm set: " + getDHName ( dhMode ) + " -> " + getDHName ( dh ) ) ; try { if ( dhMode != null && dh . keyType == dhMode . keyType ) return ; dhMode = dh ; switch ( dhMode . keyType ) { case KeyAgreementType . DH_MODE_DH3K : DHParameterSpec paramSpec = new DHParameterSpec ( dhP , dhG , DH_EXP_LENGTH ) ; dh...
public class QueriedGetResponseUnmarshaller { /** * { @ inheritDoc } */ @ Override protected void onDouble ( Double floating , String fieldName , JsonParser jp ) { } }
log . trace ( fieldName + " " + floating ) ; if ( resultStarted && entityStarted && idFound && fieldName != null && floating != null ) { ClassUtil . setSilent ( getEntityInstance ( ) , fieldName , floating ) ; }
public class ArrayQueue { /** * Serialize this queue . * @ serialData The current size ( < tt > int < / tt > ) of the queue , * followed by all of its elements ( each an object reference ) in * first - to - last order . */ private void writeObject ( java . io . ObjectOutputStream s ) throws java . io . IOExceptio...
s . defaultWriteObject ( ) ; // Write out size s . writeInt ( size ( ) ) ; // Write out elements in order . int mask = elements . length - 1 ; for ( int i = head ; i != tail ; i = ( i + 1 ) & mask ) s . writeObject ( elements [ i ] ) ;
public class XData { /** * stores a datanode in a xdata file using the given marshallers . For all classes other * than these a special marshaller is required to map the class ' data to a data node * deSerializedObject : * < ul > * < li > Boolean < / li > * < li > Long < / li > * < li > Integer < / li > *...
store ( node , out , addChecksum , ignoreMissingMarshallers , DUMMY_PROGRESS_LISTENER , marshallers ) ;
public class Calendar { /** * Assign the given entry to each date that it intersects with in the given search interval . */ private void addEntryToResult ( Map < LocalDate , List < Entry < ? > > > result , Entry < ? > entry , LocalDate startDate , LocalDate endDate ) { } }
LocalDate entryStartDate = entry . getStartDate ( ) ; LocalDate entryEndDate = entry . getEndDate ( ) ; // entry does not intersect with time interval if ( entryEndDate . isBefore ( startDate ) || entryStartDate . isAfter ( endDate ) ) { return ; } if ( entryStartDate . isAfter ( startDate ) ) { startDate = entryStartD...
public class ServerControllerImpl { /** * Build { @ link SSLContext } from < code > org . ops4j . pax . web < / code > PID configuration * @ return */ private SSLContext buildSSLContext ( ) { } }
String keyANDkeystorePassword = configuration . getSslKeyPassword ( ) == null ? configuration . getSslPassword ( ) : configuration . getSslKeyPassword ( ) ; return buildSSLContext ( configuration . getSslKeystore ( ) , configuration . getSslKeystoreType ( ) , keyANDkeystorePassword , keyANDkeystorePassword , configurat...
public class MinioClient { /** * Set JSON string of policy on given bucket . * @ param bucketName Bucket name . * @ param policy Bucket policy JSON string . * < / p > < b > Example : < / b > < br > * < pre > { @ code StringBuilder builder = new StringBuilder ( ) ; * builder . append ( " { \ n " ) ; * builde...
Map < String , String > headerMap = new HashMap < > ( ) ; headerMap . put ( "Content-Type" , "application/json" ) ; Map < String , String > queryParamMap = new HashMap < > ( ) ; queryParamMap . put ( "policy" , "" ) ; HttpResponse response = executePut ( bucketName , null , headerMap , queryParamMap , policy , 0 ) ; re...
public class GetLoadBalancerTlsCertificatesResult { /** * An array of LoadBalancerTlsCertificate objects describing your SSL / TLS certificates . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setTlsCertificates ( java . util . Collection ) } or { @ link # w...
if ( this . tlsCertificates == null ) { setTlsCertificates ( new java . util . ArrayList < LoadBalancerTlsCertificate > ( tlsCertificates . length ) ) ; } for ( LoadBalancerTlsCertificate ele : tlsCertificates ) { this . tlsCertificates . add ( ele ) ; } return this ;
public class JmxBean { /** * Optional setting which defines the additional methods ( not get / is / set . . . ) to be exposed as operations via JMX . */ public void setOperationInfos ( JmxOperationInfo [ ] operationInfos ) { } }
if ( this . operationInfos == null ) { this . operationInfos = arrayToList ( operationInfos ) ; } else { for ( JmxOperationInfo opertionInfo : operationInfos ) { this . operationInfos . add ( opertionInfo ) ; } }
public class PathOverrideService { /** * First we get the oldGroups by looking at the database to find the path / profile match * @ param profileId ID of profile * @ param pathId ID of path * @ return Comma - delimited list of groups IDs */ public String getGroupIdsInPathProfile ( int profileId , int pathId ) { }...
return ( String ) sqlService . getFromTable ( Constants . PATH_PROFILE_GROUP_IDS , Constants . GENERIC_ID , pathId , Constants . DB_TABLE_PATH ) ;
public class DesignClockSkin { /** * * * * * * Initialization * * * * * */ @ Override protected void initGraphics ( ) { } }
// Set initial size if ( Double . compare ( clock . getPrefWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getPrefHeight ( ) , 0.0 ) <= 0 || Double . compare ( clock . getWidth ( ) , 0.0 ) <= 0 || Double . compare ( clock . getHeight ( ) , 0.0 ) <= 0 ) { if ( clock . getPrefWidth ( ) > 0 && clock . getPrefHeight (...
public class SmartsAtomAtomMapFilter { /** * Filters a structure match ( described as an index permutation query - > target ) for * those where the atom - atom maps are acceptable . * @ param perm permuation * @ return whether the match should be accepted */ @ Override public boolean apply ( int [ ] perm ) { } }
for ( MappedPairs mpair : mapped ) { // possibly ' or ' of query maps , need to use a set if ( mpair . rIdxs . length > 1 ) { // bind target reactant maps final Set < Integer > bound = new HashSet < > ( ) ; for ( int rIdx : mpair . rIdxs ) { int refidx = mapidx ( target . getAtom ( perm [ rIdx ] ) ) ; if ( refidx == 0 ...
public class ComponentDao { /** * Scroll all < strong > enabled < / strong > files of the specified project ( same project _ uuid ) in no specific order with * ' SOURCE ' source and a non null path . */ public void scrollAllFilesForFileMove ( DbSession session , String projectUuid , ResultHandler < FileMoveRowDto > h...
mapper ( session ) . scrollAllFilesForFileMove ( projectUuid , handler ) ;
public class IdeContentProposalCreator { /** * Returns an entry with the given proposal and the prefix from the context , or null if the proposal is not valid . * If it is valid , the initializer function is applied to it . */ public ContentAssistEntry createProposal ( final String proposal , final ContentAssistConte...
return this . createProposal ( proposal , context . getPrefix ( ) , context , ContentAssistEntry . KIND_UNKNOWN , init ) ;
public class MMORGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setFlags ( Integer newFlags ) { } }
Integer oldFlags = flags ; flags = newFlags ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . MMORG__FLAGS , oldFlags , flags ) ) ;
public class Signing { /** * Updates { @ code h } with the contents of { @ code labels } . * { @ code labels } can be any Map & lt ; String , String & gt ; , but intended to be used for the labels of * one of the model protobufs . * @ param h a { @ link Hasher } * @ param labels some labels * @ return the { @...
for ( Map . Entry < String , String > labelsEntry : labels . entrySet ( ) ) { h . putChar ( '\0' ) ; h . putString ( labelsEntry . getKey ( ) , StandardCharsets . UTF_8 ) ; h . putChar ( '\0' ) ; h . putString ( labelsEntry . getValue ( ) , StandardCharsets . UTF_8 ) ; } return h ;
public class ProposalLineItem { /** * Sets the lastReservationDateTime value for this ProposalLineItem . * @ param lastReservationDateTime * The last { @ link DateTime } when the { @ link ProposalLineItem } * reserved inventory . * This attribute is read - only . */ public void setLastReservationDateTime ( com . ...
this . lastReservationDateTime = lastReservationDateTime ;
public class ServerRequestQueue { /** * Set Process wait lock to false for any open / install request in the queue */ void unlockProcessWait ( ServerRequest . PROCESS_WAIT_LOCK lock ) { } }
synchronized ( reqQueueLockObject ) { for ( ServerRequest req : queue ) { if ( req != null ) { req . removeProcessWaitLock ( lock ) ; } } }
public class MatrixIO { /** * Converts the contents of a matrix file as a { @ link Matrix } object , using * the provided type description as a hint for what kind to create . The * type of { @ code Matrix } object created will be based on an estimate of * whether the data will fit into the available memory . Note...
try { switch ( format ) { case DENSE_TEXT : return readDenseTextMatrix ( matrix , matrixType , transposeOnRead ) ; case MATLAB_SPARSE : return readMatlabSparse ( matrix , matrixType , transposeOnRead ) ; case CLUTO_SPARSE : return readClutoSparse ( matrix , matrixType , transposeOnRead ) ; case SVDLIBC_SPARSE_TEXT : re...
public class AuditSourceIdentificationType { /** * Sets the value of the auditSourceTypeCode property . * @ deprecated use { @ link # getAuditSourceType ( ) and add to the list } */ public void setAuditSourceTypeCode ( CodedValueType auditSourceTypeCode ) { } }
AuditSourceType auditSourceType = new AuditSourceType ( ) ; auditSourceType . setCode ( auditSourceTypeCode . getCode ( ) ) ; auditSourceType . setCodeSystem ( auditSourceTypeCode . getCodeSystem ( ) ) ; auditSourceType . setCodeSystemName ( auditSourceTypeCode . getCodeSystemName ( ) ) ; auditSourceType . setOriginalT...
public class CoronaJobHistory { /** * Log job finished . closes the job file in history . * @ param finishTime finish time of job in ms . * @ param finishedMaps no of maps successfully finished . * @ param finishedReduces no of reduces finished sucessfully . * @ param failedMaps no of failed map tasks . ( inclu...
if ( disableHistory ) { return ; } if ( null != writers ) { log ( writers , RecordTypes . Job , new Keys [ ] { Keys . JOBID , Keys . FINISH_TIME , Keys . JOB_STATUS , Keys . FINISHED_MAPS , Keys . FINISHED_REDUCES , Keys . FAILED_MAPS , Keys . FAILED_REDUCES , Keys . KILLED_MAPS , Keys . KILLED_REDUCES , Keys . MAP_COU...
public class AbstractCsvReader { /** * { @ inheritDoc } */ public String [ ] getHeader ( final boolean firstLineCheck ) throws IOException { } }
if ( firstLineCheck && tokenizer . getLineNumber ( ) != 0 ) { throw new SuperCsvException ( String . format ( "CSV header must be fetched as the first read operation, but %d lines have already been read" , tokenizer . getLineNumber ( ) ) ) ; } if ( readRow ( ) ) { return columns . toArray ( new String [ columns . size ...
public class HTTPUtilities { /** * Used to send arbitrary to the user . * @ param data The contents of the file to send * @ param filename The name of the file . This is only useful if asAttachment * is true * @ param mime The MIME type of the content * @ param asAttachment If true , the file will be download...
try { final HttpServletResponse response = ( HttpServletResponse ) FacesContext . getCurrentInstance ( ) . getExternalContext ( ) . getResponse ( ) ; response . setContentType ( mime ) ; if ( asAttachment ) response . addHeader ( "Content-Disposition" , "attachment;filename=" + filename ) ; response . setContentLength ...
public class GenerateParseInfoVisitor { /** * Implementations for specific nodes . */ @ Override protected void visitSoyFileSetNode ( SoyFileSetNode node ) { } }
// Figure out the generated class name for each Soy file , including adding number suffixes // to resolve collisions , and then adding the common suffix " SoyInfo " . Multimap < String , SoyFileNode > baseGeneratedClassNameToSoyFilesMap = HashMultimap . create ( ) ; for ( SoyFileNode soyFile : node . getChildren ( ) ) ...
public class SquareCrossClustersIntoGrids { /** * Given a node and the corner to the next node down the line , add to the list every other node until * it hits the end of the row . * @ param n Initial node * @ param corner Which corner points to the next node * @ param sign Determines the direction it will trav...
SquareEdge e ; while ( ( e = n . edges [ corner ] ) != null ) { if ( e . a == n ) { n = e . b ; corner = e . sideB ; } else { n = e . a ; corner = e . sideA ; } if ( ! skip ) { if ( n . graph != SquareNode . RESET_GRAPH ) { // This should never happen in a valid grid . It can happen if two nodes link to each other mult...
public class AmazonKinesisAnalyticsV2Client { /** * Returns a list of Amazon Kinesis Data Analytics applications in your account . For each application , the response * includes the application name , Amazon Resource Name ( ARN ) , and status . * If you want detailed information about a specific application , use <...
request = beforeClientExecution ( request ) ; return executeListApplications ( request ) ;
public class GrailsClassUtils { /** * < p > Looks for a property of the reference instance with a given name . < / p > * < p > If found its value is returned . We follow the Java bean conventions with augmentation for groovy support * and static fields / properties . We will therefore match , in this order : * < ...
BeanWrapper ref = new BeanWrapperImpl ( obj ) ; return getPropertyOrStaticPropertyOrFieldValue ( ref , obj , name ) ;
public class RemoteMessageRequest { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . runtime . SIMPRemoteMessageControllable # removeMessage ( boolean ) */ public void moveMessage ( boolean discard ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "removeMessage" , new Boolean ( discard ) ) ; InvalidOperationException finalE = new InvalidOperationException ( nls . getFormattedMessage ( "INTERNAL_MESSAGING_ERROR_CWSIP0005" , new Object [ ] { "RemoteMessageRequest.remov...
public class OrderItemUrl { /** * Get Resource Url for UpdateItemDuty * @ param dutyAmount The amount added to the order item for duty fees . * @ param orderId Unique identifier of the order . * @ param orderItemId Unique identifier of the item to remove from the order . * @ param responseFields Filtering synta...
UrlFormatter formatter = new UrlFormatter ( "/api/commerce/orders/{orderId}/items/{orderItemId}/dutyAmount/{dutyAmount}?updatemode={updateMode}&version={version}&responseFields={responseFields}" ) ; formatter . formatUrl ( "dutyAmount" , dutyAmount ) ; formatter . formatUrl ( "orderId" , orderId ) ; formatter . formatU...
public class IntegralImageOps { /** * Checks to see if the kernel is applied at this specific spot if all the pixels * would be inside the image bounds or not * @ param x location where the kernel is applied . x - axis * @ param y location where the kernel is applied . y - axis * @ param kernel The kernel * @...
for ( ImageRectangle r : kernel . blocks ) { if ( x + r . x0 < 0 || y + r . y0 < 0 ) return false ; if ( x + r . x1 >= width || y + r . y1 >= height ) return false ; } return true ;
public class TimeBasedRollingPolicy { /** * { @ inheritDoc } */ public RolloverDescription initialize ( final String currentActiveFile , final boolean append ) { } }
long n = System . currentTimeMillis ( ) ; nextCheck = ( ( n / 1000 ) + 1 ) * 1000 ; StringBuffer buf = new StringBuffer ( ) ; formatFileName ( new Date ( n ) , buf ) ; lastFileName = buf . toString ( ) ; // RollingPolicyBase . activeFileName duplicates RollingFileAppender . file // and should be removed . if ( activeFi...
public class XmlFile { /** * Parse this XML document with the given parser . * @ param parser the parser to parse the document with . * @ param < T > the type of the element produced by parsing the XML document . * @ return the object parsed from the XML document . * @ throws ParserConfigurationException if an ...
return resolver . parse ( path , parser ) ;
public class SettingsCommandUser { /** * CLI utility methods */ public static SettingsCommandUser build ( String [ ] params ) { } }
GroupedOptions options = GroupedOptions . select ( params , new Options ( new Uncertainty ( ) ) , new Options ( new Duration ( ) ) , new Options ( new Count ( ) ) ) ; if ( options == null ) { printHelp ( ) ; System . out . println ( "Invalid USER options provided, see output for valid options" ) ; System . exit ( 1 ) ;...
public class SarlCompiler { /** * Generate the Java code to the preparation statements for the assert keyword . * @ param assertExpression the expression . * @ param appendable the output . * @ param isReferenced indicates if the expression is referenced . */ protected void _toJavaStatement ( SarlAssertExpression...
if ( ! assertExpression . isIsStatic ( ) && assertExpression . getCondition ( ) != null && isAtLeastJava8 ( assertExpression ) ) { final XExpression condition = assertExpression . getCondition ( ) ; final LightweightTypeReference actualType = getLightweightType ( condition ) ; if ( actualType != null ) { final Boolean ...
public class CallExecutor { protected void handleOutParams ( List < Param > paramList , final CallableStatement cs , Object parameter , boolean functionCall ) { } }
if ( parameter == null ) { return ; } try { final int start = functionCall ? 1 : 0 ; for ( int i = start ; i < paramList . size ( ) ; i ++ ) { final Param param = paramList . get ( i ) ; if ( param . paramType == ParameterType . IN ) { continue ; } PropertyDesc pd = param . propertyDesc ; @ SuppressWarnings ( "unchecke...
public class ApnsPayloadBuilder { /** * < p > Sets the summary argument count for this notification . The summary argument count is : < / p > * < blockquote > The number of items the notification adds to the category ’ s summary format string . < / blockquote > * < p > By default , all notifications count as a sing...
if ( summaryArgumentCount != null && summaryArgumentCount < 1 ) { throw new IllegalArgumentException ( "Summary argument count must be positive." ) ; } this . summaryArgumentCount = summaryArgumentCount ; return this ;
public class LogInterceptor { /** * Log the incomming request . * Once a request gets triggered in okhttp3 , this interceptor gets called . * @ param chain the chain of interceptor , provided by the okhttp3. * @ return the response of the chain . * @ throws IOException in case of failure down the line . */ @ Ov...
Request request = chain . request ( ) ; long t1 = System . nanoTime ( ) ; logger . log ( String . format ( "Sending request %s on %s%n%s" , request . url ( ) , chain . connection ( ) , request . headers ( ) ) ) ; Response response = chain . proceed ( request ) ; long t2 = System . nanoTime ( ) ; logger . log ( String ....
public class CmsContainerpageUtil { /** * Adds an option bar to the given drag element . < p > * @ param element the element */ public void addOptionBar ( CmsContainerPageElementPanel element ) { } }
// the view permission is required for any actions regarding this element if ( element . hasViewPermission ( ) ) { CmsElementOptionBar optionBar = CmsElementOptionBar . createOptionBarForElement ( element , m_controller . getDndHandler ( ) , m_optionButtons ) ; element . setElementOptionBar ( optionBar ) ; }
public class Chain { /** * Creates a { @ link JobConf } for one of the Maps or Reduce in the chain . * It creates a new JobConf using the chain job ' s JobConf as base and adds to * it the configuration properties for the chain element . The keys of the * chain element jobConf have precedence over the given JobCo...
JobConf conf ; try { Stringifier < JobConf > stringifier = new DefaultStringifier < JobConf > ( jobConf , JobConf . class ) ; conf = stringifier . fromString ( jobConf . get ( confKey , null ) ) ; } catch ( IOException ioex ) { throw new RuntimeException ( ioex ) ; } // we have to do this because the Writable desearial...
public class Validation { /** * Bootstrap accuracy estimation of a classification model . * @ param < T > the data type of input objects . * @ param k k - round bootstrap estimation . * @ param trainer a classifier trainer that is properly parameterized . * @ param x the test data set . * @ param y the test d...
if ( k < 2 ) { throw new IllegalArgumentException ( "Invalid k for k-fold bootstrap: " + k ) ; } int n = x . length ; double [ ] results = new double [ k ] ; Accuracy measure = new Accuracy ( ) ; Bootstrap bootstrap = new Bootstrap ( n , k ) ; for ( int i = 0 ; i < k ; i ++ ) { T [ ] trainx = Math . slice ( x , bootstr...
public class Long { /** * Determines the { @ code long } value of the system property * with the specified name . * < p > The first argument is treated as the name of a system * property . System properties are accessible through the { @ link * java . lang . System # getProperty ( java . lang . String ) } metho...
Long result = Long . getLong ( nm , null ) ; return ( result == null ) ? Long . valueOf ( val ) : result ;
public class MetaClassRegistryImpl { /** * Gets an array of of all registered ConstantMetaClassListener instances . */ public MetaClassRegistryChangeEventListener [ ] getMetaClassRegistryChangeEventListeners ( ) { } }
synchronized ( changeListenerList ) { ArrayList < MetaClassRegistryChangeEventListener > ret = new ArrayList < MetaClassRegistryChangeEventListener > ( changeListenerList . size ( ) + nonRemoveableChangeListenerList . size ( ) ) ; ret . addAll ( nonRemoveableChangeListenerList ) ; ret . addAll ( changeListenerList ) ; ...
public class GenericsUtils { /** * LinkedHashMap indicates stored order , important for context */ @ SuppressWarnings ( "PMD.LooseCoupling" ) public static LinkedHashMap < String , Type > createGenericsMap ( final Class < ? > type , final List < ? extends Type > generics ) { } }
final TypeVariable < ? extends Class < ? > > [ ] params = type . getTypeParameters ( ) ; if ( params . length != generics . size ( ) ) { throw new IllegalArgumentException ( String . format ( "Can't build generics map for %s with %s because of incorrect generics count" , type . getSimpleName ( ) , Arrays . toString ( g...
public class CommercePriceListAccountRelPersistenceImpl { /** * Returns the last commerce price list account rel in the ordered set where uuid = & # 63 ; and companyId = & # 63 ; . * @ param uuid the uuid * @ param companyId the company ID * @ param orderByComparator the comparator to order the set by ( optionall...
CommercePriceListAccountRel commercePriceListAccountRel = fetchByUuid_C_Last ( uuid , companyId , orderByComparator ) ; if ( commercePriceListAccountRel != null ) { return commercePriceListAccountRel ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ;...
public class DisableGatewayRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DisableGatewayRequest disableGatewayRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( disableGatewayRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disableGatewayRequest . getGatewayARN ( ) , GATEWAYARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " ...
public class Ginv { /** * Swap the matrices so that the largest value is on the pivot * @ param source * the matrix to modify * @ param diag * the position on the diagonal * @ param s * the matrix s * @ param t * the matrix t */ public static void swapPivot ( double [ ] [ ] source , int diag , double [ ...
// get swap row and col int swapRow = diag ; int swapCol = diag ; double maxValue = Math . abs ( source [ diag ] [ diag ] ) ; int rows = source . length ; int cols = source [ 0 ] . length ; double abs = 0 ; double [ ] r = null ; for ( int row = diag ; row < rows ; row ++ ) { r = source [ row ] ; for ( int col = diag ; ...
public class SimpleGroovyDoc { /** * Methods from Comparable */ public int compareTo ( Object that ) { } }
if ( that instanceof GroovyDoc ) { return name . compareTo ( ( ( GroovyDoc ) that ) . name ( ) ) ; } else { throw new ClassCastException ( String . format ( "Cannot compare object of type %s." , that . getClass ( ) ) ) ; }
public class SquaresIntoCrossClusters { /** * Goes through each node and uses a nearest - neighbor search to find the closest nodes in its local neighborhood . * It then checks those to see if it should connect */ void connectNodes ( ) { } }
setupSearch ( ) ; int indexCornerList = 0 ; for ( int indexNode = 0 ; indexNode < nodes . size ( ) ; indexNode ++ ) { // search all the corners of this node for their neighbors SquareNode n = nodes . get ( indexNode ) ; for ( int indexLocal = 0 ; indexLocal < n . square . size ( ) ; indexLocal ++ ) { if ( n . touch . s...
public class ChannelSelector { /** * Process the actual key cancel requests now . This does not * remove the item from the list as it needs a second pass * through select ( ) before notifyCancelRequests handles that step . * @ return boolean , true if any key was cancelled */ private boolean processCancelRequests...
// Try to make this as fast as possible . Don ' t need to sync // since if a cancel gets added after checking the size , we will // see it next time . if ( cancelList . size ( ) == 0 ) { return false ; } boolean needSelectToOccur = false ; final boolean bTrace = TraceComponent . isAnyTracingEnabled ( ) ; synchronized (...
public class NotifdEventConsumer { public void push_structured_event ( org . omg . CosNotification . StructuredEvent notification ) { } }
String domainName = notification . header . fixed_header . event_type . domain_name ; String eventType = notification . header . fixed_header . event_name ; try { // Check if Heartbeat event if ( eventType . equals ( "heartbeat" ) ) { push_structured_event_heartbeat ( domainName ) ; return ; } // Else check if event is...
public class InMemoryQueueService { /** * Drop either all streams or all queues . * @ param clearStreams if true , drops all streams , if false , clears all queues . * @ param prefix if non - null , drops only queues with a name that begins with this prefix . */ private void resetAllQueuesOrStreams ( boolean clearS...
List < String > toRemove = Lists . newArrayListWithCapacity ( queues . size ( ) ) ; for ( String queueName : queues . keySet ( ) ) { if ( ( clearStreams && QueueName . isStream ( queueName ) ) || ( ! clearStreams && QueueName . isQueue ( queueName ) ) ) { if ( prefix == null || queueName . startsWith ( prefix ) ) { toR...
public class InitializationNormalizer { /** * Returns true if this is a constructor that doesn ' t call " this ( . . . ) " . This constructors are * skipped so initializers aren ' t run more than once per instance creation . */ public static boolean isDesignatedConstructor ( MethodDeclaration node ) { } }
if ( ! node . isConstructor ( ) ) { return false ; } Block body = node . getBody ( ) ; if ( body == null ) { return false ; } List < Statement > stmts = body . getStatements ( ) ; return ( stmts . isEmpty ( ) || ! ( stmts . get ( 0 ) instanceof ConstructorInvocation ) ) ;
public class StringUtils { /** * Joins the elements of the provided array into a single String containing * the provided list of elements . * No delimiter is added before or after the list . A null separator is the * same as an empty String ( " " ) . Null objects or empty strings within the * array are represen...
return org . apache . commons . lang3 . StringUtils . join ( array , separator ) ;
public class EJBJavaColonNamingHelper { /** * { @ inheritDoc } */ @ Override public void moduleMetaDataCreated ( MetaDataEvent < ModuleMetaData > event ) throws MetaDataException { } }
if ( ! MetaDataUtils . copyModuleMetaDataSlot ( event , mmdSlot ) ) { getModuleBindingMap ( event . getMetaData ( ) ) ; }
public class CancelStepsInfoMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CancelStepsInfo cancelStepsInfo , ProtocolMarshaller protocolMarshaller ) { } }
if ( cancelStepsInfo == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cancelStepsInfo . getStepId ( ) , STEPID_BINDING ) ; protocolMarshaller . marshall ( cancelStepsInfo . getStatus ( ) , STATUS_BINDING ) ; protocolMarshaller . marshall (...
public class PermOverrideManager { /** * Denies the provided { @ link net . dv8tion . jda . core . Permission Permissions } * from the selected { @ link net . dv8tion . jda . core . entities . PermissionOverride PermissionOverride } . * @ param permissions * The permissions to deny from the selected { @ link net ...
Checks . notNull ( permissions , "Permissions" ) ; return deny ( Permission . getRaw ( permissions ) ) ;
public class LdapTemplate { /** * { @ inheritDoc } */ @ Override public void rename ( final Name oldDn , final Name newDn ) { } }
executeReadWrite ( new ContextExecutor ( ) { public Object executeWithContext ( DirContext ctx ) throws javax . naming . NamingException { ctx . rename ( oldDn , newDn ) ; return null ; } } ) ;
public class MediaType { /** * Parse the given String into a single { @ code MediaType } . * @ param mediaType the string to parse * @ return the media type * @ throws InvalidMediaTypeException if the string cannot be parsed */ public static MediaType parseMediaType ( String mediaType ) { } }
MimeType type ; try { type = MimeTypeUtils . parseMimeType ( mediaType ) ; } catch ( InvalidMimeTypeException ex ) { throw new InvalidMediaTypeException ( ex ) ; } try { return new MediaType ( type . getType ( ) , type . getSubtype ( ) , type . getParameters ( ) ) ; } catch ( IllegalArgumentException ex ) { throw new I...
public class ReflectedFormatter { /** * Loads all methods with a { @ link Format } annotation , creates an individual { @ link Formatter } instance and stores * them to the { @ link # formats } map . */ private Map < Class < ? > , Formatter > findFormatMethods ( ) { } }
final Map < Class < ? > , Formatter > formats = new HashMap < Class < ? > , Formatter > ( ) ; for ( Method method : this . getClass ( ) . getMethods ( ) ) { Format formatAnnotation = method . getAnnotation ( Format . class ) ; if ( formatAnnotation != null ) { Class < ? > [ ] parameterTypes = method . getParameterTypes...
public class CamelJdbcStoreBolt { /** * endpointUriを指定して 、 DBにinsertを行う 。 * @ param endpointUri CamelのendpointUri * @ param values PreparedStatementに設定する値 */ protected void insert ( String endpointUri , Collection < Object > values ) { } }
this . producerTemplate . sendBody ( endpointUri , values ) ;
public class GroupBy { /** * Create a new aggregating set expression using a backing TreeSet * @ param groupExpression values for this expression will be accumulated into a set * @ return wrapper expression */ public static < E , F extends Comparable < ? super F > > GroupExpression < E , SortedSet < F > > sortedSet...
return new MixinGroupExpression < E , F , SortedSet < F > > ( groupExpression , GSet . createSorted ( groupExpression ) ) ;
public class AbstractSequenceClassifier { /** * Classify a List of IN . This method returns a new list of tokens , not * the list of tokens passed in , and runs the new tokens through * ObjectBankWrapper . ( Both these behaviors are different from that of the * classify ( List ) method . * @ param sentence The ...
List < IN > document = new ArrayList < IN > ( ) ; int i = 0 ; for ( HasWord word : sentence ) { IN wi ; // initialized below if ( word instanceof CoreMap ) { // copy all annotations ! some are required later in // AbstractSequenceClassifier . classifyWithInlineXML // wi = ( IN ) new ArrayCoreMap ( ( ArrayCoreMap ) word...
public class DateTimeUtil { /** * Null - safe method of converting a SQL Timestamp into a DateTime that * it set specifically to be in UTC . * < br > * NOTE : The timestamp also should be in UTC . * @ return A UTC DateTime */ public static DateTime toDateTime ( Timestamp value ) { } }
if ( value == null ) { return null ; } else { return new DateTime ( value . getTime ( ) , DateTimeZone . UTC ) ; }
public class ComponentFactory { /** * Create a scrollable panel . * @ param horizontalGap * the horizontal gap . * @ param verticalGap * the vertical gap . * @ return a scrollable panel . * @ since 15.02.00 */ public static FluidFlowPanelModel createFluidFlowPanel ( int horizontalGap , int verticalGap ) { }...
FlowLayout _flowLayout = new FlowLayout ( FlowLayout . LEFT , horizontalGap , verticalGap ) ; return FluidFlowPanelModel . createFluidFlowPanel ( _flowLayout ) ;
public class ErrorPagePool { /** * remove this error page * @ param type */ public void removeErrorPage ( PageException pe ) { } }
// exception ErrorPage ep = getErrorPage ( pe , ErrorPage . TYPE_EXCEPTION ) ; if ( ep != null ) { pages . remove ( ep ) ; hasChanged = true ; } // request ep = getErrorPage ( pe , ErrorPage . TYPE_REQUEST ) ; if ( ep != null ) { pages . remove ( ep ) ; hasChanged = true ; } // validation ep = getErrorPage ( pe , Error...
public class JsoupCssInliner { /** * Replace link tags with style tags in order to keep the same inclusion * order * @ param doc * the html document * @ param cssContents * the list of external css files with their content */ private void internStyles ( Document doc , List < ExternalCss > cssContents ) { } }
Elements els = doc . select ( CSS_LINKS_SELECTOR ) ; for ( Element e : els ) { if ( ! TRUE_VALUE . equals ( e . attr ( SKIP_INLINE ) ) ) { String path = e . attr ( HREF_ATTR ) ; Element style = new Element ( Tag . valueOf ( STYLE_TAG ) , "" ) ; style . appendChild ( new DataNode ( getCss ( cssContents , path ) , "" ) )...
public class SasUtils { /** * De - serialize secret share from binary message data . Serialization mechanism is detailed in { @ link # encodeToBinary ( rs . in . zivanovic . sss . SecretShare ) * @ param data binary data to de - serialize * @ return secret share data */ public static SecretShare decodeFromBinary ( ...
ByteBuffer bb = ByteBuffer . wrap ( data ) ; try { byte [ ] signature = new byte [ SIGNATURE . length ] ; bb . get ( signature ) ; if ( ! Arrays . equals ( SIGNATURE , signature ) ) { throw new IllegalArgumentException ( "signature missing" ) ; } byte n = bb . get ( ) ; int shareDataLen = bb . getInt ( ) ; byte [ ] sha...
public class Timex3 { /** * getter for timexValue - gets * @ generated * @ return value of the feature */ public String getTimexValue ( ) { } }
if ( Timex3_Type . featOkTst && ( ( Timex3_Type ) jcasType ) . casFeat_timexValue == null ) jcasType . jcas . throwFeatMissing ( "timexValue" , "de.unihd.dbs.uima.types.heideltime.Timex3" ) ; return jcasType . ll_cas . ll_getStringValue ( addr , ( ( Timex3_Type ) jcasType ) . casFeatCode_timexValue ) ;
public class XPathParser { /** * Parses the the rule MultiplicativeExpr according to the following * production rule : * [ 13 ] MultiplicativeExpr : : = UnionExpr ( ( " * " | " div " | " idiv " | " mod " ) UnionExpr ) * . * @ throws TTXPathException */ private void parseMultiplicativeExpr ( ) throws TTXPathExcept...
parseUnionExpr ( ) ; String op = mToken . getContent ( ) ; while ( isMultiplication ( ) ) { // for ( Operators op : Operators . values ( ) ) { // / / identify current operator // if ( is ( op . getOpName ( ) , true ) ) { mPipeBuilder . addExpressionSingle ( ) ; // parse second operand axis parseUnionExpr ( ) ; mPipeBui...
public class BcCMSUtils { /** * Build a Bouncy Castle { @ link CMSSignedData } from bytes . * @ param signature the signature . * @ param data the data signed . * @ return a CMS signed data . * @ throws GeneralSecurityException if the signature could not be decoded . */ public static CMSSignedData getSignedData...
CMSSignedData signedData ; try { if ( data != null ) { signedData = new CMSSignedData ( new CMSProcessableByteArray ( data ) , signature ) ; } else { signedData = new CMSSignedData ( signature ) ; } } catch ( CMSException e ) { throw new GeneralSecurityException ( "Unable to decode signature" , e ) ; } return signedDat...
public class BuddyOnlineStateUpdateEventHandler { /** * / * ( non - Javadoc ) * @ see com . tvd12 . ezyfox . sfs2x . serverhandler . UserZoneEventHandler # handleServerEvent ( com . smartfoxserver . v2 . core . ISFSEvent ) */ @ Override public void handleServerEvent ( ISFSEvent event ) throws SFSException { } }
User user = ( User ) event . getParameter ( SFSEventParam . USER ) ; boolean online = ( Boolean ) event . getParameter ( SFSBuddyEventParam . BUDDY_IS_ONLINE ) ; updateBuddyProperties ( ( ApiBaseUser ) user . getProperty ( APIKey . USER ) , online ) ; super . handleServerEvent ( event ) ;
public class EditShape { /** * stores - 1 for that geometry . */ int createGeometryUserIndex ( ) { } }
if ( m_geometry_indices == null ) m_geometry_indices = new ArrayList < AttributeStreamOfInt32 > ( 4 ) ; // Try getting existing index . Use linear search . We do not expect many // indices to be created . for ( int i = 0 ; i < m_geometry_indices . size ( ) ; i ++ ) { if ( m_geometry_indices . get ( i ) == null ) { m_ge...
public class RelationalOperations { /** * Returns true if polygon _ a is disjoint from polygon _ b . */ private static boolean polygonDisjointPolygon_ ( Polygon polygon_a , Polygon polygon_b , double tolerance , ProgressTracker progress_tracker ) { } }
// Quick rasterize test to see whether the the geometries are disjoint , // or if one is contained in the other . int relation = tryRasterizedContainsOrDisjoint_ ( polygon_a , polygon_b , tolerance , true ) ; if ( relation == Relation . disjoint ) return true ; if ( relation == Relation . contains || relation == Relati...
public class Stapler { /** * Serves the specified { @ link URL } as a static resource . */ boolean serveStaticResource ( HttpServletRequest req , StaplerResponse rsp , URL url , long expiration ) throws IOException { } }
return serveStaticResource ( req , rsp , openURL ( url ) , expiration ) ;
public class A_CmsListTab { /** * Creates the quick search / finder box . < p > */ private void createQuickBox ( ) { } }
if ( hasQuickSearch ( ) || hasQuickFilter ( ) ) { m_quickSearch = new CmsTextBox ( ) ; // m _ quickFilter . setVisible ( hasQuickFilter ( ) ) ; m_quickSearch . addStyleName ( DIALOG_CSS . quickFilterBox ( ) ) ; m_quickSearch . setTriggerChangeOnKeyPress ( true ) ; String message = hasQuickFilter ( ) ? Messages . get ( ...
public class QRDecompositionHouseholderColumn_DDRM { /** * Returns an upper triangular matrix which is the R in the QR decomposition . If compact then the input * expected to be size = [ min ( rows , cols ) , numCols ] otherwise size = [ numRows , numCols ] . * @ param R Storage for upper triangular matrix . * @ ...
if ( compact ) { R = UtilDecompositons_DDRM . checkZerosLT ( R , minLength , numCols ) ; } else { R = UtilDecompositons_DDRM . checkZerosLT ( R , numRows , numCols ) ; } for ( int j = 0 ; j < numCols ; j ++ ) { double colR [ ] = dataQR [ j ] ; int l = Math . min ( j , numRows - 1 ) ; for ( int i = 0 ; i <= l ; i ++ ) {...
public class SequenceFile { /** * Construct the preferred type of ' raw ' SequenceFile Writer . * @ param out The stream on top which the writer is to be constructed . * @ param keyClass The ' key ' type . * @ param valClass The ' value ' type . * @ param compress Compress data ? * @ param blockCompress Compr...
if ( codec != null && ( codec instanceof GzipCodec ) && ! NativeCodeLoader . isNativeCodeLoaded ( ) && ! ZlibFactory . isNativeZlibLoaded ( conf ) ) { throw new IllegalArgumentException ( "SequenceFile doesn't work with " + "GzipCodec without native-hadoop code!" ) ; } Writer writer = null ; if ( ! compress ) { writer ...
public class IntIterator { /** * Lazy evaluation . * @ param iteratorSupplier * @ return */ public static IntIterator of ( final Supplier < ? extends IntIterator > iteratorSupplier ) { } }
N . checkArgNotNull ( iteratorSupplier , "iteratorSupplier" ) ; return new IntIterator ( ) { private IntIterator iter = null ; private boolean isInitialized = false ; @ Override public boolean hasNext ( ) { if ( isInitialized == false ) { init ( ) ; } return iter . hasNext ( ) ; } @ Override public int nextInt ( ) { if...
public class DOM3TreeWalker { /** * If the configuration parameter " namespaces " is set to true , this methods * checks if an entity whose replacement text contains unbound namespace * prefixes is referenced in a location where there are no bindings for * the namespace prefixes and if so raises a LSException wit...
Node child , next ; for ( child = node . getFirstChild ( ) ; child != null ; child = next ) { next = child . getNextSibling ( ) ; if ( child . getNodeType ( ) == Node . ELEMENT_NODE ) { // If a NamespaceURI is not declared for the current // node ' s prefix , raise a fatal error . String prefix = child . getPrefix ( ) ...