signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class BuildTasksInner { /** * Get the source control properties for a build task . * @ param resourceGroupName The name of the resource group to which the container registry belongs . * @ param registryName The name of the container registry . * @ param buildTaskName The name of the container registry buil...
if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( registr...
public class ArcEagerBeamTrainer { /** * 获取 zero cost oracle * @ param instance 训练实例 * @ param oracles 当前的oracle * @ param newOracles 储存新oracle * @ return 这些 oracles 中在模型看来分数最大的那个 * @ throws Exception */ private Configuration zeroCostDynamicOracle ( Instance instance , Collection < Configuration > oracles , C...
float bestScore = Float . NEGATIVE_INFINITY ; Configuration bestScoringOracle = null ; for ( Configuration configuration : oracles ) { if ( ! configuration . state . isTerminalState ( ) ) { State currentState = configuration . state ; Object [ ] features = FeatureExtractor . extractAllParseFeatures ( configuration , fe...
public class VcfReader { /** * Read zero or more VCF samples from the specified file . * @ param file file to read from , must not be null * @ return zero or more VCF samples read from the specified file * @ throws IOException if an I / O error occurs */ public static Iterable < VcfSample > samples ( final File f...
checkNotNull ( file ) ; try ( BufferedReader reader = new BufferedReader ( new FileReader ( file ) ) ) { return samples ( reader ) ; }
public class AmazonRedshiftClient { /** * Returns the total amount of snapshot usage and provisioned storage for a user in megabytes . * @ param describeStorageRequest * @ return Result of the DescribeStorage operation returned by the service . * @ sample AmazonRedshift . DescribeStorage * @ see < a href = " ht...
request = beforeClientExecution ( request ) ; return executeDescribeStorage ( request ) ;
public class SequenceFunctionRefiner { /** * Like { @ link AlignmentTools # applyAlignment ( Map , int ) } , returns a map of k applications of alignmentMap . However , * it also sets loops of size less than k as ineligible . * @ param alignmentMap * f ( x ) * @ param k * @ param eligible * Eligible residue...
// Convert to lists to establish a fixed order ( avoid concurrent modification ) List < Integer > preimage = new ArrayList < Integer > ( alignmentMap . keySet ( ) ) ; // currently unmodified List < Integer > image = new ArrayList < Integer > ( preimage ) ; for ( int n = 1 ; n <= k ; n ++ ) { // apply alignment for ( in...
public class ClassDoc { /** * Get a MethodDoc in this ClassDoc with a name and signature * matching that of the specified MethodDoc */ public MethodDoc getMatchingMethod ( MethodDoc method ) { } }
MethodDoc [ ] methods = getMethods ( ) ; for ( int i = 0 ; i < methods . length ; i ++ ) { if ( method . getName ( ) . equals ( methods [ i ] . getName ( ) ) && method . getSignature ( ) . equals ( methods [ i ] . getSignature ( ) ) ) { return methods [ i ] ; } } return null ;
public class MotionImageInserterMarshaller { /** * Marshall the given parameter object . */ public void marshall ( MotionImageInserter motionImageInserter , ProtocolMarshaller protocolMarshaller ) { } }
if ( motionImageInserter == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( motionImageInserter . getFramerate ( ) , FRAMERATE_BINDING ) ; protocolMarshaller . marshall ( motionImageInserter . getInput ( ) , INPUT_BINDING ) ; protocolMarshal...
public class BigtableSession { /** * { @ inheritDoc } */ @ Override public synchronized void close ( ) throws IOException { } }
if ( watchdog != null ) { watchdog . stop ( ) ; } long timeoutNanos = TimeUnit . SECONDS . toNanos ( 10 ) ; long endTimeNanos = System . nanoTime ( ) + timeoutNanos ; for ( ManagedChannel channel : managedChannels ) { channel . shutdown ( ) ; } for ( ManagedChannel channel : managedChannels ) { long awaitTimeNanos = en...
public class EventSubscriptionsInner { /** * Create or update an event subscription . * Asynchronously creates a new event subscription or updates an existing event subscription based on the specified scope . * @ param scope The identifier of the resource to which the event subscription needs to be created or updat...
return ServiceFuture . fromResponse ( createOrUpdateWithServiceResponseAsync ( scope , eventSubscriptionName , eventSubscriptionInfo ) , serviceCallback ) ;
public class TargetsApi { /** * Save a personal favorite * Save a target to the agent & # 39 ; s personal favorites in the specified category . * @ param personalFavoriteData ( required ) * @ return ApiResponse & lt ; ApiSuccessResponse & gt ; * @ throws ApiException If fail to call the API , e . g . server err...
com . squareup . okhttp . Call call = savePersonalFavoriteValidateBeforeCall ( personalFavoriteData , null , null ) ; Type localVarReturnType = new TypeToken < ApiSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class SRTServletRequest { /** * Returns the name of the user making this request , or null if not * known . Same as the CGI variable REMOTE _ USER . * This logic is delegatd to the registered IWebAppSecurityCollaborator . */ public String getRemoteUser ( ) { } }
if ( WCCustomProperties . CHECK_REQUEST_OBJECT_IN_USE ) { checkRequestObjectInUse ( ) ; } String remoteUser = null ; Principal principal = getUserPrincipal ( ) ; if ( principal == null ) { // remoteUser = null ; if ( _request != null ) { remoteUser = _request . getRemoteUser ( ) ; } } else { remoteUser = principal . ge...
public class MyHTTPUtils { /** * Get the response headers for URL * @ param stringUrl URL to use * @ return headers HTTP Headers * @ throws IOException I / O error happened */ public static Map < String , List < String > > getResponseHeaders ( String stringUrl ) throws IOException { } }
return getResponseHeaders ( stringUrl , true ) ;
public class IOUtils { /** * write file * @ param filePath * @ param stream * @ return * @ see { @ link # writeStream ( String , InputStream , boolean ) } */ public static boolean writeStream ( String filePath , InputStream stream ) throws IOException { } }
return writeStream ( filePath , stream , false ) ;
public class ExtractUtil { /** * Return the response bodies as String from a JavaDoc comment block . * @ param jdoc The javadoc block comment . * @ return the response bodies as String */ public static List < String > extractResponseBodies ( JavadocComment jdoc ) { } }
List < String > list = new ArrayList < > ( ) ; list . addAll ( extractDocAnnotation ( DOC_RESPONSE_BODY , jdoc ) ) ; return list ;
public class DomService { private static int sizeToInt ( String size ) { } }
int position = size . indexOf ( 'p' ) ; if ( position < 0 ) { return Integer . parseInt ( size ) ; } return Integer . parseInt ( size . substring ( 0 , position ) ) ;
public class HttpResponseParser { /** * Parses the reason phrase . This is called from the generated bytecode . * @ param buffer The buffer * @ param state The current state * @ param builder The exchange builder * @ return The number of bytes remaining */ @ SuppressWarnings ( "unused" ) final void handleReason...
StringBuilder stringBuilder = state . stringBuilder ; while ( buffer . hasRemaining ( ) ) { final char next = ( char ) buffer . get ( ) ; if ( next == '\n' || next == '\r' ) { builder . setReasonPhrase ( stringBuilder . toString ( ) ) ; state . state = ResponseParseState . AFTER_REASON_PHRASE ; state . stringBuilder . ...
public class JtsBinaryParser { /** * Parse the given { @ link org . postgis . binary . ValueGetter } into a JTS * { @ link org . locationtech . jts . geom . MultiLineString } . * @ param data { @ link org . postgis . binary . ValueGetter } to parse . * @ param srid SRID of the parsed geometries . * @ return The...
int count = data . getInt ( ) ; LineString [ ] strings = new LineString [ count ] ; this . parseGeometryArray ( data , strings , srid ) ; return JtsGeometry . geofac . createMultiLineString ( strings ) ;
public class RandomProjection { /** * Create a copy random projection by using matrix product with a random matrix * @ param data * @ return the projected matrix */ public INDArray project ( INDArray data ) { } }
long [ ] tShape = targetShape ( data . shape ( ) , eps , components , autoMode ) ; return data . mmul ( getProjectionMatrix ( tShape , this . rng ) ) ;
public class MultiMEProxyHandler { /** * Method that creates the NeighbourProxyListener instance for reading messages * from the Neighbours . It then registers the listener to start receiving * messages * @ throws SIResourceException Thrown if there are errors while * creating the */ private void createProxyLis...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "createProxyListener" ) ; // Create the proxy listener instance _proxyListener = new NeighbourProxyListener ( _neighbours , this ) ; /* * Now we can create our asynchronous consumer to listen on * SYSTEM . MENAME . PROXY ....
public class VisualStudioNETProjectWriter { /** * Returns true if the file has an extension that * appears in the group filter . * @ param filter * String group filter * @ param candidate * File file * @ return boolean true if member of group */ private boolean isGroupMember ( final String filter , final Fi...
final String fileName = candidate . getName ( ) ; final int lastDot = fileName . lastIndexOf ( '.' ) ; if ( lastDot >= 0 && lastDot < fileName . length ( ) - 1 ) { final String extension = ";" + fileName . substring ( lastDot + 1 ) . toLowerCase ( ) + ";" ; final String semiFilter = ";" + filter + ";" ; return semiFilt...
public class InternalService { /** * Returns observable to update a conversation . * @ param conversationId ID of a conversation to update . * @ param request Request with conversation details to update . * @ param eTag Tag to specify local data version . * @ return Observable to update a conversation . */ publ...
final String token = getToken ( ) ; if ( sessionController . isCreatingSession ( ) ) { return getTaskQueue ( ) . queueUpdateConversation ( conversationId , request , eTag ) ; } else if ( TextUtils . isEmpty ( token ) ) { return Observable . error ( getSessionStateErrorDescription ( ) ) ; } else { return doUpdateConvers...
public class _ARouter { /** * Build postcard by path and group */ protected Postcard build ( String path , String group ) { } }
if ( TextUtils . isEmpty ( path ) || TextUtils . isEmpty ( group ) ) { throw new HandlerException ( Consts . TAG + "Parameter is invalid!" ) ; } else { PathReplaceService pService = ARouter . getInstance ( ) . navigation ( PathReplaceService . class ) ; if ( null != pService ) { path = pService . forString ( path ) ; }...
public class PropertiesTask { /** * Public API . */ public Formula getFormula ( ) { } }
Reagent [ ] reagents = new Reagent [ ] { ResourceHelper . CONTEXT_SOURCE , ResourceHelper . LOCATION_TASK , AbstractContainerTask . SUBTASKS } ; final Formula rslt = new SimpleFormula ( getClass ( ) , reagents ) ; return rslt ;
public class BaseBankCardTrackData { /** * Verifies that the available data is consistent between Track 1 and * Track 2 , or any other track . * @ return True if the data is consistent . */ public boolean isConsistentWith ( final BaseBankCardTrackData other ) { } }
if ( this == other ) { return true ; } if ( other == null ) { return false ; } boolean equals = true ; if ( hasAccountNumber ( ) && other . hasAccountNumber ( ) ) { if ( ! getAccountNumber ( ) . equals ( other . getAccountNumber ( ) ) ) { equals = false ; } } if ( hasExpirationDate ( ) && other . hasExpirationDate ( ) ...
public class TransTypes { /** * Add a bridge definition and enter corresponding method symbol in * local scope of origin . * @ param pos The source code position to be used for the definition . * @ param meth The method for which a bridge needs to be added * @ param impl That method ' s implementation ( possibl...
make . at ( pos ) ; Type origType = types . memberType ( origin . type , meth ) ; Type origErasure = erasure ( origType ) ; // Create a bridge method symbol and a bridge definition without a body . Type bridgeType = meth . erasure ( types ) ; long flags = impl . flags ( ) & AccessFlags | SYNTHETIC | BRIDGE | ( origin ....
public class CompressionUtil { /** * Compresses the source file using a variety of supported compression * algorithms . This method will create a target file in the same * directory as the source file and will append a file extension matching * the compression algorithm used . For example , using " gzip " will me...
return compress ( sourceFile , sourceFile . getParentFile ( ) , algorithm , deleteSourceFileAfterCompressed ) ;
public class AbstractCloseableIteratorCollection { /** * Copied from AbstractCollection since we need to close iterator */ @ Override public < T > T [ ] toArray ( T [ ] a ) { } }
// Estimate size of array ; be prepared to see more or fewer elements int size = size ( ) ; T [ ] r = a . length >= size ? a : ( T [ ] ) java . lang . reflect . Array . newInstance ( a . getClass ( ) . getComponentType ( ) , size ) ; try ( CloseableIterator < O > it = iterator ( ) ) { for ( int i = 0 ; i < r . length ;...
public class StringUtil { /** * Converts the specified byte array into a hexadecimal value and appends it to the specified buffer . */ public static < T extends Appendable > T toHexString ( T dst , byte [ ] src ) { } }
return toHexString ( dst , src , 0 , src . length ) ;
public class auditsyslogpolicy_vpnvserver_binding { /** * Use this API to fetch auditsyslogpolicy _ vpnvserver _ binding resources of given name . */ public static auditsyslogpolicy_vpnvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { } }
auditsyslogpolicy_vpnvserver_binding obj = new auditsyslogpolicy_vpnvserver_binding ( ) ; obj . set_name ( name ) ; auditsyslogpolicy_vpnvserver_binding response [ ] = ( auditsyslogpolicy_vpnvserver_binding [ ] ) obj . get_resources ( service ) ; return response ;
public class HashIndex { /** * Unlink a node from a linked list and link into the reclaimed list . * @ param index an index into hashTable * @ param lastLookup either - 1 or the node to which the target node is linked * @ param lookup the node to remove */ void unlinkNode ( int index , int lastLookup , int lookup...
// A VoltDB extension to diagnose ArrayOutOfBounds . voltDBhistory [ voltDBhistoryDepth ++ % voltDBhistoryCapacity ] = - index - 1 ; // End of VoltDB extension // unlink the node if ( lastLookup == - 1 ) { hashTable [ index ] = linkTable [ lookup ] ; } else { linkTable [ lastLookup ] = linkTable [ lookup ] ; } // add t...
public class ResourceManager { /** * private Mixer getMixer ( ) * Info [ ] mixerInfo = AudioSystem . getMixerInfo ( ) ; * int i = 0; * boolean present = false ; * while ( i < mixerInfo . length & & ! present ) * if ( mixerInfo [ i ] . getName ( ) . contains ( " Java " ) ) * present = true ; * else * if ...
try { java . net . URL soundurl = ResourceManager . class . getResource ( "/res/" + pName + ".wav" ) ; AudioInputStream s = AudioSystem . getAudioInputStream ( soundurl ) ; Clip snd = AudioSystem . getClip ( ) ; snd . open ( s ) ; mSounds . put ( pName , snd ) ; return snd ; } catch ( Exception e ) { LOGGER . error ( "...
public class AbstractSingleton { /** * Implementation of { @ link IScopeDestructionAware } . Calls the protected * { @ link # onBeforeDestroy ( ) } method . */ @ Override public final void onBeforeScopeDestruction ( @ Nonnull final IScope aScopeToBeDestroyed ) throws Exception { } }
if ( LOGGER . isDebugEnabled ( ) ) LOGGER . debug ( "onBeforeScopeDestruction for '" + toString ( ) + "' in scope " + aScopeToBeDestroyed . toString ( ) ) ; // Check init state if ( isInInstantiation ( ) ) { if ( LOGGER . isWarnEnabled ( ) ) LOGGER . warn ( "Object currently in instantiation is destroyed soon: " + toSt...
public class LoginResponseParser { /** * { @ inheritDoc } */ @ Override public final void clear ( ) { } }
super . clear ( ) ; continueFlag = false ; currentStageNumber = LoginStage . SECURITY_NEGOTIATION ; nextStageNumber = LoginStage . SECURITY_NEGOTIATION ; maxVersion = 0 ; activeVersion = 0 ; initiatorSessionID . clear ( ) ; targetSessionIdentifyingHandle = 0 ;
public class CmsFormatterConfigurationCacheState { /** * Gets the formatters as a multimap with the resource types as keys and caches this multimap if necessary . < p > * @ return the multimap of formatters by resource type */ private Multimap < String , I_CmsFormatterBean > getFormattersByType ( ) { } }
if ( m_formattersByType == null ) { ArrayListMultimap < String , I_CmsFormatterBean > formattersByType = ArrayListMultimap . create ( ) ; for ( I_CmsFormatterBean formatter : m_formatters . values ( ) ) { for ( String typeName : formatter . getResourceTypeNames ( ) ) { formattersByType . put ( typeName , formatter ) ; ...
public class Schema { /** * Get metadata about keyspace inner ColumnFamilies * @ param keyspaceName The name of the keyspace * @ return metadata about ColumnFamilies the belong to the given keyspace */ public Map < String , CFMetaData > getKeyspaceMetaData ( String keyspaceName ) { } }
assert keyspaceName != null ; KSMetaData ksm = keyspaces . get ( keyspaceName ) ; assert ksm != null ; return ksm . cfMetaData ( ) ;
public class GPXPoint { /** * Set a link to additional information about the point . * @ param attributes The current attributes being parsed */ public final void setLink ( Attributes attributes ) { } }
ptValues [ GpxMetadata . PTLINK ] = attributes . getValue ( GPXTags . HREF ) ;
public class ConnectionOptions { /** * Support for Java non - blocking IO * @ param nioParams The NIO mode can be configured through the NioParams class */ public ConnectionOptions withNioParams ( NioParams nioParams ) { } }
this . nioParams = nioParams ; factory . setNioParams ( Assert . notNull ( nioParams , "nioParams" ) ) ; factory . useNio ( ) ; return this ;
public class HpelHelper { /** * Determine if the specified Throwable contains a nested Throwable and return a reference * to that Throwable , if it exists . * @ param a non - null Throwable * @ return a reference to the nested Throwable . Null is returned if the specified Throwable * does not support nesting of...
// This is the current list of Throwables that we know of that support nested // exceptions . Add to the list if more show up . // D200273 // Throwables that support nested exceptions using getCause are not special any more since // in JDK1.4 that ' s what it ' s supposed to be called . // if ( t instanceof com . ibm ....
public class OverpassQuery { /** * Defines a global bounding box that is then implicitly added to all queries ( unless they specify a different explicit bounding box ) * @ param southernLat the southern latitude * @ param westernLon the western longitude * @ param northernLat the northern latitude * @ param eas...
builder . append ( String . format ( Locale . US , "[bbox:%s,%s,%s,%s]" , southernLat , westernLon , northernLat , easternLon ) ) ; return this ;
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 917:1 : modifyStatement : s = ' modify ' parExpression ' { ' ( e = expression ( ' , ' e = expression ) * ) ? c = ' } ' ; */ public final void modifyStatement ( ) throws RecognitionException { } }
int modifyStatement_StartIndex = input . index ( ) ; Token s = null ; Token c = null ; ParserRuleReturnScope e = null ; ParserRuleReturnScope parExpression7 = null ; JavaModifyBlockDescr d = null ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 89 ) ) { return ; } // src / main / resources / org / d...
public class DERBitString { /** * return the correct number of bytes for a bit string defined in * a 16 bit constant */ static protected byte [ ] getBytes ( int bitString ) { } }
if ( bitString > 255 ) { byte [ ] bytes = new byte [ 2 ] ; bytes [ 0 ] = ( byte ) ( bitString & 0xFF ) ; bytes [ 1 ] = ( byte ) ( ( bitString >> 8 ) & 0xFF ) ; return bytes ; } else { byte [ ] bytes = new byte [ 1 ] ; bytes [ 0 ] = ( byte ) ( bitString & 0xFF ) ; return bytes ; }
public class LongStream { /** * Returns the last element wrapped by { @ code OptionalLong } class . * If stream is empty , returns { @ code OptionalLong . empty ( ) } . * < p > This is a short - circuiting terminal operation . * @ return an { @ code OptionalLong } with the last element * or { @ code OptionalLon...
return reduce ( new LongBinaryOperator ( ) { @ Override public long applyAsLong ( long left , long right ) { return right ; } } ) ;
public class SimpleNodeListProvider { /** * Netflix specific impl so we can load from eureka . * @ param appName * @ return * @ throws IOException */ private Map < ServerGroup , EVCacheServerGroupConfig > bootstrapFromEureka ( String appName ) throws IOException { } }
if ( env == null || region == null ) return Collections . < ServerGroup , EVCacheServerGroupConfig > emptyMap ( ) ; final String url = "http://discoveryreadonly." + region + ".dyn" + env + ".netflix.net:7001/v2/apps/" + appName ; final CloseableHttpClient httpclient = HttpClients . createDefault ( ) ; final long start ...
public class RegularPactTask { /** * Creates a writer for each output . Creates an OutputCollector which forwards its input to all writers . * The output collector applies the configured shipping strategies for each writer . */ protected void initOutputs ( ) throws Exception { } }
this . chainedTasks = new ArrayList < ChainedDriver < ? , ? > > ( ) ; this . eventualOutputs = new ArrayList < BufferWriter > ( ) ; this . output = initOutputs ( this , this . userCodeClassLoader , this . config , this . chainedTasks , this . eventualOutputs ) ;
public class SerializerIntrinsics { /** * Conditional Move . */ public final void cmov ( CONDITION cc , Register dst , Register src ) { } }
emitX86 ( conditionToCMovCC ( cc ) , dst , src ) ;
public class UserInterfaceApi { /** * Open Market Details Open the market details window for a specific typeID * inside the client - - - SSO Scope : esi - ui . open _ window . v1 * @ param typeId * The item type to open in market window ( required ) * @ param datasource * The server name you would like data f...
postUiOpenwindowMarketdetailsWithHttpInfo ( typeId , datasource , token ) ;
public class GlobalUsersInner { /** * Get personal preferences for a user . * @ param userName The name of the user . * @ param personalPreferencesOperationsPayload Represents payload for any Environment operations like get , start , stop , connect * @ throws IllegalArgumentException thrown if parameters fail the...
if ( userName == null ) { throw new IllegalArgumentException ( "Parameter userName is required and cannot be null." ) ; } if ( personalPreferencesOperationsPayload == null ) { throw new IllegalArgumentException ( "Parameter personalPreferencesOperationsPayload is required and cannot be null." ) ; } if ( this . client ....
public class TimeZoneAdapter { /** * TimeZone API ; calls through to wrapped time zone . */ @ Override public int getOffset ( int era , int year , int month , int day , int dayOfWeek , int millis ) { } }
return zone . getOffset ( era , year , month , day , dayOfWeek , millis ) ;
public class IntArrayBitWriter { /** * assumes count is non - zero */ private void doWrite ( int bits , int count ) { } }
int frontBits = ( ( int ) position ) & 31 ; int firstInt = ( int ) ( position >> 5 ) ; int sumBits = count + frontBits ; if ( sumBits <= 32 ) { int i = ints [ firstInt ] ; int mask = frontMask ( frontBits ) | backMask ( sumBits ) ; i &= mask ; i |= ( bits << ( 32 - sumBits ) ) & ~ mask ; ints [ firstInt ] = i ; } else ...
public class CmsLocationSuggestOracle { /** * Executes the suggestions callback . < p > * @ param request the suggestions request * @ param suggestions the suggestions * @ param callback the callback */ private static void respond ( Request request , List < LocationSuggestion > suggestions , Callback callback ) {...
callback . onSuggestionsReady ( request , new Response ( suggestions ) ) ;
public class AmazonIdentityManagementClient { /** * Deletes the access key pair associated with the specified IAM user . * If you do not specify a user name , IAM determines the user name implicitly based on the AWS access key ID signing * the request . This operation works for access keys under the AWS account . C...
request = beforeClientExecution ( request ) ; return executeDeleteAccessKey ( request ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link String } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.ibm.com/websphere/wim" , name = "preferredLanguage" ) public JAXBElement < String > createPreferredLanguage ( String value ) { } }
return new JAXBElement < String > ( _PreferredLanguage_QNAME , String . class , null , value ) ;
public class FacesContext { /** * < p class = " changed _ added _ 2_0 " > Return the { @ link PartialViewContext } * for this request . The { @ link PartialViewContext } is used to control * the processing of specified components during the execute portion of * the request processing lifecycle ( known as partial ...
if ( defaultFacesContext != null ) { return defaultFacesContext . getPartialViewContext ( ) ; } if ( ! isCreatedFromValidFactory ) { if ( partialViewContextForInvalidFactoryConstruction == null ) { PartialViewContextFactory f = ( PartialViewContextFactory ) FactoryFinder . getFactory ( FactoryFinder . PARTIAL_VIEW_CONT...
public class SwidWriter { /** * Write the object into a file . * @ param swidTag * The root of content tree to be written . * @ param file * File to be written . If this file already exists , it will be overwritten . * @ throws com . labs64 . utils . swid . exception . SwidException * If any unexpected prob...
JAXBUtils . writeObject ( objectFactory . createSoftwareIdentificationTag ( swidTag ) , file , getComment ( ) ) ;
public class LocalVariableTableAttr { /** * Add an entry into the LocalVariableTableAttr . */ public void addEntry ( LocalVariable localVar ) { } }
String varName = localVar . getName ( ) ; if ( varName == null ) { int num = localVar . getNumber ( ) ; varName = num < 0 ? "_" : ( "v" + num + '$' ) ; } ConstantUTFInfo name = getConstantPool ( ) . addConstantUTF ( varName ) ; ConstantUTFInfo descriptor = getConstantPool ( ) . addConstantUTF ( localVar . getType ( ) ....
public class HexUtil { /** * 将十六进制字符数组转换为字符串 * @ param hexStr 十六进制String * @ param charset 编码 * @ return 字符串 */ public static String decodeHexStr ( String hexStr , Charset charset ) { } }
if ( StrUtil . isEmpty ( hexStr ) ) { return hexStr ; } return decodeHexStr ( hexStr . toCharArray ( ) , charset ) ;
public class InventoryItem { /** * The inventory data of the inventory type . * @ return The inventory data of the inventory type . */ public java . util . List < java . util . Map < String , String > > getContent ( ) { } }
if ( content == null ) { content = new com . amazonaws . internal . SdkInternalList < java . util . Map < String , String > > ( ) ; } return content ;
public class DisassociateDomainRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DisassociateDomainRequest disassociateDomainRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( disassociateDomainRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( disassociateDomainRequest . getFleetArn ( ) , FLEETARN_BINDING ) ; protocolMarshaller . marshall ( disassociateDomainRequest . getDomainName ( ) , DOMAINNAME_B...
public class CPFriendlyURLEntryPersistenceImpl { /** * Returns all the cp friendly url entries where groupId = & # 63 ; and classNameId = & # 63 ; and classPK = & # 63 ; and main = & # 63 ; . * @ param groupId the group ID * @ param classNameId the class name ID * @ param classPK the class pk * @ param main the...
return findByG_C_C_M ( groupId , classNameId , classPK , main , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ;
public class ServletRESTRequestWithParams { /** * ( non - Javadoc ) * @ see com . ibm . wsspi . rest . handler . RESTRequest # isUserInRole ( java . lang . String ) */ @ Override public boolean isUserInRole ( String role ) { } }
ServletRESTRequestImpl ret = castRequest ( ) ; if ( ret != null ) return ret . isUserInRole ( role ) ; return false ;
public class JcrNodeType { /** * { @ inheritDoc } * In JCR 1.0 , this method applied to all children . However , this was changed in the JSR - 283 specification to apply only to * nodes , and it is also deprecated . * @ see javax . jcr . nodetype . NodeType # canRemoveItem ( java . lang . String ) */ @ Override @...
CheckArg . isNotNull ( itemName , "itemName" ) ; Name childName = context . getValueFactories ( ) . getNameFactory ( ) . create ( itemName ) ; return nodeTypes ( ) . canRemoveItem ( this . name , null , childName , true ) ;
public class TypeMapStore { /** * Returns a TypeMap for the { @ code sourceType } , { @ code destinationType } and { @ code typeMapName } , * else null if none exists . */ @ SuppressWarnings ( "unchecked" ) public < S , D > TypeMap < S , D > get ( Class < S > sourceType , Class < D > destinationType , String typeMapN...
TypeMap < S , D > typeMap = ( TypeMap < S , D > ) typeMaps . get ( TypePair . of ( sourceType , destinationType , typeMapName ) ) ; if ( typeMap != null ) return typeMap ; for ( TypePair < ? , ? > typePair : getPrimitiveWrapperTypePairs ( sourceType , destinationType , typeMapName ) ) { typeMap = ( TypeMap < S , D > ) ...
public class BigSet { /** * Deleting data files . */ public void delete ( ) { } }
for ( int i = 1 ; i < m_nextNo ; i ++ ) { new File ( m_fileName + "_" + i ) . delete ( ) ; } m_nextNo = 1 ;
public class AWSApplicationDiscoveryClient { /** * Starts an import task , which allows you to import details of your on - premises environment directly into AWS * without having to use the Application Discovery Service ( ADS ) tools such as the Discovery Connector or Discovery * Agent . This gives you the option t...
request = beforeClientExecution ( request ) ; return executeStartImportTask ( request ) ;
public class KPointCrossover { /** * Has a probability < i > crossoverRate < / i > of performing the crossover where the operator will select at random multiple crossover points . < br > * Each gene comes from one of the two parents . Each time a crossover point is reached , the parent is switched . < br > * Otherw...
double [ ] [ ] parents = parentSelection . selectParents ( ) ; boolean isModified = false ; double [ ] resultGenes = parents [ 0 ] ; if ( rng . nextDouble ( ) < crossoverRate ) { // Select crossover points Deque < Integer > crossoverPoints = getCrossoverPointsGenerator ( parents [ 0 ] . length ) . getCrossoverPoints ( ...
public class JQLChecker { /** * Extract all bind parameters and dynamic part used in query . * @ param jqlContext * the jql context * @ param jql * the jql * @ return the list */ public List < JQLPlaceHolder > extractPlaceHoldersAsList ( final JQLContext jqlContext , String jql ) { } }
return extractPlaceHolders ( jqlContext , jql , new ArrayList < JQLPlaceHolder > ( ) ) ;
public class CoronaJobHistory { /** * Logs launch time of job . * @ param startTime start time of job . * @ param totalMaps total maps assigned by jobtracker . * @ param totalReduces total reduces . */ public void logInited ( long startTime , int totalMaps , int totalReduces ) { } }
if ( disableHistory ) { return ; } if ( null != writers ) { log ( writers , RecordTypes . Job , new Keys [ ] { Keys . JOBID , Keys . LAUNCH_TIME , Keys . TOTAL_MAPS , Keys . TOTAL_REDUCES , Keys . JOB_STATUS } , new String [ ] { jobId . toString ( ) , String . valueOf ( startTime ) , String . valueOf ( totalMaps ) , St...
public class DefaultManagedConnectionPool { /** * { @ inheritDoc } */ public void removeIdleConnections ( ) { } }
long now = System . currentTimeMillis ( ) ; long timeoutSetting = pool . getConfiguration ( ) . getIdleTimeoutMinutes ( ) * 1000L * 60 ; CapacityDecrementer decrementer = pool . getCapacity ( ) . getDecrementer ( ) ; if ( decrementer == null || ! credential . equals ( pool . getPrefillCredential ( ) ) ) { decrementer =...
public class IntArray { /** * Creates IntArray backed by int array * @ param buffer * @ param offset * @ param length * @ return */ public static IntArray getInstance ( int [ ] buffer , int offset , int length ) { } }
return getInstance ( IntBuffer . wrap ( buffer , offset , length ) ) ;
public class StringMatcher { /** * Implement UnicodeMatcher */ @ Override public String toPattern ( boolean escapeUnprintable ) { } }
StringBuffer result = new StringBuffer ( ) ; StringBuffer quoteBuf = new StringBuffer ( ) ; if ( segmentNumber > 0 ) { // i . e . , if this is a segment result . append ( '(' ) ; } for ( int i = 0 ; i < pattern . length ( ) ; ++ i ) { char keyChar = pattern . charAt ( i ) ; // OK ; see note ( 1 ) above UnicodeMatcher m...
public class VersionRegEx { /** * Returns the greater of the two given versions by comparing them using their natural * ordering . If both versions are equal , then the first argument is returned . * @ param v1 The first version . * @ param v2 The second version . * @ return The greater version . * @ throws I...
require ( v1 != null , "v1 is null" ) ; require ( v2 != null , "v2 is null" ) ; return compare ( v1 , v2 , false ) < 0 ? v2 : v1 ;
public class ArtifactCollector { /** * Capture artifact from the current test result context . * @ param reason impetus for capture request ; may be ' null ' * @ return ( optional ) path at which the captured artifact was stored */ public Optional < Path > captureArtifact ( Throwable reason ) { } }
if ( ! provider . canGetArtifact ( getInstance ( ) ) ) { return Optional . absent ( ) ; } byte [ ] artifact = provider . getArtifact ( getInstance ( ) , reason ) ; if ( ( artifact == null ) || ( artifact . length == 0 ) ) { return Optional . absent ( ) ; } Path collectionPath = getCollectionPath ( ) ; if ( ! collection...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link SurfacePropertyType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link SurfacePropertyType } { @ co...
return new JAXBElement < SurfacePropertyType > ( _SurfaceMember_QNAME , SurfacePropertyType . class , null , value ) ;
public class ListLogSubscriptionsResult { /** * A list of active < a > LogSubscription < / a > objects for calling the AWS account . * @ return A list of active < a > LogSubscription < / a > objects for calling the AWS account . */ public java . util . List < LogSubscription > getLogSubscriptions ( ) { } }
if ( logSubscriptions == null ) { logSubscriptions = new com . amazonaws . internal . SdkInternalList < LogSubscription > ( ) ; } return logSubscriptions ;
public class DescribeServicesRequest { /** * Specifies whether you want to see the resource tags for the service . If < code > TAGS < / code > is specified , the tags * are included in the response . If this field is omitted , tags are not included in the response . * @ param include * Specifies whether you want ...
if ( include == null ) { this . include = null ; return ; } this . include = new com . amazonaws . internal . SdkInternalList < String > ( include ) ;
public class AbstractLayer { /** * Update showing state . * @ param fireEvents Should events be fired if state changes ? */ protected void updateShowing ( boolean fireEvents ) { } }
double scale = mapModel . getMapView ( ) . getCurrentScale ( ) ; if ( visible ) { boolean oldShowing = showing ; showing = scale >= layerInfo . getMinimumScale ( ) . getPixelPerUnit ( ) && scale <= layerInfo . getMaximumScale ( ) . getPixelPerUnit ( ) ; if ( oldShowing != showing && fireEvents ) { handlerManager . fire...
public class SelectResultSet { /** * { inheritDoc } . */ public Object getObject ( int columnIndex ) throws SQLException { } }
checkObjectRange ( columnIndex ) ; return row . getInternalObject ( columnsInformation [ columnIndex - 1 ] , timeZone ) ;
public class AtomicMarkableReference { /** * Unconditionally sets the value of both the reference and mark . * @ param newReference the new value for the reference * @ param newMark the new value for the mark */ public void set ( V newReference , boolean newMark ) { } }
Pair < V > current = pair ; if ( newReference != current . reference || newMark != current . mark ) this . pair = Pair . of ( newReference , newMark ) ;
public class IotHubResourcesInner { /** * Get a list of all the jobs in an IoT hub . For more information , see : https : / / docs . microsoft . com / azure / iot - hub / iot - hub - devguide - identity - registry . * Get a list of all the jobs in an IoT hub . For more information , see : https : / / docs . microsoft...
if ( nextPageLink == null ) { throw new IllegalArgumentException ( "Parameter nextPageLink is required and cannot be null." ) ; } String nextUrl = String . format ( "%s" , nextPageLink ) ; return service . listJobsNext ( nextUrl , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func...
public class ConversionEvent_TrackingUrlsMapEntry { /** * Gets the key value for this ConversionEvent _ TrackingUrlsMapEntry . * @ return key */ public com . google . api . ads . admanager . axis . v201811 . ConversionEvent getKey ( ) { } }
return key ;
public class AnycastOutputHandler { /** * Helper method used by AOStream to persistently record that flush has been started * @ param t the transaction * @ param stream the stream making this call * @ return the Item written * @ throws Exception */ public final Item writeStartedFlush ( TransactionCommon t , AOS...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "writeStartedFlush" ) ; String key = SIMPUtils . getRemoteGetKey ( stream . getRemoteMEUuid ( ) , stream . getGatheringTargetDestUuid ( ) ) ; StreamInfo sinfo = streamTable . get ( key ) ; if ( ( sinfo != null ) && sinfo . s...
public class ClassFilter { /** * 对于java . lang . Object / java . util . Date对象 , hessian序列化时需要写入object / date , 此处进行转换 * @ param type 类名称 * @ return 转换结果 */ public static String encodeObjectAndDate ( String type ) { } }
return type . replace ( Object . class . getName ( ) , "object" ) . replace ( Date . class . getName ( ) , "date" ) ;
public class PolynomialRootFinder { /** * Given a set of polynomial coefficients , compute the roots of the polynomial . Depending on * the polynomial being considered the roots may contain complex number . When complex numbers are * present they will come in pairs of complex conjugates . * Coefficients are order...
int N = coefficients . length - 1 ; // Construct the companion matrix DMatrixRMaj c = new DMatrixRMaj ( N , N ) ; double a = coefficients [ N ] ; for ( int i = 0 ; i < N ; i ++ ) { c . set ( i , N - 1 , - coefficients [ i ] / a ) ; } for ( int i = 1 ; i < N ; i ++ ) { c . set ( i , i - 1 , 1 ) ; } // use generalized ei...
public class PerRequestResourceProvider { /** * { @ inheritDoc } */ @ Override public void releaseInstance ( Message m , Object o ) { } }
// Liberty Change for CXF Begain // if not managed by CDI or EJB , then call preDestory by ourself . // otherwise , perDestory has already been called by CDI / EJB JaxRsFactoryBeanCustomizer beanCustomizer = null ; if ( o != null ) { Bus bus = m . getExchange ( ) . getBus ( ) ; beanCustomizer = InjectionRuntimeContextH...
public class ConfigurationConversionService { /** * Creates a set of { @ code ConnectorType } based on the EVSEs . Duplicates will be filtered . * @ param evses list of EVSEs * @ return set of connector types */ public Set < ConnectorType > getConnectorTypesFromEvses ( Set < Evse > evses ) { } }
Set < ConnectorType > connectorTypes = new HashSet < > ( ) ; for ( Evse evse : evses ) { for ( Connector connector : evse . getConnectors ( ) ) { connectorTypes . add ( ConnectorType . fromConnectorType ( connector . getConnectorType ( ) ) ) ; } } return connectorTypes ;
public class AddressDivisionBase { /** * Gets the bytes for the lowest address in the range represented by this address division . * Since bytes are signed values while addresses are unsigned , values greater than 127 are * represented as the ( negative ) two ' s complement value of the actual value . * You can g...
byte cached [ ] = lowerBytes ; if ( cached == null ) { lowerBytes = cached = getBytesImpl ( true ) ; } return cached . clone ( ) ;
public class HttpActionBuilder { /** * Initiate http client action . */ public HttpClientActionBuilder client ( HttpClient httpClient ) { } }
HttpClientActionBuilder clientAction = new HttpClientActionBuilder ( action , httpClient ) . withApplicationContext ( applicationContext ) ; return clientAction ;
public class ListVirtualServicesResult { /** * The list of existing virtual services for the specified service mesh . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setVirtualServices ( java . util . Collection ) } or { @ link # withVirtualServices ( java . ...
if ( this . virtualServices == null ) { setVirtualServices ( new java . util . ArrayList < VirtualServiceRef > ( virtualServices . length ) ) ; } for ( VirtualServiceRef ele : virtualServices ) { this . virtualServices . add ( ele ) ; } return this ;
public class CPSpecificationOptionWrapper { /** * Sets the localized descriptions of this cp specification option from the map of locales and localized descriptions . * @ param descriptionMap the locales and localized descriptions of this cp specification option */ @ Override public void setDescriptionMap ( Map < jav...
_cpSpecificationOption . setDescriptionMap ( descriptionMap ) ;
public class IonWriterSystemBinary { /** * just transfer the bytes into the current patch as ' proper ' ion binary serialization */ public void writeRaw ( byte [ ] value , int start , int len ) throws IOException { } }
startValue ( TID_RAW ) ; _writer . write ( value , start , len ) ; _patch . patchValue ( len ) ; closeValue ( ) ;
public class BaseTool { /** * Validate the values parsed by the options , will apply this for each CLIToolOptions added to the tool . subclasses * may override this but should call super * @ param cli cli * @ param args args * @ throws CLIToolOptionsException if an error occurs */ public void validateOptions ( ...
if ( null != toolOptions ) { for ( final CLIToolOptions toolOpts : toolOptions ) { toolOpts . validate ( cli , args ) ; } }
public class PatternCLA { /** * { @ inheritDoc } */ @ Override public ComparablePattern convert ( final String valueStr , final boolean _caseSensitive , final Object target ) throws ParseException { } }
try { if ( _caseSensitive && isCaseSensitive ( ) ) return ComparablePattern . compile ( valueStr ) ; return ComparablePattern . compile ( valueStr , Pattern . CASE_INSENSITIVE ) ; } catch ( final PatternSyntaxException pse ) { throw new ParseException ( pse . getMessage ( ) , 0 ) ; }
public class NodeUtil { /** * Get the Node that defines the name of an object literal key . * @ param key A node */ static Node getObjectLitKeyNode ( Node key ) { } }
switch ( key . getToken ( ) ) { case STRING_KEY : case GETTER_DEF : case SETTER_DEF : case MEMBER_FUNCTION_DEF : return key ; case COMPUTED_PROP : return key . getFirstChild ( ) . isString ( ) ? key . getFirstChild ( ) : null ; default : break ; } throw new IllegalStateException ( "Unexpected node type: " + key ) ;
public class Stream { /** * Returns a new stream of { @ link Grouped } that is composed from keys that has been * extracted from each source stream item . * @ param groupSelector a function that extracts a key from a given item . * @ param < K > a type of key value . * @ return a new stream of { @ link Grouped ...
return groupBy ( groupSelector , new Func1 < T , T > ( ) { @ Override public T call ( T value ) { return value ; } } ) ;
public class ListCommandInvocationsResult { /** * ( Optional ) A list of all invocations . * @ return ( Optional ) A list of all invocations . */ public java . util . List < CommandInvocation > getCommandInvocations ( ) { } }
if ( commandInvocations == null ) { commandInvocations = new com . amazonaws . internal . SdkInternalList < CommandInvocation > ( ) ; } return commandInvocations ;
public class RandomDateUtils { /** * Returns a random { @ link LocalDate } within the specified range . * @ param startInclusive the earliest { @ link LocalDate } that can be returned * @ param endExclusive the upper bound ( not included ) * @ return the random { @ link LocalDate } * @ throws IllegalArgumentExc...
checkArgument ( startInclusive != null , "Start must be non-null" ) ; checkArgument ( endExclusive != null , "End must be non-null" ) ; Instant startInstant = startInclusive . atStartOfDay ( ) . toInstant ( UTC_OFFSET ) ; Instant endInstant = endExclusive . atStartOfDay ( ) . toInstant ( UTC_OFFSET ) ; Instant instant ...
public class AbstractDataIndexer { /** * Utility method for creating a String [ ] array from a map whose * keys are labels ( Strings ) to be stored in the array and whose * values are the indices ( Integers ) at which the corresponding * labels should be inserted . * @ param labelToIndexMap a < code > TObjectIn...
final String [ ] array = new String [ labelToIndexMap . size ( ) ] ; labelToIndexMap . forEachEntry ( new TObjectIntProcedure ( ) { public boolean execute ( Object str , int index ) { array [ index ] = ( String ) str ; return true ; } } ) ; return array ;
public class AgentSession { /** * Submits the completed form and returns the result of the transcript search . The result * will include all the data returned from the server so be careful with the amount of * data that the search may return . * @ param completedForm the filled out search form . * @ return the ...
return transcriptSearchManager . submitSearch ( workgroupJID . asDomainBareJid ( ) , completedForm ) ;
public class IntraMDWMessengerJms { /** * jndi can be null , in which case send to the same site */ public void sendMessage ( String message ) throws ProcessException { } }
try { JMSServices . getInstance ( ) . sendTextMessage ( destination , JMSDestinationNames . INTRA_MDW_EVENT_HANDLER_QUEUE , message , 0 , null ) ; } catch ( Exception e ) { throw new ProcessException ( - 1 , e . getMessage ( ) , e ) ; }
public class ServiceWorkerManager { /** * Initial setup of the service worker registration . */ protected void setupRegistration ( ) { } }
if ( isServiceWorkerSupported ( ) ) { Navigator . serviceWorker . register ( getResource ( ) ) . then ( object -> { logger . info ( "Service worker has been successfully registered" ) ; registration = ( ServiceWorkerRegistration ) object ; onRegistered ( new ServiceEvent ( ) , registration ) ; // Observe service worker...