signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class RestSignUtil { /** * 生成API传参签名
* @ param param
* @ param secretkey
* @ return */
public static < T > String generateSign ( RestRequestParam < T > param , String secretkey ) { } } | TreeMap < String , String > paramsMap = new TreeMap < String , String > ( ) ; paramsMap . put ( "accesskey" , param . getCommon ( ) . getAccesskey ( ) ) ; paramsMap . put ( "timestamp" , Long . toString ( param . getCommon ( ) . getTimestamp ( ) ) ) ; // for ( Map . Entry < String , String > entry : param . getData ( )... |
public class X509Factory { /** * Parses the data in the given input stream as a sequence of DER encoded
* X . 509 CRLs ( in binary or base 64 encoded format ) OR as a single PKCS # 7
* encoded blob ( in binary or base 64 encoded format ) . */
private Collection < ? extends java . security . cert . CRL > parseX509or... | Collection < X509CRLImpl > coll = new ArrayList < > ( ) ; byte [ ] data = readOneBlock ( is ) ; if ( data == null ) { return new ArrayList < > ( 0 ) ; } try { PKCS7 pkcs7 = new PKCS7 ( data ) ; X509CRL [ ] crls = pkcs7 . getCRLs ( ) ; // CRLs are optional in PKCS # 7
if ( crls != null ) { return Arrays . asList ( crls ... |
public class FileSystemAdminShellUtils { /** * Checks if the master client service is available .
* Throws an exception if fails to determine that the master client service is running .
* @ param alluxioConf Alluxio configuration */
public static void checkMasterClientService ( AlluxioConfiguration alluxioConf ) th... | try ( CloseableResource < FileSystemMasterClient > client = FileSystemContext . create ( ClientContext . create ( alluxioConf ) ) . acquireMasterClientResource ( ) ) { InetSocketAddress address = client . get ( ) . getAddress ( ) ; List < InetSocketAddress > addresses = Arrays . asList ( address ) ; MasterInquireClient... |
public class InetAddresses { /** * Returns the Teredo information embedded in a Teredo address .
* @ param ip { @ link Inet6Address } to be examined for embedded Teredo information
* @ return extracted { @ code TeredoInfo }
* @ throws IllegalArgumentException if the argument is not a valid IPv6 Teredo address */
... | Preconditions . checkArgument ( isTeredoAddress ( ip ) , "Address '%s' is not a Teredo address." , toAddrString ( ip ) ) ; byte [ ] bytes = ip . getAddress ( ) ; Inet4Address server = getInet4Address ( Arrays . copyOfRange ( bytes , 4 , 8 ) ) ; int flags = ByteStreams . newDataInput ( bytes , 8 ) . readShort ( ) & 0xff... |
public class CmsCopyMoveDialog { /** * Preselects the target folder . < p >
* @ param structureId the target structure id
* @ throws CmsException in case the target can not be read or is not a folder */
public void setTargetFolder ( CmsUUID structureId ) throws CmsException { } } | CmsObject cms = A_CmsUI . getCmsObject ( ) ; CmsResource res = cms . readResource ( structureId ) ; setTargetForlder ( res ) ; |
public class RandomUtil { /** * 获得指定范围内的随机数
* @ param min 最小数 ( 包含 )
* @ param max 最大数 ( 不包含 )
* @ param scale 保留小数位数
* @ param roundingMode 保留小数的模式 { @ link RoundingMode }
* @ return 随机数
* @ since 4.0.8 */
public static double randomDouble ( double min , double max , int scale , RoundingMode roundingMode )... | return NumberUtil . round ( randomDouble ( min , max ) , scale , roundingMode ) . doubleValue ( ) ; |
public class Nfs3 { /** * / * ( non - Javadoc )
* @ see com . emc . ecs . nfsclient . nfs . Nfs # wrapped _ getPathconf ( com . emc . ecs . nfsclient . nfs . NfsPathconfRequest ) */
public Nfs3PathconfResponse wrapped_getPathconf ( NfsPathconfRequest request ) throws IOException { } } | NfsResponseHandler < Nfs3PathconfResponse > responseHandler = new NfsResponseHandler < Nfs3PathconfResponse > ( ) { /* ( non - Javadoc )
* @ see com . emc . ecs . nfsclient . rpc . RpcResponseHandler # makeNewResponse ( ) */
protected Nfs3PathconfResponse makeNewResponse ( ) { return new Nfs3PathconfResponse ( ) ; } ... |
public class UnregisterWebAppVisitorWC { /** * Unregisters listeners from web container .
* @ throws NullArgumentException if listener is null
* @ see WebAppVisitor # visit ( WebAppListener ) */
public void visit ( final WebAppListener webAppListener ) { } } | NullArgumentException . validateNotNull ( webAppListener , "Web app listener" ) ; final EventListener listener = webAppListener . getListener ( ) ; if ( listener != null ) { // CHECKSTYLE : OFF
try { webContainer . unregisterEventListener ( listener ) ; } catch ( Exception ignore ) { LOG . warn ( "Unregistration except... |
public class NumberStyleHelper { /** * Append the attributes of the number
* @ param util an util
* @ param appendable the destination
* @ throws IOException if an I / O error occurs */
public void appendNumberAttribute ( final XMLUtil util , final Appendable appendable ) throws IOException { } } | this . appendMinIntegerDigitsAttribute ( util , appendable ) ; this . appendGroupingAttribute ( util , appendable ) ; |
public class PrepareCoordinator { /** * Starts a transaction .
* @ return { @ code true } if the transaction can be started , { @ code false } otherwise . */
public boolean startTransaction ( ) { } } | EmbeddedTransaction tx = new EmbeddedTransaction ( EmbeddedTransactionManager . getInstance ( ) ) ; tx . setXid ( xid ) ; LocalTransaction localTransaction = transactionTable . getOrCreateLocalTransaction ( tx , false , this :: newGlobalTransaction ) ; if ( createGlobalState ( localTransaction . getGlobalTransaction ( ... |
public class Alterable { /** * Set maximum reachable value . The maximum value can not be lower than 0 . Current value clamp between { @ value # MIN }
* and max if over max set .
* @ param max The maximum reachable value . */
public void setMax ( int max ) { } } | this . max = max ; if ( this . max < Alterable . MIN ) { this . max = Alterable . MIN ; } set ( cur ) ; |
public class HessianFromGradient { /** * Computes the hessian given an image ' s gradient using a three derivative operator .
* @ param inputDerivX Already computed image x - derivative .
* @ param inputDerivY Already computed image y - derivative .
* @ param derivXX Output second XX partial derivative .
* @ pa... | InputSanityCheck . reshapeOneIn ( inputDerivX , inputDerivY , derivXX , derivYY , derivXY ) ; GradientThree . process ( inputDerivX , derivXX , derivXY , border ) ; if ( border != null ) ConvolveImage . vertical ( GradientThree . kernelDeriv_F32 , inputDerivY , derivYY , new ImageBorder1D_F32 ( BorderIndex1D_Extend . c... |
public class TzdbZoneRulesCompiler { /** * Reads a set of TZDB files and builds a single combined data file .
* @ param args the arguments */
public static void main ( String [ ] args ) { } } | if ( args . length < 2 ) { outputHelp ( ) ; return ; } // parse args
String version = null ; File baseSrcDir = null ; File dstDir = null ; boolean unpacked = false ; boolean verbose = false ; // parse options
int i ; for ( i = 0 ; i < args . length ; i ++ ) { String arg = args [ i ] ; if ( arg . startsWith ( "-" ) == f... |
public class MESubscription { /** * Updates the ControllableProxySubscription .
* We go through a full blown MatchSpace add and remove operation
* to ensure that MatchSpace caches get re - synched .
* @ param transaction the { @ link Transaction } under which the
* event has occurred */
public void eventPostCom... | super . eventPostCommitAdd ( transaction ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "eventPostCommitUpdate" , transaction ) ; // Remove the current CPS from the MatchSpace
if ( _proxyHandler != null ) { _destination . getSubscriptionIndex ( ) . remove ( _controll... |
public class Choice8 { /** * { @ inheritDoc }
* @ param lazyAppFn */
@ Override public < I > Lazy < Choice8 < A , B , C , D , E , F , G , I > > lazyZip ( Lazy < ? extends Applicative < Function < ? super H , ? extends I > , Choice8 < A , B , C , D , E , F , G , ? > > > lazyAppFn ) { } } | return match ( a -> lazy ( a ( a ) ) , b -> lazy ( b ( b ) ) , c -> lazy ( c ( c ) ) , d -> lazy ( d ( d ) ) , e -> lazy ( e ( e ) ) , f -> lazy ( f ( f ) ) , g -> lazy ( g ( g ) ) , h -> lazyAppFn . fmap ( choiceF -> choiceF . < I > fmap ( f -> f . apply ( h ) ) . coerce ( ) ) ) ; |
public class JsonParser { /** * 获取JsonObject
* @ param key 例如 : country
* @ return { @ link JSONObject } */
public JSONObject getObjectUseEval ( String key ) { } } | Object object = eval ( key ) ; return Checker . isNull ( object ) ? null : ( JSONObject ) object ; |
public class CmsObject { /** * Returns the newest URL names for the given structure id for each locale . < p >
* @ param id the structure id
* @ return the list of URL names for each locale
* @ throws CmsException if something goes wrong */
public List < String > getUrlNamesForAllLocales ( CmsUUID id ) throws Cms... | return m_securityManager . readUrlNamesForAllLocales ( m_context , id ) ; |
public class YamlReader { /** * see http : / / yaml . org / type / merge . html */
@ SuppressWarnings ( "unchecked" ) private void mergeMap ( Map < String , Object > dest , Object source ) throws YamlReaderException { } } | if ( source instanceof Collection ) { for ( Object item : ( ( Collection < Object > ) source ) ) mergeMap ( dest , item ) ; } else if ( source instanceof Map ) { Map < String , Object > map = ( Map < String , Object > ) source ; for ( Map . Entry < String , Object > entry : map . entrySet ( ) ) { if ( ! dest . contains... |
public class TransformerColl { /** * define the transform process
* @ param method a function takes in each entry from the map
* and returns it ' s transformed state .
* @ return collection with objects after the transform */
public Coll via ( RFunc2 < R , K , V > method ) { } } | return via ( Style . $ ( method ) ) ; |
public class GoogleChartImageGenerator { /** * Generates Google bar chart URL for the provided samples .
* @ param title chart title
* @ param unit unit requested for displaying results
* @ param showMaxMin true if additional datasets for max and min values should be shown
* @ param samples stopwatch samples
... | return new GoogleChartImageGenerator ( samples , title , unit , showMaxMin ) . process ( ) ; |
public class KearnsVaziraniDFA { /** * private void updateTransitions ( TLongList transList , DTNode < I , Boolean , StateInfo < I > > oldDtTarget ) { */
private void updateTransitions ( List < Long > transList , AbstractWordBasedDTNode < I , Boolean , StateInfo < I , Boolean > > oldDtTarget ) { } } | // TODO : replace with primitive specialization
int numTrans = transList . size ( ) ; final List < Word < I > > transAs = new ArrayList < > ( numTrans ) ; for ( int i = 0 ; i < numTrans ; i ++ ) { long encodedTrans = transList . get ( i ) ; int sourceState = ( int ) ( encodedTrans >> StateInfo . INTEGER_WORD_WIDTH ) ; ... |
public class DbxClientV1 { /** * A more generic version of { @ link # getDelta } . You provide a < em > collector < / em > ,
* which lets you process the delta entries as they arrive over the network . */
public < C > DbxDeltaC < C > getDeltaC ( Collector < DbxDeltaC . Entry < DbxEntry > , C > collector , /* @ Nullab... | return _getDeltaC ( collector , cursor , null , includeMediaInfo ) ; |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getIfcDocumentConfidentialityEnum ( ) { } } | if ( ifcDocumentConfidentialityEnumEEnum == null ) { ifcDocumentConfidentialityEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 813 ) ; } return ifcDocumentConfidentialityEnumEEnum ; |
public class ApiOvhService { /** * Suspend the service . The service won ' t be accessible , but you will still be charged for it
* REST : POST / service / { serviceId } / suspend
* @ param serviceId [ required ] The internal ID of your service
* API beta */
public void serviceId_suspend_POST ( Long serviceId ) t... | String qPath = "/service/{serviceId}/suspend" ; StringBuilder sb = path ( qPath , serviceId ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; |
public class CensoredDescriptives { /** * Calculates median .
* @ param survivalFunction
* @ return */
public static double median ( AssociativeArray2D survivalFunction ) { } } | Double ApointTi = null ; Double BpointTi = null ; int n = survivalFunction . size ( ) ; if ( n == 0 ) { throw new IllegalArgumentException ( "The provided collection can't be empty." ) ; } for ( Map . Entry < Object , AssociativeArray > entry : survivalFunction . entrySet ( ) ) { Object ti = entry . getKey ( ) ; Associ... |
public class AbstractAlipay { /** * Mobile SDK join the fields with quote , which is not documented at all .
* @ param p
* @ return */
protected String signRSAWithQuote ( final List < StringPair > p ) { } } | String param = join ( p , false , true ) ; String sign = rsaSign ( param ) ; return sign ; |
public class AnimaQuery { /** * generate " in " statement , simultaneous setting value
* @ param column column name
* @ param args in param values
* @ param < S >
* @ return AnimaQuery */
public < S > AnimaQuery < T > in ( String column , List < S > args ) { } } | return this . in ( column , args . toArray ( ) ) ; |
public class LocalTIDTable { /** * Remove the given local tid from the map .
* This method should be called once a
* transaction has completed .
* @ param localTID The local TID to remove from the table */
public static void removeLocalTID ( int localTID ) { } } | if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeLocalTID" , localTID ) ; localTIDMap . remove ( localTID ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "removeLocalTID" ) ; |
public class DenseMatrix { /** * Creates a { @ link DenseMatrix } of the given 1D { @ code array } w / o
* copying the underlying array . */
public static DenseMatrix from1DArray ( int rows , int columns , double [ ] array ) { } } | return Basic1DMatrix . from1DArray ( rows , columns , array ) ; |
public class ScalableBloomFilter { /** * Adds the given element to the set managed by this { @ link BloomFilter } .
* @ param element { @ link Object element } to add to this { @ link BloomFilter } .
* @ see # accept ( Object ) */
@ Override @ NullSafe public synchronized void add ( T element ) { } } | Optional . ofNullable ( element ) . ifPresent ( it -> { int hashCode = it . hashCode ( ) ; int index = ( hashCode % getScale ( ) ) ; BloomFilter < T > bloomFilter = resolveBloomFilter ( index ) ; bloomFilter . add ( it ) ; } ) ; |
public class W3CDateFormat { /** * This is what you override when you extend DateFormat ; use { @ link DateFormat # format ( Date ) } instead */
@ Override public StringBuffer format ( Date date , StringBuffer toAppendTo , FieldPosition pos ) { } } | boolean includeTimeZone = pattern . includeTimeZone ; if ( pattern == Pattern . AUTO ) { includeTimeZone = autoFormat ( date ) ; } super . format ( date , toAppendTo , pos ) ; if ( includeTimeZone ) convertRfc822TimeZoneToW3c ( toAppendTo ) ; return toAppendTo ; |
public class PostgreSQLLiaison { /** * from DatabaseLiaison */
public void deleteGenerator ( Connection conn , String table , String column ) throws SQLException { } } | executeQuery ( conn , "drop sequence if exists \"" + table + "_" + column + "_seq\"" ) ; |
public class AbstractHistogram { /** * Get the value at a given percentile .
* When the given percentile is & gt ; 0.0 , the value returned is the value that the given
* percentage of the overall recorded value entries in the histogram are either smaller than
* or equivalent to . When the given percentile is 0.0 ... | final double requestedPercentile = Math . min ( percentile , 100.0 ) ; // Truncate down to 100%
long countAtPercentile = ( long ) ( ( ( requestedPercentile / 100.0 ) * getTotalCount ( ) ) + 0.5 ) ; // round to nearest
countAtPercentile = Math . max ( countAtPercentile , 1 ) ; // Make sure we at least reach the first re... |
public class ServiceImpl { /** * { @ inheritDoc } */
public Vector < Object > execute ( Vector < Object > runnerParams , Vector < Object > sutParams , Vector < Object > specificationParams , boolean implemented , String sections , String locale ) { } } | Runner runner = XmlRpcDataMarshaller . toRunner ( runnerParams ) ; // To prevent call forwarding
runner . setServerName ( null ) ; runner . setServerPort ( null ) ; SystemUnderTest systemUnderTest = XmlRpcDataMarshaller . toSystemUnderTest ( sutParams ) ; Specification specification = XmlRpcDataMarshaller . toSpecifica... |
public class PDIndexerManager { /** * Queue a single work item of any type . If the item is already in the queue ,
* it is ignored .
* @ param aWorkItem
* Work item to be queued . May not be < code > null < / code > .
* @ return { @ link EChange # CHANGED } if it was queued */
@ Nonnull private EChange _queueUn... | ValueEnforcer . notNull ( aWorkItem , "WorkItem" ) ; // Check for duplicate
m_aRWLock . writeLock ( ) . lock ( ) ; try { if ( ! m_aUniqueItems . add ( aWorkItem ) ) { LOGGER . info ( "Ignoring work item " + aWorkItem . getLogText ( ) + " because it is already in the queue/re-index list!" ) ; return EChange . UNCHANGED ... |
public class ScriptController { /** * Returns all scripts
* @ param model
* @ param type - optional to specify type of script to return
* @ return
* @ throws Exception */
@ RequestMapping ( value = "/api/scripts" , method = RequestMethod . GET ) public @ ResponseBody HashMap < String , Object > getScripts ( Mod... | Script [ ] scripts = ScriptService . getInstance ( ) . getScripts ( type ) ; return Utils . getJQGridJSON ( scripts , "scripts" ) ; |
public class AstNode { /** * Returns the string name for this operator .
* @ param op the token type , e . g . { @ link Token # ADD } or { @ link Token # TYPEOF }
* @ return the source operator string , such as " + " or " typeof " */
public static String operatorToString ( int op ) { } } | String result = operatorNames . get ( op ) ; if ( result == null ) throw new IllegalArgumentException ( "Invalid operator: " + op ) ; return result ; |
public class ContextHandlerBuilder { /** * < p > Adds a request handler relative to the context of this builder . < / p >
* < p > Note that handlers are executed in the order added to the builder , but all async
* handlers are executed before synchronous handlers . < / p >
* @ param handler The handler to add .
... | if ( handler != null ) { handler = getContextualHandlerForResourceHandler ( handler ) ; handlers . add ( handler ) ; } return this ; |
public class PcapAddr { /** * Getting interface address .
* @ return returns interface address . */
public SockAddr getAddr ( ) { } } | SockAddr sockAddr = null ; if ( this . addr != null ) { sockAddr = new SockAddr ( this . addr . getSaFamily ( ) . getValue ( ) , this . addr . getData ( ) ) ; } return sockAddr ; |
public class CexIOAdapters { /** * From CEX API < a href = " https : / / cex . io / rest - api # / definitions / OrderStatus " > documentation < / a > < br >
* Order status can assume follow values ( ' d ' = done , fully executed OR ' c ' = canceled , not
* executed OR ' cd ' = cancel - done , partially executed OR... | if ( "c" . equalsIgnoreCase ( cexIOOrder . status ) ) return Order . OrderStatus . CANCELED ; if ( "d" . equalsIgnoreCase ( cexIOOrder . status ) ) return Order . OrderStatus . FILLED ; if ( "a" . equalsIgnoreCase ( cexIOOrder . status ) ) { try { BigDecimal remains = new BigDecimal ( cexIOOrder . remains ) ; BigDecima... |
public class Launcher { /** * Adds an environment variable to the process being created .
* @ param key they key for the variable
* @ param value the value for the variable
* @ return the launcher */
public Launcher addEnvironmentVariable ( final String key , final String value ) { } } | env . put ( key , value ) ; return this ; |
public class TerminalLineSettings { /** * Get the value of a stty property , including the management of a cache .
* @ param name the stty property .
* @ return the stty property value . */
public int getProperty ( String name ) { } } | checkNotNull ( name ) ; try { // tty properties are cached so we don ' t have to worry too much about getting term widht / height
if ( config == null || System . currentTimeMillis ( ) - configLastFetched > 1000 ) { config = get ( "-a" ) ; configLastFetched = System . currentTimeMillis ( ) ; } return this . getProperty ... |
public class ServerDeserializer { /** * Gson invokes this call - back method during deserialization when it encounters a field of the specified type .
* @ param element The Json data being deserialized
* @ param type The type of the Object to deserialize to
* @ param context The JSON deserialization context
* @... | JsonObject obj = element . getAsJsonObject ( ) ; JsonElement server = obj . get ( "server" ) ; if ( server != null && server . isJsonObject ( ) ) return gson . fromJson ( server , Server . class ) ; return gson . fromJson ( element , Server . class ) ; |
public class FSDirectory { /** * updates quota without verification
* callers responsibility is to make sure quota is not exceeded
* @ param inodes
* @ param numOfINodes
* @ param nsDelta
* @ param dsDelta */
private void unprotectedUpdateCount ( INode [ ] inodes , int numOfINodes , long nsDelta , long dsDelt... | for ( int i = 0 ; i < numOfINodes ; i ++ ) { if ( inodes [ i ] . isQuotaSet ( ) ) { // a directory with quota
INodeDirectoryWithQuota node = ( INodeDirectoryWithQuota ) inodes [ i ] ; node . updateNumItemsInTree ( nsDelta , dsDelta ) ; } } |
public class StaticTypeCheckingSupport { /** * Returns true for expressions of the form x [ . . . ]
* @ param expression an expression
* @ return true for array access expressions */
protected static boolean isArrayAccessExpression ( Expression expression ) { } } | return expression instanceof BinaryExpression && isArrayOp ( ( ( BinaryExpression ) expression ) . getOperation ( ) . getType ( ) ) ; |
public class SeLionSelendroidDriver { /** * Scroll the screen up . The underlying application should have atleast one scroll view belonging to the class
* ' android . widget . ScrollView ' . */
public void scrollUp ( ) { } } | logger . entering ( ) ; WebElement webElement = this . findElement ( By . className ( SCROLLVIEW_CLASS ) ) ; swipeUp ( webElement ) ; logger . exiting ( ) ; |
public class MwsAQCall { /** * Create a HttpPost request for this call and add required headers and parameters to it .
* @ return The Post Request . */
private HttpPost createRequest ( ) { } } | HttpPost request = new HttpPost ( serviceEndpoint . uri ) ; try { request . addHeader ( "Content-Type" , "application/x-www-form-urlencoded; charset=utf-8" ) ; request . addHeader ( "X-Amazon-User-Agent" , connection . getUserAgent ( ) ) ; for ( Map . Entry < String , String > header : connection . getRequestHeaders ( ... |
public class Descriptor { /** * Given the class , list up its { @ link PropertyType } s from its public fields / getters . */
private Map < String , PropertyType > buildPropertyTypes ( Class < ? > clazz ) { } } | Map < String , PropertyType > r = new HashMap < > ( ) ; for ( Field f : clazz . getFields ( ) ) r . put ( f . getName ( ) , new PropertyType ( f ) ) ; for ( Method m : clazz . getMethods ( ) ) if ( m . getName ( ) . startsWith ( "get" ) ) r . put ( Introspector . decapitalize ( m . getName ( ) . substring ( 3 ) ) , new... |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcActionRequest ( ) { } } | if ( ifcActionRequestEClass == null ) { ifcActionRequestEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1 ) ; } return ifcActionRequestEClass ; |
public class JSONObject { /** * Produce a string from a double . The string " null " will be returned if the
* number is not finite .
* @ param d
* A double .
* @ return A String . */
public static String doubleToString ( double d ) { } } | if ( Double . isInfinite ( d ) || Double . isNaN ( d ) ) { return "null" ; } // Shave off trailing zeros and decimal point , if possible .
String string = Double . toString ( d ) ; if ( string . indexOf ( '.' ) > 0 && string . indexOf ( 'e' ) < 0 && string . indexOf ( 'E' ) < 0 ) { while ( string . endsWith ( "0" ) ) {... |
public class TupleGenerator { /** * Returns a set of failure { @ link TestCaseDef test case definitions } for the given function input definition . */
private List < TestCaseDef > getFailureCases ( FunctionInputDef inputDef , VarTupleSet failureTuples , VarTupleSet validTuples ) { } } | logger_ . debug ( "{}: Creating failure test cases" , inputDef ) ; List < TestCaseDef > failureCases = new ArrayList < TestCaseDef > ( ) ; // For each failure input tuple not yet used in a test case . . .
Tuple nextUnused ; while ( ( nextUnused = failureTuples . getNextUnused ( ) ) != null ) { // Completed bindings for... |
public class CoordinatorProxyService { /** * Initializes all the Fat clients ( 1 per store ) for the cluster that this
* Coordinator talks to . This is invoked once during startup and then every
* time the Metadata manager detects changes to the cluster and stores
* metadata .
* This method is synchronized beca... | updateCoordinatorMetadataWithLatestState ( ) ; // get All stores defined in the config file
Map < String , Properties > storeClientConfigsMap = storeClientConfigs . getAllConfigsMap ( ) ; for ( StoreDefinition storeDef : this . coordinatorMetadata . getStoresDefs ( ) ) { String storeName = storeDef . getName ( ) ; // I... |
public class FileUtils { /** * Copya los directorios y ficheros de la carpeta origen hasta la carpeta
* destino . En el path de destino crea los directorios que sean necesarios .
* @ param origDir
* directorio origen
* @ param destDir
* directorio final
* @ return true si va bien , false si falla */
public ... | if ( ! origDir . exists ( ) ) { return false ; } if ( ! destDir . exists ( ) ) { destDir . mkdirs ( ) ; } File array [ ] = origDir . listFiles ( ) ; if ( array != null ) { for ( File file : array ) { File destFile = new File ( destDir , file . getName ( ) ) ; if ( file . isDirectory ( ) ) { copyFilesFromDirectoryToDire... |
public class RequestHttpBase { /** * Sets a header , replacing an already - existing header .
* @ param key the header key to set .
* @ param value the header value to set . */
public void headerOut ( String key , String value ) { } } | Objects . requireNonNull ( value ) ; if ( isOutCommitted ( ) ) { return ; } if ( headerOutSpecial ( key , value ) ) { return ; } setHeaderOutImpl ( key , value ) ; |
public class PathUtil { /** * Returns true if " file " is a subfile or subdirectory of " dir " .
* For example with the directory / path / to / a , the following return values would occur :
* / path / to / a / foo . txt - true / path / to / a / bar / zoo / boo / team . txt - true / path / to / b / foo . txt - false... | if ( file == null ) return false ; if ( file . equals ( dir ) ) return true ; return isInSubDirectory ( dir , file . getParentFile ( ) ) ; |
public class FullDTDReader { /** * Method used to ' intern ( ) ' qualified names ; main benefit is reduced
* memory usage as the name objects are shared . May also slightly
* speed up Map access , as more often identity comparisons catch
* matches .
* Note : it is assumed at this point that access is only from ... | HashMap < PrefixedName , PrefixedName > m = mSharedNames ; if ( mSharedNames == null ) { mSharedNames = m = new HashMap < PrefixedName , PrefixedName > ( ) ; } else { // Maybe we already have a shared instance . . . ?
PrefixedName key = mAccessKey ; key . reset ( prefix , localName ) ; key = m . get ( key ) ; if ( key ... |
public class PeepholeMinimizeConditions { /** * Try to remove duplicate statements from IF blocks . For example :
* if ( a ) {
* x = 1;
* return true ;
* } else {
* x = 2;
* return true ;
* becomes :
* if ( a ) {
* x = 1;
* } else {
* x = 2;
* return true ;
* @ param n The IF node to examine .... | // Only run this if variable names are guaranteed to be unique . Otherwise bad things can happen :
// see PeepholeMinimizeConditionsTest # testDontRemoveDuplicateStatementsWithoutNormalization
if ( ! isASTNormalized ( ) ) { return ; } checkState ( n . isIf ( ) , n ) ; Node parent = n . getParent ( ) ; if ( ! NodeUtil .... |
public class FunctionMultiArgs { /** * Set an argument expression for a function . This method is called by the
* XPath compiler .
* @ param arg non - null expression that represents the argument .
* @ param argNum The argument number index .
* @ throws WrongNumberArgsException If a derived class determines tha... | if ( argNum < 3 ) super . setArg ( arg , argNum ) ; else { if ( null == m_args ) { m_args = new Expression [ 1 ] ; m_args [ 0 ] = arg ; } else { // Slow but space conservative .
Expression [ ] args = new Expression [ m_args . length + 1 ] ; System . arraycopy ( m_args , 0 , args , 0 , m_args . length ) ; args [ m_args ... |
public class PatternBox { /** * Pattern for a EntityReference has a member PhysicalEntity that is controlling a state change
* reaction of another EntityReference . This pattern is different from the original
* controls - state - change . The controller in this case is not modeled as a controller , but as a
* par... | Pattern p = new Pattern ( SequenceEntityReference . class , "controller ER" ) ; p . add ( linkedER ( true ) , "controller ER" , "controller generic ER" ) ; p . add ( erToPE ( ) , "controller generic ER" , "controller simple PE" ) ; p . add ( linkToComplex ( ) , "controller simple PE" , "controller PE" ) ; p . add ( par... |
public class ConfigUtil { /** * Returns an input stream referencing a file that exists somewhere in the classpath .
* < p > The supplied classloader is searched first , followed by the system classloader .
* @ param path The path to the file , relative to the root of the classpath directory from which
* it will b... | // first try the supplied class loader
InputStream in = getResourceAsStream ( path , loader ) ; if ( in != null ) { return in ; } // if that didn ' t work , try the system class loader ( but only if it ' s different from the
// class loader we just tried )
try { ClassLoader sysloader = ClassLoader . getSystemClassLoade... |
public class FindingFilter { /** * For a record to match a filter , one of the values that is specified for this data type property must be the exact
* match of the value of the < b > severity < / b > property of the < a > Finding < / a > data type .
* @ param severities
* For a record to match a filter , one of ... | if ( severities == null ) { this . severities = null ; return ; } this . severities = new java . util . ArrayList < String > ( severities ) ; |
public class SegmentsUtil { /** * set double from segments .
* @ param segments target segments .
* @ param offset value offset . */
public static void setDouble ( MemorySegment [ ] segments , int offset , double value ) { } } | if ( inFirstSegment ( segments , offset , 8 ) ) { segments [ 0 ] . putDouble ( offset , value ) ; } else { setDoubleMultiSegments ( segments , offset , value ) ; } |
public class GoogleHadoopFSInputStream { /** * Gets the current position within the file being read .
* @ return The current position within the file being read .
* @ throws IOException if an IO error occurs . */
@ Override public synchronized long getPos ( ) throws IOException { } } | long pos = channel . position ( ) ; logger . atFine ( ) . log ( "getPos: %d" , pos ) ; return pos ; |
public class CompletableFutures { /** * Asynchronously accumulate the results of a batch of Futures which using the supplied mapping function to
* convert the data from each Future before reducing them using the supplied supplied Monoid ( a combining BiFunction / BinaryOperator and identity element that takes two
*... | return sequence ( fts ) . thenApply ( s -> s . map ( mapper ) . reduce ( reducer ) ) ; |
public class TaskInfoFetcher { /** * Add a listener for the final task info . This notification is guaranteed to be fired only once .
* Listener is always notified asynchronously using a dedicated notification thread pool so , care should
* be taken to avoid leaking { @ code this } when adding a listener in a const... | AtomicBoolean done = new AtomicBoolean ( ) ; StateChangeListener < Optional < TaskInfo > > fireOnceStateChangeListener = finalTaskInfo -> { if ( finalTaskInfo . isPresent ( ) && done . compareAndSet ( false , true ) ) { stateChangeListener . stateChanged ( finalTaskInfo . get ( ) ) ; } } ; finalTaskInfo . addStateChang... |
public class RouteGuideUtil { /** * Parses the JSON input file containing the list of features . */
public static List < Feature > parseFeatures ( URL file ) throws IOException { } } | InputStream input = file . openStream ( ) ; try { Reader reader = new InputStreamReader ( input , Charset . forName ( "UTF-8" ) ) ; try { FeatureDatabase . Builder database = FeatureDatabase . newBuilder ( ) ; JsonFormat . parser ( ) . merge ( reader , database ) ; return database . getFeatureList ( ) ; } finally { rea... |
public class CloneableRuntimeException { /** * 简便函数 , 定义静态异常时使用 */
public CloneableRuntimeException setStackTrace ( Class < ? > throwClazz , String throwMethod ) { } } | ExceptionUtil . setStackTrace ( this , throwClazz , throwMethod ) ; return this ; |
public class Cli { /** * Build the GlobalOptions information from the raw parsed options
* @ param parsedOpts Options parsed from the cmd line
* @ return */
private GlobalOptions createGlobalOptions ( CommandLine parsedOpts ) { } } | String host = parsedOpts . hasOption ( HOST_OPT ) ? parsedOpts . getOptionValue ( HOST_OPT ) : DEFAULT_REST_SERVER_HOST ; int port = DEFAULT_REST_SERVER_PORT ; try { if ( parsedOpts . hasOption ( PORT_OPT ) ) { port = Integer . parseInt ( parsedOpts . getOptionValue ( PORT_OPT ) ) ; } } catch ( NumberFormatException e ... |
public class VisDialog { /** * Adds the given button to the button table .
* @ param object The object that will be passed to { @ link # result ( Object ) } if this button is clicked . May be null . */
public VisDialog button ( Button button , Object object ) { } } | buttonTable . add ( button ) ; setObject ( button , object ) ; return this ; |
public class WSManagedConnectionFactoryImpl { /** * The spec interface is defined with raw types , so we have no choice but to declare it that way , too */
@ Override public Set < ManagedConnection > getInvalidConnections ( @ SuppressWarnings ( "rawtypes" ) Set connectionSet ) throws ResourceException { } } | final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "getInvalidConnections" , connectionSet ) ; Set < ManagedConnection > badSet = new HashSet < ManagedConnection > ( ) ; WSRdbManagedConnectionImpl mc = null ; // Loop through each Man... |
public class OauthHelper { /** * populate / renew jwt info to the give jwt object .
* based on the expire time of the jwt , to determine if need to renew jwt or not .
* to avoid modifying class member which will case thread - safe problem , move this method from Http2Client to this helper class .
* @ param jwt th... | boolean isInRenewWindow = jwt . getExpire ( ) - System . currentTimeMillis ( ) < jwt . getTokenRenewBeforeExpired ( ) ; logger . trace ( "isInRenewWindow = " + isInRenewWindow ) ; // if not in renew window , return the current jwt .
if ( ! isInRenewWindow ) { return Success . of ( jwt ) ; } // the same jwt shouldn ' t ... |
public class DefaultGitHubClient { /** * Get comments from the given comment url
* @ param commentsUrl
* @ param repo
* @ return
* @ throws RestClientException */
public List < Comment > getComments ( String commentsUrl , GitHubRepo repo ) throws RestClientException { } } | List < Comment > comments = new ArrayList < > ( ) ; // decrypt password
String decryptedPassword = decryptString ( repo . getPassword ( ) , settings . getKey ( ) ) ; String personalAccessToken = ( String ) repo . getOptions ( ) . get ( "personalAccessToken" ) ; String decryptedPersonalAccessToken = decryptString ( pers... |
public class GitFunction { /** * Add the names of the tags as children of the current node .
* @ param git the Git object ; may not be null
* @ param spec the call specification ; may not be null
* @ param writer the document writer for the current node ; may not be null
* @ throws GitAPIException if there is a... | // Generate the child references to the branches , which will be sorted by name ( by the command ) .
ListTagCommand command = git . tagList ( ) ; List < Ref > tags = command . call ( ) ; // Reverse the sort of the branch names , since they might be version numbers . . .
Collections . sort ( tags , REVERSE_REF_COMPARATO... |
public class DefaultGroovyMethods { /** * Support the subscript operator with a range for a long array
* @ param array a long array
* @ param range a range indicating the indices for the items to retrieve
* @ return list of the retrieved longs
* @ since 1.0 */
@ SuppressWarnings ( "unchecked" ) public static Li... | return primitiveArrayGet ( array , range ) ; |
public class AttributeMapper { /** * Return the variable identifier from the attribute - id */
public int getVariableId ( String attrId ) throws MIDDParsingException { } } | if ( ! attributeMapper . containsKey ( attrId ) ) { throw new MIDDParsingException ( "Attribute '" + attrId + "' not found" ) ; } return attributeMapper . get ( attrId ) . intValue ( ) ; |
public class AuditorFactory { /** * Get an auditor instance for the specified auditor class ,
* auditor configuration , and auditor context .
* @ param clazzClass to instantiate
* @ param configToUseAuditor configuration to use
* @ param contextToUseAuditor context to use
* @ return Instance of an IHE Auditor... | IHEAuditor auditor = AuditorFactory . getAuditorForClass ( clazz ) ; if ( auditor != null ) { auditor . setConfig ( configToUse ) ; auditor . setContext ( contextToUse ) ; } return auditor ; |
public class RuleQueryFactory { /** * Create a { @ link RuleQuery } from a { @ link Request } .
* When a profile key is set , the language of the profile is automatically set in the query */
public RuleQuery createRuleQuery ( DbSession dbSession , Request request ) { } } | RuleQuery query = new RuleQuery ( ) ; query . setQueryText ( request . param ( WebService . Param . TEXT_QUERY ) ) ; query . setSeverities ( request . paramAsStrings ( PARAM_SEVERITIES ) ) ; query . setRepositories ( request . paramAsStrings ( PARAM_REPOSITORIES ) ) ; Date availableSince = request . paramAsDate ( PARAM... |
public class Mutator { /** * Creates a joint schema between two Schemas . All Fields from both schema are deduplicated
* and combined into a single Schema . The left Schema has priority so if both Schemas have
* the same Field with the same name but different Types , the Type from the left Schema will be
* taken ... | return jointSchema ( "jointSchema" + ( COUNTER ++ ) , leftSchema , rightSchema ) ; |
public class HalLinker { /** * Resolves a relation . Locates a HalLinkResolver for resolving the set of all linked resources in the relation .
* @ param relation the relation to resolve
* @ param processEngine the process engine to use
* @ return the list of resolved resources
* @ throws RuntimeException if no ... | HalLinkResolver linkResolver = hal . getLinkResolver ( relation . resourceType ) ; if ( linkResolver != null ) { Set < String > linkedIds = getLinkedResourceIdsByRelation ( relation ) ; if ( ! linkedIds . isEmpty ( ) ) { return linkResolver . resolveLinks ( linkedIds . toArray ( new String [ linkedIds . size ( ) ] ) , ... |
public class BaseMojo { /** * Append the version piece to the version # under construction .
* @ param sb String builder receiving the version under construction .
* @ param pc The version piece to add . If null , it is ignored . If non - numeric , a value of " 0 " is
* used . */
private void appendVersionPiece (... | if ( ( pc != null ) && ! pc . isEmpty ( ) ) { pc = pc . trim ( ) ; if ( sb . length ( ) > 0 ) { sb . append ( "." ) ; } sb . append ( StringUtils . isNumeric ( pc ) ? pc : "0" ) ; } |
public class IO { /** * Copy Reader to Writer for byteCount bytes or until EOF or exception . */
public static void copy ( Reader in , Writer out , long byteCount ) throws IOException { } } | char buffer [ ] = new char [ bufferSize ] ; int len = bufferSize ; if ( byteCount >= 0 ) { while ( byteCount > 0 ) { if ( byteCount < bufferSize ) len = in . read ( buffer , 0 , ( int ) byteCount ) ; else len = in . read ( buffer , 0 , bufferSize ) ; if ( len == - 1 ) break ; byteCount -= len ; out . write ( buffer , 0... |
public class CmsListItem { /** * Returns the value of the column for this item . < p >
* @ param columnId the column id
* @ return the content , may be < code > null < / code >
* @ throws CmsIllegalArgumentException if the given < code > columnId < / code > is invalid */
public Object get ( String columnId ) thro... | if ( ( getMetadata ( ) . getColumnDefinition ( columnId ) == null ) && ( getMetadata ( ) . getItemDetailDefinition ( columnId ) == null ) ) { throw new CmsIllegalArgumentException ( Messages . get ( ) . container ( Messages . ERR_LIST_INVALID_COLUMN_1 , columnId ) ) ; } return m_values . get ( columnId ) ; |
public class Get { /** * Executes a getter ( < tt > getX ( ) < / tt > ) on the target object which returns BigInteger .
* If the specified attribute is , for example , " < tt > name < / tt > " , the called method
* will be " < tt > getName ( ) < / tt > " .
* @ param attributeName the name of the attribute
* @ r... | return new Get < Object , BigInteger > ( Types . BIG_INTEGER , attributeName ) ; |
public class MsgManager { /** * Removes all { @ link AppMsg } from the queue . */
void clearMsg ( AppMsg appMsg ) { } } | if ( msgQueue . contains ( appMsg ) || stickyQueue . contains ( appMsg ) ) { // Avoid the message from being removed twice .
removeMessages ( MESSAGE_DISPLAY , appMsg ) ; removeMessages ( MESSAGE_ADD_VIEW , appMsg ) ; removeMessages ( MESSAGE_REMOVE , appMsg ) ; msgQueue . remove ( appMsg ) ; stickyQueue . remove ( app... |
public class FireFoxCapabilitiesBuilder { /** * Returns the default { @ link FirefoxOptions } used by this capabilities builder . */
private FirefoxOptions getDefaultFirefoxOptions ( ) { } } | FirefoxOptions options = new FirefoxOptions ( ) ; options . setLogLevel ( FirefoxDriverLogLevel . INFO ) ; options . setHeadless ( Boolean . parseBoolean ( getLocalConfigProperty ( ConfigProperty . BROWSER_RUN_HEADLESS ) ) ) ; return options ; |
public class OpDef { /** * < pre >
* Description of the input ( s ) .
* < / pre >
* < code > repeated . tensorflow . OpDef . ArgDef input _ arg = 2 ; < / code > */
public org . tensorflow . framework . OpDef . ArgDef getInputArg ( int index ) { } } | return inputArg_ . get ( index ) ; |
public class CommandServiceJdoRepository { /** * region > findRecentByUser */
@ Programmatic public List < CommandJdo > findRecentByUser ( final String user ) { } } | return repositoryService . allMatches ( new QueryDefault < > ( CommandJdo . class , "findRecentByUser" , "user" , user ) ) ; |
public class CmsStringUtil { /** * Returns a string representation for the given map using the given separators . < p >
* @ param < K > type of map keys
* @ param < V > type of map values
* @ param map the map to write
* @ param sepItem the item separator string
* @ param sepKeyval the key - value pair separa... | StringBuffer string = new StringBuffer ( 128 ) ; Iterator < Map . Entry < K , V > > it = map . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { Map . Entry < K , V > entry = it . next ( ) ; string . append ( entry . getKey ( ) ) ; string . append ( sepKeyval ) ; string . append ( entry . getValue ( ) ) ; if (... |
public class WebServiceTemplateBuilder { /** * Set the { @ link ClientInterceptor ClientInterceptors } that should be used with the
* { @ link WebServiceTemplate } . Setting this value will replace any previously defined
* interceptors .
* @ param interceptors the interceptors to set
* @ return a new builder in... | Assert . notNull ( interceptors , "Interceptors must not be null" ) ; return interceptors ( Arrays . asList ( interceptors ) ) ; |
public class RootFinder { /** * { @ inheritDoc } */
@ Override public String getFilename ( final FinderObject owner ) { } } | final Root root = ( Root ) owner ; return root . getTheFilename ( ) ; |
public class AlpineResource { /** * Provides a facility to retrieve a param by more than one name . Different libraries
* and frameworks , expect ( in some cases ) different names for the same param .
* @ param queryParams the parameters from the querystring
* @ param params an array of one or more param names
... | for ( final String param : params ) { final String value = queryParams . getFirst ( param ) ; if ( StringUtils . isNotBlank ( value ) ) { return value ; } } return null ; |
public class AdminController { /** * Perform a several cleanups on the given surt :
* * Convert a URL to a SURT
* * Add a trailing slash to SURTs of the form : http : / / ( . . . )
* @ param surt
* @ return */
protected String cleanSurt ( String surt ) { } } | if ( ! isSurt ( surt ) ) { surt = ArchiveUtils . addImpliedHttpIfNecessary ( surt ) ; surt = SURT . fromURI ( surt ) ; } if ( surt . endsWith ( ",)" ) && surt . indexOf ( ")" ) == surt . length ( ) - 1 ) { surt = surt + "/" ; } return surt ; |
public class PipelinedBinaryConsumer { /** * Performs every composed consumer .
* @ param former the former value
* @ param latter the latter value */
@ Override public void accept ( E1 former , E2 latter ) { } } | for ( BiConsumer < E1 , E2 > consumer : consumers ) { consumer . accept ( former , latter ) ; } |
public class DRL6Parser { /** * entryPointDeclaration : = ENTRY - POINT stringId annotation * END
* @ return
* @ throws org . antlr . runtime . RecognitionException */
public EntryPointDeclarationDescr entryPointDeclaration ( DeclareDescrBuilder ddb ) throws RecognitionException { } } | EntryPointDeclarationDescrBuilder declare = null ; try { declare = helper . start ( ddb , EntryPointDeclarationDescrBuilder . class , null ) ; match ( input , DRL6Lexer . ID , DroolsSoftKeywords . ENTRY , null , DroolsEditorType . KEYWORD ) ; if ( state . failed ) return null ; match ( input , DRL6Lexer . MINUS , null ... |
public class AbstractHttpCommandProcessor { /** * Resolves an HttpCommand to an ExecutionContext , which provides contextual
* information to the ExecutionVenue that the command will be executed in .
* @ param http
* contains the HttpServletRequest from which the contextual
* information is derived
* @ return... | return contextResolution . resolveExecutionContext ( protocol , http , cc ) ; |
public class DefaultShardManagerBuilder { /** * Sets the { @ link ExecutorService ExecutorService } that should be used in
* the JDA callback handler which mostly consists of { @ link net . dv8tion . jda . core . requests . RestAction RestAction } callbacks .
* By default JDA will use { @ link ForkJoinPool # common... | return setCallbackPoolProvider ( executor == null ? null : new ThreadPoolProviderImpl < > ( executor , automaticShutdown ) ) ; |
public class CsvBeanReader { /** * Invokes the setter on the bean with the supplied value .
* @ param bean
* the bean
* @ param setMethod
* the setter method for the field
* @ param fieldValue
* the field value to set
* @ throws SuperCsvException
* if there was an exception invoking the setter */
privat... | try { setMethod . setAccessible ( true ) ; setMethod . invoke ( bean , fieldValue ) ; } catch ( final Exception e ) { throw new SuperCsvReflectionException ( String . format ( "error invoking method %s()" , setMethod . getName ( ) ) , e ) ; } |
public class CmsCloneModuleThread { /** * Clones the export points of the module and adjusts its paths . < p >
* @ param sourceModule the source module
* @ param targetModule the target module
* @ param sourcePathPart the source path part
* @ param targetPathPart the target path part */
private void cloneExport... | for ( CmsExportPoint exp : targetModule . getExportPoints ( ) ) { if ( exp . getUri ( ) . contains ( sourceModule . getName ( ) ) ) { exp . setUri ( exp . getUri ( ) . replaceAll ( sourceModule . getName ( ) , targetModule . getName ( ) ) ) ; } if ( exp . getUri ( ) . contains ( sourcePathPart ) ) { exp . setUri ( exp ... |
public class XMLUnit { /** * Obtains an XpathEngine to use in XPath tests . */
public static XpathEngine newXpathEngine ( ) { } } | XpathEngine eng = new org . custommonkey . xmlunit . jaxp13 . Jaxp13XpathEngine ( ) ; if ( namespaceContext != null ) { eng . setNamespaceContext ( namespaceContext ) ; } return eng ; |
public class PerspectiveOps { /** * Creates a set of intrinsic parameters , without distortion , for a camera with the specified characteristics .
* The focal length is assumed to be the same for x and y .
* @ param width Image width
* @ param height Image height
* @ param hfov Horizontal FOV in degrees
* @ r... | CameraPinholeBrown intrinsic = new CameraPinholeBrown ( ) ; intrinsic . width = width ; intrinsic . height = height ; intrinsic . cx = width / 2 ; intrinsic . cy = height / 2 ; intrinsic . fx = intrinsic . cx / Math . tan ( UtilAngle . degreeToRadian ( hfov / 2.0 ) ) ; intrinsic . fy = intrinsic . fx ; return intrinsic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.