signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class LinearGapAlignmentScoring { /** * Returns standard amino acid BLAST scoring
* @ param matrix BLAST substitution matrix
* @ param gapPenalty penalty for gap , must be < 0
* @ return standard amino acid BLAST scoring */
public static LinearGapAlignmentScoring < AminoAcidSequence > getAminoAcidBLASTScor... | return new LinearGapAlignmentScoring < > ( AminoAcidSequence . ALPHABET , matrix . getMatrix ( ) , gapPenalty ) ; |
public class ClassFile { /** * Return internal representation of given name , converting ' / ' to ' . ' .
* Note : the naming is the inverse of that used by JVMS 4.2 The Internal Form Of Names ,
* which defines " internal name " to be the form using " / " instead of " . " */
public static byte [ ] internalize ( Nam... | return internalize ( name . getByteArray ( ) , name . getByteOffset ( ) , name . getByteLength ( ) ) ; |
public class MolecularFormulaGenerator { /** * Checks if input parameters are valid and throws an IllegalArgumentException otherwise . */
protected void checkInputParameters ( final IChemObjectBuilder builder , final double minMass , final double maxMass , final MolecularFormulaRange mfRange ) { } } | if ( ( minMass < 0.0 ) || ( maxMass < 0.0 ) ) { throw ( new IllegalArgumentException ( "The minimum and maximum mass values must be >=0" ) ) ; } if ( ( minMass > maxMass ) ) { throw ( new IllegalArgumentException ( "Minimum mass must be <= maximum mass" ) ) ; } if ( ( mfRange == null ) || ( mfRange . getIsotopeCount ( ... |
public class CommerceShipmentUtil { /** * Returns the last commerce shipment in the ordered set where groupId = & # 63 ; and status = & # 63 ; .
* @ param groupId the group ID
* @ param status the status
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ r... | return getPersistence ( ) . fetchByG_S_Last ( groupId , status , orderByComparator ) ; |
public class FileSystem { /** * Opens an FSDataOutputStream at the indicated Path with write - progress
* reporting . Same as create ( ) , except fails if parent directory doesn ' t
* already exist .
* @ param f the file name to open
* @ param permission
* @ param overwrite if a file with this name already ex... | throw new IOException ( "createNonRecursive unsupported for this filesystem" + this . getClass ( ) ) ; |
public class HttpPostBindingUtil { /** * Converts an { @ link AggregatedHttpMessage } which is received from the remote entity to
* a { @ link SAMLObject } . */
static < T extends SAMLObject > MessageContext < T > toSamlObject ( AggregatedHttpMessage msg , String name ) { } } | final SamlParameters parameters = new SamlParameters ( msg ) ; final byte [ ] decoded ; try { decoded = Base64 . getMimeDecoder ( ) . decode ( parameters . getFirstValue ( name ) ) ; } catch ( IllegalArgumentException e ) { throw new SamlException ( "failed to decode a base64 string of the parameter: " + name , e ) ; }... |
public class HierarchyGroupMarshaller { /** * Marshall the given parameter object . */
public void marshall ( HierarchyGroup hierarchyGroup , ProtocolMarshaller protocolMarshaller ) { } } | if ( hierarchyGroup == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( hierarchyGroup . getId ( ) , ID_BINDING ) ; protocolMarshaller . marshall ( hierarchyGroup . getArn ( ) , ARN_BINDING ) ; protocolMarshaller . marshall ( hierarchyGroup .... |
public class Kernel1D_F64 { /** * Creates a kernel whose elements are the specified data array and has
* the specified width .
* @ param data The array who will be the kernel ' s data . Reference is saved .
* @ param width The kernel ' s width .
* @ param offset Location of the origin in the array
* @ return ... | Kernel1D_F64 ret = new Kernel1D_F64 ( ) ; ret . data = data ; ret . width = width ; ret . offset = offset ; return ret ; |
public class GenerationUtils { /** * Order Id for a initial request should be unique per client ID . This method generates a unique
* order Id using the Java UUID class and then convert it to base64 to shorten the length to 22
* characters . Order Id for a subsequent request ( void , rebate , settle ect . ) should ... | UUID uuid = UUID . randomUUID ( ) ; ByteBuffer bb = ByteBuffer . wrap ( new byte [ 16 ] ) ; bb . putLong ( uuid . getMostSignificantBits ( ) ) ; bb . putLong ( uuid . getLeastSignificantBits ( ) ) ; return Base64 . encodeBase64URLSafeString ( bb . array ( ) ) ; |
public class DualCache { /** * Delete the corresponding object in cache .
* @ param key is the key of the object . */
public void delete ( String key ) { } } | if ( ! ramMode . equals ( DualCacheRamMode . DISABLE ) ) { ramCacheLru . remove ( key ) ; } if ( ! diskMode . equals ( DualCacheDiskMode . DISABLE ) ) { try { dualCacheLock . lockDiskEntryWrite ( key ) ; diskLruCache . remove ( key ) ; } catch ( IOException e ) { logger . logError ( e ) ; } finally { dualCacheLock . un... |
public class AzkabanJobHelper { /** * Replace project on Azkaban based on Azkaban config . This includes preparing the zip file and uploading it to
* Azkaban , setting permissions and schedule .
* @ param sessionId Session Id .
* @ param azkabanProjectId Project Id .
* @ param azkabanProjectConfig Azkaban Proje... | log . info ( "Replacing zip for Azkaban project: " + azkabanProjectConfig . getAzkabanProjectName ( ) ) ; // Create zip file
String zipFilePath = createAzkabanJobZip ( azkabanProjectConfig ) ; log . info ( "Zip file path: " + zipFilePath ) ; // Replace the zip file on Azkaban
String projectId = AzkabanAjaxAPIClient . r... |
public class MessageStoreUtils { /** * Build all items of the collection containing builders . The list must not
* contain any null items .
* @ param builders List of builders .
* @ param < M > The message type .
* @ param < F > The field type .
* @ param < B > The builder type .
* @ return List of messages... | if ( builders == null ) { return null ; } return builders . stream ( ) . map ( PMessageBuilder :: build ) . collect ( Collectors . toList ( ) ) ; |
public class NodeUtil { /** * Creates a node representing a qualified name .
* @ param name A qualified name ( e . g . " foo " or " foo . bar . baz " )
* @ return A NAME or GETPROP node */
public static Node newQName ( AbstractCompiler compiler , String name ) { } } | int endPos = name . indexOf ( '.' ) ; if ( endPos == - 1 ) { return newName ( compiler , name ) ; } Node node ; String nodeName = name . substring ( 0 , endPos ) ; if ( "this" . equals ( nodeName ) ) { node = IR . thisNode ( ) ; } else if ( "super" . equals ( nodeName ) ) { node = IR . superNode ( ) ; } else { node = n... |
public class CompactingHashTable { /** * Size of all memory segments owned by the partitions of this hash table excluding the compaction partition
* @ return size in bytes */
private long getPartitionSize ( ) { } } | long numSegments = 0 ; for ( InMemoryPartition < T > p : this . partitions ) { numSegments += p . getBlockCount ( ) ; } return numSegments * this . segmentSize ; |
public class Maps { /** * Map转换为XML
* @ param params Map参数
* @ return XML字符串 */
public static String toXml ( final Map < String , String > params ) { } } | XmlWriters writers = XmlWriters . create ( ) ; for ( Map . Entry < String , String > param : params . entrySet ( ) ) { if ( ! Strings . isNullOrEmpty ( param . getValue ( ) ) ) { writers . element ( param . getKey ( ) , param . getValue ( ) ) ; } } return writers . build ( ) ; |
public class CmsSiteBean { /** * Creates a new site object based on the members . < p >
* @ return a new site object based on the members */
public CmsSite toCmsSite ( ) { } } | m_siteRoot = m_siteRoot . endsWith ( "/" ) ? m_siteRoot . substring ( 0 , m_siteRoot . length ( ) - 1 ) : m_siteRoot ; CmsSiteMatcher matcher = CmsStringUtil . isNotEmpty ( m_secureUrl ) ? new CmsSiteMatcher ( m_secureUrl ) : null ; CmsSite site = OpenCms . getSiteManager ( ) . getSiteForSiteRoot ( m_siteRoot ) ; CmsUU... |
public class MgmtRestModelMapper { /** * Converts the given repository { @ link ActionType } into a corresponding
* { @ link MgmtActionType } .
* @ param actionType
* the repository representation of the action type
* @ return < null > or the REST action type */
public static MgmtActionType convertActionType ( ... | if ( actionType == null ) { return null ; } switch ( actionType ) { case SOFT : return MgmtActionType . SOFT ; case FORCED : return MgmtActionType . FORCED ; case TIMEFORCED : return MgmtActionType . TIMEFORCED ; case DOWNLOAD_ONLY : return MgmtActionType . DOWNLOAD_ONLY ; default : throw new IllegalStateException ( "A... |
public class AbstractRoller { /** * ( non - Javadoc )
* @ see
* org . apache . log4j . appender . FileRollEventSource # fireFileRollEvent ( org . apache
* . log4j . appender . FileRollEvent ) */
public final void fireFileRollEvent ( final FileRollEvent fileRollEvent ) { } } | final Object [ ] listeners = this . fileRollEventListeners . toArray ( ) ; for ( int i = 0 ; i < listeners . length ; i ++ ) { final FileRollEventListener listener = ( FileRollEventListener ) listeners [ i ] ; listener . onFileRoll ( fileRollEvent ) ; } |
public class LocalDateTime { /** * Get the value of one of the fields of a datetime .
* This method gets the value of the specified field .
* For example :
* < pre >
* DateTime dt = new DateTime ( ) ;
* int year = dt . get ( DateTimeFieldType . year ( ) ) ;
* < / pre >
* @ param type a field type , usuall... | if ( type == null ) { throw new IllegalArgumentException ( "The DateTimeFieldType must not be null" ) ; } return type . getField ( getChronology ( ) ) . get ( getLocalMillis ( ) ) ; |
public class BeansDescriptorImpl { /** * If not already created , a new < code > decorators < / code > element with the given value will be created .
* Otherwise , the existing < code > decorators < / code > element will be returned .
* @ return a new or existing instance of < code > Decorators < BeansDescriptor > ... | Node node = model . getOrCreate ( "decorators" ) ; Decorators < BeansDescriptor > decorators = new DecoratorsImpl < BeansDescriptor > ( this , "decorators" , model , node ) ; return decorators ; |
public class Eval { /** * Converts the user source of a snippet into a Snippet list - - Snippet will
* have wrappers .
* @ param userSource the source of the snippet
* @ return usually a singleton list of Snippet , but may be empty or multiple */
List < Snippet > sourceToSnippetsWithWrappers ( String userSource )... | List < Snippet > snippets = sourceToSnippets ( userSource ) ; for ( Snippet snip : snippets ) { if ( snip . outerWrap ( ) == null ) { snip . setOuterWrap ( ( snip . kind ( ) == Kind . IMPORT ) ? state . outerMap . wrapImport ( snip . guts ( ) , snip ) : state . outerMap . wrapInTrialClass ( snip . guts ( ) ) ) ; } } re... |
public class IcsAbsSpinner { /** * The Adapter is used to provide the data which backs this Spinner .
* It also provides methods to transform spinner items based on their position
* relative to the selected item .
* @ param adapter The SpinnerAdapter to use for this Spinner */
@ Override public void setAdapter ( ... | if ( null != mAdapter ) { mAdapter . unregisterDataSetObserver ( mDataSetObserver ) ; resetList ( ) ; } mAdapter = adapter ; mOldSelectedPosition = INVALID_POSITION ; mOldSelectedRowId = INVALID_ROW_ID ; if ( mAdapter != null ) { mOldItemCount = mItemCount ; mItemCount = mAdapter . getCount ( ) ; checkFocus ( ) ; mData... |
public class PrivateKeyReader { /** * Read the private key from a pem file as base64 encoded { @ link String } value .
* @ param file
* the file ( in * . pem format ) that contains the private key
* @ return the base64 encoded { @ link String } value .
* @ throws IOException
* Signals that an I / O exception ... | final byte [ ] keyBytes = Files . readAllBytes ( file . toPath ( ) ) ; final String privateKeyPem = new String ( keyBytes ) ; String privateKeyAsBase64String = null ; if ( privateKeyPem . indexOf ( BEGIN_PRIVATE_KEY_PREFIX ) != - 1 ) { // PKCS # 8 format
privateKeyAsBase64String = new String ( keyBytes ) . replace ( BE... |
public class IDivOpAxis { /** * { @ inheritDoc } */
@ Override protected Type getReturnType ( final int mOp1 , final int mOp2 ) throws TTXPathException { } } | Type type1 ; Type type2 ; try { type1 = Type . getType ( mOp1 ) . getPrimitiveBaseType ( ) ; type2 = Type . getType ( mOp2 ) . getPrimitiveBaseType ( ) ; } catch ( final IllegalStateException e ) { throw new XPathError ( ErrorType . XPTY0004 ) ; } if ( type1 . isNumericType ( ) && type2 . isNumericType ( ) ) { return T... |
public class Fetch { /** * For PUT / POST . */
protected String perform ( String method , String request ) throws IOException { } } | HttpURLConnection connection = ( HttpURLConnection ) from . openConnection ( ) ; connection . setRequestMethod ( method ) ; connection . setDoOutput ( true ) ; if ( contentType == null ) contentType = "text/plain; charset=utf8" ; connection . setRequestProperty ( "Content-Type" , contentType ) ; try ( OutputStream urlO... |
public class ZipUtil { /** * Compresses the given entries into a new ZIP file .
* @ param entries
* ZIP entries added .
* @ param zip
* new ZIP file created . */
public static void pack ( ZipEntrySource [ ] entries , File zip ) { } } | if ( log . isDebugEnabled ( ) ) { log . debug ( "Creating '{}' from {}." , zip , Arrays . asList ( entries ) ) ; } OutputStream out = null ; try { out = new BufferedOutputStream ( new FileOutputStream ( zip ) ) ; pack ( entries , out , true ) ; } catch ( IOException e ) { throw ZipExceptionUtil . rethrow ( e ) ; } fina... |
public class ServiceQueue { /** * Gets session access token .
* @ return Session access token . */
protected String getToken ( ) { } } | return dataMgr . getSessionDAO ( ) . session ( ) != null ? dataMgr . getSessionDAO ( ) . session ( ) . getAccessToken ( ) : null ; |
public class EmbeddedProcessFactory { /** * Create an embedded standalone server with an already established module loader .
* @ param moduleLoader the module loader . Cannot be { @ code null }
* @ param jbossHomeDir the location of the root of server installation . Cannot be { @ code null } or empty .
* @ param ... | return createStandaloneServer ( Configuration . Builder . of ( jbossHomeDir ) . setCommandArguments ( cmdargs ) . setModuleLoader ( moduleLoader ) . build ( ) ) ; |
public class BundledTileSetRepository { /** * documentation inherited from interface */
public int getTileSetId ( String setName ) throws NoSuchTileSetException , PersistenceException { } } | waitForBundles ( ) ; Integer tsid = _namemap . get ( setName ) ; if ( tsid != null ) { return tsid . intValue ( ) ; } throw new NoSuchTileSetException ( setName ) ; |
public class ntp_server { /** * < pre >
* Converts API response of bulk operation into object and returns the object array in case of get request .
* < / pre > */
protected base_resource [ ] get_nitro_bulk_response ( nitro_service service , String response ) throws Exception { } } | ntp_server_responses result = ( ntp_server_responses ) service . get_payload_formatter ( ) . string_to_resource ( ntp_server_responses . class , response ) ; if ( result . errorcode != 0 ) { if ( result . errorcode == SESSION_NOT_EXISTS ) service . clear_session ( ) ; throw new nitro_exception ( result . message , resu... |
public class QuadTreeImpl { /** * Inserts the element and bounding _ box into the Quad _ tree _ impl .
* Note that this will invalidate any active iterator on the Quad _ tree _ impl .
* Returns an Element _ handle corresponding to the element and bounding _ box .
* \ param element The element of the Geometry to b... | if ( m_root == - 1 ) create_root_ ( ) ; if ( m_b_store_duplicates ) { int success = insert_duplicates_ ( element , bounding_box , 0 , m_extent , m_root , false , - 1 ) ; if ( success != - 1 ) { if ( m_data_extent . isEmpty ( ) ) m_data_extent . setCoords ( bounding_box ) ; else m_data_extent . merge ( bounding_box ) ; ... |
public class CommerceTierPriceEntryUtil { /** * Returns the commerce tier price entry where companyId = & # 63 ; and externalReferenceCode = & # 63 ; or returns < code > null < / code > if it could not be found , optionally using the finder cache .
* @ param companyId the company ID
* @ param externalReferenceCode ... | return getPersistence ( ) . fetchByC_ERC ( companyId , externalReferenceCode , retrieveFromCache ) ; |
public class Covers { /** * Returns an iterator for the sequences of a transition cover . Sequences are computed lazily ( i . e . as requested by
* the iterators { @ link Iterator # next ( ) next } method .
* @ param automaton
* the automaton for which the cover should be computed
* @ param inputs
* the set o... | return new TransitionCoverIterator < > ( automaton , inputs ) ; |
public class PauseableComponentControllerImpl { /** * ( non - Javadoc )
* @ see com . ibm . ws . kernel . launch . service . PauseableComponentController # pause ( java . lang . String ) */
@ Override public void pause ( String targets ) throws PauseableComponentControllerRequestFailedException { } } | Tr . info ( tc , "info.server.pause.request.received" , targets ) ; Set < String > foundTargets = new HashSet < String > ( ) ; Set < String > targetList = createTargetList ( targets ) ; if ( targetList . isEmpty ( ) ) { Tr . warning ( tc , "warning.server.pause.invalid.targets" ) ; throw new PauseableComponentControlle... |
public class ScriptContextEngineView { /** * Put the bindings into the ENGINE _ SCOPE of the context .
* @ param t Mappings to be stored in this map .
* @ throws UnsupportedOperationException if the < tt > putAll < / tt > method is not
* supported by this map .
* @ throws ClassCastException if the class of a ke... | context . getBindings ( ENGINE_SCOPE ) . putAll ( t ) ; |
public class KeyVaultClientBaseImpl { /** * Retrieves a list of individual key versions with the same key name .
* The full key identifier , attributes , and tags are provided in the response . This operation requires the keys / list permission .
* @ param nextPageLink The NextLink from the previous successful call... | return getKeyVersionsNextSinglePageAsync ( nextPageLink ) . concatMap ( new Func1 < ServiceResponse < Page < KeyItem > > , Observable < ServiceResponse < Page < KeyItem > > > > ( ) { @ Override public Observable < ServiceResponse < Page < KeyItem > > > call ( ServiceResponse < Page < KeyItem > > page ) { String nextPag... |
public class GroupImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } } | switch ( featureID ) { case XtextPackage . GROUP__GUARD_CONDITION : return getGuardCondition ( ) ; } return super . eGet ( featureID , resolve , coreType ) ; |
public class JarWriter { /** * Writes an entry . The { @ code inputStream } is closed once the entry has been written
* @ param entryName the name of the entry
* @ param inputStream the stream from which the entry ' s data can be read
* @ throws IOException if the write fails */
@ Override public void writeEntry ... | JarArchiveEntry entry = new JarArchiveEntry ( entryName ) ; writeEntry ( entry , new InputStreamEntryWriter ( inputStream , true ) ) ; |
public class FP64 { /** * Extends this fingerprint by the bytes
* < code > bytes [ offset ] . . bytes [ offset + length - 1 ] < / code > .
* @ return
* the resulting fingerprint . */
public FP64 extend ( byte [ ] bytes , int start , int len ) { } } | int end = start + len ; for ( int i = start ; i < end ; i ++ ) { extend ( bytes [ i ] ) ; } return this ; |
public class GrammaticalRelation { /** * Returns < code > true < / code > iff the value of < code > Tree < / code >
* node < code > t < / code > matches the < code > sourcePattern < / code > for
* this < code > GrammaticalRelation < / code > , indicating that this
* < code > GrammaticalRelation < / code > is one ... | // System . err . println ( " Testing whether " + sourcePattern + " matches " + ( ( TreeGraphNode ) t ) . toOneLineString ( ) ) ;
return ( sourcePattern != null ) && ( t . value ( ) != null ) && sourcePattern . matcher ( t . value ( ) ) . matches ( ) ; |
public class CpcSketch { /** * Present the given String as a potential unique item .
* The string is converted to a byte array using UTF8 encoding .
* If the string is null or empty no update attempt is made and the method returns .
* < p > Note : About 2X faster performance can be obtained by first converting th... | if ( ( datum == null ) || datum . isEmpty ( ) ) { return ; } final byte [ ] data = datum . getBytes ( UTF_8 ) ; final long [ ] arr = hash ( data , seed ) ; hashUpdate ( arr [ 0 ] , arr [ 1 ] ) ; |
public class BigDecimalUtil { /** * Calculate the weight of the constituent and add it to the running weighted value .
* runningWeightedVal + valueToAdd * weightForValueToAdd / totalWeight
* @ param runningWeightedVal
* @ param valueToAdd
* @ param weightForValueToAdd
* @ param totalWeight
* @ return */
pub... | return BigDecimalUtil . doAdd ( runningWeightedVal , BigDecimalUtil . divide ( BigDecimalUtil . multiply ( valueToAdd , BigDecimalUtil . abs ( weightForValueToAdd ) ) , BigDecimalUtil . abs ( totalWeight ) , BigDecimal . ROUND_HALF_UP ) ) ; |
public class InternalXbaseParser { /** * InternalXbase . g : 2317:1 : ruleXSetLiteral returns [ EObject current = null ] : ( ( ) otherlv _ 1 = ' # ' otherlv _ 2 = ' { ' ( ( ( lv _ elements _ 3_0 = ruleXExpression ) ) ( otherlv _ 4 = ' , ' ( ( lv _ elements _ 5_0 = ruleXExpression ) ) ) * ) ? otherlv _ 6 = ' } ' ) ; */
... | EObject current = null ; Token otherlv_1 = null ; Token otherlv_2 = null ; Token otherlv_4 = null ; Token otherlv_6 = null ; EObject lv_elements_3_0 = null ; EObject lv_elements_5_0 = null ; enterRule ( ) ; try { // InternalXbase . g : 2323:2 : ( ( ( ) otherlv _ 1 = ' # ' otherlv _ 2 = ' { ' ( ( ( lv _ elements _ 3_0 =... |
public class GeometryColumnsSfSqlDao { /** * { @ inheritDoc }
* Update using the complex key */
@ Override public int update ( GeometryColumnsSfSql geometryColumns ) throws SQLException { } } | UpdateBuilder < GeometryColumnsSfSql , TableColumnKey > ub = updateBuilder ( ) ; ub . updateColumnValue ( GeometryColumnsSfSql . COLUMN_GEOMETRY_TYPE , geometryColumns . getGeometryTypeCode ( ) ) ; ub . updateColumnValue ( GeometryColumnsSfSql . COLUMN_COORD_DIMENSION , geometryColumns . getCoordDimension ( ) ) ; ub . ... |
public class PropertiesManagerCore { /** * Add a property value to all GeoPackages
* @ param property
* property name
* @ param value
* value
* @ return number of GeoPackages added to */
public int addValue ( String property , String value ) { } } | int count = 0 ; for ( String geoPackage : propertiesMap . keySet ( ) ) { if ( addValue ( geoPackage , property , value ) ) { count ++ ; } } return count ; |
public class PutNotificationConfigurationRequest { /** * The type of event that causes the notification to be sent . For more information about notification types
* supported by Amazon EC2 Auto Scaling , see < a > DescribeAutoScalingNotificationTypes < / a > .
* < b > NOTE : < / b > This method appends the values t... | if ( this . notificationTypes == null ) { setNotificationTypes ( new com . amazonaws . internal . SdkInternalList < String > ( notificationTypes . length ) ) ; } for ( String ele : notificationTypes ) { this . notificationTypes . add ( ele ) ; } return this ; |
public class BeanHelperCache { /** * Creates a BeanHelper and writes an interface containing its instance . Also , recursively creates
* any BeanHelpers on its constrained properties . */
BeanHelper createHelper ( final JClassType pjtype , final TreeLogger plogger , final GeneratorContext pcontext ) throws UnableToCo... | final JClassType erasedType = pjtype . getErasedType ( ) ; try { final Class < ? > clazz = Class . forName ( erasedType . getQualifiedBinaryName ( ) ) ; return doCreateHelper ( clazz , erasedType , plogger , pcontext ) ; } catch ( final ClassNotFoundException e ) { plogger . log ( TreeLogger . ERROR , "Unable to create... |
public class ManagedClustersInner { /** * Creates or updates a managed cluster .
* Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version .
* @ param resourceGroupName The name of the resource group .
* @ param resourceName The name of the managed cluster resource ... | return beginCreateOrUpdateWithServiceResponseAsync ( resourceGroupName , resourceName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class BooleanValueData { /** * { @ inheritDoc } */
protected boolean internalEquals ( ValueData another ) { } } | if ( another instanceof BooleanValueData ) { return ( ( BooleanValueData ) another ) . value == value ; } return false ; |
public class ClassScanner { /** * 使用指定ClassLoader获取一个ClassScanner实例
* @ param classLoader 用于加载查找到的class的ClassLoader
* @ return ClassScanner实例 */
public static ClassScanner getInstance ( ClassLoader classLoader ) { } } | ClassScanner scanner = classScannerMap . putIfAbsent ( classLoader , new ClassScanner ( ) ) ; if ( scanner == null ) { scanner = classScannerMap . get ( classLoader ) ; scanner . classLoader = classLoader ; } else { LOGGER . info ( "当前ClassLoader [{}] 对应的ClassScanner已存在,直接返回当前已存在的并且忽略设置ClassLoader" , classLoader ) ; } ... |
public class XmlGraphMLWriter { /** * Creates an instance of the select { @ link GraphMLDecorator } .
* @ param result The rule result .
* @ return The { @ link GraphMLDecorator } . */
private GraphMLDecorator getGraphMLDecorator ( Result < ? > result ) { } } | String graphMLDecorator = result . getRule ( ) . getReport ( ) . getProperties ( ) . getProperty ( GRAPHML_DECORATOR ) ; Class < ? extends GraphMLDecorator > decoratorClass ; if ( graphMLDecorator != null ) { decoratorClass = classHelper . getType ( graphMLDecorator ) ; } else { decoratorClass = defaultDecoratorClass ;... |
public class DeleteUserAttributesRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteUserAttributesRequest deleteUserAttributesRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteUserAttributesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteUserAttributesRequest . getUserAttributeNames ( ) , USERATTRIBUTENAMES_BINDING ) ; protocolMarshaller . marshall ( deleteUserAttributesRequest . getAcc... |
public class br_broker { /** * Use this operation to stop Unified Repeater Instance . */
public static br_broker stop ( nitro_service client , br_broker resource ) throws Exception { } } | return ( ( br_broker [ ] ) resource . perform_operation ( client , "stop" ) ) [ 0 ] ; |
public class InstanceValidator { /** * The actual base entry point */
private void validateResource ( List < ValidationMessage > errors , WrapperElement resource , WrapperElement element , StructureDefinition profile , IdStatus idstatus , NodeStack stack ) throws FHIRException { } } | if ( stack == null ) stack = new NodeStack ( element . isXml ( ) ) ; if ( resource == null ) resource = element ; // getting going - either we got a profile , or not .
boolean ok = true ; if ( element . isXml ( ) ) { ok = rule ( errors , IssueType . INVALID , element . line ( ) , element . col ( ) , "/" , element . get... |
public class ColumnCardinalityCache { /** * Gets the cardinality for each { @ link AccumuloColumnConstraint } .
* Given constraints are expected to be indexed ! Who knows what would happen if they weren ' t !
* @ param schema Schema name
* @ param table Table name
* @ param auths Scan authorizations
* @ param... | // Submit tasks to the executor to fetch column cardinality , adding it to the Guava cache if necessary
CompletionService < Pair < Long , AccumuloColumnConstraint > > executor = new ExecutorCompletionService < > ( executorService ) ; idxConstraintRangePairs . asMap ( ) . forEach ( ( key , value ) -> executor . submit (... |
public class LogTemplates { /** * Produces a log template which logs something when stopwatch split is longer than threshold .
* @ param delegateLogger Concrete log template
* @ param threshold Threshold ( in milliseconds ) , above which logging is enabled
* @ return Logger */
public static SplitThresholdLogTempl... | return whenSplitLongerThanNanoseconds ( delegateLogger , threshold * SimonClock . NANOS_IN_MILLIS ) ; |
public class CommerceAccountPersistenceImpl { /** * Removes all the commerce accounts where userId = & # 63 ; and type = & # 63 ; from the database .
* @ param userId the user ID
* @ param type the type */
@ Override public void removeByU_T ( long userId , int type ) { } } | for ( CommerceAccount commerceAccount : findByU_T ( userId , type , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceAccount ) ; } |
public class AbstractKeyedOutputHandler { /** * Reads query result and converts it into Map of Bean / Map
* Values from column , index / name of which was specified via Constructor , would be used as key
* @ param outputList Query output
* @ return Map of Bean / Map
* @ throws org . midao . jdbc . core . except... | QueryParameters params = null ; Map < K , V > result = new HashMap < K , V > ( ) ; for ( int i = 1 ; i < outputList . size ( ) ; i ++ ) { params = outputList . get ( i ) ; result . put ( this . createKey ( params ) , ( V ) this . createRow ( params ) ) ; } return result ; |
public class ParserDQL { /** * < boolean predicand > : = = this | < parenthesized boolean value expression > */
Expression XreadSimpleValueExpressionPrimary ( ) { } } | Expression e ; e = XreadUnsignedValueSpecificationOrNull ( ) ; if ( e != null ) { return e ; } switch ( token . tokenType ) { case Tokens . OPENBRACKET : int position = getPosition ( ) ; read ( ) ; int subqueryPosition = getPosition ( ) ; readOpenBrackets ( ) ; switch ( token . tokenType ) { case Tokens . TABLE : case ... |
public class Category { /** * Check whether this category is enabled for the { @ code DEBUG } Level .
* This function is intended to lessen the computational cost of disabled log debug statements .
* For some { @ code cat } Category object , when you write ,
* < pre >
* cat . debug ( " This is entry number : " ... | return MINIMUM_LEVEL_COVERS_DEBUG && provider . isEnabled ( STACKTRACE_DEPTH , null , org . tinylog . Level . DEBUG ) ; |
public class TreeReaderRegistry { /** * - - - FACTORY FINDER METHOD - - - */
private static final TreeReader getReader ( String format , boolean throwException ) { } } | TreeReader reader ; if ( format == null ) { reader = cachedJsonReader ; } else { String key = format . toLowerCase ( ) ; if ( JSON . equals ( key ) ) { reader = cachedJsonReader ; } else { reader = readers . get ( key ) ; } } if ( reader != null ) { return reader ; } // Search reader class by system property :
// - Dda... |
public class Message { /** * Sets the message payload data .
* @ param data the payload data */
public void setData ( byte [ ] data ) { } } | if ( immutable ) { throw new IllegalStateException ( ERR_MSG_IMMUTABLE ) ; } if ( data == null ) { this . data = null ; } else { setData ( data , 0 , data . length ) ; } |
public class RunnerManager { /** * Retrieves the most adequate { @ link JobRunner } for a given { @ link JobInstance } . Throws { @ link JqmRuntimeException } if none was found .
* @ param ji
* @ return */
JobRunner getRunner ( JobInstance ji ) { } } | if ( runnerCache . containsKey ( ji . getJdId ( ) ) ) { return runnerCache . get ( ji . getJdId ( ) ) ; } for ( JobRunner runner : runners ) { if ( runner . canRun ( ji ) ) { runnerCache . put ( ji . getJdId ( ) , runner ) ; return runner ; } } throw new JqmRuntimeException ( "there is no runner able to run job definit... |
public class ServletUtils { /** * Returns a mutex object for the given { @ link HttpSession } that can be used
* as a lock for a given session . For example , to synchronize lazy
* initialization of session scoped objects .
* < p > The semantics for locking on an HttpSession object are unspecified , and
* servl... | assert httpSession != null : "HttpSession must not be null" ; assert attributeName != null : "The attribute name must not be null" ; Object mutex = httpSession . getAttribute ( attributeName ) ; if ( mutex == null ) mutex = httpSession ; assert mutex != null ; if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "Using sessio... |
public class Util { /** * Validate that a method returns no value .
* @ param method the method to be tested
* @ param errors a list to place the errors */
@ SuppressWarnings ( { } } | "ThrowableInstanceNeverThrown" } ) public static void validateVoid ( Method method , List < Throwable > errors ) { if ( method . getReturnType ( ) != Void . TYPE ) { errors . add ( new Exception ( "Method " + method . getName ( ) + "() should be void" ) ) ; } |
public class ThreadLocalRandom { /** * Returns a pseudorandom , uniformly distributed value between the
* given least value ( inclusive ) and bound ( exclusive ) .
* @ param least the least value returned
* @ param bound the upper bound ( exclusive )
* @ return the next value
* @ throws IllegalArgumentExcepti... | if ( least >= bound ) { throw new IllegalArgumentException ( ) ; } return nextDouble ( ) * ( bound - least ) + least ; |
public class COP { /** * Process a single relation .
* @ param relation Relation to process
* @ return Outlier detection result */
public OutlierResult run ( Relation < V > relation ) { } } | final DBIDs ids = relation . getDBIDs ( ) ; KNNQuery < V > knnQuery = QueryUtil . getKNNQuery ( relation , getDistanceFunction ( ) , k + 1 ) ; final int dim = RelationUtil . dimensionality ( relation ) ; if ( k <= dim + 1 ) { LOG . warning ( "PCA is underspecified with a too low k! k should be at much larger than " + d... |
public class JFrmMainFrame { /** * GEN - END : initComponents */
private void jTree1ValueChanged ( javax . swing . event . TreeSelectionEvent evt ) // GEN - FIRST : event _ jTree1ValueChanged
{ } } | // GEN - HEADEREND : event _ jTree1ValueChanged
javax . swing . tree . TreePath tp = evt . getPath ( ) ; if ( tp != null ) { Object o = tp . getLastPathComponent ( ) ; if ( o instanceof PropertySheetModel ) { PropertySheetModel p = ( PropertySheetModel ) o ; PropertySheetView pv = ( PropertySheetView ) hmPropertySheets... |
public class ApiOvhDedicatedserver { /** * Add a new email alert
* REST : POST / dedicated / server / { serviceName } / serviceMonitoring / { monitoringId } / alert / email
* @ param language [ required ] Alert language
* @ param email [ required ] Alert destination
* @ param serviceName [ required ] The intern... | String qPath = "/dedicated/server/{serviceName}/serviceMonitoring/{monitoringId}/alert/email" ; StringBuilder sb = path ( qPath , serviceName , monitoringId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "email" , email ) ; addBody ( o , "language" , language ) ; String resp = e... |
public class Keyed { /** * Remove this Keyed object , and all subparts . */
public final Futures remove ( Futures fs ) { } } | if ( _key != null ) DKV . remove ( _key , fs ) ; return remove_impl ( fs ) ; |
public class TagletWriter { /** * Given an inline tag , return its output .
* @ param holder
* @ param tagletManager The taglet manager for the current doclet .
* @ param holderTag The tag this holds this inline tag . Null if there
* is no tag that holds it .
* @ param inlineTag The inline tag to be documente... | List < Taglet > definedTags = tagletManager . getInlineCustomTaglets ( ) ; CommentHelper ch = tagletWriter . configuration ( ) . utils . getCommentHelper ( holder ) ; final String inlineTagName = ch . getTagName ( inlineTag ) ; // This is a custom inline tag .
for ( Taglet definedTag : definedTags ) { if ( ( definedTag... |
public class ListManagementTermListsImpl { /** * gets all the Term Lists .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the List & lt ; TermList & gt ; object */
public Observable < ServiceResponse < List < TermList > > > getAllTermListsWithServiceRespons... | if ( this . client . baseUrl ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.baseUrl() is required and cannot be null." ) ; } String parameterizedHost = Joiner . on ( ", " ) . join ( "{baseUrl}" , this . client . baseUrl ( ) ) ; return service . getAllTermLists ( this . client . acceptLangua... |
public class IEEE754rUtil { /** * Gets the minimum of two < code > float < / code > values .
* NaN is only returned if all numbers are NaN as per IEEE - 754r .
* @ param a
* value 1
* @ param b
* value 2
* @ return the smallest of the values */
public static float min ( final float a , final float b ) { } } | if ( Float . isNaN ( a ) ) { return b ; } else if ( Float . isNaN ( b ) ) { return a ; } else { return Math . min ( a , b ) ; } |
public class ZipkinManager { /** * Retrieves a newly generated random long .
* @ return A newly generated random long */
public static long getRandomLong ( ) { } } | byte [ ] rndBytes = new byte [ 8 ] ; SECURE_RANDOM_TL . get ( ) . nextBytes ( rndBytes ) ; return ByteBuffer . wrap ( rndBytes ) . getLong ( ) ; |
public class EitherT { /** * { @ inheritDoc } */
@ Override public < R2 > EitherT < M , L , R2 > pure ( R2 r2 ) { } } | return eitherT ( melr . pure ( right ( r2 ) ) ) ; |
public class FontFactoryImp { /** * Constructs a < CODE > Font < / CODE > - object .
* @ paramfontname the name of the font
* @ paramencoding the encoding of the font
* @ param embedded true if the font is to be embedded in the PDF
* @ paramsize the size of this font
* @ paramstyle the style of this font
* ... | return getFont ( fontname , encoding , embedded , size , style , color , true ) ; |
public class CreateDataSourceFromRDSRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CreateDataSourceFromRDSRequest createDataSourceFromRDSRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( createDataSourceFromRDSRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createDataSourceFromRDSRequest . getDataSourceId ( ) , DATASOURCEID_BINDING ) ; protocolMarshaller . marshall ( createDataSourceFromRDSRequest . getDataSo... |
public class PackageWriterImpl { /** * { @ inheritDoc } */
@ Override public void addPackageDescription ( Content packageContentTree ) { } } | if ( ! utils . getBody ( packageElement ) . isEmpty ( ) ) { Content tree = configuration . allowTag ( HtmlTag . SECTION ) ? sectionTree : packageContentTree ; addDeprecationInfo ( tree ) ; addInlineComment ( packageElement , tree ) ; } |
public class DescribeAutoScalingGroupsRequest { /** * The names of the Auto Scaling groups . Each name can be a maximum of 1600 characters . By default , you can only
* specify up to 50 names . You can optionally increase this limit using the < code > MaxRecords < / code > parameter .
* If you omit this parameter ,... | if ( this . autoScalingGroupNames == null ) { setAutoScalingGroupNames ( new com . amazonaws . internal . SdkInternalList < String > ( autoScalingGroupNames . length ) ) ; } for ( String ele : autoScalingGroupNames ) { this . autoScalingGroupNames . add ( ele ) ; } return this ; |
public class AtomicInitializer { /** * Returns the object managed by this initializer . The object is created if
* it is not available yet and stored internally . This method always returns
* the same object .
* @ return the object created by this { @ code AtomicInitializer }
* @ throws ConcurrentException if a... | T result = reference . get ( ) ; if ( result == null ) { result = initialize ( ) ; if ( ! reference . compareAndSet ( null , result ) ) { // another thread has initialized the reference
result = reference . get ( ) ; } } return result ; |
public class RepositoryQueryManager { /** * Obtain the query engine , which is created lazily and in a thread - safe manner .
* @ return the query engine ; never null */
protected final QueryEngine queryEngine ( ) { } } | if ( queryEngine == null ) { try { engineInitLock . lock ( ) ; if ( queryEngine == null ) { QueryEngineBuilder builder = null ; if ( ! repoConfig . getIndexProviders ( ) . isEmpty ( ) ) { // There is at least one index provider . . .
builder = IndexQueryEngine . builder ( ) ; logger . debug ( "Queries with indexes are ... |
public class ExtendedIdentifiers { /** * Creates an Extended Identifier .
* @ param namespaceUri
* URI of the namespace of the inner XML of the Extended Identifier
* @ param namespacePrefix
* prefix of the namespace of the inner XML of the Extended Identifier
* @ param identifierName
* the name value of the... | Document doc = mDocumentBuilder . newDocument ( ) ; Element e = doc . createElementNS ( namespaceUri , namespacePrefix + ":" + identifierName ) ; if ( attributeValue != null ) { e . setAttribute ( "name" , attributeValue ) ; } e . setAttribute ( "administrative-domain" , administrativeDomain ) ; doc . appendChild ( e )... |
public class SloppyMath { /** * max ( ) that works on three integers . Like many of the other max ( ) functions in this class ,
* doesn ' t perform special checks like NaN or - 0.0f to save time .
* @ return The maximum of three int values . */
public static int max ( int a , int b , int c ) { } } | int ma ; ma = a ; if ( b > ma ) { ma = b ; } if ( c > ma ) { ma = c ; } return ma ; |
public class Main { /** * This function sets all odd bits of a number to 1.
* @ param num : Integer input for which all odd bits are to be set .
* @ return Modified number with all odd bits set .
* Example Usage :
* > > > set _ odd _ bits ( 10)
* 15
* > > > set _ odd _ bits ( 20)
* 21
* > > > set _ odd ... | int bitsCount = 0 ; int result = 0 ; int tempNum = num ; while ( tempNum > 0 ) { if ( ( bitsCount % 2 ) == 0 ) { result |= ( 1 << bitsCount ) ; } tempNum >>= 1 ; bitsCount += 1 ; } return ( num | result ) ; |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link BigInteger }
* { @ code > } */
@ XmlElementDecl ( namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/" , name = "maxItems" , scope = GetRenditions . class ) public JAXBElement < BigInteger > createGetRe... | return new JAXBElement < BigInteger > ( _GetTypeChildrenMaxItems_QNAME , BigInteger . class , GetRenditions . class , value ) ; |
public class ImgUtil { /** * 图像切割 ( 按指定起点坐标和宽高切割 )
* @ param srcImgFile 源图像文件
* @ param destImgFile 切片后的图像文件
* @ param rectangle 矩形对象 , 表示矩形区域的x , y , width , height
* @ since 3.1.0 */
public static void cut ( File srcImgFile , File destImgFile , Rectangle rectangle ) { } } | cut ( read ( srcImgFile ) , destImgFile , rectangle ) ; |
public class DatastreamFilenameHelper { /** * Get a filename extension for a datastream based on mime - type to extension mapping .
* mappingType may be :
* < li > never : never look up extension
* < li > ifmissing : if the given filename already contains an extension return nothing ,
* otherwise look up an ext... | String extension = "" ; if ( mappingType . equals ( "never" ) ) { extension = "" ; } else { // if mapping specifies ifmissing and filename contains an extension ; extension is " " ( filename already contains the extension )
if ( mappingType . equals ( "ifmissing" ) && filename . contains ( "." ) ) { extension = "" ; } ... |
public class CodedInput { /** * Reads and discards { @ code size } bytes .
* @ throws ProtobufException The end of the stream or the current
* limit was reached . */
public void skipRawBytes ( final int size ) throws IOException { } } | if ( size < 0 ) { throw ProtobufException . negativeSize ( ) ; } if ( totalBytesRetired + bufferPos + size > currentLimit ) { // Read to the end of the stream anyway .
skipRawBytes ( currentLimit - totalBytesRetired - bufferPos ) ; // Then fail .
throw ProtobufException . truncatedMessage ( ) ; } if ( size <= bufferSiz... |
public class ShardMarshaller { /** * Marshall the given parameter object . */
public void marshall ( Shard shard , ProtocolMarshaller protocolMarshaller ) { } } | if ( shard == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( shard . getShardId ( ) , SHARDID_BINDING ) ; protocolMarshaller . marshall ( shard . getSequenceNumberRange ( ) , SEQUENCENUMBERRANGE_BINDING ) ; protocolMarshaller . marshall ( s... |
public class BsDataConfig { @ Override protected String doBuildColumnString ( String dm ) { } } | StringBuilder sb = new StringBuilder ( ) ; sb . append ( dm ) . append ( available ) ; sb . append ( dm ) . append ( boost ) ; sb . append ( dm ) . append ( createdBy ) ; sb . append ( dm ) . append ( createdTime ) ; sb . append ( dm ) . append ( description ) ; sb . append ( dm ) . append ( handlerName ) ; sb . append... |
public class AnyValueMap { /** * Converts map element into an AnyValue or returns an empty AnyValue if
* conversion is not possible .
* @ param key a key of element to get .
* @ return AnyValue value of the element or empty AnyValue if conversion is not
* supported .
* @ see AnyValue
* @ see AnyValue # AnyV... | Object value = getAsObject ( key ) ; return new AnyValue ( value ) ; |
public class GithubPagesPublisher { private void gitCommand ( Path temporaryDir , String ... command ) throws Exception { } } | // remove sensitive credentials from command before printing to console
String displayedCommand = String . join ( " " , command ) . replaceAll ( getRemoteUrl ( ) , getDisplayedRemoteUrl ( ) ) ; Clog . d ( "Github Pages GIT: {}" , displayedCommand ) ; // but pass directly to system shell to execute
execGitCommand ( temp... |
public class AbstractGenericHandler { /** * Helper method to complete the request span , called from child instances .
* @ param request the corresponding request . */
protected void completeRequestSpan ( final CouchbaseRequest request ) { } } | if ( request != null && request . span ( ) != null ) { if ( env ( ) . operationTracingEnabled ( ) ) { env ( ) . tracer ( ) . scopeManager ( ) . activate ( request . span ( ) , true ) . close ( ) ; } } |
public class StringUtil { /** * / * - - - - - [ Literal ] - - - - - */
public static String toLiteral ( char ch , boolean useRaw ) { } } | if ( ch == '\'' ) return "\\'" ; else if ( ch == '"' ) return "\"" ; else return StringUtil . toLiteral ( String . valueOf ( ch ) , useRaw ) ; |
public class RebalanceUtils { /** * Confirms that both clusters have the same number of total partitions .
* @ param lhs
* @ param rhs */
public static void validateClusterPartitionCounts ( final Cluster lhs , final Cluster rhs ) { } } | if ( lhs . getNumberOfPartitions ( ) != rhs . getNumberOfPartitions ( ) ) throw new VoldemortException ( "Total number of partitions should be equal [ lhs cluster (" + lhs . getNumberOfPartitions ( ) + ") not equal to rhs cluster (" + rhs . getNumberOfPartitions ( ) + ") ]" ) ; |
public class DefaultComponentManagerManager { /** * Create a new { @ link ComponentManager } for the provided id .
* @ param namespace the identifier of the component manager
* @ return a new { @ link ComponentManager } instance */
private ComponentManager createComponentManager ( String namespace ) { } } | String prefix = NamespaceUtils . getPrefix ( namespace ) ; ComponentManagerFactory componentManagerFactory ; try { componentManagerFactory = this . rootComponentManager . getInstance ( ComponentManagerFactory . class , prefix ) ; } catch ( ComponentLookupException e ) { componentManagerFactory = this . defaultComponent... |
public class FullDTDReader { /** * Method similar to { @ link # skipPI } , but one that does basic
* well - formedness checks . */
protected void readPI ( ) throws XMLStreamException { } } | String target = parseFullName ( ) ; if ( target . length ( ) == 0 ) { _reportWFCViolation ( ErrorConsts . ERR_WF_PI_MISSING_TARGET ) ; } if ( target . equalsIgnoreCase ( "xml" ) ) { _reportWFCViolation ( ErrorConsts . ERR_WF_PI_XML_TARGET , target ) ; } char c = dtdNextFromCurr ( ) ; // Ok , need a space between target... |
public class JMPathOperation { /** * Delete boolean .
* @ param targetPath the target path
* @ return the boolean */
public static boolean delete ( Path targetPath ) { } } | debug ( log , "delete" , targetPath ) ; try { Files . delete ( targetPath ) ; return true ; } catch ( Exception e ) { return JMExceptionManager . handleExceptionAndReturnFalse ( log , e , "delete" , targetPath ) ; } |
public class Timestamp { /** * Calculates the time passed from the reference to this timeStamp .
* The result is the relative time from the reference to this
* timestamp , so that reference + result = this .
* @ param reference another time stamp
* @ return the duration from the reference to this */
public Time... | long nanoSecDiff = nanoSec - reference . nanoSec ; nanoSecDiff += ( unixSec - reference . unixSec ) * 1000000000 ; return TimeDuration . ofNanos ( nanoSecDiff ) ; |
public class EvaluationEngineImpl { /** * ( non - Javadoc )
* @ see org . fcrepo . server . security . xacml . pep . EvaluationEngine # evaluate ( java . lang . String ) */
@ Override public String evaluate ( String request ) throws PEPException { } } | if ( logger . isDebugEnabled ( ) ) { logger . debug ( "evaluating String request" ) ; } String [ ] requests = new String [ ] { request } ; return evaluate ( requests ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.