projects a { @ link tuple } { @ link data stream } to the previously selected fields

public < t0 , t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 > single output stream operator < tuple 1 0 < t0 , t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 > > project tuple 1 0 ( ) { type information < ? > [ ] f types = extract field types ( field indexes , data stream get type ( ) ) ; tuple type info < tuple 1 0 < t0 , t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 > > t type = new tuple type info < tuple 1 0 < t0 , t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 > > ( f types ) ; return data stream transform ( " projection " , t type , new stream project < in , tuple 1 0 < t0 , t1 , t2 , t3 , t4 , t5 , t6 , t7 , t8 , t9 > > ( field indexes , t type create serializer ( data stream get execution config ( ) ) ) ) ; }


gets the executor which executes in the main thread of the resource manager


sort the entries in both the normal and root manifests and write the output file

private void write file ( output stream out , map < path fragment , artifact > output ) throws i o exception { writer manifest file = new buffered writer ( new output stream writer ( out , iso 8859 1 ) ) ; list < map entry < path fragment , artifact > > sorted manifest = new array list < > ( output entry set ( ) ) ; collections sort ( sorted manifest , entry comparator ) ; for ( map entry < path fragment , artifact > line : sorted manifest ) { manifest writer write entry ( manifest file , line get key ( ) , line get value ( ) ) ; } manifest file flush ( ) ; }


returns true if this dialog remembers its location from one invocation to the next

public boolean get remember location ( ) { return remember location ; }


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


public static void set color for drawer layout diff ( activity activity , drawer layout drawer layout , @ color int int color ) { if ( build version sdk int > = build version codes kitkat ) { activity get window ( ) add flags ( window manager layout params flag translucent status ) ; / / view group content layout = ( view group ) drawer layout get child at ( 0 ) ; view fake status bar view = content layout find view by id ( fake status bar view id ) ; if ( fake status bar view ! = null ) { if ( fake status bar view get visibility ( ) = = view gone ) { fake status bar view set visibility ( view visible ) ; } fake status bar view set background color ( calculate status color ( color , default status bar alpha ) ) ; } else { / / status bar view content layout add view ( create status bar view ( activity , color ) , 0 ) ; } / / linear layout , top if ( ! ( content layout instanceof linear layout ) & & content layout get child at ( 1 ) ! = null ) { content layout get child at ( 1 ) set padding ( 0 , get status bar height ( activity ) , 0 , 0 ) ; } / / set drawer layout property ( drawer layout , content layout ) ; } }


match needs to return the current input symbol , which gets put into the label for the associated token ref ; e g , x = id

public token get current token ( ) { return input lt ( 1 ) ; }


packet payload create packet payload ( byte buf message ) ;


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


assert the response status code is { @ code http status not extended } ( 510 )

public result matcher is not extended ( ) { return matcher ( http status not extended ) ; }


insert the specified number of records using random keys

private d b record [ ] create random fixed key table records ( table table , int record cnt , int var data size ) throws i o exception { long tx id = dbh start transaction ( ) ; if ( table = = null ) { table = d b test utils create fixed key table ( dbh , table 1 name , d b test utils all types , false , false ) ; } d b record [ ] recs = new d b record [ record cnt ] ; for ( int i = 0 ; i < record cnt ; i + + ) { try { recs [ i ] = d b test utils create fixed key record ( table , var data size , true ) ; } catch ( duplicate key exception e ) { assert fail ( " duplicate key error " ) ; } } dbh end transaction ( tx id , true ) ; return recs ; }


ensures we don ' t release with forced values which is intended for local development only

public void no values are forced ( ) { assert true ( feature flags forced values is empty ( ) ) ; }


initializes the ghidra script editor subcomponent nothing in the package should be used until this initialization happens should be called during eclipse startup

public static void init ( boolean first time consent ) { if ( first time consent ) { ghidra script editor preferences set script editor enabled ( true ) ; } listen ( ghidra script editor preferences get script editor port ( ) ) ; }


whether to treat the redirect url as a uri template set this flag to { @ code false } if the redirect url contains open and close curly braces " { " , " } " and you don ' t want them interpreted as uri variables defaults to { @ code true }

public void set expand uri template variables ( boolean expand uri template variables ) { this expand uri template variables = expand uri template variables ; }


returns the number of thunks in the thunk table

public int get num thunks ( ) { return num thunks ; }


public void get gauge ( io grpc testing integration metrics gauge request request , io grpc stub stream observer < io grpc testing integration metrics gauge response > response observer ) { io grpc stub server calls async unimplemented unary call ( get get gauge method ( ) , response observer ) ; }


convenience method for reading a base 6 4 - encoded file and decoding it as of v 2 3 , if there is a error , the method will throw an java io i o exception < b > this is new to v 2 3 ! < b > in earlier versions , it just returned false , but in retrospect that ' s a pretty poor way to handle it

public static byte [ ] decode from file ( string filename ) throws java io i o exception { byte [ ] decoded data = null ; base 6 4 input stream bis = null ; try { / / set up some useful variables java io file file = new java io file ( filename ) ; byte [ ] buffer = null ; int length = 0 ; int num bytes = 0 ; / / check for size of file if ( file length ( ) > integer max value ) { throw new java io i o exception ( " file is too big for this convenience method ( " + file length ( ) + " bytes ) " ) ; } / / end if : file too big for int index buffer = new byte [ ( int ) file length ( ) ] ; / / open a stream bis = new base 6 4 input stream ( new java io buffered input stream ( new java io file input stream ( file ) ) , base 6 4 decode ) ; / / read until done while ( ( num bytes = bis read ( buffer , length , 4096 ) ) > = 0 ) { length + = num bytes ; } / / end while / / save in a variable to return decoded data = new byte [ length ] ; system arraycopy ( buffer , 0 , decoded data , 0 , length ) ; } / / end try catch ( java io i o exception e ) { throw e ; / / catch and release to execute finally { } } / / end catch : java io i o exception finally { try { bis close ( ) ; } catch ( exception e ) { } } / / end finally return decoded data ; }


sets the minimum word length below which words will be ignored defaults to { @ code 0 }

public more like this query builder min word length ( int min word length ) { this min word length = min word length ; return this ; }


returns top n hot - threads samples per node the hot - threads are only sampled for the node ids specified in the request

void nodes hot threads ( nodes hot threads request request , action listener < nodes hot threads response > listener ) ;


probe for a path being a parent of another

private boolean is parent of ( path parent , path child ) { uri parent u r i = parent to uri ( ) ; string parent path = parent u r i get path ( ) ; if ( ! parent path ends with ( " / " ) ) { parent path + = " / " ; } uri child u r i = child to uri ( ) ; string child path = child u r i get path ( ) ; return child path starts with ( parent path ) ; }


a bitmask of types that this xml attribute accepts corresponds to the flags in the enum format flags < code > optional uint 3 2 format flags = 1 ; < code >

public int get format flags ( ) { return instance get format flags ( ) ; }


public static void main ( string [ ] args ) throws i o exception { string utils startup shutdown message ( registry d n s server class , args , log ) ; configuration conf = new registry configuration ( ) ; new generic options parser ( conf , args ) ; launch d n s server ( conf , null ) ; }


manipulate this request ' s cookies with the given consumer the map provided to the consumer is " live " , so that the consumer can be used to { @ linkplain multi value map # set ( object , object ) overwrite } existing header values , { @ linkplain multi value map # remove ( object ) remove } values , or use any of the other { @ link multi value map } methods

s cookies ( consumer < multi value map < string , string > > cookies consumer ) ;


