signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class Criteria { /** * Creates a criterion using the < b > & lt ; = < / b > operator
* @ param o
* @ return the criteria */
public Criteria lte ( Object o ) { } } | this . criteriaType = RelationalOperator . LTE ; this . right = ValueNode . toValueNode ( o ) ; return this ; |
public class GetConnectorDefinitionVersionRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetConnectorDefinitionVersionRequest getConnectorDefinitionVersionRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getConnectorDefinitionVersionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getConnectorDefinitionVersionRequest . getConnectorDefinitionId ( ) , CONNECTORDEFINITIONID_BINDING ) ; protocolMarshaller . marshall ( getConnector... |
public class DateTimeExtensions { /** * Formats this date / time with the provided { @ link java . time . format . DateTimeFormatter } pattern .
* @ param self a ZonedDateTime
* @ param pattern the formatting pattern
* @ return a formatted String
* @ see java . time . format . DateTimeFormatter
* @ since 2.5.... | return self . format ( DateTimeFormatter . ofPattern ( pattern ) ) ; |
public class DropwizardResourceConfig { /** * Combines types of getClasses ( ) and getSingletons in one Set .
* @ return all registered types */
Set < Class < ? > > allClasses ( ) { } } | final Set < Class < ? > > allClasses = new HashSet < > ( getClasses ( ) ) ; for ( Object singleton : getSingletons ( ) ) { allClasses . add ( singleton . getClass ( ) ) ; } return allClasses ; |
public class TasksInner { /** * Creates a task for a container registry with the specified parameters .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param taskName The name of the container regi... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , registryName , taskName , taskCreateParameters ) , serviceCallback ) ; |
public class CacheableDataProvider { /** * Remove entity from cache , remove from persistence storage operation will be executed in background
* @ param entity Target entity
* @ return Future for remove from cache operation */
public ListenableFuture < Boolean > removeAsync ( @ NotNull Entry entity ) { } } | Timer timer = getMetrics ( ) . getTimer ( MetricsType . CACHEABLE_DATA_PROVIDER_REMOVE_FROM_CACHE . name ( ) ) ; long key = buildHashCode ( entity ) ; cache . remove ( key ) ; timer . stop ( ) ; return Futures . immediateFuture ( true ) ; |
public class TimeZoneApi { /** * Retrieves the { @ link java . util . TimeZone } for the given location .
* @ param context The { @ link GeoApiContext } to make requests through .
* @ param location The location for which to retrieve a time zone .
* @ return Returns the time zone as a { @ link PendingResult } . *... | return context . get ( API_CONFIG , Response . class , "location" , location . toString ( ) , // Java has its own lookup for time - > DST , so we really only need to fetch the TZ id .
// " timestamp " is , in effect , ignored .
"timestamp" , "0" ) ; |
public class HttpKitExt { /** * 涉及资金回滚的接口会使用到商户证书 , 包括退款 、 撤销接口的请求
* @ param url
* 请求的地址
* @ param data
* xml数据
* @ param certPath
* 证书文件目录
* @ param certPass
* 证书密码
* @ return String 回调的xml信息 */
protected static String postSSL ( String url , String data , String certPath , String certPass ) { } } | HttpsURLConnection conn = null ; OutputStream out = null ; InputStream inputStream = null ; BufferedReader reader = null ; try { KeyStore clientStore = KeyStore . getInstance ( "PKCS12" ) ; clientStore . load ( new FileInputStream ( certPath ) , certPass . toCharArray ( ) ) ; KeyManagerFactory kmf = KeyManagerFactory .... |
public class GridCluster { /** * Iterates through the DensityGrids in the cluster and calculates the inclusion probability for each .
* @ return 1.0 if instance matches any of the density grids ; 0.0 otherwise . */
@ Override public double getInclusionProbability ( Instance instance ) { } } | Iterator < Map . Entry < DensityGrid , Boolean > > gridIter = grids . entrySet ( ) . iterator ( ) ; while ( gridIter . hasNext ( ) ) { Map . Entry < DensityGrid , Boolean > grid = gridIter . next ( ) ; DensityGrid dg = grid . getKey ( ) ; if ( dg . getInclusionProbability ( instance ) == 1.0 ) return 1.0 ; } return 0.0... |
public class H2GISFunctions { /** * Return the alias name of the function
* @ param function Function instance
* @ return the function ALIAS , name of the function in SQL engine */
public static String getAlias ( Function function ) { } } | String functionAlias = getStringProperty ( function , Function . PROP_NAME ) ; if ( ! functionAlias . isEmpty ( ) ) { return functionAlias ; } return function . getClass ( ) . getSimpleName ( ) ; |
public class ProxyBuilder { /** * Returns true if { @ code c } is a proxy class created by this builder . */
public static boolean isProxyClass ( Class < ? > c ) { } } | // TODO : use a marker interface instead ?
try { c . getDeclaredField ( FIELD_NAME_HANDLER ) ; return true ; } catch ( NoSuchFieldException e ) { return false ; } |
public class LTPAToken2 { /** * Convert the String form to the byte representation
* @ param str The String form
* @ return The byte representation */
private static final byte [ ] getSimpleBytes ( String str ) { } } | StringBuilder sb = new StringBuilder ( str ) ; byte [ ] b = new byte [ sb . length ( ) ] ; for ( int i = 0 , len = sb . length ( ) ; i < len ; i ++ ) { b [ i ] = ( byte ) sb . charAt ( i ) ; } return b ; |
public class BaseWorkflowExecutor { /** * Convert map of step execution results keyed by step number , to a collection of step execution results
* keyed by node name
* @ param failedMap failures
* @ return converted */
protected Map < String , Collection < StepExecutionResult > > convertFailures ( final Map < Int... | final Map < String , Collection < StepExecutionResult > > failures = new HashMap < > ( ) ; for ( final Map . Entry < Integer , StepExecutionResult > entry : failedMap . entrySet ( ) ) { final StepExecutionResult o = entry . getValue ( ) ; if ( NodeDispatchStepExecutor . isWrappedDispatcherResult ( o ) ) { // indicates ... |
public class OjbMetaClassDescriptorNode { /** * Purpose of this method is to fill the children of the node . It should
* replace all children in alChildren ( the arraylist containing the children )
* of this node and notify the TreeModel that a change has occurred . */
protected boolean _load ( ) { } } | java . util . ArrayList newChildren = new java . util . ArrayList ( ) ; /* @ todo make this work */
// if ( cld . getConnectionDescriptor ( ) ! = null )
// newChildren . add ( new OjbMetaJdbcConnectionDescriptorNode (
// this . getOjbMetaTreeModel ( ) . getRepository ( ) ,
// this . getOjbMetaTreeModel ( ) ,
// this ,
... |
public class StorePackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getRevisionSummaryType ( ) { } } | if ( revisionSummaryTypeEClass == null ) { revisionSummaryTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( StorePackage . eNS_URI ) . getEClassifiers ( ) . get ( 30 ) ; } return revisionSummaryTypeEClass ; |
public class Client { /** * Gets a list of OneLoginApp resources .
* @ param queryParameters Query parameters of the Resource
* Parameters to filter the result of the list
* @ param maxResults
* Limit the number of OneLoginApp returned ( optional )
* @ return List of OneLoginApp
* @ throws OAuthSystemExcept... | ExtractionContext context = getResource ( queryParameters , Constants . GET_APPS_URL ) ; OneloginOAuthJSONResourceResponse oAuthResponse = null ; String afterCursor = null ; List < OneLoginApp > apps = new ArrayList < OneLoginApp > ( maxResults ) ; while ( oAuthResponse == null || ( apps . size ( ) < maxResults && afte... |
public class Tile { /** * Returns the tile above this tile .
* @ return tile above */
public Tile getAbove ( ) { } } | int y = tileY - 1 ; if ( y < 0 ) { y = getMaxTileNumber ( this . zoomLevel ) ; } return new Tile ( this . tileX , y , this . zoomLevel , this . tileSize ) ; |
public class CmsPublishGroupPanel { /** * Adds a resource bean to this group . < p >
* @ param resourceBean the resource bean which should be added */
private void addItem ( CmsPublishResource resourceBean ) { } } | CmsTreeItem row = buildItem ( resourceBean , m_model . getStatus ( resourceBean . getId ( ) ) , false ) ; m_panel . add ( row ) ; for ( CmsPublishResource related : resourceBean . getRelated ( ) ) { row . addChild ( buildItem ( related , m_model . getStatus ( related . getId ( ) ) , true ) ) ; } |
public class AppointmentCalendarApplet { /** * For Stand - alone . */
public static void main ( String [ ] args ) { } } | BaseApplet . main ( args ) ; BaseApplet applet = AppointmentCalendarApplet . getSharedInstance ( ) ; if ( applet == null ) applet = new AppointmentCalendarApplet ( args ) ; new JBaseFrame ( "Calendar" , applet ) ; |
public class WaitPageInterceptor { /** * Intercepts execution to handle { @ link WaitPage } annotation and invoke the event in a background request . */
public Resolution intercept ( ExecutionContext executionContext ) throws Exception { } } | // Remove expired contexts .
removeExpired ( contexts ) ; // Get wait context , if any .
Context context = getContext ( executionContext ) ; LifecycleStage stage = executionContext . getLifecycleStage ( ) ; if ( executionContext . getActionBeanContext ( ) . getRequest ( ) . getRequestURI ( ) . contains ( THREAD_URL ) )... |
public class FloatingLabelWidgetBase { /** * Initialise the widget : read attributes , inflate layout and set the basic properties
* @ param context
* @ param attrs
* @ param defStyle */
protected void init ( Context context , AttributeSet attrs , int defStyle ) { } } | // Load custom attributes
final int layoutId ; final CharSequence floatLabelText ; final int floatLabelTextAppearance ; final int floatLabelTextColor ; final float floatLabelTextSize ; if ( attrs == null ) { layoutId = getDefaultLayoutId ( ) ; isFloatOnFocusEnabled = true ; floatLabelText = null ; floatLabelTextAppeara... |
public class IntegerProcessingTopology { /** * All Heron topologies require a main function that defines the topology ' s behavior
* at runtime */
public static void main ( String [ ] args ) throws Exception { } } | Builder builder = Builder . newBuilder ( ) ; Streamlet < Integer > zeroes = builder . newSource ( ( ) -> 0 ) ; builder . newSource ( ( ) -> ThreadLocalRandom . current ( ) . nextInt ( 1 , 11 ) ) . setName ( "random-ints" ) . map ( i -> i + 1 ) . setName ( "add-one" ) . union ( zeroes ) . setName ( "unify-streams" ) . f... |
public class ServiceChangeMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ServiceChange serviceChange , ProtocolMarshaller protocolMarshaller ) { } } | if ( serviceChange == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( serviceChange . getDescription ( ) , DESCRIPTION_BINDING ) ; protocolMarshaller . marshall ( serviceChange . getDnsConfig ( ) , DNSCONFIG_BINDING ) ; protocolMarshaller . ... |
public class Hints { /** * Merges the status . If one of the resource have different status the status will be
* chosen according to the following priorities :
* < ol >
* < li > GONE < / li >
* < li > DEPRECATED < / li >
* < li > NONE < / li >
* < / ol >
* @ param hints the hints to merge */
private void ... | if ( status != null ) { if ( hints . getStatus ( ) != null && ! status . equals ( hints . getStatus ( ) ) ) { switch ( hints . getStatus ( ) ) { case GONE : status = Status . GONE ; break ; case DEPRECATED : if ( status != Status . GONE ) { status = Status . DEPRECATED ; } break ; } } } else { this . status = hints . g... |
public class nssimpleacl { /** * Use this API to fetch filtered set of nssimpleacl resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static nssimpleacl [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | nssimpleacl obj = new nssimpleacl ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; nssimpleacl [ ] response = ( nssimpleacl [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class CmsXmlUtils { /** * Removes all Xpath index information from the given input path . < p >
* Examples : < br >
* < code > title < / code > is left untouched < br >
* < code > title [ 1 ] < / code > becomes < code > title < / code > < br >
* < code > title / subtitle < / code > is left untouched < br... | if ( path . indexOf ( '/' ) > - 1 ) { // this is a complex path over more then 1 node
StringBuffer result = new StringBuffer ( path . length ( ) + 32 ) ; // split the path into sub - elements
List < String > elements = CmsStringUtil . splitAsList ( path , '/' ) ; int end = elements . size ( ) - 1 ; for ( int i = 0 ; i ... |
public class RROtherProjectInfoV1_2Generator { /** * This method will set the values to historic destination */
private void setHistoricDestionation ( RROtherProjectInfo12Document . RROtherProjectInfo12 rrOtherProjectInfo ) { } } | String historicDestinationAnswer = getAnswer ( HISTORIC_DESTIONATION_YNQ , answerHeaders ) ; if ( historicDestinationAnswer != null && ! historicDestinationAnswer . equals ( NOT_ANSWERED ) ) { YesNoDataType . Enum answer = getAnswer ( HISTORIC_DESTIONATION_YNQ , answerHeaders ) . equals ( "Y" ) ? YesNoDataType . Y_YES ... |
public class SizeTieredCompactionStrategy { /** * Returns the reads per second per key for this sstable , or 0.0 if the sstable has no read meter */
private static double hotness ( SSTableReader sstr ) { } } | // system tables don ' t have read meters , just use 0.0 for the hotness
return sstr . getReadMeter ( ) == null ? 0.0 : sstr . getReadMeter ( ) . twoHourRate ( ) / sstr . estimatedKeys ( ) ; |
public class GitRepo { /** * Clones the project .
* @ param projectUri - URI of the project
* @ return file where the project was cloned */
File cloneProject ( URI projectUri ) { } } | try { log . info ( "Cloning repo from [" + projectUri + "] to [" + this . basedir + "]" ) ; Git git = cloneToBasedir ( projectUri , this . basedir ) ; if ( git != null ) { git . close ( ) ; } File clonedRepo = git . getRepository ( ) . getWorkTree ( ) ; log . info ( "Cloned repo to [" + clonedRepo + "]" ) ; return clon... |
public class StringUtils { /** * Generates a sha - 256 hash from a string
* Taken from http : / / stackoverflow . com / questions / 415953 / generate - md5 - hash - in - java
* @ param str a { @ link java . lang . String } object .
* @ return a { @ link java . lang . String } object .
* @ since 0.7.2 */
public ... | try { java . security . MessageDigest md = java . security . MessageDigest . getInstance ( "SHA-256" ) ; byte [ ] array = md . digest ( str . getBytes ( "UTF-8" ) ) ; StringBuilder sb = new StringBuilder ( ) ; for ( byte anArray : array ) { sb . append ( Integer . toHexString ( ( anArray & 0xFF ) | 0x100 ) . substring ... |
public class QuantityFormatter { /** * Selects the standard plural form for the number / formatter / rules . */
public static StandardPlural selectPlural ( Number number , NumberFormat fmt , PluralRules rules , StringBuffer formattedNumber , FieldPosition pos ) { } } | UFieldPosition fpos = new UFieldPosition ( pos . getFieldAttribute ( ) , pos . getField ( ) ) ; fmt . format ( number , formattedNumber , fpos ) ; // TODO : Long , BigDecimal & BigInteger may not fit into doubleValue ( ) .
FixedDecimal fd = new FixedDecimal ( number . doubleValue ( ) , fpos . getCountVisibleFractionDig... |
public class SQLPPMappingToR2RMLConverter { /** * the method to write the R2RML mappings
* from an rdf Model to a file
* @ param os the output target */
public void write ( OutputStream os ) throws Exception { } } | try { JenaR2RMLMappingManager mm = JenaR2RMLMappingManager . getInstance ( ) ; Collection < TriplesMap > tripleMaps = getTripleMaps ( ) ; final JenaGraph jenaGraph = mm . exportMappings ( tripleMaps ) ; final Graph graph = new JenaRDF ( ) . asJenaGraph ( jenaGraph ) ; final PrefixMapping jenaPrefixMapping = graph . get... |
public class AbstractQueuedSynchronizer { /** * Returns an estimate of the number of threads waiting to
* acquire . The value is only an estimate because the number of
* threads may change dynamically while this method traverses
* internal data structures . This method is designed for use in
* monitoring system... | int n = 0 ; for ( Node p = tail ; p != null ; p = p . prev ) { if ( p . thread != null ) ++ n ; } return n ; |
public class PersistenceBrokerImpl { /** * I pulled this out of internal store so that when doing multiple table
* inheritance , i can recurse this function .
* @ param obj
* @ param cld
* @ param oid BRJ : what is it good for ? ? ?
* @ param insert
* @ param ignoreReferences */
private void storeToDb ( Obj... | // 1 . link and store 1:1 references
storeReferences ( obj , cld , insert , ignoreReferences ) ; Object [ ] pkValues = oid . getPrimaryKeyValues ( ) ; if ( ! serviceBrokerHelper ( ) . assertValidPksForStore ( cld . getPkFields ( ) , pkValues ) ) { // BRJ : fk values may be part of pk , but the are not known during
// c... |
public class AWSSecurityHubClient { /** * Returns the count of all Security Hub membership invitations that were sent to the current member account , not
* including the currently accepted invitation .
* @ param getInvitationsCountRequest
* @ return Result of the GetInvitationsCount operation returned by the serv... | request = beforeClientExecution ( request ) ; return executeGetInvitationsCount ( request ) ; |
public class Async { /** * Handle exceptions that async task thrown . < br >
* the method would block current thread until async task finished or
* thrown with an exception , the handling process would be taken in
* current thread . < br >
* @ param handler a function to invoke when occurred an exception < br >... | while ( ! container . inProcess ) { // block
Style . sleep ( 1 ) ; } synchronized ( container ) { if ( null != throwable ) { handler . apply ( Style . $ ( throwable ) ) ; } } |
public class EventExtractor { /** * Splits events of a row if they overlap an island . Islands are areas between
* the token which are included in the result .
* @ param row
* @ param graph
* @ param text
* @ param startTokenIndex token index of the first token in the match
* @ param endTokenIndex token ind... | BitSet tokenCoverage = new BitSet ( ) ; // get the sorted token
List < SToken > sortedTokenList = graph . getSortedTokenByText ( ) ; // add all token belonging to the right text to the bit set
ListIterator < SToken > itToken = sortedTokenList . listIterator ( ) ; while ( itToken . hasNext ( ) ) { SToken t = itToken . n... |
public class HttpServletRaSbbInterfaceImpl { /** * ( non - Javadoc )
* @ see net . java . slee . resource . http . HttpServletRaSbbInterface # getHttpSessionActivity ( javax . servlet . http . HttpSession ) */
public HttpSessionActivity getHttpSessionActivity ( HttpSession httpSession ) throws NullPointerException , ... | if ( httpSession == null ) { throw new NullPointerException ( "null http session" ) ; } if ( ! ( httpSession instanceof HttpSessionWrapper ) ) { throw new IllegalArgumentException ( ) ; } final HttpSessionWrapper httpSessionWrapper = ( HttpSessionWrapper ) httpSession ; final HttpSessionActivityImpl activity = new Http... |
public class AmazonSNSClient { /** * Allows a subscription owner to set an attribute of the subscription to a new value .
* @ param setSubscriptionAttributesRequest
* Input for SetSubscriptionAttributes action .
* @ return Result of the SetSubscriptionAttributes operation returned by the service .
* @ throws In... | request = beforeClientExecution ( request ) ; return executeSetSubscriptionAttributes ( request ) ; |
public class InputElement { /** * setter for question - sets
* @ generated */
public void setQuestion ( String v ) { } } | if ( InputElement_Type . featOkTst && ( ( InputElement_Type ) jcasType ) . casFeat_question == null ) jcasType . jcas . throwFeatMissing ( "question" , "edu.cmu.lti.oaqa.framework.types.InputElement" ) ; jcasType . ll_cas . ll_setStringValue ( addr , ( ( InputElement_Type ) jcasType ) . casFeatCode_question , v ) ; |
public class ContextAwarePolicyAdapter { /** * Method creating context aware policy using user provided policy with needed components .
* @ param policy
* Policy .
* @ param handler
* Publications handler .
* @ param extendingService
* Extender client .
* @ return Policy with suitable context . */
public ... | if ( policy instanceof UserProvidedPublicationBasedVerificationPolicy ) { throw new IllegalArgumentException ( "Unsupported verification policy." ) ; } Util . notNull ( handler , "Publications handler" ) ; Util . notNull ( extendingService , "Extending service" ) ; return new ContextAwarePolicyAdapter ( policy , new Po... |
public class Expression { /** * Create an equal to expression that evaluates whether or not the current expression
* is equal to the given expression .
* @ param expression the expression to compare with the current expression .
* @ return an equal to expression . */
@ NonNull public Expression equalTo ( @ NonNul... | if ( expression == null ) { throw new IllegalArgumentException ( "expression cannot be null." ) ; } return new BinaryExpression ( this , expression , BinaryExpression . OpType . EqualTo ) ; |
public class AlternativeAlignment { /** * Set apairs according to a list of ( i , j ) tuples .
* @ param jf a JoingFragment */
public void apairs_from_idxlst ( JointFragments jf ) { } } | List < int [ ] > il = jf . getIdxlist ( ) ; // System . out . println ( " Alt Alig apairs _ from _ idxlst " ) ;
aligpath = new IndexPair [ il . size ( ) ] ; idx1 = new int [ il . size ( ) ] ; idx2 = new int [ il . size ( ) ] ; for ( int i = 0 ; i < il . size ( ) ; i ++ ) { int [ ] p = il . get ( i ) ; // System . out .... |
public class Console { /** * 同 System . out . println ( ) 方法 , 打印控制台日志
* @ param t 异常对象
* @ param template 文本模板 , 被替换的部分用 { } 表示
* @ param values 值 */
public static void log ( Throwable t , String template , Object ... values ) { } } | out . println ( StrUtil . format ( template , values ) ) ; if ( null != t ) { t . printStackTrace ( ) ; out . flush ( ) ; } |
public class AbstractPrintWriter { /** * Writes a string followed by a newline . */
final public void println ( String s ) { } } | if ( s == null ) write ( _nullChars , 0 , _nullChars . length ) ; else write ( s , 0 , s . length ( ) ) ; println ( ) ; |
public class DBIDUtil { /** * Produce a random sample of the given DBIDs .
* @ param source Original DBIDs , no duplicates allowed
* @ param k k Parameter
* @ param seed Random generator seed
* @ return new DBIDs */
public static ModifiableDBIDs randomSample ( DBIDs source , int k , Long seed ) { } } | return randomSample ( source , k , seed != null ? new Random ( seed . longValue ( ) ) : new Random ( ) ) ; |
public class CommerceNotificationAttachmentLocalServiceUtil { /** * Returns a range of all the commerce notification attachments .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are i... | return getService ( ) . getCommerceNotificationAttachments ( start , end ) ; |
public class RendererUtils { /** * Find the enclosing form of a component
* in the view - tree .
* All Subclasses of < code > UIForm < / code > and all known
* form - families are searched for .
* Currently those are the Trinidad form family ,
* and the ( old ) ADF Faces form family .
* There might be addit... | UIComponent parent = uiComponent . getParent ( ) ; while ( parent != null && ( ! ADF_FORM_COMPONENT_FAMILY . equals ( parent . getFamily ( ) ) && ! TRINIDAD_FORM_COMPONENT_FAMILY . equals ( parent . getFamily ( ) ) && ! ( parent instanceof UIForm ) ) ) { parent = parent . getParent ( ) ; } if ( parent != null ) { // li... |
public class ClassHelper { /** * Check if the passed class is abstract or not . Note : interfaces and
* annotations are also considered as abstract whereas arrays are never
* abstract .
* @ param aClass
* The class to check .
* @ return < code > true < / code > if the passed class is abstract */
public static... | // Special case for arrays ( see documentation of Class . getModifiers : only
// final and interface are set , the rest is indeterministic )
return aClass != null && ! aClass . isArray ( ) && Modifier . isAbstract ( aClass . getModifiers ( ) ) ; |
public class MetadataStore { /** * Initialize the routing strategy map for system stores . This is used
* during get / put on system stores . */
private void initSystemRoutingStrategies ( Cluster cluster ) { } } | HashMap < String , RoutingStrategy > routingStrategyMap = createRoutingStrategyMap ( cluster , makeStoreDefinitionMap ( getSystemStoreDefList ( ) ) ) ; this . metadataCache . put ( SYSTEM_ROUTING_STRATEGY_KEY , new Versioned < Object > ( routingStrategyMap ) ) ; |
public class SipStack { /** * This method is used to create a SipPhone object . The SipPhone class simulates a SIP User Agent .
* The SipPhone object is used to communicate with other SIP agents . Using a SipPhone object , the
* test program can make one ( or more , in future ) outgoing calls or ( and , in future )... | return new SipPhone ( this , proxyHost , proxyProto , proxyPort , me ) ; |
public class AddFlowOutputsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AddFlowOutputsRequest addFlowOutputsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( addFlowOutputsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( addFlowOutputsRequest . getFlowArn ( ) , FLOWARN_BINDING ) ; protocolMarshaller . marshall ( addFlowOutputsRequest . getOutputs ( ) , OUTPUTS_BINDING ) ; } catch (... |
public class ModifyDBInstanceRequest { /** * The number of CPU cores and the number of threads per core for the DB instance class of the DB instance .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setProcessorFeatures ( java . util . Collection ) } or { @ l... | if ( this . processorFeatures == null ) { setProcessorFeatures ( new com . amazonaws . internal . SdkInternalList < ProcessorFeature > ( processorFeatures . length ) ) ; } for ( ProcessorFeature ele : processorFeatures ) { this . processorFeatures . add ( ele ) ; } return this ; |
public class ResponseBuilder { /** * Sets a standard { @ link Card } on the response with the specified title , content and image
* @ param cardTitle title for card
* @ param cardText text in the card
* @ param image image
* @ return response builder */
public ResponseBuilder withStandardCard ( String cardTitle... | this . card = StandardCard . builder ( ) . withText ( cardText ) . withImage ( image ) . withTitle ( cardTitle ) . build ( ) ; return this ; |
public class Tag { /** * Uint32 */
public void read ( RandomAccessFile myRandomAccessFile ) throws IOException { } } | TagIdentifier = BinaryTools . readUInt16AsInt ( myRandomAccessFile ) ; DescriptorVersion = BinaryTools . readUInt16AsInt ( myRandomAccessFile ) ; TagChecksum = ( short ) myRandomAccessFile . readUnsignedByte ( ) ; Reserved = myRandomAccessFile . readByte ( ) ; TagSerialNumber = BinaryTools . readUInt16AsInt ( myRandomA... |
public class Installer { /** * Install a cloud sdk ( only run this on LATEST ) . */
public void install ( ) throws CommandExitException , CommandExecutionException , InterruptedException { } } | List < String > command = new ArrayList < > ( installScriptProvider . getScriptCommandLine ( installedSdkRoot ) ) ; command . add ( "--path-update=false" ) ; // don ' t update user ' s path
command . add ( "--command-completion=false" ) ; // don ' t add command completion
command . add ( "--quiet" ) ; // don ' t accept... |
public class CommerceTaxMethodPersistenceImpl { /** * Returns the first commerce tax method in the ordered set where groupId = & # 63 ; and active = & # 63 ; .
* @ param groupId the group ID
* @ param active the active
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / c... | CommerceTaxMethod commerceTaxMethod = fetchByG_A_First ( groupId , active , orderByComparator ) ; if ( commerceTaxMethod != null ) { return commerceTaxMethod ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . appen... |
public class CallableStatementHandler { /** * { @ inheritDoc } */
@ Override public void setStatement ( Statement statement , QueryParameters params ) throws SQLException { } } | // setting in parameters
super . setStatement ( statement , params ) ; if ( statement instanceof CallableStatement ) { // registering out parameters
CallableStatement callStmt = ( CallableStatement ) statement ; String parameterName = null ; for ( int i = 0 ; i < params . orderSize ( ) ; i ++ ) { parameterName = params... |
public class CarbonClientImpl { /** * Send some XML
* @ param doc
* @ return
* @ throws CarbonException */
public CarbonReply send ( Element element ) throws CarbonException { } } | try { final String responseXml = send ( serialise ( element ) ) ; return new CarbonReply ( deserialise ( responseXml ) ) ; } catch ( CarbonException e ) { throw e ; } catch ( Exception e ) { throw new CarbonException ( e ) ; } |
public class DTMDocumentImpl { /** * Given an expanded name , return an ID . If the expanded - name does not
* exist in the internal tables , the entry will be created , and the ID will
* be returned . Any additional nodes that are created that have this
* expanded name will use this ID .
* @ return the expande... | // Create expanded name
// % TBD % jjk Expanded name is bitfield - encoded as
// typeID [ 6 ] nsuriID [ 10 ] localID [ 16 ] . Switch to that form , and to
// accessing the ns / local via their tables rather than confusing
// nsnames and expandednames .
String expandedName = namespace + ":" + localName ; int expandedNam... |
public class ConsonantUtil { /** * * * * * * BEGINNING OF FUNCTION * * * * * */
/ * / public static boolean is_kavargadi ( String str ) { } } | String s1 = VarnaUtil . getAdiVarna ( str ) ; if ( is_kavarga ( s1 ) ) return true ; return false ; |
public class Main { /** * Strategy method where we could use some smarts to find the war
* using known paths or maybe the local maven repository ? */
protected String findWar ( String ... paths ) { } } | if ( paths != null ) { for ( String path : paths ) { if ( path != null ) { File file = new File ( path ) ; if ( file . exists ( ) ) { if ( file . isFile ( ) ) { String name = file . getName ( ) ; if ( isWarFileName ( name ) ) { return file . getPath ( ) ; } } if ( file . isDirectory ( ) ) { // lets look for a war in th... |
public class RelationshipTypeProperty { /** * Retrieve the RDF { @ link Property } for the BEL { @ link RelationshipType } .
* @ param rtype { @ link RelationshipType } , the relationship type , which
* cannot be null
* @ return { @ link Property } the property for the { @ link RelationshipType }
* @ throws Inv... | if ( rtype == null ) { throw new InvalidArgument ( "rtype" , rtype ) ; } return TYPETOPROPERTY . get ( rtype ) ; |
public class XMLValueNode { /** * { @ inheritDoc } */
@ Override public void setValue ( String value ) { } } | if ( ! value . equals ( this . value ) ) { this . value = value ; if ( parent != null ) { parent . fireValueNodeChanged ( this ) ; } } |
public class IntermediateForm { /** * This method is used by the index update combiner and process an
* intermediate form into the current intermediate form . More specifically ,
* the input intermediate forms are a single - document ram index and / or a
* single delete term .
* @ param form the input intermedi... | if ( form . deleteList . size ( ) > 0 ) { deleteList . addAll ( form . deleteList ) ; } if ( form . dir . sizeInBytes ( ) > 0 ) { if ( writer == null ) { writer = createWriter ( ) ; } writer . addIndexesNoOptimize ( new Directory [ ] { form . dir } ) ; numDocs ++ ; } |
public class OpenCSVBatcherExample { /** * install the resource extension on the server */
public static void installResourceExtension ( String host , int port , String user , String password , Authentication authType ) throws IOException { } } | // create the client
DatabaseClient client = DatabaseClientFactory . newClient ( host , port , user , password , authType ) ; // create a manager for resource extensions
ResourceExtensionsManager resourceMgr = client . newServerConfigManager ( ) . newResourceExtensionsManager ( ) ; // specify metadata about the resourc... |
public class CasAssertionSecurityContext { /** * If enabled , convert CAS assertion person attributes into uPortal user attributes .
* @ param assertion the Assertion that was retrieved from the ThreadLocal . CANNOT be NULL . */
private void copyAssertionAttributesToUserAttributes ( Assertion assertion ) { } } | if ( ! copyAssertionAttributesToUserAttributes ) { return ; } // skip this if there are no attributes or if the attribute set is empty .
if ( assertion . getPrincipal ( ) . getAttributes ( ) == null || assertion . getPrincipal ( ) . getAttributes ( ) . isEmpty ( ) ) { return ; } Map < String , List < Object > > attribu... |
public class TransportMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Transport transport , ProtocolMarshaller protocolMarshaller ) { } } | if ( transport == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( transport . getMaxBitrate ( ) , MAXBITRATE_BINDING ) ; protocolMarshaller . marshall ( transport . getMaxLatency ( ) , MAXLATENCY_BINDING ) ; protocolMarshaller . marshall ( t... |
public class ExpectSteps { /** * Checks if an html element contains expected value .
* @ param page
* The concerned page of elementName
* @ param elementName
* The key of the PageElement to check
* @ param textOrKey
* Is the new data ( text or text in context ( after a save ) )
* @ param conditions
* li... | expectText ( Page . getInstance ( page ) . getPageElementByKey ( '-' + elementName ) , textOrKey ) ; |
public class EndpointImpl { /** * For both code - first and wsdl - first scenarios , reset the endpoint address
* so that it is written to the generated wsdl file . */
private void updateSoapAddress ( ) { } } | final SOAPAddressRewriteMetadata metadata = getSOAPAddressRewriteMetadata ( ) ; if ( metadata . isModifySOAPAddress ( ) ) { // - code - first handling
List < ServiceInfo > sevInfos = getServer ( ) . getEndpoint ( ) . getService ( ) . getServiceInfos ( ) ; for ( ServiceInfo si : sevInfos ) { Collection < EndpointInfo > ... |
public class ScalebarGraphic { /** * Render the scalebar .
* @ param mapContext The context of the map for which the scalebar is created .
* @ param scalebarParams The scalebar parameters .
* @ param tempFolder The directory in which the graphic file is created .
* @ param template The template that containts t... | final double dpi = mapContext . getDPI ( ) ; // get the map bounds
final Rectangle paintArea = new Rectangle ( mapContext . getMapSize ( ) ) ; MapBounds bounds = mapContext . getBounds ( ) ; final DistanceUnit mapUnit = getUnit ( bounds ) ; final Scale scale = bounds . getScale ( paintArea , PDF_DPI ) ; final double sc... |
public class SpeeDRF { /** * Build random forest for data stored on this node . */
public static void build ( final Key jobKey , final Key modelKey , final DRFParams drfParams , final Data localData , int ntrees , int numSplitFeatures , int [ ] rowsPerChunks ) { } } | Timer t_alltrees = new Timer ( ) ; Tree [ ] trees = new Tree [ ntrees ] ; Log . info ( Log . Tag . Sys . RANDF , "Building " + ntrees + " trees" ) ; Log . info ( Log . Tag . Sys . RANDF , "Number of split features: " + numSplitFeatures ) ; Log . info ( Log . Tag . Sys . RANDF , "Starting RF computation with " + localDa... |
public class DefaultApplicationContextBuilder { /** * Allow customizing the configurations that will be loaded .
* @ param configurations The configurations to include
* @ return This application */
@ Override public @ Nonnull ApplicationContextBuilder include ( @ Nullable String ... configurations ) { } } | if ( configurations != null ) { this . configurationIncludes . addAll ( Arrays . asList ( configurations ) ) ; } return this ; |
public class CmsMessageBundleEditorModel { /** * Handles a key change .
* @ param event the key change event .
* @ param allLanguages < code > true < / code > for changing the key for all languages , < code > false < / code > if the key should be changed only for the current language .
* @ return result , indicat... | if ( m_keyset . getKeySet ( ) . contains ( event . getNewValue ( ) ) ) { m_container . getItem ( event . getItemId ( ) ) . getItemProperty ( TableProperty . KEY ) . setValue ( event . getOldValue ( ) ) ; return KeyChangeResult . FAILED_DUPLICATED_KEY ; } if ( allLanguages && ! renameKeyForAllLanguages ( event . getOldV... |
public class PomProjectInputStream { /** * Skips bytes from the input stream until it finds the & lt ; project & gt ;
* element .
* @ throws IOException thrown if an I / O error occurs */
private void skipToProject ( ) throws IOException { } } | final byte [ ] buffer = new byte [ BUFFER_SIZE ] ; super . mark ( BUFFER_SIZE ) ; int count = super . read ( buffer , 0 , BUFFER_SIZE ) ; while ( count > 0 ) { final int pos = findSequence ( PROJECT , buffer ) ; if ( pos >= 0 ) { super . reset ( ) ; super . skip ( pos ) ; return ; } else if ( count - PROJECT . length =... |
public class AbstractParamContainerPanel { /** * Shows the panel with the given name .
* The previously shown panel ( if any ) is notified that it will be hidden .
* @ param panel the panel that will be notified that is now shown , must not be { @ code null } .
* @ param name the name of the panel that will be sh... | if ( currentShownPanel == panel ) { return ; } // ZAP : Notify previously shown panel that it was hidden
if ( currentShownPanel != null ) { currentShownPanel . onHide ( ) ; } nameLastSelectedPanel = name ; currentShownPanel = panel ; TreePath nodePath = new TreePath ( getTreeNodeFromPanelName ( name ) . getPath ( ) ) ;... |
public class StringUtility { /** * Word wraps a < code > String < / code > to be no longer than the provided number of characters wide .
* @ deprecated Use new version with Appendable for higher performance */
@ Deprecated public static String wordWrap ( String string , int width ) { } } | // Leave room for two word wrap characters every width / 2 characters , on average .
int inputLength = string . length ( ) ; int estimatedLines = 2 * inputLength / width ; int initialLength = inputLength + estimatedLines * 2 ; try { StringBuilder buffer = new StringBuilder ( initialLength ) ; wordWrap ( string , width ... |
public class FaultTolerantBlockPlacementPolicy { /** * Helper function to choose less occupied racks first . */
private boolean getGoodNode ( HashMap < String , HashSet < Node > > candidateNodesByRacks , boolean considerLoad , long blockSize , List < DatanodeDescriptor > results ) { } } | List < Map . Entry < String , HashSet < Node > > > sorted = new ArrayList < Map . Entry < String , HashSet < Node > > > ( ) ; for ( Map . Entry < String , HashSet < Node > > entry : candidateNodesByRacks . entrySet ( ) ) { sorted . add ( entry ) ; } Collections . sort ( sorted , new RackComparator ( blockSize ) ) ; int... |
public class SeleniumSpec { /** * Checks if { @ code expectedCount } webelements are found , with a location { @ code method } .
* @ param expectedCount
* @ param method
* @ param element
* @ throws IllegalAccessException
* @ throws IllegalArgumentException
* @ throws SecurityException
* @ throws NoSuchFi... | List < WebElement > wel = commonspec . locateElement ( method , element , expectedCount ) ; PreviousWebElements pwel = new PreviousWebElements ( wel ) ; commonspec . setPreviousWebElements ( pwel ) ; |
public class Utils { /** * Decode a base62 encoded string into a number ( base10 ) . ( More expensive than encoding )
* @ param s the string to decode
* @ return the number */
public static long decode ( String s ) { } } | long n = 0 ; for ( int i = 0 , max = s . length ( ) ; i < max ; i ++ ) { n = ( n * 62 ) + encoding . indexOf ( s . charAt ( i ) ) ; } return n ; |
public class SheetBindingErrors { /** * 配列やリストなどのインデックス付きのパスを1つ下位に移動します 。
* @ param subPath ネストするパス
* @ param index インデックス番号 ( 0から始まります 。 )
* @ throws IllegalArgumentException { @ literal subPath is empty or index < 0} */
public void pushNestedPath ( final String subPath , final int index ) { } } | final String canonicalPath = normalizePath ( subPath ) ; ArgUtils . notEmpty ( subPath , "subPath" ) ; ArgUtils . notMin ( index , - 1 , "index" ) ; pushNestedPath ( String . format ( "%s[%d]" , canonicalPath , index ) ) ; |
public class StringUtils { /** * Replaces the char c in the string S , if it ' s the first character in the string .
* @ param s The string to search
* @ param c The character to replace
* @ param replacement The string to replace the character in S
* @ return The string with the character replaced ( or the ori... | return s . charAt ( 0 ) == c ? replacement + s . substring ( 1 ) : s ; |
public class DssatTFileInput { /** * DSSAT TFile Data input method for Controller using
* @ param brMap The holder for BufferReader objects for all files
* @ return result data holder object
* @ throws java . io . IOException */
@ Override protected HashMap readFile ( HashMap brMap ) throws IOException { } } | HashMap ret = new HashMap ( ) ; ArrayList < HashMap > expArr = new ArrayList < HashMap > ( ) ; HashMap < String , HashMap > files = readObvData ( brMap ) ; // compressData ( file ) ;
ArrayList < HashMap > obvData ; HashMap obv ; HashMap expData ; for ( String exname : files . keySet ( ) ) { obvData = ( ArrayList ) file... |
public class PacketParserUtils { /** * Parse the Compression Feature reported from the server .
* @ param parser the XML parser , positioned at the start of the compression stanza .
* @ return The CompressionFeature stream element
* @ throws IOException
* @ throws XmlPullParserException if an exception occurs w... | assert ( parser . getEventType ( ) == XmlPullParser . START_TAG ) ; String name ; final int initialDepth = parser . getDepth ( ) ; List < String > methods = new LinkedList < > ( ) ; outerloop : while ( true ) { int eventType = parser . next ( ) ; switch ( eventType ) { case XmlPullParser . START_TAG : name = parser . g... |
public class URLClassLoaderHandler { /** * Find the classpath entries for the associated { @ link ClassLoader } .
* @ param classLoader
* the { @ link ClassLoader } to find the classpath entries order for .
* @ param classpathOrder
* a { @ link ClasspathOrder } object to update .
* @ param scanSpec
* the { ... | final URL [ ] urls = ( ( URLClassLoader ) classLoader ) . getURLs ( ) ; if ( urls != null ) { for ( final URL url : urls ) { if ( url != null ) { classpathOrder . addClasspathEntry ( url . toString ( ) , classLoader , scanSpec , log ) ; } } } |
public class AJP13Packet { public void setDataSize ( int s ) { } } | _bytes = s + __HDR_SIZE ; if ( _buf [ 4 ] == __SEND_BODY_CHUNK ) s = s + 1 ; _buf [ 2 ] = ( byte ) ( ( s >> 8 ) & 0xFF ) ; _buf [ 3 ] = ( byte ) ( s & 0xFF ) ; if ( _buf [ 4 ] == __SEND_BODY_CHUNK ) { s = s - 4 ; _buf [ 5 ] = ( byte ) ( ( s >> 8 ) & 0xFF ) ; _buf [ 6 ] = ( byte ) ( s & 0xFF ) ; } |
public class DefaultFastFileStorageClient { /** * 生成缩略图
* @ param inputStream
* @ param thumbImage
* @ return
* @ throws IOException */
private ByteArrayInputStream generateThumbImageStream ( InputStream inputStream , ThumbImage thumbImage ) throws IOException { } } | // 根据传入配置生成缩略图
if ( thumbImage . isDefaultConfig ( ) ) { // 在中间修改配置 , 这里不是一个很好的实践 , 如果有时间再进行优化
thumbImage . setDefaultSize ( thumbImageConfig . getWidth ( ) , thumbImageConfig . getHeight ( ) ) ; return generateThumbImageByDefault ( inputStream ) ; } else if ( thumbImage . getPercent ( ) != 0 ) { return generateThumbIm... |
public class AbstractCLA { /** * { @ inheritDoc } */
@ SuppressWarnings ( "unchecked" ) @ Override public void setObject ( final Object valueAsObject ) { } } | setParsed ( true ) ; getValues ( ) . add ( ( E ) valueAsObject ) ; |
public class CommercePaymentMethodGroupRelUtil { /** * Returns the commerce payment method group rel where groupId = & # 63 ; and engineKey = & # 63 ; or returns < code > null < / code > if it could not be found , optionally using the finder cache .
* @ param groupId the group ID
* @ param engineKey the engine key ... | return getPersistence ( ) . fetchByG_E ( groupId , engineKey , retrieveFromCache ) ; |
public class BaseFMap { /** * = = = = = COLLECTION VIEWS = = = = = */
public ViewFSet < K > keySet ( ) { } } | if ( keyView == null ) { keyView = new LinkedHashViewFSet < > ( inner . keySet ( ) ) ; } return keyView ; |
public class AWSWAFRegionalClient { /** * Returns an array of < a > ActivatedRule < / a > objects .
* @ param listActivatedRulesInRuleGroupRequest
* @ return Result of the ListActivatedRulesInRuleGroup operation returned by the service .
* @ throws WAFInternalErrorException
* The operation failed because of a s... | request = beforeClientExecution ( request ) ; return executeListActivatedRulesInRuleGroup ( request ) ; |
public class HttpRequest { /** * 发送普通表单内容
* @ param out 输出流
* @ throws IOException */
private void writeForm ( OutputStream out ) throws IOException { } } | if ( CollectionUtil . isNotEmpty ( this . form ) ) { StringBuilder builder = StrUtil . builder ( ) ; for ( Entry < String , Object > entry : this . form . entrySet ( ) ) { builder . append ( "--" ) . append ( BOUNDARY ) . append ( StrUtil . CRLF ) ; builder . append ( StrUtil . format ( CONTENT_DISPOSITION_TEMPLATE , e... |
public class HashCalculator { /** * Calculates 3 hashes for the given bytes :
* 1 . Hash of the file without new lines and whitespaces
* 2 . Hash of the most significant bits of the file without new lines and whitespaces
* 3 . Hash of the least significant bits of the file without new lines and whitespaces
* @ ... | HashCalculationResult result = null ; // Remove white spaces
byte [ ] bytesWithoutSpaces = stripWhiteSpaces ( bytes ) ; long fileSize = bytesWithoutSpaces . length ; if ( fileSize < FILE_MIN_SIZE_THRESHOLD ) { // Ignore files smaller 1/2 kb
logger . debug ( "Ignoring file with size " + FileUtils . byteCountToDisplaySiz... |
public class Get { /** * Executes a getter ( < tt > getX ( ) < / tt > ) on the target object which returns String .
* 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
* @ retur... | return new Get < Object , String > ( Types . STRING , attributeName ) ; |
public class Internal { /** * Returns a set of scanners , one for each bucket if salted , or one scanner
* if salting is disabled .
* @ see TsdbQuery # getScanner ( ) */
public static List < Scanner > getScanners ( final Query query ) { } } | final List < Scanner > scanners = new ArrayList < Scanner > ( Const . SALT_WIDTH ( ) > 0 ? Const . SALT_BUCKETS ( ) : 1 ) ; if ( Const . SALT_WIDTH ( ) > 0 ) { for ( int i = 0 ; i < Const . SALT_BUCKETS ( ) ; i ++ ) { scanners . add ( ( ( TsdbQuery ) query ) . getScanner ( i ) ) ; } } else { scanners . add ( ( ( TsdbQu... |
public class StringUtil { /** * Converts the specified byte array into a hexadecimal value . */
public static String toHexStringPadded ( byte [ ] src , int offset , int length ) { } } | return toHexStringPadded ( new StringBuilder ( length << 1 ) , src , offset , length ) . toString ( ) ; |
public class IntervalTree { /** * / * [ deutsch ]
* < p > Liefert eine Liste aller gespeicherten Intervalle , die sich mit dem angegebenen Suchintervall
* & uuml ; berschneiden . < / p >
* @ param interval the search interval
* @ return unmodifiable list of all stored intervals which intersect the search interv... | // trivial case
if ( interval . isEmpty ( ) ) { return Collections . emptyList ( ) ; } // make search interval half - open
T low = interval . getStart ( ) . getTemporal ( ) ; T high = interval . getEnd ( ) . getTemporal ( ) ; if ( ( low != null ) && interval . getStart ( ) . isOpen ( ) ) { low = this . timeLine . stepF... |
public class ProgrammaticWrappingProxyInstaller { /** * Wrap a class doc .
* @ param source the source
* @ return the wrapper . */
public ClassDoc wrap ( ClassDoc source ) { } } | if ( source == null || source instanceof Proxy < ? > || ! ( source instanceof ClassDocImpl ) ) { return source ; } return new ClassDocWrapper ( ( ClassDocImpl ) source ) ; |
public class GVRContext { /** * Throws an exception if the current thread is not a GL thread .
* @ since 1.6.5 */
public void assertGLThread ( ) { } } | if ( Thread . currentThread ( ) . getId ( ) != mGLThreadID ) { RuntimeException e = new RuntimeException ( "Should not run GL functions from a non-GL thread!" ) ; e . printStackTrace ( ) ; throw e ; } |
public class FIMTDDNumericAttributeClassObserver { /** * Recursive method that first checks all of a node ' s children before
* deciding if it is ' bad ' and may be removed */
private boolean removeBadSplitNodes ( SplitCriterion criterion , Node currentNode , double lastCheckRatio , double lastCheckSDR , double lastC... | boolean isBad = false ; if ( currentNode == null ) { return true ; } if ( currentNode . left != null ) { isBad = removeBadSplitNodes ( criterion , currentNode . left , lastCheckRatio , lastCheckSDR , lastCheckE ) ; } if ( currentNode . right != null && isBad ) { isBad = removeBadSplitNodes ( criterion , currentNode . l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.