signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class MwsAQCall { /** * Perform a synchronous call with no retry or error handling .
* @ return */
@ Override public MwsResponse execute ( ) { } } | HttpPost request = createRequest ( ) ; try { HttpResponse hr = executeRequest ( request ) ; StatusLine statusLine = hr . getStatusLine ( ) ; int status = statusLine . getStatusCode ( ) ; String message = statusLine . getReasonPhrase ( ) ; rhmd = getResponseHeaderMetadata ( hr ) ; String body = getResponseBody ( hr ) ; ... |
public class WARCReader { /** * Write out the arcfile .
* @ param reader
* @ param format Format to use outputting .
* @ throws IOException
* @ throws java . text . ParseException */
protected static void output ( WARCReader reader , String format ) throws IOException , java . text . ParseException { } } | if ( ! reader . output ( format ) ) { throw new IOException ( "Unsupported format: " + format ) ; } |
public class CmsVfsSitemapService { /** * Changes the navigation for a moved entry and its neighbors . < p >
* @ param change the sitemap change
* @ param entryFolder the moved entry
* @ throws CmsException if something goes wrong */
private void applyNavigationChanges ( CmsSitemapChange change , CmsResource entr... | CmsObject cms = getCmsObject ( ) ; String parentPath = null ; if ( change . hasNewParent ( ) ) { CmsResource parent = cms . readResource ( change . getParentId ( ) ) ; parentPath = cms . getSitePath ( parent ) ; } else { parentPath = CmsResource . getParentFolder ( cms . getSitePath ( entryFolder ) ) ; } List < CmsJspN... |
public class DialectFactory { /** * 获取共享方言
* @ param ds 数据源 , 每一个数据源对应一个唯一方言
* @ return { @ link Dialect } 方言 */
public static Dialect getDialect ( DataSource ds ) { } } | Dialect dialect = dialectPool . get ( ds ) ; if ( null == dialect ) { synchronized ( lock ) { dialect = dialectPool . get ( ds ) ; if ( null == dialect ) { dialect = newDialect ( ds ) ; dialectPool . put ( ds , dialect ) ; } } } return dialect ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractTimeObjectType } { @ code > }
* @ param value
* Java instance representing xml element ' s value .
* @ return
* the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractTimeObjectType } ... | return new JAXBElement < AbstractTimeObjectType > ( __TimeObject_QNAME , AbstractTimeObjectType . class , null , value ) ; |
public class NotificationHandler { /** * { @ inheritDoc } */
@ Override public void handleChannelData ( final String action , final JSONArray payload ) throws BitfinexClientException { } } | logger . debug ( "Got notification callback {}" , payload . toString ( ) ) ; if ( payload . isEmpty ( ) ) { return ; } // Test for order error callback
// [0 , " n " , [ null , " on - req " , null , null , [ null , null , 1513970684865000 , " tBTCUSD " , null , null , 0.001,0.001 , " EXCHANGE MARKET " , null , null , n... |
public class Smb2NegotiateRequest { /** * { @ inheritDoc }
* @ see jcifs . internal . smb2 . ServerMessageBlock2Request # createResponse ( jcifs . Configuration ,
* jcifs . internal . smb2 . ServerMessageBlock2Request ) */
@ Override protected Smb2NegotiateResponse createResponse ( CIFSContext tc , ServerMessageBlo... | return new Smb2NegotiateResponse ( tc . getConfig ( ) ) ; |
public class IntFloatDenseVector { /** * Gets the index of the first element in this vector with the specified
* value , or - 1 if it is not present .
* @ param value The value to search for .
* @ param delta The delta with which to evaluate equality .
* @ return The index or - 1 if not present . */
public int ... | for ( int i = 0 ; i < elements . length ; i ++ ) { if ( Primitives . equals ( elements [ i ] , value , delta ) ) { return i ; } } return - 1 ; |
public class LoganSquare { /** * Parse an object from a String . Note : parsing from an InputStream should be preferred over parsing from a String if possible .
* @ param jsonString The JSON string being parsed .
* @ param jsonObjectClass The @ JsonObject class to parse the InputStream into */
public static < E > E... | return mapperFor ( jsonObjectClass ) . parse ( jsonString ) ; |
public class ExtendedACLEntries { /** * Update the mask to be the union of owning group entry , named user entry and named group entry .
* @ param groupActions the group entry to be integrated into the mask */
public void updateMask ( AclActions groupActions ) { } } | AclActions result = new AclActions ( groupActions ) ; for ( Map . Entry < String , AclActions > kv : mNamedUserActions . entrySet ( ) ) { AclActions userAction = kv . getValue ( ) ; result . merge ( userAction ) ; for ( AclAction action : AclAction . values ( ) ) { if ( result . contains ( action ) || userAction . cont... |
public class JSONWriter { /** * Write a JSON key - value pair in one optimized step that assumes that
* the key is a symbol composed of normal characters requiring no escaping
* and asserts that keys are non - null and unique within an object ONLY if
* asserts are enabled . This method is most suitable in the com... | assert ( aKey != null ) ; assert ( m_mode == 'k' ) ; // The key should not have already been seen in this scope .
assert ( m_scopeStack [ m_top ] . add ( aKey ) ) ; try { m_writer . write ( m_expectingComma ? ",\"" : "\"" ) ; m_writer . write ( aKey ) ; if ( aValue == null ) { m_writer . write ( "\":null" ) ; } else { ... |
public class JSONEmitter { /** * Start a new group object . The group emits the JSON :
* < pre >
* " [ name ] " : {
* < / pre >
* @ param name Name used for this group .
* @ return The same JSONEmitter object , which allows call chaining . */
public JSONEmitter startGroup ( String name ) { } } | checkComma ( ) ; write ( '"' ) ; write ( encodeString ( name ) ) ; write ( "\":{" ) ; push ( ) ; return this ; |
public class GrpcManagedChannelPool { /** * Acquires and increases the ref - count for the { @ link ManagedChannel } .
* @ param channelKey channel key
* @ param healthCheckTimeoutMs health check timeout in milliseconds
* @ param shutdownTimeoutMs shutdown timeout in milliseconds
* @ return a { @ link ManagedCh... | boolean shutdownExistingChannel = false ; ManagedChannelReference managedChannelRef = null ; try ( LockResource lockShared = new LockResource ( mLock . readLock ( ) ) ) { if ( mChannels . containsKey ( channelKey ) ) { managedChannelRef = mChannels . get ( channelKey ) ; if ( waitForChannelReady ( managedChannelRef . g... |
public class Http { /** * Executes a POST request .
* @ param uri url of resource .
* @ param content content to be posted .
* @ return { @ link Post } object . */
public static Post post ( String uri , String content ) { } } | return post ( uri , content . getBytes ( ) , CONNECTION_TIMEOUT , READ_TIMEOUT ) ; |
public class UiDevice { /** * Open notification shade
* @ return
* @ throws Exception */
public static boolean openNotification ( ) throws Exception { } } | boolean success = false ; // get API level
int apiLevel = Client . getInstance ( ) . mapField ( "android.os.Build$VERSION" , "SDK_INT" ) . getInt ( 0 ) ; if ( apiLevel >= 18 ) { success = Client . getInstance ( ) . map ( Constants . UIAUTOMATOR_UIDEVICE , "openNotification" ) . getBoolean ( 0 ) ; } else { // try a brut... |
public class CoverageUtilities { /** * Creates a { @ link GridCoverage2D coverage } from the { @ link WritableRaster writable raster } and the necessary geographic Information .
* @ param name the name of the coverage .
* @ param writableRaster the raster containing the data .
* @ param envelopeParams the map of ... | if ( writableRaster instanceof GrassLegacyWritableRaster ) { GrassLegacyWritableRaster wRaster = ( GrassLegacyWritableRaster ) writableRaster ; double west = envelopeParams . get ( WEST ) ; double south = envelopeParams . get ( SOUTH ) ; double east = envelopeParams . get ( EAST ) ; double north = envelopeParams . get ... |
public class CurrentAddressTypeUnmarshaller { /** * Special handling of the Base64 encoded value that represents the address elements . */
@ Override public XMLObject unmarshall ( Element domElement ) throws UnmarshallingException { } } | Document newDocument = null ; Node childNode = domElement . getFirstChild ( ) ; while ( childNode != null ) { if ( childNode . getNodeType ( ) != Node . TEXT_NODE ) { // We skip everything except for a text node .
log . info ( "Ignoring node {} - it is not a text node" , childNode . getNodeName ( ) ) ; } else { newDocu... |
public class Symmetry010Chronology { /** * Obtains a Symmetry010 zoned date - time from another date - time object .
* @ param temporal the date - time object to convert , not null
* @ return the Symmetry010 zoned date - time , not null
* @ throws DateTimeException if unable to create the date - time */
@ Overrid... | return ( ChronoZonedDateTime < Symmetry010Date > ) super . zonedDateTime ( temporal ) ; |
public class JSONObject { /** * unhidden . */
public JSONObject accumulate ( String name , Object value ) throws JSONException { } } | Object current = nameValuePairs . get ( checkName ( name ) ) ; if ( current == null ) { return put ( name , value ) ; } if ( current instanceof JSONArray ) { JSONArray array = ( JSONArray ) current ; array . checkedPut ( value ) ; } else { JSONArray array = new JSONArray ( ) ; array . checkedPut ( current ) ; array . c... |
public class ProductPlan { /** * Returns a histogram that , for each field , approximates the value
* distribution of products from the specified histograms .
* @ param hist1
* the left - hand - side histogram
* @ param hist2
* the right - hand - side histogram
* @ return a histogram that , for each field ,... | Set < String > prodFlds = new HashSet < String > ( hist1 . fields ( ) ) ; prodFlds . addAll ( hist2 . fields ( ) ) ; Histogram prodHist = new Histogram ( prodFlds ) ; double numRec1 = hist1 . recordsOutput ( ) ; double numRec2 = hist2 . recordsOutput ( ) ; if ( Double . compare ( numRec1 , 1.0 ) < 0 || Double . compare... |
public class AWSSecretsManagerClient { /** * Retrieves the JSON text of the resource - based policy document that ' s attached to the specified secret . The JSON
* request string input and response output are shown formatted with white space and line breaks for better
* readability . Submit your input as a single l... | request = beforeClientExecution ( request ) ; return executeGetResourcePolicy ( request ) ; |
public class MethodInvocation { /** * Validates the array of { @ link Object arguments } to be passed to the { @ link Method } by comparing
* the { @ link Object arguments } to the given { @ link Method Method ' s } declared parameters .
* @ param method { @ link Method } used to validate the array of { @ link Obje... | Assert . notNull ( method , "Method cannot be null" ) ; Object [ ] arguments = nullSafeArray ( args ) ; int methodParameterCount = method . getParameterCount ( ) ; assertThat ( arguments . length ) . throwing ( newIllegalArgumentException ( "The number of arguments [%1$d] does not match the number of parameters [%2$d] ... |
public class BaseDesktopMenu { /** * Creates the look and feel menu .
* @ param listener
* the listener
* @ return the j menu */
protected JMenu newLookAndFeelMenu ( final ActionListener listener ) { } } | final JMenu menuLookAndFeel = new JMenu ( "Look and Feel" ) ; menuLookAndFeel . setMnemonic ( 'L' ) ; // Look and Feel JMenuItems
// GTK
JMenuItem jmiPlafGTK ; jmiPlafGTK = new JMenuItem ( "GTK" , 'g' ) ; // $ NON - NLS - 1 $
MenuExtensions . setCtrlAccelerator ( jmiPlafGTK , 'G' ) ; jmiPlafGTK . addActionListener ( ne... |
public class ApiOvhCdndedicated { /** * Return stats about a domain
* REST : GET / cdn / dedicated / { serviceName } / domains / { domain } / statistics
* @ param period [ required ]
* @ param type [ required ]
* @ param value [ required ]
* @ param serviceName [ required ] The internal name of your CDN offer... | String qPath = "/cdn/dedicated/{serviceName}/domains/{domain}/statistics" ; StringBuilder sb = path ( qPath , serviceName , domain ) ; query ( sb , "period" , period ) ; query ( sb , "type" , type ) ; query ( sb , "value" , value ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( r... |
public class ReflTools { /** * Read the value of the field < tt > fieldName < / tt > of object < tt > obj < / tt > .
* @ param obj The object
* @ param fieldName The field name
* @ return the value of the field . */
public static int getInt ( Object obj , String fieldName ) { } } | try { return getField ( obj . getClass ( ) , fieldName ) . getInt ( obj ) ; } catch ( IllegalArgumentException e ) { throw new RuntimeException ( e ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e ) ; } |
public class ServicePriceListRetriever { /** * < p > Retrieves sample data row ( tree ) to make CSV column . < / p >
* @ param pReqVars additional param
* @ return sample data row
* @ throws Exception an Exception */
@ Override public final List < Node < String > > getSampleDataRow ( final Map < String , Object >... | String lang = ( String ) pReqVars . get ( "lang" ) ; List < Node < String > > result = new ArrayList < Node < String > > ( ) ; Integer idx = 1 ; Node < String > nodeService = new Node < String > ( ) ; result . add ( nodeService ) ; nodeService . setItsName ( getSrvI18n ( ) . getMsg ( "service" , lang ) ) ; nodeService ... |
public class StatefulPassivator { /** * d430549.10 */
private EJBObjectInfo createNonSerializableObjectInfo ( Object obj , Map < String , Map < String , Field > > passivatorFields ) throws RemoteException { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "createNonSerializableObjectInfo" , obj ) ; // d460047 , d648122 - re - work
EJBObjectInfo ejbObjectInfo = new EJBObjectInfo ( ) ; ejbObjectInfo . setSerializable ( false ) ; Class < ? > cl... |
public class GenericResolver { /** * syck _ genericresolver _ node _ import */
@ JRubyMethod public static IRubyObject node_import ( IRubyObject self , IRubyObject node ) { } } | // System . err . println ( " syck _ genericresolver _ node _ import ( ) " ) ;
Ruby runtime = self . getRuntime ( ) ; ThreadContext ctx = runtime . getCurrentContext ( ) ; org . yecht . Node n = ( org . yecht . Node ) node . dataGetStructChecked ( ) ; IRubyObject t = runtime . getNil ( ) ; Extra x = ( Extra ) self . da... |
public class JacksonAdapter { /** * Initializes an instance of JacksonMapperAdapter with default configurations
* applied to the object mapper .
* @ param mapper the object mapper to use . */
private static < T extends ObjectMapper > T initializeObjectMapper ( T mapper ) { } } | mapper . configure ( SerializationFeature . WRITE_DATES_AS_TIMESTAMPS , false ) . configure ( SerializationFeature . WRITE_EMPTY_JSON_ARRAYS , true ) . configure ( SerializationFeature . FAIL_ON_EMPTY_BEANS , false ) . configure ( DeserializationFeature . ACCEPT_EMPTY_STRING_AS_NULL_OBJECT , true ) . configure ( Deseri... |
public class DescribeAutoScalingInstancesResult { /** * The instances .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAutoScalingInstances ( java . util . Collection ) } or { @ link # withAutoScalingInstances ( java . util . Collection ) }
* if you wan... | if ( this . autoScalingInstances == null ) { setAutoScalingInstances ( new com . amazonaws . internal . SdkInternalList < AutoScalingInstanceDetails > ( autoScalingInstances . length ) ) ; } for ( AutoScalingInstanceDetails ele : autoScalingInstances ) { this . autoScalingInstances . add ( ele ) ; } return this ; |
public class CMMClassifier { /** * Build a Dataset from some data . Used for training a classifier .
* By passing in an extra origDataset , you can get a Dataset based on featureIndex and
* classIndex in an existing origDataset .
* @ param data This variable is a list of lists of CoreLabel . That is ,
* it is a... | if ( origDataset == null ) { return getDataset ( data ) ; } return getDataset ( data , origDataset . featureIndex , origDataset . labelIndex ) ; |
public class KxPublisherActor { /** * acts as an pull based event producer then
* @ param iterator */
public void initFromIterator ( Iterator < IN > iterator ) { } } | this . pending = new ArrayDeque < > ( ) ; isIteratorBased = true ; // this . _ streams = kxReactiveStreams ; needs sync init ! !
// in case iterator is blocking , need a dedicated thread . .
Executor iteratorThread = new ThreadPoolExecutor ( 0 , 1 , 10L , TimeUnit . MILLISECONDS , new LinkedBlockingQueue < Runnable > (... |
public class StatisticalSequenceLabeler { /** * Get array of Spans from a list of tokens .
* @ param tokens
* the sentence tokens
* @ return the array of Sequence Spans */
public final Span [ ] seqToSpans ( final String [ ] tokens ) { } } | final Span [ ] annotatedText = this . sequenceLabeler . tag ( tokens ) ; final List < Span > probSpans = new ArrayList < Span > ( Arrays . asList ( annotatedText ) ) ; return probSpans . toArray ( new Span [ probSpans . size ( ) ] ) ; |
public class AmazonPinpointSMSVoiceClient { /** * Create a new voice message and send it to a recipient ' s phone number .
* @ param sendVoiceMessageRequest
* SendVoiceMessageRequest
* @ return Result of the SendVoiceMessage operation returned by the service .
* @ throws TooManyRequestsException
* TooManyRequ... | request = beforeClientExecution ( request ) ; return executeSendVoiceMessage ( request ) ; |
public class Util { /** * This function copies file from one location to another
* @ param from the full path to the source file
* @ param to the full path to the destination file
* @ return total bytes copied . 0 indicates */
public static int copyFile ( String from , String to ) { } } | InputStream inStream = null ; FileOutputStream fs = null ; try { int bytesum = 0 ; int byteread ; File oldfile = new File ( from ) ; if ( oldfile . exists ( ) ) { inStream = new FileInputStream ( from ) ; fs = new FileOutputStream ( to ) ; byte [ ] buffer = new byte [ 1444 ] ; while ( ( byteread = inStream . read ( buf... |
public class Tuples { /** * Adapts a ternary consumer to an consumer accepting a triple .
* @ param < T > the consumer first parameter type
* @ param < U > the consumer second parameter type
* @ param < V > the consumer third parameter type
* @ param consumer the consumer to be adapted
* @ return the adatped ... | dbc . precondition ( consumer != null , "cannot apply a triple to a null consumer" ) ; return triple -> consumer . accept ( triple . first ( ) , triple . second ( ) , triple . third ( ) ) ; |
public class ProtobufIDLProxy { /** * Creates the code by type .
* @ param type the type
* @ param topLevelClass the top level class
* @ param packageName the package name
* @ param mappedUniName the mapped uni name
* @ param isUniName the is uni name
* @ return the code dependent */
private static CodeDepe... | CodeDependent cd = new CodeDependent ( ) ; String defaultClsName = type . name ( ) ; String simpleName = getProxyClassName ( defaultClsName , mappedUniName , isUniName ) ; // To generate class
StringBuilder code = new StringBuilder ( ) ; if ( topLevelClass ) { // define package
code . append ( "package " ) . append ( p... |
public class Future { /** * / * ( non - Javadoc )
* @ see com . oath . cyclops . types . MonadicValue # flatMapP ( java . util . function . Function ) */
@ Override public < R > Future < R > mergeMap ( final Function < ? super T , ? extends Publisher < ? extends R > > mapper ) { } } | return ( Future < R > ) MonadicValue . super . mergeMap ( mapper ) ; |
public class CmsIconUtil { /** * Returns the CSS class for the given filename . < p >
* @ param resourceTypeName the resource type name
* @ param fileName the filename
* @ param small if true , get the CSS class for the small icon , else for the biggest one available
* @ return the CSS class */
private static S... | if ( ( fileName != null ) && fileName . contains ( "." ) ) { int last = fileName . lastIndexOf ( "." ) ; if ( fileName . length ( ) > ( last + 1 ) ) { String suffix = fileName . substring ( fileName . lastIndexOf ( "." ) + 1 ) ; return getResourceSubTypeIconClass ( resourceTypeName , suffix , small ) ; } } return "" ; |
public class GPX { /** * Writes the given { @ code gpx } object ( in GPX XML format ) to the given
* { @ code output } stream .
* @ since 1.1
* @ param gpx the GPX object to write to the output
* @ param path the output path where the GPX object is written to
* @ throws IOException if the writing of the GPX o... | writer ( ) . write ( gpx , path ) ; |
public class MethodUtil { /** * Get parameter type name string from a arg types string array
* @ param argTypes
* @ return */
public static String getArgsTypeName ( String [ ] argTypes ) { } } | if ( argTypes != null ) { return StringUtil . join ( argTypes , ',' ) ; } return StringUtil . EMPTY ; |
public class ClockSkin { /** * * * * * * Canvas * * * * * */
private void drawTicks ( ) { } } | double sinValue ; double cosValue ; double startAngle = 180 ; double angleStep = 360 / 60 ; Point2D center = new Point2D ( size * 0.5 , size * 0.5 ) ; Color hourTickMarkColor = getSkinnable ( ) . getHourTickMarkColor ( ) ; Color minuteTickMarkColor = getSkinnable ( ) . getMinuteTickMarkColor ( ) ; boolean hourTickMarks... |
public class PublicIPAddressesInner { /** * Creates or updates a static or dynamic public IP address .
* @ param resourceGroupName The name of the resource group .
* @ param publicIpAddressName The name of the public IP address .
* @ param parameters Parameters supplied to the create or update public IP address o... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , publicIpAddressName , parameters ) . map ( new Func1 < ServiceResponse < PublicIPAddressInner > , PublicIPAddressInner > ( ) { @ Override public PublicIPAddressInner call ( ServiceResponse < PublicIPAddressInner > response ) { return response . body ( ... |
public class SDKUtil { /** * 将Map中的数据转换成key1 = value1 & key2 = value2的形式 不包含签名域signature
* @ param data
* 待拼接的Map数据
* @ return 拼接好后的字符串 */
public static String coverMap2String ( Map < String , String > data ) { } } | TreeMap < String , String > tree = new TreeMap < String , String > ( ) ; Iterator < Entry < String , String > > it = data . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Entry < String , String > en = it . next ( ) ; if ( SDKConstants . param_signature . equals ( en . getKey ( ) . trim ( ) ) ) { continue ;... |
public class appfwconfidfield { /** * Use this API to delete appfwconfidfield resources of given names . */
public static base_responses delete ( nitro_service client , String fieldname [ ] ) throws Exception { } } | base_responses result = null ; if ( fieldname != null && fieldname . length > 0 ) { appfwconfidfield deleteresources [ ] = new appfwconfidfield [ fieldname . length ] ; for ( int i = 0 ; i < fieldname . length ; i ++ ) { deleteresources [ i ] = new appfwconfidfield ( ) ; deleteresources [ i ] . fieldname = fieldname [ ... |
public class BoofConcurrency { /** * Automatically breaks the problem up into blocks based on the number of threads available . It is assumed
* that there is some cost associated with processing a block and the number of blocks is minimized .
* Examples :
* < ul >
* < li > Given a range of 0 to 100 , and minBlo... | final ForkJoinPool pool = BoofConcurrency . pool ; int numThreads = pool . getParallelism ( ) ; int range = endExclusive - start ; if ( range == 0 ) // nothing to do here !
return ; if ( range < 0 ) throw new IllegalArgumentException ( "end must be more than start. " + start + " -> " + endExclusive ) ; int block = sele... |
public class Property_Builder { /** * Copies values from { @ code template } , appending to collections , and skipping empty optionals and
* unset properties .
* @ return this { @ code Builder } object */
public org . inferred . freebuilder . processor . property . Property . Builder mergeFrom ( org . inferred . fr... | // Upcast to access private fields ; otherwise , oddly , we get an access violation .
Property_Builder base = template ; Property_Builder defaults = new org . inferred . freebuilder . processor . property . Property . Builder ( ) ; if ( ! base . _unsetProperties . contains ( Property . TYPE ) && ( defaults . _unsetProp... |
public class ContinuousExportDescription { /** * An object which describes how the data is stored .
* < ul >
* < li >
* < code > databaseName < / code > - the name of the Glue database used to store the schema .
* < / li >
* < / ul >
* @ param schemaStorageConfig
* An object which describes how the data i... | setSchemaStorageConfig ( schemaStorageConfig ) ; return this ; |
public class CodeChunk { /** * Temporary method to ease migration to the CodeChunk DSL .
* < p > Because of the recursive nature of the JS codegen system , it is generally not possible to
* convert one codegen method at a time to use the CodeChunk DSL . However , the business logic
* inside those methods can be m... | RequiresCollector . IntoImmutableSet collector = new RequiresCollector . IntoImmutableSet ( ) ; JsExpr expr = assertExprAndCollectRequires ( collector ) ; ImmutableSet < GoogRequire > requires = collector . get ( ) ; if ( ! requires . isEmpty ( ) ) { throw new IllegalStateException ( "calling assertExpr() would drop re... |
public class Algorithm { /** * Calls the Algorithmia API for a given input .
* Attempts to automatically serialize the input to JSON .
* @ param input algorithm input , will automatically be converted into JSON
* @ return algorithm result ( AlgoSuccess or AlgoFailure )
* @ throws APIException if there is a prob... | if ( input instanceof String ) { return pipeRequest ( ( String ) input , ContentType . Text ) ; } else if ( input instanceof byte [ ] ) { return pipeBinaryRequest ( ( byte [ ] ) input ) ; } else { return pipeRequest ( gson . toJsonTree ( input ) . toString ( ) , ContentType . Json ) ; } |
public class Path { /** * Initializes a path object given the scheme , authority and path string .
* @ param scheme
* the scheme string .
* @ param authority
* the authority string .
* @ param path
* the path string . */
private void initialize ( String scheme , String authority , String path ) { } } | try { this . uri = new URI ( scheme , authority , normalizePath ( path ) , null , null ) . normalize ( ) ; } catch ( URISyntaxException e ) { throw new IllegalArgumentException ( e ) ; } |
public class RestCallbackBuilder { /** * create rest callback implementation .
* @ param pcallbackOnSuccess on success callback
* @ param pcallbackOnFailure on failure callback
* @ param < R > rest result type
* @ return RestCallbackImpl */
public static < R > AsyncCallback < R > build ( final AsyncCallbackOnSu... | return new AsyncCallback < R > ( ) { @ Override public void onFailure ( final Throwable pcaught ) { pcallbackOnFailure . onFailure ( pcaught ) ; } @ Override public void onSuccess ( final R presult ) { pcallbackOnSuccess . onSuccess ( presult ) ; } } ; |
public class MultiChangeBuilder { /** * Inserts the given rich - text content at the given position .
* @ param position The position to insert the text .
* @ param document The rich - text content to insert . */
public MultiChangeBuilder < PS , SEG , S > insert ( int position , StyledDocument < PS , SEG , S > docu... | return replace ( position , position , document ) ; |
public class CookieUtil { /** * US - ASCII characters excluding CTLs , whitespace , DQUOTE , comma , semicolon , and backslash */
private static BitSet validCookieValueOctets ( ) { } } | BitSet bits = new BitSet ( ) ; bits . set ( 0x21 ) ; for ( int i = 0x23 ; i <= 0x2B ; i ++ ) { bits . set ( i ) ; } for ( int i = 0x2D ; i <= 0x3A ; i ++ ) { bits . set ( i ) ; } for ( int i = 0x3C ; i <= 0x5B ; i ++ ) { bits . set ( i ) ; } for ( int i = 0x5D ; i <= 0x7E ; i ++ ) { bits . set ( i ) ; } return bits ; |
public class PrimitiveIntegerArrayJsonDeserializer { /** * { @ inheritDoc } */
@ Override public int [ ] doDeserializeArray ( JsonReader reader , JsonDeserializationContext ctx , JsonDeserializerParameters params ) { } } | FastArrayInteger jsArray = new FastArrayInteger ( ) ; reader . beginArray ( ) ; while ( JsonToken . END_ARRAY != reader . peek ( ) ) { if ( JsonToken . NULL == reader . peek ( ) ) { reader . skipValue ( ) ; jsArray . push ( DEFAULT ) ; } else { jsArray . push ( reader . nextInt ( ) ) ; } } reader . endArray ( ) ; retur... |
public class PdfBoxGraphics2DFontTextDrawerDefaultFonts { /** * Get a PDType1Font . TIMES - variant , which matches the given font
* @ param font
* Font to get the styles from
* @ return a PDFont Times variant which matches the style in the given Font
* object . */
public static PDFont chooseMatchingTimes ( Fon... | if ( ( font . getStyle ( ) & ( Font . ITALIC | Font . BOLD ) ) == ( Font . ITALIC | Font . BOLD ) ) return PDType1Font . TIMES_BOLD_ITALIC ; if ( ( font . getStyle ( ) & Font . ITALIC ) == Font . ITALIC ) return PDType1Font . TIMES_ITALIC ; if ( ( font . getStyle ( ) & Font . BOLD ) == Font . BOLD ) return PDType1Font ... |
public class RemoteAdministrationThread { /** * ( non - Javadoc )
* @ see net . timewalker . ffmq4 . utils . concurrent . SynchronizableThread # run ( ) */
@ Override public void run ( ) { } } | log . info ( "Starting remote administration thread ..." ) ; try { LocalQueue inputQueue = engine . getLocalQueue ( FFMQConstants . ADM_REQUEST_QUEUE ) ; LocalQueue outputQueue = engine . getLocalQueue ( FFMQConstants . ADM_REPLY_QUEUE ) ; conn = new LocalQueueConnection ( engine , null , null ) ; session = conn . crea... |
public class CommercePriceListUserSegmentEntryRelPersistenceImpl { /** * Returns all the commerce price list user segment entry rels where commercePriceListId = & # 63 ; .
* @ param commercePriceListId the commerce price list ID
* @ return the matching commerce price list user segment entry rels */
@ Override publi... | return findByCommercePriceListId ( commercePriceListId , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ; |
public class CommercePriceListAccountRelServiceBaseImpl { /** * Sets the commerce tier price entry remote service .
* @ param commerceTierPriceEntryService the commerce tier price entry remote service */
public void setCommerceTierPriceEntryService ( com . liferay . commerce . price . list . service . CommerceTierPri... | this . commerceTierPriceEntryService = commerceTierPriceEntryService ; |
public class PhpWebAppSshDriver { /** * TODO modify this script using new script functionality */
private int installGit ( ) { } } | int resultOfCommand ; log . info ( "Installing git {}" , new Object [ ] { this } ) ; resultOfCommand = getMachine ( ) . execCommands ( "install Git" , ImmutableList . of ( "sudo apt-get -y install git" ) ) ; if ( resultOfCommand != 0 ) log . warn ( "Installing problem installing result {}" , resultOfCommand ) ; return ... |
public class CommonOps_DSCC { /** * This computes the trace of the matrix : < br >
* < br >
* trace = & sum ; < sub > i = 1 : n < / sub > { a < sub > ii < / sub > } < br >
* where n = min ( numRows , numCols )
* @ param A ( Input ) Matrix . Not modified . */
public static double trace ( DMatrixSparseCSC A ) { }... | double output = 0 ; int o = Math . min ( A . numCols , A . numRows ) ; for ( int col = 0 ; col < o ; col ++ ) { int idx0 = A . col_idx [ col ] ; int idx1 = A . col_idx [ col + 1 ] ; for ( int i = idx0 ; i < idx1 ; i ++ ) { if ( A . nz_rows [ i ] == col ) { output += A . nz_values [ i ] ; break ; } } } return output ; |
public class GetMapConfigurationCommand { /** * Clone a { @ link org . geomajas . configuration . LayerInfo # extraInfo } considering what may be copied to the client .
* @ param extraInfoMap map of extra info
* @ return cloned copy including only records which are not { @ link ServerSideOnlyInfo } */
public Map < ... | Map < String , LayerExtraInfo > res = new HashMap < String , LayerExtraInfo > ( ) ; for ( Map . Entry < String , LayerExtraInfo > entry : extraInfoMap . entrySet ( ) ) { LayerExtraInfo value = entry . getValue ( ) ; if ( ! ( value instanceof ServerSideOnlyInfo ) ) { res . put ( entry . getKey ( ) , value ) ; } } return... |
public class PcTargetHostsUtils { /** * Gets the node list from string line seperate or space seperate .
* @ param listStr
* the list str
* @ param removeDuplicate
* the remove duplicate
* @ return the node list from string line seperate or space seperate */
public static List < String > getNodeListFromString... | List < String > nodes = new ArrayList < String > ( ) ; for ( String token : listStr . split ( "[\\r?\\n| +]+" ) ) { // 20131025 : fix if fqdn has space in the end .
if ( token != null && ! token . trim ( ) . isEmpty ( ) ) { nodes . add ( token . trim ( ) ) ; } } if ( removeDuplicate ) { removeDuplicateNodeList ( nodes ... |
public class HungarianAlgorithm { /** * Compute an initial feasible solution by assigning zero labels to the
* workers and by assigning to each job a label equal to the minimum cost
* among its incident edges . */
protected void computeInitialFeasibleSolution ( ) { } } | for ( int j = 0 ; j < dim ; j ++ ) { labelByJob [ j ] = Double . POSITIVE_INFINITY ; } for ( int w = 0 ; w < dim ; w ++ ) { for ( int j = 0 ; j < dim ; j ++ ) { if ( costMatrix [ w ] [ j ] < labelByJob [ j ] ) { labelByJob [ j ] = costMatrix [ w ] [ j ] ; } } } |
public class QueryContext { /** * Matches an index for the given pattern and match hint .
* @ param pattern the pattern to match an index for . May be either an
* attribute name or an exact index name .
* @ param matchHint the match hint .
* @ return the matched index or { @ code null } if nothing matched .
*... | return indexes . matchIndex ( pattern , matchHint ) ; |
public class DefaultBitmapLruCache { /** * Measure item size in kilobytes rather than units which is more practical
* for a bitmap cache */
@ Override protected int sizeOf ( String key , Bitmap value ) { } } | final int bitmapSize = BitmapLruPool . getBitmapSize ( value ) ; return bitmapSize == 0 ? 1 : bitmapSize ; |
public class VisibleBufferedInputStream { /** * { @ inheritDoc } */
public int read ( byte [ ] to , int off , int len ) throws IOException { } } | if ( ( off | len | ( off + len ) | ( to . length - ( off + len ) ) ) < 0 ) { throw new IndexOutOfBoundsException ( ) ; } else if ( len == 0 ) { return 0 ; } // if the read would go to wrapped stream , but would result
// in a small read then try read to the buffer instead
int avail = endIndex - index ; if ( len - avail... |
public class InternalCallContextFactory { /** * Create an internal call callcontext from a call callcontext , and retrieving the account _ record _ id from another table
* @ param objectId the id of the row in the table pointed by object type where to look for account _ record _ id
* @ param objectType the object t... | // The callcontext may come from a user API - for security , check we ' re not doing cross - tenants operations
// final Long tenantRecordIdFromObject = retrieveTenantRecordIdFromObject ( objectId , objectType ) ;
// final Long tenantRecordIdFromContext = getTenantRecordIdSafe ( callcontext ) ;
// Preconditions . check... |
public class FrameworkManager { /** * Create and launch the OSGi framework
* @ param config
* BootstrapConfig object encapsulating active initial framework
* properties
* @ param logProvider
* The initialized / active log provider that must be included in
* framework management activities ( start / stop / .... | if ( config == null ) throw new IllegalArgumentException ( "bootstrap config must not be null" ) ; boolean isClient = config . getProcessType ( ) . equals ( BootstrapConstants . LOC_PROCESS_TYPE_CLIENT ) ; try { String nTime = config . get ( BootstrapConstants . LAUNCH_TIME ) ; startTime = nTime == null ? System . nano... |
public class SocketFactory { /** * On - demand creation of an SSL server socket factory for an ssl alias
* @ return The SSLServerSocketFactory this connection should be using to create
* secure connections .
* @ throws java . io . IOException if we can ' t get a server socket factory */
private SSLServerSocketFac... | // first use ?
SSLServerSocketFactory serverSocketFactory = serverSocketFactoryMap . get ( id ) ; if ( serverSocketFactory == null ) { // the SSLConfig is optional , so if it ' s not there , use the default SSLSocketFactory .
if ( id == null ) { serverSocketFactory = ( SSLServerSocketFactory ) SSLServerSocketFactory . ... |
public class SemanticHeadFinder { /** * Determine which daughter of the current parse tree is the
* head . It assumes that the daughters already have had their
* heads determined . Uses special rule for VP heads
* @ param t The parse tree to examine the daughters of .
* This is assumed to never be a leaf
* @ ... | String motherCat = tlp . basicCategory ( t . label ( ) . value ( ) ) ; if ( DEBUG ) { System . err . println ( "At " + motherCat + ", my parent is " + parent ) ; } // do VPs with auxiliary as special case
if ( ( motherCat . equals ( "VP" ) || motherCat . equals ( "SQ" ) || motherCat . equals ( "SINV" ) ) ) { Tree [ ] k... |
public class DescribeDirectoriesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeDirectoriesRequest describeDirectoriesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeDirectoriesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeDirectoriesRequest . getDirectoryIds ( ) , DIRECTORYIDS_BINDING ) ; protocolMarshaller . marshall ( describeDirectoriesRequest . getNextToken ( ) , NE... |
public class Initialization { /** * Find all the hadoop dependencies that should be loaded by druid
* @ param hadoopDependencyCoordinates e . g . [ " org . apache . hadoop : hadoop - client : 2.3.0 " ]
* @ param extensionsConfig ExtensionsConfig configured by druid . extensions . xxx
* @ return an array of hadoop... | final File rootHadoopDependenciesDir = new File ( extensionsConfig . getHadoopDependenciesDir ( ) ) ; if ( rootHadoopDependenciesDir . exists ( ) && ! rootHadoopDependenciesDir . isDirectory ( ) ) { throw new ISE ( "Root Hadoop dependencies directory [%s] is not a directory!?" , rootHadoopDependenciesDir ) ; } final Fi... |
public class SdkUtils { /** * Utility method to write given inputStream to given outputStream and update the messageDigest while transferring the bytes
* @ param inputStream the inputStream to copy from .
* @ param outputStream the outputStream to write to .
* @ param messageDigest messageDigest to update with th... | // Read the rest of the stream and write to the destination OutputStream .
final byte [ ] buffer = new byte [ BUFFER_SIZE ] ; int bufferLength = 0 ; Exception exception = null ; try { while ( ( bufferLength = inputStream . read ( buffer ) ) > 0 ) { if ( Thread . currentThread ( ) . isInterrupted ( ) ) { InterruptedExce... |
public class Codec { /** * Initializes the { @ code Codec } with a dictionary that may contain specific
* codec parameters .
* @ param avDictionary dictionary with codec parameters .
* @ return zero on success , a negative value on error .
* @ throws JavaAVException if the codec could not be opened . */
int ope... | AVCodecContext avContext = avcodec_alloc_context3 ( avCodec ) ; return open ( avDictionary , avContext ) ; |
public class SimpleElement { /** * @ param tagName the tag name
* @ param value the value
* @ return the current { @ link Builder }
* @ deprecated will be removed in next version . Use { @ link ExtensionElements # simpleElement ( String , String ) } instead . */
@ Deprecated public static Builder builder ( String... | return ExtensionElements . simpleElement ( tagName , value ) ; |
public class NodeReferenceFactory { /** * Returns a valid { @ link Noderef } based on the specified arguments or
* < code > null < / null > if that ' s not possible . < br / >
* < strong > This method returns < code > null < / code > if the pathref cannot be
* resolved to a node on the specified layout . < / stro... | Validate . notNull ( layoutOwner , "Argument 'layoutOwner' cannot be null." ) ; Validate . notNull ( pathref , "Argument 'pathref' cannot be null." ) ; if ( log . isTraceEnabled ( ) ) { StringBuilder msg = new StringBuilder ( ) ; msg . append ( "getDlmNoderef: [layoutOwner='" ) . append ( layoutOwner ) . append ( "', p... |
public class RxLifecycleAndroid { /** * Binds the given source to a Fragment lifecycle .
* This helper automatically determines ( based on the lifecycle sequence itself ) when the source
* should stop emitting items . In the case that the lifecycle sequence is in the
* creation phase ( CREATE , START , etc ) it w... | return bind ( lifecycle , FRAGMENT_LIFECYCLE ) ; |
public class TableUtils { /** * Creates a new { @ link ImmutableTable } from the provided { @ link com . google . common . collect . Table . Cell } s .
* The iteration order of the resulting table will respect the iteration order of the input cells .
* Null keys and values are forbidden . */
public static < R , C ,... | final ImmutableTable . Builder < R , C , V > ret = ImmutableTable . builder ( ) ; for ( final Table . Cell < R , C , V > cell : cells ) { ret . put ( cell . getRowKey ( ) , cell . getColumnKey ( ) , cell . getValue ( ) ) ; } return ret . build ( ) ; |
public class FileLog { /** * Write a pre - formated record . This is used for when we have
* signed and / or encrypted audit records .
* @ param record */
public synchronized void writeRecord ( byte [ ] record , String header ) { } } | long length = record . length + nlen ; PrintStream ps = getPrintStream ( length , header ) ; if ( isWindows ) ps . write ( record , 0 , ( int ) length - 2 ) ; else ps . write ( record , 0 , ( int ) length - 1 ) ; ps . println ( ) ; |
public class Interface { /** * Use this API to clear Interface resources . */
public static base_responses clear ( nitro_service client , Interface resources [ ] ) throws Exception { } } | base_responses result = null ; if ( resources != null && resources . length > 0 ) { Interface clearresources [ ] = new Interface [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { clearresources [ i ] = new Interface ( ) ; clearresources [ i ] . id = resources [ i ] . id ; } result = perform_o... |
public class ConfigSiftOrientation { /** * Creates a configuration similar to how it was originally described in the paper */
public static ConfigSiftOrientation createPaper ( ) { } } | ConfigSiftOrientation config = new ConfigSiftOrientation ( ) ; config . histogramSize = 36 ; config . sigmaEnlarge = 1.5 ; return config ; |
public class JarProbeOption { /** * Adds the given resources from the current class path to the JAR .
* @ param resourcePaths
* list of resource paths , relative to the class path root
* @ return { @ code this } for fluent syntax */
public JarProbeOption resources ( String ... resourcePaths ) { } } | for ( String resource : resourcePaths ) { resources . add ( resource ) ; } return this ; |
public class ResolvableType { /** * Return a { @ link ResolvableType } for the specified { @ link Class } , doing assignability checks against the raw class only
* ( analogous to { @ link Class # isAssignableFrom } , which this serves as a wrapper for . For example :
* { @ code ResolvableType . forClass ( MyArrayLi... | return new ResolvableType ( sourceClass ) { @ Override public boolean isAssignableFrom ( Class < ? > other ) { return LettuceClassUtils . isAssignable ( getRawClass ( ) , other ) ; } } ; |
public class Master { /** * Returns an iterator over the generators specified in the master file ; that
* is , the parsed contents of $ GENERATE statements .
* @ see Generator */
public Iterator generators ( ) { } } | if ( generators != null ) return Collections . unmodifiableList ( generators ) . iterator ( ) ; else return Collections . EMPTY_LIST . iterator ( ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcConnectionPointEccentricity ( ) { } } | if ( ifcConnectionPointEccentricityEClass == null ) { ifcConnectionPointEccentricityEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 103 ) ; } return ifcConnectionPointEccentricityEClass ; |
public class Dot { /** * Setting up layout dimensional parameters for the view */
private void setLayoutParameters ( ) { } } | final int dotDiameter = styledAttributes . getDimensionPixelOffset ( R . styleable . PinLock_statusDotDiameter , 50 ) ; final int margin = styledAttributes . getDimensionPixelOffset ( R . styleable . PinLock_statusDotSpacing , 30 ) ; final LinearLayout . LayoutParams params = new LinearLayout . LayoutParams ( dotDiamet... |
public class MoreLikeThis { /** * Return a query that will return docs like the passed URL .
* @ return a query that will return docs like the passed URL . */
public Query like ( URL u ) throws IOException { } } | return like ( new InputStreamReader ( u . openConnection ( ) . getInputStream ( ) ) ) ; |
public class DruidRunner { /** * Starts the Druid instance and returns the server it is running on
* @ return server hosting Druid
* @ throws Exception */
public Server run ( ) throws Exception { } } | if ( server == null ) { server = new Server ( port ) ; String basePath = "/druid" ; buildSwagger ( basePath ) ; HandlerList handlers = new HandlerList ( ) ; handlers . addHandler ( buildContext ( basePath ) ) ; server . setHandler ( handlers ) ; server . start ( ) ; } else { throw new IllegalStateException ( "Server al... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */
@ XmlElementDecl ( namespace = "http://www.ibm.com/websphere/wim" , name = "displayName" ) public JAXBElement < String > createDisplayName ( String value ) { } } | return new JAXBElement < String > ( _DisplayName_QNAME , String . class , null , value ) ; |
public class DefaultHudsonClient { /** * does not save the auth user info and we need to add it back . */
public static String rebuildJobUrl ( String build , String server ) throws URISyntaxException , MalformedURLException , UnsupportedEncodingException { } } | URL instanceUrl = new URL ( server ) ; String userInfo = instanceUrl . getUserInfo ( ) ; String instanceProtocol = instanceUrl . getProtocol ( ) ; // decode to handle spaces in the job name .
URL buildUrl = new URL ( URLDecoder . decode ( build , "UTF-8" ) ) ; String buildPath = buildUrl . getPath ( ) ; String host = b... |
public class VasSubscriberServiceProxyFactory { /** * Creates a vas subscriber web service proxy based on the delivery address .
* @ param deliveryAddress delivery address
* @ return subscriber web service proxy */
public VasSubscriberService createVasSubscriberService ( String deliveryAddress ) { } } | JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean ( ) ; factory . setServiceClass ( VasSubscriberService . class ) ; factory . setAddress ( deliveryAddress ) ; SoapBindingConfiguration conf = new SoapBindingConfiguration ( ) ; conf . setVersion ( Soap12 . getInstance ( ) ) ; factory . setBindingConfig ( conf ) ... |
public class DeleteIdentitiesRequest { /** * A list of 1-60 identities that you want to delete .
* @ param identityIdsToDelete
* A list of 1-60 identities that you want to delete . */
public void setIdentityIdsToDelete ( java . util . Collection < String > identityIdsToDelete ) { } } | if ( identityIdsToDelete == null ) { this . identityIdsToDelete = null ; return ; } this . identityIdsToDelete = new java . util . ArrayList < String > ( identityIdsToDelete ) ; |
public class SibRaManagedConnection { /** * Destroys this managed connection . Invalidates any current connection
* handles and closes the core SPI connection . */
public void destroy ( ) throws ResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , "destroy" ) ; } // In the event of an error the connection manager may call destroy
// without calling cleanup . We need to do the cleanup logic without
// calling cleanup as we could throw an exception from c... |
public class CmsLoginManager { /** * Checks whether the given user has been inactive for longer than the configured limit . < p >
* If no max inactivity time is configured , always returns false .
* @ param user the user to check
* @ return true if the user has been inactive for longer than the configured limit *... | if ( m_maxInactive == null ) { return false ; } try { long maxInactive = CmsStringUtil . parseDuration ( m_maxInactive , Long . MAX_VALUE ) ; return ( System . currentTimeMillis ( ) - user . getLastlogin ( ) ) > maxInactive ; } catch ( Exception e ) { LOG . warn ( e . getLocalizedMessage ( ) , e ) ; return false ; } |
public class JsUtils { /** * Returns a QueryString representation of a JavascriptObject .
* TODO : jquery implementation accepts a second parameter ( traditional ) */
public static String param ( JavaScriptObject js ) { } } | Properties prop = js . cast ( ) ; String ret = "" ; for ( String k : prop . keys ( ) ) { ret += ret . isEmpty ( ) ? "" : "&" ; JsCache o = prop . getArray ( k ) . cast ( ) ; if ( o != null ) { for ( int i = 0 , l = o . length ( ) ; i < l ; i ++ ) { ret += i > 0 ? "&" : "" ; Properties p = o . < JsCache > cast ( ) . get... |
public class Span { /** * Returns a Span that covers all rows beginning with a prefix String parameters will be encoded
* as UTF - 8 */
public static Span prefix ( CharSequence rowPrefix ) { } } | Objects . requireNonNull ( rowPrefix ) ; return prefix ( Bytes . of ( rowPrefix ) ) ; |
public class IdentifierType { /** * Sets the value of the provided property to the provided value .
* @ param propName
* allowed object is { @ link String }
* @ param value
* allowed object is { @ link Object } */
public void set ( String propName , Object value ) { } } | if ( propName . equals ( "uniqueId" ) ) { setUniqueId ( ( ( String ) value ) ) ; } if ( propName . equals ( "uniqueName" ) ) { setUniqueName ( ( ( String ) value ) ) ; } if ( propName . equals ( "externalId" ) ) { setExternalId ( ( ( String ) value ) ) ; } if ( propName . equals ( "externalName" ) ) { setExternalName (... |
public class CacheHeader { /** * Set headers to disallow caching in browser , proxy servers and dispatcher for the current response .
* @ param response Current response */
public static void setNonCachingHeaders ( @ NotNull HttpServletResponse response ) { } } | response . setHeader ( HEADER_PRAGMA , "no-cache" ) ; response . setHeader ( HEADER_CACHE_CONTROL , "no-cache" ) ; response . setHeader ( HEADER_EXPIRES , "0" ) ; response . setHeader ( HEADER_DISPATCHER , "no-cache" ) ; |
public class Matrices { /** * Returns a copied version of a given matrix . The returned matrix will
* have the same dimensionality , values , and sparsity , but it may not have
* the same exact sub - type .
* @ param matrix the matrix to be copied
* @ throws IllegalArgumentException when the dimensionality of m... | Matrix copiedMatrix = null ; if ( matrix instanceof SparseMatrix ) copiedMatrix = Matrices . create ( matrix . rows ( ) , matrix . columns ( ) , Type . SPARSE_IN_MEMORY ) ; else copiedMatrix = Matrices . create ( matrix . rows ( ) , matrix . columns ( ) , Type . DENSE_IN_MEMORY ) ; return copyTo ( matrix , copiedMatrix... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.