id stringlengths 11 15 | language stringclasses 1
value | question stringlengths 13 844 | answer stringlengths 1 900 | code stringlengths 162 27.4k | code_original stringlengths 162 26k | code_word_count int64 51 5.96k |
|---|---|---|---|---|---|---|
java-test-10960 | java | What has only the following lines ? | that log file | private void check Log ( String ... lines ) throws Exception { Buffered Reader br = new Buffered Reader ( new Input Stream Reader ( new File Input Stream ( LOG FILE ) ) ) ; List < String > log Lines = new Array List < > ( lines . length ) ; String next Log Line ; while ( ( next Log Line = br . read Line ( ) ) != null )... | private void checkLog ( String ... lines ) throws Exception { BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( LOG_FILE ) ) ) ; List < String > logLines = new ArrayList < > ( lines . length ) ; String nextLogLine ; while ( ( nextLogLine = br . readLine ( ) ) != null ) logLines . ad... | 203 |
java-test-10961 | java | What do that log file have ? | only the following lines | private void check Log ( String ... lines ) throws Exception { Buffered Reader br = new Buffered Reader ( new Input Stream Reader ( new File Input Stream ( LOG FILE ) ) ) ; List < String > log Lines = new Array List < > ( lines . length ) ; String next Log Line ; while ( ( next Log Line = br . read Line ( ) ) != null )... | private void checkLog ( String ... lines ) throws Exception { BufferedReader br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( LOG_FILE ) ) ) ; List < String > logLines = new ArrayList < > ( lines . length ) ; String nextLogLine ; while ( ( nextLogLine = br . readLine ( ) ) != null ) logLines . ad... | 203 |
java-test-10962 | java | What is a key in the output map lists ? | each target type | static Map < Target Type , List < Type Compound > > partition By Target Type ( Collection < Type Compound > annos , List < Type Compound > unmatched , Target Type ... target Types ) { final Map < Target Type , List < Type Compound > > target Type To Annos = new Hash Map < > ( ) ; for ( Target Type target Type : target ... | static Map < TargetType , List < TypeCompound > > partitionByTargetType ( Collection < TypeCompound > annos , List < TypeCompound > unmatched , TargetType ... targetTypes ) { final Map < TargetType , List < TypeCompound > > targetTypeToAnnos = new HashMap < > ( ) ; for ( TargetType targetType : targetTypes ) { targetTy... | 174 |
java-test-10963 | java | Where is each target type a key in the output map ? | lists | static Map < Target Type , List < Type Compound > > partition By Target Type ( Collection < Type Compound > annos , List < Type Compound > unmatched , Target Type ... target Types ) { final Map < Target Type , List < Type Compound > > target Type To Annos = new Hash Map < > ( ) ; for ( Target Type target Type : target ... | static Map < TargetType , List < TypeCompound > > partitionByTargetType ( Collection < TypeCompound > annos , List < TypeCompound > unmatched , TargetType ... targetTypes ) { final Map < TargetType , List < TypeCompound > > targetTypeToAnnos = new HashMap < > ( ) ; for ( TargetType targetType : targetTypes ) { targetTy... | 174 |
java-test-10965 | java | What does the code evaluate ? | an x - value | public void update Crosshair X ( double candidate X , int domain Axis Index ) { double d = Math . abs ( candidate X - this . anchor X ) ; if ( d < this . distance ) { this . crosshair X = candidate X ; this . domain Axis Index = domain Axis Index ; this . distance = d ; } } | public void updateCrosshairX ( double candidateX , int domainAxisIndex ) { double d = Math . abs ( candidateX - this . anchorX ) ; if ( d < this . distance ) { this . crosshairX = candidateX ; this . domainAxisIndex = domainAxisIndex ; this . distance = d ; } } | 67 |
java-test-10966 | java | What is numerical cases ? | only the x - axis | public void update Crosshair X ( double candidate X , int domain Axis Index ) { double d = Math . abs ( candidate X - this . anchor X ) ; if ( d < this . distance ) { this . crosshair X = candidate X ; this . domain Axis Index = domain Axis Index ; this . distance = d ; } } | public void updateCrosshairX ( double candidateX , int domainAxisIndex ) { double d = Math . abs ( candidateX - this . anchorX ) ; if ( d < this . distance ) { this . crosshairX = candidateX ; this . domainAxisIndex = domainAxisIndex ; this . distance = d ; } } | 67 |
java-test-10967 | java | How do all echo breakpoints clear ? | without notifying the listeners about the deleted breakpoints | public void clear Breakpoints Passive ( final Breakpoint Type type ) { Preconditions . check Not Null ( type , STRING ) ; Navi Logger . info ( STRING , type ) ; switch ( type ) { case REGULAR : throw new Illegal State Exception ( STRING ) ; case ECHO : echo Breakpoint Storage . clear ( ) ; return ; case STEP : step Bre... | public void clearBreakpointsPassive ( final BreakpointType type ) { Preconditions . checkNotNull ( type , STRING ) ; NaviLogger . info ( STRING , type ) ; switch ( type ) { case REGULAR : throw new IllegalStateException ( STRING ) ; case ECHO : echoBreakpointStorage . clear ( ) ; return ; case STEP : stepBreakpointStor... | 96 |
java-test-10968 | java | What does the code delete from the shared configuration ? | the xml entity | public void delete Xml Entity ( final Xml Entity xml Entity , String [ ] groups ) throws Exception { Region < String , Configuration > config Region = get Configuration Region ( ) ; if ( groups == null ) { Set < String > group Set = config Region . key Set ( ) ; groups = group Set . to Array ( new String [ group Set . ... | public void deleteXmlEntity ( final XmlEntity xmlEntity , String [ ] groups ) throws Exception { Region < String , Configuration > configRegion = getConfigurationRegion ( ) ; if ( groups == null ) { Set < String > groupSet = configRegion . keySet ( ) ; groups = groupSet . toArray ( new String [ groupSet . size ( ) ] ) ... | 200 |
java-test-10969 | java | What does the code apply ? | the camera settings | public void apply Camera ( GL 2 gl ) { gl . gl Matrix Mode ( GL 2 . GL PROJECTION ) ; gl . gl Load Identity ( ) ; glu . glu Perspective ( NUM , width / ( float ) height , NUM , NUM ) ; eye [ NUM ] = ( float ) Math . sin ( theta ) * NUM ; eye [ NUM ] = NUM ; eye [ NUM ] = ( float ) Math . cos ( theta ) * NUM ; glu . glu... | public void applyCamera ( GL2 gl ) { gl . glMatrixMode ( GL2 . GL_PROJECTION ) ; gl . glLoadIdentity ( ) ; glu . gluPerspective ( _NUM , width / ( float ) height , _NUM , _NUM ) ; eye [ _NUM ] = ( float ) Math . sin ( theta ) * _NUM ; eye [ _NUM ] = _NUM ; eye [ _NUM ] = ( float ) Math . cos ( theta ) * _NUM ; glu . gl... | 161 |
java-test-10970 | java | What does this assume ? | the working directory isn ' t changing so the database files can be found relative to the current working directory | public void drop Database ( ) throws IO Exception { File db Dir = new File ( get Raw Name ( ) ) ; log . debug ( STRING , name , db Dir . get Absolute File ( ) ) ; File Utils . delete Directory ( db Dir ) ; } | public void dropDatabase ( ) throws IOException { File dbDir = new File ( getRawName ( ) ) ; log . debug ( STRING , name , dbDir . getAbsoluteFile ( ) ) ; FileUtils . deleteDirectory ( dbDir ) ; } | 53 |
java-test-10971 | java | For what purpose do the working directory change ? | so the database files can be found relative to the current working directory | public void drop Database ( ) throws IO Exception { File db Dir = new File ( get Raw Name ( ) ) ; log . debug ( STRING , name , db Dir . get Absolute File ( ) ) ; File Utils . delete Directory ( db Dir ) ; } | public void dropDatabase ( ) throws IOException { File dbDir = new File ( getRawName ( ) ) ; log . debug ( STRING , name , dbDir . getAbsoluteFile ( ) ) ; FileUtils . deleteDirectory ( dbDir ) ; } | 53 |
java-test-10972 | java | What does the code delete from disk ? | it ' s files | public void drop Database ( ) throws IO Exception { File db Dir = new File ( get Raw Name ( ) ) ; log . debug ( STRING , name , db Dir . get Absolute File ( ) ) ; File Utils . delete Directory ( db Dir ) ; } | public void dropDatabase ( ) throws IOException { File dbDir = new File ( getRawName ( ) ) ; log . debug ( STRING , name , dbDir . getAbsoluteFile ( ) ) ; FileUtils . deleteDirectory ( dbDir ) ; } | 53 |
java-test-10973 | java | How can the database files be found ? | relative to the current working directory | public void drop Database ( ) throws IO Exception { File db Dir = new File ( get Raw Name ( ) ) ; log . debug ( STRING , name , db Dir . get Absolute File ( ) ) ; File Utils . delete Directory ( db Dir ) ; } | public void dropDatabase ( ) throws IOException { File dbDir = new File ( getRawName ( ) ) ; log . debug ( STRING , name , dbDir . getAbsoluteFile ( ) ) ; FileUtils . deleteDirectory ( dbDir ) ; } | 53 |
java-test-10974 | java | How does the code drop the database ? | by deleting it ' s files from disk | public void drop Database ( ) throws IO Exception { File db Dir = new File ( get Raw Name ( ) ) ; log . debug ( STRING , name , db Dir . get Absolute File ( ) ) ; File Utils . delete Directory ( db Dir ) ; } | public void dropDatabase ( ) throws IOException { File dbDir = new File ( getRawName ( ) ) ; log . debug ( STRING , name , dbDir . getAbsoluteFile ( ) ) ; FileUtils . deleteDirectory ( dbDir ) ; } | 53 |
java-test-10976 | java | For what purpose do the columns and types of this table iterate then ? | to create a new instance of table model | public static Table Model find Pragma Table Info ( String table Name , SQ Lite Database db ) { if ( is Table Exists ( table Name , db ) ) { List < String > unique Columns = find Unique Columns ( table Name , db ) ; Table Model table Model DB = new Table Model ( ) ; table Model DB . set Table Name ( table Name ) ; Strin... | public static TableModel findPragmaTableInfo ( String tableName , SQLiteDatabase db ) { if ( isTableExists ( tableName , db ) ) { List < String > uniqueColumns = findUniqueColumns ( tableName , db ) ; TableModel tableModelDB = new TableModel ( ) ; tableModelDB . setTableName ( tableName ) ; String checkingColumnSQL = S... | 408 |
java-test-10977 | java | How did a table name ? | same as the table name in table model | public static Table Model find Pragma Table Info ( String table Name , SQ Lite Database db ) { if ( is Table Exists ( table Name , db ) ) { List < String > unique Columns = find Unique Columns ( table Name , db ) ; Table Model table Model DB = new Table Model ( ) ; table Model DB . set Table Name ( table Name ) ; Strin... | public static TableModel findPragmaTableInfo ( String tableName , SQLiteDatabase db ) { if ( isTableExists ( tableName , db ) ) { List < String > uniqueColumns = findUniqueColumns ( tableName , db ) ; TableModel tableModelDB = new TableModel ( ) ; tableModelDB . setTableName ( tableName ) ; String checkingColumnSQL = S... | 408 |
java-test-10978 | java | What does the code add ? | the start block | private static < T extends Abstract Block Base < T > > Priority Queue < T > initialize Worklist ( T start Block , Bit Set visited Blocks ) { Priority Queue < T > result = new Priority Queue < > ( INITIAL WORKLIST CAPACITY , new Block Order Comparator < > ( ) ) ; result . add ( start Block ) ; visited Blocks . set ( sta... | private static < T extends AbstractBlockBase < T > > PriorityQueue < T > initializeWorklist ( T startBlock , BitSet visitedBlocks ) { PriorityQueue < T > result = new PriorityQueue < > ( INITIAL_WORKLIST_CAPACITY , new BlockOrderComparator < > ( ) ) ; result . add ( startBlock ) ; visitedBlocks . set ( startBlock . get... | 83 |
java-test-10979 | java | What does the code initialize ? | the priority queue used for the work list of blocks | private static < T extends Abstract Block Base < T > > Priority Queue < T > initialize Worklist ( T start Block , Bit Set visited Blocks ) { Priority Queue < T > result = new Priority Queue < > ( INITIAL WORKLIST CAPACITY , new Block Order Comparator < > ( ) ) ; result . add ( start Block ) ; visited Blocks . set ( sta... | private static < T extends AbstractBlockBase < T > > PriorityQueue < T > initializeWorklist ( T startBlock , BitSet visitedBlocks ) { PriorityQueue < T > result = new PriorityQueue < > ( INITIAL_WORKLIST_CAPACITY , new BlockOrderComparator < > ( ) ) ; result . add ( startBlock ) ; visitedBlocks . set ( startBlock . get... | 83 |
java-test-10983 | java | What does this test exhaustively ? | the parametric transitions tables | private void assert Char Vectors ( int n ) { int k = NUM * n + NUM ; int limit = ( int ) Math . pow ( NUM , k + NUM ) ; for ( int i = NUM ; i < limit ; i ++ ) { String encoded = Integer . to String ( i , NUM ) ; assert Lev ( encoded , n ) ; } } | private void assertCharVectors ( int n ) { int k = _NUM * n + _NUM ; int limit = ( int ) Math . pow ( _NUM , k + _NUM ) ; for ( int i = _NUM ; i < limit ; i ++ ) { String encoded = Integer . toString ( i , _NUM ) ; assertLev ( encoded , n ) ; } } | 74 |
java-test-10984 | java | How does this test the parametric transitions tables ? | exhaustively | private void assert Char Vectors ( int n ) { int k = NUM * n + NUM ; int limit = ( int ) Math . pow ( NUM , k + NUM ) ; for ( int i = NUM ; i < limit ; i ++ ) { String encoded = Integer . to String ( i , NUM ) ; assert Lev ( encoded , n ) ; } } | private void assertCharVectors ( int n ) { int k = _NUM * n + _NUM ; int limit = ( int ) Math . pow ( _NUM , k + _NUM ) ; for ( int i = _NUM ; i < limit ; i ++ ) { String encoded = Integer . toString ( i , _NUM ) ; assertLev ( encoded , n ) ; } } | 74 |
java-test-10985 | java | What does the code add ? | attributes to be included in the element comparison | public void add Included Attributes ( final String element Name , final List attr Names ) { List attr Names List = null ; if ( ( attr Names List = ( List ) included Element Attrs Map . get ( element Name ) ) == null ) { attr Names List = new Array List ( ) ; } attr Names List . add All ( attr Names ) ; included Element... | public void addIncludedAttributes ( final String elementName , final List attrNames ) { List attrNamesList = null ; if ( ( attrNamesList = ( List ) _includedElementAttrsMap . get ( elementName ) ) == null ) { attrNamesList = new ArrayList ( ) ; } attrNamesList . addAll ( attrNames ) ; _includedElementAttrsMap . put ( e... | 87 |
java-test-10987 | java | What carrys on the database ? | an update sql command | private synchronized void update ( String query ) throws SQL Exception { Statement st = connection . create Statement ( ) ; int ok = st . execute Update ( query ) ; if ( ok == - NUM ) { throw new SQL Exception ( STRING + query ) ; } st . close ( ) ; } | private synchronized void update ( String query ) throws SQLException { Statement st = connection . createStatement ( ) ; int ok = st . executeUpdate ( query ) ; if ( ok == - _NUM ) { throw new SQLException ( STRING + query ) ; } st . close ( ) ; } | 59 |
java-test-10989 | java | What does the code create ? | a new data node component | public C Data Node Component ( final I Navi Module module , final I View Container origin Container ) { super ( new Border Layout ( ) ) ; Preconditions . check Not Null ( module , STRING ) ; final Jide Split Pane split Pane = new Jide Split Pane ( Jide Split Pane . VERTICAL SPLIT ) ; split Pane . set Double Buffered ( ... | public CDataNodeComponent ( final INaviModule module , final IViewContainer originContainer ) { super ( new BorderLayout ( ) ) ; Preconditions . checkNotNull ( module , STRING ) ; final JideSplitPane splitPane = new JideSplitPane ( JideSplitPane . VERTICAL_SPLIT ) ; splitPane . setDoubleBuffered ( _BOOL ) ; splitPane .... | 219 |
java-test-10990 | java | How does the word return ? | in its stemmed form | @ Override public String stem ( String word ) { String result ; Object [ ] args ; if ( m Stemmer == null ) { result = new String ( word ) ; } else { if ( m Set Current Method == null ) { set Stemmer ( get Stemmer ( ) ) ; } try { args = new Object [ NUM ] ; args [ NUM ] = word ; m Set Current Method . invoke ( m Stemmer... | @ Override public String stem ( String word ) { String result ; Object [ ] args ; if ( m_Stemmer == null ) { result = new String ( word ) ; } else { if ( m_SetCurrentMethod == null ) { setStemmer ( getStemmer ( ) ) ; } try { args = new Object [ _NUM ] ; args [ _NUM ] = word ; m_SetCurrentMethod . invoke ( m_Stemmer , a... | 158 |
java-test-10991 | java | What is using to something like " home dir is / home / justin_bieber ? | the env var " home " | static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m... | static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro... | 182 |
java-test-10992 | java | How will home dir is $ { env . home } " expand to something like " home dir is / home / justin_bieber ? | using the env var " home " | static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m... | static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro... | 182 |
java-test-10993 | java | What found in the expression ? | any environment variables | static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m... | static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro... | 182 |
java-test-10994 | java | What do the env var " home " use ? | to something like " home dir is / home / justin_bieber | static String expand Environment Variables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV VAR PATTERN . matcher ( value ) ; String Buffer sb = new String Buffer ( ) ; while ( m . find ( ) ) { String env Var Value = null ; String env Var Name = null == m . group ( NUM ) ? m . group ( NUM ) : m... | static String expandEnvironmentVariables ( String value ) { if ( null == value ) { return null ; } Matcher m = ENV_VAR_PATTERN . matcher ( value ) ; StringBuffer sb = new StringBuffer ( ) ; while ( m . find ( ) ) { String envVarValue = null ; String envVarName = null == m . group ( _NUM ) ? m . group ( _NUM ) : m . gro... | 182 |
java-test-10995 | java | What does the earliest start date from the periods use ? | as start date and the latest end date from the periods as end date | public void replace Periods With Start End Dates ( ) { List < Period > periods = as Typed List ( get Dimension Or Filter Items ( PERIOD DIM ID ) ) ; for ( Period period : periods ) { Date start = period . get Start Date ( ) ; Date end = period . get End Date ( ) ; if ( start Date == null || ( start != null && start . b... | public void replacePeriodsWithStartEndDates ( ) { List < Period > periods = asTypedList ( getDimensionOrFilterItems ( PERIOD_DIM_ID ) ) ; for ( Period period : periods ) { Date start = period . getStartDate ( ) ; Date end = period . getEndDate ( ) ; if ( startDate == null || ( start != null && start . before ( startDat... | 131 |
java-test-10996 | java | What is using as start date and the latest end date from the periods as end date ? | the earliest start date from the periods | public void replace Periods With Start End Dates ( ) { List < Period > periods = as Typed List ( get Dimension Or Filter Items ( PERIOD DIM ID ) ) ; for ( Period period : periods ) { Date start = period . get Start Date ( ) ; Date end = period . get End Date ( ) ; if ( start Date == null || ( start != null && start . b... | public void replacePeriodsWithStartEndDates ( ) { List < Period > periods = asTypedList ( getDimensionOrFilterItems ( PERIOD_DIM_ID ) ) ; for ( Period period : periods ) { Date start = period . getStartDate ( ) ; Date end = period . getEndDate ( ) ; if ( startDate == null || ( start != null && start . before ( startDat... | 131 |
java-test-10998 | java | What does the code create ? | a new hashtokensessionmap configured using the given environment | public Hash Token Session Map ( Environment environment ) { int session Timeout Value ; try { session Timeout Value = environment . get Property ( API SESSION TIMEOUT , NUM ) ; } catch ( Guacamole Exception e ) { logger . error ( STRING , e . get Message ( ) ) ; logger . debug ( STRING , e ) ; session Timeout Value = N... | public HashTokenSessionMap ( Environment environment ) { int sessionTimeoutValue ; try { sessionTimeoutValue = environment . getProperty ( API_SESSION_TIMEOUT , _NUM ) ; } catch ( GuacamoleException e ) { logger . error ( STRING , e . getMessage ( ) ) ; logger . debug ( STRING , e ) ; sessionTimeoutValue = _NUM ; } log... | 112 |
java-test-11000 | java | What does the code create ? | a new register description object | public Register Description ( final String name , final int size , final boolean editable ) { this . name = Preconditions . check Not Null ( name , STRING ) ; if ( ! is Valid Size ( size ) ) { throw new Illegal Argument Exception ( String . format ( STRING , size ) ) ; } byte Size = size ; is Editable = editable ; } | public RegisterDescription ( final String name , final int size , final boolean editable ) { this . name = Preconditions . checkNotNull ( name , STRING ) ; if ( ! isValidSize ( size ) ) { throw new IllegalArgumentException ( String . format ( STRING , size ) ) ; } byteSize = size ; isEditable = editable ; } | 71 |
java-test-11001 | java | What does the code create if null , uses the global logger around a given logger ? | a log formatter | public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | 87 |
java-test-11002 | java | Where does the code create a log formatter if null , uses the global logger ? | around a given logger | public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | 87 |
java-test-11003 | java | What does the code use if null ? | the global logger | public Log Formatter ( Logger log ) { if ( log == null ) log = Logger . get Logger ( Logger . GLOBAL LOGGER NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . get Level ( ) ; if ( lvl != null ) break ; log = log . get Parent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | public LogFormatter ( Logger log ) { if ( log == null ) log = Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ; Level lvl = null ; while ( log != null ) { lvl = log . getLevel ( ) ; if ( lvl != null ) break ; log = log . getParent ( ) ; } ; if ( lvl == null ) lvl = Level . WARNING ; this . level = lvl ; } | 87 |
java-test-11005 | java | What is used in oidc claims ? | the script identified by the specified uuid | private int oidc Claims Usage Count ( String uuid ) throws SSO Exception , SMS Exception { SMS Entry sms Entry = new SMS Entry ( get Token ( ) , get O Auth 2 Provider Base DN ( ) ) ; Map < String , Set < String > > attributes = sms Entry . get Attributes ( ) ; try { Set < String > sun Key Values = get Map Set Throws ( ... | private int oidcClaimsUsageCount ( String uuid ) throws SSOException , SMSException { SMSEntry smsEntry = new SMSEntry ( getToken ( ) , getOAuth2ProviderBaseDN ( ) ) ; Map < String , Set < String > > attributes = smsEntry . getAttributes ( ) ; try { Set < String > sunKeyValues = getMapSetThrows ( attributes , STRING ) ... | 114 |
java-test-11006 | java | Where is the script identified by the specified uuid used how many times ? | in oidc claims | private int oidc Claims Usage Count ( String uuid ) throws SSO Exception , SMS Exception { SMS Entry sms Entry = new SMS Entry ( get Token ( ) , get O Auth 2 Provider Base DN ( ) ) ; Map < String , Set < String > > attributes = sms Entry . get Attributes ( ) ; try { Set < String > sun Key Values = get Map Set Throws ( ... | private int oidcClaimsUsageCount ( String uuid ) throws SSOException , SMSException { SMSEntry smsEntry = new SMSEntry ( getToken ( ) , getOAuth2ProviderBaseDN ( ) ) ; Map < String , Set < String > > attributes = smsEntry . getAttributes ( ) ; try { Set < String > sunKeyValues = getMapSetThrows ( attributes , STRING ) ... | 114 |
java-test-11009 | java | How is a new list created ? | with the same elements as the given iterable | public static < E > List < E > as List ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new Array List < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; } | public static < E > List < E > asList ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new ArrayList < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; } | 71 |
java-test-11010 | java | What does the code return ? | the given iterable as a list | public static < E > List < E > as List ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new Array List < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; } | public static < E > List < E > asList ( Iterable < E > iterable ) { if ( iterable instanceof List ) { return ( List < E > ) iterable ; } List < E > result = new ArrayList < E > ( ) ; for ( E e : iterable ) { result . add ( e ) ; } return result ; } | 71 |
java-test-11011 | java | What will the string returned have ? | no slashes or punctuation | protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re... | protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat... | 84 |
java-test-11012 | java | What will have no slashes or punctuation ? | the string returned | protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re... | protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat... | 84 |
java-test-11013 | java | What have the code get ? | a string name for the configuration of this datasource | protected static String create Id From Jndi Location ( String jndi Location ) { int [ ] delimeters = new int [ ] { jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) , jndi Location . last Index Of ( STRING ) } ; Arrays . sort ( delimeters ) ; int highest Index = delimeters [ NUM ] ; re... | protected static String createIdFromJndiLocation ( String jndiLocation ) { int [ ] delimeters = new int [ ] { jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) , jndiLocation . lastIndexOf ( STRING ) } ; Arrays . sort ( delimeters ) ; int highestIndex = delimeters [ _NUM ] ; return jndiLocat... | 84 |
java-test-11015 | java | What does the code create ? | new form gotopopup | public Go To Popup ( String caption , List < Go To Item > items ) { this . caption = caption ; this . items = items ; init Components ( ) ; j List 1 . set Cursor ( Cursor . get Predefined Cursor ( Cursor . HAND CURSOR ) ) ; add Focus Listener ( this ) ; init ( ) ; } | public GoToPopup ( String caption , List < GoToItem > items ) { this . caption = caption ; this . items = items ; initComponents ( ) ; jList1 . setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; addFocusListener ( this ) ; init ( ) ; } | 66 |
java-test-11018 | java | When does transaction commit ? | in case when node started transaction failed | public void commit If Prepared ( Ignite Internal Tx tx , Set < UUID > failed Node Ids ) { assert tx instanceof Grid Dht Tx Local || tx instanceof Grid Dht Tx Remote : tx ; assert ! F . is Empty ( tx . transaction Nodes ( ) ) : tx ; assert tx . near Xid Version ( ) != null : tx ; Grid Cache Tx Recovery Future fut = new ... | public void commitIfPrepared ( IgniteInternalTx tx , Set < UUID > failedNodeIds ) { assert tx instanceof GridDhtTxLocal || tx instanceof GridDhtTxRemote : tx ; assert ! F . isEmpty ( tx . transactionNodes ( ) ) : tx ; assert tx . nearXidVersion ( ) != null : tx ; GridCacheTxRecoveryFuture fut = new GridCacheTxRecoveryF... | 148 |
java-test-11019 | java | What does the code create ? | a test alivetimer for a subequipment | public static Control Tag Cache Object create Test Sub Equipment Alive ( ) { Control Tag Cache Object cache Object = new Control Tag Cache Object ( new Long ( NUM ) , STRING , STRING , Data Tag Constants . MODE TEST ) ; cache Object . set Description ( STRING ) ; cache Object . set Logged ( BOOL ) ; cache Object . set ... | public static ControlTagCacheObject createTestSubEquipmentAlive ( ) { ControlTagCacheObject cacheObject = new ControlTagCacheObject ( new Long ( _NUM ) , STRING , STRING , DataTagConstants . MODE_TEST ) ; cacheObject . setDescription ( STRING ) ; cacheObject . setLogged ( _BOOL ) ; cacheObject . setUnit ( STRING ) ; ca... | 266 |
java-test-11020 | java | What does the code add when ? | the specified amount the specified field | @ Override public void roll ( int field , int value ) { if ( value == NUM ) { return ; } if ( field < NUM || field >= ZONE OFFSET ) { throw new Illegal Argument Exception ( ) ; } complete ( ) ; int days , day , mod , max Weeks , new Week ; int max = - NUM ; switch ( field ) { case YEAR : max = maximums [ field ] ; brea... | @ Override public void roll ( int field , int value ) { if ( value == _NUM ) { return ; } if ( field < _NUM || field >= ZONE_OFFSET ) { throw new IllegalArgumentException ( ) ; } complete ( ) ; int days , day , mod , maxWeeks , newWeek ; int max = - _NUM ; switch ( field ) { case YEAR : max = maximums [ field ] ; break... | 769 |
java-test-11021 | java | What does the code create in the database ? | a new type instance reference | public static void create Type Instance Reference ( final Connection connection , final int module Id , final long address , final int position , final int expression Id , final int type Instance Id ) throws Couldnt Save Data Exception { Preconditions . check Not Null ( connection , STRING ) ; Preconditions . check Arg... | public static void createTypeInstanceReference ( final Connection connection , final int moduleId , final long address , final int position , final int expressionId , final int typeInstanceId ) throws CouldntSaveDataException { Preconditions . checkNotNull ( connection , STRING ) ; Preconditions . checkArgument ( modul... | 219 |
java-test-11023 | java | What does the code build ? | the visual representation of this entity | @ Override protected void build Representation ( I Entity entity ) { final Sprite Store store = Sprite Store . get ( ) ; Zone Info info = Zone Info . get ( ) ; Sprite sprite = store . get Modified Sprite ( translate ( get Class Resource Path ( ) ) , info . get Zone Color ( ) , info . get Color Method ( ) ) ; int width ... | @ Override protected void buildRepresentation ( IEntity entity ) { final SpriteStore store = SpriteStore . get ( ) ; ZoneInfo info = ZoneInfo . get ( ) ; Sprite sprite = store . getModifiedSprite ( translate ( getClassResourcePath ( ) ) , info . getZoneColor ( ) , info . getColorMethod ( ) ) ; int width = ( int ) entit... | 192 |
java-test-11024 | java | How does the pluscal code call this currently ? | only with replace = true and outputvec = null | public static void Find Matching Brace ( Vector input Vec , Int Pair cur Loc , String error Msg ) throws Parse Algorithm Exception { cur Loc . two ++ ; while ( cur Loc . one < input Vec . size ( ) ) { String cur Line = ( String ) input Vec . element At ( cur Loc . one ) ; while ( cur Loc . two < cur Line . length ( ) )... | public static void FindMatchingBrace ( Vector inputVec , IntPair curLoc , String errorMsg ) throws ParseAlgorithmException { curLoc . two ++ ; while ( curLoc . one < inputVec . size ( ) ) { String curLine = ( String ) inputVec . elementAt ( curLoc . one ) ; while ( curLoc . two < curLine . length ( ) ) { curLoc . two =... | 386 |
java-test-11025 | java | When does it update curloc to the position if it ' s found ? | immediately after the token | public static void Find Matching Brace ( Vector input Vec , Int Pair cur Loc , String error Msg ) throws Parse Algorithm Exception { cur Loc . two ++ ; while ( cur Loc . one < input Vec . size ( ) ) { String cur Line = ( String ) input Vec . element At ( cur Loc . one ) ; while ( cur Loc . two < cur Line . length ( ) )... | public static void FindMatchingBrace ( Vector inputVec , IntPair curLoc , String errorMsg ) throws ParseAlgorithmException { curLoc . two ++ ; while ( curLoc . one < inputVec . size ( ) ) { String curLine = ( String ) inputVec . elementAt ( curLoc . one ) ; while ( curLoc . two < curLine . length ( ) ) { curLoc . two =... | 386 |
java-test-11026 | java | Where be actions performed ? | on the node | @ Override public void mouse Clicked ( Mouse Event me ) { int x , y ; Rectangle r = new Rectangle ( NUM , NUM , ( int ) ( m n Padded Node Width * m f Scale ) , ( int ) ( m n Node Height * m f Scale ) ) ; x = me . get X ( ) ; y = me . get Y ( ) ; for ( int i Node = NUM ; i Node < m Bayes Net . get Nr Of Nodes ( ) ; i No... | @ Override public void mouseClicked ( MouseEvent me ) { int x , y ; Rectangle r = new Rectangle ( _NUM , _NUM , ( int ) ( m_nPaddedNodeWidth * m_fScale ) , ( int ) ( m_nNodeHeight * m_fScale ) ) ; x = me . getX ( ) ; y = me . getY ( ) ; for ( int iNode = _NUM ; iNode < m_BayesNet . getNrOfNodes ( ) ; iNode ++ ) { r . x... | 364 |
java-test-11028 | java | What does the code add to the filter ? | a new raw value | @ Override public double apply ( double sample ) { if ( cutoff Freq Factor <= NUM ) { return sample ; } double element 0 = sample - elements [ NUM ] * a1 - elements [ NUM ] * a2 ; if ( Double . is Na N ( element 0 ) ) { element 0 = sample ; } double output = element 0 * b0 + elements [ NUM ] * b1 + elements [ NUM ] * b... | @ Override public double apply ( double sample ) { if ( cutoffFreqFactor <= _NUM ) { return sample ; } double element_0 = sample - elements [ _NUM ] * a1 - elements [ _NUM ] * a2 ; if ( Double . isNaN ( element_0 ) ) { element_0 = sample ; } double output = element_0 * b0 + elements [ _NUM ] * b1 + elements [ _NUM ] * ... | 106 |
java-test-11033 | java | What does the code write ? | the initial clustering changes to a file | public final void print Initial Clustering Changes ( File file , List < Cluster Data > cluster Data , int [ ] mat Index To Msg Internal Id ) throws Ade Usage Exception { if ( m initial Clusters == null ) { return ; } final Print Writer out = File Utils . open Print Writer To File ( file , BOOL ) ; if ( m final Clusters... | public final void printInitialClusteringChanges ( File file , List < ClusterData > clusterData , int [ ] matIndexToMsgInternalId ) throws AdeUsageException { if ( m_initialClusters == null ) { return ; } final PrintWriter out = FileUtils . openPrintWriterToFile ( file , _BOOL ) ; if ( m_finalClusters == null ) { update... | 441 |
java-test-11034 | java | What does the code add to favorites if applicable ? | the pokemon | private void add Pokemon To Favs ( Poke Model poke Model , Array List < Integer > list Of Fav Pokemon ) { if ( poke Model != null && list Of Fav Pokemon != null ) { int poke Num = poke Model . get Pokedex Num ( ) ; if ( list Of Fav Pokemon . contains ( poke Num ) ) { Typeface Utils . display Toast ( m Context , get Str... | private void addPokemonToFavs ( PokeModel pokeModel , ArrayList < Integer > listOfFavPokemon ) { if ( pokeModel != null && listOfFavPokemon != null ) { int pokeNum = pokeModel . getPokedexNum ( ) ; if ( listOfFavPokemon . contains ( pokeNum ) ) { TypefaceUtils . displayToast ( mContext , getString ( R . string . redund... | 170 |
java-test-11036 | java | When can this method be called only ? | once the workbench has been started | private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } } | private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } } | 55 |
java-test-11037 | java | What is being displayed on the workbench page ? | the perspective | private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } } | private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } } | 55 |
java-test-11038 | java | Where is the perspective being displayed ? | on the workbench page | private void maybe Add New Wizard Actions To Perspective ( Workbench Page page , I Perspective Descriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES TO ADD WIZARDS TO . contains ( desc . get Id ( ) ) ) { } } | private void maybeAddNewWizardActionsToPerspective ( WorkbenchPage page , IPerspectiveDescriptor desc ) { if ( page == null || desc == null ) { return ; } if ( PERSPECTIVES_TO_ADD_WIZARDS_TO . contains ( desc . getId ( ) ) ) { } } | 55 |
java-test-11045 | java | What have the given protocol ? | initiators from list | private void clear Initiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . has Next ( ) ) { Initiator initiator = iterator . next ( ) ; if ( String Utils . equals ( initiator . get Protocol ( ) , protocol ) ) { iterator . remove (... | private void clearInitiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . hasNext ( ) ) { Initiator initiator = iterator . next ( ) ; if ( StringUtils . equals ( initiator . getProtocol ( ) , protocol ) ) { iterator . remove ( ) ;... | 73 |
java-test-11046 | java | What do initiators from list have ? | the given protocol | private void clear Initiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . has Next ( ) ) { Initiator initiator = iterator . next ( ) ; if ( String Utils . equals ( initiator . get Protocol ( ) , protocol ) ) { iterator . remove (... | private void clearInitiators ( List < Initiator > initiators , String protocol ) { Iterator < Initiator > iterator = initiators . iterator ( ) ; while ( iterator . hasNext ( ) ) { Initiator initiator = iterator . next ( ) ; if ( StringUtils . equals ( initiator . getProtocol ( ) , protocol ) ) { iterator . remove ( ) ;... | 73 |
java-test-11051 | java | What does the code create ? | a vao for the scene with some boxes | void create Vao ( ) { vao = gl Gen Vertex Arrays ( ) ; int vbo = gl Gen Buffers ( ) ; gl Bind Vertex Array ( vao ) ; gl Bind Buffer ( GL ARRAY BUFFER , vbo ) ; Byte Buffer bb = Buffer Utils . create Byte Buffer ( boxes . length * NUM * ( NUM + NUM ) * NUM * NUM ) ; Float Buffer fv = bb . as Float Buffer ( ) ; for ( int... | void createVao ( ) { vao = glGenVertexArrays ( ) ; int vbo = glGenBuffers ( ) ; glBindVertexArray ( vao ) ; glBindBuffer ( GL_ARRAY_BUFFER , vbo ) ; ByteBuffer bb = BufferUtils . createByteBuffer ( boxes . length * _NUM * ( _NUM + _NUM ) * _NUM * _NUM ) ; FloatBuffer fv = bb . asFloatBuffer ( ) ; for ( int i = _NUM ; i... | 228 |
java-test-11064 | java | What does this method ask ? | a file size in bytes | public long file Size ( String path ) throws Illegal State Exception , IO Exception , FTP Illegal Reply Exception , FTP Exception { synchronized ( lock ) { if ( ! connected ) { throw new Illegal State Exception ( STRING ) ; } if ( ! authenticated ) { throw new Illegal State Exception ( STRING ) ; } communication . send... | public long fileSize ( String path ) throws IllegalStateException , IOException , FTPIllegalReplyException , FTPException { synchronized ( lock ) { if ( ! connected ) { throw new IllegalStateException ( STRING ) ; } if ( ! authenticated ) { throw new IllegalStateException ( STRING ) ; } communication . sendFTPCommand (... | 226 |
java-test-11067 | java | What does the code calculate ? | the new message lambda value | @ Override public void process Properties ( ) throws Ade Usage Exception { if ( m new Message Mean Num Appear <= NUM ) { throw new Ade Usage Exception ( STRING + NEW MESSAGE EXPECTED MEAN + STRING ) ; } m new Message Lambda = Math . log ( m new Message Mean Num Appear ) ; } | @ Override public void processProperties ( ) throws AdeUsageException { if ( m_newMessageMeanNumAppear <= _NUM ) { throw new AdeUsageException ( STRING + NEW_MESSAGE_EXPECTED_MEAN + STRING ) ; } m_newMessageLambda = Math . log ( m_newMessageMeanNumAppear ) ; } | 60 |
java-test-11068 | java | What does the code use it ? | to calculate the new message lambda value | @ Override public void process Properties ( ) throws Ade Usage Exception { if ( m new Message Mean Num Appear <= NUM ) { throw new Ade Usage Exception ( STRING + NEW MESSAGE EXPECTED MEAN + STRING ) ; } m new Message Lambda = Math . log ( m new Message Mean Num Appear ) ; } | @ Override public void processProperties ( ) throws AdeUsageException { if ( m_newMessageMeanNumAppear <= _NUM ) { throw new AdeUsageException ( STRING + NEW_MESSAGE_EXPECTED_MEAN + STRING ) ; } m_newMessageLambda = Math . log ( m_newMessageMeanNumAppear ) ; } | 60 |
java-test-11069 | java | What has the correct format ( camelcase and begin with ' m ' ) ? | an instance variable | private boolean instance Variable Correct Format ( String name ) { return name . starts With ( STRING ) && Character . is Upper Case ( name . char At ( NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; } | private boolean instanceVariableCorrectFormat ( String name ) { return name . startsWith ( STRING ) && Character . isUpperCase ( name . charAt ( _NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; } | 52 |
java-test-11070 | java | What do an instance variable have ? | the correct format ( camelcase and begin with ' m ' ) | private boolean instance Variable Correct Format ( String name ) { return name . starts With ( STRING ) && Character . is Upper Case ( name . char At ( NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; } | private boolean instanceVariableCorrectFormat ( String name ) { return name . startsWith ( STRING ) && Character . isUpperCase ( name . charAt ( _NUM ) ) && ! name . contains ( STRING ) && ! name . contains ( STRING ) ; } | 52 |
java-test-11072 | java | What does the code throw ? | ioexception { extended precision ieee floating - point conversion routine | private void write ieee extended ( Data Output Stream dos , double f ) throws IO Exception { int exponent = NUM ; double high Mantissa = f ; while ( high Mantissa < NUM ) { high Mantissa *= NUM ; exponent -- ; } dos . write Short ( exponent ) ; dos . write Int ( ( ( int ) high Mantissa ) << NUM ) ; dos . write Int ( NU... | private void write_ieee_extended ( DataOutputStream dos , double f ) throws IOException { int exponent = _NUM ; double highMantissa = f ; while ( highMantissa < _NUM ) { highMantissa *= _NUM ; exponent -- ; } dos . writeShort ( exponent ) ; dos . writeInt ( ( ( int ) highMantissa ) << _NUM ) ; dos . writeInt ( _NUM ) ;... | 79 |
java-test-11073 | java | What represents a valid number ? | the string parameter | public static boolean is Number ( String string ) { final String Digits = STRING ; final String Hex Digits = STRING ; final String Exp = STRING + Digits ; final String fp Regex = ( STRING + STRING + STRING + STRING + STRING + Digits + STRING + Digits + STRING + Exp + STRING + STRING + Digits + STRING + Exp + STRING + S... | public static boolean isNumber ( String string ) { final String Digits = STRING ; final String HexDigits = STRING ; final String Exp = STRING + Digits ; final String fpRegex = ( STRING + STRING + STRING + STRING + STRING + Digits + STRING + Digits + STRING + Exp + STRING + STRING + Digits + STRING + Exp + STRING + STRI... | 113 |
java-test-11074 | java | What does the code compare with another attribute object ? | the current attribute object | public boolean equals ( Object object ) { if ( ! ( object instanceof Attribute ) ) { return BOOL ; } Attribute val = ( Attribute ) object ; if ( value == null ) { if ( val . get Value ( ) == null ) { return name . equals ( val . get Name ( ) ) ; } else { return BOOL ; } } return ( ( name . equals ( val . get Name ( ) )... | public boolean equals ( Object object ) { if ( ! ( object instanceof Attribute ) ) { return _BOOL ; } Attribute val = ( Attribute ) object ; if ( value == null ) { if ( val . getValue ( ) == null ) { return name . equals ( val . getName ( ) ) ; } else { return _BOOL ; } } return ( ( name . equals ( val . getName ( ) ) ... | 102 |
java-test-11075 | java | When is this called ? | when a cell was removed from the model | protected void remove State For Cell ( Object cell ) { int child Count = model . get Child Count ( cell ) ; for ( int i = NUM ; i < child Count ; i ++ ) { remove State For Cell ( model . get Child At ( cell , i ) ) ; } view . remove State ( cell ) ; } | protected void removeStateForCell ( Object cell ) { int childCount = model . getChildCount ( cell ) ; for ( int i = _NUM ; i < childCount ; i ++ ) { removeStateForCell ( model . getChildAt ( cell , i ) ) ; } view . removeState ( cell ) ; } | 67 |
java-test-11076 | java | For what purpose does an iterator take also ? | to remove items from the map | private void deselect ( int position , Iterator < Integer > entries ) { Item item = get Item ( position ) ; if ( item != null ) { item . with Set Selected ( BOOL ) ; } if ( entries == null ) { if ( m Position Based State Management ) { if ( m Selections . contains ( position ) ) { m Selections . remove ( position ) ; }... | private void deselect ( int position , Iterator < Integer > entries ) { Item item = getItem ( position ) ; if ( item != null ) { item . withSetSelected ( _BOOL ) ; } if ( entries == null ) { if ( mPositionBasedStateManagement ) { if ( mSelections . contains ( position ) ) { mSelections . remove ( position ) ; } } } els... | 116 |
java-test-11077 | java | What is the code create ? | a default title for pull request < p / > if there is only one commit , use its subject | public String create Default Title ( final List < Git Commit > commits , final String source Branch Name , final String target Branch Name ) { if ( commits == null || commits . is Empty ( ) ) { return String Utils . EMPTY ; } if ( commits . size ( ) == NUM ) { final Git Commit commit = commits . get ( NUM ) ; final Str... | public String createDefaultTitle ( final List < GitCommit > commits , final String sourceBranchName , final String targetBranchName ) { if ( commits == null || commits . isEmpty ( ) ) { return StringUtils . EMPTY ; } if ( commits . size ( ) == _NUM ) { final GitCommit commit = commits . get ( _NUM ) ; final String comm... | 171 |
java-test-11078 | java | How did this stream encode ? | as utf | public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt... | public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; } | 87 |
java-test-11079 | java | What does the code create ? | a heapdataoutputstream optimized to contain just the specified string | public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt... | public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; } | 87 |
java-test-11080 | java | What did a heapdataoutputstream contain ? | just the specified string | public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt... | public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; } | 87 |
java-test-11081 | java | What did a heapdataoutputstream optimize ? | to contain just the specified string | public Heap Data Output Stream ( String s ) { int max Str Bytes ; if ( ASCII STRINGS ) { max Str Bytes = s . length ( ) ; } else { max Str Bytes = s . length ( ) * NUM ; } this . MIN CHUNK SIZE = INITIAL CAPACITY ; this . buffer = Byte Buffer . allocate ( max Str Bytes ) ; this . do Not Copy = BOOL ; write UTF No Lengt... | public HeapDataOutputStream ( String s ) { int maxStrBytes ; if ( ASCII_STRINGS ) { maxStrBytes = s . length ( ) ; } else { maxStrBytes = s . length ( ) * _NUM ; } this . MIN_CHUNK_SIZE = INITIAL_CAPACITY ; this . buffer = ByteBuffer . allocate ( maxStrBytes ) ; this . doNotCopy = _BOOL ; writeUTFNoLength ( s ) ; } | 87 |
java-test-11083 | java | What is set to null indicating that there is no current scan ? | the variable currentscan | @ Override public void before First ( ) { current Scan = null ; s1 . before First ( ) ; has More 1 = s1 . next ( ) ; if ( s2 != null ) { s2 . before First ( ) ; has More 2 = s2 . next ( ) ; } } | @ Override public void beforeFirst ( ) { currentScan = null ; s1 . beforeFirst ( ) ; hasMore1 = s1 . next ( ) ; if ( s2 != null ) { s2 . beforeFirst ( ) ; hasMore2 = s2 . next ( ) ; } } | 57 |
java-test-11084 | java | What handles three arrays ? | a modified version of the jdk sort | public static void sort ( final Common Index x , final long off , final long len , final Swapper swapper ) { if ( len < NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - NUM ) ; } } return ; } long m = off + ( len ... | public static void sort ( final CommonIndex x , final long off , final long len , final Swapper swapper ) { if ( len < _NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - _NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - _NUM ) ; } } return ; } long m = off + ( le... | 486 |
java-test-11085 | java | What do a modified version of the jdk sort handle ? | three arrays | public static void sort ( final Common Index x , final long off , final long len , final Swapper swapper ) { if ( len < NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - NUM ) ; } } return ; } long m = off + ( len ... | public static void sort ( final CommonIndex x , final long off , final long len , final Swapper swapper ) { if ( len < _NUM ) { for ( long i = off ; i < len + off ; i ++ ) { for ( long j = i ; j > off && x . get ( j - _NUM ) > x . get ( j ) ; j -- ) { swapper . swap ( j , j - _NUM ) ; } } return ; } long m = off + ( le... | 486 |
java-test-11086 | java | Where is the gap not located currently ? | at the change location | protected void replace ( int position , int rm Size , Object add Items , int add Size ) { int add Offset = NUM ; if ( add Size == NUM ) { close ( position , rm Size ) ; return ; } else if ( rm Size > add Size ) { close ( position + add Size , rm Size - add Size ) ; } else { int end Size = add Size - rm Size ; int end =... | protected void replace ( int position , int rmSize , Object addItems , int addSize ) { int addOffset = _NUM ; if ( addSize == _NUM ) { close ( position , rmSize ) ; return ; } else if ( rmSize > addSize ) { close ( position + addSize , rmSize - addSize ) ; } else { int endSize = addSize - rmSize ; int end = open ( posi... | 140 |
java-test-11087 | java | What do an instance define ? | the yearly rule to create transitions between two offsets | Zone Offset Transition Rule ( int month , int day Of Month Indicator , int day Of Week , Local Time time , boolean time End Of Day , Time Definition time Defnition , Zone Offset standard Offset , Zone Offset offset Before , Zone Offset offset After ) { Objects . require Non Null ( time , STRING ) ; Objects . require No... | ZoneOffsetTransitionRule ( int month , int dayOfMonthIndicator , int dayOfWeek , LocalTime time , boolean timeEndOfDay , TimeDefinition timeDefnition , ZoneOffset standardOffset , ZoneOffset offsetBefore , ZoneOffset offsetAfter ) { Objects . requireNonNull ( time , STRING ) ; Objects . requireNonNull ( timeDefnition ,... | 272 |
java-test-11091 | java | How does a bucket construct ? | with the option of specifying the pivot year for two - digit year parsing | public Date Time Parser Bucket ( long instant Local , Chronology chrono , Locale locale , Integer pivot Year , int default Year ) { super ( ) ; chrono = Date Time Utils . get Chronology ( chrono ) ; i Millis = instant Local ; i Zone = chrono . get Zone ( ) ; i Chrono = chrono . with UTC ( ) ; i Locale = ( locale == nul... | public DateTimeParserBucket ( long instantLocal , Chronology chrono , Locale locale , Integer pivotYear , int defaultYear ) { super ( ) ; chrono = DateTimeUtils . getChronology ( chrono ) ; iMillis = instantLocal ; iZone = chrono . getZone ( ) ; iChrono = chrono . withUTC ( ) ; iLocale = ( locale == null ? Locale . get... | 100 |
java-test-11092 | java | When should this method be called ? | at the end of all customisation method | public void initialise ( ) { m Selected Position = DEFAULT SELECTED POSITION ; m Bottom Navigation Tabs . clear ( ) ; if ( ! m Bottom Navigation Items . is Empty ( ) ) { m Tab Container . remove All Views ( ) ; if ( m Mode == MODE DEFAULT ) { if ( m Bottom Navigation Items . size ( ) <= MIN SIZE ) { m Mode = MODE FIXED... | public void initialise ( ) { mSelectedPosition = DEFAULT_SELECTED_POSITION ; mBottomNavigationTabs . clear ( ) ; if ( ! mBottomNavigationItems . isEmpty ( ) ) { mTabContainer . removeAllViews ( ) ; if ( mMode == MODE_DEFAULT ) { if ( mBottomNavigationItems . size ( ) <= MIN_SIZE ) { mMode = MODE_FIXED ; } else { mMode ... | 474 |
java-test-11093 | java | What does this flag require ? | a parameter of a specified type | public Flag register Required ( final char name Char , final String name , final Class < ? > type , final String usage , final String description ) { return register Required ( Character . value Of ( name Char ) , name , type , usage , description ) ; } | public Flag registerRequired ( final char nameChar , final String name , final Class < ? > type , final String usage , final String description ) { return registerRequired ( Character . valueOf ( nameChar ) , name , type , usage , description ) ; } | 53 |
java-test-11094 | java | What does the code initialize ? | the nn cache | private static void initialize NN Cache ( double [ ] scratch , double [ ] bestd , int [ ] besti ) { final int size = bestd . length ; Arrays . fill ( bestd , Double . POSITIVE INFINITY ) ; Arrays . fill ( besti , - NUM ) ; for ( int x = NUM , p = NUM ; x < size ; x ++ ) { assert ( p == AGNES . triangle Size ( x ) ) ; d... | private static void initializeNNCache ( double [ ] scratch , double [ ] bestd , int [ ] besti ) { final int size = bestd . length ; Arrays . fill ( bestd , Double . POSITIVE_INFINITY ) ; Arrays . fill ( besti , - _NUM ) ; for ( int x = _NUM , p = _NUM ; x < size ; x ++ ) { assert ( p == AGNES . triangleSize ( x ) ) ; d... | 184 |
java-test-11096 | java | What reset itself through the static block in components ? | addon | private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } } | private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } } | 52 |
java-test-11097 | java | How do addon reset itself through the static block ? | in components | private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } } | private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } } | 52 |
java-test-11098 | java | Why will the addon not reinitialize ? | because addon reset itself through the static block in components and the classes do not get reloaded | private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } } | private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } } | 52 |
java-test-11099 | java | What did this mean ? | component . updateui will fail because it will not find its ui . < p / > this method ensures lookandfeeladdons get re - initialized if needed . it must be called in every component updateui methods | private static synchronized void maybe Initialize ( ) { if ( current Addon != null ) { UI Manager . get Look And Feel Defaults ( ) ; if ( ! UI Manager . get Boolean ( APPCONTEXT INITIALIZED ) ) { set Addon ( current Addon ) ; } } } | private static synchronized void maybeInitialize ( ) { if ( currentAddon != null ) { UIManager . getLookAndFeelDefaults ( ) ; if ( ! UIManager . getBoolean ( APPCONTEXT_INITIALIZED ) ) { setAddon ( currentAddon ) ; } } } | 52 |
java-test-11100 | java | How does a number string return if possible ? | with no fraction digits | public static String format Integer If Possible ( double value , int number Of Digits , boolean grouping Character ) { if ( Double . is Na N ( value ) ) { return STRING ; } if ( Double . is Infinite ( value ) ) { if ( value < NUM ) { return STRING + FORMAT SYMBOLS . get Infinity ( ) ; } else { return FORMAT SYMBOLS . g... | public static String formatIntegerIfPossible ( double value , int numberOfDigits , boolean groupingCharacter ) { if ( Double . isNaN ( value ) ) { return STRING ; } if ( Double . isInfinite ( value ) ) { if ( value < _NUM ) { return STRING + FORMAT_SYMBOLS . getInfinity ( ) ; } else { return FORMAT_SYMBOLS . getInfinit... | 144 |
java-test-11107 | java | What converts to srgb image ? | data stream | @ Override public Buffered Image JPEG To RGB Image ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { Buffered Image image = null ; Raster ras = JPEG Decoder . get Raster From JPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanup Raster ( ras , pX , pY , component Count ) ; fina... | @ Override public BufferedImage JPEGToRGBImage ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { BufferedImage image = null ; Raster ras = JPEGDecoder . getRasterFromJPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanupRaster ( ras , pX , pY , componentCount ) ; final int w = r... | 140 |
java-test-11108 | java | What do data stream convert ? | to srgb image | @ Override public Buffered Image JPEG To RGB Image ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { Buffered Image image = null ; Raster ras = JPEG Decoder . get Raster From JPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanup Raster ( ras , pX , pY , component Count ) ; fina... | @ Override public BufferedImage JPEGToRGBImage ( final byte [ ] data , final int ww , final int hh , final int pX , final int pY ) { BufferedImage image = null ; Raster ras = JPEGDecoder . getRasterFromJPEG ( data , STRING ) ; if ( ras != null ) { ras = cleanupRaster ( ras , pX , pY , componentCount ) ; final int w = r... | 140 |
java-test-11109 | java | What did the code set ? | the path style ( if any ) stroke - dasharray = " n1 , n2 , . . . " stroke - dashoffset = n | private void path Style Helper ( String style , String offset ) { if ( style == null ) { return ; } if ( style . equals ( STRING ) ) { stroke Paint . set Path Effect ( null ) ; return ; } String Tokenizer st = new String Tokenizer ( style , STRING ) ; int count = st . count Tokens ( ) ; float [ ] intervals = new float ... | private void pathStyleHelper ( String style , String offset ) { if ( style == null ) { return ; } if ( style . equals ( STRING ) ) { strokePaint . setPathEffect ( null ) ; return ; } StringTokenizer st = new StringTokenizer ( style , STRING ) ; int count = st . countTokens ( ) ; float [ ] intervals = new float [ ( coun... | 233 |
java-test-11110 | java | What does the code create in programmer or decoder definition ? | a single pane | public void new Pane ( String name , Element pane , Element model Elem , Roster Entry r ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + name ) ; } Pane Prog Pane p = new Pane Prog Pane ( container , name , pane , cv Model , i Cv Model , variable Model , model Elem , r ) ; pane List . add ( p ) ; } | public void newPane ( String name , Element pane , Element modelElem , RosterEntry r ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + name ) ; } PaneProgPane p = new PaneProgPane ( container , name , pane , cvModel , iCvModel , variableModel , modelElem , r ) ; paneList . add ( p ) ; } | 82 |
java-test-11111 | java | Where does the code create a single pane ? | in programmer or decoder definition | public void new Pane ( String name , Element pane , Element model Elem , Roster Entry r ) { if ( log . is Debug Enabled ( ) ) { log . debug ( STRING + name ) ; } Pane Prog Pane p = new Pane Prog Pane ( container , name , pane , cv Model , i Cv Model , variable Model , model Elem , r ) ; pane List . add ( p ) ; } | public void newPane ( String name , Element pane , Element modelElem , RosterEntry r ) { if ( log . isDebugEnabled ( ) ) { log . debug ( STRING + name ) ; } PaneProgPane p = new PaneProgPane ( container , name , pane , cvModel , iCvModel , variableModel , modelElem , r ) ; paneList . add ( p ) ; } | 82 |
java-test-11112 | java | What does the code create ? | an operation to copy from the original clipboard to the given extent | public Operation copy To ( Extent target ) { Block Transform Extent extent = new Block Transform Extent ( original , transform , world Data . get Block Registry ( ) ) ; Forward Extent Copy copy = new Forward Extent Copy ( extent , original . get Region ( ) , original . get Origin ( ) , target , original . get Origin ( ... | public Operation copyTo ( Extent target ) { BlockTransformExtent extent = new BlockTransformExtent ( original , transform , worldData . getBlockRegistry ( ) ) ; ForwardExtentCopy copy = new ForwardExtentCopy ( extent , original . getRegion ( ) , original . getOrigin ( ) , target , original . getOrigin ( ) ) ; copy . se... | 81 |
java-test-11113 | java | By how much do an operation copy an operation ? | to the given extent | public Operation copy To ( Extent target ) { Block Transform Extent extent = new Block Transform Extent ( original , transform , world Data . get Block Registry ( ) ) ; Forward Extent Copy copy = new Forward Extent Copy ( extent , original . get Region ( ) , original . get Origin ( ) , target , original . get Origin ( ... | public Operation copyTo ( Extent target ) { BlockTransformExtent extent = new BlockTransformExtent ( original , transform , worldData . getBlockRegistry ( ) ) ; ForwardExtentCopy copy = new ForwardExtentCopy ( extent , original . getRegion ( ) , original . getOrigin ( ) , target , original . getOrigin ( ) ) ; copy . se... | 81 |
java-test-11114 | java | What does the code write ? | the given writable as the value of the given attribute name | public void call ( String name , Writable json ) throws IO Exception { write Name ( name ) ; verify Value ( ) ; if ( json instanceof G String ) { writer . write ( Json Output . to Json ( json . to String ( ) ) ) ; } else { json . write To ( writer ) ; } } | public void call ( String name , Writable json ) throws IOException { writeName ( name ) ; verifyValue ( ) ; if ( json instanceof GString ) { writer . write ( JsonOutput . toJson ( json . toString ( ) ) ) ; } else { json . writeTo ( writer ) ; } } | 65 |
java-test-11115 | java | What returns in the given database ? | the mean vectors of the given clusters | protected double [ ] [ ] means With Treshhold ( List < ? extends Modifiable Double DBID List > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] new Means = new double [ k ] [ ] ; for ( int i = NUM ; i < k ; i ++ ) { Double DBID List list = clusters . get ( i ) ; double [ ] raw... | protected double [ ] [ ] meansWithTreshhold ( List < ? extends ModifiableDoubleDBIDList > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] newMeans = new double [ k ] [ ] ; for ( int i = _NUM ; i < k ; i ++ ) { DoubleDBIDList list = clusters . get ( i ) ; double [ ] raw = null... | 234 |
java-test-11116 | java | Where does the mean vectors of the given clusters return ? | in the given database | protected double [ ] [ ] means With Treshhold ( List < ? extends Modifiable Double DBID List > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] new Means = new double [ k ] [ ] ; for ( int i = NUM ; i < k ; i ++ ) { Double DBID List list = clusters . get ( i ) ; double [ ] raw... | protected double [ ] [ ] meansWithTreshhold ( List < ? extends ModifiableDoubleDBIDList > clusters , double [ ] [ ] means , Relation < V > database , Double tresh ) { double [ ] [ ] newMeans = new double [ k ] [ ] ; for ( int i = _NUM ; i < k ; i ++ ) { DoubleDBIDList list = clusters . get ( i ) ; double [ ] raw = null... | 234 |
java-test-11117 | java | What does the code create ? | a new namespace object | public Namespace ( Principal User creator , String qualifier , Principal User owner , Set < Principal User > users ) { super ( creator ) ; set Qualifier ( qualifier ) ; set Owner ( owner ) ; if ( users != null && ! users . is Empty ( ) ) { set Users ( users ) ; } add User ( owner ) ; } | public Namespace ( PrincipalUser creator , String qualifier , PrincipalUser owner , Set < PrincipalUser > users ) { super ( creator ) ; setQualifier ( qualifier ) ; setOwner ( owner ) ; if ( users != null && ! users . isEmpty ( ) ) { setUsers ( users ) ; } addUser ( owner ) ; } | 68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.