indicates whether the given class can be written by this converter this method should perform the same checks than { @ link http message converter # can write ( class , media type ) } with additional ones related to the generic type

boolean can write ( @ nullable type type , class < ? > clazz , @ nullable media type media type ) ;


public boolean delete tenant capacity ( final string tenant ) { try { prepared statement creator prepared statement creator = new prepared statement creator ( ) { @ override public prepared statement create prepared statement ( connection connection ) throws s q l exception { prepared statement ps = connection prepare statement ( " delete from tenant capacity where tenant id = ? ; " ) ; ps set string ( 1 , tenant ) ; return ps ; } } ; return jdbc template update ( prepared statement creator ) = = 1 ; } catch ( cannot get jdbc connection exception e ) { fatal log error ( " [ db - error ] " , e ) ; throw e ; } }


reads the bits in the { @ link bit matrix } representing the mapping matrix ( no alignment patterns ) in the correct order in order to reconstitute the codewords bytes contained within the data matrix code

byte [ ] read codewords ( ) throws format exception { byte [ ] result = new byte [ version get total codewords ( ) ] ; int result offset = 0 ; int row = 4 ; int column = 0 ; int num rows = mapping bit matrix get height ( ) ; int num columns = mapping bit matrix get width ( ) ; boolean corner 1 read = false ; boolean corner 2 read = false ; boolean corner 3 read = false ; boolean corner 4 read = false ; / / read all of the codewords do { / / check the four corner cases if ( ( row = = num rows ) & & ( column = = 0 ) & & ! corner 1 read ) { result [ result offset + + ] = ( byte ) read corner 1 ( num rows , num columns ) ; row - = 2 ; column + = 2 ; corner 1 read = true ; } else if ( ( row = = num rows - 2 ) & & ( column = = 0 ) & & ( ( num columns & 0x 0 3 ) ! = 0 ) & & ! corner 2 read ) { result [ result offset + + ] = ( byte ) read corner 2 ( num rows , num columns ) ; row - = 2 ; column + = 2 ; corner 2 read = true ; } else if ( ( row = = num rows + 4 ) & & ( column = = 2 ) & & ( ( num columns & 0x 0 7 ) = = 0 ) & & ! corner 3 read ) { result [ result offset + + ] = ( byte ) read corner 3 ( num rows , num columns ) ; row - = 2 ; column + = 2 ; corner 3 read = true ; } else if ( ( row = = num rows - 2 ) & & ( column = = 0 ) & & ( ( num columns & 0x 0 7 ) = = 4 ) & & ! corner 4 read ) { result [ result offset + + ] = ( byte ) read corner 4 ( num rows , num columns ) ; row - = 2 ; column + = 2 ; corner 4 read = true ; } else { / / sweep upward diagonally to the right do { if ( ( row < num rows ) & & ( column > = 0 ) & & ! read mapping matrix get ( column , row ) ) { result [ result offset + + ] = ( byte ) read utah ( row , column , num rows , num columns ) ; } row - = 2 ; column + = 2 ; } while ( ( row > = 0 ) & & ( column < num columns ) ) ; row + = 1 ; column + = 3 ; / / sweep downward diagonally to the left do { if ( ( row > = 0 ) & & ( column < num columns ) & & ! read mapping matrix get ( column , row ) ) { result [ result offset + + ] = ( byte ) read utah ( row , column , num rows , num columns ) ; } row + = 2 ; column - = 2 ; } while ( ( row < num rows ) & & ( column > = 0 ) ) ; row + = 3 ; column + = 1 ; } } while ( ( row < num rows ) | | ( column < num columns ) ) ; if ( result offset ! = version get total codewords ( ) ) { throw format exception get format instance ( ) ; } return result ; }


sets the { @ link analytics collector } that will collect and forward all player events

public builder set analytics collector ( analytics collector analytics collector ) { assertions check state ( ! build called ) ; this analytics collector = analytics collector ; return this ; }


public void write ( digraph < t > graph , @ nullable conditional edges conditional edges , output stream out ) { print writer print writer = new print writer ( new output stream writer ( out , utf 8 ) ) ; if ( merge equivalent nodes ) { output factored ( graph , conditional edges , print writer ) ; } else { output unfactored ( graph , conditional edges , print writer ) ; } }


returns a map of the headers the keys are strings that represent the header name each values is a list of strings that represent the corresponding header values see { @ link http response header }

map < string , list < string > > get headers ( ) ;


return a < a href = " https : en wikipedia orgwiki hex dump " > hex dump of the line separator in utf - 8 encoding

public string to string ( ) { return byte buf util hex dump ( value get bytes ( charset util utf 8 ) ) ; }


disposes all resources associated with this shader must be called when the shader is no longer used

public void dispose ( ) { gl20 gl = gdx gl 2 0 ; gl gl use program ( 0 ) ; gl gl delete shader ( vertex shader handle ) ; gl gl delete shader ( fragment shader handle ) ; gl gl delete program ( program ) ; if ( shaders get ( gdx app ) ! = null ) shaders get ( gdx app ) remove value ( this , true ) ; }


for shards and delta select id from ` shards ` table for both shard and delta shards - purpose : 1 check the count as pre - check to avoid conflict 2 get statistics 3 use id to perform delete insert into deleted shards delete from ` shards node ` table ( won ' t verify delete count : none - bucketed ) for both shards and delta shards delete from ` shards ` table verify delete count for both shards and delta shards delete from index table verify delete count only for shards

private shard stats delete shards and index simple ( long table id , set < uuid > shard uuids , handle handle , boolean is delta ) throws s q l exception { if ( shard uuids is empty ( ) ) { return new shard stats ( 0 , 0 , 0 ) ; } long row count = 0 ; long compressed size = 0 ; long uncompressed size = 0 ; / / for batch execution for ( list < uuid > uuids : partition ( shard uuids , 1000 ) ) { string args = joiner on ( " , " ) join ( n copies ( uuids size ( ) , " ? " ) ) ; immutable set builder < long > shard id set = immutable set builder ( ) ; string select shards = format ( " " + " select shard id , row count , compressed size , uncompressed size \ n " + " from shards \ n " + " where shard uuid in ( % s ) " , args ) ; try ( prepared statement statement = handle get connection ( ) prepare statement ( select shards ) ) { bind uuids ( statement , uuids ) ; try ( result set rs = statement execute query ( ) ) { while ( rs next ( ) ) { shard id set add ( rs get long ( " shard id " ) ) ; row count + = rs get long ( " row count " ) ; compressed size + = rs get long ( " compressed size " ) ; uncompressed size + = rs get long ( " uncompressed size " ) ; } } } set < long > shard ids = shard id set build ( ) ; if ( shard ids size ( ) ! = uuids size ( ) ) { throw transaction conflict ( ) ; } / / for background cleaner shard dao dao = shard dao supplier attach ( handle ) ; dao insert deleted shards ( uuids ) ; string where = " where shard id in ( " + args + " ) " ; string delete from shard nodes = " delete from shard nodes " + where ; string delete from shards = " delete from shards " + where ; string delete from shard index = " delete from " + shard index table ( table id ) + where ; try ( prepared statement statement = handle get connection ( ) prepare statement ( delete from shard nodes ) ) { bind longs ( statement , shard ids ) ; statement execute update ( ) ; } for ( string sql : is delta ? immutable list of ( delete from shards ) : as list ( delete from shards , delete from shard index ) ) { try ( prepared statement statement = handle get connection ( ) prepare statement ( sql ) ) { bind longs ( statement , shard ids ) ; if ( statement execute update ( ) ! = shard ids size ( ) ) { throw transaction conflict ( ) ; } } } } return new shard stats ( row count , compressed size , uncompressed size ) ; }


void ensure valid ( string name , object value ) ;


public final void keep log ( ) throws i o exception { keep log ( true ) ; }


gets the list of " inner class " entries associated with this instance

public inner class list get inner classes ( ) { return inner classes ; }


public void set release note ( string release note ) { this release note = release note ; }


overwrites the element at a certain index with the given value and returns the previous element

public long set ( int index , long value ) { preconditions check element index ( index , size ) ; long previous = array [ index ] ; array [ index ] = value ; return previous ; }


test to verify that the checksum can be computed by giving two times cellsize length of file range for checksum calculation

public void test striped file checksum with missed data blocks range query 7 ( ) throws exception { test striped file checksum with missed data blocks range query ( striped file 1 , cell size * 2 ) ; }


string get name ( ) { return record get string ( name column ) ; }


public map < string , list < integer > > get map array integer ( ) { return map array integer ; }


add the corresponding files as source files these may also be header files , in which case they will not be compiled , but also not made visible as includes to dependent rules the given build variables will be added to those used for compiling this source

public cc compilation helper add sources ( collection < artifact > sources ) { for ( artifact source : sources ) { add source ( source , label ) ; } return this ; }


get the utilization of the node this includes the containers

private resource utilization get node utilization ( ) { node resource monitor impl node resource monitor = ( node resource monitor impl ) this context get node resource monitor ( ) ; return node resource monitor get utilization ( ) ; }


modifies the result of the previously executed search ( { @ link top docs } ) in place based on the given { @ link rescore context }

top docs rescore ( top docs top docs , index searcher searcher , rescore context rescore context ) throws i o exception ;


public put datafeed response update datafeed ( update datafeed request request , request options options ) throws i o exception { return rest high level client perform request and parse entity ( request , m l request converters : : update datafeed , options , put datafeed response : : from x content , collections empty set ( ) ) ; }


changes the names of the parameters in the array to unique names that won ' t conflict with any other names in the function ' s namespace when the parameters are used to replace the existing parameters in the function appends an integer number to the base name if necessary to create a unique name in the function ' s namespace

private void set unique parameter names ( function function , parameter [ ] parameters ) throws duplicate name exception , invalid input exception { symbol table symbol table = current program get symbol table ( ) ; / / create a set containing all the unique parameter names determined so far so they can / / be avoided as additional parameter names are determined set < string > names so far = new hash set < > ( ) ; for ( int ordinal = 0 ; ordinal < parameters length ; ordinal + + ) { parameter parameter = parameters [ ordinal ] ; string base name = parameter get name ( ) ; if ( ordinal = = 0 & & function this param name equals ( base name ) ) { continue ; } string unique name = get unique replacement parameter name ( symbol table , function , base name , names so far ) ; names so far add ( unique name ) ; parameter set name ( unique name , source type imported ) ; } }


set the text body of the rendered html { @ code < option > } tag may be a runtime expression

public void set label ( string label ) { this label = label ; }


compute the latest partition metadata to cache given ordering by leader epochs ( if both available and reliable )

private optional < metadata response partition metadata > update latest metadata ( metadata response partition metadata partition metadata , boolean has reliable leader epoch ) { topic partition tp = partition metadata topic partition ; if ( has reliable leader epoch & & partition metadata leader epoch is present ( ) ) { int new epoch = partition metadata leader epoch get ( ) ; / / if the received leader epoch is at least the same as the previous one , update the metadata integer current epoch = last seen leader epochs get ( tp ) ; if ( current epoch = = null | | new epoch > = current epoch ) { log debug ( " updating last seen epoch for partition { } from { } to epoch { } from new metadata " , tp , current epoch , new epoch ) ; last seen leader epochs put ( tp , new epoch ) ; return optional of ( partition metadata ) ; } else { / / otherwise ignore the new metadata and use the previously cached info log debug ( " got metadata for an older epoch { } ( current is { } ) for partition { } , not updating " , new epoch , current epoch , tp ) ; return cache partition metadata ( tp ) ; } } else { / / handle old cluster formats as well as error responses where leader and epoch are missing last seen leader epochs remove ( tp ) ; return optional of ( partition metadata without leader epoch ( ) ) ; } }


to - many relationship , resolved on first access ( and after reset ) changes to to - many relations are not persisted , make changes to the target entity

public list < order > get orders ( ) { if ( orders = = null ) { final dao session dao session = this dao session ; if ( dao session = = null ) { throw new dao exception ( " entity is detached from dao context " ) ; } order dao target dao = dao session get order dao ( ) ; list < order > orders new = target dao query customer orders ( id ) ; synchronized ( this ) { if ( orders = = null ) { orders = orders new ; } } } return orders ; }


set the two character to use to format date values the first character used for the date style , the second is for the time style supported characters are ' s ' = small ' m ' = medium ' l ' = long ' f ' = full ' - ' = omitted this method mimics the styles supported by joda - time

public void set style pattern ( string style pattern ) { this style pattern = style pattern ; }


this is a regression test for antlrantlr 4 # 507 " null pointer exception when generating code from grammar " https : github comantlrantlr 4issues 5 0 7

@ test public void test invalid escape sequences ( ) { string grammar = " lexer grammar a ; \ n " + " rule : ' foo \ \ u a a b g \ \ x \ \ u ' ; \ n " ; string expected = " warning ( " + error type invalid escape sequence code + " ) : a g 4 : 2 : 12 : invalid escape sequence \ \ u a a b g \ n " + " warning ( " + error type invalid escape sequence code + " ) : a g 4 : 2 : 19 : invalid escape sequence \ \ x \ n " + " warning ( " + error type invalid escape sequence code + " ) : a g 4 : 2 : 22 : invalid escape sequence \ \ u \ n " + " warning ( " + error type epsilon token code + " ) : a g 4 : 2 : 0 : non - fragment lexer rule rule can match the empty string \ n " ; string [ ] pair = new string [ ] { grammar , expected } ; super test errors ( pair , true ) ; }


return whether horizontal layout direction of views are from right to left

public static boolean is layout rtl ( ) { if ( build version sdk int > = build version codes jelly bean mr1 ) { locale primary locale ; if ( build version sdk int > = build version codes n ) { primary locale = utils get app ( ) get resources ( ) get configuration ( ) get locales ( ) get ( 0 ) ; } else { primary locale = utils get app ( ) get resources ( ) get configuration ( ) locale ; } return text utils get layout direction from locale ( primary locale ) = = view layout direction rtl ; } return false ; }


compares by { @ link # timestamp ( ) } , then { @ link # value ( ) }

public int compare to ( v 1 annotation that ) { if ( this = = that ) return 0 ; int by timestamp = timestamp < that timestamp ? - 1 : timestamp = = that timestamp ? 0 : 1 ; if ( by timestamp ! = 0 ) return by timestamp ; return value compare to ( that value ) ; }


private long calc deadline ms ( long now , integer option timeout ms ) { if ( option timeout ms ! = null ) return now + math max ( 0 , option timeout ms ) ; return now + default api timeout ms ; }


set the cci template for this dao explicitly , as an alternative to specifying a connection factory

public final void set cci template ( org springframework jca cci core cci template cci template ) { this cci template = cci template ; }


gets a list of memory blocks whose name starts with the indicated name only memory blocks that are initialized and part of the indicated address set will be returned

public static list < memory block > get memory blocks starting with name ( program program , address set view set , string name , task monitor monitor ) throws cancelled exception { list < memory block > blocks = new array list < > ( ) ; memory memory = program get memory ( ) ; for ( memory block memory block : memory get blocks ( ) ) { monitor check canceled ( ) ; address set block set = new address set ( memory block get start ( ) , memory block get end ( ) ) ; address set intersection = block set intersect ( set ) ; if ( ! intersection is empty ( ) & & memory block is initialized ( ) & & memory block get name ( ) starts with ( name ) ) { blocks add ( memory block ) ; } } return blocks ; }


returns height of image aware view this value is used to define scale size for original image can return 0 if height is undefined < br > is called on ui thread if image loader was called on ui thread otherwise - on background thread


public int get total ( ) { return this total ; }


determines the starting index of the stack trace , after method calls made by this class

private int get stack offset ( @ non null stack trace element [ ] trace ) { check not null ( trace ) ; for ( int i = min stack offset ; i < trace length ; i + + ) { stack trace element e = trace [ i ] ; string name = e get class name ( ) ; if ( ! name equals ( logger printer class get name ( ) ) & & ! name equals ( logger class get name ( ) ) ) { return - - i ; } } return - 1 ; }


< code > optional int 6 4 num = 4 ; < code >


create an instance of a class that implements { @ code model m bean } this method is called to obtain a { @ code model m bean } instance to use when registering a bean this method is called once per bean during the registration phase and must return a new instance of { @ code model m bean }

protected model m bean create model m bean ( ) throws m bean exception { return ( this expose managed resource class loader ? new spring model m bean ( ) : new required model m bean ( ) ) ; }


to test enum parameters to test enum parameters

public api response < void > test enum parameters with http info ( list < string > enum header string array , string enum header string , list < string > enum query string array , string enum query string , integer enum query integer , double enum query double , list < string > enum form string array , string enum form string ) throws api exception { object local var post body = null ; / / create path and map variables string local var path = " / fake " ; / / query params list < pair > local var query params = new array list < pair > ( ) ; map < string , string > local var header params = new hash map < string , string > ( ) ; map < string , string > local var cookie params = new hash map < string , string > ( ) ; map < string , object > local var form params = new hash map < string , object > ( ) ; local var query params add all ( api client parameter to pairs ( " csv " , " enum query string array " , enum query string array ) ) ; local var query params add all ( api client parameter to pairs ( " " , " enum query string " , enum query string ) ) ; local var query params add all ( api client parameter to pairs ( " " , " enum query integer " , enum query integer ) ) ; local var query params add all ( api client parameter to pairs ( " " , " enum query double " , enum query double ) ) ; if ( enum header string array ! = null ) local var header params put ( " enum header string array " , api client parameter to string ( enum header string array ) ) ; if ( enum header string ! = null ) local var header params put ( " enum header string " , api client parameter to string ( enum header string ) ) ; if ( enum form string array ! = null ) local var form params put ( " enum form string array " , enum form string array ) ; if ( enum form string ! = null ) local var form params put ( " enum form string " , enum form string ) ; final string [ ] local var accepts = { } ; final string local var accept = api client select header accept ( local var accepts ) ; final string [ ] local var content types = { " application / x - www - form - urlencoded " } ; final string local var content type = api client select header content type ( local var content types ) ; string [ ] local var auth names = new string [ ] { } ; return api client invoke a p i ( " fake api test enum parameters " , local var path , " get " , local var query params , local var post body , local var header params , local var cookie params , local var form params , local var accept , local var content type , local var auth names , null , false ) ; }


adds each member of { @ code elements } as a candidate for the top { @ code k } elements this operation takes amortized linear time in the length of { @ code elements } if all input data to this { @ code top k selector } is in a single { @ code iterable } , prefer { @ link ordering # least of ( iterable , int ) } , which provides a simpler api for that use case

public void offer all ( iterable < ? extends t > elements ) { offer all ( elements iterator ( ) ) ; }


initializes all file system instances used in the tests

private void init file systems ( ) throws exception { fs = create file system ( ) ; fs as bruce = create file system ( bruce ) ; fs as diana = create file system ( diana ) ; fs as bob = create file system ( bob ) ; fs as supergroup member = create file system ( supergroup member ) ; }


get the clickable span that is at the exact coordinates

private clickable span get clickable span in coords ( int x , int y ) { final int offset = get text offset at ( x , y ) ; if ( ! ( m text instanceof spanned ) | | offset < 0 ) { return null ; } final clickable span [ ] clickable spans = ( ( spanned ) m text ) get spans ( offset , offset , clickable span class ) ; if ( clickable spans ! = null & & clickable spans length > 0 ) { return clickable spans [ 0 ] ; } return null ; }


public set < string > get all u a m ids ( ) { / / return a clone of the current id set for concurrency reasons , so that the / / returned map won ' t change with the actual map return new hash set < string > ( this unmanaged app master map key set ( ) ) ; }


default implementation that does nothing

public boolean prebuild ( build build , build listener listener ) { return true ; }


sets whether format based failures will be ignored

public match query builder lenient ( boolean lenient ) { this lenient = lenient ; return this ; }


returns the underlying { @ link jersey test } for sending requests prefer { @ link # target ( string ) }

public jersey test get jersey test ( ) { return resource get jersey test ( ) ; }


dumps the header this method is for debugging only

protected abstract void dump header ( writer writer ) throws i o exception ;


public void add ( single pending commit commit ) { commits add ( commit ) ; / / add any statistics i o statistics snapshot st = commit get i o statistics ( ) ; if ( st ! = null ) { iostats aggregate ( st ) ; st clear ( ) ; } }


abstract template method called from { @ link # write internal ( object , http output message ) }

protected abstract void write to result ( t t , http headers headers , result result ) throws exception ;


returns the path fragment that is either absolute or relative to the execution root that can be used to execute the given tool

static path fragment get tool path fragment ( immutable map < string , path fragment > tool paths , tool tool ) { return tool paths get ( tool get name part ( ) ) ; }


walk each character of current string from right end , remove the character if it is in trim string stops at the first character which is not in trim string return the new substring

public static binary string data trim right ( binary string data str , binary string data trim str ) { str ensure materialized ( ) ; if ( trim str = = null ) { return null ; } trim str ensure materialized ( ) ; if ( is space string ( trim str ) ) { return trim right ( str ) ; } if ( str in first segment ( ) ) { int char idx = 0 ; int byte idx = 0 ; / / each element in char lens is length of character in the source string int [ ] char lens = new int [ str get size in bytes ( ) ] ; / / each element in char start pos is start position of first byte in the source string int [ ] char start pos = new int [ str get size in bytes ( ) ] ; while ( byte idx < str get size in bytes ( ) ) { char start pos [ char idx ] = byte idx ; char lens [ char idx ] = num bytes for first byte ( str get byte one segment ( byte idx ) ) ; byte idx + = char lens [ char idx ] ; char idx + + ; } / / search idx points to the first character which is not in trim string from the right / / end int search idx = str get size in bytes ( ) - 1 ; char idx - = 1 ; while ( char idx > = 0 ) { binary string data current char = str copy binary string in one seg ( char start pos [ char idx ] , char lens [ char idx ] ) ; if ( trim str contains ( current char ) ) { search idx - = char lens [ char idx ] ; } else { break ; } char idx - - ; } if ( search idx < 0 ) { / / empty string return empty utf8 ; } else { return str copy binary string in one seg ( 0 , search idx + 1 ) ; } } else { return trim right slow ( str , trim str ) ; } }


public void set client info ( properties properties ) throws s q l client info exception { }


returns a path to a file that can be written tries multiple locations and verifies writing succeeds

private @ null file get extracted file ( string dir name , string file name ) { / / temp directory with username in path file ideal file = new file ( system get property ( " java io tmpdir " ) + " / libgdx " + system get property ( " user name " ) + " / " + dir name , file name ) ; if ( can write ( ideal file ) ) return ideal file ; / / system provided temp directory try { file file = file create temp file ( dir name , null ) ; if ( file delete ( ) ) { file = new file ( file , file name ) ; if ( can write ( file ) ) return file ; } } catch ( i o exception ignored ) { } / / user home file file = new file ( system get property ( " user home " ) + " / libgdx / " + dir name , file name ) ; if ( can write ( file ) ) return file ; / / relative directory file = new file ( " temp / " + dir name , file name ) ; if ( can write ( file ) ) return file ; / / we are running in the os x sandbox if ( system getenv ( " app sandbox container id " ) ! = null ) return ideal file ; return null ; }


indicates that there is an auxiliary ( inline , not stack ) argument consisting of a list of initial values for a newly created array

public void aux init values ( array list < constant > init values ) ;


adds all of the given entries to the built bimap duplicate keys or values are not allowed , and will cause { @ link # build } to fail

public builder < k , v > put all ( iterable < ? extends entry < ? extends k , ? extends v > > entries ) { super put all ( entries ) ; return this ; }


sets root of test working directory and resets any other paths that must be children of the test working directory typical usage is for subclasses that use hdfs to override the test directory to the form " tmp < test name > " so that on windows , tests won ' t attempt to use paths containing a ' : ' from the drive specifier the ' : ' character is considered invalid by hdfs

protected void set test dir ( file test dir ) { test dir = test dir ; output dir = new file ( test dir , " out " ) ; input file = new file ( test dir , " input txt " ) ; }


eldest traces are removed to ensure spans in memory don ' t exceed this value

public builder max span count ( int max span count ) { if ( max span count < = 0 ) throw new illegal argument exception ( " max span count < = 0 " ) ; this max span count = max span count ; return this ; }


public string get sc a e t h flow points ( ) { return sc a e t h flow points ; }


public cancellable start data frame analytics async ( start data frame analytics request request , request options options , action listener < start data frame analytics response > listener ) { return rest high level client perform request async and parse entity ( request , m l request converters : : start data frame analytics , options , start data frame analytics response : : from x content , listener , collections empty set ( ) ) ; }


returns the non - negative index value of the alpha character { @ code c } , regardless of case ie , ' a ' ' a ' returns 0 and ' z ' ' z ' returns 25 non - alpha characters return a value of 26 or greater

private static int get alpha index ( char c ) { / / fold upper - case ascii to lower - case and make zero - indexed and unsigned ( by casting to char ) return ( char ) ( ( c | case mask ) - ' a ' ) ; }


process an actual rollback the completed flag has already been checked

private mono < void > process rollback ( transaction synchronization manager synchronization manager , generic reactive transaction status ) { return trigger before completion ( synchronization manager , status ) then ( mono defer ( ( ) - > { if ( status is new transaction ( ) ) { if ( status is debug ( ) ) { logger debug ( " initiating transaction rollback " ) ; } return do rollback ( synchronization manager , status ) ; } else { mono < void > before completion = mono empty ( ) ; / / participating in larger transaction if ( status has transaction ( ) ) { if ( status is debug ( ) ) { logger debug ( " participating transaction failed - marking existing transaction as rollback - only " ) ; } before completion = do set rollback only ( synchronization manager , status ) ; } else { logger debug ( " should roll back transaction but cannot - no transaction available " ) ; } return before completion ; } } ) ) on error resume ( error predicates runtime or error , ex - > trigger after completion ( synchronization manager , status , transaction synchronization status unknown ) then ( mono error ( ex ) ) ) then ( mono defer ( ( ) - > trigger after completion ( synchronization manager , status , transaction synchronization status rolled back ) ) ) on error resume ( ex - > cleanup after completion ( synchronization manager , status ) then ( mono error ( ex ) ) ) then ( cleanup after completion ( synchronization manager , status ) ) ; }


public void test four letter words ( ) throws exception { verify ( " ruok " , " imok " ) ; verify ( " envi " , " java version " ) ; verify ( " conf " , " client port " ) ; verify ( " stat " , " outstanding " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , " queued " ) ; verify ( " dump " , " session " ) ; verify ( " wchs " , " watches " ) ; verify ( " wchp " , " " ) ; verify ( " wchc " , " " ) ; verify ( " srst " , " reset " ) ; verify ( " crst " , " reset " ) ; verify ( " stat " , " outstanding " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , " queued " ) ; verify ( " gtmk " , " 306 " ) ; verify ( " isro " , " rw " ) ; testable zoo keeper zk = create client ( ) ; string sid = get hex session id ( zk get session id ( ) ) ; verify ( " stat " , " queued " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , sid ) ; verify ( " dump " , sid ) ; verify ( " dirs " , " size " ) ; zk get data ( " / " , true , null ) ; verify ( " stat " , " queued " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , sid ) ; verify ( " dump " , sid ) ; verify ( " wchs " , " watching 1 " ) ; verify ( " wchp " , sid ) ; verify ( " wchc " , sid ) ; verify ( " dirs " , " size " ) ; zk close ( ) ; verify ( " ruok " , " imok " ) ; verify ( " envi " , " java version " ) ; verify ( " conf " , " client port " ) ; verify ( " stat " , " outstanding " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , " queued " ) ; verify ( " dump " , " session " ) ; verify ( " wchs " , " watch " ) ; verify ( " wchp " , " " ) ; verify ( " wchc " , " " ) ; verify ( " srst " , " reset " ) ; verify ( " crst " , " reset " ) ; verify ( " stat " , " outstanding " ) ; verify ( " srvr " , " outstanding " ) ; verify ( " cons " , " queued " ) ; verify ( " mntr " , " zk server state \ tstandalone " ) ; verify ( " mntr " , " num alive connections " ) ; verify ( " stat " , " connections " ) ; verify ( " srvr " , " connections " ) ; verify ( " dirs " , " size " ) ; }


convenience method to set this bt indexed mesh to the specified { @ link mesh } the specified mesh must be indexed and triangulated and must outlive this bt indexed mesh the buffers for the vertices and indices are shared amonst both

public void set ( final mesh mesh ) { set ( mesh , mesh , 0 , mesh get num indices ( ) ) ; }


returns the minimum value contained in the set if not is nil ( )

public int get min element ( ) { if ( is nil ( ) ) { throw new runtime exception ( " set is empty " ) ; } return intervals get ( 0 ) a ; }


public void start ( ) { registry add listener ( listener ) ; }


constructs a new , empty bimap with the specified expected size

public static < k , v > hash bi map < k , v > create ( int expected size ) { return new hash bi map < > ( expected size ) ; }


returns if the node ' s value is currently being computed , asynchronously

final boolean is computing async ( node < ? , ? > node ) { return is async & & ! async is ready ( ( completable future < ? > ) node get value ( ) ) ; }


public static void fail state machine ( process context context , exception exp ) { state machine instance state machine instance = ( state machine instance ) context get variable ( domain constants var name statemachine inst ) ; state machine config state machine config = ( state machine config ) context get variable ( domain constants var name statemachine config ) ; state machine config get status decision strategy ( ) decide on task state fail ( context , state machine instance , exp ) ; state machine instance get end params ( ) put all ( ( map < string , object > ) context get variable ( domain constants var name statemachine context ) ) ; state instruction instruction = context get instruction ( state instruction class ) ; instruction set end ( true ) ; state machine instance set running ( false ) ; state machine instance set gmt end ( new date ( ) ) ; state machine instance set exception ( exp ) ; if ( state machine instance get state machine ( ) is persist ( ) & & state machine config get state log store ( ) ! = null ) { state machine config get state log store ( ) record state machine finished ( state machine instance , context ) ; } async callback callback = ( async callback ) context get variable ( domain constants var name async callback ) ; if ( callback ! = null ) { callback on error ( context , state machine instance , exp ) ; } }


returns an array of names of all tables ( tables and views , both temporary and permanent ) registered in the namespace of the current catalog and database

public set < string > list tables ( ) { return list tables ( get current catalog ( ) , get current database ( ) ) ; }


returns the double array which this buffer is based on , if there is one

public final double [ ] array ( ) { return protected array ( ) ; }


public void modify cache directive ( cache directive info info , enum set < cache flag > flags ) throws i o exception { statistics increment write ops ( 1 ) ; storage statistics increment op counter ( op type modify cache directive ) ; if ( info get path ( ) ! = null ) { info = new cache directive info builder ( info ) set path ( new path ( get path name ( fix relative part ( info get path ( ) ) ) ) make qualified ( get uri ( ) , get working directory ( ) ) ) build ( ) ; } dfs modify cache directive ( info , flags ) ; }


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 " ) ; }


an inlined private copy of { @ link uninterruptibles # get uninterruptibly } used to break an internal dependency on other utilconcurrent classes

private static < v > v get uninterruptibly ( future < v > future ) throws execution exception { boolean interrupted = false ; try { while ( true ) { try { return future get ( ) ; } catch ( interrupted exception e ) { interrupted = true ; } } } finally { if ( interrupted ) { thread current thread ( ) interrupt ( ) ; } } }


return the locale of the rendered template

public locale get locale ( ) { return this locale ; }


< code > repeated io netty example worldclock location location = 1 ; < code >

public io netty example worldclock world clock protocol location builder get location builder ( int index ) { return get location field builder ( ) get builder ( index ) ; }


tests that an access execution graph is invalidated after its ttl expired

public void test execution graph entry invalidation ( ) throws exception { final time timeout = time milliseconds ( 100l ) ; final time time to live = time milliseconds ( 1l ) ; final counting restful gateway restful gateway = create counting restful gateway ( expected job id , completable future completed future ( expected execution graph ) , completable future completed future ( expected execution graph ) ) ; try ( execution graph cache execution graph cache = new default execution graph cache ( timeout , time to live ) ) { completable future < access execution graph > execution graph future = execution graph cache get execution graph ( expected job id , restful gateway ) ; assert equals ( expected execution graph , execution graph future get ( ) ) ; / / sleep for the ttl thread sleep ( time to live to milliseconds ( ) * 5l ) ; completable future < access execution graph > execution graph future 2 = execution graph cache get execution graph ( expected job id , restful gateway ) ; assert equals ( expected execution graph , execution graph future 2 get ( ) ) ; assert that ( restful gateway get num request job calls ( ) , matchers equal to ( 2 ) ) ; } }


void create global traffic counter ( scheduled executor service executor ) { / / default set max deviation ( default deviation , default slowdown , default acceleration ) ; if ( executor = = null ) { throw new illegal argument exception ( " executor must not be null " ) ; } traffic counter tc = new global channel traffic counter ( this , executor , " global channel t c " , check interval ) ; set traffic counter ( tc ) ; tc start ( ) ; }


to test enum parameters ( asynchronously ) to test enum parameters

public okhttp 3 call test enum parameters async ( list < string > enum header string array , string enum header string , list < string > enum query string array , string enum query string , integer enum query integer , double enum query double , list < string > enum form string array , string enum form string , final api callback < void > callback ) throws api exception { okhttp 3 call local var call = test enum parameters validate before call ( enum header string array , enum header string , enum query string array , enum query string , enum query integer , enum query double , enum form string array , enum form string , callback ) ; local var api client execute async ( local var call , callback ) ; return local var call ; }


does the same as { @ code ao set accessible ( true ) } , but never throws { @ link java lang reflect inaccessible object exception }

public abstract void make accessible ( accessible object ao ) ;


evaluate the next { @ link statement } in the execution chain ( typically an instance of { @ link run before test execution callbacks } ) , catching any exceptions thrown , and then invoke { @ link test context manager # after test execution } supplying the first caught exception ( if any ) if the invocation of { @ code after test execution ( ) } throws an exception , that exception will also be tracked multiple exceptions will be combined into a { @ link multiple failure exception }

public void evaluate ( ) throws throwable { throwable test exception = null ; list < throwable > errors = new array list < > ( ) ; try { this next evaluate ( ) ; } catch ( throwable ex ) { test exception = ex ; errors add ( ex ) ; } try { this test context manager after test execution ( this test instance , this test method , test exception ) ; } catch ( throwable ex ) { errors add ( ex ) ; } multiple failure exception assert empty ( errors ) ; }


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


returns the size in bytes of the " initialized " part of the contents

public int get unpacked length ( ) { return unpacked length ; }


creates a builder for new server - side { @ link ssl context }

public static ssl context builder for server ( private key key , x 5 0 9 certificate key cert chain ) { return new ssl context builder ( true ) key manager ( key , key cert chain ) ; }


ensures parity in the performance of sequential read after reverse seek for version 2 of the block blob input stream

public void test 0316 sequential read after reverse seek performance v 2 ( ) throws i o exception { assume huge file exists ( ) ; final int max attempts = 10 ; final double max acceptable ratio = 1 01 ; double before seek elapsed ms = 0 , after seek elapsed ms = 0 ; double ratio = double max value ; for ( int i = 0 ; i < max attempts & & ratio > = max acceptable ratio ; i + + ) { before seek elapsed ms = sequential read ( 2 , account using input stream v 2 get file system ( ) , false ) ; after seek elapsed ms = sequential read ( 2 , account using input stream v 2 get file system ( ) , true ) ; ratio = after seek elapsed ms / before seek elapsed ms ; log info ( string format ( " before seek elapsed ms = % 1 $ d , after seek elapsed ms = % 2 $ d , ratio = % 3 $ 2f " , ( long ) before seek elapsed ms , ( long ) after seek elapsed ms , ratio ) ) ; } assert true ( string format ( " performance of version 2 after reverse seek is not acceptable : " + " before seek elapsed ms = % 1 $ d , after seek elapsed ms = % 2 $ d , " + " ratio = % 3 $ 2f " , ( long ) before seek elapsed ms , ( long ) after seek elapsed ms , ratio ) , ratio < max acceptable ratio ) ; }


sock js service registration with sock j s ( ) ;


invoked when the target of the listener has changed its state in this case , the method is called when the user switches to another tab in the tabbed pane

public void state changed ( change event e ) { view changed ( ) ; }


public mock http servlet request builder session attrs ( map < string , object > session attributes ) { assert not empty ( session attributes , " ' session attributes ' must not be empty " ) ; session attributes for each ( this : : session attr ) ; return this ; }


get the common labels for flink native clusters all the kubernetes resources will be set with these labels

public static map < string , string > get common labels ( string cluster id ) { final map < string , string > common labels = new hash map < > ( ) ; common labels put ( constants label type key , constants label type native type ) ; common labels put ( constants label app key , cluster id ) ; return common labels ; }


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

default 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 ) { get request ( ) if present ( request - > { for ( media type media type : media type parse media types ( request get header ( " accept " ) ) ) { if ( media type is compatible with ( media type value of ( " application / json " ) ) ) { string example string = " { \ " code \ " : 0 , \ " type \ " : \ " type \ " , \ " message \ " : \ " message \ " } " ; api util set example response ( request , " application / json " , example string ) ; break ; } } } ) ; return new response entity < > ( http status not implemented ) ; }


the errors encountered while retrying , in the encounter order

public list < exception > errors ( ) { return collections unmodifiable list ( this errors ) ; }


mark this fully committed transaction as having a corresponding database transactioncheckpoint

void set has committed d b transaction ( ) { if ( get status ( ) ! = committed ) { throw new illegal state exception ( " transaction was not committed " ) ; } has d b transaction = true ; }


return the characters up to the next close quote character backslash processing is done the formal json format does not allow strings in single quotes , but an implementation is allowed to accept them

public string next string ( char quote ) throws j s o n exception { char c ; string builder sb = new string builder ( ) ; for ( ; ; ) { c = next ( ) ; switch ( c ) { case 0 : case ' \ n ' : case ' \ r ' : throw syntax error ( " unterminated string " ) ; case ' \ \ ' : c = next ( ) ; switch ( c ) { case ' b ' : sb append ( ' \ b ' ) ; break ; case ' t ' : sb append ( ' \ t ' ) ; break ; case ' n ' : sb append ( ' \ n ' ) ; break ; case ' f ' : sb append ( ' \ f ' ) ; break ; case ' r ' : sb append ( ' \ r ' ) ; break ; case ' u ' : sb append ( ( char ) integer parse int ( next ( 4 ) , 16 ) ) ; break ; case ' " ' : case ' \ ' ' : case ' \ \ ' : case ' / ' : sb append ( c ) ; break ; default : throw syntax error ( " illegal escape " ) ; } break ; default : if ( c = = quote ) { return sb to string ( ) ; } sb append ( c ) ; } } }


public synchronized list < string > get groups ( string user ) throws i o exception { set < string > group set = new tree set < string > ( ) ; for ( group mapping service provider provider : providers list ) { list < string > groups = collections empty list ( ) ; try { groups = provider get groups ( user ) ; } catch ( exception e ) { log warn ( " unable to get groups for user { } via { } because : { } " , user , provider get class ( ) get simple name ( ) , e to string ( ) ) ; log debug ( " stacktrace : " , e ) ; } if ( ! groups is empty ( ) ) { group set add all ( groups ) ; if ( ! combined ) break ; } } return new array list < > ( group set ) ; }


creates get api key request for given realm and user name

public static get api key request using realm and user name ( string realm name , string user name ) { return new get api key request ( realm name , user name , null , null , false ) ; }


returns the relocations defined in this table

public elf relocation [ ] get relocations ( ) { return relocs ; }


the set of attribute declarations < code > repeated aapt pb styleable entry entry = 1 ; < code >

private void add entry ( int index , com android aapt resources styleable entry value ) { if ( value = = null ) { throw new null pointer exception ( ) ; } ensure entry is mutable ( ) ; entry add ( index , value ) ; }


specify a custom { @ link task decorator } to be applied to any { @ link runnable } about to be executed note that such a decorator is not necessarily being applied to the user - supplied { @ code runnable } { @ code callable } but rather to the actual execution callback ( which may be a wrapper around the user - supplied task ) the primary use case is to set some execution context around the task ' s invocation , or to provide some monitoringstatistics for task execution < b > note : < b > exception handling in { @ code task decorator } implementations is limited to plain { @ code runnable } execution via { @ code execute } calls in case of { @ code # submit } calls , the exposed { @ code runnable } will be a { @ code future task } which does not propagate any exceptions ; you might have to cast it and call { @ code future # get } to evaluate exceptions

public final void set task decorator ( task decorator task decorator ) { this task decorator = task decorator ; }


returns true if field corresponding to field i d is set ( has been assigned a value ) and false otherwise

public boolean is set ( fields field ) { if ( field = = null ) { throw new illegal argument exception ( ) ; } switch ( field ) { case task start : return is set task start ( ) ; case task end : return is set task end ( ) ; } throw new illegal state exception ( ) ; }


populate the i text document ' s meta fields ( author , title , etc ) < br > default is an empty implementation subclasses may override this method to add meta fields such as title , subject , author , creator , keywords , etc this method is called after assigning a pdf writer to the document and before calling { @ code document open ( ) }

protected void build pdf metadata ( map < string , object > model , document document , http servlet request request ) { }


we do not support reading from a { @ link data input view } , because it does not support pushing back already read bytes

public final void read ( data input view in ) throws i o exception { throw new unsupported operation exception ( " post versioned i o readable writable cannot read from a data input view " ) ; }


remove a register parameter vs change an attribute ( name , dt , comment ) of a register parameter

public void test remove vs change reg param comment ( ) throws exception { mtf initialize ( " diff test pgm 1 " , new original program modifier listener ( ) { @ override public void modify original ( program d b program ) { int tx id = program start transaction ( " modify original program " ) ; boolean commit = false ; try { function apples function = create external function ( program , new string [ ] { " user 3 2 dll " , " apples " } , addr ( program , " 7 7db 1 0 2 0 " ) , new byte data type ( ) , source type user defined ) ; assert not null ( apples function ) ; parameter parameter 1 = new parameter impl ( " p1 " , new d word data type ( ) , program ) ; parameter 1 set comment ( " test parameter comment " ) ; apples function add parameter ( parameter 1 , source type user defined ) ; function oranges function = create external function ( program , new string [ ] { " user 3 2 dll " , " oranges " } ) ; add parameter ( oranges function , " a1 " , source type user defined , new d word data type ( ) , " test a1 comment " ) ; commit = true ; } catch ( exception e ) { assert fail ( e get message ( ) ) ; } finally { program end transaction ( tx id , commit ) ; } } @ override public void modify latest ( program d b program ) { int tx id = program start transaction ( " modify latest program " ) ; boolean commit = false ; try { function func ; func = get external function ( program , new string [ ] { " user 3 2 dll " , " apples " } ) ; func set custom variable storage ( true ) ; func remove parameter ( 0 ) ; func = get external function ( program , new string [ ] { " user 3 2 dll " , " oranges " } ) ; func set custom variable storage ( true ) ; func get parameter ( 0 ) set comment ( " latest comment " ) ; commit = true ; } catch ( exception e ) { e print stack trace ( ) ; assert fail ( e get message ( ) ) ; } finally { program end transaction ( tx id , commit ) ; } } @ override public void modify private ( program d b program ) { int tx id = program start transaction ( " modify my program " ) ; boolean commit = false ; try { function func ; func = get external function ( program , new string [ ] { " user 3 2 dll " , " apples " } ) ; func set custom variable storage ( true ) ; func get parameter ( 0 ) set comment ( " my comment " ) ; func = get external function ( program , new string [ ] { " user 3 2 dll " , " oranges " } ) ; func set custom variable storage ( true ) ; func remove parameter ( 0 ) ; commit = true ; } catch ( exception e ) { e print stack trace ( ) ; assert fail ( e get message ( ) ) ; } finally { program end transaction ( tx id , commit ) ; } } } ) ; execute merge ( ask user ) ; choose radio button ( checked out button name ) ; choose radio button ( checked out button name ) ; wait for merge completion ( ) ; function func = get external function ( result program , new string [ ] { " user 3 2 dll " , " apples " } ) ; parameter [ ] parameters = func get parameters ( ) ; assert equals ( 1 , parameters length ) ; assert equals ( " p1 " , parameters [ 0 ] get name ( ) ) ; assert equals ( " r 1 2 " , parameters [ 0 ] get register ( ) get name ( ) ) ; assert true ( new d word data type ( ) is equivalent ( parameters [ 0 ] get data type ( ) ) ) ; assert equals ( " my comment " , parameters [ 0 ] get comment ( ) ) ; variable [ ] local variables = func get local variables ( ) ; assert equals ( 0 , local variables length ) ; func = get external function ( result program , new string [ ] { " user 3 2 dll " , " oranges " } ) ; parameters = func get parameters ( ) ; assert equals ( 0 , parameters length ) ; local variables = func get local variables ( ) ; assert equals ( 0 , local variables length ) ; }


compiles the supplied { @ code string [ ] } into an array of { @ link pattern } objects and returns that array

private pattern [ ] compile patterns ( string [ ] source ) throws pattern syntax exception { pattern [ ] destination = new pattern [ source length ] ; for ( int i = 0 ; i < source length ; i + + ) { destination [ i ] = pattern compile ( source [ i ] ) ; } return destination ; }


public static boolean does resource exist ( final resource res ) { if ( res = = null ) { return false ; } try { i o utils read ( res get input stream ( ) , new byte [ 1 ] ) ; return res content length ( ) > 0 ; } catch ( final file not found exception e ) { logger trace ( e get message ( ) ) ; return false ; } catch ( final exception e ) { logger trace ( e get message ( ) , e ) ; return false ; } }


get the repository mapping for this package

immutable map < repository name , repository name > get repository mapping ( ) { return this repository mapping ; }


public void set buffer factory ( data buffer factory buffer factory ) { this buffer factory = buffer factory ; }


flattens properties of inline object schemas that belong to a composed schema into a single flat list of properties this is useful to generate a single or multiple inheritance model in the example below , codegen may generate a ' dog ' class that extends from the generated ' animal ' class ' dog ' has additional properties ' name ' , ' age ' and ' breed ' that are flattened as a single list of properties dog : all of : - $ ref : ' # componentsschemas animal ' - type : object properties : name : type : string age : type : string - type : object properties : breed : type : string

private void flatten composed children ( open a p i open a p i , string key , list < schema > children ) { if ( children = = null | | children is empty ( ) ) { return ; } list iterator < schema > list iterator = children list iterator ( ) ; while ( list iterator has next ( ) ) { schema component = list iterator next ( ) ; if ( component instanceof object schema | | / / for inline schema with type : object ( component ! = null & & component get properties ( ) ! = null & & ! component get properties ( ) is empty ( ) ) ) { / / for inline schema without type : object schema op = component ; if ( op get $ ref ( ) = = null & & op get properties ( ) ! = null & & op get properties ( ) size ( ) > 0 ) { / / if a ` title ` attribute is defined in the inline schema , codegen uses it to name the / / inline schema otherwise , we ' ll use the default naming such as inline object 1 , etc / / we know that this is not the best way to name the model / / / / such naming strategy may result in issues if the value of the ' title ' attribute / / happens to match a schema defined elsewhere in the specification , ' inner model name ' / / will be the same as that other schema / / / / to have complete control of the model naming , one can define the model separately / / instead of inline string inner model name = resolve model name ( op get title ( ) , key ) ; schema inner model = model from property ( open a p i , op , inner model name ) ; string existing = match generated ( inner model ) ; if ( existing = = null ) { open a p i get components ( ) add schemas ( inner model name , inner model ) ; add generated ( inner model name , inner model ) ; schema schema = new schema ( ) $ ref ( inner model name ) ; schema set required ( op get required ( ) ) ; list iterator set ( schema ) ; } else { schema schema = new schema ( ) $ ref ( existing ) ; schema set required ( op get required ( ) ) ; list iterator set ( schema ) ; } } } else { / / likely a reference to schema ( not inline schema ) } } }


public void test concat ( ) throws exception { reset call ( ) ; string file 1 = " / test namenode retry cache / test concat / file 1 " ; string file 2 = " / test namenode retry cache / test concat / file 2 " ; / / two retried concat calls succeed concat setup ( file 1 , file 2 ) ; new call ( ) ; nn rpc concat ( file 1 , new string [ ] { file 2 } ) ; nn rpc concat ( file 1 , new string [ ] { file 2 } ) ; nn rpc concat ( file 1 , new string [ ] { file 2 } ) ; / / a non - retried concat request fails new call ( ) ; try { / / second non - retry call should fail with an exception nn rpc concat ( file 1 , new string [ ] { file 2 } ) ; assert fail ( " test concat - expected exception is not thrown " ) ; } catch ( i o exception e ) { / / expected } }


the map of toolchain type to resolved toolchain to be used

immutable set multimap < toolchain type info , label > toolchain type to resolved ( ) ;


adds a dynamic constant reference to the constant pool of the class being build does nothing if the constant pool already contains a similar item this method is intended for { @ link attribute } sub classes , and is normally not needed by class generators or adapters

public int new constant dynamic ( final string name , final string descriptor , final handle bootstrap method handle , final object bootstrap method arguments ) { return symbol table add constant dynamic ( name , descriptor , bootstrap method handle , bootstrap method arguments ) index ; }


protected void configure yahoo client ( final collection < indirect client > properties ) { val pac 4j properties = cas properties get authn ( ) get pac 4j ( ) ; val yahoo = pac 4j properties get yahoo ( ) ; if ( yahoo is enabled ( ) & & string utils is not blank ( yahoo get id ( ) ) & & string utils is not blank ( yahoo get secret ( ) ) ) { val client = new yahoo client ( yahoo get id ( ) , yahoo get secret ( ) ) ; configure client ( client , yahoo ) ; logger debug ( " created client [ { } ] with identifier [ { } ] " , client get name ( ) , client get key ( ) ) ; properties add ( client ) ; } }


public long get physical memory size ( ) { return get conf ( ) get long ( maxpmem testing property , - 1 ) ; }


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 1 : / / millis return millis ; default : return null ; } }


this isn ' t ideal behavior this is more to show how something works in the future , it ' d be nice to support inner unknown fields

public void combine with unknown fields inner messages unknowns ignored ( ) throws invalid protocol buffer exception { test inner message with new string test = test inner message with new string new builder ( ) set inner ( test inner message with new string inner new builder ( ) set a ( " a 1 " ) set b ( " b 1 " ) build ( ) ) build ( ) ; test inner message local representation = test inner message new builder ( ) set inner ( test inner message inner new builder ( ) set a ( " a 2 " ) build ( ) ) build ( ) ; test inner message combined = proto util combine with unknown fields ( local representation , test to byte array ( ) ) ; test inner message with new string reparsed test = test inner message with new string parse from ( combined to byte array ( ) ) ; assert assert equals ( " a 2 " , reparsed test get inner ( ) get a ( ) ) ; assert assert equals ( " " , reparsed test get inner ( ) get b ( ) ) ; }


get the set of partitions from the list of files being staged this is all immediate parents of those files if a file is in the root dir , the partition is declared to be { @ link staging committer constants # table root }

public static set < string > get partitions ( path attempt path , list < ? extends file status > task output ) throws i o exception { / / get a list of partition directories set < string > partitions = sets new linked hash set ( ) ; for ( file status file status : task output ) { / / sanity check the output paths path output file = file status get path ( ) ; if ( ! file status is file ( ) ) { throw new path is directory exception ( output file to string ( ) ) ; } string partition = get partition ( get relative path ( attempt path , output file ) ) ; partitions add ( partition ! = null ? partition : table root ) ; } return partitions ; }


enable drop on specified number of operands a value of - 1 will disable all drop targets

private void update drop targets ( int num operands ) { + + num operands ; if ( drop supported ) { for ( int i = 0 ; i < drop targets length ; i + + ) { drop targets [ i ] set active ( i < num operands ) ; } } }


public final boolean is wrapper for ( class < ? > iface ) throws s q l exception { return iface is instance ( delegate ) | | ( delegate ! = null & & delegate is wrapper for ( iface ) ) ; }


set headers on the response called for both get and head requests

protected void set headers ( server web exchange exchange , resource resource , @ nullable media type media type ) throws i o exception { http headers headers = exchange get response ( ) get headers ( ) ; long length = resource content length ( ) ; headers set content length ( length ) ; if ( media type ! = null ) { headers set content type ( media type ) ; } if ( resource instanceof http resource ) { http headers resource headers = ( ( http resource ) resource ) get response headers ( ) ; exchange get response ( ) get headers ( ) put all ( resource headers ) ; } }


returns the set of execution options specified for this request

public execution options get execution options ( ) { return get options ( execution options class ) ; }


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 " ) ; }


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


resolve the class of dubbo service interface

protected class < ? > resolve service interface class ( service rest metadata service rest metadata , class < ? > service type ) { return execute ( service type get class loader ( ) , class loader - > { string service interface = service rest metadata get service interface ( ) ; return for name ( service interface , class loader ) ; } ) ; }


this method checks if the flyweight task can be run on any of the available executors

private runnable make fly weight task buildable ( final buildable item p ) { / / we double check if this is a flyweight task if ( p task instanceof flyweight task ) { jenkins h = jenkins get ( ) ; label lbl = p get assigned label ( ) ; computer master computer = h to computer ( ) ; if ( lbl ! = null & & lbl equals ( h get self label ( ) ) ) { / / the flyweight task is bound to the master if ( h can take ( p ) = = null ) { return create fly weight task runnable ( p , master computer ) ; } else { return null ; } } if ( lbl = = null & & h can take ( p ) = = null & & master computer is online ( ) & & master computer is accepting tasks ( ) ) { / / the flyweight task is not tied to a specific label , so execute on master if possible / / this will ensure that actual agent disconnects do not impact flyweight tasks randomly assigned to them return create fly weight task runnable ( p , master computer ) ; } map < node , integer > hash source = new hash map < > ( h get nodes ( ) size ( ) ) ; for ( node n : h get nodes ( ) ) { hash source put ( n , n get num executors ( ) * 100 ) ; } consistent hash < node > hash = new consistent hash < > ( node hash ) ; hash add all ( hash source ) ; string full display name = p task get full display name ( ) ; for ( node n : hash list ( full display name ) ) { final computer c = n to computer ( ) ; if ( c = = null | | c is offline ( ) ) { continue ; } if ( lbl ! = null & & ! lbl contains ( n ) ) { continue ; } if ( n can take ( p ) ! = null ) { continue ; } return create fly weight task runnable ( p , c ) ; } } return null ; }


takes a { @ link bulk by scroll task } and ensures that its initial task state ( leader or worker ) is set if slices are set as { @ code " auto " } , this method will resolve that to a specific number based on characteristics of the source indices a request with { @ code " auto " } slices may end up being sliced or unsliced this method does not execute the action in order to execute the action see { @ link # execute sliced action }

static < request extends abstract bulk by scroll request < request > > void init task state ( bulk by scroll task task , request request , client client , action listener < void > listener ) { int configured slices = request get slices ( ) ; if ( configured slices = = abstract bulk by scroll request auto slices ) { cluster search shards request shards request = new cluster search shards request ( ) ; shards request indices ( request get search request ( ) indices ( ) ) ; client admin ( ) cluster ( ) search shards ( shards request , new action listener < > ( ) { @ override public void on response ( cluster search shards response response ) { set worker count ( request , task , count slices based on shards ( response ) ) ; listener on response ( null ) ; } @ override public void on failure ( exception e ) { listener on failure ( e ) ; } } ) ; } else { set worker count ( request , task , configured slices ) ; listener on response ( null ) ; } }


returns the { @ code inet 6 address } corresponding to a given { @ code big integer }

public static inet 6 address from i pv 6 big integer ( big integer address ) { return ( inet 6 address ) from big integer ( address , true ) ; }


process a manifest for a library or a binary and return the merged android data

public merged android data process manifest ( variant type variant type , string custom package for r , string application id , int version code , string version name , merged android data primary data , path processed manifest , boolean log warnings ) { manifest merger 2 merge type merge type = variant type = = variant type default ? manifest merger 2 merge type application : manifest merger 2 merge type library ; string new manifest package = variant type = = variant type default ? application id : custom package for r ; if ( version code ! = - 1 | | version name ! = null | | new manifest package ! = null ) { process manifest ( version code , version name , primary data get manifest ( ) , processed manifest , merge type , new manifest package , log warnings ) ; return new merged android data ( primary data get resource dir ( ) , primary data get asset dir ( ) , processed manifest ) ; } return primary data ; }


notify the listener about the timeout for an event identified by key additionally the method is called with the timeout ticket which allows to identify outdated timeout events

void notify timeout ( k key , uuid ticket ) ;


public boolean is ignored ( ) { return ignored ; }


when an object implementing interface < code > runnable < code > is used to create a thread , starting the thread causes the object ' s < code > run < code > method to be called in that separately executing thread the general contract of the method < code > run < code > is that it may take any action whatsoever

public void run ( ) { string name = null ; try { global settings reset ( ) ; client opt input opts = configurator to client opt input ( ) ; codegen config config = opts get config ( ) ; name = config get name ( ) ; path target = paths get ( config get output dir ( ) ) ; path updated = root dir resolve ( target ) ; config set output dir ( updated to string ( ) ) ; if ( this clean ) { clean previous files ( name , updated ) ; } system out printf ( locale root , " [ % s ] generating % s ( outputs to % s ) … % n " , thread current thread ( ) get name ( ) , name , updated to string ( ) ) ; default generator default generator = new default generator ( ) ; default generator opts ( opts ) ; default generator generate ( ) ; system out printf ( locale root , " [ % s ] finished generating % s … % n " , thread current thread ( ) get name ( ) , name ) ; successes increment and get ( ) ; } catch ( throwable e ) { failures increment and get ( ) ; string failed on = name ; if ( string utils is empty ( failed on ) ) { failed on = " unspecified " ; } system err printf ( locale root , " [ % s ] generation failed for % s : ( % s ) % s % n " , thread current thread ( ) get name ( ) , failed on , e get class ( ) get simple name ( ) , e get message ( ) ) ; e print stack trace ( system err ) ; if ( exit on error ) { system exit ( 1 ) ; } } finally { global settings reset ( ) ; } }


set a view visibility to visible ( true ) or gone ( false )

public base adapter helper set visible ( int view id , boolean visible ) { view view = retrieve view ( view id ) ; view set visibility ( visible ? view visible : view gone ) ; return this ; }


verifies that { @ code row key } , { @ code column key } and { @ code value } are non - null , and returns a new entry with those values

static < r , c , v > cell < r , c , v > cell of ( r row key , c column key , v value ) { return tables immutable cell ( check not null ( row key , " row key " ) , check not null ( column key , " column key " ) , check not null ( value , " value " ) ) ; }


when parameter is annotated then jersey classifies such parameter as { @ link org glassfish jersey server model parameter source # unknown } instead of { @ link org glassfish jersey server model parameter source # entity } which is used for unannotated parameters value factory provider resolution logic is different for these two sources therefore must be tested separately

public void annotated json principal entity resource without auth 2 0 0 ( ) { string principal name = " astar seran " ; assert that ( target ( " / no - auth - test / annotated - json - principal - entity " ) request ( ) header ( http headers authorization , " anything here " ) post ( entity entity ( new json principal ( principal name ) , media type application json ) ) read entity ( string class ) ) is equal to ( principal name ) ; }


set the short value for the specified field

public void set short value ( int col index , short value ) { dirty = true ; field values [ col index ] set short value ( value ) ; }


public list < scrollable hit source search failure > get search failures ( ) { return search failures ; }


build j unit test suite for the specified package test suite includes sub - test suites for each sub - package

public static test suite get test suite ( string pkg name ) { return get test suite ( pkg name , true ) ; }


generate method invocation statement and return it if necessary

private string generate return and invocation ( method method ) { string return statement = method get return type ( ) equals ( void class ) ? " " : " return " ; string args = int stream range ( 0 , method get parameters ( ) length ) map to obj ( i - > string format ( code extension method invoke argument , i ) ) collect ( collectors joining ( " , " ) ) ; return return statement + string format ( " extension % s ( % s ) ; \ n " , method get name ( ) , args ) ; }


adds a data set as a broadcast set to the gather function

public void add broadcast set for gather function ( string name , data set < ? > data ) { this bc vars gather add ( new tuple 2 < > ( name , data ) ) ; }


public string get job queue name ( ) { if ( datum job queue name ! = null ) { return datum job queue name to string ( ) ; } return null ; }


sets the exception from failed execution and executes callback if available notifies any thread waiting for completion

void set exception ( exception exception ) { this exception = exception ; this state = failed ; this callback if present ( ac - > ac on complete ( null , optional of ( exception ) ) ) ; synchronized ( lock ) { lock notify all ( ) ; } }


return the additional ( undeclared ) property with the specified name

public object get additional property ( string key ) { if ( this additional properties = = null ) { return null ; } return this additional properties get ( key ) ; }


update the extra data fields to contain a zip 6 4 extended information field if required

private static void add zip 6 4 extra ( zip file entry entry ) { enum set < feature > features = entry get feature set ( ) ; extra data list extra = entry get extra ( ) ; int extra size = 0 ; if ( features contains ( feature zip64 size ) ) { extra size + = 8 ; } if ( features contains ( feature zip64 csize ) ) { extra size + = 8 ; } if ( features contains ( feature zip64 offset ) ) { extra size + = 8 ; } if ( extra size > 0 ) { extra remove ( ( short ) 0x 0 0 0 1 ) ; byte [ ] zip 6 4 extra = new byte [ extra data fixed data size + extra size ] ; zip util short to little endian ( zip 6 4 extra , extra data id offset , ( short ) 0x 0 0 0 1 ) ; zip util short to little endian ( zip 6 4 extra , extra data length offset , ( short ) extra size ) ; int offset = extra data fixed data size ; if ( features contains ( feature zip64 size ) ) { zip util long to little endian ( zip 6 4 extra , offset , entry get size ( ) ) ; offset + = 8 ; } if ( features contains ( feature zip64 csize ) ) { zip util long to little endian ( zip 6 4 extra , offset , entry get compressed size ( ) ) ; offset + = 8 ; } if ( features contains ( feature zip64 offset ) ) { zip util long to little endian ( zip 6 4 extra , offset , entry get local header offset ( ) ) ; } extra add ( new extra data ( zip 6 4 extra , 0 ) ) ; } }


forwards item deleted callback to all listeners within this list

public void item deleted ( string parent path , string item name ) { if ( enable asynchronous dispatching ) { add ( new item deleted event ( parent path , item name ) ) ; } else { for ( file system listener l : listener list ) { l item deleted ( parent path , item name ) ; } } }


for this test , the body for this request much reference a schema named & # x 6 0 ; file & # x 6 0 ;

public void test body with file schema ( file schema test class body , handler < async result < void > > result handler ) { test body with file schema ( body , null , result handler ) ; }


public root channel list get root channels ( long from id , int max page size ) { list < internal instrumented < channel stats > > channel list = new array list < > ( ) ; iterator < internal instrumented < channel stats > > iterator = root channels tail map ( from id ) values ( ) iterator ( ) ; while ( iterator has next ( ) & & channel list size ( ) < max page size ) { channel list add ( iterator next ( ) ) ; } return new root channel list ( channel list , ! iterator has next ( ) ) ; }


clear the resource bundle caches of this message source and all its ancestors

public void clear cache including ancestors ( ) { clear cache ( ) ; if ( get parent message source ( ) instanceof reloadable resource bundle message source ) { ( ( reloadable resource bundle message source ) get parent message source ( ) ) clear cache including ancestors ( ) ; } }


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


after saving a model , the id for this model will be returned assign this id to the model ' s id or id field if it exists

private void give model id value ( lite pal support base obj , string id name , class < ? > id type , long id ) throws security exception , illegal argument exception , illegal access exception { if ( should give model id value ( id name , id type , id ) ) { object value ; if ( id type = = int class | | id type = = integer class ) { value = ( int ) id ; } else if ( id type = = long class | | id type = = long class ) { value = id ; } else { throw new lite pal support exception ( lite pal support exception id type invalid exception ) ; } dynamic executor set field ( base obj , id name , value , base obj get class ( ) ) ; } }


calculate additional empty files to add based on the existing manifest paths

iterable < path fragment > get extra paths ( set < path fragment > manifest paths ) ;


updates the result of decoding this object this method is supposed to be invoked by a decoder do not call this method unless you know what you are doing

void set decoder result ( decoder result result ) ;


data output stream get buffered output stream ( ) { return new data output stream ( new buffered output stream ( get output stream ( ) , small buffer size ) ) ; }


determine whether the provided bean definition is an autowire candidate to be considered a candidate the bean ' s autowire - candidate attribute must not have been set to ' false ' also , if an annotation on the field or parameter to be autowired is recognized by this bean factory as a qualifier , the bean must ' match ' against the annotation as well as any attributes it may contain the bean definition must contain the same qualifier or match by meta attributes a " value " attribute will fallback to match against the bean name or an alias if a qualifier or attribute does not match

public boolean is autowire candidate ( bean definition holder bd holder , dependency descriptor descriptor ) { boolean match = super is autowire candidate ( bd holder , descriptor ) ; if ( match ) { match = check qualifiers ( bd holder , descriptor get annotations ( ) ) ; if ( match ) { method parameter method param = descriptor get method parameter ( ) ; if ( method param ! = null ) { method method = method param get method ( ) ; if ( method = = null | | void class = = method get return type ( ) ) { match = check qualifiers ( bd holder , method param get method annotations ( ) ) ; } } } } return match ; }


this method enables conversion of truefalse strings in config additional properties ( configurationconfig options ) to proper booleans this enables mustache files to handle the properties better

private void adjust additional properties ( final codegen config config ) { map < string , object > config additional properties = config additional properties ( ) ; set < string > key set = config additional properties key set ( ) ; for ( string key : key set ) { object value = config additional properties get ( key ) ; if ( value ! = null ) { if ( value instanceof string ) { string string value = ( string ) value ; if ( string value equals ignore case ( " true " ) ) { config additional properties put ( key , boolean true ) ; } else if ( string value equals ignore case ( " false " ) ) { config additional properties put ( key , boolean false ) ; } } } else { config additional properties put ( key , boolean false ) ; } } }


returns the new { @ link event executor } to use


public byte [ ] get heap memory ( ) { return heap memory ; }


add into the flow address set those addresses we flow to from the specified code unit when flowing forward or the addresses that flow to the code unit when determining flows in the backward direction for data , ensure that those primitive data elements followed are contained within the start addresses

private void get code unit flow ( task monitor monitor , address set start addresses , address set flow address set , code unit code unit , boolean forward ) { if ( code unit instanceof data ) { get indirect code flow ( monitor , start addresses , flow address set , ( data ) code unit , forward ) ; } else if ( code unit instanceof instruction ) { get instruction flow ( monitor , flow address set , ( instruction ) code unit , forward ) ; } }


encode the given username and password into basic authentication credentials the encoded credentials returned by this method can be supplied to { @ link # set basic auth ( string ) } to set the basic authentication header

public static string encode basic auth ( string username , string password , @ nullable charset charset ) { assert not null ( username , " username must not be null " ) ; assert does not contain ( username , " : " , " username must not contain a colon " ) ; assert not null ( password , " password must not be null " ) ; if ( charset = = null ) { charset = standard charsets iso 8859 1 ; } charset encoder encoder = charset new encoder ( ) ; if ( ! encoder can encode ( username ) | | ! encoder can encode ( password ) ) { throw new illegal argument exception ( " username or password contains characters that cannot be encoded to " + charset display name ( ) ) ; } string credentials string = username + " : " + password ; byte [ ] encoded bytes = base 6 4 get encoder ( ) encode ( credentials string get bytes ( charset ) ) ; return new string ( encoded bytes , charset ) ; }


void set index map ( index map index map ) { this index map = index map ; if ( index map ! = null ) { no value str = get string ( " " ) ; read error str = get string ( " ? " ) ; block set = index map get byte block set ( ) ; } else { block set = null ; } }


records that the given interface has a companion class that includes the given number of default methods ( 0 if there were only static methods ) this method should not be called for purely abstract interfaces , to allow verifying available companion classes against this this information is useful reference to double - check { @ link # missing implemented interface } s without reading and parsing class files with better precision than just looking for companion classes on the runtime classpath ( which may only contain static methods )

default void record default methods ( string origin , int count ) { }


applies an aggregation that that gives the minimum value of every window of the data stream at the given position

public single output stream operator < t > min ( int position to min ) { return aggregate ( new comparable aggregator < > ( position to min , input get type ( ) , aggregation function aggregation type min , input get execution config ( ) ) ) ; }


unassign any persistent tasks executing on nodes that are no longer in the cluster if the task ' s assigment has a non - null executor node and that node is no longer in the cluster then the assignment is set to { @ link # lost node assignment }

public static cluster state disassociate dead nodes ( cluster state cluster state ) { persistent tasks custom metadata tasks = get persistent tasks custom metadata ( cluster state ) ; if ( tasks = = null ) { return cluster state ; } persistent tasks custom metadata builder task builder = persistent tasks custom metadata builder ( tasks ) ; for ( persistent task < ? > task : tasks tasks ( ) ) { if ( task get assignment ( ) get executor node ( ) ! = null & & cluster state nodes ( ) node exists ( task get assignment ( ) get executor node ( ) ) = = false ) { task builder reassign task ( task get id ( ) , lost node assignment ) ; } } if ( task builder is changed ( ) = = false ) { return cluster state ; } metadata builder metadata builder = metadata builder ( cluster state metadata ( ) ) ; metadata builder put custom ( type , task builder build ( ) ) ; return cluster state builder ( cluster state ) metadata ( metadata builder ) build ( ) ; }


void set ( int x , byte value ) { row [ x ] = value ; }


saves state of ui controls to handler configuration

private void save handler settings ( ) { if ( selected profile = = null ) { return ; } for ( tab item handler tab : handlers folder get items ( ) ) { network handler descriptor handler = ( network handler descriptor ) handler tab get data ( ) ; handler block handler block = configurations get ( handler ) ; d b w handler configuration handler configuration = handler block loaded configs get ( selected profile ) ; if ( handler block use handler check get selection ( ) ) { if ( handler configuration = = null ) { handler configuration = new d b w handler configuration ( handler , null ) ; } handler configuration set properties ( collections empty map ( ) ) ; handler block configurator save settings ( handler configuration ) ; } } }


returns whether the given path exists in the filesystem

private boolean is file ( path fragment exec path , path fragment include as written , boolean is source , include scanning header data header data ) { if ( is real output file ( exec path ) ) { return header data is declared header ( exec path ) ; } / / todo ( djasper ) : this code path cannot be hit with is source being false verify and add / / preconditions check if ( is source & & ! exec path is absolute ( ) & & exec path ends with ( include as written ) ) { / / verify that the directory of exec path exists as an optimization most includes are relative / / to the workspace and we ' d like to avoid stat ' ing every such include relative to every / / include path if testing whether " a / b / c h " is a file beneath the include path " e / f / " , / / verify that " e / f / a " and " e / f / a / b " are valid directories ( and cache the result ) int exec path segments = exec path segment count ( ) ; int name segments = include as written segment count ( ) ; for ( int i = exec path segments - name segments + 1 ; i < exec path segments ; i + + ) { if ( ! path cache directory exists ( exec path sub fragment ( 0 , i ) ) ) { return false ; } } } / / shortcut : if this is a declared header , it ' s bound to exist if ( header data is declared header ( exec path ) ) { return true ; } return path cache file exists ( exec path , is source ) ; }


the set of arityplural mappings < code > repeated aapt pb plural entry entry = 1 ; < code >


the virtual ip addresses associated with the service could be cidr prefix for http traffic , generated route configurations will include http route domains for both the ` addresses ` and ` hosts ` field values and the destination will be identified based on the http host authority header if one or more ip addresses are specified , the incoming traffic will be identified as belonging to this service if the destination ip matches the i p c i d rs specified in the addresses field if the addresses field is empty , traffic will be identified solely based on the destination port in such scenarios , the port on which the service is being accessed must not be shared by any other service in the mesh in other words , the sidecar will behave as a simple tcp proxy , forwarding incoming traffic on a specified port to the specified destination endpoint i phost unix domain socket addresses are not supported in this field < code > repeated string addresses = 2 ; < code >

public builder clear addresses ( ) { addresses = com google protobuf lazy string array list empty ; bit field 0 = ( bit field 0 & ~ 0x 0 0 0 0 0 0 0 2 ) ; on changed ( ) ; return this ; }


public string authenticate ( user manager user mgr , subject subject , callback [ ] callbacks ) throws login exception { ghidra principal user = ghidra principal get ghidra principal ( subject ) ; if ( user = = null ) { throw new failed login exception ( " ghidra principal required " ) ; } string username = user get name ( ) ; name callback name cb = null ; s s h signature callback ssh cb = null ; if ( callbacks ! = null ) { for ( int i = 0 ; i < callbacks length ; i + + ) { if ( callbacks [ i ] instanceof name callback ) { name cb = ( name callback ) callbacks [ i ] ; } if ( callbacks [ i ] instanceof s s h signature callback ) { ssh cb = ( s s h signature callback ) callbacks [ i ] ; } } } if ( name callback allowed & & name cb ! = null ) { username = name cb get name ( ) ; } if ( username = = null | | username length ( ) = = 0 ) { throw new failed login exception ( " user id must be specified " ) ; } if ( ! user mgr is valid user ( username ) ) { throw new failed login exception ( " unknown user : " + username ) ; } if ( ssh cb = = null ) { throw new failed login exception ( " ssh signature callback not found for user : " + username ) ; } file ssh public key file = user mgr get s s h pub key file ( username ) ; if ( ssh public key file = = null ) { throw new failed login exception ( " ssh public key file not found for user : " + username ) ; } byte [ ] sig bytes = ssh cb get signature ( ) ; if ( sig bytes = = null ) { throw new failed login exception ( " ssh signature missing " ) ; } byte [ ] token = ssh cb get token ( ) ; if ( ! token generator is recent token ( token , max token time ) ) { throw new failed login exception ( " stale ssh signature callback " ) ; } boolean is valid = false ; try { boolean using self signed cert = application key manager factory using generated self signed certificate ( ) ; is valid = application key manager utils is my signature ( using self signed cert ? null : application key manager utils get trusted issuers ( ) , token , ssh cb get server signature ( ) ) ; } catch ( exception e ) { throw new runtime exception ( " unable to verify signed token " , e ) ; } if ( ! is valid ) { throw new failed login exception ( " invalid ssh signature callback " ) ; } try { object ssh public key = s s h key manager get s s h public key ( ssh public key file ) ; if ( ssh public key instanceof r s a public key ) { r s a public key key = ( r s a public key ) ssh public key ; r s a signature rsa signature = r s a s h a 1 verify decode s s h r s a signature ( sig bytes ) ; if ( ! r s a s h a 1 verify verify signature ( token , rsa signature , key ) ) { throw new failed login exception ( " incorrect signature " ) ; } } else if ( ssh public key instanceof d s a public key ) { d s a public key key = ( d s a public key ) ssh public key ; d s a signature dsa signature = d s a s h a 1 verify decode s s h d s a signature ( sig bytes ) ; if ( ! d s a s h a 1 verify verify signature ( token , dsa signature , key ) ) { throw new failed login exception ( " incorrect signature " ) ; } } } catch ( login exception e ) { throw e ; } catch ( throwable t ) { string msg = t get message ( ) ; if ( msg = = null ) { msg = t to string ( ) ; } throw new failed login exception ( msg ) ; } return username ; }