signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ConfigViewImpl { /** * Supply explicit properties object for introspection and outrespection .
* @ param properties The properties .
* @ return This view . */
public ConfigViewImpl withProperties ( Properties properties ) { } } | if ( properties != null ) { this . properties = properties ; this . strategy . withProperties ( properties ) ; } return this ; |
public class Client { /** * Creates a Privilege
* @ param name
* The name of this privilege .
* @ param version
* The version for the privilege schema . Set to 2018-05-18.
* @ param statements
* A list of Statement objects or HashMap < String , Object >
* @ return Created Privilege
* @ throws OAuthSyste... | cleanError ( ) ; prepareToken ( ) ; OneloginURLConnectionClient httpClient = new OneloginURLConnectionClient ( ) ; OAuthClient oAuthClient = new OAuthClient ( httpClient ) ; URIBuilder url = new URIBuilder ( settings . getURL ( Constants . CREATE_PRIVILEGE_URL ) ) ; OAuthClientRequest bearerRequest = new OAuthBearerCli... |
public class ToolbarRadioAction { @ Override public void setSelected ( boolean selected ) { } } | if ( selected ) { ( ( ToolbarModalAction ) toolbarAction ) . onSelect ( null ) ; } else { ( ( ToolbarModalAction ) toolbarAction ) . onDeselect ( null ) ; } |
public class RequiredParameters { /** * Build a help text for the defined parameters .
* < p > The format of the help text will be :
* Required Parameters :
* \ t - : shortName : , - - : name : \ t : helpText : \ t default : : defaultValue : \ t choices : : choices : \ n
* @ return a formatted help String . */
... | StringBuilder sb = new StringBuilder ( data . size ( ) * HELP_TEXT_LENGTH_PER_PARAM ) ; sb . append ( "Required Parameters:" ) ; sb . append ( HELP_TEXT_LINE_DELIMITER ) ; for ( Option o : data . values ( ) ) { sb . append ( this . helpText ( o ) ) ; } sb . append ( HELP_TEXT_LINE_DELIMITER ) ; return sb . toString ( )... |
public class EhCacheWrapper { /** * ( non - Javadoc )
* @ see javax . persistence . Cache # contains ( java . lang . Class , java . lang . Object ) */
@ Override public boolean contains ( Class arg0 , Object arg1 ) { } } | if ( isAlive ( ) ) { return ( ehcache . get ( arg1 ) != null ) ; } return false ; |
public class AggregationFromAnnotationsParser { /** * General purpose function matching is done through FunctionRegistry . */
@ VisibleForTesting public static ParametricAggregation parseFunctionDefinitionWithTypesConstraint ( Class < ? > clazz , TypeSignature returnType , List < TypeSignature > argumentTypes ) { } } | requireNonNull ( returnType , "returnType is null" ) ; requireNonNull ( argumentTypes , "argumentTypes is null" ) ; for ( ParametricAggregation aggregation : parseFunctionDefinitions ( clazz ) ) { if ( aggregation . getSignature ( ) . getReturnType ( ) . equals ( returnType ) && aggregation . getSignature ( ) . getArgu... |
public class ArtifactManagingServiceImpl { /** * ( non - Javadoc )
* @ see org . exoplatform . services . jcr . ext . maven . ArtifactManagingService # importArtifacts
* ( org . exoplatform . services . jcr . ext . common . SessionProvider , java . io . InputStream ) */
public void importArtifacts ( SessionProvider... | LOG . info ( "Extract repository to temporary folder" ) ; String path = System . getProperty ( "java.io.tmpdir" ) + File . separator + "maven2" ; File temporaryFolder = new File ( getUniqueFilename ( path ) ) ; if ( ! temporaryFolder . mkdir ( ) ) { throw new FileNotFoundException ( "Cannot create temporary folder" ) ;... |
public class XPathQueryBuilder { /** * Unescapes single or double quotes depending on how < code > literal < / code >
* is enclosed and strips enclosing quotes .
* Examples : < br >
* < code > " foo " " bar " < / code > - & gt ; < code > foo " bar < / code > < br >
* < code > ' foo ' ' bar ' < / code > - & gt ;... | String value = literal . substring ( 1 , literal . length ( ) - 1 ) ; if ( value . length ( ) == 0 ) { // empty string
return value ; } if ( literal . charAt ( 0 ) == '"' ) { value = value . replaceAll ( "\"\"" , "\"" ) ; } else { value = value . replaceAll ( "''" , "'" ) ; } return value ; |
public class BaseLevel3 { /** * ? trsm solves one of the following matrix equations :
* op ( a ) * x = alpha * b or x * op ( a ) = alpha * b ,
* where x and b are m - by - n general matrices , and a is triangular ;
* op ( a ) must be an m - by - m matrix , if side = ' L ' or ' l '
* op ( a ) must be an n - by -... | if ( Nd4j . getExecutioner ( ) . getProfilingMode ( ) == OpExecutioner . ProfilingMode . ALL ) OpProfiler . getInstance ( ) . processBlasCall ( false , A , B ) ; // FIXME : int cast
if ( A . data ( ) . dataType ( ) == DataType . DOUBLE ) { DefaultOpExecutioner . validateDataType ( DataType . DOUBLE , A , B ) ; dtrsm ( ... |
public class TelegramBot { /** * This allows you to edit the text of a message you have already sent previously
* @ param oldMessage The Message object that represents the message you want to edit
* @ param text The new text you want to display
* @ param parseMode The ParseMode that should be used with this new t... | return this . editMessageText ( oldMessage . getChat ( ) . getId ( ) , oldMessage . getMessageId ( ) , text , parseMode , disableWebPagePreview , inlineReplyMarkup ) ; |
public class ThriftInvertedIndexHandler { /** * / * ( non - Javadoc )
* @ see com . impetus . client . cassandra . index . InvertedIndexHandlerBase # getSuperColumnForRow ( org . apache . cassandra . thrift . ConsistencyLevel , java . lang . String , java . lang . String , byte [ ] , java . lang . String ) */
@ Overr... | ColumnPath cp = new ColumnPath ( columnFamilyName ) ; cp . setSuper_column ( superColumnName ) ; ColumnOrSuperColumn cosc = null ; Connection conn = thriftClient . getConnection ( ) ; try { cosc = conn . getClient ( ) . get ( ByteBuffer . wrap ( rowKey . getBytes ( ) ) , cp , consistencyLevel ) ; } catch ( InvalidReque... |
public class Plane4f { /** * Set this pane to be coplanar with all the three specified points .
* @ param p1x is a point on the plane
* @ param p1y is a point on the plane
* @ param p1z is a point on the plane
* @ param p2x is a point on the plane
* @ param p2y is a point on the plane
* @ param p2z is a poi... | Vector3f v = new Vector3f ( ) ; FunctionalVector3D . crossProduct ( p2x - p1x , p2y - p1y , p2z - p1z , p3x - p1x , p3y - p1y , p3z - p1z , v ) ; this . a = v . getX ( ) ; this . b = v . getY ( ) ; this . c = v . getZ ( ) ; this . d = - ( this . a * p1x + this . b * p1y + this . c * p1z ) ; normalize ( ) ; |
public class RoutingServlet { /** * Performs custom processing when a route was not matched .
* Detects 404s , also useful for handling special cases like 405 errors if we detect the route would match for a
* different HTTP method .
* @ return { @ code true } if the response handler should be invoked , { @ code f... | // If this resource matches a different method [ s ] , error out specially
List < HttpMethod > otherHttpMethods = new ArrayList < > ( HttpMethod . values ( ) . length ) ; for ( HttpMethod otherHttpMethod : HttpMethod . values ( ) ) if ( httpMethod != otherHttpMethod && routeMatcher . match ( otherHttpMethod , requestPa... |
public class FactoryThresholdBinary { /** * Applies a local Otsu threshold
* @ see ThresholdLocalOtsu
* @ param regionWidth About how wide and tall you wish a block to be in pixels .
* @ param scale Scale factor adjust for threshold . 1.0 means no change .
* @ param down Should it threshold up or down .
* @ p... | if ( BOverrideFactoryThresholdBinary . localOtsu != null ) return BOverrideFactoryThresholdBinary . localOtsu . handle ( otsu2 , regionWidth , tuning , scale , down , inputType ) ; ThresholdLocalOtsu otsu ; if ( BoofConcurrency . USE_CONCURRENT ) { otsu = new ThresholdLocalOtsu_MT ( otsu2 , regionWidth , tuning , scale... |
public class RuleBasedTimeZone { /** * { @ inheritDoc } */
@ Override public TimeZoneTransition getNextTransition ( long base , boolean inclusive ) { } } | complete ( ) ; if ( historicTransitions == null ) { return null ; } boolean isFinal = false ; TimeZoneTransition result ; TimeZoneTransition tzt = historicTransitions . get ( 0 ) ; long tt = tzt . getTime ( ) ; if ( tt > base || ( inclusive && tt == base ) ) { result = tzt ; } else { int idx = historicTransitions . siz... |
public class AbstractJaxRsResourceProvider { /** * Read the current state of the resource
* @ param id the id of the resource to read
* @ return the response
* @ see < a href = " https : / / www . hl7 . org / fhir / http . html # read " > https : / / www . hl7 . org / fhir / http . html # read < / a > */
@ GET @ ... | return execute ( getResourceRequest ( RequestTypeEnum . GET , RestOperationTypeEnum . READ ) . id ( id ) ) ; |
public class JOGLTypeConversions { /** * Convert blend functions from GL constants .
* @ param type The GL constant .
* @ return The value . */
public static JCGLBlendFunction blendFunctionFromGL ( final int type ) { } } | switch ( type ) { case GL2ES2 . GL_CONSTANT_ALPHA : return JCGLBlendFunction . BLEND_CONSTANT_ALPHA ; case GL2ES2 . GL_CONSTANT_COLOR : return JCGLBlendFunction . BLEND_CONSTANT_COLOR ; case GL . GL_DST_ALPHA : return JCGLBlendFunction . BLEND_DESTINATION_ALPHA ; case GL . GL_DST_COLOR : return JCGLBlendFunction . BLEN... |
public class CrafterXStreamMarshaller { /** * Returns true if the specified class :
* < ol >
* < li > < / li >
* < li > Is NOT the same , a subclass or subinterface of one of the unsupported classes . < / li >
* < li > Is the the same , a subclass or subinterface of one of the supported classes . < / li >
* <... | if ( ArrayUtils . isNotEmpty ( unsupportedClasses ) ) { for ( Class unsupportedClass : unsupportedClasses ) { if ( unsupportedClass . isAssignableFrom ( clazz ) ) { return false ; } } } return super . supports ( clazz ) ; |
public class ConfigurationPropertySources { /** * Return { @ link Iterable } containing a single new { @ link ConfigurationPropertySource }
* adapted from the given Spring { @ link PropertySource } .
* @ param source the Spring property source to adapt
* @ return an { @ link Iterable } containing a single newly a... | return Collections . singleton ( SpringConfigurationPropertySource . from ( source ) ) ; |
public class MetricServiceClient { /** * Lists metric descriptors that match a filter . This method does not require a Stackdriver
* account .
* < p > Sample code :
* < pre > < code >
* try ( MetricServiceClient metricServiceClient = MetricServiceClient . create ( ) ) {
* ProjectName name = ProjectName . of (... | ListMetricDescriptorsRequest request = ListMetricDescriptorsRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return listMetricDescriptors ( request ) ; |
public class FormatTag { /** * Returns the locale based on the country and language .
* @ return the locale */
public Locale getLocale ( ) throws JspException { } } | Locale loc = null ; if ( _language != null || _country != null ) { // language is required
if ( _language == null ) { String s = Bundle . getString ( "Tags_LocaleRequiresLanguage" , new Object [ ] { _country } ) ; registerTagError ( s , null ) ; return super . getUserLocale ( ) ; } if ( _country == null ) loc = new Loc... |
public class NumberBoundaryStage { /** * Method canParse .
* @ param threshold String
* @ return boolean */
@ Override public boolean canParse ( final String threshold ) { } } | if ( threshold == null || threshold . isEmpty ( ) ) { return false ; } switch ( threshold . charAt ( 0 ) ) { case '+' : case '-' : return ! ( threshold . startsWith ( "-inf" ) || threshold . startsWith ( "+inf" ) ) ; default : return Character . isDigit ( threshold . charAt ( 0 ) ) ; } |
public class HttpRequester { /** * Gets response as string .
* @ param uri the uri
* @ param header the header
* @ return the response as string */
public static String getResponseAsString ( URI uri , Header header ) { } } | return getResponseAsString ( uri . toString ( ) , header ) ; |
public class Criteria { /** * NOT IN Criteria with SubQuery
* @ param attribute The field name to be used
* @ param subQuery The subQuery */
public void addNotIn ( String attribute , Query subQuery ) { } } | // PAW
// addSelectionCriteria ( ValueCriteria . buildNotInCriteria ( attribute , subQuery , getAlias ( ) ) ) ;
addSelectionCriteria ( ValueCriteria . buildNotInCriteria ( attribute , subQuery , getUserAlias ( attribute ) ) ) ; |
public class HTTaxinvoiceServiceImp { /** * ( non - Javadoc )
* @ see com . popbill . api . HTTaxinvoiceService # deleteDeptUser ( java . lang . String ) */
public Response deleteDeptUser ( String corpNum ) throws PopbillException { } } | if ( corpNum == null || corpNum . isEmpty ( ) ) throw new PopbillException ( - 99999999 , "연동회원 사업자번호(corpNum)가 입력되지 않았습니다." ) ; return httppost ( "/HomeTax/Taxinvoice/DeptUser" , corpNum , null , null , "DELETE" , Response . class ) ; |
public class AbstractCubicSpline { /** * Updates points
* @ param points */
private void update ( double ... points ) { } } | checkInput ( points ) ; if ( ! closed ) { this . injection = checkInjection ( points , 0 ) ; } double [ ] cp = createControlPoints ( points ) ; init ( cp ) ; |
public class JBossASClient { /** * Convienence method that allows you to create request that reads a single attribute
* value to a resource .
* @ param runtime if < code > true < / code > , the attribute is a runtime attribute
* @ param attributeName the name of the attribute whose value is to be read
* @ param... | final ModelNode op = createRequest ( READ_ATTRIBUTE , address ) ; op . get ( "include-runtime" ) . set ( runtime ) ; op . get ( NAME ) . set ( attributeName ) ; return op ; |
public class MathUtil { /** * Determine if the requested { @ code index } and { @ code length } will fit within { @ code capacity } .
* @ param index The starting index .
* @ param length The length which will be utilized ( starting from { @ code index } ) .
* @ param capacity The capacity that { @ code index + l... | return ( index | length | ( index + length ) | ( capacity - ( index + length ) ) ) < 0 ; |
public class CodedInputStream { /** * Read an embedded message field value from the stream . */
public void readMessage ( final MessageLite . Builder builder , final ExtensionRegistryLite extensionRegistry ) throws IOException { } } | final int length = readRawVarint32 ( ) ; if ( recursionDepth >= recursionLimit ) { throw InvalidProtocolBufferException . recursionLimitExceeded ( ) ; } final int oldLimit = pushLimit ( length ) ; ++ recursionDepth ; builder . mergeFrom ( this , extensionRegistry ) ; checkLastTagWas ( 0 ) ; -- recursionDepth ; popLimit... |
public class AwesomeTextView { /** * Sets the text to display a MaterialIcon , replacing whatever text is already present .
* Used to set the text to display a MaterialIcon Icon .
* @ param iconCode the fontawesome icon code e . g . " md _ share " */
public void setMaterialIcon ( @ FontAwesome . Icon CharSequence i... | setBootstrapText ( new BootstrapText . Builder ( getContext ( ) , isInEditMode ( ) ) . addMaterialIcon ( iconCode ) . build ( ) ) ; |
public class AwsSecurityFindingFilters { /** * The canonical AWS partition name to which the region is assigned .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setResourcePartition ( java . util . Collection ) } or { @ link # withResourcePartition ( java . ... | if ( this . resourcePartition == null ) { setResourcePartition ( new java . util . ArrayList < StringFilter > ( resourcePartition . length ) ) ; } for ( StringFilter ele : resourcePartition ) { this . resourcePartition . add ( ele ) ; } return this ; |
public class SQLUtils { /** * Method returning the host surrounded by square brackets if ' dbServer ' is IPv6 format .
* Otherwise the returned string will be the same .
* @ return */
public static String getIPv4OrIPv6WithSquareBracketsHost ( String dbServer ) { } } | final Address address = new Address ( dbServer ) ; return address . getURIIPV6Literal ( ) ; |
public class Cards { /** * 获取卡券背景颜色列表
* @ return */
public List < Color > listColors ( ) { } } | String url = WxEndpoint . get ( "url.card.colors.get" ) ; logger . debug ( "list colors." ) ; String response = wxClient . get ( url ) ; ColorWrapper colorWrapper = JsonMapper . defaultMapper ( ) . fromJson ( response , ColorWrapper . class ) ; return colorWrapper . getColors ( ) ; |
public class LinkedList { /** * Inserts the object into a new element after the provided element .
* @ param previous Element which will be before the new one
* @ param object The object which goes into the new element
* @ return The new element */
public Element < T > insertAfter ( Element < T > previous , T obj... | Element < T > e = requestNew ( ) ; e . object = object ; e . previous = previous ; e . next = previous . next ; if ( e . next != null ) { e . next . previous = e ; } else { last = e ; } previous . next = e ; size ++ ; return e ; |
public class ParsedColInfo { /** * Construct a ParsedColInfo from Volt XML . */
static public ParsedColInfo fromOrderByXml ( AbstractParsedStmt parsedStmt , VoltXMLElement orderByXml ) { } } | // A generic adjuster that just calls finalizeValueTypes
ExpressionAdjuster adjuster = new ExpressionAdjuster ( ) { @ Override public AbstractExpression adjust ( AbstractExpression expr ) { ExpressionUtil . finalizeValueTypes ( expr ) ; return expr ; } } ; return fromOrderByXml ( parsedStmt , orderByXml , adjuster ) ; |
public class ArrayUtil { /** * Sum double [ ] .
* @ param a the a
* @ param b the b
* @ return the double [ ] */
@ javax . annotation . Nonnull public static double [ ] sum ( @ javax . annotation . Nonnull final double [ ] a , final double b ) { } } | return com . simiacryptus . util . ArrayUtil . op ( a , ( x ) -> x + b ) ; |
public class Sneaky { /** * Wrap a { @ link CheckedToDoubleFunction } in a { @ link ToDoubleFunction } .
* Example :
* < code > < pre >
* map . computeIfAbsent ( " key " , Unchecked . toDoubleFunction ( k - > {
* if ( k . length ( ) > 10)
* throw new Exception ( " Only short strings allowed " ) ;
* return 4... | return Unchecked . toDoubleFunction ( function , Unchecked . RETHROW_ALL ) ; |
public class InternalXtextParser { /** * InternalXtext . g : 1758:1 : entryRuleDisjunction returns [ EObject current = null ] : iv _ ruleDisjunction = ruleDisjunction EOF ; */
public final EObject entryRuleDisjunction ( ) throws RecognitionException { } } | EObject current = null ; EObject iv_ruleDisjunction = null ; try { // InternalXtext . g : 1758:52 : ( iv _ ruleDisjunction = ruleDisjunction EOF )
// InternalXtext . g : 1759:2 : iv _ ruleDisjunction = ruleDisjunction EOF
{ newCompositeNode ( grammarAccess . getDisjunctionRule ( ) ) ; pushFollow ( FollowSets000 . FOLLO... |
public class RepositoryModule { /** * Allows to load executor only if required jars are in classpath .
* For example , no need for graph dependencies if only object db is used .
* @ param executorBinder executor binder class
* @ see ru . vyarus . guice . persist . orient . support . repository . ObjectExecutorBin... | try { final Method bindExecutor = RepositoryModule . class . getDeclaredMethod ( "bindExecutor" , Class . class ) ; bindExecutor . setAccessible ( true ) ; try { Class . forName ( executorBinder ) . getConstructor ( RepositoryModule . class , Method . class ) . newInstance ( this , bindExecutor ) ; } finally { bindExec... |
public class SwaggerMethodParser { /** * Get whether or not the provided response status code is one of the expected status codes for
* this Swagger method .
* @ param responseStatusCode the status code that was returned in the HTTP response
* @ param additionalAllowedStatusCodes an additional set of allowed stat... | boolean result ; if ( expectedStatusCodes == null ) { result = ( responseStatusCode < 400 ) ; } else { result = contains ( expectedStatusCodes , responseStatusCode ) || contains ( additionalAllowedStatusCodes , responseStatusCode ) ; } return result ; |
public class ZipFileWalker { /** * Run the ZipFileWalker using the given OutputHandler
* @ param outputHandler For every file that is found in the
* Zip - file , the method found ( ) in the { @ link OutputHandler }
* is invoked .
* @ return true if processing was stopped because of a found file ,
* false if n... | try ( ZipFile zipFile = new ZipFile ( zip ) ) { // walk all entries and look for matches
Enumeration < ? extends ZipEntry > entries = zipFile . entries ( ) ; while ( entries . hasMoreElements ( ) ) { ZipEntry entry = entries . nextElement ( ) ; // first check if the file matches the name , if a name - pattern is given
... |
public class Calendar { /** * Removes the entries returned by the iterator from the calendar . This is basically just a convenience
* method as the actual work of removing an entry from a calendar is done inside { @ link Entry # setCalendar ( Calendar ) } .
* @ param entries the entries to remove */
public final vo... | if ( entries != null ) { while ( entries . hasNext ( ) ) { removeEntry ( entries . next ( ) ) ; } } |
public class DescribeCertificatesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeCertificatesRequest describeCertificatesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeCertificatesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeCertificatesRequest . getFilters ( ) , FILTERS_BINDING ) ; protocolMarshaller . marshall ( describeCertificatesRequest . getMaxRecords ( ) , MAXRECOR... |
public class StreamCopier { /** * Execute the copy of bytes from the input to the output stream . If maxBytes is specified , limits the number of
* bytes copied to maxBytes .
* Note : this method should only be called once . Further calls will throw a { @ link IllegalStateException } .
* @ return Number of bytes ... | if ( this . copied ) { throw new IllegalStateException ( String . format ( "%s already copied." , StreamCopier . class . getName ( ) ) ) ; } this . copied = true ; try { long numBytes = 0 ; long totalBytes = 0 ; final ByteBuffer buffer = ByteBuffer . allocateDirect ( this . bufferSize ) ; // Only keep copying if we ' v... |
public class SSLChannelProvider { /** * Access the event service .
* @ return EventEngine - null if not found */
public static EventEngine getEventService ( ) { } } | SSLChannelProvider p = instance . get ( ) ; if ( p != null ) return p . eventService ; throw new IllegalStateException ( "Requested service is null: no active component instance" ) ; |
public class AmazonCloudDirectoryClient { /** * Upgrades a published schema under a new minor version revision using the current contents of
* < code > DevelopmentSchemaArn < / code > .
* @ param upgradePublishedSchemaRequest
* @ return Result of the UpgradePublishedSchema operation returned by the service .
* ... | request = beforeClientExecution ( request ) ; return executeUpgradePublishedSchema ( request ) ; |
public class FastSet { /** * { @ inheritDoc } */
@ Override public int last ( ) { } } | if ( isEmpty ( ) ) { throw new NoSuchElementException ( ) ; } return multiplyByWordSize ( firstEmptyWord - 1 ) + ( WORD_SIZE - Integer . numberOfLeadingZeros ( words [ firstEmptyWord - 1 ] ) ) - 1 ; |
public class FormatUtil { /** * Formats the string array d with the specified separator .
* @ param d the string array to be formatted
* @ param sep separator between the single values of the array , e . g . ' , '
* @ return a String representing the string array d */
public static String format ( String [ ] d , ... | if ( d == null ) { return "null" ; } if ( d . length == 0 ) { return "" ; } if ( d . length == 1 ) { return d [ 0 ] ; } int len = sep . length ( ) * ( d . length - 1 ) ; for ( String s : d ) { len += s . length ( ) ; } StringBuilder buffer = new StringBuilder ( len ) . append ( d [ 0 ] ) ; for ( int i = 1 ; i < d . len... |
public class OjbTagsHandler { /** * Processes the template for all table definitions in the torque model .
* @ param template The template
* @ param attributes The attributes of the tag
* @ exception XDocletException if an error occurs
* @ doc . tag type = " block " */
public void forAllTables ( String template... | for ( Iterator it = _torqueModel . getTables ( ) ; it . hasNext ( ) ; ) { _curTableDef = ( TableDef ) it . next ( ) ; generate ( template ) ; } _curTableDef = null ; |
public class Maybes { /** * Get an Iterator for the value ( if any ) in the provided Maybe
* @ param pub Maybe to get Iterator for
* @ return Iterator over Maybe value */
public static < T > Iterator < T > iterator ( Maybe < T > pub ) { } } | return pub . toFlowable ( ) . blockingIterable ( ) . iterator ( ) ; |
public class CmsDisplayTypeSelectWidget { /** * Replaces the select items with the given items . < p >
* @ param items the select items */
private void replaceItems ( Map < String , String > items ) { } } | String oldValue = m_selectBox . getFormValueAsString ( ) ; // set value and option to the combo box .
m_selectBox . setItems ( items ) ; if ( items . containsKey ( oldValue ) ) { m_selectBox . setFormValueAsString ( oldValue ) ; } |
public class EvaluationUtils { /** * Calculate the precision from true positive and false positive counts
* @ param tpCount True positive count
* @ param fpCount False positive count
* @ param edgeCase Edge case value use to avoid 0/0
* @ return Precision */
public static double precision ( long tpCount , long ... | // Edge case
if ( tpCount == 0 && fpCount == 0 ) { return edgeCase ; } return tpCount / ( double ) ( tpCount + fpCount ) ; |
public class EnvironmentsInner { /** * Stops an environment by stopping all resources inside the environment This operation can take a while to complete .
* @ param resourceGroupName The name of the resource group .
* @ param labAccountName The name of the lab Account .
* @ param labName The name of the lab .
*... | return beginStopWithServiceResponseAsync ( resourceGroupName , labAccountName , labName , environmentSettingName , environmentName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class CmsSerialDateUtil { /** * Parses int value and returns the provided default if the value can ' t be parsed .
* @ param value the int to parse .
* @ param defaultValue the default value .
* @ return the parsed int , or the default value if parsing fails . */
public static int toIntWithDefault ( String... | int result = defaultValue ; try { result = Integer . parseInt ( value ) ; } catch ( @ SuppressWarnings ( "unused" ) Exception e ) { // Do nothing , return default .
} return result ; |
public class SenseData { /** * Returns the proper response code for the given error type and sense data format .
* @ param errorType a sense data error type
* @ param senseDataFormat a sense data format
* @ return the proper response code */
public static final int getReponseCodeFor ( final ErrorType errorType , ... | if ( senseDataFormat == SenseDataFormat . FIXED ) { if ( errorType == ErrorType . CURRENT ) return 0x70 ; else // errorType = = DEFERRED
return 0x71 ; } else { // senseDataFormat = = DESCRIPTOR
if ( errorType == ErrorType . CURRENT ) return 0x72 ; else // errorType = = DEFERRED
return 0x73 ; } /* * Response codes 0x74 ... |
public class XMLConfigWebFactory { /** * reloads the Config Object
* @ param cs
* @ param force
* @ throws SAXException
* @ throws ClassNotFoundException
* @ throws PageException
* @ throws IOException
* @ throws TagLibException
* @ throws FunctionLibException
* @ throws BundleException
* @ throws N... | Resource configFile = cw . getConfigFile ( ) ; Resource configDir = cw . getConfigDir ( ) ; int iDoNew = doNew ( engine , configDir , false ) . updateType ; boolean doNew = iDoNew != NEW_NONE ; if ( configFile == null ) return ; if ( second ( cw . getLoadTime ( ) ) > second ( configFile . lastModified ( ) ) && ! force ... |
public class DBPropertiesUpdate { /** * Insert a new Bundle into the Database .
* @ return ID of the new Bundle */
private Instance insertNewBundle ( ) { } } | Instance ret = null ; try { final Insert insert = new Insert ( DBPropertiesUpdate . TYPE_PROPERTIES_BUNDLE ) ; insert . add ( "Name" , this . bundlename ) ; insert . add ( "UUID" , this . bundeluuid ) ; insert . add ( "Sequence" , this . bundlesequence ) ; insert . add ( "CacheOnStart" , this . cacheOnStart ) ; insert ... |
public class ElementMatchers { /** * Matches a { @ link TypeDescription } that is an interface . Annotation types are also considered interface types .
* @ param < T > The type of the matched object .
* @ return A matcher for an interface .
* @ see ElementMatchers # isAnnotation ( ) */
public static < T extends T... | return new ModifierMatcher < T > ( ModifierMatcher . Mode . INTERFACE ) ; |
public class Matrix4f { /** * Apply a mirror / reflection transformation to this matrix that reflects about the given plane
* specified via the equation < code > x * a + y * b + z * c + d = 0 < / code > .
* The vector < code > ( a , b , c ) < / code > must be a unit vector .
* If < code > M < / code > is < code >... | return reflect ( a , b , c , d , thisOrNew ( ) ) ; |
public class AkkaInvocationHandler { /** * Create the RpcInvocation message for the given RPC .
* @ param methodName of the RPC
* @ param parameterTypes of the RPC
* @ param args of the RPC
* @ return RpcInvocation message which encapsulates the RPC details
* @ throws IOException if we cannot serialize the RP... | final RpcInvocation rpcInvocation ; if ( isLocal ) { rpcInvocation = new LocalRpcInvocation ( methodName , parameterTypes , args ) ; } else { try { RemoteRpcInvocation remoteRpcInvocation = new RemoteRpcInvocation ( methodName , parameterTypes , args ) ; if ( remoteRpcInvocation . getSize ( ) > maximumFramesize ) { thr... |
public class Proposal { /** * Sets the buyerRfp value for this Proposal .
* @ param buyerRfp * The buyer RFP associated with this { @ code Proposal } , which
* is optional . This field will be null
* if the proposal is not initiated from RFP .
* < span class = " constraint Applicable " > This attribute
* is a... | this . buyerRfp = buyerRfp ; |
public class DefaultClusterManager { /** * Finds a node in the cluster . */
private void doFind ( final Message < JsonObject > message ) { } } | String type = message . body ( ) . getString ( "type" ) ; if ( type != null ) { switch ( type ) { case "group" : doFindGroup ( message ) ; break ; case "node" : doFindNode ( message ) ; break ; case "network" : doFindNetwork ( message ) ; break ; default : message . reply ( new JsonObject ( ) . putString ( "status" , "... |
public class WebContainer { /** * 112102 - added method below to fill the cipher to bit size table */
protected void loadCipherToBit ( ) { } } | boolean keySizeFromCipherMap = Boolean . valueOf ( WebContainer . getWebContainerProperties ( ) . getProperty ( "com.ibm.ws.webcontainer.keysizefromciphermap" , "true" ) ) . booleanValue ( ) ; // 721610
if ( keySizeFromCipherMap ) { this . getKeySizefromCipherMap ( "toLoad" ) ; // this will load the Map with values
} e... |
public class ELText { /** * Factory method for creating a validated ELText instance . When an Expression is hit , it will use the
* ExpressionFactory to create a ValueExpression instance , resolving any functions at that time . < p / > Variables and
* properties will not be evaluated .
* @ param fact
* Expressi... | char [ ] ca = in . toCharArray ( ) ; int i = 0 ; char c = 0 ; int len = ca . length ; int end = len - 1 ; boolean esc = false ; int vlen = 0 ; StringBuffer buff = new StringBuffer ( 128 ) ; List < ELText > text = new ArrayList < ELText > ( ) ; ELText t = null ; ValueExpression ve = null ; while ( i < len ) { c = ca [ i... |
public class Allure { /** * Adds label to current test or step ( or fixture ) if any . Takes no effect
* if no test run at the moment .
* @ param name the name of label .
* @ param value the value of label . */
public static void label ( final String name , final String value ) { } } | final Label label = new Label ( ) . setName ( name ) . setValue ( value ) ; getLifecycle ( ) . updateTestCase ( testResult -> testResult . getLabels ( ) . add ( label ) ) ; |
public class CalendarMonth { /** * / * [ deutsch ]
* < p > Kombiniert diese Instanz mit dem angegebenen Tag zu einem Kalenderdatum . < / p >
* @ param dayOfMonth day of month in range 1-28/29/30/31
* @ return calendar date
* @ throws IllegalArgumentException if the day - of - month is out of range */
public Pla... | if ( dayOfMonth == 1 ) { return this . start . getTemporal ( ) ; } return this . start . getTemporal ( ) . with ( PlainDate . DAY_OF_MONTH , dayOfMonth ) ; |
public class Configurations { /** * Merge a set of Configurations .
* @ param configurations the configuration to be merged
* @ return the merged configuration .
* @ throws org . apache . reef . tang . exceptions . BindException if the merge fails . */
public static Configuration merge ( final Configuration ... c... | return Tang . Factory . getTang ( ) . newConfigurationBuilder ( configurations ) . build ( ) ; |
public class MBeanInfoData { /** * Add an exception which occurred during extraction of an { @ link MBeanInfo } for
* a certain { @ link ObjectName } to this map .
* @ param pName MBean name for which the error occurred
* @ param pExp exception occurred
* @ throws IllegalStateException if this method decides to... | // This happen happens for JBoss 7.1 in some cases ( i . e . ResourceAdapterModule )
if ( pathStack . size ( ) == 0 ) { addException ( pName , pExp ) ; } else { throw new InstanceNotFoundException ( "InstanceNotFoundException for MBean " + pName + " (" + pExp . getMessage ( ) + ")" ) ; } |
public class MimeType { /** * Get extension of file , without fragment id */
private static String getExtension ( String fileName ) { } } | // play it safe and get rid of any fragment id
// that might be there
int length = fileName . length ( ) ; int newEnd = fileName . lastIndexOf ( '#' ) ; if ( newEnd == - 1 ) { newEnd = length ; } int i = fileName . lastIndexOf ( '.' , newEnd ) ; if ( i != - 1 ) { return fileName . substring ( i + 1 , newEnd ) ; } else ... |
public class DescriptorImporterBase { /** * { @ inheritDoc }
* @ see org . jboss . shrinkwrap . descriptor . api . DescriptorImporter # fromFile ( java . io . File ) */
@ Override public T fromFile ( final File file ) throws IllegalArgumentException , DescriptorImportException { } } | // Precondition checks
if ( file == null ) { throw new IllegalArgumentException ( "File not specified" ) ; } // Delegate
try { return this . fromStream ( new FileInputStream ( file ) ) ; } catch ( final FileNotFoundException e ) { throw new IllegalArgumentException ( "Specified file does not exist or is a directory: " ... |
public class HttpResponse { /** * 创建CompletionHandler实例
* @ return CompletionHandler */
public CompletionHandler createAsyncHandler ( ) { } } | return Utility . createAsyncHandler ( ( v , a ) -> { finish ( v ) ; } , ( t , a ) -> { context . getLogger ( ) . log ( Level . WARNING , "Servlet occur, force to close channel. request = " + request + ", result is CompletionHandler" , ( Throwable ) t ) ; finish ( 500 , null ) ; } ) ; |
public class WidgetUtils { /** * Moderated version of Color . brighter ( )
* @ param color
* @ return */
@ SuppressWarnings ( "checkstyle:LocalVariableName" ) public static Color slightlyBrighter ( final Color color ) { } } | int r = color . getRed ( ) ; int g = color . getGreen ( ) ; int b = color . getBlue ( ) ; /* * From 2D group : 1 . black . brighter ( ) should return grey 2 . applying brighter to blue will always return blue ,
* brighter 3 . non pure color ( non zero rgb ) will eventually return white */
final int i = ( int ) ( 1.0 ... |
public class EditText { /** * Gets the radius of the shadow layer .
* @ return the radius of the shadow layer . If 0 , the shadow layer is not visible
* @ see # setShadowLayer ( float , float , float , int )
* @ attr ref android . R . styleable # TextView _ shadowRadius */
@ TargetApi ( Build . VERSION_CODES . JE... | if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) return mInputView . getShadowRadius ( ) ; return 0 ; |
public class Gauge { /** * Defines the shape that will be used to visualize the medium tickmark .
* Values are LINE , DOT , TRAPEZOID , BOX and PILL
* @ param TYPE */
public void setMediumTickMarkType ( final TickMarkType TYPE ) { } } | if ( null == mediumTickMarkType ) { _mediumTickMarkType = null == TYPE ? TickMarkType . LINE : TYPE ; fireUpdateEvent ( REDRAW_EVENT ) ; } else { mediumTickMarkType . set ( TYPE ) ; } |
public class Record { /** * Parse a block of text into records .
* @ param text text to be parsed
* @ param start start index
* @ param valueStart value start index
* @ param valueStop value end index
* @ param dictStart dictionary start index
* @ param dictStop dictionary end index */
private void parse ( ... | m_field = text . substring ( start , valueStart ) ; if ( valueStop - valueStart <= 1 ) { m_value = null ; } else { m_value = text . substring ( valueStart + 1 , valueStop ) ; } if ( dictStop - dictStart > 1 ) { for ( int s = getNextOpeningParenthesisPosition ( text , dictStart ) ; s >= 0 && s < dictStop ; ) { int e = g... |
public class AWSGlueClient { /** * Retrieves a specified function definition from the Data Catalog .
* @ param getUserDefinedFunctionRequest
* @ return Result of the GetUserDefinedFunction operation returned by the service .
* @ throws EntityNotFoundException
* A specified entity does not exist
* @ throws Inv... | request = beforeClientExecution ( request ) ; return executeGetUserDefinedFunction ( request ) ; |
public class BaseMoskitoUIAction { /** * Returns a previously set info message or null if no message has been set .
* @ return */
protected String getInfoMessage ( ) { } } | try { return ( String ) APICallContext . getCallContext ( ) . getCurrentSession ( ) . getAttribute ( "infoMessage" ) ; } catch ( Exception any ) { return null ; } |
public class P2sVpnServerConfigurationsInner { /** * Retrieves the details of a P2SVpnServerConfiguration .
* @ param resourceGroupName The resource group name of the P2SVpnServerConfiguration .
* @ param virtualWanName The name of the VirtualWan .
* @ param p2SVpnServerConfigurationName The name of the P2SVpnSer... | return getWithServiceResponseAsync ( resourceGroupName , virtualWanName , p2SVpnServerConfigurationName ) . map ( new Func1 < ServiceResponse < P2SVpnServerConfigurationInner > , P2SVpnServerConfigurationInner > ( ) { @ Override public P2SVpnServerConfigurationInner call ( ServiceResponse < P2SVpnServerConfigurationInn... |
public class CompositeBinaryStore { /** * Move a BinaryKey to a named store
* @ param key Binary key to transfer from the source store to the destination store
* @ param destination a hint for discovering the destination repository
* @ throws BinaryStoreException if anything unexpected fails */
public void moveVa... | moveValue ( key , null , destination ) ; |
public class RestTemplateBuilder { /** * Sets the read timeout on the underlying { @ link ClientHttpRequestFactory } .
* @ param readTimeout the read timeout
* @ return a new builder instance .
* @ since 2.1.0 */
public RestTemplateBuilder setReadTimeout ( Duration readTimeout ) { } } | return new RestTemplateBuilder ( this . detectRequestFactory , this . rootUri , this . messageConverters , this . requestFactorySupplier , this . uriTemplateHandler , this . errorHandler , this . basicAuthentication , this . restTemplateCustomizers , this . requestFactoryCustomizer . readTimeout ( readTimeout ) , this ... |
public class EchoUntilQuit { /** * Handle input .
* @ param event the event */
@ Handler @ SuppressWarnings ( "PMD.SystemPrintln" ) public void onInput ( Input < ByteBuffer > event ) { } } | String data = Charset . defaultCharset ( ) . decode ( event . data ( ) ) . toString ( ) ; System . out . print ( data ) ; if ( data . trim ( ) . equals ( "QUIT" ) ) { fire ( new Stop ( ) ) ; } |
public class AdaptiveGrid { /** * Calculates the hypercube of a solution
* @ param solution The < code > Solution < / code > . */
public int location ( S solution ) { } } | // Create a int [ ] to store the range of each objective
int [ ] position = new int [ numberOfObjectives ] ; // Calculate the position for each objective
for ( int obj = 0 ; obj < numberOfObjectives ; obj ++ ) { if ( ( solution . getObjective ( obj ) > gridUpperLimits [ obj ] ) || ( solution . getObjective ( obj ) < gr... |
public class StorableGenerator { /** * Generates code to get a trigger , forcing a transaction if trigger is not
* null . Also , if there is a trigger , the " before " method is called .
* @ param opType type of operation , Insert , Update , or Delete
* @ param forTryVar optional boolean variable for selecting wh... | // trigger = support $ . getXxxTrigger ( ) ;
b . loadThis ( ) ; b . loadField ( SUPPORT_FIELD_NAME , mSupportType ) ; Method m = lookupMethod ( mSupportType . toClass ( ) , "get" + opType + "Trigger" ) ; b . invoke ( m ) ; b . storeLocal ( triggerVar ) ; // state = null ;
b . loadNull ( ) ; b . storeLocal ( stateVar ) ... |
public class EmbeddedApacheDS { /** * Get a free port .
* @ return The free port .
* @ throws IOException If a free port could not be found . */
private static int getOpenPort ( ) throws IOException { } } | Log . info ( c , "getOpenPort" , "Entry." ) ; ServerSocket s = new ServerSocket ( 0 ) ; Log . info ( c , "getOpenPort" , "Got socket." ) ; int port = s . getLocalPort ( ) ; Log . info ( c , "getOpenPort" , "Got port " + s ) ; s . close ( ) ; Log . info ( c , "getOpenPort" , "Close socket" ) ; return port ; |
public class DynamicTimeoutStoreClient { /** * Performs a Versioned put operation with the specified composite request
* object
* @ param requestWrapper Composite request object containing the key and the
* versioned object
* @ return Version of the value for the successful put
* @ throws ObsoleteVersionExcep... | validateTimeout ( requestWrapper . getRoutingTimeoutInMs ( ) ) ; for ( int attempts = 0 ; attempts < this . metadataRefreshAttempts ; attempts ++ ) { try { String keyHexString = "" ; long startTimeInMs = System . currentTimeMillis ( ) ; if ( logger . isDebugEnabled ( ) ) { ByteArray key = ( ByteArray ) requestWrapper .... |
public class TSSSSLTransportConfig { /** * Authenticate using a certificate chain . Exception handling done in caller method . */
private Subject authenticateWithCertificateChain ( SSLSession session ) throws SSLPeerUnverifiedException , AuthenticationException , CredentialExpiredException , CredentialDestroyedExceptio... | Subject transportSubject = null ; if ( session != null ) { Certificate [ ] certificateChain = session . getPeerCertificates ( ) ; transportSubject = authenticator . authenticate ( ( X509Certificate [ ] ) certificateChain ) ; /* Here we need to get the WSCredential from the subject . We will use the subject manager for ... |
public class StylesheetComposed { /** * Get a stylesheet from the " import " list .
* @ see < a href = " http : / / www . w3 . org / TR / xslt # import " > import in XSLT Specification < / a >
* @ param i Index of stylesheet in import list
* @ return The stylesheet at the given index
* @ throws ArrayIndexOutOfB... | StylesheetRoot root = getStylesheetRoot ( ) ; // Get the stylesheet that is offset past this stylesheet .
// Thus , if the index of this stylesheet is 3 , an argument
// to getImportComposed of 0 will return the 4th stylesheet
// in the global import list .
return root . getGlobalImport ( 1 + m_importNumber + i ) ; |
public class DateUtils { /** * Get specify months back from given date .
* @ param monthsBack how many months want to be back .
* @ param date date to be handled .
* @ return a new Date object . */
public static Date getDateOfMonthsBack ( final int monthsBack , final Date date ) { } } | return dateBack ( Calendar . MONTH , monthsBack , date ) ; |
public class CanonicalLabeler { /** * Rank atomic vector , corresponds to step 4.
* @ param v the invariance pair vector */
private void rankArrayList ( List < InvPair > v ) { } } | int num = 1 ; int [ ] temp = new int [ v . size ( ) ] ; InvPair last = ( InvPair ) v . get ( 0 ) ; Iterator < InvPair > it = v . iterator ( ) ; InvPair curr ; for ( int x = 0 ; it . hasNext ( ) ; x ++ ) { curr = ( InvPair ) it . next ( ) ; if ( ! last . equals ( curr ) ) { num ++ ; } temp [ x ] = num ; last = curr ; } ... |
public class HlsGroupSettings { /** * Choose one or more ad marker types to pass SCTE35 signals through to this group of Apple HLS outputs .
* @ param adMarkers
* Choose one or more ad marker types to pass SCTE35 signals through to this group of Apple HLS outputs .
* @ see HlsAdMarkers */
public void setAdMarkers... | if ( adMarkers == null ) { this . adMarkers = null ; return ; } this . adMarkers = new java . util . ArrayList < String > ( adMarkers ) ; |
public class UserHandlerImpl { /** * Notifying listeners before enabling / disabling a user .
* @ param user
* the user which is used in enabling / disabling operation
* @ throws Exception
* if any listener failed to handle the event */
private void preSetEnabled ( User user ) throws Exception { } } | for ( UserEventListener listener : listeners ) listener . preSetEnabled ( user ) ; |
public class ComputerVisionImpl { /** * This operation extracts a rich set of visual features based on the image content .
* @ param image An image stream .
* @ param analyzeImageInStreamOptionalParameter the object representing the optional parameters to be set before calling this API
* @ param serviceCallback t... | return ServiceFuture . fromResponse ( analyzeImageInStreamWithServiceResponseAsync ( image , analyzeImageInStreamOptionalParameter ) , serviceCallback ) ; |
public class AbstractApacheHttpClient { /** * Creates default request config .
* @ param settings
* settings to use .
* @ return instance of { @ link RequestConfig } . */
private RequestConfig createDefaultRequestConfig ( HttpSettings settings ) { } } | int connectionTimeout = settings . getConnectionTimeout ( ) ; int socketTimeout = settings . getReadTimeout ( ) ; return RequestConfig . custom ( ) . setConnectionRequestTimeout ( connectionTimeout ) . setSocketTimeout ( socketTimeout ) . build ( ) ; |
public class ClassDescriptor { /** * returns the zero argument constructor for the class represented by this class descriptor
* or null if a zero argument constructor does not exist . If the zero argument constructor
* for this class is not public it is made accessible before being returned . */
public Constructor ... | if ( zeroArgumentConstructor == null && ! alreadyLookedupZeroArguments ) { try { zeroArgumentConstructor = getClassOfObject ( ) . getConstructor ( NO_PARAMS ) ; } catch ( NoSuchMethodException e ) { // no public zero argument constructor available let ' s try for a private / protected one
try { zeroArgumentConstructor ... |
public class DeviceImpl { /** * read an attribute history . IDL 5 version . The history is filled only be
* attribute polling
* @ param attributeName The attribute to retrieve
* @ param maxSize The history maximum size returned
* @ throws DevFailed */
@ Override public DevAttrHistory_5 read_attribute_history_5 ... | MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; checkInitialization ( ) ; deviceMonitoring . startRequest ( "read_attribute_history_5" ) ; DevAttrHistory_5 result = null ; try { final AttributeImpl attr = AttributeGetterSetter . getAttribute ( attributeName , attributeList ) ; if ( attr . getBehavior ( ) ins... |
public class TaskScheduler { /** * Gets all { @ link ScheduledTask } s .
* @ return the { @ link ScheduledTask } s */
public final Iterable < T > getScheduledTasks ( ) { } } | return Iterables . transform ( this . cancellableTaskMap . asMap ( ) . values ( ) , new Function < CancellableTask < K , T > , T > ( ) { @ Override public T apply ( CancellableTask < K , T > cancellableTask ) { return cancellableTask . getScheduledTask ( ) ; } } ) ; |
public class JNvgraph { /** * nvGRAPH Semi - ring sparse matrix vector multiplication */
public static int nvgraphSrSpmv ( nvgraphHandle handle , nvgraphGraphDescr descrG , long weight_index , Pointer alpha , long x_index , Pointer beta , long y_index , int SR ) { } } | return checkResult ( nvgraphSrSpmvNative ( handle , descrG , weight_index , alpha , x_index , beta , y_index , SR ) ) ; |
public class RelationType { /** * Gets the index of all columns matching the specified name */
public List < Field > resolveFields ( QualifiedName name ) { } } | return allFields . stream ( ) . filter ( input -> input . canResolve ( name ) ) . collect ( toImmutableList ( ) ) ; |
public class AcceleratedScreen { /** * Make the EGL drawing surface current or not
* @ param flag */
public void enableRendering ( boolean flag ) { } } | if ( flag ) { egl . eglMakeCurrent ( eglDisplay , eglSurface , eglSurface , eglContext ) ; } else { egl . eglMakeCurrent ( eglDisplay , 0 , 0 , eglContext ) ; } |
public class RebalanceController { /** * Validates all aspects of the plan ( i . e . , all config files )
* @ param rebalancePlan */
private void validateRebalancePlanState ( RebalancePlan rebalancePlan ) { } } | logger . info ( "Validating rebalance plan state." ) ; Cluster currentCluster = rebalancePlan . getCurrentCluster ( ) ; List < StoreDefinition > currentStores = rebalancePlan . getCurrentStores ( ) ; Cluster finalCluster = rebalancePlan . getFinalCluster ( ) ; List < StoreDefinition > finalStores = rebalancePlan . getF... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.