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-2317 | java | What do projects use ? | spring data jpa | @ Suppress Warnings ( STRING ) public Repository Query resolve Query ( Method method , Repository Metadata metadata , Named Queries named Queries ) { Query Lookup Strategy query Lookup Strategy = Factory . super . get Query Lookup Strategy ( key , evaluation Context Provider ) ; Method resolve Query = find Method ( Que... | @ SuppressWarnings ( STRING ) public RepositoryQuery resolveQuery ( Method method , RepositoryMetadata metadata , NamedQueries namedQueries ) { QueryLookupStrategy queryLookupStrategy = Factory . super . getQueryLookupStrategy ( key , evaluationContextProvider ) ; Method resolveQuery = findMethod ( QueryLookupStrategy ... | 143 |
java-test-2318 | java | What is using spring data jpa ? | projects | @ Suppress Warnings ( STRING ) public Repository Query resolve Query ( Method method , Repository Metadata metadata , Named Queries named Queries ) { Query Lookup Strategy query Lookup Strategy = Factory . super . get Query Lookup Strategy ( key , evaluation Context Provider ) ; Method resolve Query = find Method ( Que... | @ SuppressWarnings ( STRING ) public RepositoryQuery resolveQuery ( Method method , RepositoryMetadata metadata , NamedQueries namedQueries ) { QueryLookupStrategy queryLookupStrategy = Factory . super . getQueryLookupStrategy ( key , evaluationContextProvider ) ; Method resolveQuery = findMethod ( QueryLookupStrategy ... | 143 |
java-test-2320 | java | What have this manager not need ? | have any previous knowledge of this project | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2321 | java | What not haves any previous knowledge of this project ? | this manager | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2322 | java | When is a project opened ? | now | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2323 | java | What have not need have any previous knowledge of this project ? | this manager | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2324 | java | Where is it not marked ? | offline | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2325 | java | Do this manager have any previous knowledge of this project ? | No | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2326 | java | Will this method need reconnect offline projects ? | No | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2327 | java | What does the code connect to its team foundation server if and only if it is not marked offline ? | the given iproject | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2328 | java | What will this method need not reconnect ? | offline projects | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2329 | java | Have this manager need ? | No | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2330 | java | When is this most useful ? | when a project was closed and is now opened | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2331 | java | What do this manager not have ? | any previous knowledge of this project | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2332 | java | Is it marked offline ? | No | public TFS Repository connect If Necessary ( final I Project project ) { Check . not Null ( project , STRING ) ; wait For Manager Startup ( ) ; Project Repository Data project Data ; synchronized ( project Data Lock ) { project Data = project Data Map . get ( project ) ; if ( project Data == null ) { Boolean should Con... | public TFSRepository connectIfNecessary ( final IProject project ) { Check . notNull ( project , STRING ) ; waitForManagerStartup ( ) ; ProjectRepositoryData projectData ; synchronized ( projectDataLock ) { projectData = projectDataMap . get ( project ) ; if ( projectData == null ) { Boolean shouldConnect = shouldConne... | 299 |
java-test-2335 | java | Why is this not is for exporting ? | as it contains a lot of redundant information | public String to Json ( ) { String Builder result = new String Builder ( ) ; result . append ( STRING ) ; boolean not The First = BOOL ; List < ? > entries = get All Parentless Entries ( ) ; for ( Object entry Uncasted : entries ) { Entry entry = ( Entry ) entry Uncasted ; if ( not The First ) { result . append ( STRIN... | public String toJson ( ) { StringBuilder result = new StringBuilder ( ) ; result . append ( STRING ) ; boolean notTheFirst = _BOOL ; List < ? > entries = getAllParentlessEntries ( ) ; for ( Object entryUncasted : entries ) { Entry entry = ( Entry ) entryUncasted ; if ( notTheFirst ) { result . append ( STRING ) ; } app... | 149 |
java-test-2336 | java | What does it contain ? | a lot of redundant information | public String to Json ( ) { String Builder result = new String Builder ( ) ; result . append ( STRING ) ; boolean not The First = BOOL ; List < ? > entries = get All Parentless Entries ( ) ; for ( Object entry Uncasted : entries ) { Entry entry = ( Entry ) entry Uncasted ; if ( not The First ) { result . append ( STRIN... | public String toJson ( ) { StringBuilder result = new StringBuilder ( ) ; result . append ( STRING ) ; boolean notTheFirst = _BOOL ; List < ? > entries = getAllParentlessEntries ( ) ; for ( Object entryUncasted : entries ) { Entry entry = ( Entry ) entryUncasted ; if ( notTheFirst ) { result . append ( STRING ) ; } app... | 149 |
java-test-2337 | java | What contains the relevant values ? | one level of one branch | private boolean is Contained ( Tree Node parent , String [ ] values , int lvl ) { if ( lvl == values . length ) { return BOOL ; } else if ( lvl > values . length ) { return BOOL ; } else { Vector < Tree Node > kids = parent . children ; int index = search ( kids , values [ lvl ] ) ; if ( index != - NUM ) { Tree Node ne... | private boolean isContained ( TreeNode parent , String [ ] values , int lvl ) { if ( lvl == values . length ) { return _BOOL ; } else if ( lvl > values . length ) { return _BOOL ; } else { Vector < TreeNode > kids = parent . children ; int index = search ( kids , values [ lvl ] ) ; if ( index != - _NUM ) { TreeNode new... | 115 |
java-test-2338 | java | What do one level of one branch contain ? | the relevant values | private boolean is Contained ( Tree Node parent , String [ ] values , int lvl ) { if ( lvl == values . length ) { return BOOL ; } else if ( lvl > values . length ) { return BOOL ; } else { Vector < Tree Node > kids = parent . children ; int index = search ( kids , values [ lvl ] ) ; if ( index != - NUM ) { Tree Node ne... | private boolean isContained ( TreeNode parent , String [ ] values , int lvl ) { if ( lvl == values . length ) { return _BOOL ; } else if ( lvl > values . length ) { return _BOOL ; } else { Vector < TreeNode > kids = parent . children ; int index = search ( kids , values [ lvl ] ) ; if ( index != - _NUM ) { TreeNode new... | 115 |
java-test-2339 | java | Where can you add multiple ? | on long hold views | public void add Long Hold View ( @ Id Res int long Hold View Id , boolean receive Multiple Events ) { long Hold Views . add ( new Long Hold View ( peek View . find View By Id ( long Hold View Id ) , receive Multiple Events ) ) ; } | public void addLongHoldView ( @ IdRes int longHoldViewId , boolean receiveMultipleEvents ) { longHoldViews . add ( new LongHoldView ( peekView . findViewById ( longHoldViewId ) , receiveMultipleEvents ) ) ; } | 54 |
java-test-2340 | java | Where d the code specify i d of view ? | within the peek layout | public void add Long Hold View ( @ Id Res int long Hold View Id , boolean receive Multiple Events ) { long Hold Views . add ( new Long Hold View ( peek View . find View By Id ( long Hold View Id ) , receive Multiple Events ) ) ; } | public void addLongHoldView ( @ IdRes int longHoldViewId , boolean receiveMultipleEvents ) { longHoldViews . add ( new LongHoldView ( peekView . findViewById ( longHoldViewId ) , receiveMultipleEvents ) ) ; } | 54 |
java-test-2341 | java | What d the code specify within the peek layout ? | i d of view | public void add Long Hold View ( @ Id Res int long Hold View Id , boolean receive Multiple Events ) { long Hold Views . add ( new Long Hold View ( peek View . find View By Id ( long Hold View Id ) , receive Multiple Events ) ) ; } | public void addLongHoldView ( @ IdRes int longHoldViewId , boolean receiveMultipleEvents ) { longHoldViews . add ( new LongHoldView ( peekView . findViewById ( longHoldViewId ) , receiveMultipleEvents ) ) ; } | 54 |
java-test-2342 | java | What do a peer consider ? | it unlikely to return | private synchronized boolean should Garbage Collect Peer ( Peer peer ) { Date last Seen = peer . get Last Seen ( ) ; Date now = new Date ( ) ; long ms Since Seen = now . get Time ( ) - last Seen . get Time ( ) ; return ms Since Seen > PEER TIMEOUT ; } | private synchronized boolean shouldGarbageCollectPeer ( Peer peer ) { Date lastSeen = peer . getLastSeen ( ) ; Date now = new Date ( ) ; long msSinceSeen = now . getTime ( ) - lastSeen . getTime ( ) ; return msSinceSeen > PEER_TIMEOUT ; } | 61 |
java-test-2343 | java | What does the code check ? | whether a peer is considered old enough to consider it unlikely to return | private synchronized boolean should Garbage Collect Peer ( Peer peer ) { Date last Seen = peer . get Last Seen ( ) ; Date now = new Date ( ) ; long ms Since Seen = now . get Time ( ) - last Seen . get Time ( ) ; return ms Since Seen > PEER TIMEOUT ; } | private synchronized boolean shouldGarbageCollectPeer ( Peer peer ) { Date lastSeen = peer . getLastSeen ( ) ; Date now = new Date ( ) ; long msSinceSeen = now . getTime ( ) - lastSeen . getTime ( ) ; return msSinceSeen > PEER_TIMEOUT ; } | 61 |
java-test-2345 | java | Where does this method work ? | around the bizarre semantics of bufferedinputstream ' s 122 * read method | protected int read Fully ( Input Stream in , byte buffer [ ] ) throws java . io . IO Exception { for ( int i = NUM ; i < buffer . length ; i ++ ) { int q = in . read ( ) ; if ( q == - NUM ) return i ; buffer [ i ] = ( byte ) q ; } return buffer . length ; } | protected int readFully ( InputStream in , byte buffer [ ] ) throws java . io . IOException { for ( int i = _NUM ; i < buffer . length ; i ++ ) { int q = in . read ( ) ; if ( q == - _NUM ) return i ; buffer [ i ] = ( byte ) q ; } return buffer . length ; } | 75 |
java-test-2346 | java | How do other classes in crud package query multiple records ? | by an i d array | < T > List < T > on Find All ( Class < T > model Class , boolean is Eager , long ... ids ) { List < T > data List ; if ( is Affect All Lines ( ids ) ) { data List = query ( model Class , null , null , null , null , null , STRING , null , get Foreign Key Associations ( model Class . get Name ( ) , is Eager ) ) ; } else ... | < T > List < T > onFindAll ( Class < T > modelClass , boolean isEager , long ... ids ) { List < T > dataList ; if ( isAffectAllLines ( ids ) ) { dataList = query ( modelClass , null , null , null , null , null , STRING , null , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; } else { dataList = que... | 142 |
java-test-2347 | java | What do no ids mean ? | query all rows | < T > List < T > on Find All ( Class < T > model Class , boolean is Eager , long ... ids ) { List < T > data List ; if ( is Affect All Lines ( ids ) ) { data List = query ( model Class , null , null , null , null , null , STRING , null , get Foreign Key Associations ( model Class . get Name ( ) , is Eager ) ) ; } else ... | < T > List < T > onFindAll ( Class < T > modelClass , boolean isEager , long ... ids ) { List < T > dataList ; if ( isAffectAllLines ( ids ) ) { dataList = query ( modelClass , null , null , null , null , null , STRING , null , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; } else { dataList = que... | 142 |
java-test-2348 | java | What means query all rows ? | no ids | < T > List < T > on Find All ( Class < T > model Class , boolean is Eager , long ... ids ) { List < T > data List ; if ( is Affect All Lines ( ids ) ) { data List = query ( model Class , null , null , null , null , null , STRING , null , get Foreign Key Associations ( model Class . get Name ( ) , is Eager ) ) ; } else ... | < T > List < T > onFindAll ( Class < T > modelClass , boolean isEager , long ... ids ) { List < T > dataList ; if ( isAffectAllLines ( ids ) ) { dataList = query ( modelClass , null , null , null , null , null , STRING , null , getForeignKeyAssociations ( modelClass . getName ( ) , isEager ) ) ; } else { dataList = que... | 142 |
java-test-2350 | java | What does the code build from content spec table ? | a vector of valid qnames | private void content Spec Tree ( int content Spec Index , XML Content Spec content Spec , Children List children ) { get Content Spec ( content Spec Index , content Spec ) ; if ( content Spec . type == XML Content Spec . CONTENTSPECNODE LEAF || ( content Spec . type & NUM ) == XML Content Spec . CONTENTSPECNODE ANY || ... | private void contentSpecTree ( int contentSpecIndex , XMLContentSpec contentSpec , ChildrenList children ) { getContentSpec ( contentSpecIndex , contentSpec ) ; if ( contentSpec . type == XMLContentSpec . CONTENTSPECNODE_LEAF || ( contentSpec . type & _NUM ) == XMLContentSpec . CONTENTSPECNODE_ANY || ( contentSpec . ty... | 471 |
java-test-2351 | java | What does the code add to the target consistency group ? | all target volumes ' full copies | public Map < URI , List < URI > > add Target Volume Full Copies ( ) { List < URI > full Copies = Lists . new Array List ( ) ; Map < URI , List < URI > > full Copies Map = new Hash Map < > ( ) ; URI target CG = null ; for ( URI volume Id : uris ( volume Ids ) ) { List < URI > targets = get Targets ( volume Id ) ; for ( ... | public Map < URI , List < URI > > addTargetVolumeFullCopies ( ) { List < URI > fullCopies = Lists . newArrayList ( ) ; Map < URI , List < URI > > fullCopiesMap = new HashMap < > ( ) ; URI targetCG = null ; for ( URI volumeId : uris ( volumeIds ) ) { List < URI > targets = getTargets ( volumeId ) ; for ( URI target : ta... | 195 |
java-test-2353 | java | When did this core have the latest updates ? | when considering the last n updates between it and it ' s peers | public boolean sync ( ) { if ( ulog == null ) { return BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + n Updates ) ; if ( ! ( ulog . get State ( ) == Update Log . State . ACTIVE || ulog . get State ( ) == Update Log . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( s... | public boolean sync ( ) { if ( ulog == null ) { return _BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + nUpdates ) ; if ( ! ( ulog . getState ( ) == UpdateLog . State . ACTIVE || ulog . getState ( ) == UpdateLog . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( start... | 534 |
java-test-2354 | java | What did this core have when considering the last n updates between it and it ' s peers ? | the latest updates | public boolean sync ( ) { if ( ulog == null ) { return BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + n Updates ) ; if ( ! ( ulog . get State ( ) == Update Log . State . ACTIVE || ulog . get State ( ) == Update Log . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( s... | public boolean sync ( ) { if ( ulog == null ) { return _BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + nUpdates ) ; if ( ! ( ulog . getState ( ) == UpdateLog . State . ACTIVE || ulog . getState ( ) == UpdateLog . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( start... | 534 |
java-test-2355 | java | What haves the latest updates when considering the last n updates between it and it ' s peers ? | this core | public boolean sync ( ) { if ( ulog == null ) { return BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + n Updates ) ; if ( ! ( ulog . get State ( ) == Update Log . State . ACTIVE || ulog . get State ( ) == Update Log . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( s... | public boolean sync ( ) { if ( ulog == null ) { return _BOOL ; } log . info ( msg ( ) + STRING + replicas + STRING + nUpdates ) ; if ( ! ( ulog . getState ( ) == UpdateLog . State . ACTIVE || ulog . getState ( ) == UpdateLog . State . REPLAYING ) ) { log . error ( msg ( ) + STRING + ulog ) ; } if ( debug ) { if ( start... | 534 |
java-test-2357 | java | What does the code adopt ? | this affix on a given word | public String handle Word ( String a Word ) { Matcher m = condition Pattern . matcher ( a Word ) ; if ( m != null && m . matches ( ) ) { if ( type . equals ( Affix Type . PREFIX ) ) { return handle Prefix ( a Word ) ; } else if ( type . equals ( Affix Type . SUFFIX ) ) { return handle Suffix ( a Word ) ; } } return nul... | public String handleWord ( String aWord ) { Matcher m = conditionPattern . matcher ( aWord ) ; if ( m != null && m . matches ( ) ) { if ( type . equals ( AffixType . PREFIX ) ) { return handlePrefix ( aWord ) ; } else if ( type . equals ( AffixType . SUFFIX ) ) { return handleSuffix ( aWord ) ; } } return null ; } | 85 |
java-test-2358 | java | Why is candset a set of parent - child pairs ? | because a parent might have multiple references to replicated hops | private void r Probe And Add Hops To Candidate Set ( Hop hop , Hash Set < Hop > probe Set , Hash Set < Pair < Hop , Hop > > cand Set ) { if ( hop . get Visited ( ) == Visit Status . DONE ) return ; if ( hop . get Input ( ) != null ) for ( Hop c : hop . get Input ( ) ) { if ( ! probe Set . contains ( c ) ) r Probe And A... | private void rProbeAndAddHopsToCandidateSet ( Hop hop , HashSet < Hop > probeSet , HashSet < Pair < Hop , Hop > > candSet ) { if ( hop . getVisited ( ) == VisitStatus . DONE ) return ; if ( hop . getInput ( ) != null ) for ( Hop c : hop . getInput ( ) ) { if ( ! probeSet . contains ( c ) ) rProbeAndAddHopsToCandidateSe... | 140 |
java-test-2359 | java | What might a parent have ? | multiple references to replicated hops | private void r Probe And Add Hops To Candidate Set ( Hop hop , Hash Set < Hop > probe Set , Hash Set < Pair < Hop , Hop > > cand Set ) { if ( hop . get Visited ( ) == Visit Status . DONE ) return ; if ( hop . get Input ( ) != null ) for ( Hop c : hop . get Input ( ) ) { if ( ! probe Set . contains ( c ) ) r Probe And A... | private void rProbeAndAddHopsToCandidateSet ( Hop hop , HashSet < Hop > probeSet , HashSet < Pair < Hop , Hop > > candSet ) { if ( hop . getVisited ( ) == VisitStatus . DONE ) return ; if ( hop . getInput ( ) != null ) for ( Hop c : hop . getInput ( ) ) { if ( ! probeSet . contains ( c ) ) rProbeAndAddHopsToCandidateSe... | 140 |
java-test-2361 | java | What do we need if a container sets log path then ? | to mount the log path so that the flume container can access the log file | public static Volume Mount [ ] format Original Container Volume Mount ( Log Draft log Draft ) { List < Volume Mount > volume Mounts = new Array List < > ( ) ; int idx Suffix = NUM ; for ( Log Item Draft log Item Draft : log Draft . get Log Item Drafts ( ) ) { if ( log Item Draft . is Auto Collect ( ) || log Item Draft ... | public static VolumeMount [ ] formatOriginalContainerVolumeMount ( LogDraft logDraft ) { List < VolumeMount > volumeMounts = new ArrayList < > ( ) ; int idxSuffix = _NUM ; for ( LogItemDraft logItemDraft : logDraft . getLogItemDrafts ( ) ) { if ( logItemDraft . isAutoCollect ( ) || logItemDraft . isAutoDelete ( ) ) { V... | 166 |
java-test-2362 | java | What do we mount so that the flume container can access the log file ? | the log path | public static Volume Mount [ ] format Original Container Volume Mount ( Log Draft log Draft ) { List < Volume Mount > volume Mounts = new Array List < > ( ) ; int idx Suffix = NUM ; for ( Log Item Draft log Item Draft : log Draft . get Log Item Drafts ( ) ) { if ( log Item Draft . is Auto Collect ( ) || log Item Draft ... | public static VolumeMount [ ] formatOriginalContainerVolumeMount ( LogDraft logDraft ) { List < VolumeMount > volumeMounts = new ArrayList < > ( ) ; int idxSuffix = _NUM ; for ( LogItemDraft logItemDraft : logDraft . getLogItemDrafts ( ) ) { if ( logItemDraft . isAutoCollect ( ) || logItemDraft . isAutoDelete ( ) ) { V... | 166 |
java-test-2363 | java | For what purpose do we mount the log path ? | so that the flume container can access the log file | public static Volume Mount [ ] format Original Container Volume Mount ( Log Draft log Draft ) { List < Volume Mount > volume Mounts = new Array List < > ( ) ; int idx Suffix = NUM ; for ( Log Item Draft log Item Draft : log Draft . get Log Item Drafts ( ) ) { if ( log Item Draft . is Auto Collect ( ) || log Item Draft ... | public static VolumeMount [ ] formatOriginalContainerVolumeMount ( LogDraft logDraft ) { List < VolumeMount > volumeMounts = new ArrayList < > ( ) ; int idxSuffix = _NUM ; for ( LogItemDraft logItemDraft : logDraft . getLogItemDrafts ( ) ) { if ( logItemDraft . isAutoCollect ( ) || logItemDraft . isAutoDelete ( ) ) { V... | 166 |
java-test-2364 | java | What do a container set ? | log path | public static Volume Mount [ ] format Original Container Volume Mount ( Log Draft log Draft ) { List < Volume Mount > volume Mounts = new Array List < > ( ) ; int idx Suffix = NUM ; for ( Log Item Draft log Item Draft : log Draft . get Log Item Drafts ( ) ) { if ( log Item Draft . is Auto Collect ( ) || log Item Draft ... | public static VolumeMount [ ] formatOriginalContainerVolumeMount ( LogDraft logDraft ) { List < VolumeMount > volumeMounts = new ArrayList < > ( ) ; int idxSuffix = _NUM ; for ( LogItemDraft logItemDraft : logDraft . getLogItemDrafts ( ) ) { if ( logItemDraft . isAutoCollect ( ) || logItemDraft . isAutoDelete ( ) ) { V... | 166 |
java-test-2365 | java | What does the code create ? | a proposal computer for widget attributes based on existing type setter methods | public static I Proposal Computer new Setter Attribute Proposal Computer ( Content Assist Request content Assist Request , I Java Project java Project ) { IDOM Node node = ( IDOM Node ) content Assist Request . get Node ( ) ; if ( node . get Node Type ( ) != IDOM Node . ELEMENT NODE ) { return null ; } String widget Ty... | public static IProposalComputer newSetterAttributeProposalComputer ( ContentAssistRequest contentAssistRequest , IJavaProject javaProject ) { IDOMNode node = ( IDOMNode ) contentAssistRequest . getNode ( ) ; if ( node . getNodeType ( ) != IDOMNode . ELEMENT_NODE ) { return null ; } String widgetTypeName = UiBinderXmlMo... | 149 |
java-test-2366 | java | What does the code invoke on its classpath or boot classpath ? | the jsr308 type annotations compiler with all relevant jars | public int invoke Compiler ( ) { List < String > args = get Exec Arguments ( ) ; for ( int i = NUM ; i < args . size ( ) ; i ++ ) { String arg = args . get ( i ) ; if ( arg . starts With ( STRING ) ) { String file Name = arg . substring ( NUM ) ; args . remove ( i ) ; output Arguments To File ( file Name , args ) ; bre... | public int invokeCompiler ( ) { List < String > args = getExecArguments ( ) ; for ( int i = _NUM ; i < args . size ( ) ; i ++ ) { String arg = args . get ( i ) ; if ( arg . startsWith ( STRING ) ) { String fileName = arg . substring ( _NUM ) ; args . remove ( i ) ; outputArgumentsToFile ( fileName , args ) ; break ; } ... | 124 |
java-test-2367 | java | Where does the code invoke the jsr308 type annotations compiler with all relevant jars ? | on its classpath or boot classpath | public int invoke Compiler ( ) { List < String > args = get Exec Arguments ( ) ; for ( int i = NUM ; i < args . size ( ) ; i ++ ) { String arg = args . get ( i ) ; if ( arg . starts With ( STRING ) ) { String file Name = arg . substring ( NUM ) ; args . remove ( i ) ; output Arguments To File ( file Name , args ) ; bre... | public int invokeCompiler ( ) { List < String > args = getExecArguments ( ) ; for ( int i = _NUM ; i < args . size ( ) ; i ++ ) { String arg = args . get ( i ) ; if ( arg . startsWith ( STRING ) ) { String fileName = arg . substring ( _NUM ) ; args . remove ( i ) ; outputArgumentsToFile ( fileName , args ) ; break ; } ... | 124 |
java-test-2373 | java | What do we need ? | to keep a count of running threads only if we need to shutdown the proxy bridging server at the end in async mode . < p > proxyserver ! = null means we need to shut down server , registered parties means we ' re running in async ( batch ) mode | private synchronized void check Shut Down Proxy Bridge ( ) { if ( proxy Server != null ) { smtp Requests Phaser . arrive And Deregister ( ) ; LOGGER . trace ( STRING , smtp Requests Phaser . get Unarrived Parties ( ) ) ; if ( smtp Requests Phaser . get Unarrived Parties ( ) == NUM ) { LOGGER . trace ( STRING ) ; if ( p... | private synchronized void checkShutDownProxyBridge ( ) { if ( proxyServer != null ) { smtpRequestsPhaser . arriveAndDeregister ( ) ; LOGGER . trace ( STRING , smtpRequestsPhaser . getUnarrivedParties ( ) ) ; if ( smtpRequestsPhaser . getUnarrivedParties ( ) == _NUM ) { LOGGER . trace ( STRING ) ; if ( proxyServer . isR... | 120 |
java-test-2374 | java | What do we keep only if we need to shutdown the proxy bridging server at the end in async mode . <p> proxyserver ! = null means we need to shut down server , registered parties means we ' re running in async ( batch ) mode ? | a count of running threads | private synchronized void check Shut Down Proxy Bridge ( ) { if ( proxy Server != null ) { smtp Requests Phaser . arrive And Deregister ( ) ; LOGGER . trace ( STRING , smtp Requests Phaser . get Unarrived Parties ( ) ) ; if ( smtp Requests Phaser . get Unarrived Parties ( ) == NUM ) { LOGGER . trace ( STRING ) ; if ( p... | private synchronized void checkShutDownProxyBridge ( ) { if ( proxyServer != null ) { smtpRequestsPhaser . arriveAndDeregister ( ) ; LOGGER . trace ( STRING , smtpRequestsPhaser . getUnarrivedParties ( ) ) ; if ( smtpRequestsPhaser . getUnarrivedParties ( ) == _NUM ) { LOGGER . trace ( STRING ) ; if ( proxyServer . isR... | 120 |
java-test-2375 | java | What does the code write to the given buffer ? | the data page info | protected static void write Data Page ( Byte Buffer buffer , Data Page data Page , int tdef Page Number , Jet Format format ) throws IO Exception { buffer . put ( data Page . is Leaf ( ) ? Page Types . INDEX LEAF : Page Types . INDEX NODE ) ; buffer . put ( ( byte ) NUM ) ; buffer . put Short ( ( short ) NUM ) ; buffer... | protected static void writeDataPage ( ByteBuffer buffer , DataPage dataPage , int tdefPageNumber , JetFormat format ) throws IOException { buffer . put ( dataPage . isLeaf ( ) ? PageTypes . INDEX_LEAF : PageTypes . INDEX_NODE ) ; buffer . put ( ( byte ) _NUM ) ; buffer . putShort ( ( short ) _NUM ) ; buffer . putInt ( ... | 329 |
java-test-2376 | java | What does the code remove from the list of background images ? | a background image | protected void remove Background ( Positionable Label b ) { for ( int i = NUM ; i < background Image . size ( ) ; i ++ ) { if ( b == background Image . get ( i ) ) { background Image . remove ( i ) ; set Dirty ( BOOL ) ; return ; } } } | protected void removeBackground ( PositionableLabel b ) { for ( int i = _NUM ; i < backgroundImage . size ( ) ; i ++ ) { if ( b == backgroundImage . get ( i ) ) { backgroundImage . remove ( i ) ; setDirty ( _BOOL ) ; return ; } } } | 62 |
java-test-2377 | java | What does the code create ? | a contact selector with rcs capable contacts | public static Contact List Adapter create Rcs Contact List Adapter ( Context context ) { Content Resolver content = context . get Content Resolver ( ) ; Cursor cursor = null ; Connection Manager api Connection Manager = Connection Manager . get Instance ( ) ; Matrix Cursor matrix = new Matrix Cursor ( PROJECTION PHONE ... | public static ContactListAdapter createRcsContactListAdapter ( Context context ) { ContentResolver content = context . getContentResolver ( ) ; Cursor cursor = null ; ConnectionManager apiConnectionManager = ConnectionManager . getInstance ( ) ; MatrixCursor matrix = new MatrixCursor ( PROJECTION_PHONE ) ; ContactServi... | 530 |
java-test-2383 | java | Where does the code do a region entry containskey to communicate with the server ? | on a server using connections from the given pool | public static boolean execute ( Executable Pool pool , String region , Object key , MODE mode ) { Abstract Op op = new Contains Key Op Impl ( region , key , mode ) ; Boolean result = ( Boolean ) pool . execute ( op ) ; return result . boolean Value ( ) ; } | public static boolean execute ( ExecutablePool pool , String region , Object key , MODE mode ) { AbstractOp op = new ContainsKeyOpImpl ( region , key , mode ) ; Boolean result = ( Boolean ) pool . execute ( op ) ; return result . booleanValue ( ) ; } | 58 |
java-test-2384 | java | What does the code do on a server using connections from the given pool to communicate with the server ? | a region entry containskey | public static boolean execute ( Executable Pool pool , String region , Object key , MODE mode ) { Abstract Op op = new Contains Key Op Impl ( region , key , mode ) ; Boolean result = ( Boolean ) pool . execute ( op ) ; return result . boolean Value ( ) ; } | public static boolean execute ( ExecutablePool pool , String region , Object key , MODE mode ) { AbstractOp op = new ContainsKeyOpImpl ( region , key , mode ) ; Boolean result = ( Boolean ) pool . execute ( op ) ; return result . booleanValue ( ) ; } | 58 |
java-test-2385 | java | What need to be included in the filename to make the filenames ? | the minimum number of parent directories | protected synchronized int determine Minimum Number Of Parent Dirs ( ) { int result ; Hash Set < String > files ; int num ; int i ; int max ; result = - NUM ; max = NUM ; for ( i = NUM ; i < m Recent Items . size ( ) ; i ++ ) max = Math . max ( max , File Utils . get Directory Depth ( m Recent Items . get ( i ) ) ) ; n... | protected synchronized int determineMinimumNumberOfParentDirs ( ) { int result ; HashSet < String > files ; int num ; int i ; int max ; result = - _NUM ; max = _NUM ; for ( i = _NUM ; i < m_RecentItems . size ( ) ; i ++ ) max = Math . max ( max , FileUtils . getDirectoryDepth ( m_RecentItems . get ( i ) ) ) ; num = _NU... | 199 |
java-test-2386 | java | For what purpose do the minimum number of parent directories need to be included in the filename ? | to make the filenames | protected synchronized int determine Minimum Number Of Parent Dirs ( ) { int result ; Hash Set < String > files ; int num ; int i ; int max ; result = - NUM ; max = NUM ; for ( i = NUM ; i < m Recent Items . size ( ) ; i ++ ) max = Math . max ( max , File Utils . get Directory Depth ( m Recent Items . get ( i ) ) ) ; n... | protected synchronized int determineMinimumNumberOfParentDirs ( ) { int result ; HashSet < String > files ; int num ; int i ; int max ; result = - _NUM ; max = _NUM ; for ( i = _NUM ; i < m_RecentItems . size ( ) ; i ++ ) max = Math . max ( max , FileUtils . getDirectoryDepth ( m_RecentItems . get ( i ) ) ) ; num = _NU... | 199 |
java-test-2387 | java | For what purpose does the minimum number of parent directories that need to be included in the filename determine ? | to make the filenames in the menu distinguishable | protected synchronized int determine Minimum Number Of Parent Dirs ( ) { int result ; Hash Set < String > files ; int num ; int i ; int max ; result = - NUM ; max = NUM ; for ( i = NUM ; i < m Recent Items . size ( ) ; i ++ ) max = Math . max ( max , File Utils . get Directory Depth ( m Recent Items . get ( i ) ) ) ; n... | protected synchronized int determineMinimumNumberOfParentDirs ( ) { int result ; HashSet < String > files ; int num ; int i ; int max ; result = - _NUM ; max = _NUM ; for ( i = _NUM ; i < m_RecentItems . size ( ) ; i ++ ) max = Math . max ( max , FileUtils . getDirectoryDepth ( m_RecentItems . get ( i ) ) ) ; num = _NU... | 199 |
java-test-2388 | java | What do the minimum number of parent directories need to make the filenames ? | to be included in the filename | protected synchronized int determine Minimum Number Of Parent Dirs ( ) { int result ; Hash Set < String > files ; int num ; int i ; int max ; result = - NUM ; max = NUM ; for ( i = NUM ; i < m Recent Items . size ( ) ; i ++ ) max = Math . max ( max , File Utils . get Directory Depth ( m Recent Items . get ( i ) ) ) ; n... | protected synchronized int determineMinimumNumberOfParentDirs ( ) { int result ; HashSet < String > files ; int num ; int i ; int max ; result = - _NUM ; max = _NUM ; for ( i = _NUM ; i < m_RecentItems . size ( ) ; i ++ ) max = Math . max ( max , FileUtils . getDirectoryDepth ( m_RecentItems . get ( i ) ) ) ; num = _NU... | 199 |
java-test-2390 | java | When does the code perform the function ? | when the function is complete then the lock unlocked again | private static < T , R > R access Safely ( Lock lock , List < T > list , Function < List < T > , R > list Function ) { final R return Value ; lock . lock ( ) ; try { return Value = list Function . apply ( list ) ; } finally { lock . unlock ( ) ; } return return Value ; } | private static < T , R > R accessSafely ( Lock lock , List < T > list , Function < List < T > , R > listFunction ) { final R returnValue ; lock . lock ( ) ; try { returnValue = listFunction . apply ( list ) ; } finally { lock . unlock ( ) ; } return returnValue ; } | 72 |
java-test-2396 | java | What does the code provide ? | the permission associated to a feature | private String needed Permission For Feature ( String feature ) { String needed Permission = null ; if ( FEATURE KEY PREF CONTACTS . equals ( feature ) ) { needed Permission = Manifest . permission . READ CONTACTS ; } else if ( FEATURE KEY PREF DIALER . equals ( feature ) ) { needed Permission = Manifest . permission .... | private String neededPermissionForFeature ( String feature ) { String neededPermission = null ; if ( FEATURE_KEY_PREF_CONTACTS . equals ( feature ) ) { neededPermission = Manifest . permission . READ_CONTACTS ; } else if ( FEATURE_KEY_PREF_DIALER . equals ( feature ) ) { neededPermission = Manifest . permission . WRITE... | 72 |
java-test-2397 | java | What does the code create ? | a selector of the form $ elementname [ $ attributename = $ attributevalue ] | public static String build Selector From Elements And Attribute Value ( String element Name , String attribute Name , String attribute Value ) { String Builder strb = new String Builder ( ) ; strb . append ( element Name ) ; strb . append ( OPEN BRACKET ) ; strb . append ( attribute Name ) ; strb . append ( EQUAL ) ; s... | public static String buildSelectorFromElementsAndAttributeValue ( String elementName , String attributeName , String attributeValue ) { StringBuilder strb = new StringBuilder ( ) ; strb . append ( elementName ) ; strb . append ( OPEN_BRACKET ) ; strb . append ( attributeName ) ; strb . append ( EQUAL ) ; strb . append ... | 90 |
java-test-2399 | java | What does the code append to the given string buffer ? | a string representation of the progress | @ Override public String Builder append To Buffer ( String Builder buf ) { String processed String = Integer . to String ( get Processed ( ) ) ; int percentage = ( int ) ( get Processed ( ) * NUM / total ) ; buf . append ( get Task ( ) ) ; buf . append ( STRING ) ; for ( int i = NUM ; i < total Length - processed Strin... | @ Override public StringBuilder appendToBuffer ( StringBuilder buf ) { String processedString = Integer . toString ( getProcessed ( ) ) ; int percentage = ( int ) ( getProcessed ( ) * _NUM / total ) ; buf . append ( getTask ( ) ) ; buf . append ( STRING ) ; for ( int i = _NUM ; i < totalLength - processedString . lengt... | 248 |
java-test-2402 | java | What does the code find ? | the best - suited size that is close to the supplied reference size ( and its aspect ratio ) which the camera can deliver for the selected image format | protected Size find Matching Size ( Camera Manager mgr , String cam ID , Class t Class , Size ref Size , float target AR ) throws Camera Access Exception { Camera Characteristics camtype = mgr . get Camera Characteristics ( cam ID ) ; Stream Configuration Map streams = camtype . get ( Camera Characteristics . SCALER ST... | protected Size findMatchingSize ( CameraManager mgr , String camID , Class tClass , Size refSize , float targetAR ) throws CameraAccessException { CameraCharacteristics camtype = mgr . getCameraCharacteristics ( camID ) ; StreamConfigurationMap streams = camtype . get ( CameraCharacteristics . SCALER_STREAM_CONFIGURATI... | 295 |
java-test-2404 | java | What can we use this when the user is done editing a ? | to reset our state | @ Override public void on Finish Input ( ) { super . on Finish Input ( ) ; m Composing . set Length ( NUM ) ; update Candidates ( ) ; set Candidates View Shown ( BOOL ) ; m Cur Keyboard = m Qwerty Keyboard ; if ( m Input View != null ) { m Input View . closing ( ) ; } } | @ Override public void onFinishInput ( ) { super . onFinishInput ( ) ; mComposing . setLength ( _NUM ) ; updateCandidates ( ) ; setCandidatesViewShown ( _BOOL ) ; mCurKeyboard = mQwertyKeyboard ; if ( mInputView != null ) { mInputView . closing ( ) ; } } | 67 |
java-test-2405 | java | When is this called ? | when the user is done editing a field | @ Override public void on Finish Input ( ) { super . on Finish Input ( ) ; m Composing . set Length ( NUM ) ; update Candidates ( ) ; set Candidates View Shown ( BOOL ) ; m Cur Keyboard = m Qwerty Keyboard ; if ( m Input View != null ) { m Input View . closing ( ) ; } } | @ Override public void onFinishInput ( ) { super . onFinishInput ( ) ; mComposing . setLength ( _NUM ) ; updateCandidates ( ) ; setCandidatesViewShown ( _BOOL ) ; mCurKeyboard = mQwertyKeyboard ; if ( mInputView != null ) { mInputView . closing ( ) ; } } | 67 |
java-test-2406 | java | What is the user done when ? | editing a field | @ Override public void on Finish Input ( ) { super . on Finish Input ( ) ; m Composing . set Length ( NUM ) ; update Candidates ( ) ; set Candidates View Shown ( BOOL ) ; m Cur Keyboard = m Qwerty Keyboard ; if ( m Input View != null ) { m Input View . closing ( ) ; } } | @ Override public void onFinishInput ( ) { super . onFinishInput ( ) ; mComposing . setLength ( _NUM ) ; updateCandidates ( ) ; setCandidatesViewShown ( _BOOL ) ; mCurKeyboard = mQwertyKeyboard ; if ( mInputView != null ) { mInputView . closing ( ) ; } } | 67 |
java-test-2407 | java | When can we use this to reset our state ? | when the user is done editing a | @ Override public void on Finish Input ( ) { super . on Finish Input ( ) ; m Composing . set Length ( NUM ) ; update Candidates ( ) ; set Candidates View Shown ( BOOL ) ; m Cur Keyboard = m Qwerty Keyboard ; if ( m Input View != null ) { m Input View . closing ( ) ; } } | @ Override public void onFinishInput ( ) { super . onFinishInput ( ) ; mComposing . setLength ( _NUM ) ; updateCandidates ( ) ; setCandidatesViewShown ( _BOOL ) ; mCurKeyboard = mQwertyKeyboard ; if ( mInputView != null ) { mInputView . closing ( ) ; } } | 67 |
java-test-2408 | java | When is the file offset positioned ? | after the header | public synchronized void create ( long seqno ) throws Replicator Exception , Interrupted Exception { if ( file . exists ( ) ) { throw new THL Exception ( STRING + file . get Name ( ) ) ; } try { data Output = new Buffered File Data Output ( file , buffer Size ) ; } catch ( IO Exception e ) { throw new THL Exception ( S... | public synchronized void create ( long seqno ) throws ReplicatorException , InterruptedException { if ( file . exists ( ) ) { throw new THLException ( STRING + file . getName ( ) ) ; } try { dataOutput = new BufferedFileDataOutput ( file , bufferSize ) ; } catch ( IOException e ) { throw new THLException ( STRING + fil... | 170 |
java-test-2409 | java | What does the code create ? | a new log file | public synchronized void create ( long seqno ) throws Replicator Exception , Interrupted Exception { if ( file . exists ( ) ) { throw new THL Exception ( STRING + file . get Name ( ) ) ; } try { data Output = new Buffered File Data Output ( file , buffer Size ) ; } catch ( IO Exception e ) { throw new THL Exception ( S... | public synchronized void create ( long seqno ) throws ReplicatorException , InterruptedException { if ( file . exists ( ) ) { throw new THLException ( STRING + file . getName ( ) ) ; } try { dataOutput = new BufferedFileDataOutput ( file , bufferSize ) ; } catch ( IOException e ) { throw new THLException ( STRING + fil... | 170 |
java-test-2410 | java | What must we write ? | a header with a base sequence number | public synchronized void create ( long seqno ) throws Replicator Exception , Interrupted Exception { if ( file . exists ( ) ) { throw new THL Exception ( STRING + file . get Name ( ) ) ; } try { data Output = new Buffered File Data Output ( file , buffer Size ) ; } catch ( IO Exception e ) { throw new THL Exception ( S... | public synchronized void create ( long seqno ) throws ReplicatorException , InterruptedException { if ( file . exists ( ) ) { throw new THLException ( STRING + file . getName ( ) ) ; } try { dataOutput = new BufferedFileDataOutput ( file , bufferSize ) ; } catch ( IOException e ) { throw new THLException ( STRING + fil... | 170 |
java-test-2416 | java | In which direction does the code initialize a new transaction ? | from the given arguments | public Transaction ( String who , Date when , double amount ) { if ( Double . is Na N ( amount ) || Double . is Infinite ( amount ) ) throw new Illegal Argument Exception ( STRING ) ; this . who = who ; this . when = when ; this . amount = amount ; } | public Transaction ( String who , Date when , double amount ) { if ( Double . isNaN ( amount ) || Double . isInfinite ( amount ) ) throw new IllegalArgumentException ( STRING ) ; this . who = who ; this . when = when ; this . amount = amount ; } | 60 |
java-test-2418 | java | What does the code deserializ from the stream ? | the python object | public static Object deserialize ( Input Stream in ) { Class < ? > cls ; Class < ? > [ ] param Types ; Constructor < ? > constr ; Object [ ] arglist ; Object obj ; Object result ; result = null ; try { cls = Class . for Name ( CLASS PYTHONOBJECTINPUTSTREAM ) ; param Types = new Class [ ] { Input Stream . class } ; cons... | public static Object deserialize ( InputStream in ) { Class < ? > cls ; Class < ? > [ ] paramTypes ; Constructor < ? > constr ; Object [ ] arglist ; Object obj ; Object result ; result = null ; try { cls = Class . forName ( CLASS_PYTHONOBJECTINPUTSTREAM ) ; paramTypes = new Class [ ] { InputStream . class } ; constr = ... | 147 |
java-test-2420 | java | Where did the algorithm specify ? | in section 5 . 2 of rfc 2865 | private static final byte [ ] convert ( byte [ ] value , Direction direction , String secret , Authenticator ra ) throws IO Exception { Message Digest md 5 = null ; try { md 5 = Message Digest . get Instance ( STRING ) ; } catch ( final No Such Algorithm Exception e ) { throw new IO Exception ( e . get Message ( ) ) ; ... | private static final byte [ ] convert ( byte [ ] value , Direction direction , String secret , Authenticator ra ) throws IOException { MessageDigest md5 = null ; try { md5 = MessageDigest . getInstance ( STRING ) ; } catch ( final NoSuchAlgorithmException e ) { throw new IOException ( e . getMessage ( ) ) ; } md5 . upd... | 335 |
java-test-2421 | java | How does the plain text password convert to cipher text ? | according following the algorithm specified in section 5 . 2 of rfc 2865 | private static final byte [ ] convert ( byte [ ] value , Direction direction , String secret , Authenticator ra ) throws IO Exception { Message Digest md 5 = null ; try { md 5 = Message Digest . get Instance ( STRING ) ; } catch ( final No Such Algorithm Exception e ) { throw new IO Exception ( e . get Message ( ) ) ; ... | private static final byte [ ] convert ( byte [ ] value , Direction direction , String secret , Authenticator ra ) throws IOException { MessageDigest md5 = null ; try { md5 = MessageDigest . getInstance ( STRING ) ; } catch ( final NoSuchAlgorithmException e ) { throw new IOException ( e . getMessage ( ) ) ; } md5 . upd... | 335 |
java-test-2422 | java | What does this method add to the general list ? | the ocsp basic ocspresponses | private void load ( final Input Stream input Stream ) { try { final OCSP Resp ocsp Resp = new OCSP Resp ( input Stream ) ; final Basic OCSP Resp basic OCSP Resp = ( Basic OCSP Resp ) ocsp Resp . get Response Object ( ) ; ocsp Responses . add ( basic OCSP Resp ) ; } catch ( Exception e ) { throw new DSS Exception ( e ) ... | private void load ( final InputStream inputStream ) { try { final OCSPResp ocspResp = new OCSPResp ( inputStream ) ; final BasicOCSPResp basicOCSPResp = ( BasicOCSPResp ) ocspResp . getResponseObject ( ) ; ocspResponses . add ( basicOCSPResp ) ; } catch ( Exception e ) { throw new DSSException ( e ) ; } } | 76 |
java-test-2427 | java | What does an encrypt method return ? | an encrypted byte - array | public static byte [ ] encrypt ( byte [ ] input , String key , String algorithm , byte [ ] iv Or Salt , int iterations ) throws Page Exception { return crypt ( input , key , algorithm , iv Or Salt , iterations , BOOL ) ; } | public static byte [ ] encrypt ( byte [ ] input , String key , String algorithm , byte [ ] ivOrSalt , int iterations ) throws PageException { return crypt ( input , key , algorithm , ivOrSalt , iterations , _BOOL ) ; } | 51 |
java-test-2428 | java | What does the code create ? | a callout for last paid date less than the next payment date | public String validate Last Paid Date ( Properties ctx , int Window No , Grid Tab m Tab , Grid Field m Field , Object value ) { if ( is Callout Active ( ) || value == null ) return STRING ; I HR Employee Insurance employee Insurance = Grid Tab Wrapper . create ( m Tab , I HR Employee Insurance . class ) ; Timestamp pay... | public String validateLastPaidDate ( Properties ctx , int WindowNo , GridTab mTab , GridField mField , Object value ) { if ( isCalloutActive ( ) || value == null ) return STRING ; I_HR_EmployeeInsurance employeeInsurance = GridTabWrapper . create ( mTab , I_HR_EmployeeInsurance . class ) ; Timestamp payDate = employeeI... | 189 |
java-test-2429 | java | What does this method create ? | api gateway endpoints | public void deploy Endpoints ( ) throws IO Exception { if ( log != null ) { log . info ( STRING ) ; } List < Resource > resources = get Resources ( ) ; if ( log != null ) { log . info ( resources . size ( ) + STRING ) ; } create Or Update Api ( ) ; walk Through Resources ( resources ) ; create Deployment ( ) ; } | public void deployEndpoints ( ) throws IOException { if ( log != null ) { log . info ( STRING ) ; } List < Resource > resources = getResources ( ) ; if ( log != null ) { log . info ( resources . size ( ) + STRING ) ; } createOrUpdateApi ( ) ; walkThroughResources ( resources ) ; createDeployment ( ) ; } | 77 |
java-test-2430 | java | What does this method scan for jax - rs annotations ? | the compiled jar package | public void deploy Endpoints ( ) throws IO Exception { if ( log != null ) { log . info ( STRING ) ; } List < Resource > resources = get Resources ( ) ; if ( log != null ) { log . info ( resources . size ( ) + STRING ) ; } create Or Update Api ( ) ; walk Through Resources ( resources ) ; create Deployment ( ) ; } | public void deployEndpoints ( ) throws IOException { if ( log != null ) { log . info ( STRING ) ; } List < Resource > resources = getResources ( ) ; if ( log != null ) { log . info ( resources . size ( ) + STRING ) ; } createOrUpdateApi ( ) ; walkThroughResources ( resources ) ; createDeployment ( ) ; } | 77 |
java-test-2431 | java | What does the code get to linked hash map ? | collector | public static < T , K , U > Collector < Simple Entry < K , U > , ? , Linked Hash Map < K , U > > entry To Linked Map ( ) { return Collectors . to Map ( null , null , null , null ) ; } | public static < T , K , U > Collector < SimpleEntry < K , U > , ? , LinkedHashMap < K , U > > entryToLinkedMap ( ) { return Collectors . toMap ( null , null , null , null ) ; } | 53 |
java-test-2436 | java | What is containing the standard and extended metadata ? | the file names | @ Override public void import Entity ( Map request Data ) throws AM Console Exception { try { String standard File = ( String ) request Data . get ( STANDARD META ) ; if ( standard File == null ) { throw new AM Console Exception ( STRING ) ; } standard Meta Data = Task . get Content ( standard File , get User Locale ( ... | @ Override public void importEntity ( Map requestData ) throws AMConsoleException { try { String standardFile = ( String ) requestData . get ( STANDARD_META ) ; if ( standardFile == null ) { throw new AMConsoleException ( STRING ) ; } standardMetaData = Task . getContent ( standardFile , getUserLocale ( ) ) ; String pr... | 269 |
java-test-2437 | java | What do the file names contain ? | the standard and extended metadata | @ Override public void import Entity ( Map request Data ) throws AM Console Exception { try { String standard File = ( String ) request Data . get ( STANDARD META ) ; if ( standard File == null ) { throw new AM Console Exception ( STRING ) ; } standard Meta Data = Task . get Content ( standard File , get User Locale ( ... | @ Override public void importEntity ( Map requestData ) throws AMConsoleException { try { String standardFile = ( String ) requestData . get ( STANDARD_META ) ; if ( standardFile == null ) { throw new AMConsoleException ( STRING ) ; } standardMetaData = Task . getContent ( standardFile , getUserLocale ( ) ) ; String pr... | 269 |
java-test-2438 | java | How does the code throw an exception ? | with explicit message | static void throw If Argument To Long ( String tag , String arg , int limit ) { if ( arg != null && arg . length ( ) > limit ) { throw new Illegal Argument Exception ( String . format ( STRING , tag , limit ) ) ; } } | static void throwIfArgumentToLong ( String tag , String arg , int limit ) { if ( arg != null && arg . length ( ) > limit ) { throw new IllegalArgumentException ( String . format ( STRING , tag , limit ) ) ; } } | 53 |
java-test-2448 | java | How does segments for a table return ? | in reverse sequence order | private Array List < Segment 10 > table Segments ( Table Entry 10 table ) { Array List < Segment 10 > table Segments = new Array List < > ( ) ; for ( Segment 10 segment : segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { table Segments . add ( segment ) ; } } Collections . sort ( table Segme... | private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ... | 87 |
java-test-2449 | java | What minimizes extra pages reads because older pages don ' t need to be read ? | the reverse order | private Array List < Segment 10 > table Segments ( Table Entry 10 table ) { Array List < Segment 10 > table Segments = new Array List < > ( ) ; for ( Segment 10 segment : segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { table Segments . add ( segment ) ; } } Collections . sort ( table Segme... | private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ... | 87 |
java-test-2450 | java | What does the reverse order minimize because older pages don ' t need to be read ? | extra pages reads | private Array List < Segment 10 > table Segments ( Table Entry 10 table ) { Array List < Segment 10 > table Segments = new Array List < > ( ) ; for ( Segment 10 segment : segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { table Segments . add ( segment ) ; } } Collections . sort ( table Segme... | private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ... | 87 |
java-test-2451 | java | Why does the reverse order minimize extra pages reads ? | because older pages don ' t need to be read | private Array List < Segment 10 > table Segments ( Table Entry 10 table ) { Array List < Segment 10 > table Segments = new Array List < > ( ) ; for ( Segment 10 segment : segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { table Segments . add ( segment ) ; } } Collections . sort ( table Segme... | private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList < > ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , null ... | 87 |
java-test-2456 | java | How does the code create a new omelement ? | using either a custombuilder or the default builder mechanism | protected OM Node create Next OM Element ( ) { OM Node new Element = null ; if ( element Level == NUM && custom Builder For Payload != null ) { OM Node parent = last Node ; if ( parent != null && parent . is Complete ( ) ) { parent = ( OM Node ) last Node . get Parent ( ) ; } if ( parent instanceof SOAP Body ) { new El... | protected OMNode createNextOMElement ( ) { OMNode newElement = null ; if ( elementLevel == _NUM && customBuilderForPayload != null ) { OMNode parent = lastNode ; if ( parent != null && parent . isComplete ( ) ) { parent = ( OMNode ) lastNode . getParent ( ) ; } if ( parent instanceof SOAPBody ) { newElement = createWit... | 210 |
java-test-2457 | java | What does the code create using either a custombuilder or the default builder mechanism ? | a new omelement | protected OM Node create Next OM Element ( ) { OM Node new Element = null ; if ( element Level == NUM && custom Builder For Payload != null ) { OM Node parent = last Node ; if ( parent != null && parent . is Complete ( ) ) { parent = ( OM Node ) last Node . get Parent ( ) ; } if ( parent instanceof SOAP Body ) { new El... | protected OMNode createNextOMElement ( ) { OMNode newElement = null ; if ( elementLevel == _NUM && customBuilderForPayload != null ) { OMNode parent = lastNode ; if ( parent != null && parent . isComplete ( ) ) { parent = ( OMNode ) lastNode . getParent ( ) ; } if ( parent instanceof SOAPBody ) { newElement = createWit... | 210 |
java-test-2459 | java | What does the code create ? | new form modpackinitializationpanel | public Modpack Initialization Panel ( Wizard Controller controller , Map wizard Data , Vector < String > versions , String sel Version ) { init Components ( ) ; this . controller = controller ; this . wizard Data = wizard Data ; wizard Data . put ( KEY GAME VERSION , versions ) ; wizard Data . put ( STRING , sel Versio... | public ModpackInitializationPanel ( WizardController controller , Map wizardData , Vector < String > versions , String selVersion ) { initComponents ( ) ; this . controller = controller ; this . wizardData = wizardData ; wizardData . put ( KEY_GAME_VERSION , versions ) ; wizardData . put ( STRING , selVersion ) ; wizar... | 90 |
java-test-2462 | java | How does the * characters in the string replace ? | by a proper regular expression | private static String replace Stars ( String init ) { String Builder builder = new String Builder ( ) ; char [ ] chars = init . to Char Array ( ) ; for ( int i = NUM ; i < chars . length ; i ++ ) { if ( chars [ i ] == STRING && i == NUM && chars . length > NUM && chars [ i + NUM ] == STRING ) { builder . append ( STRIN... | private static String replaceStars ( String init ) { StringBuilder builder = new StringBuilder ( ) ; char [ ] chars = init . toCharArray ( ) ; for ( int i = _NUM ; i < chars . length ; i ++ ) { if ( chars [ i ] == STRING && i == _NUM && chars . length > _NUM && chars [ i + _NUM ] == STRING ) { builder . append ( STRING... | 255 |
java-test-2463 | java | What does the code add ? | a track to this location | public Track add Track ( String name , String type ) { Track track = get Track By Name ( name , type ) ; if ( track == null ) { Id Number ++ ; String id = id + STRING + Integer . to String ( Id Number ) ; log . debug ( STRING , type , get Name ( ) , name , id ) ; track = new Track ( id , name , type , this ) ; register... | public Track addTrack ( String name , String type ) { Track track = getTrackByName ( name , type ) ; if ( track == null ) { _IdNumber ++ ; String id = _id + STRING + Integer . toString ( _IdNumber ) ; log . debug ( STRING , type , getName ( ) , name , id ) ; track = new Track ( id , name , type , this ) ; register ( tr... | 99 |
java-test-2465 | java | What does an incompleteannotationexception indicate ? | that the named element was missing from the specified annotation type | public Incomplete Annotation Exception ( Class < ? extends Annotation > annotation Type , String element Name ) { super ( annotation Type . get Name ( ) + STRING + element Name . to String ( ) ) ; this . annotation Type = annotation Type ; this . element Name = element Name ; } | public IncompleteAnnotationException ( Class < ? extends Annotation > annotationType , String elementName ) { super ( annotationType . getName ( ) + STRING + elementName . toString ( ) ) ; this . annotationType = annotationType ; this . elementName = elementName ; } | 57 |
java-test-2466 | java | What indicates that the named element was missing from the specified annotation type ? | an incompleteannotationexception | public Incomplete Annotation Exception ( Class < ? extends Annotation > annotation Type , String element Name ) { super ( annotation Type . get Name ( ) + STRING + element Name . to String ( ) ) ; this . annotation Type = annotation Type ; this . element Name = element Name ; } | public IncompleteAnnotationException ( Class < ? extends Annotation > annotationType , String elementName ) { super ( annotationType . getName ( ) + STRING + elementName . toString ( ) ) ; this . annotationType = annotationType ; this . elementName = elementName ; } | 57 |
java-test-2468 | java | What does the code call ? | the emit routines necessary to write out the generated parser | protected static void emit parser ( ) throws internal error { emit . symbols ( symbol class file , include non terms ) ; emit . parser ( parser class file , action table , reduce table , start state . index ( ) , emit . start production , opt compact red ) ; } | protected static void emit_parser ( ) throws internal_error { emit . symbols ( symbol_class_file , include_non_terms ) ; emit . parser ( parser_class_file , action_table , reduce_table , start_state . index ( ) , emit . start_production , opt_compact_red ) ; } | 56 |
java-test-2469 | java | What did the code read ? | a single , whole line from the given reader | public static String read Line ( Reader self ) throws IO Exception { if ( self instanceof Buffered Reader ) { Buffered Reader br = ( Buffered Reader ) self ; return br . read Line ( ) ; } if ( self . mark Supported ( ) ) { return read Line From Reader With Mark ( self ) ; } return read Line From Reader Without Mark ( s... | public static String readLine ( Reader self ) throws IOException { if ( self instanceof BufferedReader ) { BufferedReader br = ( BufferedReader ) self ; return br . readLine ( ) ; } if ( self . markSupported ( ) ) { return readLineFromReaderWithMark ( self ) ; } return readLineFromReaderWithoutMark ( self ) ; } | 74 |
java-test-2470 | java | What does the code clear ? | the binding to this component tree | public void unbind Tree ( Container ui ) { int component Count = ui . get Component Count ( ) ; for ( int iter = NUM ; iter < component Count ; iter ++ ) { Component c = ui . get Component At ( iter ) ; if ( c instanceof Container ) { unbind Tree ( ( Container ) c ) ; continue ; } String bind = c . get Cloud Bound Prop... | public void unbindTree ( Container ui ) { int componentCount = ui . getComponentCount ( ) ; for ( int iter = _NUM ; iter < componentCount ; iter ++ ) { Component c = ui . getComponentAt ( iter ) ; if ( c instanceof Container ) { unbindTree ( ( Container ) c ) ; continue ; } String bind = c . getCloudBoundProperty ( ) ;... | 128 |
java-test-2471 | java | What does code read ? | numbers separated by tabulations or spaces | public final boolean skip Any ( Char Set char Set , Char Sequence csq ) { int i = index ; int n = csq . length ( ) ; for ( ; ( i < n ) && char Set . contains ( csq . char At ( i ) ) ; i ++ ) { } if ( i == index ) return BOOL ; index = i ; return BOOL ; } | public final boolean skipAny ( CharSet charSet , CharSequence csq ) { int i = index ; int n = csq . length ( ) ; for ( ; ( i < n ) && charSet . contains ( csq . charAt ( i ) ) ; i ++ ) { } if ( i == index ) return _BOOL ; index = i ; return _BOOL ; } | 75 |
java-test-2472 | java | How did numbers separate ? | by tabulations or spaces | public final boolean skip Any ( Char Set char Set , Char Sequence csq ) { int i = index ; int n = csq . length ( ) ; for ( ; ( i < n ) && char Set . contains ( csq . char At ( i ) ) ; i ++ ) { } if ( i == index ) return BOOL ; index = i ; return BOOL ; } | public final boolean skipAny ( CharSet charSet , CharSequence csq ) { int i = index ; int n = csq . length ( ) ; for ( ; ( i < n ) && charSet . contains ( csq . charAt ( i ) ) ; i ++ ) { } if ( i == index ) return _BOOL ; index = i ; return _BOOL ; } | 75 |
java-test-2473 | java | What does the code close ? | the current label | private void split Current Label ( Label alternate Successor , List < Label > catch Labels ) { Label new Label = new Label ( ) ; adopt ( new Label ) ; current Label . primary Successor = new Label ; current Label . alternate Successor = alternate Successor ; current Label . catch Labels = catch Labels ; current Label =... | private void splitCurrentLabel ( Label alternateSuccessor , List < Label > catchLabels ) { Label newLabel = new Label ( ) ; adopt ( newLabel ) ; currentLabel . primarySuccessor = newLabel ; currentLabel . alternateSuccessor = alternateSuccessor ; currentLabel . catchLabels = catchLabels ; currentLabel = newLabel ; curr... | 74 |
java-test-2474 | java | What does the code update ? | the sorting icons | private void update Sorting Icons ( ) { for ( Sorting Type type : Sorting Type . values ( ) ) { Sorting Direction direction = model . get Sorting Direction ( type ) ; Image Icon icon ; switch ( direction ) { case DESCENDING : icon = ICON ARROW DOWN ; break ; case ASCENDING : icon = ICON ARROW UP ; break ; case UNDEFINE... | private void updateSortingIcons ( ) { for ( SortingType type : SortingType . values ( ) ) { SortingDirection direction = model . getSortingDirection ( type ) ; ImageIcon icon ; switch ( direction ) { case DESCENDING : icon = ICON_ARROW_DOWN ; break ; case ASCENDING : icon = ICON_ARROW_UP ; break ; case UNDEFINED : icon... | 173 |
java-test-2475 | java | What does the code create ? | a new attribute of the given type | protected Attribute generate Attribute ( int index , int att Type , String name Prefix ) throws Exception { Attribute result ; String name ; int val Index ; int nom Count ; String prefix ; result = null ; if ( index == CLASS IS LAST ) { val Index = NUM ; name = STRING ; prefix = STRING ; nom Count = get Num Classes ( )... | protected Attribute generateAttribute ( int index , int attType , String namePrefix ) throws Exception { Attribute result ; String name ; int valIndex ; int nomCount ; String prefix ; result = null ; if ( index == CLASS_IS_LAST ) { valIndex = _NUM ; name = STRING ; prefix = STRING ; nomCount = getNumClasses ( ) ; } els... | 599 |
java-test-2476 | java | What does the code open on a view ? | bubbleactions | public static Bubble Actions on ( View view ) { View root View = view . get Root View ( ) ; if ( root View == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( ! ( root View instanceof View Group ) ) { throw new Illegal Argument Exception ( STRING ) ; } return new Bubble Actions ( ( View Group ) root Vi... | public static BubbleActions on ( View view ) { View rootView = view . getRootView ( ) ; if ( rootView == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( ! ( rootView instanceof ViewGroup ) ) { throw new IllegalArgumentException ( STRING ) ; } return new BubbleActions ( ( ViewGroup ) rootView ) ; } | 76 |
java-test-2478 | java | Where does a routelocation place earlier ? | in the route | public void move Location Up ( Route Location rl ) { int sequence Id = rl . get Sequence Id ( ) ; if ( sequence Id - NUM <= NUM ) { rl . set Sequence Id ( sequence Num + NUM ) ; resequence Ids ( ) ; } else { Route Location replace Rl = get Item By Sequence Id ( sequence Id - NUM ) ; if ( replace Rl != null ) { replace ... | public void moveLocationUp ( RouteLocation rl ) { int sequenceId = rl . getSequenceId ( ) ; if ( sequenceId - _NUM <= _NUM ) { rl . setSequenceId ( _sequenceNum + _NUM ) ; resequenceIds ( ) ; } else { RouteLocation replaceRl = getItemBySequenceId ( sequenceId - _NUM ) ; if ( replaceRl != null ) { replaceRl . setSequenc... | 135 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.