signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class WeekFields { /** * Obtains an instance of { @ code WeekFields } from the first day - of - week and minimal days .
* The first day - of - week defines the ISO { @ code DayOfWeek } that is day 1 of the week .
* The minimal number of days in the first week defines how many days must be present
* in a mo... | String key = firstDayOfWeek . toString ( ) + minimalDaysInFirstWeek ; WeekFields rules = CACHE . get ( key ) ; if ( rules == null ) { rules = new WeekFields ( firstDayOfWeek , minimalDaysInFirstWeek ) ; CACHE . putIfAbsent ( key , rules ) ; rules = CACHE . get ( key ) ; } return rules ; |
public class HikariPool { /** * Set a metrics registry to be used when registering metrics collectors . The HikariDataSource prevents this
* method from being called more than once .
* @ param metricRegistry the metrics registry instance to use */
public void setMetricRegistry ( Object metricRegistry ) { } } | if ( metricRegistry != null && safeIsAssignableFrom ( metricRegistry , "com.codahale.metrics.MetricRegistry" ) ) { setMetricsTrackerFactory ( new CodahaleMetricsTrackerFactory ( ( MetricRegistry ) metricRegistry ) ) ; } else if ( metricRegistry != null && safeIsAssignableFrom ( metricRegistry , "io.micrometer.core.inst... |
public class SiftScaleSpace { /** * Computes all the scale images in an octave . This includes DoG images . */
private void computeOctaveScales ( ) { } } | octaveImages [ 0 ] = tempImage0 ; for ( int i = 1 ; i < numScales + 3 ; i ++ ) { octaveImages [ i ] . reshape ( tempImage0 . width , tempImage0 . height ) ; applyGaussian ( octaveImages [ i - 1 ] , octaveImages [ i ] , kernelSigmaToK [ i - 1 ] ) ; } for ( int i = 1 ; i < numScales + 3 ; i ++ ) { differenceOfGaussian [ ... |
public class AbstractCommandBuilder { /** * Adds a properties file to be passed to the server . Note that the file must exist .
* @ param file the file to add
* @ return the builder
* @ throws java . lang . IllegalArgumentException if the file does not exist or is not a regular file */
public T addPropertiesFile ... | if ( file != null ) { addPropertiesFile ( Paths . get ( file ) ) ; } return getThis ( ) ; |
public class PeriodDuration { /** * Obtains an instance based on a period .
* The duration will be zero .
* @ param period the period , not null
* @ return the combined period - duration , not null */
public static PeriodDuration of ( Period period ) { } } | Objects . requireNonNull ( period , "The period must not be null" ) ; return new PeriodDuration ( period , Duration . ZERO ) ; |
public class AnyValueMap { /** * Gets the value stored in this map element without any conversions
* @ return the value of the map element . */
public Object getAsObject ( ) { } } | Map < String , Object > result = new HashMap < String , Object > ( ) ; for ( Map . Entry < String , Object > entry : this . entrySet ( ) ) result . put ( entry . getKey ( ) , entry . getValue ( ) ) ; return result ; |
public class JsonWriter { /** * This methods write @ odata . type of complex type .
* If complex type has root - level , @ odata . type won ' t be written .
* @ param structuredType structuredType */
private void writeODataType ( StructuredType structuredType ) throws IOException { } } | if ( entitySet != null ) { String typeName = entitySet . getTypeName ( ) ; String type = typeName . substring ( typeName . lastIndexOf ( "." ) + 1 , typeName . length ( ) ) ; if ( ! type . equals ( structuredType . getName ( ) ) ) { jsonGenerator . writeStringField ( TYPE , String . format ( "#%s.%s" , structuredType .... |
public class BaseActivity { /** * when some views can ' t be clicked at same time or too fast , use this
* method . should override { @ link # setViewsEnability ( boolean ) } */
public void delayEnableViews ( ) { } } | Message msg = Message . obtain ( mHandler , MSG_ENABLE_VIEWS , 1 , 0 ) ; if ( msg != null ) msg . sendToTarget ( ) ; msg = Message . obtain ( mHandler , MSG_ENABLE_VIEWS , 0 , 0 ) ; if ( msg != null ) mHandler . sendMessageDelayed ( msg , DEFAULT_DELAY_TIME ) ; |
public class PeriodFormat { private static PeriodFormatter buildWordBased ( Locale locale ) { } } | ResourceBundle b = ResourceBundle . getBundle ( BUNDLE_NAME , locale ) ; if ( containsKey ( b , "PeriodFormat.regex.separator" ) ) { return buildRegExFormatter ( b , locale ) ; } else { return buildNonRegExFormatter ( b , locale ) ; } |
public class ComputeSpecs { /** * Returns true if field corresponding to fieldID is set ( has been assigned a value ) and false otherwise */
public boolean isSet ( _Fields field ) { } } | if ( field == null ) { throw new IllegalArgumentException ( ) ; } switch ( field ) { case NUM_CPUS : return isSetNumCpus ( ) ; case NETWORK_MBPS : return isSetNetworkMBps ( ) ; case MEMORY_MB : return isSetMemoryMB ( ) ; case DISK_GB : return isSetDiskGB ( ) ; } throw new IllegalStateException ( ) ; |
public class CmsJspImageBean { /** * Returns the ratio height percentage of an image based on width and height . < p >
* @ param width width to calculate percentage from
* @ param height height to calculate percentage from
* @ return the ratio height percentage of an image based on width and height */
protected S... | double p = Math . round ( ( height / width ) * 10000000.0 ) / 100000.0 ; return String . valueOf ( p ) + "%" ; |
public class ContentUriChecker { /** * Replace internal from uri .
* @ param input the input
* @ param replace the replace
* @ param rewriterListener the rewriter listener
* @ return the string */
private String replaceInternalFromUri ( String input , final List < Triple < Token , Token , String > > replace , U... | Pair < ParserRuleContext , CommonTokenStream > parser = prepareUri ( input ) ; pathSegmentIndex = - 1 ; walker . walk ( rewriterListener , parser . value0 ) ; TokenStreamRewriter rewriter = new TokenStreamRewriter ( parser . value1 ) ; for ( Triple < Token , Token , String > item : replace ) { rewriter . replace ( item... |
public class DeleteRoomSkillParameterRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteRoomSkillParameterRequest deleteRoomSkillParameterRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteRoomSkillParameterRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteRoomSkillParameterRequest . getRoomArn ( ) , ROOMARN_BINDING ) ; protocolMarshaller . marshall ( deleteRoomSkillParameterRequest . getSkillId ( ) ,... |
public class SpringBootAdminServletApplication { /** * tag : : customization - instance - exchange - filter - function [ ] */
@ Bean public InstanceExchangeFilterFunction auditLog ( ) { } } | return ( instance , request , next ) -> { if ( HttpMethod . DELETE . equals ( request . method ( ) ) || HttpMethod . POST . equals ( request . method ( ) ) ) { log . info ( "{} for {} on {}" , request . method ( ) , instance . getId ( ) , request . url ( ) ) ; } return next . exchange ( request ) ; } ; |
public class BusNetwork { /** * Replies the nearest bus hub to the given point .
* @ param x x coordinate .
* @ param y y coordinate .
* @ return the nearest bus hub or < code > null < / code > if none was found . */
@ Pure public BusHub getNearestBusHub ( double x , double y ) { } } | double distance = Double . POSITIVE_INFINITY ; BusHub bestHub = null ; double dist ; for ( final BusHub hub : this . validBusHubs ) { dist = hub . distance ( x , y ) ; if ( dist < distance ) { distance = dist ; bestHub = hub ; } } return bestHub ; |
public class AbstractWSelectList { /** * Set the complete list of options available for selection for this users session .
* @ param aArray the list of options available to the user . */
public void setOptions ( final Object [ ] aArray ) { } } | setOptions ( aArray == null ? null : Arrays . asList ( aArray ) ) ; |
public class HtmlExceptionFormatter { /** * Format an exception into XHTML .
* Optionally include a message and the stack trace .
* The formatted exception will have line breaks replaced with XHTML line breaks for display
* in HTML . The String message of the cause will be included , and the stack trace of the
... | InternalStringBuilder buf = new InternalStringBuilder ( ) ; if ( message != null ) { buf . append ( message ) ; Throwable cause = discoverRootCause ( t ) ; if ( cause != null ) { buf . append ( HTML_LINE_BREAK ) ; buf . append ( CAUSED_BY ) ; buf . append ( ": " ) ; buf . append ( cause . toString ( ) ) ; } } if ( incl... |
public class Hashes { /** * Preprocesses a bit vector so that MurmurHash3 can be computed in constant
* time on all prefixes .
* < strong > Warning < / strong > : this code is still experimental .
* @ param bv
* a bit vector .
* @ param seed
* a seed for the hash .
* @ return an array of four component ar... | long from = 0 ; final long length = bv . length ( ) ; long h1 = 0x9368e53c2f6af274L ^ seed ; long h2 = 0x586dcd208f7cd3fdL ^ seed ; long c1 = 0x87c37b91114253d5L ; long c2 = 0x4cf5ad432745937fL ; final int wordLength = ( int ) ( length / ( 2 * Long . SIZE ) ) ; final long state [ ] [ ] = new long [ 4 ] [ wordLength + 1... |
public class CPMeasurementUnitLocalServiceWrapper { /** * Returns the cp measurement unit matching the UUID and group .
* @ param uuid the cp measurement unit ' s UUID
* @ param groupId the primary key of the group
* @ return the matching cp measurement unit
* @ throws PortalException if a matching cp measureme... | return _cpMeasurementUnitLocalService . getCPMeasurementUnitByUuidAndGroupId ( uuid , groupId ) ; |
public class XTypeLiteralImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case XbasePackage . XTYPE_LITERAL__TYPE : setType ( ( JvmType ) null ) ; return ; case XbasePackage . XTYPE_LITERAL__ARRAY_DIMENSIONS : getArrayDimensions ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ; |
public class Processor { /** * Set input document .
* @ param input input document file
* @ return this Process object */
public Processor setInput ( final File input ) { } } | if ( ! input . isAbsolute ( ) ) { throw new IllegalArgumentException ( "Input file path must be absolute: " + input ) ; } if ( ! input . isFile ( ) ) { throw new IllegalArgumentException ( "Input file is not a file: " + input ) ; } setInput ( input . toURI ( ) ) ; return this ; |
public class RecordSetsInner { /** * Updates a record set within a Private DNS zone .
* @ param resourceGroupName The name of the resource group .
* @ param privateZoneName The name of the Private DNS zone ( without a terminating dot ) .
* @ param recordType The type of DNS record in this record set . Possible va... | return ServiceFuture . fromResponse ( updateWithServiceResponseAsync ( resourceGroupName , privateZoneName , recordType , relativeRecordSetName , parameters ) , serviceCallback ) ; |
public class ArrayUtils { /** * Swaps the keys and values at { @ code i } with those at { @ code j }
* @ param keys
* @ param values
* @ param i
* @ param j */
private static final void swap ( int [ ] keys , Object [ ] [ ] values , int i , int j ) { } } | int keySwap = keys [ i ] ; keys [ i ] = keys [ j ] ; keys [ j ] = keySwap ; Object swapValue ; for ( int k = 0 ; k < values . length ; k ++ ) { swapValue = values [ k ] [ i ] ; values [ k ] [ i ] = values [ k ] [ j ] ; values [ k ] [ j ] = swapValue ; } |
public class EncryptKit { /** * Hmac加密模板
* @ param data 数据
* @ param key 秘钥
* @ param algorithm 加密算法
* @ return 密文字节数组 */
private static byte [ ] hmacTemplate ( byte [ ] data , byte [ ] key , String algorithm ) { } } | if ( data == null || data . length == 0 || key == null || key . length == 0 ) return null ; try { SecretKeySpec secretKey = new SecretKeySpec ( key , algorithm ) ; Mac mac = Mac . getInstance ( algorithm ) ; mac . init ( secretKey ) ; return mac . doFinal ( data ) ; } catch ( InvalidKeyException | NoSuchAlgorithmExcept... |
public class GVRPhysicsAvatar { /** * Load physics information for the current avatar
* @ param filename name of physics file
* @ param scene scene the avatar is part of
* @ throws IOException if physics file cannot be parsed */
public void loadPhysics ( String filename , GVRScene scene ) throws IOException { } } | GVRPhysicsLoader . loadPhysicsFile ( getGVRContext ( ) , filename , true , scene ) ; |
public class DescribeDBClusterParameterGroupsResult { /** * A list of DB cluster parameter groups .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setDBClusterParameterGroups ( java . util . Collection ) } or
* { @ link # withDBClusterParameterGroups ( jav... | if ( this . dBClusterParameterGroups == null ) { setDBClusterParameterGroups ( new java . util . ArrayList < DBClusterParameterGroup > ( dBClusterParameterGroups . length ) ) ; } for ( DBClusterParameterGroup ele : dBClusterParameterGroups ) { this . dBClusterParameterGroups . add ( ele ) ; } return this ; |
public class QueryRecord { /** * Get this field in the record .
* This is a little different for a query record , because I have to look through multiple records .
* @ param strFieldName The field in the query to retrive .
* @ return The field at this location . */
public BaseField getField ( String strFieldName ... | for ( int i = 0 ; i < this . getRecordlistCount ( ) ; i ++ ) { Record record = this . getRecordlistAt ( i ) ; BaseField field = record . getField ( strFieldName ) ; if ( field != null ) return field ; } return null ; // Not found |
public class Sentence { /** * Create an ArrayList as a list of < code > TaggedWord < / code > from two
* lists of < code > String < / code > , one for the words , and the second for
* the tags .
* @ param lex a list whose items are of type < code > String < / code > and
* are the words
* @ param tags a list w... | ArrayList < TaggedWord > sent = new ArrayList < TaggedWord > ( ) ; int ls = lex . size ( ) ; int ts = tags . size ( ) ; if ( ls != ts ) { throw new IllegalArgumentException ( "Sentence.toSentence: lengths differ" ) ; } for ( int i = 0 ; i < ls ; i ++ ) { sent . add ( new TaggedWord ( lex . get ( i ) , tags . get ( i ) ... |
public class Util { /** * Selects first only the classes that are assignable from the target , and then returns the most
* specific matching classes .
* @ param target the Class to match
* @ param availableClasses classes to search
* @ return Set of only the most specific classes that match the target . */
stat... | final Set < Class < ? > > matches = new HashSet < > ( ) ; if ( availableClasses . contains ( target ) ) { return ImmutableSet . < Class < ? > > of ( target ) ; } else { for ( final Class < ? > clazz : availableClasses ) { if ( clazz . isAssignableFrom ( target ) ) { matches . add ( clazz ) ; } } } final Predicate < Cla... |
public class VEvent { /** * Sets the physical location of the event .
* @ param location the location ( e . g . " Room 101 " ) or null to remove
* @ return the property that was created
* @ see < a href = " http : / / tools . ietf . org / html / rfc5545 # page - 87 " > RFC 5545
* p . 87-8 < / a >
* @ see < a ... | Location prop = ( location == null ) ? null : new Location ( location ) ; setLocation ( prop ) ; return prop ; |
public class Long { /** * Returns the unsigned quotient of dividing the first argument by
* the second where each argument and the result is interpreted as
* an unsigned value .
* < p > Note that in two ' s complement arithmetic , the three other
* basic arithmetic operations of add , subtract , and multiply ar... | if ( divisor < 0L ) { // signed comparison
// Answer must be 0 or 1 depending on relative magnitude
// of dividend and divisor .
return ( compareUnsigned ( dividend , divisor ) ) < 0 ? 0L : 1L ; } if ( dividend > 0 ) // Both inputs non - negative
return dividend / divisor ; else { /* * For simple code , leveraging BigI... |
public class DataConverterRegistry { /** * Converts " FROM " object to " TO " format / class .
* @ param < TO >
* target class to convert the source object
* @ param < FROM >
* source class
* @ param to
* target type
* @ param from
* source object
* @ return converted value in " TO " format / class */... | "unchecked" , "rawtypes" } ) public static final < TO , FROM > TO convert ( Class < TO > to , FROM from ) { // Convert null value
if ( from == null || to == null ) { return null ; } // Convert " null " String to null
if ( "null" . equals ( from ) ) { return null ; } // Class is same
if ( to == Object . class || from . ... |
public class CaseForEqBuilder { /** * Boolean */
public Cases < Boolean , BooleanExpression > then ( Boolean then ) { } } | return thenBoolean ( ConstantImpl . create ( then ) ) ; |
public class View { /** * Invoked after previous view is hidden and this view is about to show . Might be called when the view is being
* reloaded . Clears previous stage actors and adds managed actor to stage . If overridden , call super . */
@ Override public void show ( ) { } } | final Stage stage = getStage ( ) ; stage . getRoot ( ) . clearChildren ( ) ; LmlUtilities . appendActorsToStage ( stage , actors ) ; |
public class ConfigurationItem { /** * A list of related AWS resources .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setRelationships ( java . util . Collection ) } or { @ link # withRelationships ( java . util . Collection ) } if you want
* to override... | if ( this . relationships == null ) { setRelationships ( new com . amazonaws . internal . SdkInternalList < Relationship > ( relationships . length ) ) ; } for ( Relationship ele : relationships ) { this . relationships . add ( ele ) ; } return this ; |
public class LookupManagerImpl { /** * { @ inheritDoc } */
@ Override public ServiceInstance getInstance ( String serviceName , String instanceId ) throws ServiceException { } } | if ( ! isStarted ) { ServiceDirectoryError error = new ServiceDirectoryError ( ErrorCode . SERVICE_DIRECTORY_MANAGER_FACTORY_CLOSED ) ; throw new ServiceException ( error ) ; } if ( instanceId == null || instanceId . isEmpty ( ) ) { return null ; } ModelService service = getLookupService ( ) . getModelService ( service... |
public class PartitionedDataWriter { /** * Serialize partitions info to { @ link # state } if they are any */
private void serializePartitionInfoToState ( ) { } } | List < PartitionDescriptor > descriptors = new ArrayList < > ( ) ; for ( DataWriter writer : partitionWriters . asMap ( ) . values ( ) ) { Descriptor descriptor = writer . getDataDescriptor ( ) ; if ( null == descriptor ) { log . warn ( "Drop partition info as writer {} returns a null PartitionDescriptor" , writer . to... |
public class StructureAlignmentDisplay { /** * Display an AFPChain alignment
* @ param afpChain
* @ param ca1
* @ param ca2
* @ return a StructureAlignmentJmol instance
* @ throws StructureException */
public static StructureAlignmentJmol display ( AFPChain afpChain , Atom [ ] ca1 , Atom [ ] ca2 ) throws Stru... | if ( ca1 . length < 1 || ca2 . length < 1 ) { throw new StructureException ( "length of atoms arrays is too short! " + ca1 . length + "," + ca2 . length ) ; } Group [ ] twistedGroups = AlignmentTools . prepareGroupsForDisplay ( afpChain , ca1 , ca2 ) ; List < Group > hetatms = StructureTools . getUnalignedGroups ( ca1 ... |
public class BugInstance { /** * Format a string describing this bug instance .
* @ return the description */
@ Nonnull public String getMessageWithoutPrefix ( ) { } } | BugPattern bugPattern = getBugPattern ( ) ; String pattern , shortPattern ; pattern = getLongDescription ( ) ; shortPattern = bugPattern . getShortDescription ( ) ; try { FindBugsMessageFormat format = new FindBugsMessageFormat ( pattern ) ; return format . format ( annotationList . toArray ( new BugAnnotation [ annota... |
public class Policy { /** * < pre >
* Associates a list of ` members ` to a ` role ` .
* Multiple ` bindings ` must not be specified for the same ` role ` .
* ` bindings ` with no members will result in an error .
* < / pre >
* < code > repeated . google . iam . v1 . Binding bindings = 4 ; < / code > */
publi... | return bindings_ ; |
public class SqlResultSetMappingImpl { /** * Returns all < code > constructor - result < / code > elements
* @ return list of < code > constructor - result < / code > */
public List < ConstructorResult < SqlResultSetMapping < T > > > getAllConstructorResult ( ) { } } | List < ConstructorResult < SqlResultSetMapping < T > > > list = new ArrayList < ConstructorResult < SqlResultSetMapping < T > > > ( ) ; List < Node > nodeList = childNode . get ( "constructor-result" ) ; for ( Node node : nodeList ) { ConstructorResult < SqlResultSetMapping < T > > type = new ConstructorResultImpl < Sq... |
public class LirsPolicy { /** * Prints out the internal state of the policy . */
private void printLirs ( ) { } } | System . out . println ( "** LIRS stack TOP **" ) ; for ( Node n = headS . nextS ; n != headS ; n = n . nextS ) { checkState ( n . isInS ) ; if ( n . status == Status . HIR_NON_RESIDENT ) { System . out . println ( "<NR> " + n . key ) ; } else if ( n . status == Status . HIR_RESIDENT ) { System . out . println ( "<RH> ... |
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getIfcLinearDimension ( ) { } } | if ( ifcLinearDimensionEClass == null ) { ifcLinearDimensionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 300 ) ; } return ifcLinearDimensionEClass ; |
public class Array { /** * Note : All the objects with same value will be replaced with first element with the same value .
* @ param a */
static void bucketSort ( final Object [ ] a ) { } } | if ( N . isNullOrEmpty ( a ) ) { return ; } bucketSort ( a , 0 , a . length ) ; |
public class AirlineItineraryTemplateBuilder { /** * Adds a { @ link PriceInfo } object to this template . This field is optional .
* There can be at most 4 price info objects per template .
* @ param title
* the price info title . It can ' t be empty .
* @ param amount
* the price amount .
* @ return this ... | PriceInfo priceInfo = new PriceInfo ( title , amount ) ; this . payload . addPriceInfo ( priceInfo ) ; return this ; |
public class ResourceParametersImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setAvailability ( Parameter newAvailability ) { } } | if ( newAvailability != availability ) { NotificationChain msgs = null ; if ( availability != null ) msgs = ( ( InternalEObject ) availability ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - BpsimPackage . RESOURCE_PARAMETERS__AVAILABILITY , null , msgs ) ; if ( newAvailability != null ) msgs = ( ( InternalEObject... |
public class FilterViewUI { /** * check if * any * of items in selectedListItems is present in distinctFacetValues
* @ param selectedListItems
* @ param distinctFacetValues
* @ return */
protected boolean isSubsetContainedIn ( Set < String > selectedListItems , Set < String > distinctFacetValues ) { } } | boolean isPresent = false ; for ( String selectedListItem : selectedListItems ) { isPresent = distinctFacetValues . contains ( selectedListItem ) ; } return isPresent ; |
public class StreamBlockQueue { /** * Wrapper around the common operation of pulling an element out of the persistent deque .
* The behavior is complicated ( and might change ) since the persistent deque can throw an IOException .
* The poll always removes the element from the persistent queue
* ( although not ne... | BBContainer cont = null ; BBContainer schemaCont = null ; try { // Start to read a new segment
if ( m_reader . isStartOfSegment ( ) ) { schemaCont = m_reader . getExtraHeader ( - 1 ) ; } cont = m_reader . poll ( PersistentBinaryDeque . UNSAFE_CONTAINER_FACTORY ) ; } catch ( IOException e ) { exportLog . error ( "Failed... |
public class CmsChacc { /** * Builds a StringBuffer with HTML code for the access control entries of a resource . < p >
* @ param entries all access control entries for the resource
* @ return StringBuffer with HTML code for all entries */
private StringBuffer buildResourceList ( ArrayList < CmsAccessControlEntry >... | StringBuffer result = new StringBuffer ( 256 ) ; Iterator < CmsAccessControlEntry > i = entries . iterator ( ) ; boolean hasEntries = i . hasNext ( ) ; if ( hasEntries || ! getInheritOption ( ) ) { // create headline for resource entries
result . append ( dialogSubheadline ( key ( Messages . GUI_PERMISSION_TITLE_0 ) ) ... |
public class ApplicationsInner { /** * Lists all of the applications for the HDInsight cluster .
* @ param resourceGroupName The name of the resource group .
* @ param clusterName The name of the cluster .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to ... | return listByClusterSinglePageAsync ( resourceGroupName , clusterName ) . concatMap ( new Func1 < ServiceResponse < Page < ApplicationInner > > , Observable < ServiceResponse < Page < ApplicationInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < ApplicationInner > > > call ( ServiceResponse < P... |
public class Ifc2x3tc1FactoryImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public IfcStairFlightTypeEnum createIfcStairFlightTypeEnumFromString ( EDataType eDataType , String initialValue ) { } } | IfcStairFlightTypeEnum result = IfcStairFlightTypeEnum . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ; |
public class NoiseInstance { /** * Compute 3 - dimensional Perlin noise .
* @ param x the x coordinate
* @ param y the y coordinate
* @ param y the y coordinate
* @ return noise value at ( x , y , z ) */
public float noise3 ( float x , float y , float z ) { } } | int bx0 , bx1 , by0 , by1 , bz0 , bz1 , b00 , b10 , b01 , b11 ; float rx0 , rx1 , ry0 , ry1 , rz0 , rz1 , q [ ] , sy , sz , a , b , c , d , t , u , v ; int i , j ; if ( start ) { start = false ; init ( ) ; } t = x + N ; bx0 = ( ( int ) t ) & BM ; bx1 = ( bx0 + 1 ) & BM ; rx0 = t - ( int ) t ; rx1 = rx0 - 1.0f ; t = y +... |
public class ImporterLifeCycleManager { /** * This will be called for every importer configuration section for this importer type .
* @ param props Properties defined in a configuration section for this importer */
public final void configure ( Properties props , FormatterBuilder formatterBuilder ) { } } | Map < URI , ImporterConfig > configs = m_factory . createImporterConfigurations ( props , formatterBuilder ) ; m_configs = new ImmutableMap . Builder < URI , ImporterConfig > ( ) . putAll ( configs ) . putAll ( Maps . filterKeys ( m_configs , not ( in ( configs . keySet ( ) ) ) ) ) . build ( ) ; |
public class TargetStreamControl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPDeliveryStreamReceiverControllable # getReliability */
public Reliability getReliability ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getReliability" ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getReliability" , _targetStreamReliability ) ; return _targetStreamReliability ; |
public class SimpleHandler { /** * 解码 : 将接受到的ByteBuffer对象解码成我们可是识别的业务包
* 总的消息结构 : 消息头 + 消息体
* 消息头结构 : 4个字节 , 消息体的长度
* 消息体结构 : 数据json串的byte [ ]
* @ param buffer
* @ param channelContext
* @ return
* @ throws AioDecodeException */
public Packet decode ( ByteBuffer buffer , int limit , int position , int rea... | int realableLength = limit - position ; // 收到的数据组不了业务包 , 则返回null以告诉框架数据不够
if ( realableLength < SimplePacket . HEADER_LENGTH ) { return null ; } // 读取消息体的长度
int bodyLength = buffer . getInt ( ) ; if ( bodyLength < 0 ) { throw new AioDecodeException ( "bodyLength [" + bodyLength + "] is not right, remote:" + channelCont... |
public class BuilderDefaults { /** * Returns an empty list if the newValue is null
* @ param newValue - a list
* @ param < T > - any type
* @ return non - null list */
public static < T > List < T > nullToEmptyList ( Collection < T > newValue ) { } } | if ( newValue == null ) { return new ArrayList < > ( ) ; } return new ArrayList < > ( newValue ) ; |
public class MetadataServiceListUnmarshaller { /** * { @ inheritDoc } */
protected void processChildElement ( XMLObject parentObject , XMLObject childObject ) throws UnmarshallingException { } } | MetadataServiceList mdsl = ( MetadataServiceList ) parentObject ; if ( childObject instanceof SchemeInformation ) { mdsl . setSchemeInformation ( ( SchemeInformation ) childObject ) ; } else if ( childObject instanceof MetadataList ) { mdsl . getMetadataLists ( ) . add ( ( MetadataList ) childObject ) ; } else if ( chi... |
public class Traverser { /** * Traverse the object graph referenced by the passed in root .
* @ param root Any Java object .
* @ param skip Set of classes to skip ( ignore ) . Allowed to be null . */
public void walk ( Object root , Class [ ] skip , Visitor visitor ) { } } | Deque stack = new LinkedList ( ) ; stack . add ( root ) ; while ( ! stack . isEmpty ( ) ) { Object current = stack . removeFirst ( ) ; if ( current == null || _objVisited . containsKey ( current ) ) { continue ; } final Class clazz = current . getClass ( ) ; ClassInfo classInfo = getClassInfo ( clazz , skip ) ; if ( cl... |
public class AbstractChunkTopicParser { /** * Set up the class .
* @ param changeTable changeTable
* @ param conflictTable conflictTable
* @ param rootTopicref chunking topicref */
public void setup ( final LinkedHashMap < URI , URI > changeTable , final Map < URI , URI > conflictTable , final Element rootTopicre... | this . changeTable = changeTable ; this . rootTopicref = rootTopicref ; this . conflictTable = conflictTable ; this . chunkFilenameGenerator = chunkFilenameGenerator ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link OLBStatus } { @ code > } } */
@ XmlElementDecl ( namespace = "http://schema.intuit.com/finance/v3" , name = "OLBStatus" ) public JAXBElement < OLBStatus > createOLBStatus ( OLBStatus value ) { } } | return new JAXBElement < OLBStatus > ( _OLBStatus_QNAME , OLBStatus . class , null , value ) ; |
public class Opcode { /** * Reverses the condition for an " if " opcode . i . e . IFEQ is changed to
* IFNE . */
public final static byte reverseIfOpcode ( byte opcode ) { } } | // Actually , because the numbers assigned to the " if " opcodes
// were so cleverly chosen , all I really need to do is toggle
// bit 0 . I ' m not going to do that because I still need to check if
// an invalid opcode was passed in .
switch ( opcode ) { case IF_ACMPEQ : return IF_ACMPNE ; case IF_ACMPNE : return IF_A... |
public class AbstractFourierTransformProduct { /** * / * ( non - Javadoc )
* @ see net . finmath . fouriermethod . products . FourierTransformProduct # getValues ( double , net . finmath . modelling . Model ) */
@ Override public Map < String , Object > getValues ( double evaluationTime , Model model ) { } } | Map < String , Object > result = new HashMap < > ( ) ; try { double value = getValue ( ( CharacteristicFunctionModel ) model ) ; result . put ( "value" , value ) ; } catch ( CalculationException e ) { result . put ( "exception" , e ) ; } return result ; |
public class SourceMapGeneratorV3 { /** * Assigns sequential ids to used mappings , and returns the last line mapped . */
private int prepMappings ( ) throws IOException { } } | // Mark any unused mappings .
( new MappingTraversal ( ) ) . traverse ( new UsedMappingCheck ( ) ) ; // Renumber used mappings and keep track of the last line .
int id = 0 ; int maxLine = 0 ; for ( Mapping m : mappings ) { if ( m . used ) { m . id = id ++ ; int endPositionLine = m . endPosition . getLine ( ) ; maxLine ... |
public class RoLocalSessionDataFactory { /** * / * ( non - Javadoc )
* @ see org . jdiameter . common . api . app . IAppSessionDataFactory # getAppSessionData ( java . lang . Class , java . lang . String ) */
@ Override public IRoSessionData getAppSessionData ( Class < ? extends AppSession > clazz , String sessionId ... | if ( clazz . equals ( ClientRoSession . class ) ) { ClientRoSessionDataLocalImpl data = new ClientRoSessionDataLocalImpl ( ) ; data . setSessionId ( sessionId ) ; return data ; } else if ( clazz . equals ( ServerRoSession . class ) ) { ServerRoSessionDataLocalImpl data = new ServerRoSessionDataLocalImpl ( ) ; data . se... |
public class AbstractCommunicationHandler { /** * Use gzip to compress the input stream .
* We do copying here , but I ' m not sure whether there is a way around it anyway ,
* because we need to know the number of bytes to send out , before we can
* start sending them . ( no chunked encoding )
* @ param is
* ... | int next = - 1 ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; OutputStream os = new GZIPOutputStream ( baos ) ; while ( ( next = is . read ( ) ) >= 0 ) { os . write ( next ) ; } baos . close ( ) ; os . close ( ) ; is . close ( ) ; return new ByteArrayInputStream ( baos . toByteArray ( ) ) ; |
public class SingleThreadEventExecutor { /** * Returns the absolute point in time ( relative to { @ link # nanoTime ( ) } ) at which the the next
* closest scheduled task should run . */
@ UnstableApi protected long deadlineNanos ( ) { } } | ScheduledFutureTask < ? > scheduledTask = peekScheduledTask ( ) ; if ( scheduledTask == null ) { return nanoTime ( ) + SCHEDULE_PURGE_INTERVAL ; } return scheduledTask . deadlineNanos ( ) ; |
public class CreateWSDL20 { /** * AddSchema Method . */
public void addSchema ( String version , TypesType typesType , MessageInfo recMessageInfo ) { } } | String name = this . fixName ( recMessageInfo . getField ( MessageInfo . DESCRIPTION ) . toString ( ) ) ; Import importel = schemaFactory . createImport ( ) ; typesType . getAny ( ) . add ( importel ) ; String code = recMessageInfo . getField ( MessageInfo . CODE ) . toString ( ) ; if ( code == null ) code = name ; Str... |
public class ToIntBiFunctionBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */
@ Nonnull public static < T1 , T2 > ToIntBiFunction < T1 , T2 > toIntBiFunctionFrom ( Consumer < ToIntBiFunctionBuilder < T1 , T2 > > bu... | ToIntBiFunctionBuilder builder = new ToIntBiFunctionBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ; |
public class SentryException { /** * Transforms a { @ link Throwable } into a Queue of { @ link SentryException } .
* Exceptions are stored in the queue from the most recent one to the oldest one .
* @ param throwable throwable to transform in a queue of exceptions .
* @ return a queue of exception with StackTrac... | Deque < SentryException > exceptions = new ArrayDeque < > ( ) ; Set < Throwable > circularityDetector = new HashSet < > ( ) ; StackTraceElement [ ] childExceptionStackTrace = new StackTraceElement [ 0 ] ; // Stack the exceptions to send them in the reverse order
while ( throwable != null && circularityDetector . add ( ... |
public class Levenshtein { /** * Returns a new Longest Common Subsequence edit distance instance with compare target string
* @ see LongestCommonSubsequence
* @ param baseTarget
* @ param compareTarget
* @ return */
@ SuppressWarnings ( "unchecked" ) public static < T extends Levenshtein > T longestCommonSubseq... | return ( T ) new LongestCommonSubsequence ( baseTarget ) . update ( compareTarget ) ; |
public class AutoScalingGroup { /** * The suspended processes associated with the group .
* @ return The suspended processes associated with the group . */
public java . util . List < SuspendedProcess > getSuspendedProcesses ( ) { } } | if ( suspendedProcesses == null ) { suspendedProcesses = new com . amazonaws . internal . SdkInternalList < SuspendedProcess > ( ) ; } return suspendedProcesses ; |
public class SkinnyUUIDSerializer { /** * { @ inheritDoc } */
@ Override public SkinnyUUID deserialize ( SerializerInput in ) throws IOException , ClassNotFoundException { } } | return new SkinnyUUID ( in . readLong ( ) , in . readLong ( ) ) ; |
public class AbstractExtraLanguageValidator { /** * Generate an error for the extra - language .
* < p > This function generates an error , a warning , or an information depending on the extra - language generation ' s
* configuration .
* @ param message the error message .
* @ param source the source of the er... | getContext ( ) . getMessageAcceptor ( ) . acceptError ( MessageFormat . format ( getErrorMessageFormat ( ) , message ) , source , feature , ValidationMessageAcceptor . INSIGNIFICANT_INDEX , IssueCodes . INVALID_EXTRA_LANGUAGE_GENERATION ) ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcCurveStyleFont ( ) { } } | if ( ifcCurveStyleFontEClass == null ) { ifcCurveStyleFontEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 165 ) ; } return ifcCurveStyleFontEClass ; |
public class Client { /** * Retrieve the request History based on the specified filters .
* If no filter is specified , return the default size history .
* @ param filters filters to be applied
* @ return array of History items
* @ throws Exception exception */
public History [ ] filterHistory ( String ... filt... | BasicNameValuePair [ ] params ; if ( filters . length > 0 ) { params = new BasicNameValuePair [ filters . length ] ; for ( int i = 0 ; i < filters . length ; i ++ ) { params [ i ] = new BasicNameValuePair ( "source_uri[]" , filters [ i ] ) ; } } else { return refreshHistory ( ) ; } return constructHistory ( params ) ; |
public class CPDefinitionOptionValueRelUtil { /** * Returns the first cp definition option value rel in the ordered set where uuid = & # 63 ; and companyId = & # 63 ; .
* @ param uuid the uuid
* @ param companyId the company ID
* @ param orderByComparator the comparator to order the set by ( optionally < code > n... | return getPersistence ( ) . findByUuid_C_First ( uuid , companyId , orderByComparator ) ; |
public class PagerDuty { /** * Create a new instance using the specified API key and configured { @ link Retrofit } . */
public static PagerDuty create ( String apiKey , Retrofit retrofit ) { } } | checkStringArgument ( apiKey , "apiKey" ) ; checkNotNull ( retrofit , "retrofit" ) ; return realPagerDuty ( apiKey , retrofit . create ( EventService . class ) ) ; |
public class OperationsClient { /** * Starts asynchronous cancellation on a long - running operation . The server makes a best effort to
* cancel the operation , but success is not guaranteed . If the server doesn ' t support this method ,
* it returns ` google . rpc . Code . UNIMPLEMENTED ` . Clients can use
* [... | CancelOperationRequest request = CancelOperationRequest . newBuilder ( ) . setName ( name ) . build ( ) ; cancelOperation ( request ) ; |
public class A_CmsSearchFieldConfiguration { /** * Adds a field to this search field configuration . < p >
* @ param field the field to add */
public void addField ( CmsSearchField field ) { } } | if ( ( field != null ) && ( field . getName ( ) != null ) ) { m_fields . put ( field . getName ( ) , field ) ; } |
public class nsmemory_stats { /** * Use this API to fetch statistics of nsmemory _ stats resource of given name . */
public static nsmemory_stats get ( nitro_service service , String pool ) throws Exception { } } | nsmemory_stats obj = new nsmemory_stats ( ) ; obj . set_pool ( pool ) ; nsmemory_stats response = ( nsmemory_stats ) obj . stat_resource ( service ) ; return response ; |
public class UserResourceHeaderScreen { /** * SetupSFields Method . */
public void setupSFields ( ) { } } | this . getRecord ( UserResource . USER_RESOURCE_FILE ) . getField ( UserResource . DESCRIPTION ) . setupDefaultView ( this . getNextLocation ( ScreenConstants . NEXT_LOGICAL , ScreenConstants . ANCHOR_DEFAULT ) , this , ScreenConstants . DEFAULT_DISPLAY ) ; |
public class ScopeEcmascriptDebugger { /** * TODO needs retry approach ? */
public List < Integer > examineObjects ( Integer id ) { } } | ObjectList list = getObjectList ( id ) ; List < Integer > ids = Lists . newArrayList ( ) ; List < Property > properties = list . getObjectList ( 0 ) . getPropertyListList ( ) ; for ( Property property : properties ) { if ( property . getType ( ) . equals ( "object" ) ) { ids . add ( property . getObjectValue ( ) . getO... |
public class BigMoney { /** * Returns a copy of this monetary value with the specified scale ,
* using the specified rounding mode if necessary .
* The returned instance will have this currency and the new scaled amount .
* For example , scaling ' USD 43.271 ' to a scale of 1 with HALF _ EVEN rounding
* will yi... | MoneyUtils . checkNotNull ( roundingMode , "RoundingMode must not be null" ) ; if ( scale == amount . scale ( ) ) { return this ; } return BigMoney . of ( currency , amount . setScale ( scale , roundingMode ) ) ; |
public class Controller { /** * Convenience method , takes in a map of values to flash .
* @ see # flash ( String , String )
* @ param values values to flash . */
protected void flash ( Map < String , String > values ) { } } | for ( Object key : values . keySet ( ) ) { flash ( key . toString ( ) , values . get ( key ) ) ; } |
public class GreenPepperServerServiceImpl { /** * { @ inheritDoc } */
public Execution runSpecification ( SystemUnderTest systemUnderTest , Specification specification , boolean implementedVersion , String locale ) throws GreenPepperServerException { } } | try { sessionService . startSession ( ) ; sessionService . beginTransaction ( ) ; Repository repository = loadRepository ( specification . getRepository ( ) . getUid ( ) ) ; Execution exe = documentDao . runSpecification ( systemUnderTest , specification , implementedVersion , locale ) ; log . debug ( "Runned Specifica... |
public class SpringIOUtils { /** * Copy the contents of the given byte array to the given output File .
* @ param in the byte array to copy from
* @ param out the file to copy to
* @ throws IOException in case of I / O errors */
public static void copy ( byte [ ] in , File out ) throws IOException { } } | assert in != null : "No input byte array specified" ; assert out != null : "No output File specified" ; ByteArrayInputStream inStream = new ByteArrayInputStream ( in ) ; OutputStream outStream = new BufferedOutputStream ( Files . newOutputStream ( out . toPath ( ) ) ) ; copy ( inStream , outStream ) ; |
public class GlstringBuilder { /** * Return this GL String builder configured with the specified allele . Calls to this method must
* be interspersed by calls to operator methods ( { @ link # allelicAmbiguity ( ) } , { @ link # inPhase ( ) } ,
* { @ link # plus ( ) } , { @ link # genotypicAmbiguity ( ) } , and { @ ... | Node node = new Node ( ) ; node . value = glstring ; if ( tree . isEmpty ( ) ) { tree . root = node ; } else { if ( ! tree . root . isOperator ( ) ) { throw new IllegalStateException ( "must provide an operator(allelicAmbiguity, inPhase, plus, genotypicAmbiguity, locus) between successive calls to allele(glstring)" ) ;... |
public class LIBSVMLoader { /** * Loads a new classification data set from a LIBSVM file , assuming the
* label is a nominal target value
* @ param reader the input stream for the file to load
* @ param sparseRatio the fraction of non zero values to qualify a data
* point as sparse
* @ param vectorLength the ... | return loadC ( reader , sparseRatio , vectorLength , DataStore . DEFAULT_STORE ) ; |
public class CommerceAccountUserRelWrapper { /** * Sets the primary key of this commerce account user rel .
* @ param primaryKey the primary key of this commerce account user rel */
@ Override public void setPrimaryKey ( com . liferay . commerce . account . service . persistence . CommerceAccountUserRelPK primaryKey ... | _commerceAccountUserRel . setPrimaryKey ( primaryKey ) ; |
public class DescribeScalingPlanResourcesResult { /** * Information about the scalable resources .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setScalingPlanResources ( java . util . Collection ) } or { @ link # withScalingPlanResources ( java . util . Co... | if ( this . scalingPlanResources == null ) { setScalingPlanResources ( new java . util . ArrayList < ScalingPlanResource > ( scalingPlanResources . length ) ) ; } for ( ScalingPlanResource ele : scalingPlanResources ) { this . scalingPlanResources . add ( ele ) ; } return this ; |
public class MtasBasicParser { /** * Adds the and encode .
* @ param originalValue the original value
* @ param newType the new type
* @ param newValue the new value
* @ param encode the encode
* @ return the string */
private String addAndEncode ( String originalValue , String newType , String newValue , boo... | if ( newValue == null ) { return originalValue ; } else { String finalNewValue ; if ( encode ) { if ( newType == null ) { finalNewValue = new String ( enc . encode ( newValue . getBytes ( StandardCharsets . UTF_8 ) ) , StandardCharsets . UTF_8 ) ; } else { finalNewValue = new String ( enc . encode ( newType . getBytes ... |
public class EventBus { /** * Register the subscriber with the specified < code > eventId < / code > and < code > threadMode < / code > .
* If the same register has been registered before , it be over - written with the new specified < code > eventId < / code > and < code > threadMode < / code > .
* @ param subscri... | if ( ! isSupportedThreadMode ( threadMode ) ) { throw new RuntimeException ( "Unsupported thread mode: " + threadMode ) ; } if ( logger . isInfoEnabled ( ) ) { logger . info ( "Registering subscriber: " + subscriber + " with eventId: " + eventId + " and thread mode: " + threadMode ) ; } final Class < ? > cls = subscrib... |
public class DeleteUserRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteUserRequest deleteUserRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteUserRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteUserRequest . getAccessToken ( ) , ACCESSTOKEN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . ... |
public class AWSKMSClient { /** * Invoke the request using the http client . Assumes credentials ( or lack thereof ) have been configured in the
* ExecutionContext beforehand . */
private < X , Y extends AmazonWebServiceRequest > Response < X > doInvoke ( Request < Y > request , HttpResponseHandler < AmazonWebService... | request . setEndpoint ( endpoint ) ; request . setTimeOffset ( timeOffset ) ; HttpResponseHandler < AmazonServiceException > errorResponseHandler = protocolFactory . createErrorResponseHandler ( new JsonErrorResponseMetadata ( ) ) ; return client . execute ( request , responseHandler , errorResponseHandler , executionC... |
public class JsonRpcHttpAsyncClient { /** * Reads a JSON - PRC response from the server . This blocks until a response
* is received .
* @ param returnType the expected return type
* @ param ips the { @ link InputStream } to read from
* @ return the object returned by the JSON - RPC response
* @ throws Throwa... | JsonNode response = mapper . readTree ( new NoCloseInputStream ( ips ) ) ; logger . debug ( "JSON-PRC Response: {}" , response ) ; if ( ! response . isObject ( ) ) { throw new JsonRpcClientException ( 0 , "Invalid JSON-RPC response" , response ) ; } ObjectNode jsonObject = ObjectNode . class . cast ( response ) ; if ( ... |
public class Function { /** * Get a parameter / argument by its position .
* @ param n position
* @ return the parameter */
private String getNth ( int n , List < String > list , String typeName ) { } } | if ( n < 0 ) { throw new FuzzerException ( name + ": " + n + ": " + typeName + " reference must be positive" ) ; } if ( n >= list . size ( ) ) { throw new FuzzerException ( name + ": " + n + " illegal " + typeName + " position" ) ; } return list . get ( n ) ; |
public class ByteBuf { /** * Sets { @ link # tail } if this { @ code ByteBuf } is not recycled .
* @ param pos the value which will be assigned to the { @ link # tail } .
* Must be bigger or equal to { @ link # head }
* and smaller than length of the { @ link # array } */
public void tail ( int pos ) { } } | assert ! isRecycled ( ) : "Attempt to use recycled bytebuf" ; assert pos >= head && pos <= array . length ; tail = pos ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getBPG ( ) { } } | if ( bpgEClass == null ) { bpgEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 217 ) ; } return bpgEClass ; |
public class DeepLearning { /** * Return a query link to this page
* @ param k Model Key
* @ param content Link text
* @ param cp Key to checkpoint to continue training with ( optional )
* @ param response Response
* @ param val Validation data set key
* @ return HTML Link */
public static String link ( Key... | DeepLearning req = new DeepLearning ( ) ; RString rs = new RString ( "<a href='" + req . href ( ) + ".query?source=%$key" + ( cp == null ? "" : "&checkpoint=%$cp" ) + ( response == null ? "" : "&response=%$resp" ) + ( val == null ? "" : "&validation=%$valkey" ) + "'>%content</a>" ) ; rs . replace ( "key" , k . toString... |
public class SipFactoryImpl { /** * ( non - Javadoc )
* @ see javax . servlet . sip . SipFactory # createRequest ( javax . servlet . sip . SipServletRequest ,
* boolean ) */
public SipServletRequest createRequest ( SipServletRequest origRequest , boolean sameCallId ) { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Creating SipServletRequest from original request[" + origRequest + "] with same call id[" + sameCallId + "]" ) ; } final SipServletRequestImpl origRequestImpl = ( SipServletRequestImpl ) origRequest ; final MobicentsSipApplicationSession originalAppSession = ( Mobi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.