gets all the provided trained config model objects note : this does no expansion on the ids it assumes that there are fewer than 1 0k

public void get trained models ( set < string > model ids , get trained models action includes includes , boolean allow no resources , final action listener < list < trained model config > > final listener ) { query builder query builder = query builders constant score query ( query builders ids query ( ) add ids ( model ids to array ( new string [ 0 ] ) ) ) ; search request search request = client prepare search ( inference index constants index pattern ) add sort ( trained model config model id get preferred name ( ) , sort order asc ) add sort ( " index " , sort order desc ) set query ( query builder ) set size ( model ids size ( ) ) request ( ) ; list < trained model config builder > configs = new array list < > ( model ids size ( ) ) ; set < string > models in index = sets difference ( model ids , models stored as resource ) ; set < string > models as resource = sets intersection ( models stored as resource , model ids ) ; for ( string model id : models as resource ) { try { configs add ( load model from resource ( model id , true ) ) ; } catch ( elasticsearch exception ex ) { final listener on failure ( ex ) ; return ; } } if ( models in index is empty ( ) ) { final listener on response ( configs stream ( ) map ( trained model config builder : : build ) sorted ( comparator comparing ( trained model config : : get model id ) ) collect ( collectors to list ( ) ) ) ; return ; } action listener < list < trained model config builder > > get trained model listener = action listener wrap ( model builders - > { if ( ( includes is include feature importance baseline ( ) | | includes is include total feature importance ( ) | | includes is include hyperparameters ( ) ) = = false ) { final listener on response ( model builders stream ( ) map ( trained model config builder : : build ) sorted ( comparator comparing ( trained model config : : get model id ) ) collect ( collectors to list ( ) ) ) ; return ; } this get trained model metadata ( model ids , action listener wrap ( metadata - > final listener on response ( model builders stream ( ) map ( builder - > { trained model metadata model metadata = metadata get ( builder get model id ( ) ) ; if ( model metadata ! = null ) { if ( includes is include total feature importance ( ) ) { builder set feature importance ( model metadata get total feature importances ( ) ) ; } if ( includes is include feature importance baseline ( ) ) { builder set baseline feature importance ( model metadata get feature importance baselines ( ) ) ; } if ( includes is include hyperparameters ( ) ) { builder set hyperparameters ( model metadata get hyperparameters ( ) ) ; } } return builder build ( ) ; } ) sorted ( comparator comparing ( trained model config : : get model id ) ) collect ( collectors to list ( ) ) ) , failure - > { / / total feature importance is not necessary for a model to be valid / / we shouldn ' t fail if it is not found if ( exceptions helper unwrap cause ( failure ) instanceof resource not found exception ) { final listener on response ( model builders stream ( ) map ( trained model config builder : : build ) sorted ( comparator comparing ( trained model config : : get model id ) ) collect ( collectors to list ( ) ) ) ; return ; } final listener on failure ( failure ) ; } ) ) ; } , final listener : : on failure ) ; action listener < search response > config search handler = action listener wrap ( search response - > { set < string > observed ids = new hash set < > ( search response get hits ( ) get hits ( ) length + models as resource size ( ) , 1 0f ) ; observed ids add all ( models as resource ) ; for ( search hit search hit : search response get hits ( ) get hits ( ) ) { try { if ( observed ids contains ( search hit get id ( ) ) = = false ) { configs add ( parse inference doc leniently from source ( search hit get source ref ( ) , search hit get id ( ) ) ) ; observed ids add ( search hit get id ( ) ) ; } } catch ( i o exception ex ) { get trained model listener on failure ( exceptions helper server error ( inference failed to deserialize , ex , search hit get id ( ) ) ) ; return ; } } / / we previously expanded the i ds / / if the config has gone missing between then and now we should throw if allow no resources is false / / otherwise , treat it as if it was never expanded to begin with set < string > missing configs = sets difference ( model ids , observed ids ) ; if ( missing configs is empty ( ) = = false & & allow no resources = = false ) { get trained model listener on failure ( new resource not found exception ( messages inference not found multiple , missing configs ) ) ; return ; } / / ensure sorted even with the injection of locally resourced models get trained model listener on response ( configs ) ; } , get trained model listener : : on failure ) ; execute async with origin ( client , ml origin , search action instance , search request , config search handler ) ; }


checks to see if the ghidra dev plugin is installed in eclipse

private boolean is ghidra dev installed ( eclipse integration service service ) { try { return eclipse service is eclipse feature installed ( ( dir , filename ) - > filename contains ( " ghidradev " ) ) ; } catch ( file not found exception e ) { return false ; } }


error callback for commit of last re - initialization

public void on commit last re initialization error ( container id container id , throwable t ) { }


returns the base address of the relocations in this block

public int get virtual address ( ) { return virtual address ; }


public routing table routing table ( ) { return routing table ; }


public void set branch id ( long branch id ) { this branch id = string value of ( branch id ) ; }


formats the header of an aggregated log file

private static byte [ ] format container log header ( string container id , string node id , container log aggregation type log type , string file name , string last modified time , long file length ) { string builder sb = new string builder ( ) ; string container str = string format ( log tool utils container on node pattern , container id , node id ) ; sb append ( container str + " \ n " ) append ( " log aggregation type : " + log type + " \ n " ) append ( string utils repeat ( " = " , container str length ( ) ) + " \ n " ) append ( " log type : " + file name + " \ n " ) append ( " log last modified time : " + last modified time + " \ n " ) append ( " log length : " + file length + " \ n " ) append ( " log contents : \ n " ) ; return sb to string ( ) get bytes ( charset for name ( " utf - 8 " ) ) ; }


public bounding box set ( bounding box bounds ) { return this set ( bounds min , bounds max ) ; }


write the full message to the systrace buffer you must call this to log the trace message


public void place order test ( ) throws api exception { order body = null ; order response = api place order ( body ) ; / / todo : test validations }


factory for " 3 2 st " version of thread storage symbol internals

public static thread storage symbol internals parse 3 2 st ( pdb byte reader reader , abstract pdb pdb ) throws pdb exception { thread storage symbol internals result = new thread storage symbol internals ( pdb ) ; result type record number = record number parse ( pdb , reader , record category type , 32 ) ; result offset = reader parse var sized offset ( 32 ) ; result segment = pdb parse segment ( reader ) ; result name = reader parse string ( pdb , string parse type string utf 8 st ) ; reader align 4 ( ) ; return result ; }


get the log ; can be overridden for test case log


ugly workaround since line terminator option default has to be constant expression

public string get line terminator ( ) { if ( line terminator null ) { return " \ 0 " ; } return system line separator ( ) ; } @ option ( name = " infer universe scope " , default value = " false " , documentation category = option documentation category query , effect tags = { option effect tag loading and analysis }


enabledisable checking parameters for constant references

public void set param ref check ( boolean check param refs option ) { check for param refs = check param refs option ; }


configure simple automated controllers pre - configured with the response status code andor a view to render the response body this is useful in cases where there is no need for custom controller logic - - e g render a home page , perform simple site url redirects , return a 404 status with html content , a 204 with no content , and more

default void add view controllers ( view controller registry registry ) { }


converts this buffer ' s sub - region into a nio buffer the returned buffer might or might not share the content with this buffer , while they have separate indexes and marks this method does not modify { @ code reader index } or { @ code writer index } of this buffer

byte buffer to byte buffer ( int index , int length ) ;


public final string get protocol ( ) { return protocol ; }


returns an immutable multiset containing the given elements , in the " grouped iteration order " described in the class documentation

public static < e > immutable multiset < e > copy of ( iterable < ? extends e > elements ) { if ( elements instanceof immutable multiset ) { @ suppress warnings ( " unchecked " ) / / all supported methods are covariant immutable multiset < e > result = ( immutable multiset < e > ) elements ; if ( ! result is partial view ( ) ) { return result ; } } immutable multiset builder < e > builder = new immutable multiset builder < e > ( multisets infer distinct elements ( elements ) ) ; builder add all ( elements ) ; return builder build ( ) ; }


returns a propert list containing all the analysis option properties that can be set changing the value of the analysis properties will affect what happens when the analyze call is made

public options get analysis options ( program program ) { return program get options ( program analysis properties ) ; }


returns an { @ link input stream } to read from { @ code stdout } of the child process when this method returns null , { @ link proc } will internally pump the output from the child process to your { @ link output stream } of choosing

public abstract input stream get stdout ( ) ;


gets the timestamp of the last access unit in the buffer

public long get last access unit time us ( ) { return time us ; }


public synchronized mutable counter int new counter ( metrics info info , int i val ) { check metric name ( info name ( ) ) ; mutable counter int ret = new mutable counter int ( info , i val ) ; metrics map put ( info name ( ) , ret ) ; return ret ; }


retrieves the long value stored at the given index

public long get long ( long index ) throws no value exception { property page page = get page ( get page i d ( index ) ) ; if ( page ! = null ) { return page get long ( get page offset ( index ) ) ; } throw no value exception ; }


tests regular navigable map behavior of synchronized navigable map ( tree map ) ; does not test the fact that it ' s synchronized

public test tests for synchronized navigable map ( ) { return navigable map test suite builder using ( new test string sorted map generator ( ) { @ override protected sorted map < string , string > create ( entry < string , string > [ ] entries ) { navigable map < string , string > delegate = populate ( new tree map < > ( ) , entries ) ; return collections synchronized navigable map ( delegate ) ; } } ) named ( " synchronized navigable map / tree map , natural " ) with features ( map feature general purpose , map feature allows null values , map feature fails fast on concurrent modification , collection feature supports iterator remove , collection feature known order , collection feature serializable , collection size any ) suppressing ( suppress for synchronized navigable map ( ) ) create test suite ( ) ; }


returns the { @ link org elasticsearch common xcontent x content } for the provided content type

public static x content x content ( x content type type ) { if ( type = = null ) { throw new illegal argument exception ( " cannot get xcontent for unknown type " ) ; } return type x content ( ) ; }


on demand stringifier of an i o statistics instance whenever this object ' s to string ( ) method is called , it evaluates the statistics this is for use in log statements where for the cost of creation of this entry is low ; it is affordable to use in log statements

public static object demand stringify i o statistics ( @ nullable i o statistics statistics ) { return new statistics to string ( statistics ) ; }


serializes an int to a binary stream with zero - compressed encoding

public static void write v int ( data output stream , int i ) throws i o exception { writable utils write v int ( stream , i ) ; }


public map < string , collection < string > > get data source mapper ( ) { map < string , collection < string > > result = new hash map < > ( 1 , 1 ) ; collection < string > actual data source names = new linked list < > ( data source names ) ; result put ( name , actual data source names ) ; return result ; }


reset consumer topic offset according to time

public static void reset offset by timestamp ( final message model message model , final string instance name , final string consumer group , final string topic , final long timestamp ) throws exception { final internal logger log = client logger get log ( ) ; default m q pull consumer consumer = new default m q pull consumer ( consumer group ) ; consumer set instance name ( instance name ) ; consumer set message model ( message model ) ; consumer start ( ) ; set < message queue > mqs = null ; try { mqs = consumer fetch subscribe message queues ( topic ) ; if ( mqs ! = null & & ! mqs is empty ( ) ) { tree set < message queue > mqs new = new tree set < message queue > ( mqs ) ; for ( message queue mq : mqs new ) { long offset = consumer search offset ( mq , timestamp ) ; if ( offset > = 0 ) { consumer update consume offset ( mq , offset ) ; log info ( " reset offset by timestamp update consume offset success , { } { } { } " , consumer group , offset , mq ) ; } } } } catch ( exception e ) { log warn ( " reset offset by timestamp exception " , e ) ; throw e ; } finally { if ( mqs ! = null ) { consumer get default m q pull consumer impl ( ) get offset store ( ) persist all ( mqs ) ; } consumer shutdown ( ) ; } }


executes the given task in a cpu thread pool at fix rate

public static < t > void execute by cpu at fix rate ( final task < t > task , long initial delay , final long period , final time unit unit , @ int range ( from = 1 , to = 10 ) final int priority ) { execute at fixed rate ( get pool by type and priority ( type cpu , priority ) , task , initial delay , period , unit ) ; }


public job i d get i d ( ) { return job i d downgrade ( job get job i d ( ) ) ; }


save the success data to the { @ code success } file

public void create success marker ( path output path , success data success data , boolean add metrics ) throws i o exception { preconditions check argument ( output path ! = null , " null output path " ) ; if ( add metrics ) { add file system statistics ( success data get metrics ( ) ) ; } / / add any diagnostics configuration conf = fs get conf ( ) ; success data add diagnostic ( s3 metadata store impl , conf get trimmed ( s3 metadata store impl , " " ) ) ; success data add diagnostic ( metadatastore authoritative , conf get trimmed ( metadatastore authoritative , " false " ) ) ; success data add diagnostic ( authoritative path , conf get trimmed ( authoritative path , " " ) ) ; success data add diagnostic ( magic committer enabled , conf get trimmed ( magic committer enabled , " false " ) ) ; / / now write path marker path = new path ( output path , success ) ; log debug ( " touching success marker for job { } : { } " , marker path , success data ) ; try ( duration info ignored = new duration info ( log , " writing success file % s " , marker path ) ) { success data save ( fs , marker path , true ) ; } }


public string last modified ( ) { return last modified ; }


returns the extra arguments to the { @ code package ( ) } statement

iterable < package argument < ? > > get package arguments ( ) ;


indicates that the aggregation is sensitive to input order

public boolean is order sensitive ( ) { return order sensitive ; }


find the fields constant that matches field id , or null if its not found

public static fields find by thrift id ( int field id ) { switch ( field id ) { case 0 : / / success return success ; default : return null ; } }


serialize the given java object into string entity according the given content - type ( only json is supported for now )

public entity < ? > serialize ( object obj , map < string , object > form params , string content type , boolean is body nullable ) throws api exception { entity < ? > entity ; if ( content type starts with ( " multipart / form - data " ) ) { multi part multi part = new multi part ( ) ; for ( entry < string , object > param : form params entry set ( ) ) { if ( param get value ( ) instanceof file ) { file file = ( file ) param get value ( ) ; form data content disposition content disp = form data content disposition name ( param get key ( ) ) file name ( file get name ( ) ) size ( file length ( ) ) build ( ) ; multi part body part ( new form data body part ( content disp , file , media type application octet stream type ) ) ; } else { form data content disposition content disp = form data content disposition name ( param get key ( ) ) build ( ) ; multi part body part ( new form data body part ( content disp , parameter to string ( param get value ( ) ) ) ) ; } } entity = entity entity ( multi part , media type multipart form data type ) ; } else if ( content type starts with ( " application / x - www - form - urlencoded " ) ) { form form = new form ( ) ; for ( entry < string , object > param : form params entry set ( ) ) { form param ( param get key ( ) , parameter to string ( param get value ( ) ) ) ; } entity = entity entity ( form , media type application form urlencoded type ) ; } else { / / we let jersey handle the serialization if ( is body nullable ) { / / payload is nullable if ( obj instanceof string ) { entity = entity entity ( obj = = null ? " null " : " \ " " + ( ( string ) obj ) replace all ( " \ " " , matcher quote replacement ( " \ \ \ " " ) ) + " \ " " , content type ) ; } else { entity = entity entity ( obj = = null ? " null " : obj , content type ) ; } } else { if ( obj instanceof string ) { entity = entity entity ( obj = = null ? " " : " \ " " + ( ( string ) obj ) replace all ( " \ " " , matcher quote replacement ( " \ \ \ " " ) ) + " \ " " , content type ) ; } else { entity = entity entity ( obj = = null ? " " : obj , content type ) ; } } } return entity ; }


like { @ code inputs to string ( ) } , but with the nonsense { @ code to string } representations replaced with the name of each future from { @ link # all futures }

string smart to string ( immutable set < listenable future < string > > inputs ) { iterable < string > input names = iterables transform ( inputs , name getter ) ; return joiner on ( " , " ) join ( input names ) ; }


invokes # accept ( bulk request , action listener ) backs off on the provided exception and delegates results to the provided listener retries will be scheduled using the class ' s thread pool

public void with backoff ( bi consumer < bulk request , action listener < bulk response > > consumer , bulk request bulk request , action listener < bulk response > listener ) { retry handler r = new retry handler ( backoff policy , consumer , listener , scheduler ) ; r execute ( bulk request ) ; }


post fake { pet id } upload image with required file : uploads an image ( required )

response entity < model api response > upload file with required file ( @ api param ( value = " id of pet to update " , required = true ) @ path variable ( " pet id " ) long pet id , @ api param ( value = " file to upload " ) @ valid @ request part ( value = " required file " , required = true ) multipart file required file , @ api param ( value = " additional data to pass to server " ) @ valid @ request part ( value = " additional metadata " , required = false ) string additional metadata ) ;


return a map with all handler methods and their mappings

public map < t , handler method > get handler methods ( ) { return collections unmodifiable map ( this handler methods ) ; }


verifies that the two given key ' s are different in total and also have different hashes

static void verify key different hash different ( blob key key 1 , blob key key 2 ) { assert not equals ( key 1 , key 2 ) ; assert that ( key 1 get hash ( ) , not ( equal to ( key 2 get hash ( ) ) ) ) ; }


returns a deferred { @ link watermark output } for the given output id > see { @ link watermark output multiplexer } for a description of immediate and deferred outputs

public watermark output get deferred output ( string output id ) { final output state output state = watermark per output id get ( output id ) ; preconditions check argument ( output state ! = null , " no output registered under id % s " , output id ) ; return new deferred output ( output state ) ; }


writes an empty tag to the stream an empty tag is one with no tags inside it , although it may still have attributes

public void empty tag ( string tag name , x m l attr vector attributes ) { if ( in tag ) { / / complete the parent ' s start tag if ( compact ) { out print ( " > " ) ; } else { out println ( " > " ) ; } in tag = false ; } display indent ( out , indent ) ; out print ( " < " ) ; out print ( tag name ) ; if ( attributes ! = null ) { out print ( " " ) ; attributes display ( out , indent ) ; } if ( compact ) { out print ( " / > " ) ; } else { out println ( " / > " ) ; } out flush ( ) ; tags written + + ; }


the name of the command will first try to use the assigned name else fallback to the command ' s preferred name

public string get name ( ) { return ( name = = null ) ? get command field ( command name field ) : name starts with ( " - " ) ? name substring ( 1 ) : name ; }


determine the context class that any context passed to { @ code set application context } must be an instance of can be overridden in subclasses

protected class < ? > required context class ( ) { return application context class ; }


int divider right margin ( int position , recycler view parent ) ;


a random qualifier it is important that this be distinct from the name and the unresolved message for testing transform

private static string random qualifier ( ) { return random boolean ( ) ? null : random alpha of length ( 6 ) ; }


returns true if the specified line is part of a paragraph and should be merged with the previous line

private boolean is comment line ( i document document , int line ) throws bad location exception { if ( document get number of lines ( ) < line ) return false ; int offset = document get line offset ( line ) ; int length = document get line length ( line ) ; int first char = find end of white space ( document , offset , offset + length ) ; length - = first char - offset ; string line contents = document get ( first char , length ) ; string prefix = line contents trim ( ) ; if ( ! prefix starts with ( " * " ) | | prefix starts with ( " * / " ) ) / / $ non - nls - 1 $ / / $ non - nls - 2 $ { return false ; } / / line contents = line contents substring ( 1 ) trim ( ) to lower case ( ) ; return true ; }


public void breed test ( ) { / / todo : test breed }


returns the index into the string [ ] returned by { @ link # get comment ( ) } that represents the comment row that was clicked < code > - 1 < code > will be returned if the border of the plate field was clicked < b > note : < b > this value is different than that returned by { @ link # get row ( ) } , as that value represents the screen row clicked further , the plate field adds screen decoration to the comments , which causes the screen row to differ from the comment row

public int get comment row ( ) { return comment row ; }


set a specific { @ link row mapper } instance to use for this query

public void set row mapper ( row mapper < t > row mapper ) { this row mapper = row mapper ; }


public int get first symbol l v a ( ) { return lva to first symbol ; }


return a composed filter function that first applies this filter , and then applies the given { @ code " after " } filter

default exchange filter function and then ( exchange filter function after filter ) { assert not null ( after filter , " exchange filter function must not be null " ) ; return ( request , next ) - > filter ( request , after request - > after filter filter ( after request , next ) ) ; }


set event id should be assigned incrementally starting from 0

public void set event id ( int event id ) { super set event id ( event id ) ; }


getter for the read - rate from this stream , since creation calculated as bytes readelapsed time since start

public long get bytes per sec ( ) { long elapsed = ( system current time millis ( ) - start time ) / 1000 ; if ( elapsed = = 0 ) { return bytes read ; } else { return bytes read / elapsed ; } }


public void test outer enum ( ) { / / todo : test outer enum }


static boolean equals variable time ( char sequence s 1 , char sequence s 2 ) { return ascii string content equals ( s 1 , s 2 ) ; }


drain all submitted jobs to a queue and stop the monitoring thread upstream submitter is assumed dead

public void abort ( ) { synchronized ( m jobs ) { graceful = false ; shutdown = true ; } executor shutdown ( ) ; }


determine whether the block tree terms reader field reader can be used for estimating the field data , adding the estimate to the circuit breaker if it can , otherwise wrapping the terms in a ram accounting terms enum to be estimated on a per - term basis

public terms enum before load ( terms terms ) throws i o exception { leaf reader reader = context reader ( ) ; terms enum iterator = terms iterator ( ) ; terms enum filtered iterator = filter ( terms , iterator , reader ) ; final boolean filtered = iterator ! = filtered iterator ; iterator = filtered iterator ; if ( filtered ) { if ( logger is trace enabled ( ) ) { logger trace ( " filter exists , can ' t circuit break normally , using ram accounting terms enum " ) ; } return new ram accounting terms enum ( iterator , breaker , this , this field name ) ; } else { estimated bytes = this estimate string field data ( ) ; / / if we weren ' t able to estimate , wrap in the ram accounting terms enum if ( estimated bytes = = 0 ) { iterator = new ram accounting terms enum ( iterator , breaker , this , this field name ) ; } else { breaker add estimate bytes and maybe break ( estimated bytes , field name ) ; } return iterator ; } }


determines whether the processor has the capability to perform tasks on the given credential

default boolean supports ( final credential credential ) { return true ; }


login as the configured user for the name node

void login as name node user ( configuration conf ) throws i o exception { inet socket address soc addr = get rpc server address ( conf ) ; security util login ( conf , dfs namenode keytab file key , dfs namenode kerberos principal key , soc addr get host name ( ) ) ; }


simply test the reader reads all the splits fine

public void test read ( ) throws exception { try ( source reader < integer , split t > reader = create reader ( ) ) { reader add splits ( get splits ( num splits , num records per split , boundedness bounded ) ) ; validating source output output = new validating source output ( ) ; while ( output count < total num records ) { reader poll next ( output ) ; } output validate ( ) ; } }


public boolean get attribute boolean ( ) { return attribute boolean ; }


extract a filtered set of property descriptors from the given bean wrapper , excluding ignored dependency types or properties defined on ignored dependency interfaces

protected property descriptor [ ] filter property descriptors for dependency check ( bean wrapper bw , boolean cache ) { property descriptor [ ] filtered = this filtered property descriptors cache get ( bw get wrapped class ( ) ) ; if ( filtered = = null ) { filtered = filter property descriptors for dependency check ( bw ) ; if ( cache ) { property descriptor [ ] existing = this filtered property descriptors cache put if absent ( bw get wrapped class ( ) , filtered ) ; if ( existing ! = null ) { filtered = existing ; } } } return filtered ; }


set the additional ( undeclared ) property with the specified name and value if the property does not already exist , create it otherwise replace it

public additional properties boolean put additional property ( string key , boolean value ) { if ( this additional properties = = null ) { this additional properties = new hash map < string , boolean > ( ) ; } this additional properties put ( key , value ) ; return this ; }


public masked long read context ( int start , int len ) { return ctx read bytes ( start , len ) ; }


creates a new { @ link object mapper } with guava , logback , and joda time support , as well as support for { @ link json snake case } also includes all { @ link discoverable } interface implementations

public static object mapper new object mapper ( ) { final object mapper mapper = new object mapper ( ) ; return configure ( mapper ) ; }


returns true iff this path denotes an existing directory

public boolean is directory ( symlinks follow symlinks ) { return file system is directory ( this , follow symlinks to boolean ( ) ) ; }


the resource id ( 0x p p t t e e e e ) of the attribute < code > optional uint 3 2 resource id = 5 ; < code >

public builder clear resource id ( ) { copy on write ( ) ; instance clear resource id ( ) ; return this ; }


obtain the total size of the available physical memory present in the system

public long get available physical memory size ( ) { return sys get available physical memory size ( ) ; }


a filtering function is one whose outputs are a subset of a single input argument returns the function as a filtering function if it is one and { @ code null } otherwise

default filtering query function as filtering function ( ) { return null ; }


randomize the { @ link fetch source context } request parameters

private static void randomize fetch source context params ( consumer < fetch source context > consumer , map < string , string > expected params ) { if ( random boolean ( ) ) { if ( random boolean ( ) ) { boolean fetch source = random boolean ( ) ; consumer accept ( new fetch source context ( fetch source ) ) ; if ( fetch source = = false ) { expected params put ( " source " , " false " ) ; } } else { int num includes = random int between ( 0 , 5 ) ; string [ ] includes = new string [ num includes ] ; string includes param = random fields ( includes ) ; if ( num includes > 0 ) { expected params put ( " source includes " , includes param ) ; } int num excludes = random int between ( 0 , 5 ) ; string [ ] excludes = new string [ num excludes ] ; string excludes param = random fields ( excludes ) ; if ( num excludes > 0 ) { expected params put ( " source excludes " , excludes param ) ; } consumer accept ( new fetch source context ( true , includes , excludes ) ) ; } } }


use { @ link # get initial resource versions map ( ) } instead

public java util map < java lang string , java lang string > get initial resource versions ( ) { return get initial resource versions map ( ) ; }


sets the minimum scale factor for the x - axis

public void set minimum scale x ( float x scale ) { if ( x scale < 1f ) x scale = 1f ; m min scale x = x scale ; limit trans and scale ( m matrix touch , m content rect ) ; }


public api client set temp folder path ( string temp folder path ) { this temp folder path = temp folder path ; return this ; }


public iterable < t > get ( ) throws exception { return list ; }


public void test xml item ( ) { / / todo : test xml item }


does the supplied content contain an xml opening tag if the parse state is currently in an xml comment then this method always returns false it is expected that all comment tokens will have consumed for the supplied content before passing the remainder to this method

private boolean has opening tag ( string content ) { if ( this in comment ) { return false ; } int open tag index = content index of ( ' < ' ) ; return ( open tag index > - 1 & & ( content length ( ) > open tag index + 1 ) & & character is letter ( content char at ( open tag index + 1 ) ) ) ; }


public list < integer > get name wrapped array ( ) { return name wrapped array ; }


public byte get count ( ) { return count ; }


verify if the thief uses the provided stealing method , and the new method after changing it

public void test change method ( ) { final var initial method = mock ( stealing method class ) ; final var thief = new halfling thief ( initial method ) ; thief steal ( ) ; verify ( initial method ) steal ( ) ; final var new method = mock ( stealing method class ) ; thief change method ( new method ) ; thief steal ( ) ; verify ( new method ) steal ( ) ; verify no more interactions ( initial method , new method ) ; }


disables reusing objects that flink internally uses for deserialization and passing data to user - code functions

public execution config disable object reuse ( ) { object reuse = false ; return this ; }


set the { @ link application home sub cluster } representing the mapping of the application to it ' s home sub - cluster

public abstract void set application home sub cluster ( application home sub cluster application home sub cluster ) ;


trigger a new checkpoint on the task of this execution

public void trigger checkpoint ( long checkpoint id , long timestamp , checkpoint options checkpoint options ) { trigger checkpoint helper ( checkpoint id , timestamp , checkpoint options , false ) ; }


returns the entry object displayed at the touched position of the chart

public entry get entry by touch point ( float x , float y ) { highlight h = get highlight by touch point ( x , y ) ; if ( h ! = null ) { return m data get entry for highlight ( h ) ; } return null ; }


loads the currently - selected set of instructions in the listing and displays them in the given dialog

public void load instructions ( instruction search plugin plugin ) throws invalid input exception { load instructions ( plugin get program selection ( ) , plugin ) ; }


check that whether debugging is enabled for this api client

public boolean is debugging ( ) { return debugging ; }


immediately finishes this page source presto will always call this method


check the supplied request headers ( or the headers listed in the { @ code access - control - request - headers } of a pre - flight request ) against the configured allowed headers

public list < string > check headers ( @ nullable list < string > request headers ) { if ( request headers = = null ) { return null ; } if ( request headers is empty ( ) ) { return collections empty list ( ) ; } if ( object utils is empty ( this allowed headers ) ) { return null ; } boolean allow any header = this allowed headers contains ( all ) ; list < string > result = new array list < > ( request headers size ( ) ) ; for ( string request header : request headers ) { if ( string utils has text ( request header ) ) { request header = request header trim ( ) ; if ( allow any header ) { result add ( request header ) ; } else { for ( string allowed header : this allowed headers ) { if ( request header equals ignore case ( allowed header ) ) { result add ( request header ) ; break ; } } } } } return ( result is empty ( ) ? null : result ) ; }


this test makes sure that even when the decoder is confronted with various chunk sizes in the middle of decoding , it can recover and decode all the time eventually

public void should handle non uniform network batches ( ) { byte buf incoming = unpooled copied buffer ( set request with content ) ; while ( incoming is readable ( ) ) { channel write inbound ( incoming read bytes ( 5 ) ) ; } incoming release ( ) ; binary memcache request request = channel read inbound ( ) ; assert that ( request , not null value ( ) ) ; assert that ( request key ( ) , not null value ( ) ) ; assert that ( request extras ( ) , null value ( ) ) ; request release ( ) ; memcache content content 1 = channel read inbound ( ) ; memcache content content 2 = channel read inbound ( ) ; assert that ( content 1 , instance of ( memcache content class ) ) ; assert that ( content 2 , instance of ( last memcache content class ) ) ; assert that ( content 1 content ( ) readable bytes ( ) , is ( 3 ) ) ; assert that ( content 2 content ( ) readable bytes ( ) , is ( 5 ) ) ; content 1 release ( ) ; content 2 release ( ) ; }


return true if the given data type is the same type of any data types in the list

private boolean exists ( data type dt ) { for ( int i = 0 ; i < data list size ( ) ; i + + ) { data type d = data list get ( i ) ; if ( dt is equivalent ( d ) ) { return true ; } } return false ; }


captures the direct references search dialog for a selection

public void test direct refs on selection ( ) { move tool ( 500 , 500 ) ; go to listing ( 0x 4 0 7b 4 4 , " address " , false ) ; make selection ( 0x 4 0e 6 2 6 , 0x 4 0e 7 4 8 ) ; perform action ( " search for direct references " , " find possible references plugin " , false ) ; wait for swing ( ) ; component provider provider = get provider ( table component provider class ) ; j component component = provider get component ( ) ; j table table = find component ( component , j table class ) ; table model model = table get model ( ) ; wait for table model ( ( threaded table model < ? , ? > ) model ) ; capture isolated provider ( table component provider class , 800 , 350 ) ; }


public integer get prefix ns integer ( ) { return prefix ns integer ; }


populates a multimap by reading an input stream , as part of deserialization see { @ link # write multimap } for the data format the number of distinct keys is determined by a prior call to { @ link # read count }

static < k , v > void populate multimap ( multimap < k , v > multimap , object input stream stream , int distinct keys ) throws i o exception , class not found exception { for ( int i = 0 ; i < distinct keys ; i + + ) { @ suppress warnings ( " unchecked " ) / / reading data stored by write multimap k key = ( k ) stream read object ( ) ; collection < v > values = multimap get ( key ) ; int value count = stream read int ( ) ; for ( int j = 0 ; j < value count ; j + + ) { @ suppress warnings ( " unchecked " ) / / reading data stored by write multimap v value = ( v ) stream read object ( ) ; values add ( value ) ; } } }


public void test declare variable ( ) { assert equals ( 5 , exec ( " int i = 5 ; return i ; " ) ) ; assert equals ( 7l , exec ( " long l = 7 ; return l ; " ) ) ; assert equals ( 7 0 , exec ( " double d = 7 ; return d ; " ) ) ; assert equals ( 32 0f , exec ( " float f = 32f ; return f ; " ) ) ; assert equals ( ( byte ) 255 , exec ( " byte b = ( byte ) 255 ; return b ; " ) ) ; assert equals ( ( short ) 5 , exec ( " short s = ( short ) 5 ; return s ; " ) ) ; assert equals ( " string " , exec ( " string s = \ " string \ " ; return s ; " ) ) ; assert equals ( true , exec ( " boolean v = true ; return v ; " ) ) ; assert equals ( false , exec ( " boolean v = false ; return v ; " ) ) ; }


the specified instr has cleared the specified bit for this context reg if setting fails the value will be left in an unknown state

public boolean clear bit at ( instruction instr , int bit ) { if ( is bit register | | value ! = null ) { set addr = instr get fall through ( ) ; if ( set addr ! = null ) { if ( value = = null ) { value = big integer value of ( 0 ) ; } else { value = value clear bit ( bit ) ; } return true ; } } value = null ; return false ; }


tests that the { @ link allocated slot report } contains up to date information and not stale information about the allocated slots on the { @ link job master } this is a probabilistic test case which only fails if executed repeatedly without the fix for flink - 12863

public void test allocated slot report does not contain stale information ( ) throws exception { final completable future < void > assertion future = new completable future < > ( ) ; final unresolved task manager location unresolved task manager location = new local unresolved task manager location ( ) ; final atomic boolean terminate heartbeat verification = new atomic boolean ( false ) ; final one shot latch has received slot offers = new one shot latch ( ) ; final testing task executor gateway task executor gateway = new testing task executor gateway builder ( ) set heartbeat job manager consumer ( ( task manager id , allocated slot report ) - > { try { if ( has received slot offers is triggered ( ) ) { assert that ( allocated slot report get allocated slot infos ( ) , has size ( 1 ) ) ; } else { assert that ( allocated slot report get allocated slot infos ( ) , empty ( ) ) ; } } catch ( assertion error e ) { assertion future complete exceptionally ( e ) ; } if ( terminate heartbeat verification get ( ) ) { assertion future complete ( null ) ; } } ) create testing task executor gateway ( ) ; rpc service register gateway ( task executor gateway get address ( ) , task executor gateway ) ; final job manager shared services job manager shared services = new testing job manager shared services builder ( ) build ( ) ; final job master job master = new job master builder ( job graph test utils create single vertex job graph ( ) , rpc service ) with heartbeat services ( new heartbeat services ( 5l , 1000l ) ) with slot pool factory ( new testing slot pool factory ( has received slot offers ) ) create job master ( ) ; job master start ( ) ; try { final job master gateway job master gateway = job master get self gateway ( job master gateway class ) ; / / register task manager will trigger monitor heartbeat target , schedule heartbeat / / request at interval time completable future < registration response > registration response = job master gateway register task manager ( task executor gateway get address ( ) , unresolved task manager location , testing timeout ) ; / / wait for the completion of the registration registration response get ( ) ; final slot offer slot offer = new slot offer ( new allocation i d ( ) , 0 , resource profile any ) ; final completable future < collection < slot offer > > slot offer future = job master gateway offer slots ( unresolved task manager location get resource i d ( ) , collections singleton ( slot offer ) , testing timeout ) ; assert that ( slot offer future get ( ) , contains in any order ( slot offer ) ) ; terminate heartbeat verification set ( true ) ; / / make sure that no assertion has been violated assertion future get ( ) ; } finally { rpc utils terminate rpc endpoint ( job master , testing timeout ) ; job manager shared services shutdown ( ) ; } }


returns a currently open ghidra { @ link program } that has metadata that links it to the specified { @ code file } parameter ( ie an open program has a md5 or fsrl metadata value that matches the file ) see also { @ link # is file open ( fsrl ) }

public static program find matching open program ( fsrl fsrl , object consumer ) { string expected m d 5 = fsrl get m d 5 ( ) ; / / use a temp consumer to hold the domain object open because the caller - supplied / / consumer might already have been used to open one of the files we are querying object tmp consumer = new object ( ) ; list < domain file > open domain files = app info get active project ( ) get open data ( ) ; for ( domain file df : open domain files ) { domain object opened domain object = df get opened domain object ( tmp consumer ) ; try { if ( opened domain object instanceof program ) { program program = ( program ) opened domain object ; options property list = program get options ( program program info ) ; string fsrl str = property list get string ( program mapping service program source fsrl , null ) ; string md 5 = property list get string ( program mapping service program metadata md5 , null ) ; if ( ( expected m d 5 ! = null & & expected m d 5 equals ( md 5 ) ) | | fsrl is equivalent ( fsrl str ) ) { / / lock the domain file with the caller - supplied consumer now that / / we ' ve found it df get opened domain object ( consumer ) ; return program ; } } } finally { if ( opened domain object ! = null ) { opened domain object release ( tmp consumer ) ; } } } return null ; }


make local - dirs failinaccessible and verify if node manager can recognize the disk failures properly and can update the list of local - dirs accordingly with good disks also verify the overall health status of the node

public void test local dirs failures ( ) throws i o exception { test dirs failures ( true ) ; }


public static void head ( string path , string accept type , template view route route , template engine engine ) { get instance ( ) head ( path , accept type , route , engine ) ; }


returns an editor for this snapshot ' s entry , or null if either the entry has changed since this snapshot was created or if another edit is in progress

public editor edit ( ) throws i o exception { return disk lru cache this edit ( key , sequence number ) ; }


creates a graph from csv input with edge values , but without vertex values

public < k , ev > graph < k , null value , ev > edge types ( class < k > vertex key , class < ev > edge value ) { if ( edge reader = = null ) { throw new runtime exception ( " the edge input file cannot be null ! " ) ; } data set < tuple 3 < k , k , ev > > edges = edge reader types ( vertex key , vertex key , edge value ) name ( graph csv reader class get name ( ) ) ; return graph from tuple data set ( edges , execution context ) ; }


process the request and return a model and view object which the dispatcher servlet will render a { @ code null } return value is not an error : it indicates that this object completed request processing itself and that there is therefore no model and view to render

model and view handle request ( http servlet request request , http servlet response response ) throws exception ;


protected void encode and encrypt proxy granting ticket ( final map < string , object > attributes , final map < string , string > cached attributes to encode , final registered service cipher executor cipher , final registered service registered service ) { encrypt and encode and put into attributes map ( attributes , cached attributes to encode , cas view constants model attribute name proxy granting ticket , cipher , registered service ) ; encrypt and encode and put into attributes map ( attributes , cached attributes to encode , cas view constants model attribute name proxy granting ticket iou , cipher , registered service ) ; }


public boolean more ( ) { return more ; }


program entry point it starts spring boot application and using apache camel it auto - configures routes

public static void main ( string [ ] args ) throws exception { / / run spring boot application and obtain application context var context = spring application run ( app class , args ) ; / / get camel context from application context var camel context = ( camel context ) context get bean ( " camel context " ) ; / / add a new routes that will handle endpoints form wire tap route class camel context add routes ( new route builder ( ) { @ override public void configure ( ) throws exception { from ( " { { endpoint } } " ) log ( " endpoint : $ { body } " ) ; from ( " { { wire tap endpoint } } " ) log ( " wiretapped endpoint : $ { body } " ) ; } } ) ; / / add producer that will send test message to an entry point in wire tap route camel context create producer template ( ) send body ( " { { entry } } " , " test message " ) ; spring application exit ( context ) ; }


return the { @ link # set pattern parser ( path pattern parser ) configured } { @ code path pattern parser } , or { @ code null }

public path pattern parser get pattern parser ( ) { return this pattern parser ; }


delete and release all underlying data buffers

public void delete ( ) throws i o exception { synchronized ( dbh ) { dbh check transaction ( ) ; buf delete ( ) ; } }


check whether a service reference has been set , and whether it matches the specified service

protected void check service interface ( ) throws illegal argument exception { class < ? > service interface = get service interface ( ) ; assert not null ( service interface , " property ' service interface ' is required " ) ; object service = get service ( ) ; if ( service instanceof string ) { throw new illegal argument exception ( " service [ " + service + " ] is a string " + " rather than an actual service reference : have you accidentally specified " + " the service bean name as value instead of as reference ? " ) ; } if ( ! service interface is instance ( service ) ) { throw new illegal argument exception ( " service interface [ " + service interface get name ( ) + " ] needs to be implemented by service [ " + service + " ] of class [ " + service get class ( ) get name ( ) + " ] " ) ; } }


a shortcut for { @ link # set wait for active shards ( active shard count ) } where the numerical shard count is passed in , instead of having to first call { @ link active shard count # from ( int ) } to get the active shard count

public update request builder set wait for active shards ( final int wait for active shards ) { return set wait for active shards ( active shard count from ( wait for active shards ) ) ; }


see { @ link script template configurer # set render object ( string ) } documentation

public void set render object ( string render object ) { this render object = render object ; }


public void status test ( ) { / / todo : test status }


the simple broker produces { @ code simp message type connect ack } that ' s not stomp specific and needs to be turned into a stomp connected frame

private stomp header accessor convert connect ackto stomp connected ( stomp header accessor connect ack headers ) { string name = stomp header accessor connect message header ; message < ? > message = ( message < ? > ) connect ack headers get header ( name ) ; if ( message = = null ) { throw new illegal state exception ( " original stomp connect not found in " + connect ack headers ) ; } stomp header accessor connect headers = message header accessor get accessor ( message , stomp header accessor class ) ; stomp header accessor connected headers = stomp header accessor create ( stomp command connected ) ; if ( connect headers ! = null ) { set < string > accept versions = connect headers get accept version ( ) ; connected headers set version ( arrays stream ( supported versions ) filter ( accept versions : : contains ) find any ( ) or else throw ( ( ) - > new illegal argument exception ( " unsupported stomp version ' " + accept versions + " ' " ) ) ) ; } long [ ] heartbeat = ( long [ ] ) connect ack headers get header ( simp message header accessor heart beat header ) ; if ( heartbeat ! = null ) { connected headers set heartbeat ( heartbeat [ 0 ] , heartbeat [ 1 ] ) ; } else { connected headers set heartbeat ( 0 , 0 ) ; } return connected headers ; }


returns the default value of the ith parameter ( { @ code 0 < = i < get parameter names ( ) size ( ) } ) , or null if the parameter is required residual parameters , if any , are always last , and have no default value

public object get default value ( int i ) { if ( i < 0 | | i > = rfn get parameters ( ) size ( ) ) { throw new index out of bounds exception ( ) ; } int nparams = rfn get parameters ( ) size ( ) - ( rfn has kwargs ( ) ? 1 : 0 ) - ( rfn has varargs ( ) ? 1 : 0 ) ; int prefix = nparams - default values size ( ) ; if ( i < prefix ) { return null ; / / implicit prefix of mandatory parameters } if ( i < nparams ) { object v = default values get ( i - prefix ) ; return v = = mandatory ? null : v ; } return null ; / / * args or * kwargs }


public big decimal get number item ( ) { return number item ; }


get the list of { @ link resource } s allocated to the job

public final r l e sparse resource allocation get skyline list ( ) { return skyline list ; }


public void set read only ( boolean read only ) { is read only = read only ; }


returns the assigner for the input splits assigner determines which parallel instance of the input format gets which input split

input split assigner get input split assigner ( t [ ] input splits ) ;


checks that the given argument is not null if it is , throws { @ link null pointer exception } otherwise , returns the argument

public static < t > t check not null ( t arg , string text ) { if ( arg = = null ) { throw new null pointer exception ( text ) ; } return arg ; }


build recovery table will build a table of recovery information suitable for displaying at the command line

public table build recovery table ( rest request request , recovery response response ) { table t = get table with header ( request ) ; for ( string index : response shard recovery states ( ) key set ( ) ) { list < recovery state > shard recovery states = response shard recovery states ( ) get ( index ) ; if ( shard recovery states size ( ) = = 0 ) { continue ; } / / sort ascending by shard id for readability collection util intro sort ( shard recovery states , new comparator < recovery state > ( ) { @ override public int compare ( recovery state o 1 , recovery state o 2 ) { int id 1 = o 1 get shard id ( ) id ( ) ; int id 2 = o 2 get shard id ( ) id ( ) ; if ( id 1 < id 2 ) { return - 1 ; } else if ( id 1 > id 2 ) { return 1 ; } else { return 0 ; } } } ) ; for ( recovery state state : shard recovery states ) { t start row ( ) ; t add cell ( index ) ; t add cell ( state get shard id ( ) id ( ) ) ; t add cell ( x content elasticsearch extension default date printer print ( state get timer ( ) start time ( ) ) ) ; t add cell ( state get timer ( ) start time ( ) ) ; t add cell ( x content elasticsearch extension default date printer print ( state get timer ( ) stop time ( ) ) ) ; t add cell ( state get timer ( ) stop time ( ) ) ; t add cell ( new time value ( state get timer ( ) time ( ) ) ) ; t add cell ( state get recovery source ( ) get type ( ) to string ( ) to lower case ( locale root ) ) ; t add cell ( state get stage ( ) to string ( ) to lower case ( locale root ) ) ; t add cell ( state get source node ( ) = = null ? " n / a " : state get source node ( ) get host name ( ) ) ; t add cell ( state get source node ( ) = = null ? " n / a " : state get source node ( ) get name ( ) ) ; t add cell ( state get target node ( ) get host name ( ) ) ; t add cell ( state get target node ( ) get name ( ) ) ; t add cell ( state get recovery source ( ) = = null | | state get recovery source ( ) get type ( ) ! = recovery source type snapshot ? " n / a " : ( ( snapshot recovery source ) state get recovery source ( ) ) snapshot ( ) get repository ( ) ) ; t add cell ( state get recovery source ( ) = = null | | state get recovery source ( ) get type ( ) ! = recovery source type snapshot ? " n / a " : ( ( snapshot recovery source ) state get recovery source ( ) ) snapshot ( ) get snapshot id ( ) get name ( ) ) ; t add cell ( state get index ( ) total recover files ( ) ) ; t add cell ( state get index ( ) recovered file count ( ) ) ; t add cell ( string format ( locale root , " % 1 1f % % " , state get index ( ) recovered files percent ( ) ) ) ; t add cell ( state get index ( ) total file count ( ) ) ; t add cell ( new byte size value ( state get index ( ) total recover bytes ( ) ) ) ; t add cell ( new byte size value ( state get index ( ) recovered bytes ( ) ) ) ; t add cell ( string format ( locale root , " % 1 1f % % " , state get index ( ) recovered bytes percent ( ) ) ) ; t add cell ( new byte size value ( state get index ( ) total bytes ( ) ) ) ; t add cell ( state get translog ( ) total operations ( ) ) ; t add cell ( state get translog ( ) recovered operations ( ) ) ; t add cell ( string format ( locale root , " % 1 1f % % " , state get translog ( ) recovered percent ( ) ) ) ; t end row ( ) ; } } return t ; }


public bytes reference source ( ) { return source ; }


creates a new char buffer by wrapping the given char array calling this method has the same effect as { @ code wrap ( array , 0 , array length ) }

public static char buffer wrap ( char [ ] array ) { return wrap ( array , 0 , array length ) ; }


this verifies that the width is correct with at most layout params

public void measure with at most layout params ( ) { final component component = new inline layout spec ( ) { @ override protected component on create layout ( component context c ) { return simple mount spec tester create ( c ) width percent ( 50 ) height percent ( 10 ) build ( ) ; } } ; m litho view = new litho view ( get application context ( ) ) ; m litho view set component ( component ) ; m litho view set layout params ( new recycler view layout manager override params ( size spec make size spec ( 100 , size spec at most ) , size spec make size spec ( 200 , size spec at most ) ) ) ; m litho view measure ( make measure spec ( 0 , unspecified ) , make measure spec ( 0 , unspecified ) ) ; m litho view layout ( 0 , 0 , m litho view get measured width ( ) , m litho view get measured height ( ) ) ; / / view got measured assert that ( m litho view get measured width ( ) ) is equal to ( 50 ) ; assert that ( m litho view get measured height ( ) ) is equal to ( 20 ) ; / / attaching will automatically mount since we already have a layout fitting our size shadow view shadow = shadow of ( m litho view ) ; shadow call on attached to window ( ) ; assert that ( get internal mount items ( m litho view ) ) is equal to ( 2 ) ; }


updated user this can only be done by the logged in user

public void update user test ( ) throws i o exception { string username = null ; user user = null ; api update user ( username , user ) ; / / todo : test validations }


returns the next non - whitespace character in { @ code input } that is white space result is undefined if input contains newline characters

private static int skip whitespace ( string input , int pos ) { for ( ; pos < input length ( ) ; pos + + ) { char c = input char at ( pos ) ; if ( c ! = ' ' & & c ! = ' \ t ' ) { break ; } } return pos ; }


keys which the output stream must support

public list < string > output stream statistic keys ( ) { return arrays as list ( stream write bytes , stream write block uploads , stream write exceptions ) ; }


specify the order to use for resource handling relative to other { @ code handler mapping } s configured in the spring configuration the default value used is { @ code integer max value - 1 }

public resource handler registry set order ( int order ) { this order = order ; return this ; }


not much to do : we hold a single internal bean factory that will never get released

protected final void close bean factory ( ) { this bean factory set serialization id ( null ) ; }


creates a new cglib { @ link enhancer } instance

private enhancer new enhancer ( class < ? > config super class , @ nullable class loader class loader ) { enhancer enhancer = new enhancer ( ) ; enhancer set superclass ( config super class ) ; enhancer set interfaces ( new class < ? > [ ] { enhanced configuration class } ) ; enhancer set use factory ( false ) ; enhancer set naming policy ( spring naming policy instance ) ; enhancer set strategy ( new bean factory aware generator strategy ( class loader ) ) ; enhancer set callback filter ( callback filter ) ; enhancer set callback types ( callback filter get callback types ( ) ) ; return enhancer ; }


public integer get int 3 2 ( ) { return int 3 2 ; }


returns an instance of type token that wraps { @ code type }

public static < t > type token < t > of ( class < t > type ) { return new simple type token < t > ( type ) ; }


the radius of the underlying shape this can refer to different things depending on the shape implementation

public float get radius ( ) { return m radius ; }


the amount of work ( { @ code element count cycles per element } ) is used to generate a list of blocks of work of near - equal size

list < block info < t > > get random generables ( long element count , int cycles per element ) ;


{ @ inherit doc } the default implementation returns the result of calling { @ link # visit children } on { @ code ctx }

@ override public t visit numeric ( painless parser numeric context ctx ) { return visit children ( ctx ) ; }


compare columns created from meta - data with declared columns and return a reconciled list

protected list < string > reconcile columns to use ( list < string > declared columns , string [ ] generated key names ) { if ( generated key names length > 0 ) { this generated key columns used = true ; } if ( ! declared columns is empty ( ) ) { return new array list < > ( declared columns ) ; } set < string > keys = new linked hash set < > ( generated key names length ) ; for ( string key : generated key names ) { keys add ( key to upper case ( ) ) ; } list < string > columns = new array list < > ( ) ; for ( table parameter meta data meta : obtain meta data provider ( ) get table parameter meta data ( ) ) { if ( ! keys contains ( meta get parameter name ( ) to upper case ( ) ) ) { columns add ( meta get parameter name ( ) ) ; } } return columns ; }


returns the initial value for this thread - local variable

protected v initial value ( ) throws exception { return null ; }


namespaces defined on this element < code > repeated aapt pb xml namespace namespace declaration = 1 ; < code >

public builder add namespace declaration ( int index , com android aapt resources xml namespace value ) { copy on write ( ) ; instance add namespace declaration ( index , value ) ; return this ; }


public void tags test ( ) { / / todo : test tags }


resolve the given embedded value through this instance ' s { @ link string value resolver }

protected string resolve embedded value ( string value ) { return ( this embedded value resolver ! = null ? this embedded value resolver resolve string value ( value ) : value ) ; }


public static void add file to zip file ( file zip file , file out zip file , file file , string dest path , boolean overwrite ) throws i o exception { byte [ ] buf = new byte [ 1024 ] ; zip input stream zin = new zip input stream ( new file input stream ( zip file ) ) ; zip output stream out = new zip output stream ( new file output stream ( out zip file ) ) ; zip entry entry = zin get next entry ( ) ; boolean add file = true ; while ( entry ! = null ) { boolean add entry = true ; string name = entry get name ( ) ; if ( string utils equals ignore case ( name , dest path ) ) { if ( overwrite ) { add entry = false ; } else { add file = false ; } } if ( add entry ) { zip entry zip entry = null ; if ( stored = = entry get method ( ) ) { zip entry = new zip entry ( entry ) ; } else { zip entry = new zip entry ( name ) ; } out put next entry ( zip entry ) ; int len ; while ( ( len = zin read ( buf ) ) > 0 ) { out write ( buf , 0 , len ) ; } } entry = zin get next entry ( ) ; } if ( add file ) { input stream in = new file input stream ( file ) ; / / add zip entry to output stream zip entry zip entry = new zip entry ( dest path ) ; out put next entry ( zip entry ) ; / / transfer bytes from the file to the zip file int len ; while ( ( len = in read ( buf ) ) > 0 ) { out write ( buf , 0 , len ) ; } / / complete the entry out close entry ( ) ; in close ( ) ; } / / close the streams zin close ( ) ; out close ( ) ; }


returns the long array of < code > n elements < code > starting at < code > index < code >

public long [ ] read long array ( long index , int n elements ) throws i o exception { if ( n elements < 0 ) { throw new i o exception ( " invalid number of elements specified : " + n elements ) ; } long [ ] arr = new long [ n elements ] ; for ( int i = 0 ; i < n elements ; + + i ) { arr [ i ] = read long ( index ) ; index + = sizeof long ; } return arr ; }


atomically removes the given subscriber if it is subscribed to the subject

void remove ( async disposable < t > ps ) { for ( ; ; ) { async disposable < t > [ ] a = subscribers get ( ) ; int n = a length ; if ( n = = 0 ) { return ; } int j = - 1 ; for ( int i = 0 ; i < n ; i + + ) { if ( a [ i ] = = ps ) { j = i ; break ; } } if ( j < 0 ) { return ; } async disposable < t > [ ] b ; if ( n = = 1 ) { b = empty ; } else { b = new async disposable [ n - 1 ] ; system arraycopy ( a , 0 , b , 0 , j ) ; system arraycopy ( a , j + 1 , b , j , n - j - 1 ) ; } if ( subscribers compare and set ( a , b ) ) { return ; } } }


get total current reservations used only by unit tests

public resource get current reservation ( ) { return attempt resource usage get reserved ( ) ; }


closes the given { @ link input stream } , logging any { @ code i o exception } that ' s thrown rather than propagating it while it ' s not safe in the general case to ignore exceptions that are thrown when closing an io resource , it should generally be safe in the case of a resource that ' s being used only for reading , such as an { @ code input stream } unlike with writable resources , there ' s no chance that a failure that occurs when closing the stream indicates a meaningful problem such as a failure to flush all bytes to the underlying resource

public static void close quietly ( @ nullable input stream input stream ) { try { close ( input stream , true ) ; } catch ( i o exception impossible ) { throw new assertion error ( impossible ) ; } }


set whether to cache the actual session bean object off by default for standard ejb compliance turn this flag on to optimize session bean access for servers that are known to allow for caching the actual session bean object

public void set cache session bean ( boolean cache session bean ) { this cache session bean = cache session bean ; }


removes all entries that are not marked as being used from the given constant pool creates a map from the old indices to the new indices as a side effect

private int shrink constant pool ( constant [ ] constant pool , int length ) { if ( constant index map length < length ) { constant index map = new int [ length ] ; } int counter = 1 ; boolean is used = false ; / / shift the used constant pool entries together for ( int index = 1 ; index < length ; index + + ) { constant index map [ index ] = counter ; constant constant = constant pool [ index ] ; / / is the constant being used ? don ' t update the flag if this is the / / second half of a long entry if ( constant ! = null ) { is used = usage marker is used ( constant ) ; } if ( is used ) { / / remember the new index constant index map [ index ] = counter ; / / shift the constant pool entry constant pool [ counter + + ] = constant ; } else { / / remember an invalid index constant index map [ index ] = - 1 ; } } / / clear the remaining constant pool elements arrays fill ( constant pool , counter , length , null ) ; return counter ; }


public codegen type get tag ( ) { return codegen type server ; }


generate any special icons for this content called asynchronously

public void create icons ( multi packer packer ) { }


created 10 000 nodes randomly adds different number outgoing and incoming edges for every node

public void test valid state of graph after concurrent access with varierty of nodes ( ) throws interrupted exception { digraph < integer > digraph = new digraph < > ( ) ; final int number of nodes = 50 000 ; final atomic integer id generator = new atomic integer ( ) ; runnable worker both 3 = new create node worker ( digraph , 3 , 3 , id generator ) ; runnable worker both 1 0 = new create node worker ( digraph , 10 , 10 , id generator ) ; runnable worker both 1 0 0 = new create node worker ( digraph , 100 , 100 , id generator ) ; runnable worker outgoing 2 0 = new create node worker ( digraph , 20 , 0 , id generator ) ; runnable worker incoming 2 0 = new create node worker ( digraph , 0 , 20 , id generator ) ; run workers ( number of nodes / 5 , / / have already 5 workers worker both 3 , worker both 1 0 , worker both 1 0 0 , worker incoming 2 0 , worker outgoing 2 0 ) ; assert that ( digraph get node count ( ) ) is equal to ( number of nodes ) ; assert graph is in consistent state ( digraph ) ; }


protected icon get tool bar icon ( ) { return create new comparison icon ; }


returns a rule class name suitable for log messages , including an aspect name if applicable

public string get rule class name for logging ( ) { return rule class name for logging ; }


assert the extracted body with a { @ link consumer }

< t extends s > t value ( consumer < b > consumer ) ;


public big decimal get number ( ) { return number ; }


test what happens we collide with an meteoroid

public void test collide meteoroid ( ) { test collision ( new meteoroid ( 1 , 1 , 3 , 4 ) , false , false , false , true ) ; }


public static open index request open index request ( string index ) { return new open index request ( index ) ; }


private void generate under allocation constraints ( final expressions based model lp model , final double c job i time k , final variable [ ] ua predict , final variable [ ] ua , final variable [ ] x , final int index job i time k , final int time k ) { / / ua predict job i time k + x time k > = c job i time k expression under alloc predict expression = lp model add expression ( " under alloc predict " + index job i time k ) ; under alloc predict expression set ( ua predict [ index job i time k ] , 1 ) ; under alloc predict expression set ( x [ time k ] , 1 ) ; under alloc predict expression lower ( c job i time k ) ; / / > = if ( time k > = 1 ) { / * * recursively calculate container under - allocation * / / / ua job i time k > = ua job i time ( k - 1 ) + c job i time k - x time k expression under alloc expression = lp model add expression ( " under alloc " + index job i time k ) ; under alloc expression set ( ua [ index job i time k ] , 1 ) ; under alloc expression set ( ua [ index job i time k - 1 ] , - 1 ) ; under alloc expression set ( x [ time k ] , 1 ) ; under alloc expression lower ( c job i time k ) ; / / > = } else {


display the help content identified by the help object

public void show help ( object help object , boolean info only , component parent ) ;


links to the privacy policy of this service , if any


the number of words of incoming arguments to the method that this code is for

public short get incoming size ( ) { return incoming size ; }


sets whether the request should be validated without altering the configs

public alter client quotas options validate only ( boolean validate only ) { this validate only = validate only ; return this ; }


sets the naming format to use when naming threads ( { @ link thread # set name } ) which are created with this thread factory

public thread factory builder set name format ( string name format ) { string unused = format ( name format , 0 ) ; / / fail fast if the format is bad or null this name format = name format ; return this ; }


link this node to the top of the checkpoint list

void add to checkpoint ( buffer node checkpoint head ) { prev in checkpoint = checkpoint head ; next in checkpoint = checkpoint head next in checkpoint ; checkpoint head next in checkpoint prev in checkpoint = this ; checkpoint head next in checkpoint = this ; }


many times ( range of 1 integer max value )

public static expected count many times ( ) { return new expected count ( 1 , integer max value ) ; }


returns true if a touch has been dragged outside the tap square

public boolean is dragging ( ) { return dragging ; }


this method shifts all the timestamp of the { @ link resource } entries by the specified " delta "

public void shift ( long delta ) { write lock lock ( ) ; try { tree map < long , resource > new cum = new tree map < > ( ) ; long start ; for ( map entry < long , resource > entry : cumulative capacity entry set ( ) ) { if ( delta > 0 ) { start = ( entry get key ( ) = = long max value ) ? long max value : entry get key ( ) + delta ; } else { start = ( entry get key ( ) = = long min value ) ? long min value : entry get key ( ) + delta ; } new cum put ( start , entry get value ( ) ) ; } cumulative capacity = new cum ; } finally { write lock unlock ( ) ; } }


public string get name ( ) { return name ; }


see the { @ link linker unwind info } class that was built for and is pertinent to processing x data

private void deserialize x data ( int stream num , task monitor monitor ) throws pdb exception , cancelled exception , i o exception { pdb byte reader reader = pdb get reader for stream number ( stream num , monitor ) ; int stream length = reader get limit ( ) ; / / system out println ( reader dump ( 0x 2 0 ) ) ; rva va debug header header = new rva va debug header ( ) ; x data header = header ; header deserialize ( reader ) ; / / system out println ( header dump ( ) ) ; if ( header get header version ( ) ! = 1 ) { return ; / / silent todo : add logging event } long header length = header get header length ( ) ; long data length = header get data length ( ) ; if ( header length + data length > stream length ) { throw new pdb exception ( " problem parsing debug x data " ) ; } reader set index ( ( int ) header length ) ; / / system out println ( reader dump ( ) ) ; x data reader = reader get sub pdb byte reader ( reader num remaining ( ) ) ; / / todo : this is a partial implementation we need to figure out more to know / / how to deal with it the only api information regarding the x data is with / / regard to processing p data when the " machine " is ia64 or amd64 the interpretation / / for these machines is not real clear ( or a bit of work ) , and there is no other / / interpretation available when the machine is different }


protected class < ? > get proxy interface ( object proxy bean ) throws exception { if ( dubbo util is dubbo proxy name ( proxy bean get class ( ) get name ( ) ) ) { / / dubbo javaassist proxy return dubbo util get assist interface ( proxy bean ) ; } else { / / jdk / cglib proxy return spring proxy utils get target interface ( proxy bean ) ; } }


return true if this tag object is equal to o

public boolean equals ( object o ) { if ( this = = o ) { return true ; } if ( o = = null | | get class ( ) ! = o get class ( ) ) { return false ; } tag tag = ( tag ) o ; return objects equals ( this id , tag id ) & & objects equals ( this name , tag name ) ; }


assert a flash attribute ' s value with the given hamcrest { @ link matcher }

public < t > result matcher attribute ( string name , matcher < ? super t > matcher ) { return result - > assert that ( " flash attribute ' " + name + " ' " , ( t ) result get flash map ( ) get ( name ) , matcher ) ; }


creates a copy of the { @ link table source } that projects its output to the given field indexes the field indexes relate to the physical poduced data type ( { @ link table source # get produced data type ( ) } ) and not to the table schema ( { @ link table source # get table schema } of the { @ link table source } the table schema ( { @ link table source # get table schema } of the { @ link table source } copy must not be modified by this method , but only the produced data type ( { @ link table source # get produced data type ( ) } ) and the produced { @ code data set } ( { @ code batch table source # get data set ( } ) or { @ code data stream } ( { @ code stream table source # get data stream } ) if the { @ link table source } implements the { @ link defined field mapping } interface , it might be necessary to adjust the mapping as well important : this method must return a true copy and must not modify the original table source object

table source < t > project fields ( int [ ] fields ) ;


create a sorted ( tree ) map from an unsorted map this incurs the cost of creating a map and that of inserting every object into the tree

private static < e > map < string , e > sorted map ( final map < string , e > source , final predicate < e > is empty ) { map < string , e > tm = new tree map < > ( ) ; for ( map entry < string , e > entry : source entry set ( ) ) { if ( ! is empty test ( entry get value ( ) ) ) { tm put ( entry get key ( ) , entry get value ( ) ) ; } } return tm ; }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


standard getter method for the text that should be displayed in order to represent the severity to humans and product modelers

public string get text ( ) { return text ; }


public void route ( http method , string path spec , class < ? extends controller > cls , string action ) { list < string > res = parse route ( path spec ) ; router add ( method , res get ( r path ) , cls , action , res sub list ( r params , res size ( ) ) ) ; }


writes the long value into the { @ code block builder }

void write long ( block builder block builder , long value ) ;


returns the name by which this rule was declared ( e g { @ code foobar : baz } returns { @ code baz } )


visit a parse tree produced by { @ link sql base parser # join type }

t visit join type ( sql base parser join type context ctx ) ;


the manager is about to layout a component over a field in the panel

public void field layout ( field panel over layout event ev ) ;


compare string array 1 and string array 2 return the different in str 1

public static string [ ] compare string ( final string [ ] string array 1 , final string [ ] string array 2 ) { string [ ] different string = null ; if ( string array 1 ! = null & & string array 2 ! = null ) { list < string > list = new array list < string > ( ) ; for ( int i = 0 ; i < string array 1 length ; i + + ) { boolean sign = false ; for ( int j = 0 ; j < string array 2 length ; j + + ) { if ( string array 1 [ i ] equals ( string array 2 [ j ] ) ) { sign = true ; break ; } } if ( ! sign ) { list add ( string array 1 [ i ] ) ; } } different string = new string [ list size ( ) ] ; different string = list to array ( different string ) ; } return different string ; }


asynchronously explain the lifecycle state for an index see https : www elastic coguideenelasticsearchclientjava - restcurrent java - rest - high - ilm - ilm - explain - lifecycle html for more

public cancellable explain lifecycle async ( explain lifecycle request request , request options options , action listener < explain lifecycle response > listener ) { return rest high level client perform request async and parse entity ( request , index lifecycle request converters : : explain lifecycle , options , explain lifecycle response : : from x content , listener , empty set ( ) ) ; }


determine if the ordering strategy matches the expected one

private static boolean is order ( bucket order order , bucket order expected ) { if ( order = = expected ) { return true ; } else if ( order instanceof compound order ) { / / check if its a compound order with the first element that matches list < bucket order > orders = ( ( compound order ) order ) order elements ; if ( orders size ( ) > = 1 ) { return is order ( orders get ( 0 ) , expected ) ; } } return false ; }


generates a random string with the specified maximum length

public static string build test string ( int maximum length , random random ) { int length = random next int ( maximum length ) ; string builder builder = new string builder ( length ) ; for ( int i = 0 ; i < length ; i + + ) { builder append ( ( char ) random next int ( ) ) ; } return builder to string ( ) ; }


returns the current value being referenced , or { @ code null } if there is none ( e g because either it got collected , or { @ link # clear } was called , or it wasn ' t set in the first place )


gets the match for the association indicated by the source and destination address

protected v t match get match ( address source , address destination ) { list < v t match set > match sets = session get match sets ( ) ; / / get match set 2 since 0 is manual matches and 1 is implied matches v t match set vt match set = match sets get ( 2 ) ; assert not null ( vt match set ) ; collection < v t match > matches = vt match set get matches ( source , destination ) ; v t match [ ] matches array = matches to array ( new v t match [ matches size ( ) ] ) ; assert true ( matches array length > 0 ) ; v t match vt match = matches array [ 0 ] ; wait for swing ( ) ; return vt match ; }


set the throttle for this request in sub - requests per second { @ link float # positive infinity } means set no throttle and that is the default throttling is done between batches , as we start the next scroll requests that way we can increase the scroll ' s timeout to make sure that it contains any time that we might wait

public self set requests per second ( float requests per second ) { request set requests per second ( requests per second ) ; return self ( ) ; }


set the length of the body in bytes , as specified by the { @ code content - length } header

body builder content length ( long content length ) ;


apply the defaults to the specified { @ link cache operation builder }

public void apply default ( cache operation builder builder ) { if ( ! this initialized ) { cache config annotation = annotated element utils find merged annotation ( this target , cache config class ) ; if ( annotation ! = null ) { this cache names = annotation cache names ( ) ; this key generator = annotation key generator ( ) ; this cache manager = annotation cache manager ( ) ; this cache resolver = annotation cache resolver ( ) ; } this initialized = true ; } if ( builder get cache names ( ) is empty ( ) & & this cache names ! = null ) { builder set cache names ( this cache names ) ; } if ( ! string utils has text ( builder get key ( ) ) & & ! string utils has text ( builder get key generator ( ) ) & & string utils has text ( this key generator ) ) { builder set key generator ( this key generator ) ; } if ( string utils has text ( builder get cache manager ( ) ) | | string utils has text ( builder get cache resolver ( ) ) ) { / / one of these is set so we should not inherit anything } else if ( string utils has text ( this cache resolver ) ) { builder set cache resolver ( this cache resolver ) ; } else if ( string utils has text ( this cache manager ) ) { builder set cache manager ( this cache manager ) ; } }


create label symbol giving preference to non - global symbols an existing function symbol may be returned if attempting to create a global symbol and the name already exists at the address no symbol will be created and null will be returned if attempting to create a non - global symbol , which does not exist , and a global symbol does exist with same name its namespace will be changed

public static symbol create preferred label or function symbol ( program program , address address , namespace namespace , string name , source type source ) throws invalid input exception { try { if ( ! address is memory address ( ) ) { throw new illegal argument exception ( " expected memory address " ) ; } if ( namespace = = null ) { namespace = program get global namespace ( ) ; } symbol table symbol table = program get symbol table ( ) ; / / check for symbol already existing at address symbol symbol = symbol table get symbol ( name , address , namespace ) ; if ( symbol ! = null ) { return symbol ; } if ( namespace is global ( ) ) { / / do not add global symbol if same name already exists at address for ( symbol s : program get symbol table ( ) get symbols ( address ) ) { if ( name equals ( s get name ( ) ) ) { return null ; } } } else { / / change namespace on global symbol with same name symbol = symbol table get global symbol ( name , address ) ; if ( symbol ! = null ) { symbol set namespace ( namespace ) ; return symbol ; } } / / create new symbol if needed return symbol table create label ( address , name , namespace , source ) ; } catch ( duplicate name exception | circular dependency exception e ) { throw new assert exception ( e ) ; } }


resets the state of this object to what it was after construction

public void clear ( ) { flush ( ) ; max access unit count = default batch size access units ; }


public create index request settings ( settings settings ) { this settings = settings ; return this ; }


public void remove ( object obj ) { shared remove ( obj ) ; }


called for each failure obtained from non master nodes

public void on failure ( discovery node node ) { boolean found = pending nodes remove ( node ) ; assert found : " node [ " + node + " ] already responded or failed " ; boolean added = failed nodes add ( node ) ; assert added : " duplicate failures for " + node ; latch count down ( ) ; }


check that this query is generally not cacheable

public void test cacheability ( ) throws i o exception { script query builder query builder = create test query builder ( ) ; query shard context context = create shard context ( ) ; query builder rewrite query = rewrite query ( query builder , new query shard context ( context ) ) ; assert not null ( rewrite query to query ( context ) ) ; assert false ( " query should not be cacheable : " + query builder to string ( ) , context is cacheable ( ) ) ; }


test for the object matching a path , ignoring the container value

public boolean object matches ( string path ) { return object equals ( path ) ; }


static script sort type read from stream ( final stream input in ) throws i o exception { return in read enum ( script sort type class ) ; }


compute the value using { @ link modular # mod ( long , long ) }

double compute modular ( ) { long e = e value ; long n = n value ; double s = 0 ; for ( ; e > e limit ; e + = e delta ) { s = modular add mod ( s , modular mod ( e , n ) / ( double ) n ) ; n + = n delta ; } return s ; }


returns a freshly created entry , typed at the { @ code e } type , for the given { @ code segment }

e new entry ( s segment , k key , int hash , @ nullable e next ) ;


returns a deep clone of this bootstrap which has the identical configuration this method is useful when making multiple { @ link channel } s with similar settings please note that this method does not clone the { @ link event loop group } deeply but shallowly , making the group a shared resource


gets target output location for the file , relative to the output directory

public string get destination filename ( ) { return destination filename ; }


consumes the next token from the json stream and asserts that it is the end of the current object

public void end object ( ) throws i o exception { int p = peeked ; if ( p = = peeked none ) { p = do peek ( ) ; } if ( p = = peeked end object ) { stack size - - ; path names [ stack size ] = null ; / / free the last path name so that it can be garbage collected ! path indices [ stack size - 1 ] + + ; peeked = peeked none ; } else { throw new illegal state exception ( " expected end object but was " + peek ( ) + location string ( ) ) ; } }


guaranteed to throw an exception and leave the table unmodified

public final v remove ( object row key , object column key ) { throw new unsupported operation exception ( ) ; }


post fakecreate xml item : creates an xml item this route creates an xml item

default response entity < void > create xml item ( xml item xml item ) { return new response entity < > ( http status not implemented ) ; }


create a new { @ link merged annotation } instance of the specified annotation type with attribute values supplied by a map

static < a extends annotation > merged annotation < a > of ( class < a > annotation type , @ nullable map < string , ? > attributes ) { return of ( null , annotation type , attributes ) ; }


private boolean save changes ( @ nullable final d b r progress monitor monitor , @ not null result set save settings settings , @ nullable final result set persister data update listener listener ) { u i utils sync exec ( ( ) - > get active presentation ( ) apply changes ( ) ) ; try { final result set persister persister = create data persister ( false ) ; final result set persister data update listener apply listener = success - > { if ( listener ! = null ) { listener on update ( success ) ; } if ( success & & get preference store ( ) get boolean ( result set preferences rs edit refresh after update ) ) { / / refresh updated rows try { persister refresh inserted rows ( ) ; } catch ( throwable e ) { log error ( " error refreshing rows after update " , e ) ; } } } ; return persister apply changes ( monitor , false , settings , apply listener ) ; } catch ( d b exception e ) { d b workbench get platform u i ( ) show error ( " apply changes error " , " error saving changes in database " , e ) ; return false ; } }


returns the estimated number of occurrences of an element , up to the maximum ( 15 )

public int frequency ( @ non null e e ) { if ( is not initialized ( ) ) { return 0 ; } int hash = spread ( e hash code ( ) ) ; int start = ( hash & 3 ) < < 2 ; int frequency = integer max value ; for ( int i = 0 ; i < 4 ; i + + ) { int index = index of ( hash , i ) ; int count = ( int ) ( ( table [ index ] > > > ( ( start + i ) < < 2 ) ) & 0xf l ) ; frequency = math min ( frequency , count ) ; } return frequency ; }


imports dwarf information according to the { @ link d w a r f import options } set { @ link d w a r f program # check preconditions ( task monitor ) } must be called before this

public d w a r f import summary parse ( ) throws i o exception , d w a r f exception , cancelled exception { monitor set indeterminate ( false ) ; monitor set show progress value ( true ) ; long start ts = system current time millis ( ) ; if ( import options is import data types ( ) ) { dwarf d t m import all data types ( monitor ) ; prog get ghidra program ( ) flush events ( ) ; import summary data type elapsed m s = system current time millis ( ) - start ts ; } if ( import options is import funcs ( ) ) { long funcstart ts = system current time millis ( ) ; d w a r f function importer dfi = new d w a r f function importer ( prog , dwarf d t m , import options , import summary , monitor ) ; dfi import functions ( ) ; import summary funcs elapsed m s = system current time millis ( ) - funcstart ts ; } if ( import options is organize types by source file ( ) ) { move types into source folders ( ) ; } import summary total elapsed m s = system current time millis ( ) - start ts ; return import summary ; }


adds a route to the given handler function that handles all http { @ code post } requests that match the given predicate

builder post ( request predicate predicate , handler function < server response > handler function ) ;


public int compare to ( datanode i d that ) { return get xfer addr ( ) compare to ( that get xfer addr ( ) ) ; }


default void on volume changed ( float volume ) { }


iterator has data if it is either is the initial iteration , or the last listing obtained was incomplete

public boolean has next ( ) throws i o exception { if ( listing = = null ) { / / shouldn ' t happen , but don ' t trust aws sdk return false ; } else { return first listing | | listing is truncated ( ) ; } }


returns true if the specified index into the underlying byte provider is valid

public boolean is valid index ( long index ) throws i o exception { return provider is valid index ( index ) ; }


add a user handle to this repository server

public void add handle ( repository server handle impl handle ) { synchronized ( handle list ) { handle list add ( handle ) ; } }


protected void add profile roles ( final ldap entry user entry , final user profile profile , final ldap attribute attribute , final string prefix ) { add profile roles from attributes ( profile , attribute , prefix ) ; }


associates the ( { @ code row key } , { @ code column key } ) pair with { @ code value } in the built table duplicate key pairs are not allowed and will cause { @ link # build } to fail

public builder < r , c , v > put ( r row key , c column key , v value ) { cells add ( cell of ( row key , column key , value ) ) ; return this ; }


find the fields constant that matches field id , throwing an exception if it is not found

public static fields find by thrift id or throw ( int field id ) { fields fields = find by thrift id ( field id ) ; if ( fields = = null ) throw new illegal argument exception ( " field " + field id + " doesn ' t exist ! " ) ; return fields ; }


find purchase order by id for valid response try integer i ds with value & lt ; & # x 3 d ; 5 or & gt ; 10 other values will generated exceptions

public void get order by id test ( ) { long order id = null ; order response = api get order by id ( order id ) block ( ) ; / / todo : test validations }


is the registered service need authentication ?

public boolean does service need authentication ( final o auth registered service registered service ) { return string utils is not blank ( registered service get client secret ( ) ) ; }


invokes subject do as inside a do privileged block

static < t > t do as wrapper ( final subject subject , final privileged exception action < t > action ) throws privileged action exception { return access controller do privileged ( ( privileged exception action < t > ) ( ) - > subject do as ( subject , action ) ) ; }


public string get name string ( ) { return name string ; }


the data type choice of the user or null if the dialog was cancelled

public data type get user chosen data type ( ) { return user choice ; }


positive test to check rename succeeds for hierarchy of files and folders under a src directory when destination folder already exists

public void test rename positive when destination folder exists ( ) throws throwable { path parent src dir = new path ( " / test rename positive for folder src " ) ; path src file path = new path ( parent src dir , " test 1 dat " ) ; path src folder path = new path ( parent src dir , " test folder " ) ; path dst dir = new path ( " / test rename positive for folder dst " ) ; path final dst dir = new path ( dst dir , " test rename positive for folder src " ) ; path dst file path = new path ( final dst dir , " test 1 dat " ) ; path dst folder path = new path ( final dst dir , " test folder " ) ; / * to create parent dirs * / authorizer add auth rule for owner ( " / " , write , true ) ; authorizer add auth rule for owner ( parent src dir to string ( ) , write , true ) ; authorizer add auth rule for owner ( dst dir to string ( ) , write , true ) ; / * required for assert path exists calls * / authorizer add auth rule for owner ( " / " , read , true ) ; authorizer add auth rule for owner ( parent src dir to string ( ) , read , true ) ; authorizer add auth rule for owner ( final dst dir to string ( ) , read , true ) ; fs update wasb authorizer ( authorizer ) ; try { touch ( fs , src file path ) ; assert path exists ( fs , " src file path does not exist " , src file path ) ; fs mkdirs ( src folder path ) ; assert is directory ( fs , src folder path ) ; fs mkdirs ( dst dir ) ; assert is directory ( fs , dst dir ) ; assert rename outcome ( fs , parent src dir , dst dir , true ) ; assert path does not exist ( fs , " parent src dir exists " , parent src dir ) ; assert path does not exist ( fs , " src file path exists " , src file path ) ; assert path does not exist ( fs , " src folder path exists " , src folder path ) ; assert path exists ( fs , " dest path does not exist " , dst dir ) ; assert path exists ( fs , " dst file path does not exist " , dst file path ) ; assert path exists ( fs , " dst folder path does not exist " , dst folder path ) ; } finally { recursive delete ( parent src dir ) ; recursive delete ( dst dir ) ; } }


return a read - only list with the configured handlers

public list < handler method return value handler > get return value handlers ( ) { return collections unmodifiable list ( this return value handlers ) ; }


the total size of the log segments in this replica in bytes


set the handler invoked when an internal { @ link streams config # num stream threads config stream thread } abruptly terminates due to an uncaught exception

public void set uncaught exception handler ( final thread uncaught exception handler uncaught exception handler ) { synchronized ( state lock ) { if ( state = = state created ) { old handler = true ; for ( final stream thread thread : threads ) { thread set uncaught exception handler ( uncaught exception handler ) ; } if ( global stream thread ! = null ) { global stream thread set uncaught exception handler ( uncaught exception handler ) ; } } else { throw new illegal state exception ( " can only set uncaught exception handler in created state " + " current state is : " + state ) ; } } }


set the number of results cached , locally or remotely

public builder set num cached ( int num cached ) { check mutation ( ) ; summary num cached = num cached ; return this ; }


parses source tags from expression " source tags ( num of allocations ) "

public static source tags parse from ( string expr ) throws placement constraint parse exception { source tags tokenizer stt = new source tags tokenizer ( expr ) ; stt validate ( ) ; / / during validation we already checked the number of parsed elements string alloc tag = stt next element ( ) ; int alloc num = integer parse int ( stt next element ( ) ) ; return new source tags ( alloc tag , alloc num ) ; }


returns the enclosed environment that holds the original binding

private elements get private elements ( ) ;


check that the indicated file ' s blocks are present and replicated if not , return false if checkall is true , then check all blocks , otherwise check only penultimate block

boolean check file progress ( string src , i node file v , boolean checkall ) { assert has read lock ( ) ; if ( checkall ) { return check blocks complete ( src , true , v get blocks ( ) ) ; } else { final block info [ ] blocks = v get blocks ( ) ; final int i = blocks length - num committed allowed - 2 ; return i < 0 | | blocks [ i ] = = null | | check blocks complete ( src , false , blocks [ i ] ) ; } }


inserts this entry before the specified existing entry in the list

private void add before ( header entry existing entry ) { after = existing entry ; before = existing entry before ; before after = this ; after before = this ; }


specify the maximum number of messages to load into a session ( a kind of batch size )

public void set prefetch size ( int prefetch size ) { this prefetch size = prefetch size ; }


internal use only used by { @ link deferred request creator }

request creator unfit ( ) { deferred = false ; return this ; }