signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DataOutputSerializer { @ Override public void write ( int b ) throws IOException { } } | if ( this . position >= this . buffer . length ) { resize ( 1 ) ; } this . buffer [ this . position ++ ] = ( byte ) ( b & 0xff ) ; |
public class SharePrincipalMarshaller { /** * Marshall the given parameter object . */
public void marshall ( SharePrincipal sharePrincipal , ProtocolMarshaller protocolMarshaller ) { } } | if ( sharePrincipal == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( sharePrincipal . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( sharePrincipal . getType ( ) , TYPE_BINDING ) ; protocolMarshaller . marshall ( sharePrincipal... |
public class TenantDataUrl { /** * Get Resource Url for GetDBValue
* @ param dbEntryQuery The database entry string to create .
* @ param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object . This parameter should only be used to retrieve ... | UrlFormatter formatter = new UrlFormatter ( "/api/platform/tenantdata/{dbEntryQuery}?responseFields={responseFields}" ) ; formatter . formatUrl ( "dbEntryQuery" , dbEntryQuery ) ; formatter . formatUrl ( "responseFields" , responseFields ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . ... |
public class InstanceValidator { /** * implementation */
private void checkSampledData ( List < ValidationMessage > errors , String path , WrapperElement focus , SampledData fixed ) { } } | checkFixedValue ( errors , path + ".origin" , focus . getNamedChild ( "origin" ) , fixed . getOrigin ( ) , "origin" ) ; checkFixedValue ( errors , path + ".period" , focus . getNamedChild ( "period" ) , fixed . getPeriodElement ( ) , "period" ) ; checkFixedValue ( errors , path + ".factor" , focus . getNamedChild ( "fa... |
public class ZoteroItemDataProvider { /** * Generates a human - readable ID for an item
* @ param item the item
* @ param dateParser a date parser
* @ return the human - readable ID */
private static String makeId ( CSLItemData item , CSLDateParser dateParser ) { } } | if ( item . getAuthor ( ) == null || item . getAuthor ( ) . length == 0 ) { // there ' s no author information , return original ID
return item . getId ( ) ; } // get author ' s name
CSLName firstAuthor = item . getAuthor ( ) [ 0 ] ; String a = firstAuthor . getFamily ( ) ; if ( a == null || a . isEmpty ( ) ) { a = fir... |
public class Misc { /** * Convert a " hexa " - string to a byte array .
* @ param str Input string .
* @ return Corresponding array of bytes . */
static byte [ ] fromHexString ( String str ) { } } | if ( str . length ( ) % 2 != 0 ) { throw new InvalidOperationException ( "Hex-string has odd length!" ) ; } byte [ ] data = new byte [ str . length ( ) / 2 ] ; int spos = 0 ; for ( int dpos = 0 ; dpos < data . length ; dpos ++ ) { int d1 = Character . digit ( str . charAt ( spos ++ ) , 16 ) ; int d2 = Character . digit... |
public class XMLPoiCategoryManager { /** * { @ inheritDoc } */
@ Override public PoiCategory getPoiCategoryByID ( int id ) { } } | PoiCategory ret = null ; for ( String key : this . titleMap . keySet ( ) ) { if ( ( ret = this . titleMap . get ( key ) ) . getID ( ) == id ) { break ; } } return ret ; |
public class Type { /** * Returns a JVM instruction opcode adapted to this Java type .
* @ param opcode a JVM instruction opcode . This opcode must be one of ILOAD ,
* ISTORE , IALOAD , IASTORE , IADD , ISUB , IMUL , IDIV , IREM , INEG , ISHL ,
* ISHR , IUSHR , IAND , IOR , IXOR and IRETURN .
* @ return an opco... | if ( opcode == Opcodes . IALOAD || opcode == Opcodes . IASTORE ) { switch ( sort ) { case BOOLEAN : case BYTE : return opcode + 5 ; case CHAR : return opcode + 6 ; case SHORT : return opcode + 7 ; case INT : return opcode ; case FLOAT : return opcode + 2 ; case LONG : return opcode + 1 ; case DOUBLE : return opcode + 3... |
public class CoronaJobInProgress { /** * Populate the data structures as a task is scheduled .
* Assuming { @ link JobTracker } is locked on entry .
* @ param tip The tip for which the task is added
* @ param id The attempt - id for the task
* @ param taskTracker task tracker name
* @ param hostName host name... | // Make an entry in the tip if the attempt is not scheduled i . e externally
// added
if ( ! isScheduled ) { tip . addRunningTask ( id , taskTracker ) ; } // keeping the earlier ordering intact
String name ; String splits = "" ; Enum < Counter > counter = null ; if ( tip . isJobSetupTask ( ) ) { launchedSetup = true ; ... |
public class Mapping { /** * Returns an Iterable to the two IChemObjects .
* Iterable . remove ( ) is not implemented .
* @ return An Iterable to two IChemObjects that define the mapping */
@ Override public Iterable < IChemObject > relatedChemObjects ( ) { } } | return new Iterable < IChemObject > ( ) { @ Override public Iterator < IChemObject > iterator ( ) { return new ChemObjectIterator ( ) ; } } ; |
public class CovariantTypes { /** * GenericArrayType */
private static boolean isAssignableFrom ( GenericArrayType type1 , Class < ? > type2 ) { } } | return type2 . isArray ( ) && isAssignableFrom ( Reflections . getRawType ( type1 . getGenericComponentType ( ) ) , type2 . getComponentType ( ) ) ; |
public class DocumentSubscriptions { /** * It opens a subscription and starts pulling documents since a last processed document for that subscription .
* The connection options determine client and server cooperation rules like document batch sizes or a timeout in a matter of which a client
* needs to acknowledge t... | _store . assertInitialized ( ) ; if ( options == null ) { throw new IllegalStateException ( "Cannot open a subscription if options are null" ) ; } SubscriptionWorker < T > subscription = new SubscriptionWorker < > ( clazz , options , false , _store , database ) ; subscription . onClosed = sender -> _subscriptions . rem... |
public class WSDirectorySocket { /** * Do the WebSocket connect . */
private void doConnect ( ) { } } | task = new SocketDeamonTask ( ) ; connectThread = new Thread ( task ) ; connectThread . setDaemon ( true ) ; connectThread . start ( ) ; |
public class PrivacyListManager { /** * Send the { @ link Privacy } stanza to the server in order to know some privacy content and then
* waits for the answer .
* @ param requestPrivacy is the { @ link Privacy } stanza configured properly whose XML
* will be sent to the server .
* @ return a new { @ link Privac... | // The request is a get iq type
requestPrivacy . setType ( Privacy . Type . get ) ; return connection ( ) . createStanzaCollectorAndSend ( requestPrivacy ) . nextResultOrThrow ( ) ; |
public class Job { /** * Returns the image that shows the current buildCommand status . */
public void doBuildStatus ( StaplerRequest req , StaplerResponse rsp ) throws IOException { } } | rsp . sendRedirect2 ( req . getContextPath ( ) + "/images/48x48/" + getBuildStatusUrl ( ) ) ; |
public class Jump { /** * Sets the jump descriptor to use .
* @ param jumpDescriptor the jump descriptor to set
* @ return this behavior for chaining . */
public Jump < T > setJumpDescriptor ( JumpDescriptor < T > jumpDescriptor ) { } } | this . jumpDescriptor = jumpDescriptor ; this . target = null ; this . isJumpAchievable = false ; return this ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EEnum getIfcTaskTypeEnum ( ) { } } | if ( ifcTaskTypeEnumEEnum == null ) { ifcTaskTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1084 ) ; } return ifcTaskTypeEnumEEnum ; |
public class PipelineArbitrateEvent { /** * 初始化对应的pipeline节点 , 同步调用 */
public void init ( Long channelId , Long pipelineId ) { } } | String path = ManagePathUtils . getPipeline ( channelId , pipelineId ) ; String processRootPath = ManagePathUtils . getProcessRoot ( channelId , pipelineId ) ; String terminRootPath = ManagePathUtils . getTerminRoot ( channelId , pipelineId ) ; String remedyRootPath = ManagePathUtils . getRemedyRoot ( channelId , pipel... |
public class EventBusHookListener { /** * Starts the hook listener , registering a handler on the event bus .
* @ param doneHandler An asynchronous handler to be called once the listener
* handler has been registered on the event bus .
* @ return The hook listener . */
public EventBusHookListener start ( Handler ... | eventBus . registerHandler ( address , messageHandler , doneHandler ) ; return this ; |
public class LocalFileSystemUploader { /** * Remove the uploaded topology package for cleaning up
* @ return true , if successful */
@ Override public boolean undo ( ) { } } | if ( destTopologyFile != null ) { LOG . info ( "Clean uploaded jar" ) ; File file = new File ( destTopologyFile ) ; return file . delete ( ) ; } return true ; |
public class VasConversionService { /** * Converts the { @ code ConnectorType } s from { @ code ChargingStation } to { @ code io . motown . vas . v10 . soap . schema . ConnectorType } .
* @ param chargingStation charging station object that contains the connector types .
* @ return List of { @ code io . motown . va... | List < io . motown . vas . v10 . soap . schema . ConnectorType > connectorTypes = new ArrayList < > ( ) ; for ( ConnectorType connectorType : chargingStation . getConnectorTypes ( ) ) { if ( connectorType . equals ( ConnectorType . TEPCO_CHA_DE_MO ) ) { connectorTypes . add ( io . motown . vas . v10 . soap . schema . C... |
public class UrlBeautifier { /** * < code >
* Convert a URI into a query object . Mappings will be converted to the
* correct search and refinement state .
* < / code >
* @ param url
* The URI to parse into a query object
* @ param defaultQuery
* The default query to use if this URL does not correctly par... | URI uri ; try { uri = new URI ( url ) ; } catch ( URISyntaxException e ) { throw new UrlBeautifier . UrlBeautificationException ( "Unable to parse url" , e ) ; } String urlQueryString = uri . getQuery ( ) ; if ( StringUtils . isNotBlank ( urlQueryString ) && idPattern . matcher ( urlQueryString ) . matches ( ) ) { Matc... |
public class JSONArray { /** * Convert a stream of JSONArray text into JSONArray form .
* @ param is The inputStream from which to read the JSON . It will assume the input stream is in UTF - 8 and read it as such .
* @ return The contructed JSONArray Object .
* @ throws IOEXception Thrown if an underlying IO erro... | InputStreamReader isr = null ; try { isr = new InputStreamReader ( is , "UTF-8" ) ; } catch ( Exception ex ) { isr = new InputStreamReader ( is ) ; } return parse ( isr ) ; |
public class ChildWorkflowExecutionTerminatedEventAttributesMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ChildWorkflowExecutionTerminatedEventAttributes childWorkflowExecutionTerminatedEventAttributes , ProtocolMarshaller protocolMarshaller ) { } } | if ( childWorkflowExecutionTerminatedEventAttributes == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( childWorkflowExecutionTerminatedEventAttributes . getWorkflowExecution ( ) , WORKFLOWEXECUTION_BINDING ) ; protocolMarshaller . marshall ... |
public class AbstractIoBufferEx { /** * { @ inheritDoc } */
@ Override public int compareTo ( IoBuffer that ) { } } | int n = this . position ( ) + Math . min ( this . remaining ( ) , that . remaining ( ) ) ; for ( int i = this . position ( ) , j = that . position ( ) ; i < n ; i ++ , j ++ ) { byte v1 = this . get ( i ) ; byte v2 = that . get ( j ) ; if ( v1 == v2 ) { continue ; } if ( v1 < v2 ) { return - 1 ; } return + 1 ; } return ... |
public class StringEscapeUtils { /** * Modified from the quote method in :
* https : / / github . com / codehaus / jettison / blob / master / src / main / java / org / codehaus / jettison / json / JSONObject . java
* @ param string The string to escape .
* @ return An escaped JSON string . */
public static String... | if ( StringUtils . isEmpty ( string ) ) { return "" ; } int len = string . length ( ) ; StringBuilder sb = new StringBuilder ( len + 2 ) ; for ( int i = 0 ; i < len ; i += 1 ) { char c = string . charAt ( i ) ; switch ( c ) { case '\\' : case '"' : sb . append ( '\\' ) ; sb . append ( c ) ; break ; case '\b' : sb . app... |
public class JavadocPopup { @ Override public void show ( final Component c , final int iX , final int iY ) { } } | super . show ( c , iX , iY ) ; EventQueue . invokeLater ( ( ) -> { if ( ! _bResizedWidth && _viewer . getWidth ( ) > MAX_WIDTH ) { // noinspection SuspiciousNameCombination
_scroller . setPreferredSize ( new Dimension ( MAX_WIDTH , MAX_WIDTH ) ) ; _bResizedWidth = true ; pack ( ) ; setVisible ( false ) ; show ( c , iX ... |
public class DB { /** * Resolves a user by username , possibly with the internal cache .
* @ param username The username .
* @ return The user or { @ code null } , if not found .
* @ throws SQLException on database error . */
public User resolveUser ( final String username ) throws SQLException { } } | metrics . usernameCacheTries . mark ( ) ; User user = usernameCache . getIfPresent ( username ) ; if ( user != null ) { metrics . usernameCacheHits . mark ( ) ; return user ; } else { user = selectUser ( username ) ; if ( user != null ) { usernameCache . put ( username , user ) ; } return user ; } |
public class TileUtil { /** * Compute some hash value for " randomizing " tileset picks
* based on x and y coordinates .
* @ return a positive , seemingly random number based on x and y . */
public static int getTileHash ( int x , int y ) { } } | long seed = ( ( ( x << 2 ) ^ y ) ^ MULTIPLIER ) & MASK ; long hash = ( seed * MULTIPLIER + ADDEND ) & MASK ; return ( int ) ( hash >>> 30 ) ; |
public class ClasspathUtils { /** * Returns the classpath as a list of the names of archive files . Any
* classpath component that is not an archive will be ignored .
* @ return the classpath as a list of archive file names ; if no archives can
* be found then an empty list will be returned */
public static List ... | List archives = new ArrayList ( ) ; List components = getClasspathComponents ( ) ; for ( Iterator i = components . iterator ( ) ; i . hasNext ( ) ; ) { String possibleDir = ( String ) i . next ( ) ; File file = new File ( possibleDir ) ; if ( file . isFile ( ) && ( file . getName ( ) . endsWith ( ".jar" ) || file . get... |
public class AeronNDArraySubscriber { /** * Returns the connection uri in the form of :
* host : port : streamId
* @ return */
public String connectionUrl ( ) { } } | String [ ] split = channel . replace ( "aeron:udp?endpoint=" , "" ) . split ( ":" ) ; String host = split [ 0 ] ; int port = Integer . parseInt ( split [ 1 ] ) ; return AeronConnectionInformation . of ( host , port , streamId ) . toString ( ) ; |
public class MessageLogHeaderScreen { /** * Add all the screen listeners . */
public void addListeners ( ) { } } | super . addListeners ( ) ; this . setEditing ( true ) ; Record screenRecord = this . getScreenRecord ( ) ; ReferenceField fldMessageInfoType = ( ReferenceField ) screenRecord . getField ( MessageLogScreenRecord . MESSAGE_INFO_TYPE_ID ) ; |
public class FakeClientBundleProvider { /** * Creates a fake resource class that returns its own name where possible . */
@ SuppressWarnings ( "unchecked" ) // safe since the proxy implements type
private < T > T createFakeResource ( Class < T > type , final String name ) { } } | return ( T ) Proxy . newProxyInstance ( FakeClientBundleProvider . class . getClassLoader ( ) , new Class < ? > [ ] { type } , new InvocationHandler ( ) { @ Override public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Exception { Class < ? > returnType = method . getReturnType ( ) ; if ( retu... |
public class SqlTileWriterExt { /** * gets all the tiles sources that we have tiles for in the cache database and their counts
* @ return */
public List < SourceCount > getSources ( ) { } } | final SQLiteDatabase db = getDb ( ) ; List < SourceCount > ret = new ArrayList < > ( ) ; if ( db == null ) { return ret ; } Cursor cur = null ; try { cur = db . rawQuery ( "select " + COLUMN_PROVIDER + ",count(*) " + ",min(length(" + COLUMN_TILE + ")) " + ",max(length(" + COLUMN_TILE + ")) " + ",sum(length(" + COLUMN_T... |
public class CommerceShippingFixedOptionPersistenceImpl { /** * Returns the first commerce shipping fixed option in the ordered set where commerceShippingMethodId = & # 63 ; .
* @ param commerceShippingMethodId the commerce shipping method ID
* @ param orderByComparator the comparator to order the set by ( optional... | List < CommerceShippingFixedOption > list = findByCommerceShippingMethodId ( commerceShippingMethodId , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; |
public class PactDslJsonArray { /** * Root level array where each item must match the provided matcher
* @ param numberExamples Number of examples to generate */
public static PactDslJsonArray arrayEachLike ( Integer numberExamples , PactDslJsonRootValue value ) { } } | PactDslJsonArray parent = new PactDslJsonArray ( "" , "" , null , true ) ; parent . setNumberExamples ( numberExamples ) ; parent . matchers . addRule ( "" , parent . matchMin ( 0 ) ) ; parent . putObject ( value ) ; return parent ; |
public class BceClientConfiguration { /** * Sets the User - Agent header value to use when sending requests to BCE services .
* If the specified value is null , DEFAULT _ USER _ AGENT is used . If the specified value does not end with
* DEFAULT _ USER _ AGENT , DEFAULT _ USER _ AGENT is appended .
* @ param userA... | if ( userAgent == null ) { this . userAgent = DEFAULT_USER_AGENT ; } else if ( userAgent . endsWith ( DEFAULT_USER_AGENT ) ) { this . userAgent = userAgent ; } else { this . userAgent = userAgent + ", " + DEFAULT_USER_AGENT ; } |
public class EtcdClient { /** * Returns a representation of all members in the etcd cluster .
* @ return the members
* @ throws EtcdException
* in case etcd returned an error */
public EtcdMemberResponse listMembers ( ) throws EtcdException { } } | UriComponentsBuilder builder = UriComponentsBuilder . fromUriString ( MEMBERSPACE ) ; return execute ( builder , HttpMethod . GET , null , EtcdMemberResponse . class ) ; |
public class AbstractSchemaScannerPlugin { /** * Create the foreign key descriptors .
* @ param allForeignKeys All collected foreign keys .
* @ param allColumns All collected columns .
* @ param store The store . */
private void createForeignKeys ( Set < ForeignKey > allForeignKeys , Map < Column , ColumnDescript... | // Foreign keys
for ( ForeignKey foreignKey : allForeignKeys ) { ForeignKeyDescriptor foreignKeyDescriptor = store . create ( ForeignKeyDescriptor . class ) ; foreignKeyDescriptor . setName ( foreignKey . getName ( ) ) ; foreignKeyDescriptor . setDeferrability ( foreignKey . getDeferrability ( ) . name ( ) ) ; foreignK... |
public class Collections { /** * Add elements to a collection and return the collection .
* This only differs from
* { @ link java . util . Collections # addAll ( Collection , Object [ ] ) }
* in that it returns the collection instead of a boolean .
* @ param c The collection to add to .
* @ param elements Th... | java . util . Collections . addAll ( c , elements ) ; return c ; |
public class cspolicylabel_cspolicy_binding { /** * Use this API to fetch cspolicylabel _ cspolicy _ binding resources of given name . */
public static cspolicylabel_cspolicy_binding [ ] get ( nitro_service service , String labelname ) throws Exception { } } | cspolicylabel_cspolicy_binding obj = new cspolicylabel_cspolicy_binding ( ) ; obj . set_labelname ( labelname ) ; cspolicylabel_cspolicy_binding response [ ] = ( cspolicylabel_cspolicy_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class Library { /** * The shading prefix added to this class ' s full name .
* @ throws UnsatisfiedLinkError if the shader used something other than a prefix */
private static String calculatePackagePrefix ( ) { } } | String maybeShaded = Library . class . getName ( ) ; // Use ! instead of . to avoid shading utilities from modifying the string
String expected = "io!netty!internal!tcnative!Library" . replace ( '!' , '.' ) ; if ( ! maybeShaded . endsWith ( expected ) ) { throw new UnsatisfiedLinkError ( String . format ( "Could not fi... |
public class SGDNetworkTrainer { /** * Applies dropout to the given matrix
* @ param X the matrix to dropout values from
* @ param randThresh the threshold that a random integer must be less than to get dropped out
* @ param rand the source of randomness
* @ param ex the source of threads for parlallel computat... | if ( ex == null ) { for ( int i = 0 ; i < X . rows ( ) ; i ++ ) for ( int j = 0 ; j < X . cols ( ) ; j ++ ) if ( rand . nextInt ( ) < randThresh ) X . set ( i , j , 0.0 ) ; } else { final CountDownLatch latch = new CountDownLatch ( SystemInfo . LogicalCores ) ; for ( int id = 0 ; id < SystemInfo . LogicalCores ; id ++ ... |
public class HttpMethodBase { /** * Writes the request headers to the given { @ link HttpConnection connection } .
* This implementation invokes { @ link # addRequestHeaders ( HttpState , HttpConnection ) } ,
* and then writes each header to the request stream .
* Subclasses may want to override this method to to... | LOG . trace ( "enter HttpMethodBase.writeRequestHeaders(HttpState," + "HttpConnection)" ) ; addRequestHeaders ( state , conn ) ; String charset = getParams ( ) . getHttpElementCharset ( ) ; Header [ ] headers = getRequestHeaders ( ) ; for ( int i = 0 ; i < headers . length ; i ++ ) { String s = headers [ i ] . toExtern... |
public class CsvExporter { /** * Write one csv field to the file , followed by a separator unless it is the
* last field on the line . Lead and trailing blanks will be removed .
* @ param p print stream
* @ param s The string to write . Any additional quotes or embedded quotes
* will be provided by put . Null m... | if ( s == null ) { // nl ( ) ;
put ( p , " " ) ; return ; } if ( wasPreviousField ) { p . print ( separator ) ; } if ( trim ) { s = s . trim ( ) ; } if ( s . indexOf ( quote ) >= 0 ) { /* worst case , needs surrounding quotes and internal quotes doubled */
p . print ( quote ) ; for ( int i = 0 ; i < s . length ( ) ; i ... |
public class ServerMappingController { /** * Adds a redirect URL to the specified profile ID
* @ param model
* @ param profileId
* @ param srcUrl
* @ param destUrl
* @ param hostHeader
* @ return
* @ throws Exception */
@ RequestMapping ( value = "api/edit/server" , method = RequestMethod . POST ) public ... | if ( profileId == null && profileIdentifier == null ) { throw new Exception ( "profileId required" ) ; } if ( profileId == null ) { profileId = ProfileService . getInstance ( ) . getIdFromName ( profileIdentifier ) ; } int clientId = ClientService . getInstance ( ) . findClient ( clientUUID , profileId ) . getId ( ) ; ... |
public class CloudTasksClient { /** * Purges a queue by deleting all of its tasks .
* < p > All tasks created before this method is called are permanently deleted .
* < p > Purge operations can take up to one minute to take effect . Tasks might be dispatched before
* the purge takes effect . A purge is irreversib... | PurgeQueueRequest request = PurgeQueueRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return purgeQueue ( request ) ; |
public class SoftTFIDFDictionary { /** * Simple main for testing and experimentation */
static public void main ( String [ ] argv ) throws IOException , FileNotFoundException , NumberFormatException , ClassNotFoundException { } } | if ( argv . length == 0 ) { System . out . println ( "usage 1: aliasfile threshold query1 query2 ... - run queries" ) ; System . out . println ( "usage 2: aliasfile threshold queryfile - run queries from a file" ) ; System . out . println ( "usage 3: aliasfile window1 window2 .... - explore different window sizes" ) ; ... |
public class Convert { /** * Converts any value to < code > Double < / code > .
* @ param value value to convert .
* @ return converted double . */
public static Double toDouble ( Object value ) { } } | if ( value == null ) { return null ; } else if ( value instanceof Double ) { return ( Double ) value ; } else if ( value instanceof Number ) { return ( ( Number ) value ) . doubleValue ( ) ; } else { try { return Double . valueOf ( value . toString ( ) . trim ( ) ) ; } catch ( NumberFormatException e ) { throw new Conv... |
public class ColumnText { /** * Converts a sequence of lines representing one of the column bounds into
* an internal format .
* Each array element will contain a < CODE > float [ 4 ] < / CODE > representing
* the line x = ax + b .
* @ param cLine the column array
* @ return the converted array */
protected A... | if ( cLine . length < 4 ) throw new RuntimeException ( "No valid column line found." ) ; ArrayList cc = new ArrayList ( ) ; for ( int k = 0 ; k < cLine . length - 2 ; k += 2 ) { float x1 = cLine [ k ] ; float y1 = cLine [ k + 1 ] ; float x2 = cLine [ k + 2 ] ; float y2 = cLine [ k + 3 ] ; if ( y1 == y2 ) continue ; // ... |
public class CmsSerialDateController { /** * Sets the whole day flag .
* @ param isWholeDay flag , indicating if the event lasts whole days . */
public void setWholeDay ( Boolean isWholeDay ) { } } | if ( m_model . isWholeDay ( ) ^ ( ( null != isWholeDay ) && isWholeDay . booleanValue ( ) ) ) { m_model . setWholeDay ( isWholeDay ) ; valueChanged ( ) ; } |
public class UpdateWaitTimeForStation { /** * Calculate the current average wait time for each station and prune old wait time calculations .
* @ param ttl _ seconds Time - to - live for wait time calculations , results older than this will be deleted .
* @ return
* @ throws VoltAbortException */
public VoltTable... | voltQueueSQL ( getLastDeparts , station ) ; // For each station , calculate the wait time between departures
final StationStats stats = getStationStats ( station , voltExecuteSQL ( ) ) ; voltQueueSQL ( updateWaitTime , stats . station , stats . lastDepartTime , stats . totalTime , stats . totalEntries ) ; // Prune old ... |
public class UsbDeviceUtilities { /** * Return an integer vendor ID from a URI specifying a USB device .
* @ param uri the USB device URI
* @ throws DataSourceResourceException If the URI doesn ' t match the
* format usb : / / vendor _ id / device _ id */
public static int vendorFromUri ( URI uri ) throws DataSou... | try { return Integer . parseInt ( uri . getAuthority ( ) , 16 ) ; } catch ( NumberFormatException e ) { throw new DataSourceResourceException ( "USB device must be of the format " + DEFAULT_USB_DEVICE_URI + " -- the given " + uri + " has a bad vendor ID" ) ; } |
public class ImageResolutionImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . IMAGE_RESOLUTION__XBASE : setXBase ( ( Integer ) newValue ) ; return ; case AfplibPackage . IMAGE_RESOLUTION__YBASE : setYBase ( ( Integer ) newValue ) ; return ; case AfplibPackage . IMAGE_RESOLUTION__XRESOL : setXResol ( ( Integer ) newValue ) ; return ; case AfplibPackage ... |
public class AmazonRDSWaiters { /** * Builds a DBSnapshotAvailable waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification , and then polls until it determines whether the resource entered the desired state or
* not , where polling criteria is bound by either d... | return new WaiterBuilder < DescribeDBSnapshotsRequest , DescribeDBSnapshotsResult > ( ) . withSdkFunction ( new DescribeDBSnapshotsFunction ( client ) ) . withAcceptors ( new DBSnapshotAvailable . IsAvailableMatcher ( ) , new DBSnapshotAvailable . IsDeletedMatcher ( ) , new DBSnapshotAvailable . IsDeletingMatcher ( ) ,... |
public class DBClosure { /** * Simplified function to execute under admin
* @ param func function to be executed
* @ param < R > type of returned value
* @ return result of a function */
public static < R > R sudo ( Function < ODatabaseDocument , R > func ) { } } | return new DBClosure < R > ( ) { @ Override protected R execute ( ODatabaseDocument db ) { return func . apply ( db ) ; } } . execute ( ) ; |
public class SparkSequenceVectors { /** * This method builds shadow vocabulary and huffman tree
* @ param counter
* @ return */
protected VocabCache < ShallowSequenceElement > buildShallowVocabCache ( Counter < Long > counter ) { } } | // TODO : need simplified cache here , that will operate on Long instead of string labels
VocabCache < ShallowSequenceElement > vocabCache = new AbstractCache < > ( ) ; for ( Long id : counter . keySet ( ) ) { ShallowSequenceElement shallowElement = new ShallowSequenceElement ( counter . getCount ( id ) , id ) ; vocabC... |
public class Reflections { /** * Searches for a declared method with a given name . If the class declares multiple methods with the given name ,
* there is no guarantee as of which methods is returned . Null is returned if the class does not declare a method
* with the given name .
* @ param clazz the given class... | for ( Method method : AccessController . doPrivileged ( new GetDeclaredMethodsAction ( clazz ) ) ) { if ( methodName . equals ( method . getName ( ) ) ) { return method ; } } return null ; |
public class InterconnectAttachmentClient { /** * Deletes the specified interconnect attachment .
* < p > Sample code :
* < pre > < code >
* try ( InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient . create ( ) ) {
* ProjectRegionInterconnectAttachmentName interconnectAttac... | DeleteInterconnectAttachmentHttpRequest request = DeleteInterconnectAttachmentHttpRequest . newBuilder ( ) . setInterconnectAttachment ( interconnectAttachment ) . build ( ) ; return deleteInterconnectAttachment ( request ) ; |
public class CPAttachmentFileEntryUtil { /** * Returns the first cp attachment file entry 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 ( optionally < code > null < / cod... | return getPersistence ( ) . fetchByUuid_C_First ( uuid , companyId , orderByComparator ) ; |
public class Http { /** * Sends a POST request and returns the response .
* @ param endpoint The endpoint to send the request to .
* @ param responseClass The class to deserialise the Json response to . Can be null if no response message is expected .
* @ param headers Any additional headers to send with this req... | // Create the request
HttpDelete delete = new HttpDelete ( endpoint . url ( ) ) ; delete . setHeaders ( combineHeaders ( headers ) ) ; // Send the request and process the response
try ( CloseableHttpResponse response = httpClient ( ) . execute ( delete ) ) { T body = deserialiseResponseMessage ( response , responseClas... |
public class RowColumnOps { /** * Updates the values of row < tt > i < / tt > in the given matrix to be A [ i , : ] = A [ i , : ] / c
* @ param A the matrix to perform he update on
* @ param i the row to update
* @ param start the first index of the row to update from ( inclusive )
* @ param to the last index o... | for ( int j = start ; j < to ; j ++ ) A . set ( i , j , A . get ( i , j ) / c ) ; |
public class LinkedList { /** * Adds the element to the back of the list .
* @ param object Object being added .
* @ return The element it was placed inside of */
public Element < T > pushTail ( T object ) { } } | Element < T > e = requestNew ( ) ; e . object = object ; if ( last == null ) { first = last = e ; } else { e . previous = last ; last . next = e ; last = e ; } size ++ ; return e ; |
public class KerasPReLU { /** * Set weights for layer .
* @ param weights Dense layer weights */
@ Override public void setWeights ( Map < String , INDArray > weights ) throws InvalidKerasConfigurationException { } } | this . weights = new HashMap < > ( ) ; if ( weights . containsKey ( ALPHA ) ) this . weights . put ( PReLUParamInitializer . WEIGHT_KEY , weights . get ( ALPHA ) ) ; else throw new InvalidKerasConfigurationException ( "Parameter " + ALPHA + " does not exist in weights" ) ; if ( weights . size ( ) > 1 ) { Set < String >... |
public class ModelRegistry { /** * Generate a { @ link Key } representing both the
* { @ link org . apache . sling . api . resource . Resource # getResourceType ( ) sling resource type } ,
* { @ link javax . jcr . Node # getPrimaryNodeType ( ) primary node type } and the { @ link Node # getMixinNodeTypes ( ) mixin ... | Key key ; final Key furtherElementsKey = furtherKeyElements == null ? null : new Key ( furtherKeyElements ) ; Node node = resource . adaptTo ( Node . class ) ; if ( node != null ) { try { key = new Key ( resource . getResourceType ( ) , resource . getResourceSuperType ( ) , getPrimaryType ( node ) , geMixinTypes ( node... |
public class HTTaxinvoiceServiceImp { /** * ( non - Javadoc )
* @ see com . popbill . api . HTTaxinvoiceService # registDeptUser ( java . lang . String , java . lang . String , java . lang . String ) */
public Response registDeptUser ( String corpNum , String deptUserID , String deptUserPWD ) throws PopbillException ... | if ( corpNum == null || corpNum . isEmpty ( ) ) throw new PopbillException ( - 99999999 , "연동회원 사업자번호(corpNum)가 입력되지 않았습니다." ) ; if ( deptUserID == null || deptUserID . isEmpty ( ) ) throw new PopbillException ( - 99999999 , "홈택스 부서사용자 계정 아이디(deptUserID)가 입력되지 않았습니다." ) ; if ( deptUserPWD == null || deptUserPWD . isEmp... |
public class ChangesItem { /** * Merges current changes with new one . */
public void merge ( ChangesItem changesItem ) { } } | workspaceChangedSize += changesItem . getWorkspaceChangedSize ( ) ; for ( Entry < String , Long > changesEntry : changesItem . calculatedChangedNodesSize . entrySet ( ) ) { String nodePath = changesEntry . getKey ( ) ; Long currentDelta = changesEntry . getValue ( ) ; Long oldDelta = calculatedChangedNodesSize . get ( ... |
public class AdminDevice { /** * Get device properties
* @ param className
* @ return device properties and descriptions */
@ Command ( name = "QueryWizardDevProperty" , inTypeDesc = "Class name" , outTypeDesc = "Device property list (name - description and default value)" ) public String [ ] queryDevProp ( final S... | xlogger . entry ( ) ; final List < String > names = new ArrayList < String > ( ) ; for ( final DeviceClassBuilder deviceClass : classList ) { if ( deviceClass . getClassName ( ) . equalsIgnoreCase ( className ) ) { final List < DeviceImpl > devices = deviceClass . getDeviceImplList ( ) ; if ( devices . size ( ) > 0 ) {... |
public class Strs { /** * Returns a { @ code String } between matcher that matches any character in a given range
* @ param target
* @ param left
* @ param right
* @ return */
public static Betner betn ( String target , String left , String right ) { } } | return betn ( target ) . between ( left , right ) ; |
public class Math { /** * Returns the floating - point number adjacent to the first
* argument in the direction of the second argument . If both
* arguments compare as equal a value equivalent to the second argument
* is returned .
* Special cases :
* < ul >
* < li > If either argument is a NaN , then NaN i... | /* * The cases :
* nextAfter ( + infinity , 0 ) = = MAX _ VALUE
* nextAfter ( + infinity , + infinity ) = = + infinity
* nextAfter ( - infinity , 0 ) = = - MAX _ VALUE
* nextAfter ( - infinity , - infinity ) = = - infinity
* are naturally handled without any additional testing */
// First check for NaN values... |
public class Output { /** * Encode string .
* @ param string
* string to encode
* @ return encoded string */
protected static byte [ ] encodeString ( String string ) { } } | Element element = getStringCache ( ) . get ( string ) ; byte [ ] encoded = ( element == null ? null : ( byte [ ] ) element . getObjectValue ( ) ) ; if ( encoded == null ) { ByteBuffer buf = AMF . CHARSET . encode ( string ) ; encoded = new byte [ buf . limit ( ) ] ; buf . get ( encoded ) ; getStringCache ( ) . put ( ne... |
public class GeneralTopologyContext { /** * Gets the declared output fields for the specified component / stream . */
public Fields getComponentOutputFields ( String componentId , String streamId ) { } } | return new Fields ( delegate . getComponentOutputFields ( componentId , streamId ) ) ; |
public class Quaternionf { /** * / * ( non - Javadoc )
* @ see org . joml . Quaternionfc # rotateX ( float , org . joml . Quaternionf ) */
public Quaternionf rotateX ( float angle , Quaternionf dest ) { } } | float sin = ( float ) Math . sin ( angle * 0.5 ) ; float cos = ( float ) Math . cosFromSin ( sin , angle * 0.5 ) ; dest . set ( w * sin + x * cos , y * cos + z * sin , z * cos - y * sin , w * cos - x * sin ) ; return dest ; |
public class DaVinci { /** * Start the loading of an image
* @ param path path of the bitmap Or url of the image
* @ param into element which will display the image
* @ return the image from cache */
private Bitmap loadImage ( final String path , final Object into , final Transformation transformation ) { } } | if ( into == null || mImagesCache == null || path == null || path . trim ( ) . isEmpty ( ) ) return null ; Log . d ( TAG , "load(" + path + ")" ) ; Bitmap bitmap = null ; if ( transformation == null ) { bitmap = loadFromLruCache ( path , true ) ; } else { final String pathTransformed = generatePathFromTransformation ( ... |
public class CommercePriceEntryUtil { /** * Returns the commerce price entries before and after the current commerce price entry in the ordered set where CPInstanceUuid = & # 63 ; .
* @ param commercePriceEntryId the primary key of the current commerce price entry
* @ param CPInstanceUuid the cp instance uuid
* @... | return getPersistence ( ) . findByCPInstanceUuid_PrevAndNext ( commercePriceEntryId , CPInstanceUuid , orderByComparator ) ; |
public class GraphScatter { /** * Paint a dot onto the panel .
* @ param g graphics object
* @ param i index of the varied parameter */
private void scatter ( Graphics g , int i ) { } } | int height = getHeight ( ) ; int width = getWidth ( ) ; int x = ( int ) ( ( ( this . variedParamValues [ i ] - this . lower_x_value ) / ( this . upper_x_value - this . lower_x_value ) ) * width ) ; double value = this . measures [ i ] . getLastValue ( this . measureSelected ) ; if ( Double . isNaN ( value ) ) { // no r... |
public class TrainingsImpl { /** * Get tagged images for a given project iteration .
* This API supports batching and range selection . By default it will only return first 50 images matching images .
* Use the { take } and { skip } parameters to control how many images to return in a given batch .
* The filterin... | return ServiceFuture . fromResponse ( getTaggedImagesWithServiceResponseAsync ( projectId , getTaggedImagesOptionalParameter ) , serviceCallback ) ; |
public class CQLSchemaManager { /** * Allow RF to be overridden with ReplicationFactor in the given options . */
@ SuppressWarnings ( "unchecked" ) private String keyspaceDefaultsToCQLString ( ) { } } | // Default defaults :
boolean durable_writes = true ; Map < String , Object > replication = new HashMap < String , Object > ( ) ; replication . put ( "class" , "SimpleStrategy" ) ; replication . put ( "replication_factor" , "1" ) ; // Legacy support : ReplicationFactor
if ( m_dbservice . getParam ( "ReplicationFactor" ... |
public class HString { /** * Checks if this HString encloses the given other .
* @ param other The other HString
* @ return True of this one encloses the given other . */
public final boolean encloses ( HString other ) { } } | if ( other == null ) { return false ; } return ( document ( ) != null && other . document ( ) != null ) && ( document ( ) == other . document ( ) ) && super . encloses ( other ) ; |
public class CmsSerialDateValue { /** * Convert the information from the wrapper to a JSON object .
* @ return the serial date information as JSON . */
public JSONValue toJson ( ) { } } | JSONObject result = new JSONObject ( ) ; if ( null != getStart ( ) ) { result . put ( JsonKey . START , dateToJson ( getStart ( ) ) ) ; } if ( null != getEnd ( ) ) { result . put ( JsonKey . END , dateToJson ( getEnd ( ) ) ) ; } if ( isWholeDay ( ) ) { result . put ( JsonKey . WHOLE_DAY , JSONBoolean . getInstance ( tr... |
public class IntBinaryTreeUsage { /** * START SNIPPET : max */
public Integer max ( IntBinaryTree tree ) { } } | return tree . match ( new IntBinaryTree . MatchBlock < Integer > ( ) { @ Override public Integer _case ( Node x ) { final Integer maxLeft = max ( x . left ) ; final int l = maxLeft == null ? Integer . MIN_VALUE : maxLeft ; final Integer maxRight = max ( x . right ) ; final int r = maxRight == null ? Integer . MIN_VALUE... |
public class JQLChecker { /** * Prepare parser .
* @ param jqlContext
* the jql context
* @ param jql
* the jql
* @ return the pair */
protected Pair < ParserRuleContext , CommonTokenStream > prepareParser ( final JQLContext jqlContext , final String jql ) { } } | JqlLexer lexer = new JqlLexer ( CharStreams . fromString ( jql ) ) ; CommonTokenStream tokens = new CommonTokenStream ( lexer ) ; JqlParser parser = new JqlParser ( tokens ) ; parser . removeErrorListeners ( ) ; parser . addErrorListener ( new JQLBaseErrorListener ( ) { @ Override public void syntaxError ( Recognizer <... |
public class Guid { /** * Generate a { @ link Guid } for an array of Strings .
* @ param strings array of Strings .
* @ return a single { @ link Guid } for the array .
* @ throws IOException */
public static Guid fromStrings ( String ... strings ) throws IOException { } } | if ( strings == null || strings . length == 0 ) { throw new IOException ( "Attempting to compute guid for an empty array." ) ; } return new Guid ( StringUtils . join ( strings ) . getBytes ( Charsets . UTF_8 ) ) ; |
public class Slice { /** * Transfers portion of data from this slice into the specified destination starting at
* the specified absolute { @ code index } .
* @ param destinationIndex the first index of the destination
* @ param length the number of bytes to transfer
* @ throws IndexOutOfBoundsException if the s... | checkIndexLength ( index , length ) ; checkPositionIndexes ( destinationIndex , destinationIndex + length , destination . length ) ; copyMemory ( base , address + index , destination , ( long ) SizeOf . ARRAY_BYTE_BASE_OFFSET + destinationIndex , length ) ; |
public class AppServiceCertificateOrdersInner { /** * Get certificate orders in a resource group .
* Get certificate orders in a resource group .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* ... | return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < AppServiceCertificateOrderInner > > , Page < AppServiceCertificateOrderInner > > ( ) { @ Override public Page < AppServiceCertificateOrderInner > call ( ServiceResponse < Page < AppServiceCertificateOrd... |
public class PreferenceFragment { /** * Initializes the preference , which allows to show a wizard dialog . */
private void initializeShowWizardDialogPreference ( ) { } } | Preference preference = findPreference ( getString ( R . string . show_wizard_dialog_preference_key ) ) ; preference . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { @ Override public boolean onPreferenceClick ( final Preference preference ) { WizardDialog . Builder builder = new WizardDialog . Buil... |
public class AjaxScreenSession { /** * PrintScreen Method . */
public void printScreen ( BaseScreen screen , PrintWriter out ) { } } | try { ResourceBundle reg = ( ( BaseApplication ) this . getTask ( ) . getApplication ( ) ) . getResources ( HtmlConstants . XML_RESOURCE , false ) ; String string = XmlUtilities . XML_LEAD_LINE ; out . println ( string ) ; String strStylesheetPath = screen . getScreenFieldView ( ) . getStylesheetPath ( ) ; if ( strStyl... |
public class VEvent { /** * Sets the priority of the event .
* @ param priority the priority ( " 0 " is undefined , " 1 " is the highest , " 9"
* is the lowest ) or null to remove
* @ return the property that was created
* @ see < a href = " http : / / tools . ietf . org / html / rfc5545 # page - 89 " > RFC 554... | Priority prop = ( priority == null ) ? null : new Priority ( priority ) ; setPriority ( prop ) ; return prop ; |
public class FrameManager { /** * Tries to close all windows . Stops at first failed attempt .
* @ param navigationFrameView used as parent of question dialogs
* @ return true if all windows are closed */
private boolean closeAllWindows ( SwingFrame navigationFrameView ) { } } | // Die umgekehrte Reihenfolge fühlt sich beim Schliessen natürlicher an
for ( int i = navigationFrames . size ( ) - 1 ; i >= 0 ; i -- ) { SwingFrame frameView = navigationFrames . get ( i ) ; if ( ! frameView . tryToCloseWindow ( ) ) return false ; removeNavigationFrameView ( frameView ) ; } return true ; |
public class Scheme { /** * Joins the given parts to recover the original secret .
* < p > < b > N . B . : < / b > There is no way to determine whether or not the returned value is actually the
* original secret . If the parts are incorrect , or are under the threshold value used to split the
* secret , a random ... | checkArgument ( parts . size ( ) > 0 , "No parts provided" ) ; final int [ ] lengths = parts . values ( ) . stream ( ) . mapToInt ( v -> v . length ) . distinct ( ) . toArray ( ) ; checkArgument ( lengths . length == 1 , "Varying lengths of part values" ) ; final byte [ ] secret = new byte [ lengths [ 0 ] ] ; for ( int... |
public class ShelXReader { /** * Read the ShelX from input . Each ShelX document is expected to contain
* one crystal structure .
* @ return a ChemFile with the coordinates , charges , vectors , etc . */
private IChemFile readChemFile ( IChemFile file ) throws IOException { } } | IChemSequence seq = file . getBuilder ( ) . newInstance ( IChemSequence . class ) ; IChemModel model = file . getBuilder ( ) . newInstance ( IChemModel . class ) ; ICrystal crystal = readCrystal ( file . getBuilder ( ) . newInstance ( ICrystal . class ) ) ; model . setCrystal ( crystal ) ; seq . addChemModel ( model ) ... |
public class DateUtil { /** * 获取指定日期字段的最大值 , 例如分钟的最小值是59
* @ param calendar { @ link Calendar }
* @ param dateField { @ link DateField }
* @ return 字段最大值
* @ since 4.5.7
* @ see Calendar # getActualMaximum ( int ) */
public static int getEndValue ( Calendar calendar , int dateField ) { } } | if ( Calendar . DAY_OF_WEEK == dateField ) { return ( calendar . getFirstDayOfWeek ( ) + 6 ) % 7 ; } return calendar . getActualMaximum ( dateField ) ; |
public class JsTopicInterceptor { /** * Get dynamic topicname from parameter annotated @ JsTopicName
* @ param method
* @ param parameters
* @ return */
String getDynamicTopic ( Method method , Object [ ] parameters ) { } } | int idx = 0 ; // synchronise the two arrays , array of parameter and array of annotations
Annotation [ ] [ ] parametersAnnotations = method . getParameterAnnotations ( ) ; for ( Annotation [ ] parameterAnnotations : parametersAnnotations ) { // for each parameter
JsTopicName jsTopicName = getJsTopicNameAnnotation ( par... |
public class SetSupport { /** * Convert an object to an expected type of the method parameter according to the conversion
* rules of the Expression Language .
* @ param value the value to convert
* @ param m the setter method
* @ return value converted to an instance of the expected type ; will be null if value... | if ( value == null ) { return null ; } Class < ? > expectedType = m . getParameterTypes ( ) [ 0 ] ; return getExpressionFactory ( ) . coerceToType ( value , expectedType ) ; |
public class CmsJSONSearchConfigurationParser { /** * Returns a flag , indicating if search should be performed using a wildcard if the empty query is given .
* @ return A flag , indicating if search should be performed using a wildcard if the empty query is given . */
protected Boolean getSearchForEmptyQuery ( ) { }... | Boolean isSearchForEmptyQuery = parseOptionalBooleanValue ( m_configObject , JSON_KEY_SEARCH_FOR_EMPTY_QUERY ) ; return ( isSearchForEmptyQuery == null ) && ( null != m_baseConfig ) ? Boolean . valueOf ( m_baseConfig . getGeneralConfig ( ) . getSearchForEmptyQueryParam ( ) ) : isSearchForEmptyQuery ; |
public class AWSElasticsearchClient { /** * List all supported Elasticsearch versions
* @ param listElasticsearchVersionsRequest
* Container for the parameters to the < code > < a > ListElasticsearchVersions < / a > < / code > operation .
* Use < code > < a > MaxResults < / a > < / code > to control the maximum n... | request = beforeClientExecution ( request ) ; return executeListElasticsearchVersions ( request ) ; |
public class NetworkProfilesInner { /** * Gets the specified network profile in a specified resource group .
* @ param resourceGroupName The name of the resource group .
* @ param networkProfileName The name of the PublicIPPrefx .
* @ param expand Expands referenced resources .
* @ param serviceCallback the asy... | return ServiceFuture . fromResponse ( getByResourceGroupWithServiceResponseAsync ( resourceGroupName , networkProfileName , expand ) , serviceCallback ) ; |
public class Bit { /** * Method to construct a Bit for a given String expression .
* @ param bit a String expression defining a Bit
* @ return a Bit as defined by the given String expression
* @ throws NumberFormatException if the given String expression does not fit
* the defined pattern . */
public static Bit... | final int i = ParseUtil . parseIntBase10 ( bit ) ; if ( i != 0 && i != 1 ) { throw new NumberFormatException ( "Input \"" + bit + "\" must be 0 or 1." ) ; } return ( i > 0 ) ? TRUE : FALSE ; |
public class DbPipe { public String getStringValue ( int index ) { } } | String [ ] array = get ( index ) . extractStringArray ( ) ; String str = "" ; for ( int i = 0 ; i < array . length ; i ++ ) { str += array [ i ] ; if ( i < array . length - 1 ) str += "\n" ; } return str ; |
public class MenuItem { /** * Recover from the service the location object and set it and the value to
* this item .
* @ param location The id to look into the conficuration file pm . locations . xml
* @ param value The location value */
public void parseLocation ( String location , String value ) { } } | setLocationValue ( value ) ; setLocation ( PresentationManager . getPm ( ) . getLocation ( location ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.