signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class UpdateAcceleratorRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( UpdateAcceleratorRequest updateAcceleratorRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( updateAcceleratorRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( updateAcceleratorRequest . getAcceleratorArn ( ) , ACCELERATORARN_BINDING ) ; protocolMarshaller . marshall ( updateAcceleratorRequest . getName ( ) , NAME_BIND... |
public class TagSetMappingsToNAF { /** * Mapping between EAGLES PAROLE Ancora tagset and NAF .
* @ param postag
* the postag
* @ return the mapping to NAF pos tagset */
private static String mapSpanishAncoraTagSetToNAF ( final String postag ) { } } | if ( postag . equalsIgnoreCase ( "RG" ) || postag . equalsIgnoreCase ( "RN" ) ) { return "A" ; // adverb
} else if ( postag . equalsIgnoreCase ( "CC" ) || postag . equalsIgnoreCase ( "CS" ) ) { return "C" ; // conjunction
} else if ( postag . startsWith ( "D" ) ) { return "D" ; // det predeterminer
} else if ( postag .... |
public class CommerceNotificationTemplateUtil { /** * Removes all the commerce notification templates where groupId = & # 63 ; and type = & # 63 ; and enabled = & # 63 ; from the database .
* @ param groupId the group ID
* @ param type the type
* @ param enabled the enabled */
public static void removeByG_T_E ( l... | getPersistence ( ) . removeByG_T_E ( groupId , type , enabled ) ; |
public class RetryPolicy { /** * Sets the max number of execution attempts to perform . { @ code - 1 } indicates no limit . This method has the same
* effect as setting 1 more than { @ link # withMaxRetries ( int ) } . For example , 2 retries equal 3 attempts .
* @ throws IllegalArgumentException if { @ code maxAtt... | Assert . isTrue ( maxAttempts != 0 , "maxAttempts cannot be 0" ) ; Assert . isTrue ( maxAttempts >= - 1 , "maxAttempts cannot be less than -1" ) ; this . maxRetries = maxAttempts == - 1 ? - 1 : maxAttempts - 1 ; return this ; |
public class DNSSEC { /** * Creates a byte array containing the concatenation of the fields of the
* SIG ( 0 ) record and the message to be signed . This does not perform
* a cryptographic digest .
* @ param sig The SIG record used to sign the rrset .
* @ param msg The message to be signed .
* @ param previou... | DNSOutput out = new DNSOutput ( ) ; digestSIG ( out , sig ) ; if ( previous != null ) out . writeByteArray ( previous ) ; msg . toWire ( out ) ; return out . toByteArray ( ) ; |
public class CQLStatementCache { /** * Create a prepared statement for the given query / table combo . */
private PreparedStatement prepareQuery ( String tableName , Query query ) { } } | // All queries start with SELECT * FROM < keyspace > . < table >
StringBuilder cql = new StringBuilder ( "SELECT * FROM " ) ; cql . append ( m_keyspace ) ; cql . append ( "." ) ; cql . append ( tableName ) ; switch ( query ) { case SELECT_1_ROW_1_COLUMN : cql . append ( " WHERE key = ? AND column1 = ?;" ) ; break ; cas... |
public class ApiOvhEmaildomain { /** * Get this object properties
* REST : GET / email / domain / delegatedAccount / { email } / responder
* @ param email [ required ] Email */
public OvhResponderAccount delegatedAccount_email_responder_GET ( String email ) throws IOException { } } | String qPath = "/email/domain/delegatedAccount/{email}/responder" ; StringBuilder sb = path ( qPath , email ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhResponderAccount . class ) ; |
public class AbstractCommandLineRunner { /** * Creates inputs from a list of source files , zips and json files .
* < p > Can be overridden by subclasses who want to pull files from different places .
* @ param files A list of flag entries indicates js and zip file names
* @ param jsonFiles A list of json encoded... | List < SourceFile > inputs = new ArrayList < > ( files . size ( ) ) ; boolean usingStdin = false ; int jsModuleIndex = 0 ; JsModuleSpec jsModuleSpec = Iterables . getFirst ( jsModuleSpecs , null ) ; int cumulatedInputFilesExpected = jsModuleSpec == null ? Integer . MAX_VALUE : jsModuleSpec . getNumInputs ( ) ; for ( in... |
public class WidgetsHtmlPanel { /** * Check if the { @ link Element Element } < code > root < / code > is attached to the
* widget . If it is the case , adopt the widget . If not , check if the chidren
* are linked to a widget to adopt them . */
protected void adoptSubWidgets ( Element root ) { } } | GQuery children = $ ( root ) . children ( ) ; for ( Element child : children . elements ( ) ) { Widget w = $ ( child ) . widget ( ) ; if ( w != null ) { doAdopt ( w ) ; } else { adoptSubWidgets ( child ) ; } } |
public class ApiOvhSms { /** * Add one or several sending jobs
* REST : POST / sms / { serviceName } / users / { login } / jobs
* @ param sender [ required ] The sender
* @ param _ class [ required ] [ default = phoneDisplay ] The sms class
* @ param receiversSlotId [ required ] The receivers document slot id
... | String qPath = "/sms/{serviceName}/users/{login}/jobs" ; StringBuilder sb = path ( qPath , serviceName , login ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "charset" , charset ) ; addBody ( o , "class" , _class ) ; addBody ( o , "coding" , coding ) ; addBody ( o , "differedPer... |
public class JavaWriter { /** * Prints a Java escaped string */
public void printJavaString ( String s ) throws IOException { } } | for ( int i = 0 ; i < s . length ( ) ; i ++ ) { char ch = s . charAt ( i ) ; switch ( ch ) { case '\\' : _os . print ( "\\\\" ) ; break ; case '\n' : _os . print ( "\\n" ) ; break ; case '\r' : _os . print ( "\\r" ) ; break ; case '"' : _os . print ( "\\\"" ) ; break ; default : _os . print ( ch ) ; } } |
public class StorageImportDispatcher { /** * Publishes any apis that were imported in the " Published " state .
* @ throws StorageException */
private void publishApis ( ) throws StorageException { } } | logger . info ( Messages . i18n . format ( "StorageExporter.PublishingApis" ) ) ; // $ NON - NLS - 1 $
try { for ( EntityInfo info : apisToPublish ) { logger . info ( Messages . i18n . format ( "StorageExporter.PublishingApi" , info ) ) ; // $ NON - NLS - 1 $
ApiVersionBean versionBean = storage . getApiVersion ( info ... |
public class SARLJvmModelInferrer { /** * Create a string concatenation client from a set of Java code lines .
* @ param javaCodeLines the Java code lines .
* @ return the client . */
private static StringConcatenationClient toStringConcatenation ( final String ... javaCodeLines ) { } } | return new StringConcatenationClient ( ) { @ Override protected void appendTo ( StringConcatenationClient . TargetStringConcatenation builder ) { for ( final String line : javaCodeLines ) { builder . append ( line ) ; builder . newLineIfNotEmpty ( ) ; } } } ; |
public class CommerceCountryPersistenceImpl { /** * Returns the number of commerce countries where groupId = & # 63 ; and twoLettersISOCode = & # 63 ; .
* @ param groupId the group ID
* @ param twoLettersISOCode the two letters iso code
* @ return the number of matching commerce countries */
@ Override public int... | FinderPath finderPath = FINDER_PATH_COUNT_BY_G_TW ; Object [ ] finderArgs = new Object [ ] { groupId , twoLettersISOCode } ; Long count = ( Long ) finderCache . getResult ( finderPath , finderArgs , this ) ; if ( count == null ) { StringBundler query = new StringBundler ( 3 ) ; query . append ( _SQL_COUNT_COMMERCECOUNT... |
public class NodeRegisterImpl { /** * { @ inheritDoc } */
public boolean isNodePresent ( String host , int port , String transport , String version ) { } } | if ( getNode ( host , port , transport , version ) != null ) { return true ; } return false ; |
public class SnpAdverseDrugReactionType { /** * Gets the value of the proteinNameAndGeneSymbolAndUniprotId property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why... | if ( proteinNameAndGeneSymbolAndUniprotId == null ) { proteinNameAndGeneSymbolAndUniprotId = new ArrayList < JAXBElement < String > > ( ) ; } return this . proteinNameAndGeneSymbolAndUniprotId ; |
public class AbstractMetadataIdGenerator { /** * Generates a eight character [ a - z0-9 ] system unique identifier .
* @ param id identifier of variable length
* @ return hashcode */
protected String generateHashcode ( Object id ) { } } | return Hashing . crc32 ( ) . hashString ( id . toString ( ) , UTF_8 ) . toString ( ) ; |
public class StickyListHeadersListView { /** * the API version */
@ SuppressLint ( "NewApi" ) private void setHeaderOffet ( int offset ) { } } | if ( mHeaderOffset == null || mHeaderOffset != offset ) { mHeaderOffset = offset ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { mHeader . setTranslationY ( mHeaderOffset ) ; } else { MarginLayoutParams params = ( MarginLayoutParams ) mHeader . getLayoutParams ( ) ; params . topMargin = mHeade... |
public class TSNE { /** * Update the current solution on iteration .
* @ param sol Solution matrix
* @ param meta Metadata array ( gradient , momentum , learning rate )
* @ param it Iteration number , to choose momentum factor . */
protected void updateSolution ( double [ ] [ ] sol , double [ ] meta , int it ) { ... | final double mom = ( it < momentumSwitch && initialMomentum < finalMomentum ) ? initialMomentum : finalMomentum ; final int dim3 = dim * 3 ; for ( int i = 0 , off = 0 ; i < sol . length ; i ++ , off += dim3 ) { final double [ ] sol_i = sol [ i ] ; for ( int k = 0 ; k < dim ; k ++ ) { // Indexes in meta array
final int ... |
public class OrderItem { /** * Add values for PromotionIds , return this .
* @ param promotionIds
* New values to add .
* @ return This instance . */
public OrderItem withPromotionIds ( String ... values ) { } } | List < String > list = getPromotionIds ( ) ; for ( String value : values ) { list . add ( value ) ; } return this ; |
public class FieldIterator { /** * Build the field list from the concrete and base record classes . */
private void scanSharedFields ( ) { } } | if ( ! m_bFirstTime ) return ; m_bFirstTime = false ; m_vFieldList = new Vector < FieldSummary > ( ) ; m_iCurrentIndex = 0 ; String strClassName = m_recClassInfo . getField ( ClassInfo . CLASS_NAME ) . toString ( ) ; // Step one - Get a list of all the base classes to the origin [ 0 ] = VirtualRecord .
m_rgstrClasses =... |
public class ParaClient { /** * Deletes multiple objects .
* @ param keys the ids of the objects to delete */
public void deleteAll ( List < String > keys ) { } } | if ( keys == null || keys . isEmpty ( ) ) { return ; } final int size = this . chunkSize ; IntStream . range ( 0 , getNumChunks ( keys , size ) ) . mapToObj ( i -> ( List < String > ) partitionList ( keys , i , size ) ) . forEach ( chunk -> { MultivaluedMap < String , String > ids = new MultivaluedHashMap < > ( ) ; ids... |
public class AbstractApplication { /** * Returns a usage message , explaining all known options
* @ param options Options to show in usage .
* @ return a usage message explaining all known options */
public static String usage ( Collection < TrackedParameter > options ) { } } | StringBuilder usage = new StringBuilder ( 10000 ) ; if ( ! REFERENCE_VERSION . equals ( VERSION ) ) { usage . append ( "ELKI build: " ) . append ( VERSION ) . append ( NEWLINE ) . append ( NEWLINE ) ; } usage . append ( REFERENCE ) ; // Collect options
OptionUtil . formatForConsole ( usage . append ( NEWLINE ) . append... |
public class JCloudsReader { /** * { @ inheritDoc } */
@ Override public IBucket read ( long pKey ) throws TTIOException { } } | // IBucket returnval = null ;
IBucket returnval = mCache . getIfPresent ( pKey ) ; if ( returnval == null ) { try { returnval = getAndprefetchBuckets ( pKey ) ; // reader . write ( returnval . getBucketKey ( ) + " , " + returnval . getClass ( ) . getName ( ) + " \ n " ) ;
// reader . flush ( ) ;
} catch ( Exception exc... |
public class DServer { String [ ] polled_device ( ) { } } | Util . out4 . println ( "In polled_device command" ) ; final int nb_class = class_list . size ( ) ; final Vector dev_name = new Vector ( ) ; for ( int i = 0 ; i < nb_class ; i ++ ) { final DeviceClass dc = ( DeviceClass ) class_list . elementAt ( i ) ; final int nb_dev = dc . get_device_list ( ) . size ( ) ; for ( int ... |
public class FetchBuddyListImpl { /** * ( non - Javadoc )
* @ see com . tvd12 . ezyfox . core . command . BaseCommand # execute ( ) */
@ SuppressWarnings ( { } } | "unchecked" , "rawtypes" } ) @ Override public List < ApiBuddy > execute ( ) { BuddyList buddyList = extension . getParentZone ( ) . getBuddyListManager ( ) . getBuddyList ( user ) ; return ( List ) buddyList . getBuddies ( ) ; |
public class ParaClient { /** * Returns the value of a specific app setting ( property ) .
* @ param key a key
* @ return a map containing one element { " value " : " the _ value " } or an empty map . */
public Map < String , Object > appSettings ( String key ) { } } | if ( StringUtils . isBlank ( key ) ) { return appSettings ( ) ; } return getEntity ( invokeGet ( Utils . formatMessage ( "_settings/{0}" , key ) , null ) , Map . class ) ; |
public class MockArtifactStore { /** * { @ inheritDoc } */
public synchronized Metadata getMetadata ( String path ) throws IOException , MetadataNotFoundException { } } | Metadata metadata = new Metadata ( ) ; boolean foundMetadata = false ; path = StringUtils . stripEnd ( StringUtils . stripStart ( path , "/" ) , "/" ) ; String groupId = path . replace ( '/' , '.' ) ; Set < String > pluginArtifactIds = getArtifactIds ( groupId ) ; if ( pluginArtifactIds != null ) { List < Plugin > plug... |
public class PageAwareAuthenticator { /** * Redirects to the configured authentication page , passing the target service as parameter " _ redirect _ " . */
protected void redirectToAuthenticationPage ( DataBinder binder ) { } } | if ( _page != null ) { binder . mul ( Service . SERVICE_HTTP_HEADER , String . class , String . class ) . add ( "Content-Type" , "text/html; charset=utf-8" ) ; binder . put ( Service . SERVICE_PAGE_TARGET , _page + "?_redirect_=" + binder . get ( Service . REQUEST_TARGET_PATH ) ) ; // _ logger . log ( Level . FINE , " ... |
public class DelegatedTokenCredentials { /** * Generate the URL to authenticate through OAuth2.
* @ param responseMode the method that should be used to send the resulting token back to your app
* @ param state a value included in the request that is also returned in the token response
* @ return the URL to authe... | return String . format ( "%s/%s/oauth2/authorize?client_id=%s&response_type=code&redirect_uri=%s&response_mode=%s&state=%s" , environment ( ) . activeDirectoryEndpoint ( ) , domain ( ) , clientId ( ) , this . redirectUrl , responseMode . value , state ) ; |
public class FileChooserCore { /** * Loads all the files of a folder in the file chooser .
* If no path is specified ( ' folder ' is null ) the root folder of the SD card is going to be used .
* @ param folder The folder . */
public void loadFolder ( File folder ) { } } | // Remove previous files .
LinearLayout root = this . chooser . getRootLayout ( ) ; LinearLayout layout = ( LinearLayout ) root . findViewById ( R . id . linearLayoutFiles ) ; layout . removeAllViews ( ) ; // Get the file path .
if ( folder == null || ! folder . exists ( ) ) { if ( defaultFolder != null ) { this . curr... |
public class ClassLoaderUtil { /** * Add file to CLASSPATH
* @ param s File name
* @ throws IOException IOException */
public static void addFile ( String s ) throws IOException { } } | File f = new File ( s ) ; addFile ( f ) ; |
public class CollapsiblePanel { /** * Set the collapsion state . */
public void setCollapsed ( boolean collapse ) { } } | if ( collapse ) { _content . setVisible ( false ) ; _trigger . setIcon ( _downIcon ) ; } else { _content . setVisible ( true ) ; _trigger . setIcon ( _upIcon ) ; } SwingUtil . refresh ( this ) ; |
public class OlympusCameraSettingsMakernoteDescriptor { /** * / < returns > < / returns > */
@ Nullable public String getAfPointSelectedDescription ( ) { } } | Rational [ ] values = _directory . getRationalArray ( TagAfPointSelected ) ; if ( values == null ) return "n/a" ; if ( values . length < 4 ) return null ; int index = 0 ; if ( values . length == 5 && values [ 0 ] . longValue ( ) == 0 ) index = 1 ; int p1 = ( int ) ( values [ index ] . doubleValue ( ) * 100 ) ; int p2 =... |
public class NodeDetailsDeriver { /** * This method calculates the actual time associated with the
* supplied node .
* @ param n The node
* @ return The actual time spent in the node */
protected long calculateActualTime ( Node n ) { } } | long childElapsed = 0 ; if ( n . containerNode ( ) ) { long startTime = n . getTimestamp ( ) + n . getDuration ( ) ; long endTime = n . getTimestamp ( ) ; for ( int i = 0 ; i < ( ( ContainerNode ) n ) . getNodes ( ) . size ( ) ; i ++ ) { Node child = ( ( ContainerNode ) n ) . getNodes ( ) . get ( i ) ; if ( child . get... |
public class MeasureToViewMap { /** * Resume stats collection for all MutableViewData . */
synchronized void resumeStatsCollection ( Timestamp now ) { } } | for ( Entry < String , Collection < MutableViewData > > entry : mutableMap . asMap ( ) . entrySet ( ) ) { for ( MutableViewData mutableViewData : entry . getValue ( ) ) { mutableViewData . resumeStatsCollection ( now ) ; } } |
public class DRUMS { /** * Reads < code > numberToRead < / code > elements ( or less if there are not enough elements ) from the bucket with the
* given < code > bucketId < / code > beginning at the element offset .
* @ param bucketId
* the id of the bucket where to read the elements from
* @ param elementOffse... | String filename = gp . DATABASE_DIRECTORY + "/" + hashFunction . getFilename ( bucketId ) ; HeaderIndexFile < Data > indexFile = new HeaderIndexFile < Data > ( filename , HeaderIndexFile . AccessMode . READ_ONLY , gp . HEADER_FILE_LOCK_RETRY , gp ) ; List < Data > result = new ArrayList < Data > ( ) ; // where to start... |
public class StaticFieldELResolver { /** * < p > Returns the type of a static field . < / p >
* < p > If the base object is an instance of < code > ELClass < / code > and the
* property is a String ,
* the < code > propertyResolved < / code > property of the
* < code > ELContext < / code > object must be set to... | if ( context == null ) { throw new NullPointerException ( ) ; } if ( base instanceof ELClass && property instanceof String ) { Class < ? > klass = ( ( ELClass ) base ) . getKlass ( ) ; String fieldName = ( String ) property ; try { context . setPropertyResolved ( true ) ; Field field = klass . getField ( fieldName ) ; ... |
public class ModulePersonalAccessTokens { /** * Create a new personal access token .
* This method is the _ only _ time you will see the personal access token value . Please keep
* it save after this call , because a { @ link # fetchAll ( ) } or a { @ link # fetchOne ( String ) } will
* _ not _ return it !
* @ ... | final CMASystem sys = token . getSystem ( ) ; token . setSystem ( null ) ; try { return service . create ( token ) . blockingFirst ( ) ; } finally { token . setSystem ( sys ) ; } |
public class GetGlue { /** * Set the { @ link retrofit . RestAdapter } log levels .
* @ param isDebug If true , the log level is set to { @ link retrofit . RestAdapter . LogLevel # FULL } . Otherwise { @ link
* retrofit . RestAdapter . LogLevel # NONE } . */
public GetGlue setIsDebug ( boolean isDebug ) { } } | this . isDebug = isDebug ; RestAdapter . LogLevel logLevel = isDebug ? RestAdapter . LogLevel . FULL : RestAdapter . LogLevel . NONE ; if ( restAdapter != null ) { restAdapter . setLogLevel ( logLevel ) ; } if ( restAdapterApiFour != null ) { restAdapterApiFour . setLogLevel ( logLevel ) ; } return this ; |
public class EmbedBuilder { /** * Checks if the given embed is empty . Empty embeds will throw an exception if built
* @ return true if the embed is empty and cannot be built */
public boolean isEmpty ( ) { } } | return title == null && description . length ( ) == 0 && timestamp == null // & & color = = null color alone is not enough to send
&& thumbnail == null && author == null && footer == null && image == null && fields . isEmpty ( ) ; |
public class InMemoryHandler { /** * ( non - Javadoc )
* @ see net . roboconf . target . api . TargetHandler
* # isMachineRunning ( net . roboconf . target . api . TargetHandlerParameters , java . lang . String ) */
@ Override public boolean isMachineRunning ( TargetHandlerParameters parameters , String machineId )... | this . logger . fine ( "Verifying the in-memory agent for " + machineId + " is running." ) ; Map < String , String > targetProperties = preventNull ( parameters . getTargetProperties ( ) ) ; // No agent factory = > no iPojo instance = > not running
boolean result = false ; if ( this . standardAgentFactory != null ) res... |
public class CompassImageView { /** * onDraw override .
* If animation is " on " , view is invalidated after each redraw ,
* to perform recalculation on every loop of UI redraw */
@ Override public void onDraw ( Canvas canvas ) { } } | if ( animationOn ) { if ( angleRecalculate ( new Date ( ) . getTime ( ) ) ) { this . setRotation ( angle1 ) ; } } else { this . setRotation ( angle1 ) ; } super . onDraw ( canvas ) ; if ( animationOn ) { this . invalidate ( ) ; } |
public class InputGateMetrics { /** * Iterates over all input channels and collects the total number of queued buffers in a
* best - effort way .
* @ return total number of queued buffers */
long refreshAndGetTotal ( ) { } } | long total = 0 ; for ( InputChannel channel : inputGate . getInputChannels ( ) . values ( ) ) { if ( channel instanceof RemoteInputChannel ) { RemoteInputChannel rc = ( RemoteInputChannel ) channel ; total += rc . unsynchronizedGetNumberOfQueuedBuffers ( ) ; } } return total ; |
public class PreferenceActivity { /** * Shows a specific bread crumb . When using the split screen layout , the bread crumb is shown
* above the currently shown preference fragment , otherwise the bread crumb is shown as the
* toolbar title .
* @ param breadCrumbTitle
* The bread crumb title , which should be s... | CharSequence formattedBreadCrumbTitle = formatBreadCrumbTitle ( breadCrumbTitle ) ; if ( isSplitScreen ( ) ) { breadCrumbToolbar . setTitle ( formattedBreadCrumbTitle ) ; } else if ( ! TextUtils . isEmpty ( formattedBreadCrumbTitle ) ) { showTitle ( formattedBreadCrumbTitle ) ; } |
public class MapView { private boolean doSetScale ( double scale ) { } } | boolean res = Math . abs ( viewState . getScale ( ) - scale ) > .0000001 ; viewState = viewState . copyAndSetScale ( scale ) ; return res ; |
public class ClusterTierActiveEntity { /** * Send a { @ link PassiveReplicationMessage } to the passive , reuse the same transaction id and client id as the original message since this
* original message won ' t ever be sent to the passive and these ids will be used to prevent duplication if the active goes down and ... | try { long clientId = context . getClientSource ( ) . toLong ( ) ; entityMessenger . messageSelfAndDeferRetirement ( message , new PassiveReplicationMessage . ChainReplicationMessage ( message . getKey ( ) , newChain , context . getCurrentTransactionId ( ) , context . getOldestTransactionId ( ) , clientId ) ) ; } catch... |
public class IntervalLogStream { /** * Starts up a thread that automatically rolls the underlying OutputStream
* at the beginning of the interval , even if no output is written . */
public synchronized void startAutoRollover ( ) { } } | // TODO : If java . util . Timer class is available , use it instead of
// creating a thread each time .
if ( mRolloverThread == null ) { mRolloverThread = new Thread ( new AutoRollover ( this ) , nextName ( ) ) ; mRolloverThread . setDaemon ( true ) ; mRolloverThread . start ( ) ; } |
public class ConverterUtils { /** * Returns the new { @ link CellValue } from provided { @ link org . apache . poi . ss . usermodel . CellValue } . */
public static ICellValue resolveCellValue ( org . apache . poi . ss . usermodel . CellValue cellval ) { } } | if ( cellval == null ) { return CellValue . BLANK ; } switch ( cellval . getCellType ( ) ) { case CELL_TYPE_NUMERIC : { return CellValue . from ( cellval . getNumberValue ( ) ) ; } case CELL_TYPE_STRING : { return CellValue . from ( cellval . getStringValue ( ) ) ; } case CELL_TYPE_BOOLEAN : { return CellValue . from (... |
public class DatabaseClientSnippets { /** * [ VARIABLE my _ singer _ id ] */
public String singleUseStale ( long singerId ) { } } | // [ START singleUseStale ]
String column = "FirstName" ; Struct row = dbClient . singleUse ( TimestampBound . ofMaxStaleness ( 10 , TimeUnit . SECONDS ) ) . readRow ( "Singers" , Key . of ( singerId ) , Collections . singleton ( column ) ) ; String firstName = row . getString ( column ) ; // [ END singleUseStale ]
ret... |
public class CommerceNotificationTemplatePersistenceImpl { /** * Returns an ordered range of all the commerce notification templates where groupId = & # 63 ; and type = & # 63 ; and enabled = & # 63 ; .
* Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start ... | return findByG_T_E ( groupId , type , enabled , start , end , orderByComparator , true ) ; |
public class TransformXMLInterceptor { /** * Creates a new Transformer instance using cached XSLT Templates . There will be one cached template . Transformer
* instances are not thread - safe and cannot be reused ( they can after the transformation is complete ) .
* @ return A new Transformer instance . */
private ... | if ( TEMPLATES == null ) { throw new IllegalStateException ( "TransformXMLInterceptor not initialized." ) ; } try { return TEMPLATES . newTransformer ( ) ; } catch ( TransformerConfigurationException ex ) { throw new SystemException ( "Could not create transformer for " + RESOURCE_NAME , ex ) ; } |
public class CClassLoader { /** * Return a list of jar and classes located in path
* @ param path
* the path in which to search
* @ return a list of jar and classes located in path */
public static URL [ ] getURLs ( final String path ) { } } | final File topDir = new File ( path ) ; final List list = new ArrayList ( ) ; CClassLoader . getClasses ( topDir , list ) ; final URL ret [ ] = new URL [ list . size ( ) + 1 ] ; for ( int i = 0 ; i < list . size ( ) ; i ++ ) { ret [ i ] = ( URL ) list . get ( i ) ; } try { ret [ list . size ( ) ] = topDir . toURI ( ) .... |
public class MessageFormat { /** * Parse the argument as a date - time with the format - wide time zone . */
private ZonedDateTime parseDateTime ( MessageArg arg ) { } } | long instant = arg . asLong ( ) ; ZoneId timeZone = arg . timeZone ( ) != null ? arg . timeZone ( ) : this . timeZone ; return ZonedDateTime . ofInstant ( Instant . ofEpochMilli ( instant ) , timeZone ) ; |
public class ReflectionFormat { /** * { @ inheritDoc } */
@ Override public T newInstance ( final Class < T > clazz , final javolution . xml . XMLFormat . InputElement xml ) throws XMLStreamException { } } | try { return _constructor . newInstance ( INITARGS ) ; } catch ( final Exception e ) { throw new XMLStreamException ( e ) ; } |
public class Bucket { /** * Creates a new blob in this bucket . Direct upload is used to upload { @ code content } . For large
* content , { @ link Blob # writer ( com . google . cloud . storage . Storage . BlobWriteOption . . . ) } is
* recommended as it uses resumable upload . MD5 and CRC32C hashes of { @ code co... | BlobInfo blobInfo = BlobInfo . newBuilder ( BlobId . of ( getName ( ) , blob ) ) . setContentType ( contentType ) . build ( ) ; Tuple < BlobInfo , Storage . BlobTargetOption [ ] > target = BlobTargetOption . toTargetOptions ( blobInfo , options ) ; return storage . create ( target . x ( ) , content , target . y ( ) ) ; |
public class AccountsInner { /** * Updates the specified Data Lake Analytics account to include the additional Data Lake Store account .
* @ param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account .
* @ param accountName The name of the Data Lake Analytics account ... | return ServiceFuture . fromResponse ( addDataLakeStoreAccountWithServiceResponseAsync ( resourceGroupName , accountName , dataLakeStoreAccountName , parameters ) , serviceCallback ) ; |
public class MtasSolrCollectionCache { /** * Creates the .
* @ param id the id
* @ param size the size
* @ param data the data
* @ return the string
* @ throws IOException Signals that an I / O exception has occurred . */
public String create ( String id , Integer size , HashSet < String > data , String origi... | if ( collectionCachePath != null ) { // initialization
Date date = clear ( ) ; // create always new version , unless explicit original version is provided
String version ; if ( originalVersion != null && versionToItem . containsKey ( originalVersion ) ) { version = originalVersion ; } else { do { version = UUID . rando... |
public class ScatterChartModel { /** * Returns the value with the given index of the given dimension .
* @ param dim Reference dimension for value extraction
* @ param index Index of the desired value
* @ return Value with the given index of the given dimension */
@ Override public Number getValue ( ValueDimensio... | return values . get ( dim ) . get ( index ) ; |
public class NettyServerHandler { /** * Handler for the Channel shutting down . */
@ Override public void channelInactive ( ChannelHandlerContext ctx ) throws Exception { } } | try { if ( keepAliveManager != null ) { keepAliveManager . onTransportTermination ( ) ; } if ( maxConnectionIdleManager != null ) { maxConnectionIdleManager . onTransportTermination ( ) ; } if ( maxConnectionAgeMonitor != null ) { maxConnectionAgeMonitor . cancel ( false ) ; } final Status status = Status . UNAVAILABLE... |
public class JobStepsInner { /** * Creates or updates a job step . This will implicitly create a new job version .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal .
* @ param serverName The name of th... | return createOrUpdateWithServiceResponseAsync ( resourceGroupName , serverName , jobAgentName , jobName , stepName , parameters ) . map ( new Func1 < ServiceResponse < JobStepInner > , JobStepInner > ( ) { @ Override public JobStepInner call ( ServiceResponse < JobStepInner > response ) { return response . body ( ) ; }... |
public class RestTemplateTransportClientFactory { /** * Provides the serialization configurations required by the Eureka Server . JSON
* content exchanged with eureka requires a root node matching the entity being
* serialized or deserialized . Achived with
* { @ link SerializationFeature # WRAP _ ROOT _ VALUE } ... | MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter ( ) ; converter . setObjectMapper ( new ObjectMapper ( ) . setPropertyNamingStrategy ( PropertyNamingStrategy . SNAKE_CASE ) ) ; SimpleModule jsonModule = new SimpleModule ( ) ; jsonModule . setSerializerModifier ( createJsonSeriali... |
public class HttpBody { /** * Appends the given { @ code contents } to the body , up to a certain length .
* If the { @ code contents } are { @ code null } or the { @ code length } negative or zero , the call to this method has no effect .
* @ param contents the contents to append , might be { @ code null }
* @ p... | if ( contents == null || length <= 0 ) { return ; } int len = Math . min ( contents . length , length ) ; if ( pos + len > body . length ) { byte [ ] newBody = new byte [ pos + len ] ; System . arraycopy ( body , 0 , newBody , 0 , pos ) ; body = newBody ; } System . arraycopy ( contents , 0 , body , pos , len ) ; pos +... |
public class CmsJspStandardContextBean { /** * Returns if the current page is used to manage model groups . < p >
* @ return < code > true < / code > if the current page is used to manage model groups */
public boolean isModelGroupPage ( ) { } } | CmsResource page = getPageResource ( ) ; return ( page != null ) && CmsContainerpageService . isEditingModelGroups ( m_cms , page ) ; |
public class SavedHistoryCache { public synchronized void record ( String historyKey , LaJobHistory jobHistory , int limit ) { } } | if ( historyMap . size ( ) >= limit ) { final String removedKey = historyKeyList . remove ( 0 ) ; historyMap . remove ( removedKey ) ; } historyMap . put ( historyKey , jobHistory ) ; historyKeyList . add ( historyKey ) ; |
public class StreamsUtils { /** * < p > Generates a stream by regrouping the elements of the provided stream and putting them in a substream .
* This grouping operation scans the elements of the stream using the splitter predicate . When this predicate
* returns true , then the elements of the stream are accumulate... | Objects . requireNonNull ( stream ) ; Objects . requireNonNull ( splitter ) ; GroupingOnSplittingSpliterator < E > spliterator = GroupingOnSplittingSpliterator . of ( stream . spliterator ( ) , splitter , included ) ; return StreamSupport . stream ( spliterator , stream . isParallel ( ) ) . onClose ( stream :: close ) ... |
public class DoubleStream { /** * Performs a reduction on the elements of this stream , using an
* associative accumulation function , and returns an { @ code OptionalDouble }
* describing the reduced value , if any .
* < p > The { @ code accumulator } function must be an associative function .
* < p > This is ... | boolean foundAny = false ; double result = 0 ; while ( iterator . hasNext ( ) ) { final double value = iterator . nextDouble ( ) ; if ( ! foundAny ) { foundAny = true ; result = value ; } else { result = accumulator . applyAsDouble ( result , value ) ; } } return foundAny ? OptionalDouble . of ( result ) : OptionalDoub... |
public class HpelHelper { /** * D512713 - method to convert non - printable chars into a printable string for the log . */
private final static String escape ( String src ) { } } | if ( src == null ) { return "" ; } StringBuffer result = null ; for ( int i = 0 , max = src . length ( ) , delta = 0 ; i < max ; i ++ ) { char c = src . charAt ( i ) ; if ( ! Character . isWhitespace ( c ) && Character . isISOControl ( c ) || Character . getType ( c ) == Character . UNASSIGNED ) { String hexVal = Integ... |
public class ChannelFlushPromiseNotifier { /** * Notify all { @ link ChannelFuture } s that were registered with { @ link # add ( ChannelPromise , int ) } and
* their pendingDatasize is smaller then the current writeCounter returned by { @ link # writeCounter ( ) } using
* the given cause1.
* After a { @ link Cha... | notifyPromises0 ( cause1 ) ; for ( ; ; ) { FlushCheckpoint cp = flushCheckpoints . poll ( ) ; if ( cp == null ) { break ; } if ( tryNotify ) { cp . promise ( ) . tryFailure ( cause2 ) ; } else { cp . promise ( ) . setFailure ( cause2 ) ; } } return this ; |
public class HtmlTableTemplate { /** * Get the TD element
* @ param root
* @ param column
* @ param row
* @ return */
public static TableCellElement getCell ( Element root , int column , int row ) { } } | TableSectionElement tbody = getTBodyElement ( root ) ; TableRowElement tr = tbody . getChild ( row ) . cast ( ) ; TableCellElement td = tr . getChild ( column ) . cast ( ) ; return td ; |
public class OpentracingService { /** * " An Tags . ERROR tag SHOULD be added to a Span on failed operations .
* It means for any server error ( 5xx ) codes . If there is an exception
* object available the implementation SHOULD also add logs event = error
* and error . object = < error object instance > to the a... | String methodName = "addSpanErrorInfo" ; span . setTag ( Tags . ERROR . getKey ( ) , true ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , methodName + " error" , Boolean . TRUE ) ; } if ( exception != null ) { Map < String , Object > log = new HashMap < > ( ) ; // http... |
public class InternalXbaseParser { /** * InternalXbase . g : 1433:1 : entryRuleXReturnExpression : ruleXReturnExpression EOF ; */
public final void entryRuleXReturnExpression ( ) throws RecognitionException { } } | try { // InternalXbase . g : 1434:1 : ( ruleXReturnExpression EOF )
// InternalXbase . g : 1435:1 : ruleXReturnExpression EOF
{ if ( state . backtracking == 0 ) { before ( grammarAccess . getXReturnExpressionRule ( ) ) ; } pushFollow ( FOLLOW_1 ) ; ruleXReturnExpression ( ) ; state . _fsp -- ; if ( state . failed ) ret... |
public class Schemas { /** * Index info from IndexDefinition
* @ param indexReference
* @ param schemaRead
* @ param tokens
* @ return */
private IndexConstraintNodeInfo nodeInfoFromIndexDefinition ( IndexReference indexReference , SchemaRead schemaRead , TokenNameLookup tokens ) { } } | int [ ] labelIds = indexReference . schema ( ) . getEntityTokenIds ( ) ; if ( labelIds . length != 1 ) throw new IllegalStateException ( "Index with more than one label" ) ; String labelName = tokens . labelGetName ( labelIds [ 0 ] ) ; List < String > properties = new ArrayList < > ( ) ; Arrays . stream ( indexReferenc... |
public class DetectPolygonFromContour { /** * Checks to see if some part of the contour touches the image border . Most likely cropped */
protected final boolean touchesBorder ( List < Point2D_I32 > contour ) { } } | int endX = imageWidth - 1 ; int endY = imageHeight - 1 ; for ( int j = 0 ; j < contour . size ( ) ; j ++ ) { Point2D_I32 p = contour . get ( j ) ; if ( p . x == 0 || p . y == 0 || p . x == endX || p . y == endY ) { return true ; } } return false ; |
public class RMIRegistryManager { /** * Checks if a service is exported on the rmi registry with specified port .
* @ param port
* @ return true if rmiregistry is running on the specified port and service
* is exported on the rmi registry , false otherwise */
public static boolean isServiceExported ( Configuratio... | if ( serviceName == null ) return false ; try { final Registry registry = RegistryFinder . getInstance ( ) . getRegistry ( configuration , port ) ; String [ ] list = registry . list ( ) ; if ( list != null ) { for ( int i = 0 ; i < list . length ; i ++ ) { if ( serviceName . equals ( list [ i ] ) ) return true ; } } } ... |
public class CustomizedProcessor { /** * ~ Methoden - - - - - */
@ Override public int print ( ChronoDisplay formattable , Appendable buffer , AttributeQuery attributes , Set < ElementPosition > positions , // optional
boolean quickPath ) throws IOException { } } | if ( quickPath && this . optPrinter ) { attributes = ChronoFormatter . class . cast ( this . printer ) . getAttributes ( ) ; } // special optimization avoiding double conversion from Moment to ZonalDateTime
if ( this . passThroughZDT && ( formattable instanceof ZonalDateTime ) && ( positions == null ) ) { ChronoFormatt... |
public class ThrottlingException { /** * The payload associated with the exception .
* The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service .
* Users of the SDK should not perform Base64 encoding on this field .
* Warning : ByteBuffers returned by the SDK ar... | this . payload = payload ; |
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public EClass getIfcTimeMeasure ( ) { } } | if ( ifcTimeMeasureEClass == null ) { ifcTimeMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 886 ) ; } return ifcTimeMeasureEClass ; |
public class DataSynchronizer { /** * Adds and returns a document with a new version to the given document .
* @ param document the document to attach a new version to .
* @ param newVersion the version to attach to the document
* @ return a document with a new version to the given document . */
private static Bs... | final BsonDocument newDocument = BsonUtils . copyOfDocument ( document ) ; newDocument . put ( DOCUMENT_VERSION_FIELD , newVersion ) ; return newDocument ; |
public class SQLSupport { /** * Create a SQL order fragment from the list of { @ link Sort } objects . This fragment does not begin with
* ORDER BY and is just the < i > fragment < / i > for such a clause . If the given list of
* sorts contains a sort with sort expression " foo " and sort direction { @ link SortDir... | if ( sorts == null || sorts . size ( ) == 0 ) return EMPTY ; InternalStringBuilder sql = new InternalStringBuilder ( ) ; internalCreateOrderByFragment ( sql , sorts ) ; return sql . toString ( ) ; |
public class SingleSubscriberProcessor { /** * Get the current { @ link Subscriber } .
* @ return The { @ link Subscriber }
* @ throws IllegalStateException if the subscriber is not present */
protected Subscriber < ? super R > getSubscriber ( ) { } } | Subscriber < ? super R > subscriber = this . subscriber . get ( ) ; verifyState ( subscriber ) ; return subscriber ; |
public class Caster { /** * cast a Object to a Query Object
* @ param o Object to cast
* @ param duplicate duplicate the object or not
* @ param defaultValue
* @ return casted Query Object */
public static Query toQuery ( Object o , boolean duplicate , Query defaultValue ) { } } | try { return toQuery ( o , duplicate ) ; } catch ( PageException e ) { return defaultValue ; } |
public class EthereumUtil { /** * Determines the size of a RLP list . Note : it does not change the position in the ByteBuffer
* @ param bb
* @ return - 1 if not an RLP encoded list , otherwise size of list INCLUDING the prefix of the list ( e . g . byte that indicates that it is a list and size of list in bytes ) ... | long result = - 1 ; bb . mark ( ) ; byte detector = bb . get ( ) ; int unsignedDetector = detector & 0xFF ; if ( ( unsignedDetector >= 0xc0 ) && ( unsignedDetector <= 0xf7 ) ) { result = unsignedDetector ; // small list
} else if ( ( unsignedDetector >= 0xf8 ) && ( unsignedDetector <= 0xff ) ) { // the first byte
// la... |
public class AbstractCompensatingTransactionManagerDelegate { /** * @ seeorg . springframework . jdbc . datasource . DataSourceTransactionManager #
* doGetTransaction ( ) */
public Object doGetTransaction ( ) throws TransactionException { } } | CompensatingTransactionHolderSupport holder = ( CompensatingTransactionHolderSupport ) TransactionSynchronizationManager . getResource ( getTransactionSynchronizationKey ( ) ) ; return new CompensatingTransactionObject ( holder ) ; |
public class FnLong { /** * Determines whether the target object and the specified object are NOT equal
* by calling the < tt > equals < / tt > method on the target object .
* @ param object the { @ link Long } to compare to the target
* @ return false if both objects are equal , true if not . */
public static fi... | return ( Function < Long , Boolean > ) ( ( Function ) FnObject . notEq ( object ) ) ; |
public class KieBuilderImpl { /** * This can be used for performance reason to avoid the recomputation of the pomModel when it is already available */
public void setPomModel ( PomModel pomModel ) { } } | this . pomModel = pomModel ; if ( srcMfs . isAvailable ( "pom.xml" ) ) { this . pomXml = srcMfs . getBytes ( "pom.xml" ) ; } |
public class BaseCommandTask { /** * Returns the value at i + 1 , guarding against ArrayOutOfBound exceptions .
* If the next element is not a value but an argument flag ( starts with - )
* return null .
* @ return String value as defined above , or { @ code null } if at end of args . */
protected String getValue... | String [ ] split = arg . split ( "=" ) ; if ( split . length == 1 ) { return null ; } else if ( split . length == 2 ) { return split [ 1 ] ; } else { // Handle DN case with multiple = s
StringBuffer value = new StringBuffer ( ) ; for ( int i = 1 ; i < split . length ; i ++ ) { value . append ( split [ i ] ) ; if ( i < ... |
public class FileSystem { /** * Filter files / directories in the given path using the user - supplied path
* filter . Results are added to the given array < code > results < / code > . */
private void listStatus ( ArrayList < FileStatus > results , Path f , PathFilter filter ) throws IOException { } } | FileStatus listing [ ] = listStatus ( f ) ; if ( listing == null ) { throw new FileNotFoundException ( "File " + f + " does not exist" ) ; } for ( int i = 0 ; i < listing . length ; i ++ ) { if ( filter . accept ( listing [ i ] . getPath ( ) ) ) { results . add ( listing [ i ] ) ; } } |
public class PatternUtils { /** * Pre - processes the pattern by handling backslash escapes such as \ b and \ 007. */
public static String preProcessPattern ( String pattern ) { } } | int index = pattern . indexOf ( '\\' ) ; if ( index < 0 ) { return pattern ; } StringBuilder sb = new StringBuilder ( ) ; for ( int pos = 0 ; pos < pattern . length ( ) ; ) { char ch = pattern . charAt ( pos ) ; if ( ch != '\\' ) { sb . append ( ch ) ; pos ++ ; continue ; } if ( pos + 1 >= pattern . length ( ) ) { // w... |
public class JmesPathCodeGenVisitor { /** * Generates the code for a new JmesPathSubExpression .
* @ param subExpression JmesPath subexpression type
* @ param aVoid void
* @ return String that represents a call to
* the new subexpression
* @ throws InvalidTypeException */
@ Override public String visit ( fina... | final String prefix = "new JmesPathSubExpression( " ; return subExpression . getExpressions ( ) . stream ( ) . map ( a -> a . accept ( this , aVoid ) ) . collect ( Collectors . joining ( "," , prefix , ")" ) ) ; |
public class CommsByteBuffer { /** * This method will fill a buffer list with WsByteBuffer ' s that when put together form a
* packet describing an exception and it ' s linked exceptions . It will traverse down the cause
* exceptions until one of them is null .
* @ param throwable The exception to examine .
* @... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "putException" , new Object [ ] { throwable , probeId , conversation } ) ; Throwable currentException = throwable ; // First we need to work out how many exceptions to send back
short numberOfExceptions = 0 ; while ( ... |
public class MesosToSchedulerDriverAdapter { /** * Broken out into a separate function to allow testing with custom ` Mesos ` implementations . */
@ VisibleForTesting protected Mesos startInternal ( ) { } } | String version = System . getenv ( "MESOS_API_VERSION" ) ; if ( version == null ) { version = "V0" ; } LOGGER . info ( "Using Mesos API version: {}" , version ) ; if ( version . equals ( "V0" ) ) { if ( credential == null ) { return new V0Mesos ( this , frameworkInfo , master ) ; } else { return new V0Mesos ( this , fr... |
public class GoroService { /** * Initialize GoroService which will allow you to use { @ code Goro . bindXXX } methods .
* @ param context context instance used to enable GoroService component
* @ param goro instance of Goro that should be used by the service */
public static void setup ( final Context context , fin... | if ( goro == null ) { throw new IllegalArgumentException ( "Goro instance cannot be null" ) ; } if ( ! Util . checkMainThread ( ) ) { throw new IllegalStateException ( "GoroService.setup must be called on the main thread" ) ; } GoroService . goro = goro ; context . getPackageManager ( ) . setComponentEnabledSetting ( n... |
public class AnycastOutputHandler { /** * Method to handle a ControlBrowseGet message from an RME
* @ param remoteME The UUID of the RME
* @ param browseId The unique browseId , relative to this RME
* @ param selector The selector , valid only when seqNum = 0
* @ param seqNum The cursor position in the browse *... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "handleControlBrowseGet" , new Object [ ] { remoteME , gatheringTargetDestUuid , Long . valueOf ( browseId ) , criteria , Long . valueOf ( seqNum ) } ) ; // first we see if there is an existing AOBrowseSession
AOBrowserSessi... |
public class Utility_Validation { public static void displayTargetsData ( AnnotationTargetsImpl_Targets annotationTargets , PrintWriter writer ) { } } | Util_BidirectionalMap packageData = annotationTargets . getPackageAnnotationData ( ) ; int uniquePackages = packageData . getHolderSet ( ) . size ( ) ; int uniquePackageAnnotations = packageData . getHeldSet ( ) . size ( ) ; Util_BidirectionalMap classData = annotationTargets . getClassAnnotationData ( ) ; int uniqueCl... |
public class SpecTopic { /** * Gets the list of Level Relationships for this topic whose type is " PREREQUISITE " .
* @ return A list of prerequisite level relationships */
public List < TargetRelationship > getPrerequisiteLevelRelationships ( ) { } } | final ArrayList < TargetRelationship > relationships = new ArrayList < TargetRelationship > ( ) ; for ( final TargetRelationship relationship : levelRelationships ) { if ( relationship . getType ( ) == RelationshipType . PREREQUISITE ) { relationships . add ( relationship ) ; } } return relationships ; |
public class TrafficForecastAdjustment { /** * Gets the forecastAdjustmentSegments value for this TrafficForecastAdjustment .
* @ return forecastAdjustmentSegments * Each adjustment segment is a forecast adjustment targeting
* a continuous date range . */
public com . google . api . ads . admanager . axis . v201902... | return forecastAdjustmentSegments ; |
public class DataTableCore { /** * Optional parameter defining which columns are selected when the datatable is initially rendered . If this attribute is an integer , it ' s the column index . If it ' s a string , it ' s a jQuery expression . Automatically sets selection = ' true ' and selected - items = ' column ' . <... | return ( java . lang . Object ) getStateHelper ( ) . eval ( PropertyKeys . selectedColumn ) ; |
public class ExampleProvider { /** * 根据Example更新
* @ param ms
* @ return */
public String updateByExample ( MappedStatement ms ) { } } | Class < ? > entityClass = getEntityClass ( ms ) ; StringBuilder sql = new StringBuilder ( ) ; if ( isCheckExampleEntityClass ( ) ) { sql . append ( SqlHelper . exampleCheck ( entityClass ) ) ; } // 安全更新 , Example 必须包含条件
if ( getConfig ( ) . isSafeUpdate ( ) ) { sql . append ( SqlHelper . exampleHasAtLeastOneCriteriaChe... |
public class PullerInternal { /** * Implementation of BlockingQueueListener . changed ( EventType , Object , BlockingQueue ) for Pull Replication
* Note : Pull replication needs to send IDLE after PUT / { db } / _ local .
* However sending IDLE from Push replicator breaks few unit test cases .
* This is reason ch... | if ( ( type == EventType . PUT || type == EventType . ADD ) && isContinuous ( ) && ! queue . isEmpty ( ) ) { synchronized ( lockWaitForPendingFutures ) { if ( waitingForPendingFutures ) { return ; } } fireTrigger ( ReplicationTrigger . RESUME ) ; waitForPendingFuturesWithNewThread ( ) ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.