signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TemplateHandler3D { /** * Returns the largest ( number of atoms ) ring set in a molecule . * @ param ringSystems RingSystems of a molecule * @ return The largestRingSet */ public IRingSet getLargestRingSet ( List < IRingSet > ringSystems ) { } }
IRingSet largestRingSet = null ; int atomNumber = 0 ; IAtomContainer container = null ; for ( int i = 0 ; i < ringSystems . size ( ) ; i ++ ) { container = getAllInOneContainer ( ringSystems . get ( i ) ) ; if ( atomNumber < container . getAtomCount ( ) ) { atomNumber = container . getAtomCount ( ) ; largestRingSet = r...
public class VariableDef { /** * < pre > * Support for saving variables as slices of a larger variable . * < / pre > * < code > optional . tensorflow . SaveSliceInfoDef save _ slice _ info _ def = 4 ; < / code > */ public org . tensorflow . framework . SaveSliceInfoDef getSaveSliceInfoDef ( ) { } }
return saveSliceInfoDef_ == null ? org . tensorflow . framework . SaveSliceInfoDef . getDefaultInstance ( ) : saveSliceInfoDef_ ;
public class MethodPermissionTypeImpl { /** * If not already created , a new < code > method < / code > element will be created and returned . * Otherwise , the first existing < code > method < / code > element will be returned . * @ return the instance defined for the element < code > method < / code > */ public M...
List < Node > nodeList = childNode . get ( "method" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MethodTypeImpl < MethodPermissionType < T > > ( this , "method" , childNode , nodeList . get ( 0 ) ) ; } return createMethod ( ) ;
public class CmsUserEditDialog { /** * A initialization method . < p > * @ param window to be closed * @ param app * @ param settings user settings , null if new user */ private void init ( final Window window , final CmsAccountsApp app , final CmsUserSettings settings , boolean enabled ) { } }
m_userdata . initFields ( m_user , enabled ? EditLevel . all : EditLevel . none ) ; if ( m_user != null ) { if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( m_user . getFirstname ( ) ) | CmsStringUtil . isEmptyOrWhitespaceOnly ( m_user . getLastname ( ) ) | CmsStringUtil . isEmptyOrWhitespaceOnly ( m_user . getEmail ( ) ...
public class RTPDataChannel { /** * Closes this socket . */ public void close ( ) { } }
if ( rtpChannel != null ) { if ( rtpChannel . isConnected ( ) ) { try { rtpChannel . disconnect ( ) ; } catch ( IOException e ) { logger . error ( e ) ; } try { rtpChannel . socket ( ) . close ( ) ; rtpChannel . close ( ) ; } catch ( IOException e ) { logger . error ( e ) ; } } } if ( rtcpChannel != null ) { rtcpChanne...
public class SyncGroupsInner { /** * Refreshes a hub database schema . * @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . * @ param serverName The name of the server . * @ param databaseName The name...
return refreshHubSchemaWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , syncGroupName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ;
public class DownloadDispatcher { /** * Called just before the thread finishes , regardless of status , to take any necessary action on * the downloaded file with mDownloadedCacheSize file . * @ param forceClean - It will delete downloaded cache , Even streaming is enabled , If user intentionally cancelled . */ pri...
if ( ! request . isResumable ( ) || forceClean ) { Log . d ( "cleanupDestination() deleting " + request . getDestinationURI ( ) . getPath ( ) ) ; File destinationFile = new File ( request . getDestinationURI ( ) . getPath ( ) ) ; if ( destinationFile . exists ( ) ) { destinationFile . delete ( ) ; } }
public class ValueNumberFactory { /** * Get the ValueNumber for given class ' s Class object . * @ param className * the class */ public ValueNumber getClassObjectValue ( @ DottedClassName String className ) { } }
// assert className . indexOf ( ' . ' ) = = - 1; // TODO : Check to see if we need to do this className = className . replace ( '/' , '.' ) ; ValueNumber value = classObjectValueMap . get ( className ) ; if ( value == null ) { value = createFreshValue ( ValueNumber . CONSTANT_CLASS_OBJECT ) ; classObjectValueMap . put ...
public class JcCollection { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div > * < div color = ' red ' style = " font - size : 18px ; color : red " > < i > add a value to a collection , return a < b > JcCollection < / b > . < / i > < ...
JcCollection < JcValue > ret = new JcCollection < JcValue > ( null , value , this , OPERATOR . Collection . ADD ) ; QueryRecorder . recordInvocationConditional ( this , "add" , ret , QueryRecorder . placeHolder ( value ) ) ; return ret ;
public class hqlParser { /** * hql . g : 453:1 : relationalExpression : concatenation ( ( ( ( LT ^ | GT ^ | LE ^ | GE ^ ) bitwiseNotExpression ) * ) | ( n = NOT ! ) ? ( ( i = IN ^ inList ) | ( b = BETWEEN ^ betweenList ) | ( l = LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF ! ) ? p = path ! ) ) ) ; */ public fina...
hqlParser . relationalExpression_return retval = new hqlParser . relationalExpression_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token n = null ; Token i = null ; Token b = null ; Token l = null ; Token LT167 = null ; Token GT168 = null ; Token LE169 = null ; Token GE170 = null ; Token ...
public class CmsToolBar { /** * Creates the app select drop down . < p > * @ return the drop down component */ private Component createQuickLaunchDropDown ( ) { } }
PopupView pv = new PopupView ( new PopupView . Content ( ) { private static final long serialVersionUID = 1L ; public String getMinimizedValueAsHTML ( ) { return getDropDownButtonHtml ( FontOpenCms . APPS ) ; } public Component getPopupComponent ( ) { CmsObject cms = A_CmsUI . getCmsObject ( ) ; Locale locale = UI . ge...
public class AbstractPlugin { /** * Generate an alert when a security issue ( risk / info ) is found . Custom * alert name , description and solution will be used . * @ param risk the risk of the new alert * @ param confidence the confidence of the new alert * @ param name the name of the new alert * @ param ...
log . debug ( "New alert pluginid=" + + this . getId ( ) + " " + name + " uri=" + uri ) ; Alert alert = new Alert ( this . getId ( ) , risk , confidence , name ) ; if ( uri == null || uri . equals ( "" ) ) { uri = msg . getRequestHeader ( ) . getURI ( ) . toString ( ) ; } if ( param == null ) { param = "" ; } alert . s...
public class VicariousThreadLocal { /** * Returns a unique object representing the current thread . Although we use a weak - reference to the thread , we could * use practically anything that does not reference our class - loader . */ static WeakReference < Thread > currentThreadRef ( ) { } }
WeakReference < Thread > ref = weakThread . get ( ) ; if ( ref == null ) { ref = new WeakReference < > ( Thread . currentThread ( ) ) ; weakThread . set ( ref ) ; } return ref ;
public class ManagedProcess { /** * Like { @ link # waitForExit ( ) } , but waits max . maxWaitUntilReturning , then destroys if still * running , and returns . * @ param maxWaitUntilDestroyTimeout Time to wait * @ throws ManagedProcessException see above */ @ Override public ManagedProcess waitForExitMaxMsOrDest...
waitForExitMaxMs ( maxWaitUntilDestroyTimeout ) ; if ( isAlive ( ) ) { logger . info ( "Process didn't exit within max. {}ms, so going to destroy it now: {}" , maxWaitUntilDestroyTimeout , getProcLongName ( ) ) ; destroy ( ) ; } return this ;
public class LogisticsCenter { /** * method for arouter - auto - register plugin to register Routers * @ param routeRoot IRouteRoot implementation class in the package : com . alibaba . android . arouter . core . routers * @ author billy . qi < a href = " mailto : qiyilike @ 163 . com " > Contact me . < / a > * @...
markRegisteredByPlugin ( ) ; if ( routeRoot != null ) { routeRoot . loadInto ( Warehouse . groupsIndex ) ; }
public class DocBookBuilder { /** * Validates the XML after the first set of injections have been processed . * @ param buildData Information and data structures for the build . * @ param topicNode The topic that is being validated . * @ param topicDoc A Document object that holds the Topic ' s XML * @ return T...
final XMLValidator validator = new XMLValidator ( ) ; final ContentSpec contentSpec = buildData . getContentSpec ( ) ; final BaseTopicWrapper < ? > topic = topicNode . getTopic ( ) ; final StringBuilder entity = new StringBuilder ( CSConstants . DUMMY_CS_NAME_ENT_FILE ) ; // Add any custom entities if ( ! isNullOrEmpty...
public class TileTable { /** * { @ inheritDoc } */ @ Override protected void validateContents ( Contents contents ) { } }
// Verify the Contents have a tiles data type ContentsDataType dataType = contents . getDataType ( ) ; if ( dataType == null || ( dataType != ContentsDataType . TILES && dataType != ContentsDataType . GRIDDED_COVERAGE ) ) { throw new GeoPackageException ( "The " + Contents . class . getSimpleName ( ) + " of a " + TileT...
public class ClassWriterImpl { /** * { @ inheritDoc } */ @ Override public void addNestedClassInfo ( final Content classInfoTree ) { } }
Element outerClass = typeElement . getEnclosingElement ( ) ; if ( outerClass == null ) return ; new SimpleElementVisitor8 < Void , Void > ( ) { @ Override public Void visitType ( TypeElement e , Void p ) { Content label = utils . isInterface ( e ) ? contents . enclosingInterfaceLabel : contents . enclosingClassLabel ; ...
public class PickerSpinnerAdapter { /** * { @ inheritDoc } */ @ Override public TwinTextItem getItem ( int position ) { } }
if ( temporarySelection != null && position == getCount ( ) ) return temporarySelection ; else if ( footer != null && position == getCount ( ) - 1 ) return footer ; else return super . getItem ( position ) ;
public class CompletableFutures { /** * Asynchronously accumulate the results only from the provided Futures , * reducing them using the supplied Monoid ( a combining BiFunction / BinaryOperator and identity element that takes two * input values of the same type and returns the combined result ) { @ see cyclops2 . ...
return sequence ( fts ) . thenApply ( s -> s . reduce ( reducer ) ) ;
public class ClassDescriptor { /** * Add a { @ link ObjectReferenceDescriptor } . */ public void addObjectReferenceDescriptor ( ObjectReferenceDescriptor ord ) { } }
m_ObjectReferenceDescriptors . add ( ord ) ; ord . setClassDescriptor ( this ) ; // BRJ m_objectReferenceDescriptorsNameMap = null ;
public class RingBuffer { /** * Allows one user supplied argument . * @ see # tryPublishEvent ( EventTranslator ) * @ param translator The user specified translation for the event * @ param arg0 A user supplied argument . * @ return true if the value was published , false if there was insufficient capacity . */...
try { final long sequence = sequencer . tryNext ( ) ; translateAndPublish ( translator , sequence , arg0 ) ; return true ; } catch ( InsufficientCapacityException e ) { return false ; }
public class TopicDistribution { /** * setter for probability - sets * @ generated * @ param v value to set into the feature */ public void setProbability ( DoubleArray v ) { } }
if ( TopicDistribution_Type . featOkTst && ( ( TopicDistribution_Type ) jcasType ) . casFeat_probability == null ) jcasType . jcas . throwFeatMissing ( "probability" , "ch.epfl.bbp.uima.types.TopicDistribution" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( TopicDistribution_Type ) jcasType ) . casFeatCode_probabi...
public class FormulaReader { /** * Reads a given file and returns the contained propositional formula . * @ param fileName the file name * @ param f the formula factory * @ return the parsed formula * @ throws IOException if there was a problem reading the file * @ throws ParserException if there was a proble...
return read ( new File ( fileName ) , new PropositionalParser ( f ) ) ;
public class JRebirthThread { /** * Attach the first view and run pre and post command . * @ throws JRebirthThreadException if a problem occurred while calling the command */ public void bootUp ( ) throws JRebirthThreadException { } }
final List < Wave > chainedWaveList = new ArrayList < > ( ) ; // Manage waves to run before the First node creation final List < Wave > preBootList = getApplication ( ) . preBootWaveList ( ) ; if ( preBootList != null && ! preBootList . isEmpty ( ) ) { chainedWaveList . addAll ( preBootList ) ; } // Manage the creation...
public class AllInvocationsFinder { /** * gets all invocations from mocks . Invocations are ordered earlier first . * @ param mocks mocks * @ return invocations */ public static List < Invocation > find ( Iterable < ? > mocks ) { } }
Set < Invocation > invocationsInOrder = new TreeSet < Invocation > ( new InvocationComparator ( ) ) ; for ( Object mock : mocks ) { Collection < Invocation > fromSingleMock = new DefaultMockingDetails ( mock ) . getInvocations ( ) ; invocationsInOrder . addAll ( fromSingleMock ) ; } return new LinkedList < Invocation >...
public class BatchProcessor { /** * Put a single BatchEntry to the cache for later processing . * @ param batchEntry * the batchEntry to write to the cache . */ void put ( final AbstractBatchEntry batchEntry ) { } }
try { this . queue . put ( batchEntry ) ; } catch ( InterruptedException e ) { throw new RuntimeException ( e ) ; } if ( this . queue . size ( ) >= this . actions ) { this . scheduler . submit ( new Runnable ( ) { @ Override public void run ( ) { write ( ) ; } } ) ; }
public class MRCompactor { /** * When completion file strategy is used , a compaction completion means there is a file named * { @ link MRCompactor # COMPACTION _ COMPLETE _ FILE _ NAME } in its { @ link Dataset # outputPath ( ) } . */ private static boolean checkAlreadyCompactedBasedOnCompletionFile ( FileSystem fs ...
Path filePath = new Path ( dataset . outputPath ( ) , MRCompactor . COMPACTION_COMPLETE_FILE_NAME ) ; try { return fs . exists ( filePath ) ; } catch ( IOException e ) { LOG . error ( "Failed to verify the existence of file " + filePath , e ) ; return false ; }
public class Types { /** * Returns whether the given object is an instance of a superclass of the * given class , that is if it can be cast to the given class . * @ param object * the object being tested . * @ param clazz * the class to check . * @ return * whether the object under inspection can be cast ...
if ( object == null || clazz == null ) { return false ; } return object . getClass ( ) . isAssignableFrom ( clazz ) ;
public class WsqHandler { /** * decodes the given WSQ file and returns a < code > BitmapHandler < / code > containing the decoded info . * @ param file the WSQ image file , not null * @ return a BitmapHandler containing the decoded info , not null * @ see BitmapHandler */ public BitmapHandler decode ( File file )...
try { return decode ( new FileInputStream ( file ) ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "unexpected error." , e ) ; }
public class JsonOutput { /** * Adds a list . * @ param writer * used writer . * @ param field * field to write . * @ param items * used items . * @ param objWriter * single object writer . */ public static < T > void addArrayIfNotNull ( JSONWriter writer , String field , Collection < T > items , JsonOb...
if ( items == null ) return ; addCollection ( writer , field , items , objWriter ) ;
public class Snappy { /** * Compress the input buffer content in [ inputOffset , * . . . inputOffset + inputLength ) then output to the specified output buffer . * @ param input * @ param inputOffset * @ param inputLength * @ param output * @ param outputOffset * @ return byte size of the compressed data ...
return rawCompress ( input , inputOffset , inputLength , output , outputOffset ) ;
public class UpdatableSketch { /** * Updates this sketch with a byte [ ] key and U value . * The value is passed to update ( ) method of the Summary object associated with the key * @ param key The given byte [ ] key * @ param value The given U value */ public void update ( final byte [ ] key , final U value ) { ...
if ( ( key == null ) || ( key . length == 0 ) ) { return ; } insertOrIgnore ( MurmurHash3 . hash ( key , DEFAULT_UPDATE_SEED ) [ 0 ] >>> 1 , value ) ;
public class NumberUtil { /** * 将16进制的String转化为Integer , 出错时返回默认值 . */ public static Integer hexToIntObject ( @ Nullable String str , Integer defaultValue ) { } }
if ( StringUtils . isEmpty ( str ) ) { return defaultValue ; } try { return Integer . decode ( str ) ; } catch ( final NumberFormatException nfe ) { return defaultValue ; }
public class ICUHumanize { /** * Same as { @ link # messageFormatInstance ( String ) messageFormatInstance } for * the specified locale . * @ param locale * Target locale * @ param pattern * Format pattern that follows the conventions of * { @ link com . ibm . icu . text . MessageFormat MessageFormat } * ...
return withinLocale ( new Callable < MessageFormat > ( ) { public MessageFormat call ( ) throws Exception { return messageFormatInstance ( pattern ) ; } } , locale ) ;
public class AbstractAttributeDefinitionBuilder { /** * Marks the attribute as deprecated since the given API version , with the ability to configure that * notifications to the user ( e . g . via a log message ) about deprecation of the attribute should not be emitted . * Notifying the user should only be done if ...
// noinspection deprecation this . deprecated = new DeprecationData ( since , notificationUseful ) ; return ( BUILDER ) this ;
public class IntListUtil { /** * Creates a new list that will accomodate the specified index and * copies the contents of the old list to the first . */ protected static int [ ] accomodate ( int [ ] list , int index ) { } }
int size = list . length ; // expand size by powers of two until we ' re big enough while ( size <= index ) { size = Math . max ( size * 2 , DEFAULT_LIST_SIZE ) ; } // create a new list and copy the contents int [ ] newlist = new int [ size ] ; System . arraycopy ( list , 0 , newlist , 0 , list . length ) ; return newl...
public class JsMsgPart { /** * Get the estimated size of the fluffed = up value of the field */ int estimateFieldValueSize ( int accessor ) { } }
int size = 0 ; try { if ( jmfPart . isPresent ( accessor ) ) { size = jmfPart . estimateUnassembledValueSize ( accessor ) ; } } catch ( JMFException e ) { FFDCFilter . processException ( e , "estimateFieldValueSize" , "221" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) SibTr . de...
public class Filter { /** * Append two SQL select . * @ param _ sqlSelect the sql select */ public void append2SQLSelect ( final SQLSelect _sqlSelect ) { } }
if ( iWhere != null ) { final SQLWhere sqlWhere = _sqlSelect . getWhere ( ) ; for ( final IWhereTerm < ? > term : iWhere . getTerms ( ) ) { if ( term instanceof IWhereElementTerm ) { final IWhereElement element = ( ( IWhereElementTerm ) term ) . getElement ( ) ; if ( element . getAttribute ( ) != null ) { final String ...
public class PluginXmlParser { /** * Parse the resource list . * @ param element Root resource tag . * @ param builder Bean definition builder . * @ param resourceList List of resources to build . */ private void parseResources ( Element element , BeanDefinitionBuilder builder , ManagedList < AbstractBeanDefiniti...
NodeList resources = element . getChildNodes ( ) ; for ( int i = 0 ; i < resources . getLength ( ) ; i ++ ) { Node node = resources . item ( i ) ; if ( ! ( node instanceof Element ) ) { continue ; } Element resource = ( Element ) resources . item ( i ) ; Class < ? extends IPluginResource > resourceClass = null ; switch...
public class RotationGestureDetector { /** * Accepts MotionEvents and dispatches events to a { @ link OnRotationGestureListener } * when appropriate . * Applications should pass a complete and consistent event stream to this method . * A complete and consistent event stream involves all MotionEvents from the init...
switch ( event . getActionMasked ( ) ) { case MotionEvent . ACTION_DOWN : case MotionEvent . ACTION_CANCEL : case MotionEvent . ACTION_UP : cancelRotation ( ) ; break ; case MotionEvent . ACTION_POINTER_DOWN : if ( event . getPointerCount ( ) == 2 ) { // Second finger is placed initialAngle = prevAngle = currAngle = co...
public class SparseBaseLevel1 { /** * Find the index of the element with maximum absolute value * @ param arr a vector * @ return the index of the element with minimum absolute value */ @ Override public int iamin ( INDArray arr ) { } }
switch ( arr . data ( ) . dataType ( ) ) { case DOUBLE : DefaultOpExecutioner . validateDataType ( DataType . DOUBLE , arr ) ; return idamin ( arr . length ( ) , arr , 1 ) ; case FLOAT : DefaultOpExecutioner . validateDataType ( DataType . FLOAT , arr ) ; return isamin ( arr . length ( ) , arr , 1 ) ; case HALF : Defau...
public class BugInstance { /** * Add a source line annotation describing the source line numbers for a * range of instructions in the method being visited by the given visitor . * Note that if the method does not have line number information , then no * source line annotation will be added . * @ param visitor ...
SourceLineAnnotation sourceLineAnnotation = SourceLineAnnotation . fromVisitedInstructionRange ( visitor . getClassContext ( ) , visitor , startPC , endPC ) ; requireNonNull ( sourceLineAnnotation ) ; add ( sourceLineAnnotation ) ; return this ;
public class Base64 { /** * Low - level access to decoding ASCII characters in the form of a byte array . < strong > Ignores GUNZIP option , if it ' s * set . < / strong > This is not generally a recommended method , although it is used internally as part of the decoding process . * Special case : if len = 0 , an e...
// Lots of error checking and exception throwing if ( source == null ) { throw new NullPointerException ( "Cannot decode null source array." ) ; } // end if if ( off < 0 || off + len > source . length ) { throw new IllegalArgumentException ( String . format ( "Source array with length %d cannot have offset of %d and pr...
public class DetectStackDriftRequest { /** * The logical names of any resources you want to use as filters . * @ param logicalResourceIds * The logical names of any resources you want to use as filters . */ public void setLogicalResourceIds ( java . util . Collection < String > logicalResourceIds ) { } }
if ( logicalResourceIds == null ) { this . logicalResourceIds = null ; return ; } this . logicalResourceIds = new com . amazonaws . internal . SdkInternalList < String > ( logicalResourceIds ) ;
public class ISUPMessageFactoryImpl { /** * ( non - Javadoc ) * @ see org . restcomm . protocols . ss7 . isup . ISUPMessageFactory # createSUS ( int cic ) */ public SuspendMessage createSUS ( int cic ) { } }
SuspendMessage msg = createSUS ( ) ; CircuitIdentificationCode code = this . parameterFactory . createCircuitIdentificationCode ( ) ; code . setCIC ( cic ) ; msg . setCircuitIdentificationCode ( code ) ; return msg ;
public class ReloadableType { /** * Go through proxies we know about in this registry and see if any of them are for the type we have just reloaded . * If they are , regenerate them and reload them . * @ param versionsuffix the suffix to use when reloading the proxies ( it matches what is being used to reload the ...
ReloadableType proxy = typeRegistry . cglibProxies . get ( this . slashedtypename ) ; if ( proxy != null ) { if ( GlobalConfiguration . isRuntimeLogging && log . isLoggable ( Level . INFO ) ) { log . log ( Level . INFO , "Attempting reload of cglib proxy for type " + this . slashedtypename ) ; } Object [ ] strategyAndG...
public class DatatypeConverter { /** * Print duration time units . * @ param duration Duration value * @ param estimated is this an estimated duration * @ return time units value */ public static final BigInteger printDurationTimeUnits ( Duration duration , boolean estimated ) { } }
// SF - 329 : null default required to keep Powerproject happy when importing MSPDI files TimeUnit units = duration == null ? PARENT_FILE . get ( ) . getProjectProperties ( ) . getDefaultDurationUnits ( ) : duration . getUnits ( ) ; return printDurationTimeUnits ( units , estimated ) ;
public class SplitCamelCaseIdentifier { /** * Split the identifier into words . * @ return Collection of words in the identifier */ public Collection < String > split ( ) { } }
String s = ident ; Set < String > result = new HashSet < > ( ) ; while ( s . length ( ) > 0 ) { StringBuilder buf = new StringBuilder ( ) ; char first = s . charAt ( 0 ) ; buf . append ( first ) ; int i = 1 ; if ( s . length ( ) > 1 ) { boolean camelWord ; if ( Character . isLowerCase ( first ) ) { camelWord = true ; }...
public class DetectorFactoryCollection { /** * Get a description for given " bug type " . FIXME : this is referred to * elsewhere as the " bug code " or " bug abbrev " . Should make the terminology * consistent everywhere . In this case , the bug type refers to the short * prefix code prepended to the long and sh...
BugCode bugCode = lookupBugCode ( shortBugType ) ; if ( bugCode == null ) { throw new IllegalArgumentException ( "Error: missing bug code for key" + shortBugType ) ; } return bugCode ;
public class StatisticsApi { /** * Get statistic definitions . * Returns statistic definitions records . * @ return ApiResponse & lt ; GetStatisticDefinitionsResponse & gt ; * @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the response body */ public ApiResponse < GetSt...
com . squareup . okhttp . Call call = getStatisticDefinitionsValidateBeforeCall ( null , null ) ; Type localVarReturnType = new TypeToken < GetStatisticDefinitionsResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class Maybe { /** * Subscribes to a Maybe and provides callbacks to handle the items it emits and any error or * completion notification it issues . * < dl > * < dt > < b > Scheduler : < / b > < / dt > * < dd > { @ code subscribe } does not operate by default on a particular { @ link Scheduler } . < / dd...
ObjectHelper . requireNonNull ( onSuccess , "onSuccess is null" ) ; ObjectHelper . requireNonNull ( onError , "onError is null" ) ; ObjectHelper . requireNonNull ( onComplete , "onComplete is null" ) ; return subscribeWith ( new MaybeCallbackObserver < T > ( onSuccess , onError , onComplete ) ) ;
public class FluentValidator { /** * 将闭包注入上下文 * @ param key 键 * @ param value 闭包 * @ return FluentValidator */ public FluentValidator putClosure2Context ( String key , Closure value ) { } }
if ( context == null ) { context = new ValidatorContext ( ) ; } context . setClosure ( key , value ) ; return this ;
public class EBSOptionsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( EBSOptions eBSOptions , ProtocolMarshaller protocolMarshaller ) { } }
if ( eBSOptions == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( eBSOptions . getEBSEnabled ( ) , EBSENABLED_BINDING ) ; protocolMarshaller . marshall ( eBSOptions . getVolumeType ( ) , VOLUMETYPE_BINDING ) ; protocolMarshaller . marshall ...
public class MemoryRemoteTable { /** * Move the current position and read the record ( optionally read several records ) . * @ param iRelPosition relative Position to read the next record . * @ param iRecordCount Records to read . * @ return If I read 1 record , this is the record ' s data . * @ return If I rea...
int iRowIndex = m_iCurrentRecord + iRelPosition ; // Calculate absolute position if ( ( m_iCurrentRecord == - 1 ) && ( iRelPosition == - 1 ) ) iRowIndex = m_mDataMap . size ( ) - 1 ; // Special case - pos - 1 after open - > pos last . return this . get ( iRowIndex , iRecordCount ) ;
public class JSONUtils { /** * Return true for classes that can be equal to a basic value type ( types that can be converted directly to and * from string representation ) . * @ param cls * the class * @ return true , if the class is a basic value type */ static boolean isBasicValueType ( final Class < ? > cls ...
return cls == String . class || cls == Integer . class || cls == Integer . TYPE || cls == Long . class || cls == Long . TYPE || cls == Short . class || cls == Short . TYPE || cls == Float . class || cls == Float . TYPE || cls == Double . class || cls == Double . TYPE || cls == Byte . class || cls == Byte . TYPE || cls ...
public class NodePod { /** * Return the current server owner . */ public ServerBartender owner ( ) { } }
for ( int i = 0 ; i < _owners . length ; i ++ ) { ServerBartender serverBar = server ( i ) ; if ( serverBar != null && serverBar . isUp ( ) ) { return serverBar ; } } return null ;
public class PangoolMultipleOutputs { /** * Returns the DEFAULT key class for a named output . */ private static Class < ? > getDefaultNamedOutputKeyClass ( JobContext job ) { } }
return job . getConfiguration ( ) . getClass ( DEFAULT_MO_PREFIX + KEY , null , Object . class ) ;
public class KeyPointsCircleHexagonalGrid { /** * Finds the intersection of all the tangent lines with each other the computes the average of those points . * That location is where the center is set to . Each intersection of lines is weighted by the acute angle . * lines which are 90 degrees to each other are less...
keypoints . reset ( ) ; for ( int tangentIdx = 0 ; tangentIdx < tangents . size ( ) ; tangentIdx ++ ) { // System . out . println ( " tangent id " + tangentIdx ) ; Tangents t = tangents . get ( tangentIdx ) ; Point2D_F64 center = keypoints . grow ( ) ; center . set ( 0 , 0 ) ; double totalWeight = 0 ; for ( int i = 0 ;...
public class AlluxioURI { /** * Gets the first n components of the { @ link AlluxioURI } path . There is no trailing separator as * the path will be normalized by normalizePath ( ) . * < pre > * / a / b / c , 0 = / * / a / b / c , 1 = / a * / a / b / c , 2 = / a / b * / a / b / c , 3 = / a / b / c * / a /...
String path = mUri . getPath ( ) ; if ( n == 0 && path . indexOf ( AlluxioURI . SEPARATOR ) == 0 ) { // the special case return AlluxioURI . SEPARATOR ; } int depth = getDepth ( ) ; if ( depth < n ) { return null ; } else if ( depth == n ) { return path ; } else { String [ ] comp = path . split ( SEPARATOR ) ; return S...
public class VisualContext { /** * Converts an angle from a CSS angle to ' rad ' . * @ param spec the CSS angle specification * @ return the corresponding angle in radians */ public double radAngle ( TermAngle spec ) { } }
float nval = spec . getValue ( ) ; final TermLength . Unit unit = spec . getUnit ( ) ; if ( spec instanceof TermCalcAngleImpl ) { final CalcArgs args = ( ( TermCalc ) spec ) . getArgs ( ) ; return args . evaluate ( getRadEval ( ) ) ; } else { if ( unit == null ) return 0 ; switch ( unit ) { case deg : return ( nval * M...
public class WSConnectionRequestInfoImpl { /** * Initialize default values that are used for unspecified properties . * This allows us to match unspecified values with specified values in another CRI . * @ param catalog the default catalog value , or NULL if not supported . * @ param holdability the default holda...
defaultCatalog = catalog ; defaultHoldability = holdability ; defaultReadOnly = readOnly ; defaultTypeMap = typeMap ; defaultSchema = schema ; defaultNetworkTimeout = networkTimeout ;
public class ODataLocal { /** * Set the record content in file . * @ param iPosition * The previous record ' s offset * @ param iContent * The content to write * @ return The new record offset or the same received as parameter is the old space was reused . * @ throws IOException */ public long setRecord ( f...
acquireExclusiveLock ( ) ; try { long [ ] pos = getRelativePosition ( iPosition ) ; final OFile file = files [ ( int ) pos [ 0 ] ] ; final int recordSize = file . readInt ( pos [ 1 ] ) ; final int contentLength = iContent != null ? iContent . length : 0 ; if ( contentLength == recordSize ) { // USE THE OLD SPACE SINCE ...
public class AdaptedIterator { /** * / * ( non - Javadoc ) * @ see java . util . Iterator # hasNext ( ) */ public boolean hasNext ( ) { } }
if ( cachedNext != null ) return true ; while ( itr . hasNext ( ) ) { S o = itr . next ( ) ; T adapted = adapter . adapt ( o ) ; if ( adapted != null ) { cachedNext = adapted ; return true ; } } return false ;
public class RLSUtils { /** * Converts a byte array into a printable hex string . * @ param byteSource The byte array source . * @ param bytes The number of bytes to display . * @ return String printable hex string or " null " */ public static String toHexString ( byte [ ] byteSource , int bytes ) { } }
StringBuffer result = null ; boolean truncated = false ; if ( byteSource != null ) { if ( bytes > byteSource . length ) { // If the number of bytes to display is larger than the available number of // bytes , then reset the number of bytes to display to be the available // number of bytes . bytes = byteSource . length ...
public class XmlParser { /** * Return true if we can read the expected character . * Note that the character will be removed from the input stream on success , * but will be put back on failure . Do not attempt to read the character * again if the method succeeds . * @ param delim * The character that should ...
char c ; // Read the character c = readCh ( ) ; // Test for a match , and push the character // back if the match fails . if ( c == delim ) { return true ; } else { unread ( c ) ; return false ; }
public class TracerFactory { /** * Opens all pooled tracers . */ public void openPoolTracer ( ) { } }
this . poolWriteLock . lock ( ) ; try { for ( AbstractTracer tracer : this . tracerPool . values ( ) ) { tracer . open ( ) ; } } finally { this . poolWriteLock . unlock ( ) ; }
public class VersionRegEx { /** * Compares two versions , following the < em > semantic version < / em > specification . Here * is a quote from < a href = " http : / / semver . org / " > semantic version 2.0.0 * specification < / a > : * < em > Precedence refers to how versions are compared to each other when ord...
// throw NPE to comply with Comparable specification if ( v1 == null ) { throw new NullPointerException ( "v1 is null" ) ; } else if ( v2 == null ) { throw new NullPointerException ( "v2 is null" ) ; } return compare ( v1 , v2 , false ) ;
public class OptimizeParameters { /** * Eliminates the parameter from a function call . * @ param definitionFinder The definition and use sites index . * @ param p * @ param call The function call node * @ param argIndex The index of the argument to remove . */ private void eliminateCallTargetArgAt ( Node ref ,...
Node callArgNode = ReferenceMap . getArgumentForCallOrNewOrDotCall ( ref , argIndex ) ; if ( callArgNode != null ) { NodeUtil . deleteNode ( callArgNode , compiler ) ; }
public class BaseSparseNDArrayCOO { /** * Count the number of value that are included in the ndarray ( view ) according to the sparse offsets and the shape * @ return nnz */ public long countNNZ ( ) { } }
long count = 0 ; for ( int i = 0 ; i < values . length ( ) ; i ++ ) { int [ ] idx = getUnderlyingIndicesOf ( i ) . asInt ( ) ; boolean isIn = true ; int idxNotFixed = 0 ; for ( int dim = 0 ; dim < idx . length ; dim ++ ) { if ( flags ( ) [ dim ] == 1 ) { if ( sparseOffsets ( ) [ dim ] != idx [ dim ] ) { isIn = false ; ...
public class X509CertificateListFromDirectoryFactoryBean { /** * { @ inheritDoc } */ @ Override protected List < X509Certificate > createInstance ( ) throws Exception { } }
if ( this . directory == null ) { logger . info ( "Directory {} does not exist - returning empty list" ) ; return Collections . emptyList ( ) ; } Resource [ ] resources = ResourcePatternUtils . getResourcePatternResolver ( resourceLoader ) . getResources ( "file:" + this . directory . getAbsolutePath ( ) + "/*" ) ; Lis...
public class TopicPattern { /** * Parse a string topic pattern into a TopicPattern object * @ param pattern the string pattern to be parsed * @ return an object representing the result , as follows . * < ul > * < li > the pattern as a string if the pattern contains no wildcards * and hence is better treated a...
// Unfortunately , this method shares a fair amount of logic with Topic . parsePattern // but it is hard to figure out how to factor them . char [ ] accum = new char [ pattern . length ( ) ] ; int finger = 0 ; List tokens = new ArrayList ( ) ; boolean trivial = true ; for ( int i = 0 ; i < pattern . length ( ) ; i ++ )...
public class TriggersInner { /** * Creates or updates a trigger . * @ param deviceName Creates or updates a trigger * @ param name The trigger name . * @ param resourceGroupName The resource group name . * @ param trigger The trigger . * @ throws IllegalArgumentException thrown if parameters fail the validati...
return createOrUpdateWithServiceResponseAsync ( deviceName , name , resourceGroupName , trigger ) . map ( new Func1 < ServiceResponse < TriggerInner > , TriggerInner > ( ) { @ Override public TriggerInner call ( ServiceResponse < TriggerInner > response ) { return response . body ( ) ; } } ) ;
public class Regex { /** * Matches the start of text and returns the matched string * @ param text * @ return * @ throws SyntaxErrorException */ public String lookingAt ( CharSequence text ) { } }
try { if ( text . length ( ) == 0 ) { if ( acceptEmpty ) { return "" ; } else { throw new SyntaxErrorException ( "empty string not accepted" ) ; } } InputReader reader = Input . getInstance ( text ) ; return lookingAt ( reader ) ; } catch ( IOException ex ) { throw new IllegalArgumentException ( "can't happen" ) ; }
public class BinaryHeapPriorityQueue { /** * Searches for the object in the queue and returns it . May be useful if * you can create a new object that is . equals ( ) to an object in the queue * but is not actually identical , or if you want to modify an object that is * in the queue . * @ return null if the ob...
if ( ! contains ( key ) ) return null ; Entry < E > e = getEntry ( key ) ; return e . key ;
public class ResourcePoolsBuilder { /** * Convenience method to add a { @ link org . ehcache . config . ResourceType . Core # HEAP heap } pool . * @ param size the pool size * @ param unit the pool size unit * @ return a new builder with the added pool * @ throws IllegalArgumentException if the set of resource ...
return with ( ResourceType . Core . HEAP , size , unit , false ) ;
public class BlockPosUtils { /** * Gets an iterable iterating through all the { @ link BlockPos } intersecting the passed { @ link AxisAlignedBB } . * @ param aabb the aabb * @ return the all in box */ public static Iterable < BlockPos > getAllInBox ( AxisAlignedBB aabb ) { } }
return BlockPos . getAllInBox ( new BlockPos ( aabb . minX , aabb . minY , aabb . minZ ) , new BlockPos ( Math . ceil ( aabb . maxX ) - 1 , Math . ceil ( aabb . maxY ) - 1 , Math . ceil ( aabb . maxZ ) - 1 ) ) ;
public class KeyManagementServiceClient { /** * Returns metadata for a given [ CryptoKeyVersion ] [ google . cloud . kms . v1 . CryptoKeyVersion ] . * < p > Sample code : * < pre > < code > * try ( KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient . create ( ) ) { * CryptoKeyVer...
GetCryptoKeyVersionRequest request = GetCryptoKeyVersionRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return getCryptoKeyVersion ( request ) ;
public class Op { /** * Creates an < i > operation expression < / i > on the specified target object . * @ param target the target object on which the expression will execute * @ return an operator , ready for chaining */ public static < T > Level0ArrayOperator < BigDecimal [ ] , BigDecimal > onArray ( final BigDec...
return onArrayOf ( Types . BIG_DECIMAL , target ) ;
public class ProxyStatement { /** * { @ inheritDoc } */ @ Override public long executeLargeUpdate ( String sql , int [ ] columnIndexes ) throws SQLException { } }
connection . markCommitStateDirty ( ) ; return delegate . executeLargeUpdate ( sql , columnIndexes ) ;
public class HyperDepParser { /** * Gets the edge marginals in the real semiring from an all - grandparents hypergraph and its marginals in scores . */ public static EdgeScores getEdgeMarginalsRealSemiring ( O2AllGraDpHypergraph graph , Scores sc ) { } }
Algebra s = graph . getAlgebra ( ) ; int nplus = graph . getNumTokens ( ) + 1 ; Hypernode [ ] [ ] [ ] [ ] c = graph . getChart ( ) ; EdgeScores marg = new EdgeScores ( graph . getNumTokens ( ) , 0.0 ) ; for ( int width = 1 ; width < nplus ; width ++ ) { for ( int i = 0 ; i < nplus - width ; i ++ ) { int j = i + width ;...
public class AbstractAmazonSQSAsync { /** * Simplified method form for invoking the CreateQueue operation with an AsyncHandler . * @ see # createQueueAsync ( CreateQueueRequest , com . amazonaws . handlers . AsyncHandler ) */ @ Override public java . util . concurrent . Future < CreateQueueResult > createQueueAsync (...
return createQueueAsync ( new CreateQueueRequest ( ) . withQueueName ( queueName ) , asyncHandler ) ;
public class ContextSelectComboBox { /** * Reloads / refreshes the list of { @ link Context Contexts } from the { @ link Session } . * @ param keepSelected whether the previously selected context is tried to be restored . If * { @ code false } , defaults to no selection . */ public void reloadContexts ( boolean kee...
Context selected = null ; if ( keepSelected ) selected = ( Context ) getSelectedItem ( ) ; List < Context > contexts = Model . getSingleton ( ) . getSession ( ) . getContexts ( ) ; Context [ ] contextsArray = contexts . toArray ( new Context [ contexts . size ( ) ] ) ; ComboBoxModel < Context > model = new DefaultCombo...
public class CRMServiceImpl { private CustomerDetailsType getCustomerData ( LoginUserType login ) { } }
// TODO Auto - generated method stub CustomerDetailsType customer = factory . createCustomerDetailsType ( ) ; // Defaults customer . setId ( 0 ) ; customer . setGender ( "M" ) ; customer . setCity ( "Bonn" ) ; customer . setStreet ( "Straessensweg 10" ) ; customer . setZip ( "53113" ) ; customer . setEmail ( "info@tale...
public class SimonConsolePluginManager { /** * Register a plugin * @ param plugin Plugin */ public void addPlugin ( SimonConsolePlugin plugin ) { } }
SimonConsolePlugin existingPlugin = getPluginById ( plugin . getId ( ) ) ; if ( existingPlugin != null ) { throw new IllegalArgumentException ( "Plugin " + plugin . getId ( ) + " already registered" ) ; } plugins . add ( plugin ) ;
public class ControlsStateChangeDetailedMiner { /** * Writes the result as " A modifications - of - A B gains - of - B loss - of - B " , where A and B are gene * symbols , and whitespace is tab . Modifications are comma separated . * @ param matches pattern search result * @ param out output stream */ public void...
writeResultDetailed ( matches , out , 5 ) ;
public class BaseCudaDataBuffer { /** * Set an individual element * @ param index the index of the element * @ param from the element to get data from */ @ Deprecated protected void set ( long index , long length , Pointer from , long inc ) { } }
long offset = getElementSize ( ) * index ; if ( offset >= length ( ) * getElementSize ( ) ) throw new IllegalArgumentException ( "Illegal offset " + offset + " with index of " + index + " and length " + length ( ) ) ; // TODO : fix this throw new UnsupportedOperationException ( "Deprecated set() call" ) ;
public class TransientObject { /** * Retrieve a specific element from this object . * @ param clazz type of object to be retrieved . If type given does not match a classcast exception will be thrown . * @ param key key of object to be retrieved . * @ param deserialize specify of whether or not this object needs t...
if ( deserialize ) return gson . fromJson ( get ( String . class , key ) , clazz ) ; else return get ( clazz , key ) ;
public class FullMappingPropertiesBasedBundlesHandlerFactory { /** * Returns a bundle using the bundle name from a list of bundles * @ param bundleName * the bundle name * @ param bundles * the list of bundle * @ return a bundle */ private JoinableResourceBundle getBundleFromName ( String bundleName , List < ...
JoinableResourceBundle bundle = null ; List < String > names = new ArrayList < > ( ) ; names . add ( bundleName ) ; List < JoinableResourceBundle > result = getBundlesFromName ( names , bundles ) ; if ( ! result . isEmpty ( ) ) { bundle = result . get ( 0 ) ; } return bundle ;
public class Search { /** * Checks whether a new best solution has been found and updates it accordingly , * given that the solution has already been evaluated and validated . The best * solution is updated only if the presented solution is valid and * < ul > * < li > no best solution had been set before , or <...
// check : valid solution if ( newSolutionValidation . passed ( ) ) { // check : improvement or no best solution set Double delta = null ; if ( bestSolution == null || ( delta = computeDelta ( newSolutionEvaluation , getBestSolutionEvaluation ( ) ) ) > 0 ) { // flag improvement improvementDuringCurrentStep = true ; // ...
public class UtilCache { /** * Sets the maximum number of elements in the cache . If 0 , there is no * maximum . * @ param maxSize * The maximum number of elements in the cache */ public void setMaxSize ( long maxSize ) { } }
// if the new maxSize is < = 0 , clear keyLRUList if ( maxSize <= 0 ) { keyLRUList . clear ( ) ; } else if ( maxSize > 0 && this . maxSize <= 0 ) { // if the new maxSize > 0 and the old is < = 0 , fill in LRU list - // order will be meaningless for now Iterator keys = cacheLineTable . keySet ( ) . iterator ( ) ; while ...
public class ComputeExample { /** * Use an callable object to make an addresses . insert method call . */ private static void insertAddressUsingCallable ( AddressClient client , String newAddressName ) throws InterruptedException , ExecutionException { } }
// Begin samplegen code for insertAddress ( ) . ProjectRegionName region = ProjectRegionName . of ( PROJECT_NAME , REGION ) ; Address address = Address . newBuilder ( ) . build ( ) ; InsertAddressHttpRequest request = InsertAddressHttpRequest . newBuilder ( ) . setRegion ( region . toString ( ) ) . setAddressResource (...
public class SVD { /** * Returns U , S , V < sup > T < / sup > matrices for the SVD of the matrix file in * { @ link Format # MATLAB _ SPARSE Matlab sparse } format using the specified SVD * algorithm to generate the specified number of singular values . * Use a { @ link MatrixFactorization } implementation inste...
return svd ( matrix , Algorithm . ANY , Format . MATLAB_SPARSE , dimensions ) ;
public class RegularPactTask { protected void initialize ( ) throws Exception { } }
// create the operator try { this . driver . setup ( this ) ; } catch ( Throwable t ) { throw new Exception ( "The driver setup for '" + this . getEnvironment ( ) . getTaskName ( ) + "' , caused an error: " + t . getMessage ( ) , t ) ; } this . runtimeUdfContext = createRuntimeContext ( getEnvironment ( ) . getTaskName...
public class JsonConverter { /** * Converts JSON string into map object or returns default value when conversion * is not possible . * @ param value the JSON string to convert . * @ param defaultValue the default value . * @ return Map object value or default when conversion is not supported . * @ see JsonCon...
Map < String , Object > result = toNullableMap ( value ) ; return result != null ? result : defaultValue ;
public class BooleanCliParam { /** * Construct a CLI boolean parameter from a { @ link BooleanParamDef } . * @ param def BooleanParamDef to construct a CLI boolean parameter from . * @ return A CLI boolean parameter constructed from the BooleanParamDef . */ public static BooleanCliParam fromDef ( BooleanParamDef de...
return new BooleanCliParam ( def . getIdentifier ( ) , def . getDefaultValueSupplier ( ) , def . isNullable ( ) ) ;
public class MCAAuthorizationManager { /** * Clear the local stored authorization data */ public void clearAuthorizationData ( ) { } }
preferences . accessToken . clear ( ) ; preferences . idToken . clear ( ) ; preferences . userIdentity . clear ( ) ; if ( BMSClient . getInstance ( ) != null && BMSClient . getInstance ( ) . getCookieManager ( ) != null ) { CookieStore cookieStore = BMSClient . getInstance ( ) . getCookieManager ( ) . getCookieStore ( ...
public class AbstractRouter { /** * Returns the last error message set by Nalu or application . * In case a error message is set by Nalu and by the application , * this method will return the error message set by Nalu . * Once the error message is consumed , it should be reseted by the developer . * ( after dis...
if ( ! Objects . isNull ( this . naluErrorMessage ) ) { return this . naluErrorMessage ; } else if ( ! Objects . isNull ( this . applicationErrorMessage ) ) { return this . applicationErrorMessage ; } else { return null ; }
public class PluginLoader { /** * Returns in iterator over all available implementations of the given service interface ( SPI ) for the plugin . * @ param service the service interface ( SPI ) for which implementations are requested . * @ param < P > Type of the requested plugin service . * @ return An iterator o...
try ( TemporaryClassLoaderContext classLoaderContext = new TemporaryClassLoaderContext ( pluginClassLoader ) ) { return new ContextClassLoaderSettingIterator < > ( ServiceLoader . load ( service , pluginClassLoader ) . iterator ( ) , pluginClassLoader ) ; }
public class ParameterUtil { /** * Init parameter values map with all the values * @ param param parameter * @ param values all parameter values * @ param parameterValues map of parameter values * @ throws QueryException if could not get parameter values */ public static void initAllRuntimeParameterValues ( Que...
if ( param . getSelection ( ) . equals ( QueryParameter . SINGLE_SELECTION ) ) { parameterValues . put ( param . getName ( ) , values . get ( 0 ) ) ; } else { Object [ ] val = new Object [ values . size ( ) ] ; for ( int k = 0 , size = values . size ( ) ; k < size ; k ++ ) { val [ k ] = values . get ( k ) ; } parameter...