signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class CoreTranslet { @ Override public String getMessage ( String code , Object [ ] args , String defaultMessage , Locale locale ) { } } | return activity . getActivityContext ( ) . getMessageSource ( ) . getMessage ( code , args , defaultMessage , locale ) ; |
public class RequestBuilder { /** * Add an { @ link Encoder } . Several Encoder can be added and will be invoked the order they were added . This method
* doesn ' t allow duplicate .
* @ param e an { @ link Encoder }
* @ return this */
public T encoder ( Encoder e ) { } } | if ( ! encoders . contains ( e ) ) { encoders . add ( e ) ; } return derived . cast ( this ) ; |
public class HandlerContainer { /** * Subscribe for events from a given source and message type .
* @ param sourceIdentifier An identifier of an event source .
* @ param messageType Java class of messages to dispatch .
* @ param theHandler Message handler .
* @ return A new subscription object that will cancel ... | final Tuple2 < RemoteIdentifier , Class < ? extends T > > tuple = new Tuple2 < RemoteIdentifier , Class < ? extends T > > ( sourceIdentifier , messageType ) ; this . tupleToHandlerMap . put ( tuple , theHandler ) ; LOG . log ( Level . FINER , "Add handler for tuple: {0},{1}" , new Object [ ] { tuple . getT1 ( ) , tuple... |
public class Lexer { /** * Lex a string .
* @ return
* STRING - lex of string was successful . offset points to terminating ' " ' .
* EOF - end of text was encountered before we could complete the lex .
* ERROR - embedded in the string were unallowable chars . offset
* points to the offending char */
private ... | TokenType tok = ERROR ; boolean hasEscapes = false ; finish_string_lex : for ( ; ; ) { int curChar ; /* now jump into a faster scanning routine to skip as much
* of the buffers as possible */
{ if ( bufInUse && buf . readRemaining ( ) > 0 ) { stringScan ( buf ) ; } else if ( jsonText . readRemaining ( ) > 0 ) { strin... |
public class EditsLoaderCurrent { /** * Visit OP _ SET _ PERMISSIONS */
private void visit_OP_SET_PERMISSIONS ( ) throws IOException { } } | visitTxId ( ) ; v . visitStringUTF8 ( EditsElement . PATH ) ; v . visitShort ( EditsElement . FS_PERMISSIONS ) ; |
public class CmsContainerConfigurationParser { /** * Parses the contents of a resource . < p >
* @ param resource the resource which should be parsed
* @ throws CmsException if something goes wrong */
public void parse ( CmsResource resource ) throws CmsException { } } | CmsFile file = m_cms . readFile ( resource ) ; parse ( file ) ; |
public class DataUnformatFilter { /** * Filter a character data event .
* @ param ch
* The characters to write .
* @ param start
* The starting position in the array .
* @ param length
* The number of characters to use .
* @ exception org . xml . sax . SAXException
* If a filter further down the chain r... | if ( state != SEEN_DATA ) { /* Look for non - whitespace . */
int end = start + length ; while ( end -- > start ) { if ( ! isXMLWhitespace ( ch [ end ] ) ) break ; } /* * If all the characters are whitespace , save them for later . If
* we ' ve got some data , emit any saved whitespace and update our
* state to sho... |
public class MetadataContext { /** * Invokes { @ link DatabaseMetaData # getFunctionColumns ( java . lang . String , java . lang . String , java . lang . String ,
* java . lang . String ) } with given arguments and returns bound information .
* @ param catalog the value for { @ code catalog } parameter
* @ param ... | final List < FunctionColumn > list = new ArrayList < > ( ) ; try ( ResultSet results = databaseMetadata . getFunctionColumns ( catalog , schemaPattern , functionNamePattern , columnNamePattern ) ) { if ( results != null ) { bind ( results , FunctionColumn . class , list ) ; } } return list ; |
public class Pattern { /** * Returns a matcher for a specified region . */
public Matcher matcher ( char [ ] data , int start , int end ) { } } | Matcher m = new Matcher ( this ) ; m . setTarget ( data , start , end ) ; return m ; |
public class RichClientFramework { /** * Outputs a log file warning if the specified chain may not have been correctly defined because
* of a missing properties file .
* @ param endPoint the end point to test and see if outputting a warning is appropriate .
* @ see com . ibm . ws . sib . jfapchannel . framework .... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "warnIfSSLAndPropertiesFileMissing" , endPoint ) ; // Only output a warning if running in client
if ( ! RuntimeInfo . isServer ( ) && ! RuntimeInfo . isClusteredServer ( ) ) { // Only display a warning if the endpoing... |
public class OffHeapConcurrentMap { /** * Performs the actual remove operation removing the new address from the memory lookups . The write lock for the given
* key < b > must < / b > be held before calling this method .
* @ param bucketHeadAddress the starting address of the address hash
* @ param actualAddress ... | long prevAddress = 0 ; // We only use the head pointer for the first iteration
long address = bucketHeadAddress ; InternalCacheEntry < WrappedBytes , WrappedBytes > ice = null ; while ( address != 0 ) { long nextAddress = offHeapEntryFactory . getNext ( address ) ; boolean removeThisAddress ; // If the actualAddress wa... |
public class BroadleafPayPalCheckoutController { @ RequestMapping ( value = "/create-payment" , method = RequestMethod . POST ) public @ ResponseBody Map < String , String > createPayment ( @ RequestParam ( "performCheckout" ) Boolean performCheckout ) throws PaymentException { } } | Map < String , String > response = new HashMap < > ( ) ; Payment createdPayment = paymentService . createPayPalPaymentForCurrentOrder ( performCheckout ) ; response . put ( "id" , createdPayment . getId ( ) ) ; return response ; |
public class TemplateInfoGeneratorStarter { /** * Parses property string into HashSet
* @ param property
* string to parse
* @ return */
public static HashSet < String > createSetFromProperty ( String property ) { } } | HashSet < String > properties = new HashSet < String > ( ) ; if ( property != null && ! property . equals ( "null" ) ) { // " ( [ \ \ w ] * ) = ( [ \ \ w ] * ) ; "
Pattern params = Pattern . compile ( "([\\w]+)[;]*" ) ; Matcher matcher = params . matcher ( property . trim ( ) ) ; while ( matcher . find ( ) ) { properti... |
public class BackupManager { /** * Restores master state from the specified backup .
* @ param is an input stream to read from the backup */
public void initFromBackup ( InputStream is ) throws IOException { } } | int count = 0 ; try ( GzipCompressorInputStream gzIn = new GzipCompressorInputStream ( is ) ; JournalEntryStreamReader reader = new JournalEntryStreamReader ( gzIn ) ) { List < Master > masters = mRegistry . getServers ( ) ; JournalEntry entry ; Map < String , Master > mastersByName = Maps . uniqueIndex ( masters , Mas... |
public class UpdateGlobalTableRequest { /** * A list of regions that should be added or removed from the global table .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setReplicaUpdates ( java . util . Collection ) } or { @ link # withReplicaUpdates ( java . ... | if ( this . replicaUpdates == null ) { setReplicaUpdates ( new java . util . ArrayList < ReplicaUpdate > ( replicaUpdates . length ) ) ; } for ( ReplicaUpdate ele : replicaUpdates ) { this . replicaUpdates . add ( ele ) ; } return this ; |
public class Interval { /** * Creates a new interval with the specified period before the end instant .
* @ param period the period to subtract from the end to get the new start instant , null means zero
* @ return an interval with the end from this interval and a calculated start
* @ throws IllegalArgumentExcept... | if ( period == null ) { return withDurationBeforeEnd ( null ) ; } Chronology chrono = getChronology ( ) ; long endMillis = getEndMillis ( ) ; long startMillis = chrono . add ( period , endMillis , - 1 ) ; return new Interval ( startMillis , endMillis , chrono ) ; |
public class TransitionManager { /** * Sets a specific transition to occur when the given pair of scenes is
* exited / entered .
* @ param fromScene The scene being exited when the given transition will
* be run
* @ param toScene The scene being entered when the given transition will
* be run
* @ param tran... | ArrayMap < Scene , Transition > sceneTransitionMap = mScenePairTransitions . get ( toScene ) ; if ( sceneTransitionMap == null ) { sceneTransitionMap = new ArrayMap < Scene , Transition > ( ) ; mScenePairTransitions . put ( toScene , sceneTransitionMap ) ; } sceneTransitionMap . put ( fromScene , transition ) ; |
public class Config { /** * Creates a deep - copy of the given configuration . This is useful for unit - testing .
* @ param original the configuration to copy .
* @ return a copy of the given configuration . */
public static Configuration copyConfiguration ( final Configuration original ) { } } | Configuration copy = new MapConfiguration ( new HashMap < String , Object > ( ) ) ; for ( Iterator < ? > i = original . getKeys ( ) ; i . hasNext ( ) ; ) { String key = ( String ) i . next ( ) ; Object value = original . getProperty ( key ) ; if ( value instanceof List ) { value = new ArrayList ( ( List ) value ) ; } c... |
public class SudokuApplet { /** * Helper method to create a background task for running the interactive evolutionary
* algorithm .
* @ return A Swing task that will execute on a background thread and update
* the GUI when it is done . */
private SwingBackgroundTask < Sudoku > createTask ( final String [ ] puzzle ... | return new SwingBackgroundTask < Sudoku > ( ) { @ Override protected Sudoku performTask ( ) { Random rng = new MersenneTwisterRNG ( ) ; List < EvolutionaryOperator < Sudoku > > operators = new ArrayList < EvolutionaryOperator < Sudoku > > ( 2 ) ; // Cross - over rows between parents ( so offspring is x rows from parent... |
public class DescribeJobDefinitionsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeJobDefinitionsRequest describeJobDefinitionsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeJobDefinitionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeJobDefinitionsRequest . getJobDefinitions ( ) , JOBDEFINITIONS_BINDING ) ; protocolMarshaller . marshall ( describeJobDefinitionsRequest . getMaxRe... |
public class LinkedTree { /** * Invoked when this object must be deserialized .
* @ param in is the input stream .
* @ throws IOException in case of input stream access error .
* @ throws ClassNotFoundException if some class was not found . */
private void readObject ( ObjectInputStream in ) throws IOException , ... | in . defaultReadObject ( ) ; if ( this . root != null ) { this . root . removeFromParent ( ) ; this . root . addTreeNodeListener ( this . listener ) ; } |
public class JpaRepository { /** * Returns all the entities contained in the repository .
* The query used for this operation is the one received by the constructor .
* @ return all the entities contained in the repository */
@ SuppressWarnings ( "unchecked" ) @ Override public final Collection < V > getAll ( ) { }... | final Query builtQuery ; // Query created from the query data
// Builds the query
builtQuery = getEntityManager ( ) . createQuery ( getAllValuesQuery ( ) ) ; // Processes the query
return builtQuery . getResultList ( ) ; |
public class FontManagerImpl21 { /** * https : / / github . com / android / platform _ frameworks _ base / blob / android - 5.0.0 _ r1 / graphics / java / android / graphics / Typeface . java */
@ Override public boolean init ( @ NonNull Context context , int fontsRes ) { } } | FontListParser . Config config = readFontConfig ( context , fontsRes ) ; if ( config == null ) return false ; // this will also rewrite the Font # fontName to point to the extracted file ( s )
extractToCache ( context . getAssets ( ) , context . getCodeCacheDir ( ) , config ) ; if ( BuildConfig . DEBUG ) { Log . v ( TA... |
public class KerasBatchNormalization { /** * Get BatchNormalization " mode " from Keras layer configuration . Most modes currently unsupported .
* @ param layerConfig dictionary containing Keras layer configuration
* @ return batchnormalization mode
* @ throws InvalidKerasConfigurationException Invalid Keras conf... | Map < String , Object > innerConfig = KerasLayerUtils . getInnerLayerConfigFromConfig ( layerConfig , conf ) ; int batchNormMode = 0 ; if ( this . kerasMajorVersion == 1 & ! innerConfig . containsKey ( LAYER_FIELD_MODE ) ) throw new InvalidKerasConfigurationException ( "Keras BatchNorm layer config missing " + LAYER_FI... |
public class Async { /** * Convert a synchronous function call into an asynchronous function call through an Observable .
* < img width = " 640 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / toAsync . s . png " alt = " " >
* @ param < T1 > the first parameter type
... | return new Func3 < T1 , T2 , T3 , Observable < R > > ( ) { @ Override public Observable < R > call ( final T1 t1 , final T2 t2 , final T3 t3 ) { final AsyncSubject < R > subject = AsyncSubject . create ( ) ; final Worker inner = scheduler . createWorker ( ) ; inner . schedule ( new Action0 ( ) { @ Override public void ... |
public class Configurer { /** * Get a double in the xml tree .
* @ param attribute The attribute to get as double .
* @ param path The node path ( child list )
* @ return The double value .
* @ throws LionEngineException If unable to read node . */
public final double getDouble ( String attribute , String ... p... | try { return Double . parseDouble ( getNodeString ( attribute , path ) ) ; } catch ( final NumberFormatException exception ) { throw new LionEngineException ( exception , media ) ; } |
public class ColorBuilder { /** * { @ inheritDoc } */
@ Override protected Color buildResource ( final ColorItem ci , final ColorParams cp ) { } } | Color color = null ; if ( cp instanceof WebColor ) { color = buildWebColor ( ( WebColor ) cp ) ; } else if ( cp instanceof RGB01Color ) { color = buildRGB01Color ( ( RGB01Color ) cp ) ; } else if ( cp instanceof RGB255Color ) { color = buildRGB255Color ( ( RGB255Color ) cp ) ; } else if ( cp instanceof HSBColor ) { col... |
public class ExecutionTransitioner { /** * Used for job and flow .
* @ return */
public ExecutionStatus doExecutionLoop ( ) { } } | final String methodName = "doExecutionLoop" ; try { currentExecutionElement = modelNavigator . getFirstExecutionElement ( jobExecution . getRestartOn ( ) ) ; } catch ( IllegalTransitionException e ) { String errorMsg = "Could not transition to first execution element within job." ; logger . warning ( errorMsg ) ; throw... |
public class Cache2kBuilder { /** * Add a new configuration sub section .
* @ see org . cache2k . configuration . ConfigurationWithSections */
public final Cache2kBuilder < K , V > with ( ConfigurationSectionBuilder < ? extends ConfigurationSection > ... sectionBuilders ) { } } | for ( ConfigurationSectionBuilder < ? extends ConfigurationSection > b : sectionBuilders ) { config ( ) . getSections ( ) . add ( b . buildConfigurationSection ( ) ) ; } return this ; |
public class StringUtil { /** * Converts a comma - separated String to an array of longs .
* @ param pString The comma - separated string
* @ param pDelimiters The delimiter string
* @ return a { @ code long } array
* @ throws NumberFormatException if any of the elements are not parseable
* as a long */
publi... | if ( isEmpty ( pString ) ) { return new long [ 0 ] ; } // Some room for improvement here . . .
String [ ] temp = toStringArray ( pString , pDelimiters ) ; long [ ] array = new long [ temp . length ] ; for ( int i = 0 ; i < array . length ; i ++ ) { array [ i ] = Long . parseLong ( temp [ i ] ) ; } return array ; |
public class CommerceUserSegmentCriterionLocalServiceBaseImpl { /** * Deletes the commerce user segment criterion with the primary key from the database . Also notifies the appropriate model listeners .
* @ param commerceUserSegmentCriterionId the primary key of the commerce user segment criterion
* @ return the co... | return commerceUserSegmentCriterionPersistence . remove ( commerceUserSegmentCriterionId ) ; |
public class DefaultWhenVertx { /** * Safely execute some blocking code .
* Executes the blocking code in the handler { @ code blockingCodeHandler } using a thread from the worker pool .
* When the code is complete the promise will resolve with the result on the original context
* ( e . g . on the original event ... | return adapter . toPromise ( handler -> vertx . executeBlocking ( blockingCodeHandler , ordered , handler ) ) ; |
public class I18n { /** * Note , calling this method will < em > not < / em > trigger localization of the supplied internationalization class .
* @ param i18nClass The internalization class for which localization problems should be returned .
* @ param locale The locale for which localization problems should be ret... | CheckArg . isNotNull ( i18nClass , "i18nClass" ) ; Map < Class < ? > , Set < String > > classToProblemsMap = LOCALE_TO_CLASS_TO_PROBLEMS_MAP . get ( locale == null ? Locale . getDefault ( ) : locale ) ; if ( classToProblemsMap == null ) { return Collections . emptySet ( ) ; } Set < String > problems = classToProblemsMa... |
public class NetworkInterface { /** * Any tags assigned to the network interface .
* @ param tagSet
* Any tags assigned to the network interface . */
public void setTagSet ( java . util . Collection < Tag > tagSet ) { } } | if ( tagSet == null ) { this . tagSet = null ; return ; } this . tagSet = new com . amazonaws . internal . SdkInternalList < Tag > ( tagSet ) ; |
public class PyGenerator { /** * Generate the Python package files .
* < p > This function generates the " _ _ init _ _ . py " files for all the packages .
* @ param name the name of the generated type .
* @ param lineSeparator the line separator .
* @ param context the generation context . */
protected void wr... | final IFileSystemAccess2 fsa = context . getFileSystemAccess ( ) ; final String outputConfiguration = getOutputConfigurationName ( ) ; QualifiedName libraryName = null ; for ( final String segment : name . skipLast ( 1 ) . getSegments ( ) ) { if ( libraryName == null ) { libraryName = QualifiedName . create ( segment ,... |
import java . util . ArrayList ; import java . util . List ; class EvaluatePredictions { /** * Function to evaluate the accuracy of game scores predicted by an individual .
* This function calculates the absolute difference in predicted and actual scores for
* each game , and returns a list of these differences .
... | List < Integer > result = new ArrayList < > ( ) ; for ( int i = 0 ; i < actual_scores . size ( ) ; i ++ ) { result . add ( Math . abs ( actual_scores . get ( i ) - predictions . get ( i ) ) ) ; } return result ; |
public class MetaBeans { /** * lookup the MetaBean outside the fast path , aiding hotspot inlining */
private static MetaBean metaBeanLookup ( Class < ? > cls ) { } } | // handle dynamic beans
if ( cls == FlexiBean . class ) { return new FlexiBean ( ) . metaBean ( ) ; } else if ( cls == MapBean . class ) { return new MapBean ( ) . metaBean ( ) ; } else if ( DynamicBean . class . isAssignableFrom ( cls ) ) { try { return cls . asSubclass ( DynamicBean . class ) . getDeclaredConstructor... |
public class Deferrers { /** * Cancel all defer actions for the current stack depth .
* @ since 1.0 */
@ Weight ( value = Weight . Unit . VARIABLE , comment = "Depends on the current call stack depth" ) public static void cancelDeferredActions ( ) { } } | final int stackDepth = ThreadUtils . stackDepth ( ) ; final List < Deferred > list = REGISTRY . get ( ) ; final Iterator < Deferred > iterator = list . iterator ( ) ; while ( iterator . hasNext ( ) ) { final Deferred deferred = iterator . next ( ) ; if ( deferred . getStackDepth ( ) >= stackDepth ) { iterator . remove ... |
public class FileSystemManager { /** * create properties folder
* @ throws IOException could throw IOException because working with files */
private void createPropertiesFolder ( ) throws IOException { } } | if ( ! Files . exists ( propertiesLocation . toPath ( ) ) ) Files . createDirectories ( propertiesLocation . toPath ( ) ) ; |
public class MSDelegatingLocalTransaction { /** * Rollback all work associated with this local transaction .
* @ exception SIIncorrectCallException
* Thrown if this transaction has already been completed .
* @ exception SIResourceException
* Thrown if an unknown MessageStore error occurs . */
public void rollba... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "rollback" ) ; if ( _state != TransactionState . STATE_ACTIVE ) { SIIncorrectCallException sie = new SIIncorrectCallException ( nls . getFormattedMessage ( "CANNOT_ROLLBACK_COMPLETE_SIMS1005" , new Object [ ] { } , nu... |
public class PropertiesCache { /** * Get the java Properties stored in the file , loading from disk only if the file has been modified
* since the last read , or the cached data has been invalidated .
* @ param file java properties file
* @ return java Properties
* @ throws IOException due to file read or find ... | final Properties fileprops ; if ( needsReload ( file ) ) { fileprops = new Properties ( ) ; final InputStream is = new FileInputStream ( file ) ; try { fileprops . load ( is ) ; } finally { if ( null != is ) { is . close ( ) ; } } mtimes . put ( file , file . lastModified ( ) ) ; props . put ( file , fileprops ) ; retu... |
public class JsonUtil { /** * Write a JCR value to the JSON writer .
* @ param writer the JSON writer object ( with the JSON state )
* @ param type the JCR type of the value ( see PropertyType )
* @ param value the value itself , should be a JCR property otherwise a java scalar object or array of scalars
* @ pa... | Value jcrValue = value instanceof Value ? ( Value ) value : null ; switch ( type ) { case PropertyType . BINARY : if ( node != null && jcrValue != null ) { if ( mapping . propertyFormat . binary == MappingRules . PropertyFormat . Binary . link ) { String uri = "/bin/cpm/nodes/property.bin" + LinkUtil . encodePath ( nod... |
public class ChannelUtils { /** * Convert the input string to a list of strings based on the
* provided delimiter .
* @ param input
* @ param delimiter
* @ return String [ ] */
public static String [ ] extractList ( String input , char delimiter ) { } } | int end = input . indexOf ( delimiter ) ; if ( - 1 == end ) { return new String [ ] { input . trim ( ) } ; } List < String > output = new LinkedList < String > ( ) ; int start = 0 ; do { output . add ( input . substring ( start , end ) . trim ( ) ) ; start = end + 1 ; end = input . indexOf ( delimiter , start ) ; } whi... |
public class XMLRoadUtil { /** * Write the XML description for the given container of roads .
* @ param xmlNode is the XML node to fill with the container data .
* @ param primitive is the container of roads to output .
* @ param geometryURL is the URL of the file that contains the geometry of the roads .
* If ... | final ContainerWrapper w = new ContainerWrapper ( primitive ) ; w . setElementGeometrySource ( geometryURL , mapProjection ) ; w . setElementAttributeSourceURL ( attributeURL ) ; writeGISElementContainer ( xmlNode , w , NODE_ROAD , builder , pathBuilder , resources ) ; final Rectangle2d bounds = primitive . getBounding... |
public class UpdateFlowEntitlementRequest { /** * The AWS account IDs that you want to share your content with . The receiving accounts ( subscribers ) will be
* allowed to create their own flow using your content as the source .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) ... | if ( this . subscribers == null ) { setSubscribers ( new java . util . ArrayList < String > ( subscribers . length ) ) ; } for ( String ele : subscribers ) { this . subscribers . add ( ele ) ; } return this ; |
public class ExceptionCollection { /** * Prints the stack trace .
* @ param s the writer to print to */
@ Override public void printStackTrace ( PrintWriter s ) { } } | s . println ( MSG ) ; super . printStackTrace ( s ) ; this . exceptions . forEach ( ( t ) -> { s . println ( "Next Exception:" ) ; t . printStackTrace ( s ) ; |
public class ISPNQuotaPersister { /** * { @ inheritDoc } */
public void setGlobalDataSize ( final long dataSize ) { } } | SecurityHelper . doPrivilegedAction ( new PrivilegedAction < Void > ( ) { public Void run ( ) { CacheKey key = new GlobalDataSizeKey ( ) ; cache . put ( key , dataSize ) ; return null ; } } ) ; |
public class TitlePaneCloseButtonPainter { /** * Paint the background of the button using the specified colors .
* @ param g the Graphics2D context to paint with .
* @ param c the component .
* @ param width the width of the component .
* @ param height the height of the component .
* @ param colors the color... | g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; Shape s = decodeInterior ( width , height ) ; g . setPaint ( decodeCloseGradient ( s , colors . interiorTop , colors . interiorBottom ) ) ; g . fill ( s ) ; s = decodeEdge ( width , height ) ; g . setColor ( colors . edge... |
public class AmazonEC2Client { /** * Determines whether a product code is associated with an instance . This action can only be used by the owner of
* the product code . It is useful when a product code owner must verify whether another user ' s instance is eligible
* for support .
* @ param confirmProductInstanc... | request = beforeClientExecution ( request ) ; return executeConfirmProductInstance ( request ) ; |
public class EntityCollection { /** * Add item to collection .
* @ param item item for addition ( must be Entity or subclass ) .
* @ return if item add then will return true in the other case false .
* @ throws UnsupportedOperationException if object is read only . */
@ Override public boolean add ( D item ) thro... | readOnlyGuardCondition ( ) ; instance . addRelation ( entity , writeAttributeName , item ) ; entity . save ( ) ; return true ; |
public class DefaultGroovyStaticMethods { /** * Start a daemon Thread with a given name and the given closure as
* a Runnable instance .
* @ param self placeholder variable used by Groovy categories ; ignored for default static methods
* @ param name the name to give the thread
* @ param closure the Runnable cl... | return createThread ( name , true , closure ) ; |
public class GSection { /** * Set the number of notification for this section
* @ param notifications the number of notification active for this section
* @ return this section */
public GSection setNotifications ( int notifications ) { } } | String textNotification ; textNotification = String . valueOf ( notifications ) ; if ( notifications < 1 ) { textNotification = "" ; } if ( notifications > 99 ) { textNotification = "99+" ; } this . notifications . setText ( textNotification ) ; numberNotifications = notifications ; return this ; |
public class InternalSARLParser { /** * InternalSARL . g : 11982:1 : ruleXAnnotationOrExpression returns [ EObject current = null ] : ( this _ XAnnotation _ 0 = ruleXAnnotation | this _ XExpression _ 1 = ruleXExpression ) ; */
public final EObject ruleXAnnotationOrExpression ( ) throws RecognitionException { } } | EObject current = null ; EObject this_XAnnotation_0 = null ; EObject this_XExpression_1 = null ; enterRule ( ) ; try { // InternalSARL . g : 11988:2 : ( ( this _ XAnnotation _ 0 = ruleXAnnotation | this _ XExpression _ 1 = ruleXExpression ) )
// InternalSARL . g : 11989:2 : ( this _ XAnnotation _ 0 = ruleXAnnotation | ... |
public class IncludeTileImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setTIRID ( Integer newTIRID ) { } } | Integer oldTIRID = tirid ; tirid = newTIRID ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . INCLUDE_TILE__TIRID , oldTIRID , tirid ) ) ; |
public class ValidationJob { /** * Execute Hive queries using { @ link HiveJdbcConnector } and validate results .
* @ param queries Queries to execute . */
@ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = "SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE" , justification = "Temporary fix" ) private List... | if ( null == queries || queries . size ( ) == 0 ) { log . warn ( "No queries specified to be executed" ) ; return Collections . emptyList ( ) ; } List < Long > rowCounts = Lists . newArrayList ( ) ; Closer closer = Closer . create ( ) ; try { HiveJdbcConnector hiveJdbcConnector = closer . register ( HiveJdbcConnector .... |
public class HttpHelper { /** * Execute a request for a subclass .
* @ param request request to be executed
* @ return response containing response to request
* @ throws IOException
* @ throws ReadOnlyException */
public HttpResponse execute ( final HttpUriRequest request ) throws IOException , ReadOnlyExceptio... | if ( readOnly ) { switch ( request . getMethod ( ) . toLowerCase ( ) ) { case "copy" : case "delete" : case "move" : case "patch" : case "post" : case "put" : throw new ReadOnlyException ( ) ; default : break ; } } return httpClient . execute ( request , httpContext ) ; |
public class FoxHttpRequestQuery { /** * Parse an object as query map
* @ param params list of attribute names which will be included
* @ param o object with the attributes
* @ throws FoxHttpRequestException can throw an exception if a field does not exist */
public void parseObjectAsQueryMap ( List < String > pa... | try { Class clazz = o . getClass ( ) ; HashMap < String , String > paramMap = new HashMap < > ( ) ; for ( String param : params ) { Field field = clazz . getDeclaredField ( param ) ; field . setAccessible ( true ) ; String paramName = field . getName ( ) ; String value = String . valueOf ( field . get ( o ) ) ; if ( fi... |
public class ASMUtil { /** * Append the call of proper autoboxing method for the given primitif type . */
public static void autoBoxing ( MethodVisitor mv , Class < ? > clz ) { } } | autoBoxing ( mv , Type . getType ( clz ) ) ; |
public class OpenAPIModelFilterAdapter { /** * { @ inheritDoc } */
@ Override public APIResponse visitResponse ( Context context , String key , APIResponse response ) { } } | visitor . visitResponse ( context , key , response ) ; return response ; |
public class SessionContextRegistry { /** * To get at TrackerData */
public static String getTrackerData ( ) { } } | // loop through all the contexts
Enumeration vEnum = scrSessionContexts . elements ( ) ; StringBuffer bigStrbuf = new StringBuffer ( ) ; bigStrbuf . append ( "<center><h3>Session Tracking Internals</h3></center>" + "<UL>\n" ) ; while ( vEnum . hasMoreElements ( ) ) { SessionContext localContext = ( SessionContext ) vEn... |
public class QPath { /** * Get relative path with degree .
* @ param relativeDegree
* - degree value
* @ return arrayf of QPathEntry
* @ throws IllegalPathException
* - if the degree is invalid */
public QPathEntry [ ] getRelPath ( int relativeDegree ) throws IllegalPathException { } } | int len = getLength ( ) - relativeDegree ; if ( len < 0 ) throw new IllegalPathException ( "Relative degree " + relativeDegree + " is more than depth for " + getAsString ( ) ) ; QPathEntry [ ] relPath = new QPathEntry [ relativeDegree ] ; System . arraycopy ( names , len , relPath , 0 , relPath . length ) ; return relP... |
public class LightWeightHashSet { /** * Remove and return first n elements on the linked list of all elements .
* @ return first element */
public List < T > pollN ( int n ) { } } | if ( n >= size ) { return pollAll ( ) ; } List < T > retList = new ArrayList < T > ( n ) ; if ( n == 0 ) { return retList ; } boolean done = false ; int currentBucketIndex = 0 ; while ( ! done ) { LinkedElement < T > current = entries [ currentBucketIndex ] ; while ( current != null ) { retList . add ( current . elemen... |
public class HttpConnector { /** * Handles output from the application . This may be the payload
* of e . g . a POST or data to be transferes on a websocket connection .
* @ param event the event
* @ param appChannel the application layer channel
* @ throws InterruptedException the interrupted exception */
@ Ha... | appChannel . handleAppOutput ( event ) ; |
public class ServerSentEventService { /** * Adds a new connection to the manager
* @ param connection The connection to put */
public void addConnection ( ServerSentEventConnection connection ) { } } | Objects . requireNonNull ( connection , Required . CONNECTION . toString ( ) ) ; final String url = RequestUtils . getServerSentEventURL ( connection ) ; Set < ServerSentEventConnection > uriConnections = getConnections ( url ) ; if ( uriConnections == null ) { uriConnections = new HashSet < > ( ) ; uriConnections . ad... |
public class LBiObjDblPredicateBuilder { /** * One of ways of creating builder . This is possibly the least verbose way where compiler should be able to guess the generic parameters . */
@ Nonnull public static < T1 , T2 > LBiObjDblPredicate < T1 , T2 > biObjDblPredicateFrom ( Consumer < LBiObjDblPredicateBuilder < T1 ... | LBiObjDblPredicateBuilder builder = new LBiObjDblPredicateBuilder ( ) ; buildingFunction . accept ( builder ) ; return builder . build ( ) ; |
public class TableSchema { /** * Returns the specified name for the given field index .
* @ param fieldIndex the index of the field */
public Optional < String > getFieldName ( int fieldIndex ) { } } | if ( fieldIndex < 0 || fieldIndex >= fieldNames . length ) { return Optional . empty ( ) ; } return Optional . of ( fieldNames [ fieldIndex ] ) ; |
public class RelationMention { /** * indexed setter for arguments - sets an indexed value -
* @ generated
* @ param i index in the array to set
* @ param v value to set into the array */
public void setArguments ( int i , ArgumentMention v ) { } } | if ( RelationMention_Type . featOkTst && ( ( RelationMention_Type ) jcasType ) . casFeat_arguments == null ) jcasType . jcas . throwFeatMissing ( "arguments" , "de.julielab.jules.types.RelationMention" ) ; jcasType . jcas . checkArrayBounds ( jcasType . ll_cas . ll_getRefValue ( addr , ( ( RelationMention_Type ) jcasTy... |
public class SmbComLockingAndX { /** * { @ inheritDoc }
* @ see jcifs . internal . smb1 . ServerMessageBlock # readParameterWordsWireFormat ( byte [ ] , int ) */
@ Override protected int readParameterWordsWireFormat ( byte [ ] buffer , int bufferIndex ) { } } | int start = bufferIndex ; this . fid = SMBUtil . readInt2 ( buffer , bufferIndex ) ; bufferIndex += 2 ; this . typeOfLock = buffer [ bufferIndex ] ; if ( ( this . typeOfLock & 0x10 ) == 0x10 ) { this . largeFile = true ; } this . newOpLockLevel = buffer [ bufferIndex + 1 ] ; bufferIndex += 2 ; this . timeout = SMBUtil ... |
public class Cipher { /** * Returns the length in bytes that an output buffer would need to be in
* order to hold the result of the next < code > update < / code > or
* < code > doFinal < / code > operation , given the input length
* < code > inputLen < / code > ( in bytes ) .
* < p > This call takes into accou... | if ( ! initialized && ! ( this instanceof NullCipher ) ) { throw new IllegalStateException ( "Cipher not initialized" ) ; } if ( inputLen < 0 ) { throw new IllegalArgumentException ( "Input size must be equal " + "to or greater than zero" ) ; } updateProviderIfNeeded ( ) ; return spi . engineGetOutputSize ( inputLen ) ... |
public class SHARED_LOOPBACK { /** * / * - - - - - Protocol interface - - - - - */
public Object down ( Event evt ) { } } | Object retval = super . down ( evt ) ; switch ( evt . getType ( ) ) { case Event . CONNECT : case Event . CONNECT_WITH_STATE_TRANSFER : case Event . CONNECT_USE_FLUSH : case Event . CONNECT_WITH_STATE_TRANSFER_USE_FLUSH : register ( cluster_name , local_addr , this ) ; break ; case Event . DISCONNECT : unregister ( clu... |
public class Log { /** * Understands and applies the following boolean properties . True is the
* default value if the value doesn ' t equal " false " , ignoring case .
* < ul >
* < li > enabled
* < li > debug
* < li > info
* < li > warn
* < li > error
* < / ul > */
public void applyProperties ( Map pro... | if ( properties . containsKey ( "enabled" ) ) { setEnabled ( ! "false" . equalsIgnoreCase ( ( String ) properties . get ( "enabled" ) ) ) ; } if ( properties . containsKey ( "debug" ) ) { setDebugEnabled ( ! "false" . equalsIgnoreCase ( ( String ) properties . get ( "debug" ) ) ) ; } if ( properties . containsKey ( "in... |
public class tmsessionpolicy_aaagroup_binding { /** * Use this API to fetch tmsessionpolicy _ aaagroup _ binding resources of given name . */
public static tmsessionpolicy_aaagroup_binding [ ] get ( nitro_service service , String name ) throws Exception { } } | tmsessionpolicy_aaagroup_binding obj = new tmsessionpolicy_aaagroup_binding ( ) ; obj . set_name ( name ) ; tmsessionpolicy_aaagroup_binding response [ ] = ( tmsessionpolicy_aaagroup_binding [ ] ) obj . get_resources ( service ) ; return response ; |
public class ProtectionContainersInner { /** * Inquires all the protectable item in the given container that can be protected .
* Inquires all the protectable items that are protectable under the given container .
* @ param vaultName The name of the recovery services vault .
* @ param resourceGroupName The name o... | return inquireWithServiceResponseAsync ( vaultName , resourceGroupName , fabricName , containerName , filter ) . map ( new Func1 < ServiceResponse < Void > , Void > ( ) { @ Override public Void call ( ServiceResponse < Void > response ) { return response . body ( ) ; } } ) ; |
public class KeyTranslatorImpl { /** * documentation inherited from interface KeyTranslator */
public String getReleaseCommand ( char ch ) { } } | KeyRecord krec = _charCommands . get ( ch ) ; return ( krec == null ) ? null : krec . releaseCommand ; |
public class RunLevel { /** * All cache initialize methods stored in { @ link # cacheMethods } are called .
* @ see # cacheMethods
* @ throws EFapsException on error */
protected void executeMethods ( ) throws EFapsException { } } | if ( this . parent != null ) { this . parent . executeMethods ( ) ; } for ( final CacheMethod cacheMethod : this . cacheMethods ) { cacheMethod . callMethod ( ) ; } |
public class AmazonIdentityManagementClient { /** * Retrieves the specified SSH public key , including metadata about the key .
* The SSH public key retrieved by this operation is used only for authenticating the associated IAM user to an AWS
* CodeCommit repository . For more information about using SSH keys to au... | request = beforeClientExecution ( request ) ; return executeGetSSHPublicKey ( request ) ; |
public class ZxingKit { /** * 将BufferedImage对象写入文件
* @ param bufImg
* BufferedImage对象
* @ param format
* 图片格式 , 可选 [ png , jpg , bmp ]
* @ param saveImgFilePath
* 存储图片的完整位置 , 包含文件名
* @ return { boolean } */
@ SuppressWarnings ( "finally" ) public static boolean writeToFile ( BufferedImage bufImg , String ... | Boolean bool = false ; try { bool = ImageIO . write ( bufImg , format , new File ( saveImgFilePath ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } finally { return bool ; } |
public class EpanetWrapper { /** * Retrieves the value of a specific link parameter .
* @ param index link index .
* @ param param { @ link LinkParameters } .
* @ return the value .
* @ throws EpanetException */
public float [ ] ENgetlinkvalue ( int index , LinkParameters param ) throws EpanetException { } } | float [ ] value = new float [ 2 ] ; int errcode = epanet . ENgetlinkvalue ( index , param . getCode ( ) , value ) ; checkError ( errcode ) ; return value ; |
public class IfcDistributionControlElementImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcRelFlowControlElements > getAssignedToFlowElement ( ) { } } | return ( EList < IfcRelFlowControlElements > ) eGet ( Ifc4Package . Literals . IFC_DISTRIBUTION_CONTROL_ELEMENT__ASSIGNED_TO_FLOW_ELEMENT , true ) ; |
public class SegmentMetadataUpdateTransaction { /** * Applies all the outstanding changes to the base SegmentMetadata object . */
void apply ( UpdateableSegmentMetadata target ) { } } | if ( ! this . isChanged ) { // No changes made .
return ; } Preconditions . checkArgument ( target . getId ( ) == this . id , "Target Segment Id mismatch. Expected %s, given %s." , this . id , target . getId ( ) ) ; Preconditions . checkArgument ( target . getName ( ) . equals ( this . name ) , "Target Segment Name mis... |
public class ModelAdapter { /** * static method to retrieve a new ` ItemAdapter `
* @ return a new ItemAdapter */
public static < Model , Item extends IItem > ModelAdapter < Model , Item > models ( IInterceptor < Model , Item > interceptor ) { } } | return new ModelAdapter < > ( interceptor ) ; |
public class CmsCmisRepository { /** * Initializes a CMS context for the authentication data contained in a call context . < p >
* @ param context the call context
* @ return the initialized CMS context */
protected CmsObject getCmsObject ( CmsCmisCallContext context ) { } } | try { if ( context . getUsername ( ) == null ) { // user name can be null
CmsObject cms = OpenCms . initCmsObject ( OpenCms . getDefaultUsers ( ) . getUserGuest ( ) ) ; cms . getRequestContext ( ) . setCurrentProject ( m_adminCms . getRequestContext ( ) . getCurrentProject ( ) ) ; return cms ; } else { CmsObject cms = ... |
public class LocalSymbolTableImports { /** * Finds a symbol already interned by an import , returning the lowest
* known SID .
* This method will not necessarily return the same instance given the
* same input .
* @ param text the symbol text to find
* @ return
* the interned symbol ( with both text and SID... | for ( int i = 0 ; i < myImports . length ; i ++ ) { SymbolTable importedTable = myImports [ i ] ; SymbolToken tok = importedTable . find ( text ) ; if ( tok != null ) { int sid = tok . getSid ( ) + myBaseSids [ i ] ; text = tok . getText ( ) ; // Use interned instance
assert text != null ; return new SymbolTokenImpl ( ... |
public class Graph { /** * Runs a { @ link VertexCentricIteration } on the graph with configuration options .
* @ param computeFunction the vertex compute function
* @ param combiner an optional message combiner
* @ param maximumNumberOfIterations maximum number of iterations to perform
* @ param parameters the... | VertexCentricIteration < K , VV , EV , M > iteration = VertexCentricIteration . withEdges ( edges , computeFunction , combiner , maximumNumberOfIterations ) ; iteration . configure ( parameters ) ; DataSet < Vertex < K , VV > > newVertices = this . getVertices ( ) . runOperation ( iteration ) ; return new Graph < > ( n... |
public class AnomalyDetectionTransform { /** * Identifies the min and max values of a metric
* @ param metricData Metric to find the min and max values of
* @ return Map containing the min and max values of the metric */
private Map < String , Double > getMinMax ( Map < Long , Double > metricData ) { } } | double min = 0.0 ; double max = 0.0 ; boolean isMinMaxSet = false ; for ( Double value : metricData . values ( ) ) { double valueDouble = value ; if ( ! isMinMaxSet ) { min = valueDouble ; max = valueDouble ; isMinMaxSet = true ; } else { if ( valueDouble < min ) { min = valueDouble ; } else if ( valueDouble > max ) { ... |
public class StringMap { public void readExternal ( java . io . ObjectInput in ) throws java . io . IOException , ClassNotFoundException { } } | HashMap map = ( HashMap ) in . readObject ( ) ; this . putAll ( map ) ; |
public class Common { /** * Alert in the console of a database update .
* @ param currentVersion The current version
* @ param newVersion The database update version */
private void alertOldDbVersion ( int currentVersion , int newVersion ) { } } | Common . getInstance ( ) . sendConsoleMessage ( Level . INFO , "Your database is out of date! (Version " + currentVersion + "). Updating it to Revision " + newVersion + "." ) ; |
public class CommerceCountryUtil { /** * Returns the first commerce country in the ordered set where groupId = & # 63 ; and active = & # 63 ; .
* @ param groupId the group ID
* @ param active the active
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > )
* @ re... | return getPersistence ( ) . fetchByG_A_First ( groupId , active , orderByComparator ) ; |
public class FactoryBuilderSupport { /** * Use { @ link FactoryBuilderSupport # dispatchNodeCall ( Object , Object ) } instead . */
@ Deprecated protected Object dispathNodeCall ( Object name , Object args ) { } } | return dispatchNodeCall ( name , args ) ; |
public class Page { /** * Returns all elements of the given HTML tag name as subtypes of { @ link DomElement } .
* @ param tagName HTML tag name
* @ param < T > type of elements
* @ return list of DOM elements */
@ SuppressWarnings ( "unchecked" ) private < T extends DomElement > List < T > allByTagName ( String ... | return ( List < T > ) htmlPage . getElementsByTagName ( tagName ) ; |
public class PresentationSpaceResetMixingImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public void eSet ( int featureID , Object newValue ) { } } | switch ( featureID ) { case AfplibPackage . PRESENTATION_SPACE_RESET_MIXING__BG_MX_FLAG : setBgMxFlag ( ( Integer ) newValue ) ; return ; } super . eSet ( featureID , newValue ) ; |
public class AbstractSegment3F { /** * Replies the squared distance between this segment and the given point .
* @ param point
* @ return the squared distance . */
@ Pure public double distanceSquaredSegment ( Point3D point ) { } } | return distanceSquaredSegmentPoint ( getX1 ( ) , getY1 ( ) , getZ1 ( ) , getX2 ( ) , getY2 ( ) , getZ2 ( ) , point . getX ( ) , point . getY ( ) , point . getZ ( ) ) ; |
public class PasswordCrypt { /** * Converts the salt into a byte array using { @ link # stringToSalt ( String ) } and
* then calls { @ link # computePasswordHash ( String , byte [ ] ) } */
public static String computePasswordHash ( final String password , final String salt ) { } } | return computePasswordHash ( password , stringToSalt ( salt ) ) ; |
public class IronJacamarWithByteman { /** * { @ inheritDoc } */
@ Override public void extensionStart ( TestClass tc ) throws Exception { } } | List < ScriptText > scripts = new ArrayList < ScriptText > ( ) ; int key = 1 ; BMRules rules = tc . getAnnotation ( BMRules . class ) ; if ( rules != null ) { for ( BMRule rule : rules . value ( ) ) { scripts . add ( createScriptText ( key , rule ) ) ; key ++ ; } } BMRule rule = tc . getAnnotation ( BMRule . class ) ; ... |
public class DescribeFileSystemsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DescribeFileSystemsRequest describeFileSystemsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( describeFileSystemsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeFileSystemsRequest . getFileSystemIds ( ) , FILESYSTEMIDS_BINDING ) ; protocolMarshaller . marshall ( describeFileSystemsRequest . getMaxResults ( ) ,... |
public class LCMSRunInfo { /** * Call with null parameter to unset .
* @ param id this id must be present in the run info already . */
public void setDefaultInstrumentID ( String id ) { } } | if ( id == null ) { unsetDefaultInstrument ( ) ; return ; } if ( instruments . containsKey ( id ) ) { defaultInstrumentID = id ; isDefaultExplicitlySet = true ; } else { throw new IllegalArgumentException ( "The instrument map did not contain provided instrument ID, " + "have you added the instrument first?" ) ; } |
public class CmsColorSelector { /** * Sets the Red , Green , and Blue color variables . This will automatically populate the Hue , Saturation and Brightness and Hexadecimal fields , too .
* The RGB color model is an additive color model in which red , green , and blue light are added together in various ways to repro... | CmsColor color = new CmsColor ( ) ; color . setRGB ( red , green , blue ) ; m_red = red ; m_green = green ; m_blue = blue ; m_hue = color . getHue ( ) ; m_saturation = color . getSaturation ( ) ; m_brightness = color . getValue ( ) ; m_tbRed . setText ( Integer . toString ( m_red ) ) ; m_tbGreen . setText ( Integer . t... |
public class AbstractDocument { /** * Helper method to create the document from an object input stream , used for serialization purposes .
* @ param stream the stream to read from .
* @ throws IOException
* @ throws ClassNotFoundException */
@ SuppressWarnings ( "unchecked" ) protected void readFromSerializedStre... | cas = stream . readLong ( ) ; expiry = stream . readInt ( ) ; id = stream . readUTF ( ) ; content = ( T ) stream . readObject ( ) ; mutationToken = ( MutationToken ) stream . readObject ( ) ; |
public class TemplateHelper { /** * Return a list of producible media types of the last matched resource method .
* @ param extendedUriInfo uri info to obtain resource method from .
* @ return list of producible media types of the last matched resource method . */
private static List < MediaType > getResourceMethod... | if ( extendedUriInfo . getMatchedResourceMethod ( ) != null && ! extendedUriInfo . getMatchedResourceMethod ( ) . getProducedTypes ( ) . isEmpty ( ) ) { return extendedUriInfo . getMatchedResourceMethod ( ) . getProducedTypes ( ) ; } return Collections . singletonList ( MediaType . WILDCARD_TYPE ) ; |
public class AbstractResourceBasedServiceRegistry { /** * Gets registered service from file .
* @ param file the file
* @ return the registered service from file */
protected RegisteredService getRegisteredServiceFromFile ( final File file ) { } } | val fileName = file . getName ( ) ; if ( fileName . startsWith ( "." ) ) { LOGGER . trace ( "[{}] starts with ., ignoring" , fileName ) ; return null ; } if ( Arrays . stream ( getExtensions ( ) ) . noneMatch ( fileName :: endsWith ) ) { LOGGER . trace ( "[{}] doesn't end with valid extension, ignoring" , fileName ) ; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.