signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class IndexWriter { /** * Generates one or more { @ link AttributeUpdate } s that will create or update the necessary Table Buckets entries
* in the Segment ' s Extended Attributes .
* @ param bucket The Bucket to create or update .
* @ param bucketOffset The Bucket ' s new offset .
* @ param update A { ... | assert bucketOffset >= 0 ; update . withAttribute ( new AttributeUpdate ( bucket . getHash ( ) , AttributeUpdateType . Replace , bucketOffset ) ) ; if ( ! bucket . exists ( ) ) { update . bucketAdded ( ) ; } |
public class NodeRepository { /** * Updates the supplied node record , inserting it into the database if necessary . */
public void updateNode ( NodeRecord record ) { } } | record . lastUpdated = new Timestamp ( System . currentTimeMillis ( ) ) ; store ( record ) ; |
public class TimeParameter { /** * Write Time parameter to outputStream .
* @ param pos the stream to write to */
public void writeTo ( final PacketOutputStream pos ) throws IOException { } } | SimpleDateFormat sdf = new SimpleDateFormat ( "HH:mm:ss" ) ; sdf . setTimeZone ( timeZone ) ; String dateString = sdf . format ( time ) ; pos . write ( QUOTE ) ; pos . write ( dateString . getBytes ( ) ) ; int microseconds = ( int ) ( time . getTime ( ) % 1000 ) * 1000 ; if ( microseconds > 0 && fractionalSeconds ) { p... |
public class FeedbackController { /** * Formats a MolgenisUser ' s name .
* @ return String containing the user ' s first name , middle names and last name . */
private static String getFormattedName ( User user ) { } } | List < String > parts = new ArrayList < > ( ) ; if ( user . getTitle ( ) != null ) { parts . add ( user . getTitle ( ) ) ; } if ( user . getFirstName ( ) != null ) { parts . add ( user . getFirstName ( ) ) ; } if ( user . getMiddleNames ( ) != null ) { parts . add ( user . getMiddleNames ( ) ) ; } if ( user . getLastNa... |
public class TransformationSummary { /** * < code > repeated . google . privacy . dlp . v2 . TransformationSummary . SummaryResult results = 4 ; < / code > */
public com . google . privacy . dlp . v2 . TransformationSummary . SummaryResultOrBuilder getResultsOrBuilder ( int index ) { } } | return results_ . get ( index ) ; |
public class JvmSpecializedTypeReferenceImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eUnset ( int featureID ) { } } | switch ( featureID ) { case TypesPackage . JVM_SPECIALIZED_TYPE_REFERENCE__EQUIVALENT : setEquivalent ( ( JvmTypeReference ) null ) ; return ; } super . eUnset ( featureID ) ; |
public class StandardParameterParser { /** * Converts the given { @ code List } of parameters to a { @ code Map } .
* The names of parameters are used as keys ( mapping to corresponding value ) thus removing any duplicated parameters . It is
* used an empty { @ code String } for the mapping , if the parameter has n... | Map < String , String > map = new HashMap < > ( ) ; for ( NameValuePair parameter : parameters ) { String value = parameter . getValue ( ) ; if ( value == null ) { value = "" ; } map . put ( parameter . getName ( ) , value ) ; } return map ; |
public class ServiceContext { /** * Cleanup at the end of a request . */
public static void end ( ) { } } | ServiceContext context = ( ServiceContext ) _localContext . get ( ) ; if ( context != null && -- context . _count == 0 ) { context . _request = null ; context . _response = null ; context . _headers . clear ( ) ; _localContext . set ( null ) ; } |
public class Base64 { /** * Serializes an object and returns the Base64 - encoded version of that
* serialized object .
* As of v 2.3 , if the object cannot be serialized or there is another error ,
* the method will throw an IOException . < b > This is new to v2.3 ! < / b > In
* earlier versions , it just retu... | ValueEnforcer . notNull ( aSerializableObject , "Object" ) ; // ObjectOutputStream - > ( GZIP ) - > Base64 - > ByteArrayOutputStream
final NonBlockingByteArrayOutputStream baos = new NonBlockingByteArrayOutputStream ( ) ; try ( final Base64OutputStream b64os = new Base64OutputStream ( baos , ENCODE | nOptions ) ) { if ... |
public class DistributionBeanQuery { /** * Load all the Distribution set .
* @ param startIndex
* as page start
* @ param count
* as total data */
@ Override protected List < ProxyDistribution > loadBeans ( final int startIndex , final int count ) { } } | Page < DistributionSet > distBeans ; final List < ProxyDistribution > proxyDistributions = new ArrayList < > ( ) ; if ( startIndex == 0 && firstPageDistributionSets != null ) { distBeans = firstPageDistributionSets ; } else if ( pinnedTarget != null ) { final DistributionSetFilterBuilder distributionSetFilterBuilder = ... |
public class LabsInner { /** * Register to managed lab .
* @ param resourceGroupName The name of the resource group .
* @ param labAccountName The name of the lab Account .
* @ param labName The name of the lab .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the { @ l... | return registerWithServiceResponseAsync ( resourceGroupName , labAccountName , labName ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class RaftServiceManager { /** * Applies an open session entry to the state machine . */
private long applyOpenSession ( Indexed < OpenSessionEntry > entry ) { } } | PrimitiveType primitiveType = raft . getPrimitiveTypes ( ) . getPrimitiveType ( entry . entry ( ) . serviceType ( ) ) ; // Get the state machine executor or create one if it doesn ' t already exist .
RaftServiceContext service = getOrInitializeService ( PrimitiveId . from ( entry . index ( ) ) , primitiveType , entry .... |
public class CmsJspTagEdit { /** * Returns the resource to edit according to the uuid provided via the tag ' s attribute " uuid " . < p >
* @ param cms the CMS context
* @ return the resource */
private CmsResource getResourceToEdit ( CmsObject cms ) { } } | CmsResource resource = null ; if ( m_uuid != null ) { try { CmsUUID uuid = new CmsUUID ( m_uuid ) ; resource = cms . readResource ( uuid , CmsResourceFilter . ignoreExpirationOffline ( cms ) ) ; } catch ( NumberFormatException | CmsException e ) { LOG . warn ( "UUID was not valid or there is no resource with the given ... |
public class OperatorIntersectionCursor { /** * as indicated with the dimensionMask */
GeometryCursor prepareVector_ ( VertexDescription descr , int dimensionMask , Geometry [ ] res_vec ) { } } | int inext = 0 ; if ( ( dimensionMask & 1 ) != 0 ) { if ( res_vec [ 0 ] == null ) res_vec [ 0 ] = new MultiPoint ( descr ) ; inext ++ ; } else { for ( int i = 0 ; i < res_vec . length - 1 ; i ++ ) res_vec [ i ] = res_vec [ i + 1 ] ; } if ( ( dimensionMask & 2 ) != 0 ) { if ( res_vec [ inext ] == null ) res_vec [ inext ]... |
public class CmsPropertyDefinitionButton { /** * Opens the dialog for creating new property definitions . < p > */
protected void editPropertyDefinition ( ) { } } | CmsRpcAction < ArrayList < String > > action = new CmsRpcAction < ArrayList < String > > ( ) { @ Override public void execute ( ) { start ( 200 , true ) ; CmsCoreProvider . getVfsService ( ) . getDefinedProperties ( this ) ; } @ Override protected void onResponse ( ArrayList < String > result ) { stop ( false ) ; CmsPr... |
public class AdminElevatewordAction { private HtmlResponse asListHtml ( ) { } } | return asHtml ( path_AdminElevateword_AdminElevatewordJsp ) . renderWith ( data -> { RenderDataUtil . register ( data , "elevateWordItems" , elevateWordService . getElevateWordList ( elevateWordPager ) ) ; // page navi
} ) . useForm ( SearchForm . class , setup -> { setup . setup ( form -> { copyBeanToBean ( elevateWor... |
public class WebService { /** * method to generate the natural analogue sequence for all
* peptide - sequences from an HELM input
* @ param notation
* input HELM
* @ return natural analogue peptide sequences , divided by white spaces
* @ throws org . helm . notation2 . parser . exceptionparser . NotationExcep... | String result = SequenceConverter . getPeptideNaturalAnalogSequenceFromNotation ( validate ( notation ) ) ; setMonomerFactoryToDefault ( notation ) ; return result ; |
public class GoogleCloudStorageFileSystem { /** * Gets information about the given path item .
* @ param path The path we want information about .
* @ return Information about the given path item .
* @ throws IOException */
public FileInfo getFileInfo ( URI path ) throws IOException { } } | logger . atFine ( ) . log ( "getFileInfo(%s)" , path ) ; checkArgument ( path != null , "path must not be null" ) ; // Validate the given path . true = = allow empty object name .
// One should be able to get info about top level directory ( = = bucket ) ,
// therefore we allow object name to be empty .
StorageResource... |
public class DistanceTravelledMovieMaker { /** * Saves a sequence of image files of Vessel Traffic Density plots to the
* < code > imageDirectory < / code > with filenames map1 . png , map2 . png , etc .
* @ param options
* @ param files
* @ param times
* @ param imageDirectory */
private static void saveImag... | times . buffer ( 2 , 1 ) . doOnNext ( new Action1 < List < Long > > ( ) { AtomicInteger i = new AtomicInteger ( ) ; @ Override public void call ( List < Long > pair ) { if ( pair . size ( ) < 2 ) return ; Long startTime = pair . get ( 0 ) ; Long finishTime = pair . get ( 1 ) ; saveImageWithTimeRange ( options , files ,... |
public class DeviceImpl { /** * Get info of this device in IDL1
* @ return info
* @ throws DevFailed */
@ Override public DevInfo info ( ) throws DevFailed { } } | MDC . setContextMap ( contextMap ) ; xlogger . entry ( ) ; deviceMonitoring . startRequest ( "Operation info" ) ; final DevInfo info = new DevInfo ( ) ; info . dev_class = className ; info . doc_url = "Doc URL = http://www.tango-controls.org" ; info . server_host = ServerManager . getInstance ( ) . getHostName ( ) ; in... |
public class SimpleMMcifConsumer { /** * The EntityPolySeq object provide the amino acid sequence objects for the Entities .
* Later on the entities are mapped to the BioJava { @ link Chain } and { @ link EntityInfo } objects .
* @ param epolseq the EntityPolySeq record for one amino acid */
@ Override public void ... | logger . debug ( "NEW entity poly seq " + epolseq ) ; int eId = - 1 ; try { eId = Integer . parseInt ( epolseq . getEntity_id ( ) ) ; } catch ( NumberFormatException e ) { logger . warn ( "Could not parse entity id from EntityPolySeq: " + e . getMessage ( ) ) ; } Entity e = getEntity ( eId ) ; if ( e == null ) { logger... |
public class AmazonElastiCacheClient { /** * Modifies the parameters of a cache parameter group to the engine or system default value . You can reset specific
* parameters by submitting a list of parameter names . To reset the entire cache parameter group , specify the
* < code > ResetAllParameters < / code > and <... | request = beforeClientExecution ( request ) ; return executeResetCacheParameterGroup ( request ) ; |
public class Searcher { /** * Gets the current numeric refinement for an attribute and an operator .
* @ param attribute the attribute to refine on .
* @ param operator one of the { @ link NumericRefinement # OPERATOR _ EQ operators } defined in { @ link NumericRefinement } .
* @ return a { @ link NumericRefineme... | "WeakerAccess" , "unused" } ) // For library users
@ Nullable public NumericRefinement getNumericRefinement ( @ NonNull String attribute , int operator ) { NumericRefinement . checkOperatorIsValid ( operator ) ; final SparseArray < NumericRefinement > attributeRefinements = numericRefinements . get ( attribute ) ; retu... |
public class LoggingConfiguration { /** * Convert appenders specified by the property
* < code > log4j . logger . asyncAppender < / code > to the blitz4j Asynchronous
* appenders .
* @ param props
* - The properties that need to be passed into the log4j for
* configuration .
* @ throws ConfigurationExceptio... | for ( Map . Entry < String , String > originalAsyncAppenderMapEntry : originalAsyncAppenderNameMap . entrySet ( ) ) { String asyncAppenderName = originalAsyncAppenderMapEntry . getValue ( ) ; props . setProperty ( LOG4J_APPENDER_PREFIX + LOG4J_APPENDER_DELIMITER + asyncAppenderName , AsyncAppender . class . getName ( )... |
public class ApiOvhDedicatedCloud { /** * Enable Zerto replication between your OVH Private Cloud and your onsite infrastructure
* REST : POST / dedicatedCloud / { serviceName } / datacenter / { datacenterId } / disasterRecovery / zertoSingle / enable
* @ param ovhEndpointIp [ required ] Your OVH Private Cloud publ... | String qPath = "/dedicatedCloud/{serviceName}/datacenter/{datacenterId}/disasterRecovery/zertoSingle/enable" ; StringBuilder sb = path ( qPath , serviceName , datacenterId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "localVraNetwork" , localVraNetwork ) ; addBody ( o , "ovhEn... |
public class DSSPParser { /** * Parse a DSSP format String and return the secondary structure
* annotation as a List of { @ link SecStrucState } objects .
* @ param dsspOut String with the DSSP output to parse
* @ param structure Structure object associated to the dssp
* @ param assign assigns the SS to the str... | Reader read = new StringReader ( dsspOut ) ; BufferedReader reader = new BufferedReader ( read ) ; return generalParse ( reader , structure , assign ) ; |
public class UserStub { /** * Elements to display when outputting in simplified format , e . g . , to DOT file
* @ return Iterable */
@ Override public scala . collection . Iterable < String > simplifiedDisplayableElements ( ) { } } | LinkedList < String > elements = new LinkedList < > ( ) ; elements . add ( displayableDataId ( ) ) ; return linkedListToScalaIterable ( elements ) ; |
public class XmlHandler { /** * { @ inheritDoc } */
@ Override protected String format ( String request ) { } } | String result = null ; ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; try { ByteArrayInputStream bis = new ByteArrayInputStream ( request . getBytes ( ) ) ; Document doc = new SAXBuilder ( ) . build ( bis ) ; bis . close ( ) ; Format format = Format . getCompactFormat ( ) ; // To not have the ? in the decl... |
public class SubnetworkClient { /** * Sets the access control policy on the specified resource . Replaces any existing policy .
* < p > Sample code :
* < pre > < code >
* try ( SubnetworkClient subnetworkClient = SubnetworkClient . create ( ) ) {
* ProjectRegionSubnetworkResourceName resource = ProjectRegionSub... | SetIamPolicySubnetworkHttpRequest request = SetIamPolicySubnetworkHttpRequest . newBuilder ( ) . setResource ( resource ) . setRegionSetPolicyRequestResource ( regionSetPolicyRequestResource ) . build ( ) ; return setIamPolicySubnetwork ( request ) ; |
public class AbstractRpcServer { /** * Starts this server .
* < p > This is a synchronous operation . < / p > */
public void startUp ( ) throws Exception { } } | logger . info ( String . format ( "Starting RPC server on port %d" , port ) ) ; ServerBootstrap bootstrap = new ServerBootstrap ( ) ; ChannelFuture futureChannel = bootstrap . group ( parentGroup , childGroup ) . channel ( channelClass ) . childHandler ( channelInitializer ( ) ) . bind ( port ) . awaitUninterruptibly (... |
public class TextGroupEntryPoints { /** * Runs a { @ link TextGroupEntryPoint } . The entry point class will be injected using a { @ link
* Injector } configured by two modules : a { @ link com . bbn . bue . common . parameters . ParametersModule }
* initialized by loading the first ( and required - to - be - only ... | runEntryPointInternal ( entryPointClass , args , configModuleClass ) ; |
public class TransactionRequestProcessor { /** * Handles a rollback request from a client . */
void rollbackTransaction ( HotRodHeader header , Subject subject , XidImpl xid ) { } } | RollbackTransactionOperation operation = new RollbackTransactionOperation ( header , server , subject , xid , this :: writeTransactionResponse ) ; executor . execute ( operation ) ; |
public class BaseCrawler { /** * Creates a crawl request for the redirected URL , feeds it to the crawler and calls the
* appropriate event callback .
* @ param currentCrawlCandidate the current crawl candidate
* @ param redirectedUrl the URL of the redirected request */
private void handleRequestRedirect ( final... | CrawlRequestBuilder builder = new CrawlRequestBuilder ( redirectedUrl ) . setPriority ( currentCrawlCandidate . getPriority ( ) ) ; currentCrawlCandidate . getMetadata ( ) . ifPresent ( builder :: setMetadata ) ; CrawlRequest redirectedRequest = builder . build ( ) ; crawlFrontier . feedRequest ( redirectedRequest , fa... |
public class Reflector { /** * calls a Static Method on the given CLass
* @ param clazz Class to call Method on it
* @ param methodName Name of the Method to get
* @ param args Arguments of the Method to get
* @ return return return value of the called Method
* @ throws PageException */
public static Object c... | try { return getMethodInstance ( null , clazz , methodName , args ) . invoke ( null ) ; } catch ( InvocationTargetException e ) { Throwable target = e . getTargetException ( ) ; if ( target instanceof PageException ) throw ( PageException ) target ; throw Caster . toPageException ( e . getTargetException ( ) ) ; } catc... |
public class GeneralizedParetoDistribution { /** * Quantile function of GPD distribution
* @ param val Value
* @ param mu Location parameter mu
* @ param sigma Scale parameter sigma
* @ param xi Shape parameter xi ( = - kappa )
* @ return Quantile function at position x . */
public static double quantile ( do... | if ( val < 0.0 || val > 1.0 ) { return Double . NaN ; } if ( xi == 0. ) { return mu - sigma * FastMath . log ( 1 - val ) ; } return mu - sigma / xi * ( 1 - FastMath . pow ( 1 - val , - xi ) ) ; |
public class Logging { /** * Get logging target for the specified devices
* @ param dev _ name The device names */
public String [ ] get_logging_target ( String dev_name ) throws DevFailed { } } | // - Get device by name
DeviceImpl dev = Util . instance ( ) . get_device_by_name ( dev_name ) ; // - Get device targets ( i . e appenders )
Enumeration all_appenders = dev . get_logger ( ) . getAllAppenders ( ) ; // - Instanciate returned value
int num_appenders = 0 ; Enumeration a_shame_copy = dev . get_logger ( ) . ... |
public class Replicator { /** * Finds a document in the replicator database .
* @ return { @ link ReplicatorDocument } */
public ReplicatorDocument find ( ) { } } | assertNotEmpty ( replicatorDoc . getId ( ) , "Doc id" ) ; final URI uri = new DatabaseURIHelper ( dbURI ) . documentUri ( replicatorDoc . getId ( ) , replicatorDoc . getRevision ( ) ) ; return client . get ( uri , ReplicatorDocument . class ) ; |
public class GeneFeatureHelper { /** * Load GFF2 feature file generated from the geneid prediction algorithm and map features onto the chromosome sequences
* @ param chromosomeSequenceList
* @ param listGenes
* @ throws Exception */
static public void addGeneIDGFF2GeneFeatures ( LinkedHashMap < String , Chromosom... | Collection < String > geneIds = listGenes . attributeValues ( "gene_id" ) ; for ( String geneid : geneIds ) { FeatureList gene = listGenes . selectByAttribute ( "gene_id" , geneid ) ; FeatureI geneFeature = gene . get ( 0 ) ; ChromosomeSequence seq = chromosomeSequenceList . get ( geneFeature . seqname ( ) ) ; geneid =... |
public class RunnersApi { /** * List jobs that are being processed or were processed by specified Runner .
* < pre > < code > GitLab Endpoint : GET / runners / : id / jobs < / code > < / pre >
* @ param runnerId The ID of a runner
* @ param status Status of the job ; one of : running , success , failed , canceled... | return ( getJobs ( runnerId , status , getDefaultPerPage ( ) ) . all ( ) ) ; |
public class JSONWorldDataHelper { /** * Builds the basic life world data to be used as observation signals by the listener .
* @ param json a JSON object into which the life stats will be added . */
public static void buildLifeStats ( JsonObject json , EntityPlayerMP player ) { } } | json . addProperty ( "Life" , player . getHealth ( ) ) ; json . addProperty ( "Score" , player . getScore ( ) ) ; // Might always be the same as XP ?
json . addProperty ( "Food" , player . getFoodStats ( ) . getFoodLevel ( ) ) ; json . addProperty ( "XP" , player . experienceTotal ) ; json . addProperty ( "IsAlive" , !... |
public class DateTimeUtil { /** * 获取季度的第一天
* @ param date 时间 ( { @ link Date } )
* @ return 时间 ( { @ link java . util . Date } ) , 如果date is null , 将返回null */
public static Date getFirstDateOfSeason ( Date date ) { } } | if ( date == null ) return null ; return getFirstDateOfMonth ( getSeasonDate ( date ) [ 0 ] ) ; |
public class EJBMethodInfoImpl { public String getAMCName ( ) { } } | // @ MD16426A
J2EEName j2eeName = bmd . getJ2EEName ( ) ; // @ MD16426A
String app = j2eeName . getApplication ( ) ; // @ MD16426A
String mod = j2eeName . getModule ( ) ; // @ MD16426A
String comp = j2eeName . getComponent ( ) ; // @ MD16426A
String retval = app + "::" + mod + "::" + comp ; // @ PK07137
return retval ;... |
public class IndustryApi { /** * List solar system cost indices Return cost indices for solar systems - - -
* This route is cached for up to 3600 seconds
* @ param datasource
* The server name you would like data from ( optional , default to
* tranquility )
* @ param ifNoneMatch
* ETag from a previous reque... | ApiResponse < List < IndustrySystemsResponse > > resp = getIndustrySystemsWithHttpInfo ( datasource , ifNoneMatch ) ; return resp . getData ( ) ; |
public class RetrievalWorker { /** * Renames the given file , returns the copied file . Does not change
* the original passed in file path . */
protected File renameFile ( File localFile ) throws IOException { } } | File origFile = new File ( localFile . getAbsolutePath ( ) ) ; File copiedFile = new File ( localFile . getParent ( ) , localFile . getName ( ) + COPY ) ; for ( int i = 2 ; copiedFile . exists ( ) ; i ++ ) { copiedFile = new File ( localFile . getParent ( ) , localFile . getName ( ) + COPY + "-" + i ) ; } FileUtils . m... |
public class GraphicsUtilities { /** * Draws an image on top of a component by doing a 3x3 grid stretch of the image
* using the specified insets .
* @ param g the graphics object
* @ param comp the component
* @ param img the image
* @ param ins the insets */
public static void tileStretchPaint ( Graphics g ... | int left = ins . left ; int right = ins . right ; int top = ins . top ; int bottom = ins . bottom ; // top
g . drawImage ( img , 0 , 0 , left , top , 0 , 0 , left , top , null ) ; g . drawImage ( img , left , 0 , comp . getWidth ( ) - right , top , left , 0 , img . getWidth ( ) - right , top , null ) ; g . drawImage ( ... |
public class FileServersInner { /** * Creates a file server .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param fileServerName The name of the file server within the specified resource group . File server names can only contain a combination of alphanumeric characters ... | return ServiceFuture . fromResponse ( beginCreateWithServiceResponseAsync ( resourceGroupName , fileServerName , parameters ) , serviceCallback ) ; |
public class TypeCheck { /** * Visits the loop variable of a FOR _ OF and FOR _ AWAIT _ OF and verifies the type being assigned to
* it . */
private void checkForOfTypes ( NodeTraversal t , Node forOf ) { } } | Node lhs = forOf . getFirstChild ( ) ; Node iterable = forOf . getSecondChild ( ) ; JSType iterableType = getJSType ( iterable ) ; JSType actualType ; if ( forOf . isForAwaitOf ( ) ) { Optional < JSType > maybeType = validator . expectAutoboxesToIterableOrAsyncIterable ( iterable , iterableType , "Can only async iterat... |
public class U { /** * Documented , # compose */
@ SuppressWarnings ( "unchecked" ) public static < T > Function < T , T > compose ( final Function < T , T > ... func ) { } } | return new Function < T , T > ( ) { public T apply ( final T arg ) { T result = arg ; for ( int index = func . length - 1 ; index >= 0 ; index -= 1 ) { result = func [ index ] . apply ( result ) ; } return result ; } } ; |
public class PostgreSQLCommandExecutorFactory { /** * Create new instance of command executor .
* @ param commandPacketType command packet type for PostgreSQL
* @ param commandPacket command packet for PostgreSQL
* @ param backendConnection backend connection
* @ return command executor */
public static Command... | log . debug ( "Execute packet type: {}, value: {}" , commandPacketType , commandPacket ) ; switch ( commandPacketType ) { case QUERY : return new PostgreSQLComQueryExecutor ( ( PostgreSQLComQueryPacket ) commandPacket , backendConnection ) ; case PARSE : return new PostgreSQLComParseExecutor ( ( PostgreSQLComParsePacke... |
public class NvWebSocket { /** * Removes current web socket instance . */
protected void dispose ( ) { } } | final WebSocket currentWebSocket = webSocket ; if ( currentWebSocket != null && currentWebSocket . isOpen ( ) ) { try { currentWebSocket . disconnect ( WebSocketCloseCode . AWAY . getCode ( ) ) ; } catch ( final Exception exception ) { postErrorEvent ( exception ) ; } } |
public class RemoteWebElement { /** * TODO freyanud no return here . */
private void clickAtom ( ) { } } | try { String f = "(function(arg) { " + "var text = " + IosAtoms . CLICK + "(arg);" + "return text;})" ; JSONArray args = new JSONArray ( ) ; args . put ( new JSONObject ( ) . put ( "objectId" , getRemoteObject ( ) . getId ( ) ) ) ; JSONObject response = getInspectorResponse ( f , args , true ) ; inspector . cast ( resp... |
public class Parser { /** * Parse type variables for generics
* @ param typeVariable
* @ return */
protected TypeParameter parseTypeParameter ( TypeVariable typeVariable ) { } } | TypeParameter typeParameter = objectFactory . createTypeParameter ( ) ; typeParameter . setName ( typeVariable . typeName ( ) ) ; for ( Type bound : typeVariable . bounds ( ) ) { typeParameter . getBound ( ) . add ( bound . qualifiedTypeName ( ) ) ; } return typeParameter ; |
public class Misc { /** * Utility to join strings with a separator . Skips null strings and does not append a trailing
* separator .
* @ param separator the string to use to separate the entries
* @ param stringsToJoin the strings to join together
* @ return the joined string */
public static String join ( Stri... | StringBuilder builder = new StringBuilder ( ) ; // Check if there is at least 1 element then use do / while to avoid trailing separator
int index = stringsToJoin . size ( ) ; for ( String str : stringsToJoin ) { index -- ; if ( str != null ) { builder . append ( str ) ; if ( index > 0 ) { builder . append ( separator )... |
public class DCModuleParser { /** * Parse an element tree and return the module found in it .
* @ param dcRoot the root element containing the module elements .
* @ param locale for date / time parsing
* @ return the module parsed from the element tree , < i > null < / i > if none . */
@ Override public Module pa... | boolean foundSomething = false ; final DCModule dcm = new DCModuleImpl ( ) ; final List < Element > titles = dcRoot . getChildren ( "title" , getDCNamespace ( ) ) ; if ( ! titles . isEmpty ( ) ) { foundSomething = true ; dcm . setTitles ( parseElementList ( titles ) ) ; } final List < Element > creators = dcRoot . getC... |
public class GenericsResolutionUtils { /** * Resolve type generics by declaration ( as upper bound ) . Used for cases when actual generic definition is not
* available ( so actual generics are unknown ) . In most cases such generics resolved as Object
* ( for example , { @ code Some < T > } ) .
* IMPORTANT : this... | final TypeVariable [ ] declaredGenerics = type . getTypeParameters ( ) ; if ( declaredGenerics . length == 0 ) { return EmptyGenericsMap . getInstance ( ) ; } final LinkedHashMap < String , Type > res = new LinkedHashMap < String , Type > ( ) ; final List < TypeVariable > failed = new ArrayList < TypeVariable > ( ) ; /... |
public class DenseOpticalFlowBlockPyramid { /** * Examines every pixel inside the region centered at ( cx , cy ) to see if their optical flow has a worse
* score the one specified in ' flow ' */
protected void checkNeighbors ( int cx , int cy , ImageFlow . D flow , ImageFlow image , float score ) { } } | for ( int i = - regionRadius ; i <= regionRadius ; i ++ ) { int index = image . width * ( cy + i ) + ( cx - regionRadius ) ; for ( int j = - regionRadius ; j <= regionRadius ; j ++ , index ++ ) { float s = scores [ index ] ; ImageFlow . D f = image . data [ index ] ; if ( s > score ) { f . set ( flow ) ; scores [ index... |
public class SdpComparator { /** * Negotiates the video formats to be used in the call .
* @ param sdp The session description
* @ param formats The available formats
* @ return The supported formats . If no formats are supported the returned list will be empty . */
public RTPFormats negotiateVideo ( SessionDescr... | this . video . clean ( ) ; MediaDescriptorField descriptor = sdp . getVideoDescriptor ( ) ; descriptor . getFormats ( ) . intersection ( formats , this . video ) ; return this . video ; |
public class AbstractDeclarativeValidator { /** * Handles exceptions occuring during execution of validation code .
* By default this method will swallow { @ link NullPointerException NullPointerExceptions } and { @ link GuardException } s .
* Clients may override this method to propagate { @ link NullPointerExcept... | // ignore NullPointerException , as not having to check for NPEs all the time is a convenience feature
// ignore GuardException , check is just not evaluated if guard is false
if ( ! ( targetException instanceof GuardException ) && ! ( targetException instanceof NullPointerException ) ) { Exceptions . throwUncheckedExc... |
public class GatewayServer { private synchronized void internalActivateTopology ( Topology topology , File topoDir ) throws IOException , ZipException , ParserConfigurationException , TransformerException , SAXException { } } | log . activatingTopology ( topology . getName ( ) ) ; File [ ] files = topoDir . listFiles ( new RegexDirFilter ( "%.*" ) ) ; if ( files != null ) { for ( File file : files ) { internalActivateArchive ( topology , file ) ; } } |
public class ImmutableGrid { /** * Obtains an immutable grid by copying a set of cells , deriving the row and column count .
* The row and column counts are calculated as the maximum row and column specified .
* @ param < R > the type of the value
* @ param cells the cells to copy , not null
* @ return the immu... | if ( cells == null ) { throw new IllegalArgumentException ( "Cells must not be null" ) ; } if ( ! cells . iterator ( ) . hasNext ( ) ) { return new EmptyGrid < R > ( ) ; } int rowCount = 0 ; int columnCount = 0 ; for ( Cell < R > cell : cells ) { rowCount = Math . max ( rowCount , cell . getRow ( ) ) ; columnCount = Ma... |
public class BytecodeUtils { /** * Checks if { @ code left } is assignable from { @ code right } , however if we don ' t have information
* about one of the types then this returns { @ code failOpen } . */
private static boolean doIsAssignableFrom ( Type left , Type right , boolean failOpen ) { } } | if ( left . equals ( right ) ) { return true ; } if ( left . getSort ( ) != right . getSort ( ) ) { return false ; } if ( left . getSort ( ) != Type . OBJECT ) { return false ; // all other sorts require exact equality ( even arrays )
} // for object types we really need to know type hierarchy information to test for w... |
public class DataSet { /** * Clears the outcome matrix setting a new number of labels
* @ param labels the number of labels / columns in the outcome matrix
* Note that this clears the labels for each example */
@ Override public void setNewNumberOfLabels ( int labels ) { } } | int examples = numExamples ( ) ; INDArray newOutcomes = Nd4j . create ( examples , labels ) ; setLabels ( newOutcomes ) ; |
public class StreamableEnumSet { /** * Creates an empty set of the specified type . */
public static < E extends Enum < E > > StreamableEnumSet < E > noneOf ( Class < E > elementType ) { } } | return new StreamableEnumSet < E > ( elementType ) ; |
public class DockerFunctions { /** * Only this plugin specific launchers . */
public static List < Descriptor < ComputerLauncher > > getDockerComputerLauncherDescriptors ( ) { } } | List < Descriptor < ComputerLauncher > > launchers = new ArrayList < > ( ) ; launchers . add ( getInstance ( ) . getDescriptor ( DockerComputerSSHLauncher . class ) ) ; launchers . add ( getInstance ( ) . getDescriptor ( DockerComputerJNLPLauncher . class ) ) ; launchers . add ( getInstance ( ) . getDescriptor ( Docker... |
public class MetadataHandler { /** * Enhance from metadata .
* @ param batch
* the Event Batch
* @ return the Event Batch */
public EventBatch enhanceFromMetadata ( final EventBatch < AuditEvent > batch ) { } } | for ( AuditEvent event : batch ) { enhanceFromMetadata ( ( AuditEvent ) event ) ; } return batch ; |
public class ApiOvhDedicatedceph { /** * Create one or more new IP ACLs
* REST : POST / dedicated / ceph / { serviceName } / acl
* @ param serviceName [ required ] ID of cluster
* @ param aclList [ required ] List of new ACLs
* API beta */
public String serviceName_acl_POST ( String serviceName , String [ ] acl... | String qPath = "/dedicated/ceph/{serviceName}/acl" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "aclList" , aclList ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , String . class ) ; |
public class ConfigHelper { /** * list of image names which should be used */
private static List < ImageConfiguration > filterImages ( String nameFilter , List < ImageConfiguration > imagesToFilter ) { } } | List < ImageConfiguration > ret = new ArrayList < > ( ) ; for ( ImageConfiguration imageConfig : imagesToFilter ) { if ( matchesConfiguredImages ( nameFilter , imageConfig ) ) { ret . add ( imageConfig ) ; } } return ret ; |
public class RGraph { /** * Projects a RGraph bitset on the source graph G1.
* @ param set RGraph BitSet to project
* @ return The associate BitSet in G1 */
public BitSet projectG1 ( BitSet set ) { } } | BitSet projection = new BitSet ( firstGraphSize ) ; RNode xNode = null ; for ( int x = set . nextSetBit ( 0 ) ; x >= 0 ; x = set . nextSetBit ( x + 1 ) ) { xNode = ( RNode ) graph . get ( x ) ; projection . set ( xNode . rMap . id1 ) ; } return projection ; |
public class XDSRegistryAuditor { /** * Audits an ITI - 16 Registry SQL Query event for XDS . a Document Registry actors .
* @ param eventOutcome The event outcome indicator
* @ param consumerUserId The Active Participant UserID for the consumer ( if using WS - Addressing )
* @ param consumerUserName The Active P... | if ( ! isAuditorEnabled ( ) ) { return ; } auditQueryEvent ( false , new IHETransactionEventTypeCodes . RegistrySQLQuery ( ) , eventOutcome , getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) , consumerUserId , null , consumerUserName , consumerIpAddress , consumerUserName , consumerUserName , true , registryEndpoint... |
public class RelationalOperationsMatrix { /** * Compares the DE - 9I matrix against the scl string . */
private static boolean relationCompare_ ( int [ ] matrix , String scl ) { } } | for ( int i = 0 ; i < 9 ; i ++ ) { switch ( scl . charAt ( i ) ) { case 'T' : assert ( matrix [ i ] != - 2 ) ; if ( matrix [ i ] == - 1 ) return false ; break ; case 'F' : assert ( matrix [ i ] != - 2 ) ; if ( matrix [ i ] != - 1 ) return false ; break ; case '0' : assert ( matrix [ i ] != - 2 ) ; if ( matrix [ i ] != ... |
public class ChannelFrameworkImpl { /** * Create a new ChainData object .
* @ param name
* @ param type
* @ param channels
* @ return ChainData
* @ throws IncoherentChainException */
protected ChainData createChainData ( String name , FlowType type , ChannelData [ ] channels , Map < Object , Object > properti... | return new ChainDataImpl ( name , type , channels , properties ) ; |
public class GetDevicePoolCompatibilityResult { /** * Information about incompatible devices .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setIncompatibleDevices ( java . util . Collection ) } or { @ link # withIncompatibleDevices ( java . util . Collecti... | if ( this . incompatibleDevices == null ) { setIncompatibleDevices ( new java . util . ArrayList < DevicePoolCompatibilityResult > ( incompatibleDevices . length ) ) ; } for ( DevicePoolCompatibilityResult ele : incompatibleDevices ) { this . incompatibleDevices . add ( ele ) ; } return this ; |
public class CryptoServiceSingleton { /** * Converts an array of characters representing hexadecimal values into an array of bytes of those same values . The
* returned array will be half the length of the passed array , as it takes two characters to represent any given
* byte . An exception is thrown if the passed... | try { return Hex . decodeHex ( value . toCharArray ( ) ) ; } catch ( DecoderException e ) { throw new IllegalArgumentException ( e ) ; } |
public class JbcSrcJavaValue { /** * Constructs a JbcSrcJavaValue based on the Expression . The method is used to display helpful
* error messages to the user if necessary . It is not invoked . */
static JbcSrcJavaValue of ( Expression expr , Method method , JbcSrcValueErrorReporter reporter ) { } } | checkNotNull ( method ) ; if ( expr instanceof SoyExpression ) { return new JbcSrcJavaValue ( expr , method , /* allowedType = */
( ( SoyExpression ) expr ) . soyType ( ) , /* constantNull = */
false , /* error = */
false , reporter ) ; } return new JbcSrcJavaValue ( expr , method , /* allowedType = */
null , /* consta... |
public class Path3d { /** * Adds a curved segment , defined by two new points , to the path by
* drawing a Quadratic curve that intersects both the current
* coordinates and the specified coordinates { @ code ( x2 , y2 , z2 ) } ,
* using the specified point { @ code ( x1 , y1 , z1 ) } as a quadratic
* parametri... | ensureSlots ( true , 6 ) ; this . types [ this . numTypesProperty . get ( ) ] = PathElementType . QUAD_TO ; this . numTypesProperty . set ( this . numTypesProperty . get ( ) + 1 ) ; this . coordsProperty [ this . numCoordsProperty . get ( ) ] . set ( x1 ) ; this . numCoordsProperty . set ( this . numCoordsProperty . ge... |
public class WorldMapProcessor { /** * Counts a single pair of coordinates in all datasets .
* @ param xCoord
* @ param yCoord
* @ param itemDocument */
private void countCoordinates ( int xCoord , int yCoord , ItemDocument itemDocument ) { } } | for ( String siteKey : itemDocument . getSiteLinks ( ) . keySet ( ) ) { Integer count = this . siteCounts . get ( siteKey ) ; if ( count == null ) { this . siteCounts . put ( siteKey , 1 ) ; } else { this . siteCounts . put ( siteKey , count + 1 ) ; } } for ( ValueMap vm : this . valueMaps ) { vm . countCoordinates ( x... |
public class Optional { /** * Invokes mapping function on inner value if present .
* @ param mapper mapping function
* @ return an { @ code OptionalDouble } with transformed value if present ,
* otherwise an empty { @ code OptionalDouble }
* @ throws NullPointerException if value is present and
* { @ code map... | if ( ! isPresent ( ) ) return OptionalDouble . empty ( ) ; return OptionalDouble . of ( mapper . applyAsDouble ( value ) ) ; |
public class Clause { /** * setter for subclauses - sets array of subelements . contains WordForms or Clauses
* @ generated
* @ param v value to set into the feature */
public void setSubclauses ( FSArray v ) { } } | if ( Clause_Type . featOkTst && ( ( Clause_Type ) jcasType ) . casFeat_subclauses == null ) jcasType . jcas . throwFeatMissing ( "subclauses" , "com.digitalpebble.rasp.Clause" ) ; jcasType . ll_cas . ll_setRefValue ( addr , ( ( Clause_Type ) jcasType ) . casFeatCode_subclauses , jcasType . ll_cas . ll_getFSRef ( v ) ) ... |
public class JMThread { /** * Suspend when null r .
* @ param < R > the type parameter
* @ param intervalAsMillis the interval as millis
* @ param objectSupplier the object supplier
* @ return the r */
public static < R > R suspendWhenNull ( long intervalAsMillis , Supplier < R > objectSupplier ) { } } | R object = objectSupplier . get ( ) ; if ( object == null ) { log . warn ( "Start Suspending !!!" ) ; long startTimeMillis = System . currentTimeMillis ( ) ; while ( ( object = objectSupplier . get ( ) ) == null ) sleep ( intervalAsMillis ) ; log . warn ( "Stop Suspending Over {} ms" , System . currentTimeMillis ( ) - ... |
public class JSONConverter { /** * Encode a NotificationRegistration instance as JSON :
* " objectName " : ObjectName ,
* " filters " : [ NotificationFilter * ]
* @ param out The stream to write JSON to
* @ param value The NotificationRegistration instance to encode .
* Can ' t be null . See writeNotification... | writeStartObject ( out ) ; writeObjectNameField ( out , OM_OBJECTNAME , value . objectName ) ; writeNotificationFiltersField ( out , OM_FILTERS , value . filters ) ; writeEndObject ( out ) ; |
public class CommerceDiscountUtil { /** * Returns the last commerce discount in the ordered set where expirationDate & lt ; & # 63 ; and status = & # 63 ; .
* @ param expirationDate the expiration date
* @ param status the status
* @ param orderByComparator the comparator to order the set by ( optionally < code >... | return getPersistence ( ) . fetchByLtE_S_Last ( expirationDate , status , orderByComparator ) ; |
public class RsaCertificateManager { /** * This method signs a certificate signing request ( CSR ) using the specified certificate
* authority ( CA ) . This is a convenience method that really should be part of the
* < code > CertificateManagement < / code > interface except that it depends on a Bouncy Castle
* c... | try { logger . entry ( ) ; logger . debug ( "Extract public key and subject from the CSR..." ) ; PublicKey publicKey = new JcaPEMKeyConverter ( ) . getPublicKey ( request . getSubjectPublicKeyInfo ( ) ) ; String subject = request . getSubject ( ) . toString ( ) ; logger . debug ( "Generate and sign the certificate..." ... |
public class AbstractSequentialList { /** * Returns the element at the specified position in this list .
* < p > This implementation first gets a list iterator pointing to the
* indexed element ( with < tt > listIterator ( index ) < / tt > ) . Then , it gets
* the element using < tt > ListIterator . next < / tt >... | try { return listIterator ( index ) . next ( ) ; } catch ( NoSuchElementException exc ) { throw new IndexOutOfBoundsException ( "Index: " + index ) ; } |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EEnum getIfcProtectiveDeviceTrippingUnitTypeEnum ( ) { } } | if ( ifcProtectiveDeviceTrippingUnitTypeEnumEEnum == null ) { ifcProtectiveDeviceTrippingUnitTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 1042 ) ; } return ifcProtectiveDeviceTrippingUnitTypeEnumEEnum ; |
public class AbstractDecoratedMap { /** * Removes the given entry from the Map .
* @ param pEntry the entry to be removed
* @ return the removed entry , or { @ code null } if nothing was removed . */
protected Entry < K , V > removeEntry ( Entry < K , V > pEntry ) { } } | if ( pEntry == null ) { return null ; } // Find candidate entry for this key
Entry < K , V > candidate = getEntry ( pEntry . getKey ( ) ) ; if ( candidate == pEntry || ( candidate != null && candidate . equals ( pEntry ) ) ) { // Remove
remove ( pEntry . getKey ( ) ) ; return pEntry ; } return null ; |
public class CodecCipher { /** * Initialize { @ link cipher } by calling one of { @ code Cipher . init } methods
* using { @ code mode } and one or some of { @ link # key } , { @ link # params } ,
* { @ link # spec } , { @ link # certificate } and { @ link # random } . */
private void initCipher ( int mode ) throws... | if ( key != null ) { if ( params != null ) { if ( random != null ) { cipher . init ( mode , key , params , random ) ; } else { cipher . init ( mode , key , params ) ; } } else if ( spec != null ) { if ( random != null ) { cipher . init ( mode , key , spec , random ) ; } else { cipher . init ( mode , key , spec ) ; } } ... |
public class WlpInformation { /** * { @ inheritDoc } */
@ Override public Collection < String > attributesThatCauseBreakingChanges ( ) { } } | // INSTALL was only introduced at 8.5.5.4 so if it ' s set to that won ' t work on earlier clients so force it into a second object
if ( Visibility . INSTALL . equals ( this . visibility ) ) { return Collections . singleton ( "visibility" ) ; } return Collections . emptySet ( ) ; |
public class ReturnUrl { /** * Get Resource Url for ResendReturnEmail
* @ return String Resource Url */
public static MozuUrl resendReturnEmailUrl ( ) { } } | UrlFormatter formatter = new UrlFormatter ( "/api/commerce/returns/email/resend" ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ; |
public class Layer { /** * Returns the y - component of the layer ' s origin . */
public float originY ( ) { } } | if ( isSet ( Flag . ODIRTY ) ) { float height = height ( ) ; if ( height > 0 ) { this . originX = origin . ox ( width ( ) ) ; this . originY = origin . oy ( height ) ; setFlag ( Flag . ODIRTY , false ) ; } } return originY ; |
public class IdToObjectMap { /** * Removes an object from the map .
* @ param key
* @ return Object
* @ throws SIErrorException if the element did not exist */
public Object remove ( int key ) throws SIErrorException // D214655
{ } } | if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "remove" , "" + key ) ; captiveComparitorKey . setValue ( key ) ; // Start D214655
Object retObject = map . remove ( captiveComparitorKey ) ; if ( retObject == null ) { // If no object existed this is always an error too
throw new SIErrorException ( nls . getFormatted... |
public class CLI { /** * Main entry point for evaluation .
* @ throws IOException
* the io exception thrown if errors with paths are present */
public final void eval ( ) throws IOException { } } | final String component = this . parsedArguments . getString ( "component" ) ; final String testFile = this . parsedArguments . getString ( "testSet" ) ; final String model = this . parsedArguments . getString ( "model" ) ; Evaluate evaluator = null ; if ( component . equalsIgnoreCase ( "pos" ) ) { evaluator = new POSEv... |
public class DatabaseManagerSwing { /** * / * Simple tree node factory method - set ' s parent and user object . */
private DefaultMutableTreeNode makeNode ( Object userObject , MutableTreeNode parent ) { } } | DefaultMutableTreeNode node = new DefaultMutableTreeNode ( userObject ) ; if ( parent != null ) { treeModel . insertNodeInto ( node , parent , parent . getChildCount ( ) ) ; } return node ; |
public class HttpUtils { /** * Checks whether the given request should be closed or not once completed .
* @ param request the request
* @ return { @ code true } if the connection is marked as { @ literal keep - alive } , and so must not be closed . { @ code
* false } otherwise . Notice that if not set in the req... | String connection = request . headers ( ) . get ( HeaderNames . CONNECTION ) ; if ( connection != null && connection . equalsIgnoreCase ( CLOSE ) ) { return false ; } if ( request . version ( ) == HttpVersion . HTTP_1_1 ) { return ! CLOSE . equalsIgnoreCase ( connection ) ; } else { return KEEP_ALIVE . equalsIgnoreCase... |
public class JCRSQLQueryBuilder { /** * Translates a pattern using the escape character < code > from < / code > into
* a pattern using the escape character < code > to < / code > .
* @ param pattern the pattern to translate
* @ param from the currently used escape character .
* @ param to the new escape charac... | // if escape characters are the same OR pattern does not contain any
// escape characters - > simply return pattern as is .
if ( from == to || ( pattern . indexOf ( from ) < 0 && pattern . indexOf ( to ) < 0 ) ) { return pattern ; } StringBuilder translated = new StringBuilder ( pattern . length ( ) ) ; boolean escaped... |
public class ErrorToken { /** * - - - - - protected methods - - - - - */
protected void addIfNonNull ( final JsonObject obj , final String key , final JsonElement value ) { } } | if ( value != null && ! JsonNull . INSTANCE . equals ( value ) ) { obj . add ( key , value ) ; } |
public class IoSessionEventQueue { /** * Send any session event which were queued while waiting for handshaking to complete .
* Please note this is an internal method . DO NOT USE it in your code . */
public void flushPendingSessionEvents ( ) throws Exception { } } | synchronized ( sessionEventsQueue ) { IoSessionEvent evt ; while ( ( evt = sessionEventsQueue . poll ( ) ) != null ) { logger . debug ( " Flushing buffered event: {}" , evt ) ; evt . deliverEvent ( ) ; } } |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcBoundaryCondition ( ) { } } | if ( ifcBoundaryConditionEClass == null ) { ifcBoundaryConditionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 47 ) ; } return ifcBoundaryConditionEClass ; |
public class ALPNOfferedClientHelloExplorer { /** * struct {
* ExtensionType extension _ type ;
* opaque extension _ data < 0 . . 2 ^ 16-1 > ;
* } Extension ;
* enum {
* server _ name ( 0 ) , max _ fragment _ length ( 1 ) ,
* client _ certificate _ url ( 2 ) , trusted _ ca _ keys ( 3 ) ,
* truncated _ hma... | int length = getInt16 ( input ) ; // length of extensions
while ( length > 0 ) { int extType = getInt16 ( input ) ; // extenson type
int extLen = getInt16 ( input ) ; // length of extension data
if ( extType == 16 ) { // 0x00 : ty
return ciphers ; } else { // ignore other extensions
processByteVector ( input , extLen )... |
public class BugChecker { /** * Returns true if the given tree is annotated with a { @ code @ SuppressWarnings } that disables this
* bug checker . */
public boolean isSuppressed ( Tree tree ) { } } | SuppressWarnings suppression = ASTHelpers . getAnnotation ( tree , SuppressWarnings . class ) ; return suppression != null && ! Collections . disjoint ( Arrays . asList ( suppression . value ( ) ) , allNames ( ) ) ; |
public class MoreFunctions { /** * Creates function that converts inputs to uppercase using provided { @ code locale }
* @ param locale to use for case conversion
* @ return the function */
public static Function < String , String > toUpperCase ( @ Nonnull Locale locale ) { } } | return new ToUpperCaseFunction ( checkNotNull ( locale ) ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.