signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class DynamicSSLPanel { /** * Import Root CA certificate from other ZAP configuration files . */
private void doImport ( ) { } } | if ( checkExistingCertificate ( ) ) { // prevent overwriting
return ; } final JFileChooser fc = new JFileChooser ( System . getProperty ( "user.home" ) ) ; fc . setFileSelectionMode ( JFileChooser . FILES_ONLY ) ; fc . setMultiSelectionEnabled ( false ) ; fc . setSelectedFile ( new File ( CONFIGURATION_FILENAME ) ) ; f... |
public class NetUtil { /** * 查找指定范围内的可用端口 < br >
* 此方法只检测给定范围内的随机一个端口 , 检测maxPort - minPort次 < br >
* 来自org . springframework . util . SocketUtils
* @ param minPort 端口最小值 ( 包含 )
* @ param maxPort 端口最大值 ( 包含 )
* @ return 可用的端口
* @ since 4.5.4 */
public static int getUsableLocalPort ( int minPort , int maxPor... | for ( int i = minPort ; i <= maxPort ; i ++ ) { if ( isUsableLocalPort ( RandomUtil . randomInt ( minPort , maxPort + 1 ) ) ) { return i ; } } throw new UtilException ( "Could not find an available port in the range [{}, {}] after {} attempts" , minPort , maxPort , maxPort - minPort ) ; |
public class StructureInterface { /** * Returns true if the given group is part of the main chain , i . e . if it is
* a peptide - linked group or a nucleotide
* @ param g
* @ return */
private static boolean isInChain ( Group g ) { } } | ChemComp chemComp = g . getChemComp ( ) ; if ( chemComp == null ) { logger . warn ( "Warning: can't determine PolymerType for group " + g . getResidueNumber ( ) + " (" + g . getPDBName ( ) + "). Will consider it as non-nucleotide/non-protein type." ) ; return false ; } PolymerType polyType = chemComp . getPolymerType (... |
public class SrvBalanceStd { /** * < p > Forced recalculation all stored balances for this account
* for all dates less or equals pDateFor . This method usually invoked
* by account subaccount line service when subaccount is added . < / p >
* @ param pAddParam additional param
* @ param pAcc account
* @ param... | // this implementation does nothing . |
public class SpreadsheetExtractionAlgorithm { /** * Extract a list of Table from page using rulings as separators */
public List < Table > extract ( Page page , List < Ruling > rulings ) { } } | // split rulings into horizontal and vertical
List < Ruling > horizontalR = new ArrayList < > ( ) , verticalR = new ArrayList < > ( ) ; for ( Ruling r : rulings ) { if ( r . horizontal ( ) ) { horizontalR . add ( r ) ; } else if ( r . vertical ( ) ) { verticalR . add ( r ) ; } } horizontalR = Ruling . collapseOrientedR... |
public class Coercions { /** * Coerces a value to the specified Class that is not covered by any
* of the above cases */
public static Object coerceToObject ( Object pValue , Class pClass , Logger pLogger ) throws ELException { } } | if ( pValue == null ) { return null ; } else if ( pClass . isAssignableFrom ( pValue . getClass ( ) ) ) { return pValue ; } else if ( pValue instanceof String ) { String str = ( String ) pValue ; PropertyEditor pe = PropertyEditorManager . findEditor ( pClass ) ; if ( pe == null ) { if ( "" . equals ( str ) ) { return ... |
public class Console { /** * 同 System . out . print ( ) 方法 , 打印控制台日志
* @ param template 文本模板 , 被替换的部分用 { } 表示
* @ param values 值
* @ since 3.3.1 */
public static void print ( String template , Object ... values ) { } } | out . print ( StrUtil . format ( template , values ) ) ; |
public class StatusValueSelect { /** * { @ inheritDoc } */
@ Override public Object getValue ( final Object _currentObject ) throws EFapsException { } } | Object ret = null ; final Status tempStatus ; if ( _currentObject != null ) { // check is necessary because Oracle JDBC returns for getObject always a BigDecimal
if ( _currentObject instanceof BigDecimal ) { tempStatus = Status . get ( ( ( BigDecimal ) _currentObject ) . longValue ( ) ) ; } else { tempStatus = Status .... |
public class CompressionUtils { /** * Decode the byte [ ] in base64 to a string .
* @ param bytes the data to encode
* @ return the new string */
@ SneakyThrows public static String decodeByteArrayToString ( final byte [ ] bytes ) { } } | @ Cleanup val bais = new ByteArrayInputStream ( bytes ) ; @ Cleanup val baos = new ByteArrayOutputStream ( ) ; val buf = new byte [ bytes . length ] ; try ( val iis = new InflaterInputStream ( bais ) ) { var count = iis . read ( buf ) ; while ( count != - 1 ) { baos . write ( buf , 0 , count ) ; count = iis . read ( bu... |
public class SaneOption { /** * Sets the value of the current option to the supplied fixed - precision value . Option value must
* be of fixed - precision type . */
public double setFixedValue ( double value ) throws IOException , SaneException { } } | Preconditions . checkArgument ( value >= - 32768 && value <= 32767.9999 , "value " + value + " is out of range" ) ; SaneWord wordValue = SaneWord . forFixedPrecision ( value ) ; ControlOptionResult result = writeOption ( wordValue ) ; Preconditions . checkState ( result . getType ( ) == OptionValueType . FIXED , "setFi... |
public class SimpleLayout { /** * / * ( non - Javadoc )
* @ see org . apereo . portal . layout . IUserLayout # findNodeId ( javax . xml . xpath . XPathExpression ) */
@ Override public String findNodeId ( XPathExpression xpathExpression ) throws PortalException { } } | try { return xpathExpression . evaluate ( this . layout ) ; } catch ( XPathExpressionException e ) { throw new PortalException ( "Exception while executing XPathExpression: " + xpathExpression , e ) ; } |
public class AbstractValidate { /** * < p > Validate that the argument condition is { @ code false } ; otherwise throwing an exception with the specified message . This method is useful when validating according to an arbitrary boolean
* expression , such as validating a primitive number or using your own custom vali... | if ( expression ) { fail ( String . format ( message , value ) ) ; } |
public class ASCIICoOccurrenceReader { /** * Returns next CoOccurrenceWeight object
* PLEASE NOTE : This method can return null value .
* @ return */
@ Override public CoOccurrenceWeight < T > nextObject ( ) { } } | String line = iterator . nextSentence ( ) ; if ( line == null || line . isEmpty ( ) ) { return null ; } String [ ] strings = line . split ( " " ) ; CoOccurrenceWeight < T > object = new CoOccurrenceWeight < > ( ) ; object . setElement1 ( vocabCache . elementAtIndex ( Integer . valueOf ( strings [ 0 ] ) ) ) ; object . s... |
public class PusherInternal { /** * - ( void ) beginReplicating in CBL _ Replicator . m
* beginReplicating ( ) method is called from GET / _ local / { checkpoint id } or PUT / { db } */
@ Override @ InterfaceAudience . Private public void beginReplicating ( ) { } } | // If we ' re still waiting to create the remote db , do nothing now . ( This method will be
// re - invoked after that request finishes ; see - maybeCreateRemoteDB above . )
Log . d ( TAG , "%s: beginReplicating() called" , this ) ; // reset doneBeginReplicating
doneBeginReplicating = false ; // If we ' re still waiti... |
public class Record { /** * Converts a Record into DNS uncompressed wire format . */
public byte [ ] toWire ( int section ) { } } | DNSOutput out = new DNSOutput ( ) ; toWire ( out , section , null ) ; return out . toByteArray ( ) ; |
public class CmsListManager { /** * Returns the content locale configured for the first search root folder of the search configuration . < p >
* @ param bean the search configuration data
* @ return the locale */
private Locale getContentLocale ( ListConfigurationBean bean ) { } } | CmsObject cms = A_CmsUI . getCmsObject ( ) ; if ( bean . getFolders ( ) . isEmpty ( ) ) { return OpenCms . getLocaleManager ( ) . getDefaultLocale ( cms , "/" ) ; } else { return OpenCms . getLocaleManager ( ) . getDefaultLocale ( cms , cms . getRequestContext ( ) . removeSiteRoot ( m_currentConfig . getFolders ( ) . g... |
public class CommerceUserSegmentCriterionPersistenceImpl { /** * Removes the commerce user segment criterion with the primary key from the database . Also notifies the appropriate model listeners .
* @ param primaryKey the primary key of the commerce user segment criterion
* @ return the commerce user segment crite... | Session session = null ; try { session = openSession ( ) ; CommerceUserSegmentCriterion commerceUserSegmentCriterion = ( CommerceUserSegmentCriterion ) session . get ( CommerceUserSegmentCriterionImpl . class , primaryKey ) ; if ( commerceUserSegmentCriterion == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ... |
public class TasksBase { /** * < b > Board view only : < / b > Returns the compact section records for all tasks within the given section .
* @ param section The section in which to search for tasks .
* @ return Request object */
public CollectionRequest < Task > findBySection ( String section ) { } } | String path = String . format ( "/sections/%s/tasks" , section ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; |
public class AbcGrammar { /** * minor with flat 2nd
* phrygian : : = " phr " [ " y " [ " g " [ " i " [ " a " [ " n " ] ] ] ] ] */
Rule Phrygian ( ) { } } | return Sequence ( IgnoreCase ( "phr" ) , Optional ( Sequence ( IgnoreCase ( "y" ) , Optional ( Sequence ( IgnoreCase ( "g" ) , Optional ( Sequence ( IgnoreCase ( "i" ) , Optional ( Sequence ( IgnoreCase ( "a" ) , Optional ( IgnoreCase ( "n" ) ) ) ) ) ) ) ) ) ) ) . label ( Phrygian ) . suppressSubnodes ( ) ; |
public class MultiAction { /** * Builds an action that processes a chain of actions .
* @ param actions
* Actions to perform . in sequence .
* @ return Chain action . */
public static < S > MultiAction < S > buildChain ( final List < ? extends Action < S > > actions ) { } } | return new Builder < S > ( ) . addPerform ( actions ) . build ( ) ; |
public class DescribeConversionTasksResult { /** * Information about the conversion tasks .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setConversionTasks ( java . util . Collection ) } or { @ link # withConversionTasks ( java . util . Collection ) } if y... | if ( this . conversionTasks == null ) { setConversionTasks ( new com . amazonaws . internal . SdkInternalList < ConversionTask > ( conversionTasks . length ) ) ; } for ( ConversionTask ele : conversionTasks ) { this . conversionTasks . add ( ele ) ; } return this ; |
public class SnowflakeAzureClient { /** * Builds a URI to a Azure Storage account endpoint
* @ param storageEndPoint the storage endpoint name
* @ param storageAccount the storage account name */
private static URI buildAzureStorageEndpointURI ( String storageEndPoint , String storageAccount ) throws URISyntaxExcep... | URI storageEndpoint = new URI ( "https" , storageAccount + "." + storageEndPoint + "/" , null , null ) ; return storageEndpoint ; |
public class SipServletImpl { /** * copied over from super class changing the JMX name being registered j2eeType is now SipServlet instead of Servlet */
protected void registerJMX ( StandardContext ctx ) { } } | ObjectName oname ; String parentName = ctx . getName ( ) ; parentName = ( "" . equals ( parentName ) ) ? "/" : parentName ; String hostName = ctx . getParent ( ) . getName ( ) ; hostName = ( hostName == null ) ? "DEFAULT" : hostName ; String domain = ctx . getDomain ( ) ; String webMod = "//" + hostName + parentName ; ... |
public class DataSetConverters { /** * Converts an { @ link IDataModel } to a new { @ link IDataSet } .
* Ignores empty rows .
* Uses { @ link IDmCell # getValue ( ) } for { @ link IDsCell } values . */
static IDataSet toDataSet ( final IDataModel dataModel ) { } } | if ( dataModel == null ) { return null ; } IDataSet dataSet = new DataSet ( dataModel . getName ( ) ) ; if ( dataModel . rowCount ( ) == 0 ) { return dataSet ; } for ( IDmRow dmRow : dataModel ) { IDsRow dsRow = dataSet . addRow ( ) ; for ( IDmCell dmCell : dmRow ) { IDsCell dsCell = dsRow . addCell ( dmCell . getAddre... |
public class SarlBatchCompiler { /** * Generate the JVM model elements .
* @ param progress monitor of the progress of the compilation .
* @ param resourceSet the container of the scripts . */
protected void generateJvmElements ( ResourceSet resourceSet , IProgressMonitor progress ) { } } | assert progress != null ; progress . subTask ( Messages . SarlBatchCompiler_21 ) ; getLogger ( ) . info ( Messages . SarlBatchCompiler_21 ) ; final List < Resource > originalResources = resourceSet . getResources ( ) ; final List < Resource > toBeResolved = new ArrayList < > ( originalResources . size ( ) ) ; for ( fin... |
public class SnapshotSaveAPI { /** * Create the completion node for the snapshot identified by the txnId . It
* assumes that all hosts will race to call this , so it doesn ' t fail if the
* node already exists .
* @ param nonce Nonce of the snapshot
* @ param txnId
* @ param hostId The local host ID
* @ par... | if ( ! ( txnId > 0 ) ) { VoltDB . crashGlobalVoltDB ( "Txnid must be greather than 0" , true , null ) ; } byte nodeBytes [ ] = null ; try { JSONStringer stringer = new JSONStringer ( ) ; stringer . object ( ) ; stringer . keySymbolValuePair ( "txnId" , txnId ) ; stringer . keySymbolValuePair ( "isTruncation" , isTrunca... |
public class Transformation2D { /** * Performs multiplication of matrices a and b and places the result into
* this matrix . The a , b , and result could point to same objects . < br >
* Equivalent to result = a * b .
* @ param a
* The 2D transformation to be multiplied .
* @ param b
* The 2D transformation... | double xx , xy , xd , yx , yy , yd ; xx = a . xx * b . xx + a . yx * b . xy ; xy = a . xy * b . xx + a . yy * b . xy ; xd = a . xd * b . xx + a . yd * b . xy + b . xd ; yx = a . xx * b . yx + a . yx * b . yy ; yy = a . xy * b . yx + a . yy * b . yy ; yd = a . xd * b . yx + a . yd * b . yy + b . yd ; result . xx = xx ; ... |
public class CreateSMBFileShareRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateSMBFileShareRequest createSMBFileShareRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createSMBFileShareRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createSMBFileShareRequest . getClientToken ( ) , CLIENTTOKEN_BINDING ) ; protocolMarshaller . marshall ( createSMBFileShareRequest . getGatewayARN ( ) , GATEWA... |
public class XsdAsmUtils { /** * Obtains the java type descriptor based on the attribute type attribute .
* @ param attribute The attribute from which the type will be obtained .
* @ return The java descriptor of the attribute type . */
static String getFullJavaType ( XsdAttribute attribute ) { } } | List < XsdRestriction > restrictions = getAttributeRestrictions ( attribute ) ; String javaType = xsdFullTypesToJava . getOrDefault ( attribute . getType ( ) , null ) ; if ( javaType == null ) { if ( ! restrictions . isEmpty ( ) ) { return xsdFullTypesToJava . getOrDefault ( restrictions . get ( 0 ) . getBase ( ) , JAV... |
public class AbstractMailFaxClientSpi { /** * Creates and returns the mail connection to be used to send the fax
* via mail .
* @ return The mail connection */
protected Connection < MailResourcesHolder > createMailConnection ( ) { } } | // create new connection
Connection < MailResourcesHolder > mailConnection = this . connectionFactory . createConnection ( ) ; // log debug
Logger logger = this . getLogger ( ) ; logger . logInfo ( new Object [ ] { "Created mail connection." } , null ) ; return mailConnection ; |
public class AST { /** * Override if your AST collection does not support the set method . Javac ' s for example , does not .
* @ param field The field that contains the array or list of AST nodes .
* @ param fieldRef The object that you can supply to the field ' s { @ code get } method .
* @ param chain If the c... | "rawtypes" , "unchecked" } ) protected void setElementInASTCollection ( Field field , Object fieldRef , List < Collection < ? > > chain , Collection < ? > collection , int idx , N newN ) throws IllegalAccessException { if ( collection instanceof List < ? > ) { ( ( List ) collection ) . set ( idx , newN ) ; } |
public class SerializableUtil { /** * Loads a serialized object of the specifed type from the file .
* @ param fileName the file name from which an object should be loaded
* @ return the object that was serialized in the file */
@ SuppressWarnings ( "unchecked" ) public static < T > T load ( String fileName ) { } } | return ( T ) load ( new File ( fileName ) ) ; |
public class ProtocolConnectionUtils { /** * Connect sync .
* @ param configuration the protocol configuration
* @ return the connection
* @ throws IOException */
public static Connection connectSync ( final ProtocolConnectionConfiguration configuration ) throws IOException { } } | long timeoutMillis = configuration . getConnectionTimeout ( ) ; CallbackHandler handler = configuration . getCallbackHandler ( ) ; final CallbackHandler actualHandler ; ProtocolTimeoutHandler timeoutHandler = configuration . getTimeoutHandler ( ) ; // Note : If a client supplies a ProtocolTimeoutHandler it is taking on... |
public class AnnotationManager { /** * Update an annotation on the map .
* @ param annotation annotation to be updated */
@ UiThread public void update ( T annotation ) { } } | if ( annotations . containsValue ( annotation ) ) { annotations . put ( annotation . getId ( ) , annotation ) ; updateSource ( ) ; } else { Logger . e ( TAG , "Can't update annotation: " + annotation . toString ( ) + ", the annotation isn't active annotation." ) ; } |
public class Timer { /** * An accurate sync method that will attempt to run at the tps . It should be called once every tick . */
public void sync ( ) { } } | if ( nextTick < 0 ) { throw new IllegalStateException ( "Timer was not started" ) ; } if ( tps <= 0 ) { return ; } try { // Sleep until the average sleep time is greater than the time remaining until next tick
for ( long time1 = getTime ( ) , time2 ; nextTick - time1 > sleepDurations . average ( ) ; time1 = time2 ) { T... |
public class BitInputStream { /** * read a single bit .
* @ return The bit
* @ throws IOException Thrown if error reading input stream */
public int readBit ( ) throws IOException { } } | while ( true ) { if ( availBits > 0 ) { int val = ( ( buffer [ getByte ] & ( 0x80 >> getBit ) ) != 0 ) ? 1 : 0 ; getBit ++ ; if ( getBit == BITS_PER_BLURB ) { readCRC16 = CRC16 . update ( buffer [ getByte ] , readCRC16 ) ; getByte ++ ; getBit = 0 ; } availBits -- ; totalBitsRead ++ ; return val ; } else { readFromStrea... |
public class X509CertSelector { /** * Sets the subjectPublicKeyAlgID criterion . The
* { @ code X509Certificate } must contain a subject public key
* with the specified algorithm . If { @ code null } , no
* subjectPublicKeyAlgID check will be done .
* @ param oid The object identifier ( OID ) of the algorithm t... | if ( oid == null ) { subjectPublicKeyAlgID = null ; } else { subjectPublicKeyAlgID = new ObjectIdentifier ( oid ) ; } |
public class AbstractJdbcHelper { /** * { @ inheritDoc } */
@ Override public < T > T executeSelectOne ( IRowMapper < T > rowMapper , Connection conn , String sql , Object ... bindValues ) { } } | try ( Stream < T > stream = executeSelectAsStream ( rowMapper , conn , 1 , sql , bindValues ) ) { return stream . findFirst ( ) . orElse ( null ) ; } |
public class PropertyLoader { /** * Apply DataSource specific properties */
private < T extends DataSource > T applyDataSourceProperties ( T dataSource ) { } } | for ( Map . Entry < Object , Object > entry : properties . entrySet ( ) ) { String key = entry . getKey ( ) . toString ( ) ; String value = entry . getValue ( ) . toString ( ) ; String propertyKey = PropertyKey . DATA_SOURCE_PROPERTY . getKey ( ) ; if ( key . startsWith ( propertyKey ) ) { String dataSourceProperty = k... |
public class BigQueryLoadFileSetJob { /** * Triggers a bigquery load { @ link Job } request and returns the job Id for the same . */
private BigQueryLoadJobReference triggerBigQueryLoadJob ( ) { } } | Job job = createJob ( ) ; // Set up Bigquery Insert
try { Insert insert = BigQueryLoadGoogleCloudStorageFilesJob . getBigquery ( ) . jobs ( ) . insert ( projectId , job ) ; Job executedJob = insert . execute ( ) ; log . info ( "Triggered the bigQuery load job for files " + fileSet + " . Job Id = " + executedJob . getId... |
public class RelationalOperations { /** * _ multipathB . */
static int linearPathIntersectsLinearPathMaxDim_ ( MultiPath _multipathA , MultiPath _multipathB , double tolerance , AttributeStreamOfDbl intersections ) { } } | MultiPath multipathA ; MultiPath multipathB ; if ( _multipathA . getSegmentCount ( ) > _multipathB . getSegmentCount ( ) ) { multipathA = _multipathB ; multipathB = _multipathA ; } else { multipathA = _multipathA ; multipathB = _multipathB ; } SegmentIteratorImpl segIterA = ( ( MultiPathImpl ) multipathA . _getImpl ( )... |
public class LoadBalancersInner { /** * Updates a load balancer tags .
* @ param resourceGroupName The name of the resource group .
* @ param loadBalancerName The name of the load balancer .
* @ param tags Resource tags .
* @ param serviceCallback the async ServiceCallback to handle successful and failed respon... | return ServiceFuture . fromResponse ( updateTagsWithServiceResponseAsync ( resourceGroupName , loadBalancerName , tags ) , serviceCallback ) ; |
public class NameUtil { /** * d366807.3 */
public static final String updateFilenameHashCode ( Object enterpriseBean , String oldName ) { } } | return updateFilenameHashCode ( ( EnterpriseBean ) enterpriseBean , oldName ) ; |
public class Reader { /** * Return the read result as a Stream
* @ return Stream
* @ throws ReaderException Thrown when an exception occurs during reading */
public Stream < T > asStream ( ) { } } | if ( modelType == null ) { throw new IllegalArgumentException ( "modelType can be not null" ) ; } if ( fromFile == null && fromStream == null ) { throw new IllegalArgumentException ( "Excel source not is null" ) ; } if ( fromFile != null ) { return ReaderFactory . readByFile ( this ) ; } else { return ReaderFactory . r... |
public class SeleniumTableSteps { /** * Then */
@ Then ( "^the table \"(.*)\" should match$" ) public void the_table_x_should_match ( String tableDescriptor , DataTable expectedContent ) throws Throwable { } } | WebElement table = seleniumElementService . translateLocatorToWebElement ( tableDescriptor ) ; ExpectedTableDefinition expected = new ExpectedTableDefinition ( expectedContent ) ; seleniumTableService . compareTable ( expected , table ) ; |
public class InfiniteScrollPanel { /** * Will load the initial data and initialize the buffer top and bottom
* of the scroll panel providing a target threshold on scrolling both top / bottom positions . */
protected void load ( ) { } } | if ( loader == null ) { setInfiniteScrollLoader ( new InfiniteScrollLoader ( ) ) ; } offset = loadConfig . getOffset ( ) ; limit = loadConfig . getLimit ( ) ; load ( offset , limit ) ; |
public class FnShort { /** * Determines whether the target object is null or not .
* @ return true if the target object is null , false if not . */
public static final Function < Short , Boolean > isNull ( ) { } } | return ( Function < Short , Boolean > ) ( ( Function ) FnObject . isNull ( ) ) ; |
public class JDayChooser { /** * Sets the background of days and weeks of year buttons .
* @ param decorationBackgroundColor
* The background to set */
public void setDecorationBackgroundColor ( Color decorationBackgroundColor ) { } } | this . decorationBackgroundColor = decorationBackgroundColor ; if ( days != null ) { for ( int i = 0 ; i < 7 ; i ++ ) { days [ i ] . setBackground ( decorationBackgroundColor ) ; } } if ( weeks != null ) { for ( int i = 0 ; i < 7 ; i ++ ) { weeks [ i ] . setBackground ( decorationBackgroundColor ) ; } } |
public class AttachedRemoteSubscriberControl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPAttachedRemoteSubscriberControllable # getRemoteConsumerReceiver ( ) */
public SIMPRemoteConsumerReceiverControllable getRemoteConsumerReceiver ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getRemoteConsumerReceiver" ) ; AIStream aiStream = _anycastInputHandler . getAIStream ( ) ; SIMPRemoteConsumerReceiverControllable remoteConsumerReceiverControl = null ; if ( aiStream != null ) remoteConsumerReceiverControl... |
public class StepThreadExecutionEntity { /** * This method is used to de - serialized a table BLOB field to its original object form .
* @ param buffer the byte array save a BLOB
* @ return the object saved as byte array
* @ throws IOException
* @ throws ClassNotFoundException */
private Serializable deserializ... | Serializable theObject = null ; DeserializationObjectInputStream objectIn = null ; if ( buffer != null ) { objectIn = new DeserializationObjectInputStream ( new ByteArrayInputStream ( buffer ) , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; theObject = ( Serializable ) objectIn . readObject ( ) ; objectIn ... |
public class RootFileSystem { /** * { @ inheritDoc } */
public InputStream openInputStream ( VirtualFile mountPoint , VirtualFile target ) throws IOException { } } | return new FileInputStream ( getFile ( mountPoint , target ) ) ; |
public class MailApi { /** * Return mailing list subscriptions Return all mailing lists that the
* character is subscribed to - - - This route is cached for up to 120 seconds
* SSO Scope : esi - mail . read _ mail . v1
* @ param characterId
* An EVE character ID ( required )
* @ param datasource
* The serve... | ApiResponse < List < CharacterMailinglistsResponse > > resp = getCharactersCharacterIdMailListsWithHttpInfo ( characterId , datasource , ifNoneMatch , token ) ; return resp . getData ( ) ; |
public class MkMaxTree { /** * Adjusts the knn distance in the subtree of the specified root entry . */
@ Override protected void kNNdistanceAdjustment ( MkMaxEntry entry , Map < DBID , KNNList > knnLists ) { } } | MkMaxTreeNode < O > node = getNode ( entry ) ; double knnDist_node = 0. ; if ( node . isLeaf ( ) ) { for ( int i = 0 ; i < node . getNumEntries ( ) ; i ++ ) { MkMaxEntry leafEntry = node . getEntry ( i ) ; leafEntry . setKnnDistance ( knnLists . get ( leafEntry . getRoutingObjectID ( ) ) . getKNNDistance ( ) ) ; knnDis... |
public class EJBJavaColonNamingHelper { /** * This method process lookup requests for java : module .
* @ param lookupName JNDI lookup name
* @ param cmd The component metadata
* @ return the EJB object instance .
* @ throws NamingException */
private Object processJavaColonModule ( String lookupName ) throws N... | ComponentMetaData cmd = getComponentMetaData ( JavaColonNamespace . MODULE , lookupName ) ; ModuleMetaData mmd = cmd . getModuleMetaData ( ) ; JavaColonNamespaceBindings < EJBBinding > modMap = getModuleBindingMap ( mmd ) ; EJBBinding binding = modMap . lookup ( lookupName ) ; return processJavaColon ( binding , JavaCo... |
public class GlobalSettingsFactory { /** * TODO use XmlSerializer */
static void writeGlobalSettings ( BufferedWriter writer ) throws IOException { } } | GlobalSettings globalSettings = GlobalSettings . getInstance ( ) ; writer . write ( XML_START_TAG ) ; XMLUtils . writeXmlAttribute ( SOUND_ENABLED , XMLUtils . xmlFromBoolean ( globalSettings . isSoundEnabled ( ) ) , writer ) ; XMLUtils . writeXmlAttribute ( ONSCREEN , XMLUtils . xmlFromBoolean ( globalSettings . isOnS... |
public class ResourceAssignment { /** * Handle the change in a field value . Reset any cached calculated
* values affected by this change , pass on the event to any external
* listeners .
* @ param field field changed
* @ param oldValue old field value
* @ param newValue new field value */
private void fireFi... | // Internal event handling
switch ( field ) { case START : case BASELINE_START : { m_array [ AssignmentField . START_VARIANCE . getValue ( ) ] = null ; break ; } case FINISH : case BASELINE_FINISH : { m_array [ AssignmentField . FINISH_VARIANCE . getValue ( ) ] = null ; break ; } case BCWP : case ACWP : { m_array [ Ass... |
public class Key { /** * If the addresses are not specified , returns a key with no home information . */
static public Key make ( String s , byte rf , byte systemType , H2ONode ... replicas ) { } } | return make ( decodeKeyName ( s ) , rf , systemType , replicas ) ; |
public class BridgeStatusUpdateMessage { /** * Sets the bridge id .
* @ param userID the new bridge id */
public void setLocalID ( String userID ) { } } | try { this . localID = URLEncoder . encode ( userID , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { logger . error ( "UnsupportedEncodingException " + e . getMessage ( ) , e ) ; e . printStackTrace ( ) ; throw new RuntimeException ( e ) ; } ; |
public class Variable { /** * Deserializes a variable , checking whether the datatype is custom or not
* @ param s
* @ param variableType
* @ param dataTypes
* @ return */
public static Variable deserialize ( String s , VariableType variableType , List < String > dataTypes ) { } } | Variable var = new Variable ( variableType ) ; String [ ] varParts = s . split ( ":" ) ; if ( varParts . length > 0 ) { String name = varParts [ 0 ] ; if ( ! name . isEmpty ( ) ) { var . setName ( name ) ; if ( varParts . length == 2 ) { String dataType = varParts [ 1 ] ; if ( ! dataType . isEmpty ( ) ) { if ( dataType... |
public class Criteria { /** * Crates new { @ link Predicate } for { @ code RANGE [ lowerBound TO upperBound ] }
* @ param lowerBound
* @ param upperBound
* @ return */
public Criteria between ( @ Nullable Object lowerBound , @ Nullable Object upperBound ) { } } | return between ( lowerBound , upperBound , true , true ) ; |
public class EventFilterLexer { /** * $ ANTLR start " COMMENT " */
public final void mCOMMENT ( ) throws RecognitionException { } } | try { int _type = COMMENT ; int _channel = DEFAULT_TOKEN_CHANNEL ; // EventFilter . g : 204:5 : ( ' / / ' ( ~ ( ' \ \ n ' | ' \ \ r ' ) ) * ( ' \ \ r ' ) ? ' \ \ n ' | ' / * ' ( options { greedy = false ; } : . ) * ' * / ' )
int alt15 = 2 ; int LA15_0 = input . LA ( 1 ) ; if ( ( LA15_0 == '/' ) ) { int LA15_1 = input .... |
public class SibRaDispatchEndpointActivation { /** * ( non - Javadoc )
* @ see com . ibm . ws . sib . ra . inbound . impl . SibRaEndpointActivation # messagingEngineTerminated ( com . ibm . ws . sib . ra . inbound . impl . SibRaMessagingEngineConnection ) */
void messagingEngineTerminated ( final SibRaMessagingEngine... | final String methodName = "messagingEngineTerminated" ; if ( TraceComponent . isAnyTracingEnabled ( ) && TRACE . isEntryEnabled ( ) ) { SibTr . entry ( this , TRACE , methodName , connection ) ; } /* * Close the connection - any future work will attempt to create a new
* connection */
closeConnection ( connection . g... |
public class Hierarchy { /** * Determine whether one class ( or reference type ) is a subtype of another .
* @ param clsName
* the name of the class or reference type
* @ param possibleSupertypeClassName
* the name of the possible superclass
* @ return true if clsName is a subtype of possibleSupertypeClassNam... | Subtypes2 subtypes2 = Global . getAnalysisCache ( ) . getDatabase ( Subtypes2 . class ) ; return subtypes2 . isSubtype ( DescriptorFactory . createClassDescriptorFromDottedClassName ( clsName ) , DescriptorFactory . createClassDescriptorFromDottedClassName ( possibleSupertypeClassName ) ) ; |
public class IfcSurfaceReinforcementAreaImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < Double > getSurfaceReinforcement1 ( ) { } } | return ( EList < Double > ) eGet ( Ifc4Package . Literals . IFC_SURFACE_REINFORCEMENT_AREA__SURFACE_REINFORCEMENT1 , true ) ; |
public class ContentStoreImpl { /** * { @ inheritDoc } */
@ Override public boolean contentExists ( String spaceId , String contentId ) throws ContentStoreException { } } | try { doGetContentProperties ( spaceId , contentId ) ; return true ; } catch ( NotFoundException e ) { return false ; } |
public class FnDouble { /** * It multiplies target by multiplicand and returns its value . The result is
* rounded based on the given { @ link RoundingMode }
* @ param multiplicand the multiplicand
* @ param roundingMode the { @ link RoundingMode }
* @ return the result of target * multiplicand */
public final ... | return multiplyBy ( Byte . valueOf ( multiplicand ) , roundingMode ) ; |
public class KolmogorovSmirnovIndependentSamples { /** * Calculate Critical Value for a particular $ n and $ aLevel combination
* @ param is _ twoTailed
* @ param n1
* @ param n2
* @ param aLevel
* @ return */
protected static double calculateCriticalValue ( boolean is_twoTailed , int n1 , int n2 , double aLe... | double a = aLevel ; if ( is_twoTailed ) { a = aLevel / 2.0 ; } double one_minus_a = 1.0 - a ; double Ka = 1.36 ; // start by this value and go either up or down until you pass the desired level of significance
int direction = 1 ; // go up
if ( ContinuousDistributions . kolmogorov ( Ka ) > one_minus_a ) { direction = - ... |
public class SOABaseDialog { /** * - - - - - FUNCTIONALITY - - - - - */
private void updateListActivity ( boolean setSelection ) { } } | activityListModel . clear ( ) ; if ( getDialogObject ( ) != null ) { List < String > activities = new ArrayList < String > ( getDialogObject ( ) . getActivities ( ) ) ; Collections . sort ( activities ) ; for ( String activity : activities ) { activityListModel . addElement ( activity ) ; } } if ( ! activityListModel .... |
public class RepeaterExpression { private void renderLine ( Object object , Context context , int lineNumber , StringBuilder output ) { } } | String lineNumberInput = "#" + this . variableToSetName + "Number" ; context . put ( lineNumberInput , lineNumber ) ; context . put ( this . variableToSetName , object ) ; output . append ( this . repeatBlock . renderForContext ( context ) ) ; context . remove ( lineNumberInput ) ; context . remove ( this . variableToS... |
public class ChatDirector { /** * Helper function for { @ link # mogrifyChat ( String , byte , boolean , boolean ) } . */
protected StringBuffer mogrifyChat ( StringBuffer buf , boolean transformsAllowed , boolean capFirst ) { } } | if ( _mogrifyChat ) { // do the generic mogrifications and translations
buf = translatedReplacements ( "x.mogrifies" , buf ) ; // perform themed expansions and transformations
if ( transformsAllowed ) { buf = translatedReplacements ( "x.transforms" , buf ) ; } } /* / / capitalize the first letter
if ( capFirst ) {
... |
public class ApiOvhVps { /** * Return all models for the range of the virtual server
* REST : GET / vps / { serviceName } / models
* @ param serviceName [ required ] The internal name of your VPS offer */
public ArrayList < OvhModel > serviceName_models_GET ( String serviceName ) throws IOException { } } | String qPath = "/vps/{serviceName}/models" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t6 ) ; |
public class Workgroups { /** * For creating a new workgroup or a new group / user relationship . */
@ Override @ Path ( "/{groupName}/{'users'}/{cuid}" ) @ ApiOperation ( value = "Create a workgroup or add a user to an existing workgroup" , notes = "If users/{cuid} is present, user is added to workgroup." , response =... | @ ApiImplicitParam ( name = "Workgroup" , paramType = "body" , required = true , dataType = "com.centurylink.mdw.model.user.Workgroup" ) , @ ApiImplicitParam ( name = "groupName" , paramType = "path" , required = true ) } ) public JSONObject post ( String path , JSONObject content , Map < String , String > headers ) th... |
public class GeometryIndexStateServiceImpl { @ Override public HandlerRegistration addGeometryIndexDisabledHandler ( GeometryIndexDisabledHandler handler ) { } } | return editingService . getEventBus ( ) . addHandler ( GeometryIndexDisabledHandler . TYPE , handler ) ; |
public class FileOutputFormat { /** * Set the { @ link CompressionCodec } to be used to compress job outputs .
* @ param job the job to modify
* @ param codecClass the { @ link CompressionCodec } to be used to
* compress the job outputs */
public static void setOutputCompressorClass ( Job job , Class < ? extends ... | setCompressOutput ( job , true ) ; job . getConfiguration ( ) . setClass ( "mapred.output.compression.codec" , codecClass , CompressionCodec . class ) ; |
public class FeatureSampler { /** * A factory method for creating { @ code FeatureSampler } s . */
public static < S , V > Sampler < V > sampled ( S subject , Feature < ? super S , V > feature ) { } } | return new FeatureSampler < S , V > ( subject , feature ) ; |
public class RuntimeProcessExecutor { /** * Uses the Java { @ link Runtime } to execute the program defined by the given { @ code commandLine }
* in the given { @ link File directory } .
* @ param directory { @ link File directory } in which the program will run .
* @ param commandLine array of { @ link String } ... | Assert . isTrue ( isDirectory ( directory ) , "[%s] is not a valid directory" , directory ) ; Assert . notEmpty ( commandLine , "The command-line %s must contain at least 1 command" , Arrays . toString ( commandLine ) ) ; try { Environment environment = getEnvironment ( ) ; Process process = doExecute ( commandLine , d... |
public class PreparedPutCollectionOfObjects { /** * Creates { @ link Flowable } which will perform Put Operation and send result to observer .
* Returned { @ link Flowable } will be " Cold Flowable " , which means that it performs
* put only after subscribing to it . Also , it emits the result once .
* < dl >
*... | return RxJavaUtils . createFlowable ( storIOSQLite , this , backpressureStrategy ) ; |
public class UnsupportedCriticalExtensionChecker { /** * Method that checks if there are unsupported critical extension . Supported
* ones are only BasicConstrains , KeyUsage , Proxy Certificate ( old and new )
* @ param cert The certificate to validate .
* @ param certType The type of certificate to validate .
... | Set < String > criticalExtensionOids = cert . getCriticalExtensionOIDs ( ) ; if ( criticalExtensionOids == null ) { return ; } for ( String criticalExtensionOid : criticalExtensionOids ) { isUnsupported ( certType , criticalExtensionOid ) ; } |
public class NormalizationManager { /** * sets a couple of rudimentary normalization parameters */
private void readGlobalNormalizationInformation ( ) { } } | // MONTH IN QUARTER
normMonthInQuarter . put ( "01" , "1" ) ; normMonthInQuarter . put ( "02" , "1" ) ; normMonthInQuarter . put ( "03" , "1" ) ; normMonthInQuarter . put ( "04" , "2" ) ; normMonthInQuarter . put ( "05" , "2" ) ; normMonthInQuarter . put ( "06" , "2" ) ; normMonthInQuarter . put ( "07" , "3" ) ; normMo... |
public class Credentials { /** * Create a set of credentials .
* @ param encoded the encoded header
* @ return credentials or null on error */
public static Credentials parse ( final String encoded ) { } } | try { final String decoded = new String ( Base64 . getDecoder ( ) . decode ( encoded ) , UTF_8 ) ; final String [ ] parts = decoded . split ( ":" , 2 ) ; if ( parts . length == 2 ) { return new Credentials ( parts [ 0 ] , parts [ 1 ] ) ; } } catch ( final IllegalArgumentException ex ) { // log error
} return null ; |
public class Matrix { /** * Sets all elements of this matrix to the given { @ code value } .
* @ param value the element ' s new value */
public void setAll ( double value ) { } } | MatrixIterator it = iterator ( ) ; while ( it . hasNext ( ) ) { it . next ( ) ; it . set ( value ) ; } |
public class CmsUpdateBean { /** * Removes a module . < p >
* @ param moduleName the name of the module to remove
* @ param report the report to write to
* @ throws CmsException in case something goes wrong */
protected void removeModule ( String moduleName , I_CmsReport report ) throws CmsException { } } | if ( OpenCms . getModuleManager ( ) . getModule ( moduleName ) != null ) { OpenCms . getModuleManager ( ) . deleteModule ( m_cms , moduleName , true , m_preserveLibModules . contains ( moduleName ) , report ) ; } |
public class CollectionUtils { /** * Same as transformedCopy , except the returned Multiset is mutable . */
public static < A , B > Multiset < B > mutableTransformedCopy ( Multiset < A > ms , Function < A , B > func ) { } } | final Multiset < B > ret = HashMultiset . create ( ) ; for ( final Multiset . Entry < A > entry : ms . entrySet ( ) ) { final B transformedElement = func . apply ( entry . getElement ( ) ) ; ret . add ( transformedElement , entry . getCount ( ) ) ; } return ret ; |
public class ExtraLanguageTypeConverter { /** * Convert the given type to its equivalent in the extra language .
* @ param type the type to convert .
* @ return the conversion result , or { @ code null } if no equivalent exist . */
public String convert ( String type ) { } } | if ( isImplicitSarlTypes ( ) && type . startsWith ( IMPLICIT_PACKAGE ) ) { return type ; } if ( this . mapping == null ) { this . mapping = initMapping ( ) ; } final String map = this . mapping . get ( type ) ; if ( map != null ) { if ( map . isEmpty ( ) && ! isImplicitJvmTypes ( ) ) { return null ; } return map ; } if... |
public class FieldType { /** * Return An instantiated { @ link FieldType } or null if the field does not have a { @ link DatabaseField } annotation . */
public static FieldType createFieldType ( DatabaseType databaseType , String tableName , Field field , Class < ? > parentClass ) throws SQLException { } } | DatabaseFieldConfig fieldConfig = DatabaseFieldConfig . fromField ( databaseType , tableName , field ) ; if ( fieldConfig == null ) { return null ; } else { return new FieldType ( databaseType , tableName , field , fieldConfig , parentClass ) ; } |
public class ReflectionHelper { /** * Get the list of class - type pairs that represent the type arguments of a
* { @ link ParameterizedType parameterized } input type .
* For any given { @ link ClassTypePair # rawClass ( ) class } part of each pair
* in the returned list , following rules apply :
* < ul >
* ... | final Type [ ] types = getTypeArguments ( type ) ; if ( types == null ) { return Collections . emptyList ( ) ; } List < ClassTypePair > list = new ArrayList < > ( ) ; for ( Type t : types ) { list . add ( new ClassTypePair ( erasure ( t ) , t ) ) ; } return list ; |
public class ConfigReader { /** * Loads a certain { @ link IDataSourceType } class at runtime
* @ param className IDataSourceType class
* @ return the created IDataSourceType object */
protected IDataSourceType initDataSouceType ( final String className ) { } } | final Class < ? > c ; try { c = Class . forName ( className ) ; } catch ( ClassNotFoundException e ) { throw new IllegalArgumentException ( "Class not found: " + className , e ) ; } final Object o ; try { o = c . newInstance ( ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Creating an instance of c... |
public class DssatCommonOutput { /** * Format the number with maximum length and type
* @ param bits Maximum length of the output string
* @ param m the experiment data holder
* @ param key the key of field in the map
* @ param defVal the default return value when error happens
* @ return formated string of n... | String ret = "" ; String str = getObjectOr ( m , key , defVal ) ; String [ ] inputStr = str . split ( "\\." ) ; if ( str . trim ( ) . equals ( "" ) ) { return String . format ( "%" + bits + "s" , defVal ) ; } else if ( str . length ( ) <= bits ) { ret = String . format ( "%1$" + bits + "s" , str ) ; } else if ( inputSt... |
public class ListGitHubAccountTokenNamesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( ListGitHubAccountTokenNamesRequest listGitHubAccountTokenNamesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( listGitHubAccountTokenNamesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listGitHubAccountTokenNamesRequest . getNextToken ( ) , NEXTTOKEN_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to mars... |
public class RedisBase { /** * 查找所有符合给定模式 pattern 的 key
* @ param pattern
* @ return */
public Set < String > keys ( String pattern ) { } } | Set < String > keys = JedisProviderFactory . getMultiKeyCommands ( groupName ) . keys ( pattern ) ; return keys ; |
public class AmazonGuardDutyClient { /** * Creates a single Amazon GuardDuty detector . A detector is an object that represents the GuardDuty service . A
* detector must be created in order for GuardDuty to become operational .
* @ param createDetectorRequest
* CreateDetector request body .
* @ return Result of... | request = beforeClientExecution ( request ) ; return executeCreateDetector ( request ) ; |
public class SearchCommService { /** * Get a list of all visible layers on the given { @ link MapModel } .
* @ param mapModel map model
* @ return a list of all visible layers . */
public static List < String > getVisibleServerLayerIds ( MapModel mapModel ) { } } | List < String > layerIds = new ArrayList < String > ( ) ; for ( VectorLayer layer : mapModel . getVectorLayers ( ) ) { if ( layer . isShowing ( ) ) { layerIds . add ( layer . getServerLayerId ( ) ) ; } } return layerIds ; |
public class Tools { /** * Sum of the elements .
* @ param data Data .
* @ return Sum ( data ) . */
public static float Sum ( float [ ] data ) { } } | float sum = 0 ; for ( int i = 0 ; i < data . length ; i ++ ) { sum += data [ i ] ; } return sum ; |
public class SimpleShanksAgent { /** * ( non - Javadoc )
* @ see
* es . upm . dit . gsi . shanks . agent . ShanksAgent # sendMsg ( jason . asSemantics . Message */
@ Override public void sendMsg ( Message message ) { } } | try { message . setSender ( this . getID ( ) ) ; ShanksAgent receiver = this . simulation . getAgent ( message . getReceiver ( ) ) ; receiver . putMessegaInInbox ( message ) ; logger . finer ( "Sent message from Agent: " + this . getID ( ) + " to Agent: " + message . getReceiver ( ) ) ; } catch ( UnkownAgentException e... |
public class BrowserDialog { /** * This method initializes this */
private void initialize ( ) { } } | this . setContentPane ( getJContentPane ( ) ) ; this . setDefaultCloseOperation ( DO_NOTHING_ON_CLOSE ) ; this . setTitle ( TITLE ) ; this . addWindowListener ( new java . awt . event . WindowAdapter ( ) { @ Override public void windowClosing ( WindowEvent winEvt ) { stop ( ) ; BrowserDialog . this . setVisible ( false... |
public class AvatarNodeZkUtil { /** * Obtain the registration of the primary from zk . */
static String getPrimaryRegistration ( Configuration startupConf , Configuration conf , String fsname ) throws IOException { } } | AvatarZooKeeperClient zk = null ; int maxTries = startupConf . getInt ( "dfs.avatarnode.zk.retries" , 3 ) ; for ( int i = 0 ; i < maxTries ; i ++ ) { try { zk = new AvatarZooKeeperClient ( conf , null , false ) ; String zkRegistry = zk . getPrimaryAvatarAddress ( fsname , new Stat ( ) , false ) ; return zkRegistry ; } ... |
public class CmsGwtActionElement { /** * Returns the serialized data for the core provider wrapped into a script tag . < p >
* @ param cms the CMS context
* @ param coreData the core data to write into the page
* @ return the data
* @ throws Exception if something goes wrong */
public static String exportCommon... | // determine the workplace locale
String wpLocale = OpenCms . getWorkplaceManager ( ) . getWorkplaceLocale ( cms ) . getLanguage ( ) ; if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( wpLocale ) ) { // if no locale was found , take English as locale
wpLocale = Locale . ENGLISH . getLanguage ( ) ; } StringBuffer sb = new ... |
public class RocksDBIncrementalRestoreOperation { /** * Recovery from multi incremental states with rescaling . For rescaling , this method creates a temporary
* RocksDB instance for a key - groups shard . All contents from the temporary instance are copied into the
* real restore instance and then the temporary in... | // Prepare for restore with rescaling
KeyedStateHandle initialHandle = RocksDBIncrementalCheckpointUtils . chooseTheBestStateHandleForInitial ( restoreStateHandles , keyGroupRange ) ; // Init base DB instance
if ( initialHandle != null ) { restoreStateHandles . remove ( initialHandle ) ; initDBWithRescaling ( initialHa... |
public class LoginController { /** * Try to figure out where to go after login . We have to do a
* few tricks in order to carry that around .
* @ param request the request object
* @ return the URL */
private String loginDestinationUrl ( final HttpServletRequest request ) { } } | final HttpSession session = request . getSession ( ) ; final String requestReferer = request . getHeader ( "referer" ) ; final String sessionReferer = ( String ) session . getAttribute ( SESSION_REFERER_KEY ) ; if ( useReferer ( requestReferer ) ) { return requestReferer ; } else if ( useReferer ( sessionReferer ) ) { ... |
public class ForkJoinTaskMapper { /** * This method gets the list of tasks that need to scheduled when the the task to scheduled is of type { @ link TaskType # FORK _ JOIN } .
* @ param taskMapperContext : A wrapper class containing the { @ link WorkflowTask } , { @ link WorkflowDef } , { @ link Workflow } and a stri... | logger . debug ( "TaskMapperContext {} in ForkJoinTaskMapper" , taskMapperContext ) ; WorkflowTask taskToSchedule = taskMapperContext . getTaskToSchedule ( ) ; Map < String , Object > taskInput = taskMapperContext . getTaskInput ( ) ; Workflow workflowInstance = taskMapperContext . getWorkflowInstance ( ) ; int retryCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.