id stringlengths 11 16 | language stringclasses 2
values | 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-6638 | java | What does the code update ? | a jcombobox with the latest automations | public void update Combo Box ( J Combo Box < Automation > box ) { box . remove All Items ( ) ; box . add Item ( null ) ; for ( Automation automation : get Automations By Name List ( ) ) { box . add Item ( automation ) ; } } | public void updateComboBox ( JComboBox < Automation > box ) { box . removeAllItems ( ) ; box . addItem ( null ) ; for ( Automation automation : getAutomationsByNameList ( ) ) { box . addItem ( automation ) ; } } | 55 |
java-test-6639 | java | What do the elements contain ? | references to other resources | private boolean parse Source ( Http Message message , Source source , int depth , String base URL ) { log . debug ( STRING ) ; boolean resourcesfound = BOOL ; List < Element > elements = source . get All Elements ( HTML Element Name . A ) ; for ( Element el : elements ) { resourcesfound |= process Attribute Element ( m... | private boolean parseSource ( HttpMessage message , Source source , int depth , String baseURL ) { log . debug ( STRING ) ; boolean resourcesfound = _BOOL ; List < Element > elements = source . getAllElements ( HTMLElementName . A ) ; for ( Element el : elements ) { resourcesfound |= processAttributeElement ( message ,... | 464 |
java-test-6640 | java | What does the code parse ? | the html jericho source for the elements that contain references to other resources | private boolean parse Source ( Http Message message , Source source , int depth , String base URL ) { log . debug ( STRING ) ; boolean resourcesfound = BOOL ; List < Element > elements = source . get All Elements ( HTML Element Name . A ) ; for ( Element el : elements ) { resourcesfound |= process Attribute Element ( m... | private boolean parseSource ( HttpMessage message , Source source , int depth , String baseURL ) { log . debug ( STRING ) ; boolean resourcesfound = _BOOL ; List < Element > elements = source . getAllElements ( HTMLElementName . A ) ; for ( Element el : elements ) { resourcesfound |= processAttributeElement ( message ,... | 464 |
java-test-6641 | java | What do we use the buffers ? | to store information about the 3d world | @ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert... | @ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe... | 1,254 |
java-test-6642 | java | What does the code create ? | the buffers we use to store information about the 3d world | @ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert... | @ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe... | 1,254 |
java-test-6643 | java | What do we use hence ? | bytebuffers | @ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert... | @ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe... | 1,254 |
java-test-6644 | java | How can it understand ? | a format | @ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert... | @ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe... | 1,254 |
java-test-6645 | java | How does data need ? | in a format it can understand | @ Override public void on Surface Created ( EGL Config config ) { Log . i ( TAG , STRING ) ; GLES 20 . gl Clear Color ( NUM , NUM , NUM , NUM ) ; Byte Buffer bb Vertices = Byte Buffer . allocate Direct ( World Layout Data . CUBE COORDS . length * NUM ) ; bb Vertices . order ( Byte Order . native Order ( ) ) ; cube Vert... | @ Override public void onSurfaceCreated ( EGLConfig config ) { Log . i ( TAG , STRING ) ; GLES20 . glClearColor ( _NUM , _NUM , _NUM , _NUM ) ; ByteBuffer bbVertices = ByteBuffer . allocateDirect ( WorldLayoutData . CUBE_COORDS . length * _NUM ) ; bbVertices . order ( ByteOrder . nativeOrder ( ) ) ; cubeVertices = bbVe... | 1,254 |
java-test-6646 | java | For what purpose do the velocity modify if it is now out of bounds if it is now out of bounds ? | to cause a bounce in the opposite direction | private void make Iris In Bounds ( float simulation Rate ) { float iris Offset X = m Iris Position . x - m Eye Position . x ; float iris Offset Y = m Iris Position . y - m Eye Position . y ; float max Distance = m Eye Radius - m Iris Radius ; float distance = ( float ) Math . sqrt ( Math . pow ( iris Offset X , NUM ) +... | private void makeIrisInBounds ( float simulationRate ) { float irisOffsetX = mIrisPosition . x - mEyePosition . x ; float irisOffsetY = mIrisPosition . y - mEyePosition . y ; float maxDistance = mEyeRadius - mIrisRadius ; float distance = ( float ) Math . sqrt ( Math . pow ( irisOffsetX , _NUM ) + Math . pow ( irisOffs... | 225 |
java-test-6647 | java | What be the code correct if it is now out of bounds if it is now out of bounds ? | the iris position to be in - bounds within the eye | private void make Iris In Bounds ( float simulation Rate ) { float iris Offset X = m Iris Position . x - m Eye Position . x ; float iris Offset Y = m Iris Position . y - m Eye Position . y ; float max Distance = m Eye Radius - m Iris Radius ; float distance = ( float ) Math . sqrt ( Math . pow ( iris Offset X , NUM ) +... | private void makeIrisInBounds ( float simulationRate ) { float irisOffsetX = mIrisPosition . x - mEyePosition . x ; float irisOffsetY = mIrisPosition . y - mEyePosition . y ; float maxDistance = mEyeRadius - mIrisRadius ; float distance = ( float ) Math . sqrt ( Math . pow ( irisOffsetX , _NUM ) + Math . pow ( irisOffs... | 225 |
java-test-6648 | java | How will dsljson process json when working on inputstream ? | in chunks of byte [ ] inputs | public Object deserialize ( final Type manifest , final Input Stream stream , final byte [ ] buffer ) throws IO Exception { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final Json Stream Reader json = new Json Stream Reader < T Context > ( stream , buffe... | public Object deserialize ( final Type manifest , final InputStream stream , final byte [ ] buffer ) throws IOException { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final JsonStreamReader json = new JsonStreamReader < TContext > ( stream , buffer , con... | 161 |
java-test-6649 | java | When will dsljson process json in chunks of byte [ ] inputs ? | when working on inputstream | public Object deserialize ( final Type manifest , final Input Stream stream , final byte [ ] buffer ) throws IO Exception { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final Json Stream Reader json = new Json Stream Reader < T Context > ( stream , buffe... | public Object deserialize ( final Type manifest , final InputStream stream , final byte [ ] buffer ) throws IOException { if ( manifest instanceof Class < ? > ) { return deserialize ( ( Class < ? > ) manifest , stream , buffer ) ; } final JsonStreamReader json = new JsonStreamReader < TContext > ( stream , buffer , con... | 161 |
java-test-6650 | java | What does it see times on stderr ? | ' expectedout ' on stdout and ' expectederr ' | public static void exec And Check Output ( Process Builder builder , String expected Out , String expected Err ) throws Exception { Process process = builder . start ( ) ; Executor Service executor Service = Executors . new Fixed Thread Pool ( NUM ) ; try { Future < String > err Future = executor Service . submit ( str... | public static void execAndCheckOutput ( ProcessBuilder builder , String expectedOut , String expectedErr ) throws Exception { Process process = builder . start ( ) ; ExecutorService executorService = Executors . newFixedThreadPool ( _NUM ) ; try { Future < String > errFuture = executorService . submit ( streamToStringC... | 162 |
java-test-6652 | java | What does the code destroy ? | the test tables | @ After Class public static void after Class Base Test ( ) throws SQL Exception { if ( test Single Host ) { if ( ! shared Connection . is Closed ( ) ) { if ( ! temp View List . is Empty ( ) ) { Statement stmt = shared Connection . create Statement ( ) ; String view Name ; while ( ( view Name = temp View List . poll ( )... | @ AfterClass public static void afterClassBaseTest ( ) throws SQLException { if ( testSingleHost ) { if ( ! sharedConnection . isClosed ( ) ) { if ( ! tempViewList . isEmpty ( ) ) { Statement stmt = sharedConnection . createStatement ( ) ; String viewName ; while ( ( viewName = tempViewList . poll ( ) ) != null ) { try... | 340 |
java-test-6654 | java | What does the code update ? | the thread display panel which shows running / queued threads | private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ... | private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst... | 286 |
java-test-6655 | java | What does the thread display panel show ? | running / queued threads | private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ... | private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst... | 286 |
java-test-6656 | java | What shows running / queued threads ? | the thread display panel | private synchronized void update Thread Panel ( boolean force Update ) { if ( ! force Update && ! is Visible ( ) ) { return ; } thread Panel . remove All ( ) ; Grid Bag Constraints gbc = new Grid Bag Constraints ( ) ; gbc . gridx = NUM ; gbc . gridy = NUM ; gbc . weightx = NUM ; gbc . weighty = NUM ; gbc . fill = Grid ... | private synchronized void updateThreadPanel ( boolean forceUpdate ) { if ( ! forceUpdate && ! isVisible ( ) ) { return ; } threadPanel . removeAll ( ) ; GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = _NUM ; gbc . gridy = _NUM ; gbc . weightx = _NUM ; gbc . weighty = _NUM ; gbc . fill = GridBagConst... | 286 |
java-test-6657 | java | How does the code calculate the bin values ? | based on sector classification and for isotropic model | void calc Bins 4 Sec ( double Range ) { int ad = NUM ; if ( Range % this . Lag Size == NUM ) { ad = NUM ; } if ( ! this . Anisotropic ) { bins = new bin [ ( int ) Math . ceil ( Range / this . Lag Size ) + ad ] [ NUM ] ; int r = NUM ; for ( int i = NUM ; i < Pairs . size ( ) ; i ++ ) { if ( Pairs . get ( i ) . Distance ... | void calcBins4Sec ( double Range ) { int ad = _NUM ; if ( Range % this . LagSize == _NUM ) { ad = _NUM ; } if ( ! this . Anisotropic ) { bins = new bin [ ( int ) Math . ceil ( Range / this . LagSize ) + ad ] [ _NUM ] ; int r = _NUM ; for ( int i = _NUM ; i < Pairs . size ( ) ; i ++ ) { if ( Pairs . get ( i ) . Distance... | 334 |
java-test-6658 | java | For what purpose does the code expand the array passed in by the single element ? | to add | public static Event Bean [ ] add To Array ( Event Bean [ ] array , Event Bean event To Add ) { Event Bean [ ] new Array = new Event Bean [ array . length + NUM ] ; System . arraycopy ( array , NUM , new Array , NUM , array . length ) ; new Array [ new Array . length - NUM ] = event To Add ; return new Array ; } | public static EventBean [ ] addToArray ( EventBean [ ] array , EventBean eventToAdd ) { EventBean [ ] newArray = new EventBean [ array . length + _NUM ] ; System . arraycopy ( array , _NUM , newArray , _NUM , array . length ) ; newArray [ newArray . length - _NUM ] = eventToAdd ; return newArray ; } | 79 |
java-test-6659 | java | What does the code expand to add ? | the array passed in by the single element | public static Event Bean [ ] add To Array ( Event Bean [ ] array , Event Bean event To Add ) { Event Bean [ ] new Array = new Event Bean [ array . length + NUM ] ; System . arraycopy ( array , NUM , new Array , NUM , array . length ) ; new Array [ new Array . length - NUM ] = event To Add ; return new Array ; } | public static EventBean [ ] addToArray ( EventBean [ ] array , EventBean eventToAdd ) { EventBean [ ] newArray = new EventBean [ array . length + _NUM ] ; System . arraycopy ( array , _NUM , newArray , _NUM , array . length ) ; newArray [ newArray . length - _NUM ] = eventToAdd ; return newArray ; } | 79 |
java-test-6660 | java | Where is this methods be called for the respective activation ? | in the override method | public void result Photo ( int request Code , int result Code , Intent data ) { if ( result Code == Activity . RESULT OK ) { if ( request Code == SELECT PHOTO ) { this . my Photo = on Select From Gallery Result ( data ) ; } else if ( request Code == TAKE PHOTO ) { this . my Photo = on Take Photo Result ( ) ; } if ( thi... | public void resultPhoto ( int requestCode , int resultCode , Intent data ) { if ( resultCode == Activity . RESULT_OK ) { if ( requestCode == SELECT_PHOTO ) { this . myPhoto = onSelectFromGalleryResult ( data ) ; } else if ( requestCode == TAKE_PHOTO ) { this . myPhoto = onTakePhotoResult ( ) ; } if ( this . myPhoto != ... | 120 |
java-test-6661 | java | How do resources need lookup ? | based on incusion behavior | @ Suppress Warnings ( { STRING , STRING } ) private List filter Resources For Lookup ( Iterable resources , Resource Field field ) { List results = new Array List ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . has Next ( ) ) { Object resource = iterator . next ( ) ; Object property = Property U... | @ SuppressWarnings ( { STRING , STRING } ) private List filterResourcesForLookup ( Iterable resources , ResourceField field ) { List results = new ArrayList ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . hasNext ( ) ) { Object resource = iterator . next ( ) ; Object property = PropertyUtils . g... | 143 |
java-test-6662 | java | What do resources need based on incusion behavior ? | lookup | @ Suppress Warnings ( { STRING , STRING } ) private List filter Resources For Lookup ( Iterable resources , Resource Field field ) { List results = new Array List ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . has Next ( ) ) { Object resource = iterator . next ( ) ; Object property = Property U... | @ SuppressWarnings ( { STRING , STRING } ) private List filterResourcesForLookup ( Iterable resources , ResourceField field ) { List results = new ArrayList ( ) ; Iterator iterator = resources . iterator ( ) ; while ( iterator . hasNext ( ) ) { Object resource = iterator . next ( ) ; Object property = PropertyUtils . g... | 143 |
java-test-6664 | java | For what purpose do backoff time add if the start time is too close to now ? | to avoid race conditions | private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; } | private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; } | 65 |
java-test-6665 | java | What does the code add if the start time is too close to now , add backoff time , to avoid race conditions ? | backoff time to start time | private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; } | private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; } | 65 |
java-test-6666 | java | When do time start ? | backoff time | private Date backoff Time ( Date start Time ) { if ( start Time . before ( Date Utils . add Minutes ( new Date ( ) , - NUM ) ) ) { return Date Utils . add Seconds ( start Time , - NUM ) ; } return Date Utils . add Seconds ( start Time , - BACKOFF TIME ) ; } | private Date backoffTime ( Date startTime ) { if ( startTime . before ( DateUtils . addMinutes ( new Date ( ) , - _NUM ) ) ) { return DateUtils . addSeconds ( startTime , - _NUM ) ; } return DateUtils . addSeconds ( startTime , - BACKOFF_TIME ) ; } | 65 |
java-test-6667 | java | For what purpose do { # downloads update ? | to match { downloadprovider } state | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6668 | java | What taken in this update ? | snapshot | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6669 | java | What do it schedule depending on current download state depending on current download state with { alarmmanager ? | future actions | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6670 | java | How should p be called from { # updatethread } only for ( downloadinfo info : downloadbatch . getdownloads ( ) ) for ( downloadinfo info : downloadbatch . getdownloads ( ) ) ? | as after being requested through { # enqueueupdate ( ) } | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6671 | java | What do it update depending on current download state ? | user - visible notifications | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6672 | java | For what purpose should p be called from { # updatethread } only as after being requested through { # enqueueupdate ( ) } ? | for ( downloadinfo info : downloadbatch . getdownloads ( ) ) | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6673 | java | What may it enqueue depending on current download state ? | { downloadtask } instances | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6674 | java | Where did snapshot take ? | in this update | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6675 | java | How do it schedule future actions depending on current download state depending on current download state ? | with { alarmmanager | private boolean update Locked ( ) { boolean is Active = BOOL ; long next Retry Time Millis = Long . MAX VALUE ; long now = system Facade . current Time Millis ( ) ; Collection < File Download Info > all Downloads = downloads Repository . get All Downloads ( ) ; update Total Bytes For ( all Downloads ) ; List < Download... | private boolean updateLocked ( ) { boolean isActive = _BOOL ; long nextRetryTimeMillis = Long . MAX_VALUE ; long now = systemFacade . currentTimeMillis ( ) ; Collection < FileDownloadInfo > allDownloads = downloadsRepository . getAllDownloads ( ) ; updateTotalBytesFor ( allDownloads ) ; List < DownloadBatch > downloadB... | 428 |
java-test-6676 | java | For what purpose does the string builder search ? | to find the first reference to the specified string starting searching from the given index | public int index Of ( final String str , int start Index ) { start Index = ( start Index < NUM ? NUM : start Index ) ; if ( str == null || start Index >= size ) { return - NUM ; } final int str Len = str . length ( ) ; if ( str Len == NUM ) { return index Of ( str . char At ( NUM ) , start Index ) ; } if ( str Len == N... | public int indexOf ( final String str , int startIndex ) { startIndex = ( startIndex < _NUM ? _NUM : startIndex ) ; if ( str == null || startIndex >= size ) { return - _NUM ; } final int strLen = str . length ( ) ; if ( strLen == _NUM ) { return indexOf ( str . charAt ( _NUM ) , startIndex ) ; } if ( strLen == _NUM ) {... | 195 |
java-test-6677 | java | For what purpose will the resulting certificate be added to the kubernetes cluster ? | as a new secret | private void handle Certificate Request ( Certificate Request request ) { if ( request . get Renew ( ) ) { val certificate Response = request Handler . request Certificate ( request . get Domains ( ) ) ; secret Manager . update Certificate ( namespace , request . get Secret Name ( ) , certificate Response ) ; } else { ... | private void handleCertificateRequest ( CertificateRequest request ) { if ( request . getRenew ( ) ) { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . updateCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } else { val certifica... | 102 |
java-test-6678 | java | How does this function perform a certificate request ? | as determined by preparecertificaterequest | private void handle Certificate Request ( Certificate Request request ) { if ( request . get Renew ( ) ) { val certificate Response = request Handler . request Certificate ( request . get Domains ( ) ) ; secret Manager . update Certificate ( namespace , request . get Secret Name ( ) , certificate Response ) ; } else { ... | private void handleCertificateRequest ( CertificateRequest request ) { if ( request . getRenew ( ) ) { val certificateResponse = requestHandler . requestCertificate ( request . getDomains ( ) ) ; secretManager . updateCertificate ( namespace , request . getSecretName ( ) , certificateResponse ) ; } else { val certifica... | 102 |
java-test-6679 | java | When does the code add an action to this card ? | during build time | private void add Action ( String label , int id , int type ) { Card Action card Action = new Card Action ( ) ; card Action . label = label ; card Action . id = id ; card Action . type = type ; m Card Actions . add ( card Action ) ; } | private void addAction ( String label , int id , int type ) { CardAction cardAction = new CardAction ( ) ; cardAction . label = label ; cardAction . id = id ; cardAction . type = type ; mCardActions . add ( cardAction ) ; } | 58 |
java-test-6683 | java | Where do s join method ? | on lists | public static String join ( Collection < ? > c , String delim ) { String Builder retval = new String Builder ( ) ; Iterator < ? > itr = c . iterator ( ) ; if ( itr . has Next ( ) ) retval . append ( itr . next ( ) ) ; else return STRING ; while ( itr . has Next ( ) ) { retval . append ( delim ) ; retval . append ( itr ... | public static String join ( Collection < ? > c , String delim ) { StringBuilder retval = new StringBuilder ( ) ; Iterator < ? > itr = c . iterator ( ) ; if ( itr . hasNext ( ) ) retval . append ( itr . next ( ) ) ; else return STRING ; while ( itr . hasNext ( ) ) { retval . append ( delim ) ; retval . append ( itr . ne... | 99 |
java-test-6684 | java | Where does the text change making it invisible if the text is empty or visible again otherwise ? | on the given label | private void hideable Label ( J Label label , String text ) { if ( text . is Empty ( ) ) { label . set Foreground ( LABEL INVISIBLE ) ; } else { label . set Foreground ( LABEL VISIBLE ) ; label . set Text ( text ) ; } } | private void hideableLabel ( JLabel label , String text ) { if ( text . isEmpty ( ) ) { label . setForeground ( LABEL_INVISIBLE ) ; } else { label . setForeground ( LABEL_VISIBLE ) ; label . setText ( text ) ; } } | 54 |
java-test-6685 | java | When is the text empty or visible ? | again otherwise | private void hideable Label ( J Label label , String text ) { if ( text . is Empty ( ) ) { label . set Foreground ( LABEL INVISIBLE ) ; } else { label . set Foreground ( LABEL VISIBLE ) ; label . set Text ( text ) ; } } | private void hideableLabel ( JLabel label , String text ) { if ( text . isEmpty ( ) ) { label . setForeground ( LABEL_INVISIBLE ) ; } else { label . setForeground ( LABEL_VISIBLE ) ; label . setText ( text ) ; } } | 54 |
java-test-6688 | java | What does the code see ? | the interface definition for the javadoc | @ Override public void create Connection Factory ( String name , boolean ha , boolean use Discovery , int cf Type , String [ ] connector Names , Object [ ] bindings ) throws Exception { check Started ( ) ; clear IO ( ) ; try { if ( use Discovery ) { if ( connector Names == null || connector Names . length == NUM ) { th... | @ Override public void createConnectionFactory ( String name , boolean ha , boolean useDiscovery , int cfType , String [ ] connectorNames , Object [ ] bindings ) throws Exception { checkStarted ( ) ; clearIO ( ) ; try { if ( useDiscovery ) { if ( connectorNames == null || connectorNames . length == _NUM ) { throw new I... | 204 |
java-test-6690 | java | What does the code return ? | the last modified time for the path | private boolean is Cache Valid ( ) { long now = Current Time . current Time ( ) ; if ( ( now - last Time < NUM ) && ! Current Time . is Test ( ) ) return BOOL ; long old Last Modified = last Modified ; long old Length = length ; long new Last Modified = backing . get Last Modified ( ) ; long new Length = backing . leng... | private boolean isCacheValid ( ) { long now = CurrentTime . currentTime ( ) ; if ( ( now - _lastTime < _NUM ) && ! CurrentTime . isTest ( ) ) return _BOOL ; long oldLastModified = _lastModified ; long oldLength = _length ; long newLastModified = _backing . getLastModified ( ) ; long newLength = _backing . length ( ) ; ... | 165 |
java-test-6691 | java | What does the code add ? | a regular expression constraint for finding string values that match the provided regular expression | public Parse Query < T > where Matches ( String key , String regex , String modifiers ) { check If Running ( ) ; builder . add Condition ( key , STRING , regex ) ; if ( modifiers . length ( ) != NUM ) { builder . add Condition ( key , STRING , modifiers ) ; } return this ; } | public ParseQuery < T > whereMatches ( String key , String regex , String modifiers ) { checkIfRunning ( ) ; builder . addCondition ( key , STRING , regex ) ; if ( modifiers . length ( ) != _NUM ) { builder . addCondition ( key , STRING , modifiers ) ; } return this ; } | 65 |
java-test-6692 | java | What did helper method use ? | to locate deserializers for properties | protected Json Deserializer < Object > find Deserializer ( Deserialization Config config , Deserializer Provider provider , Java Type type , Bean Property property ) throws Json Mapping Exception { Json Deserializer < Object > deser = provider . find Value Deserializer ( config , type , property ) ; return deser ; } | protected JsonDeserializer < Object > findDeserializer ( DeserializationConfig config , DeserializerProvider provider , JavaType type , BeanProperty property ) throws JsonMappingException { JsonDeserializer < Object > deser = provider . findValueDeserializer ( config , type , property ) ; return deser ; } | 54 |
java-test-6693 | java | What do an event listener receive ? | notifications that an ssl handshake has completed on this connection | @ Override public synchronized void add Handshake Completed Listener ( Handshake Completed Listener listener ) { if ( listener == null ) { throw new Illegal Argument Exception ( STRING ) ; } if ( handshake Listeners == null ) { handshake Listeners = new Hash Map < Handshake Completed Listener , Access Control Context >... | @ Override public synchronized void addHandshakeCompletedListener ( HandshakeCompletedListener listener ) { if ( listener == null ) { throw new IllegalArgumentException ( STRING ) ; } if ( handshakeListeners == null ) { handshakeListeners = new HashMap < HandshakeCompletedListener , AccessControlContext > ( _NUM ) ; } ... | 78 |
java-test-6694 | java | Why might to be flaky prove ? | since garbage collection can not be guaranteed | public void test Weak ( ) throws Interrupted Exception { Set < Object > object Set = new Weak Hash Set < Object > ( ) ; object Set . add ( new Object ( ) ) ; for ( int i = NUM ; i < NUM ; ++ i ) { new Object ( ) ; } System . gc ( ) ; Thread . sleep ( NUM ) ; assert True ( object Set . is Empty ( ) ) ; } | public void testWeak ( ) throws InterruptedException { Set < Object > objectSet = new WeakHashSet < Object > ( ) ; objectSet . add ( new Object ( ) ) ; for ( int i = _NUM ; i < _NUM ; ++ i ) { new Object ( ) ; } System . gc ( ) ; Thread . sleep ( _NUM ) ; assertTrue ( objectSet . isEmpty ( ) ) ; } | 85 |
java-test-6695 | java | What do the close method call ? | to release the underlying database resources | public < T extends PO > PO Result Set < T > scroll ( ) throws DB Exception { String sql = build SQL ( null , BOOL ) ; Prepared Statement pstmt = null ; Result Set rs = null ; PO Result Set < T > rs PO = null ; try { pstmt = DB . prepare Statement ( sql , trx Name ) ; rs = create Result Set ( pstmt ) ; rs PO = new PO Re... | public < T extends PO > POResultSet < T > scroll ( ) throws DBException { String sql = buildSQL ( null , _BOOL ) ; PreparedStatement pstmt = null ; ResultSet rs = null ; POResultSet < T > rsPO = null ; try { pstmt = DB . prepareStatement ( sql , trxName ) ; rs = createResultSet ( pstmt ) ; rsPO = new POResultSet < T > ... | 175 |
java-test-6696 | java | What calls to release the underlying database resources ? | the close method | public < T extends PO > PO Result Set < T > scroll ( ) throws DB Exception { String sql = build SQL ( null , BOOL ) ; Prepared Statement pstmt = null ; Result Set rs = null ; PO Result Set < T > rs PO = null ; try { pstmt = DB . prepare Statement ( sql , trx Name ) ; rs = create Result Set ( pstmt ) ; rs PO = new PO Re... | public < T extends PO > POResultSet < T > scroll ( ) throws DBException { String sql = buildSQL ( null , _BOOL ) ; PreparedStatement pstmt = null ; ResultSet rs = null ; POResultSet < T > rsPO = null ; try { pstmt = DB . prepareStatement ( sql , trxName ) ; rs = createResultSet ( pstmt ) ; rsPO = new POResultSet < T > ... | 175 |
java-test-6697 | java | What is binding inside the appropriate binder ? | list item | @ Override public void on Bind View Holder ( Base View Holder holder , int position ) { int item View Type = get Item View Type ( position ) ; if ( item View Type != VIEWTYPE NONE ) { Binder binder = binders . get ( item View Type ) ; binder . on Bind Callback ( holder , get Item ( position ) , position ) ; } } | @ Override public void onBindViewHolder ( BaseViewHolder holder , int position ) { int itemViewType = getItemViewType ( position ) ; if ( itemViewType != VIEWTYPE_NONE ) { Binder binder = binders . get ( itemViewType ) ; binder . onBindCallback ( holder , getItem ( position ) , position ) ; } } | 72 |
java-test-6698 | java | Where do list item bind ? | inside the appropriate binder | @ Override public void on Bind View Holder ( Base View Holder holder , int position ) { int item View Type = get Item View Type ( position ) ; if ( item View Type != VIEWTYPE NONE ) { Binder binder = binders . get ( item View Type ) ; binder . on Bind Callback ( holder , get Item ( position ) , position ) ; } } | @ Override public void onBindViewHolder ( BaseViewHolder holder , int position ) { int itemViewType = getItemViewType ( position ) ; if ( itemViewType != VIEWTYPE_NONE ) { Binder binder = binders . get ( itemViewType ) ; binder . onBindCallback ( holder , getItem ( position ) , position ) ; } } | 72 |
java-test-6700 | java | What do other models such as esri sde allow ? | inverted shells and exverted holes | private void check No Self Intersecting Rings ( Geometry Graph graph ) { for ( Iterator i = graph . get Edge Iterator ( ) ; i . has Next ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; check No Self Intersecting Ring ( e . get Edge Intersection List ( ) ) ; if ( valid Err != null ) return ; } } | private void checkNoSelfIntersectingRings ( GeometryGraph graph ) { for ( Iterator i = graph . getEdgeIterator ( ) ; i . hasNext ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; checkNoSelfIntersectingRing ( e . getEdgeIntersectionList ( ) ) ; if ( validErr != null ) return ; } } | 74 |
java-test-6701 | java | What allow inverted shells and exverted holes ? | other models such as esri sde | private void check No Self Intersecting Rings ( Geometry Graph graph ) { for ( Iterator i = graph . get Edge Iterator ( ) ; i . has Next ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; check No Self Intersecting Ring ( e . get Edge Intersection List ( ) ) ; if ( valid Err != null ) return ; } } | private void checkNoSelfIntersectingRings ( GeometryGraph graph ) { for ( Iterator i = graph . getEdgeIterator ( ) ; i . hasNext ( ) ; ) { Edge e = ( Edge ) i . next ( ) ; checkNoSelfIntersectingRing ( e . getEdgeIntersectionList ( ) ) ; if ( validErr != null ) return ; } } | 74 |
java-test-6702 | java | What does this method unwind ? | all wrapped exceptions | public static String exception To String ( Throwable t ) { String Writer sw = new String Writer ( ) ; Print Writer out = new Print Writer ( sw ) ; print Exception Stack ( t , out , NUM ) ; return sw . to String ( ) ; } | public static String exceptionToString ( Throwable t ) { StringWriter sw = new StringWriter ( ) ; PrintWriter out = new PrintWriter ( sw ) ; printExceptionStack ( t , out , _NUM ) ; return sw . toString ( ) ; } | 52 |
java-test-6705 | java | What does the code create ? | a new instance of translucentbutton | public Moving Button Container ( ) { set Layout ( new java . awt . Flow Layout ( ) ) ; timer = new Timer ( NUM , this ) ; button = new J Button ( STRING ) ; button . set Opaque ( BOOL ) ; button . add Action Listener ( this ) ; add ( button ) ; } | public MovingButtonContainer ( ) { setLayout ( new java . awt . FlowLayout ( ) ) ; timer = new Timer ( _NUM , this ) ; button = new JButton ( STRING ) ; button . setOpaque ( _BOOL ) ; button . addActionListener ( this ) ; add ( button ) ; } | 63 |
java-test-6706 | java | What does the code generate ? | the code to reify the arguments of the given method | public static void generate Parameter Reifier Code ( String [ ] param Types , boolean is Static , final Code Visitor cv ) { cv . visit Int Insn ( SIPUSH , param Types . length ) ; cv . visit Type Insn ( ANEWARRAY , STRING ) ; int local Var Index = is Static ? NUM : NUM ; for ( int i = NUM ; i < param Types . length ; +... | public static void generateParameterReifierCode ( String [ ] paramTypes , boolean isStatic , final CodeVisitor cv ) { cv . visitIntInsn ( SIPUSH , paramTypes . length ) ; cv . visitTypeInsn ( ANEWARRAY , STRING ) ; int localVarIndex = isStatic ? _NUM : _NUM ; for ( int i = _NUM ; i < paramTypes . length ; ++ i ) { Stri... | 287 |
java-test-6708 | java | What does the code remove from the rest of the path forcing all slashes into the preferred slash ? | redundant slashes | private static String normalize ( String Builder sb , String path , int off ) { int len = path . length ( ) ; off = next Non Slash ( path , off , len ) ; int start = off ; char last C = NUM ; while ( off < len ) { char c = path . char At ( off ) ; if ( is Slash ( c ) ) { if ( last C == STRING ) throw new Invalid Path E... | private static String normalize ( StringBuilder sb , String path , int off ) { int len = path . length ( ) ; off = nextNonSlash ( path , off , len ) ; int start = off ; char lastC = _NUM ; while ( off < len ) { char c = path . charAt ( off ) ; if ( isSlash ( c ) ) { if ( lastC == STRING ) throw new InvalidPathException... | 239 |
java-test-6709 | java | What are removed in this method ? | properties that are not relevant for cluster member | private Properties remove Redundant Properties ( Properties props ) { if ( props == null ) { return null ; } Properties cloned Props = ( Properties ) props . clone ( ) ; cloned Props . remove ( X Path Properties . CONTAINER JNDI URL ) ; return cloned Props ; } | private Properties removeRedundantProperties ( Properties props ) { if ( props == null ) { return null ; } Properties clonedProps = ( Properties ) props . clone ( ) ; clonedProps . remove ( XPathProperties . CONTAINER_JNDI_URL ) ; return clonedProps ; } | 53 |
java-test-6710 | java | What do you want ? | to list all the locations in a cfg for debugging purposes | public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | 69 |
java-test-6711 | java | Where do so do ? | a good order | public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | 69 |
java-test-6712 | java | What do you list for debugging purposes ? | all the locations in a cfg | public Collection < Location > ordered Locations ( ) { Tree Set < Location > tree = new Tree Set < Location > ( ) ; for ( Iterator < Location > locs = location Iterator ( ) ; locs . has Next ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | public Collection < Location > orderedLocations ( ) { TreeSet < Location > tree = new TreeSet < Location > ( ) ; for ( Iterator < Location > locs = locationIterator ( ) ; locs . hasNext ( ) ; ) { Location loc = locs . next ( ) ; tree . add ( loc ) ; } return tree ; } | 69 |
java-test-6713 | java | What does the code add to the new table ? | an indexbuilder | public Table Builder add Index ( Index Builder index ) { if ( escape Identifiers ) { index . set Name ( escape Identifier ( index . get Name ( ) ) ) ; for ( Index Builder . Column col : index . get Columns ( ) ) { col . set Name ( escape Identifier ( col . get Name ( ) ) ) ; } } indexes . add ( index ) ; return this ; ... | public TableBuilder addIndex ( IndexBuilder index ) { if ( _escapeIdentifiers ) { index . setName ( escapeIdentifier ( index . getName ( ) ) ) ; for ( IndexBuilder . Column col : index . getColumns ( ) ) { col . setName ( escapeIdentifier ( col . getName ( ) ) ) ; } } _indexes . add ( index ) ; return this ; } | 80 |
java-test-6714 | java | In which direction does the code generate a thresholds object ? | from data available from the datainput | public static Memory Thresholds from Data ( Data Input in ) throws IO Exception { long max Memory Bytes = in . read Long ( ) ; float critical Threshold = in . read Float ( ) ; float eviction Threshold = in . read Float ( ) ; return new Memory Thresholds ( max Memory Bytes , critical Threshold , eviction Threshold ) ; } | public static MemoryThresholds fromData ( DataInput in ) throws IOException { long maxMemoryBytes = in . readLong ( ) ; float criticalThreshold = in . readFloat ( ) ; float evictionThreshold = in . readFloat ( ) ; return new MemoryThresholds ( maxMemoryBytes , criticalThreshold , evictionThreshold ) ; } | 66 |
java-test-6715 | java | What does the code generate from data available from the datainput ? | a thresholds object | public static Memory Thresholds from Data ( Data Input in ) throws IO Exception { long max Memory Bytes = in . read Long ( ) ; float critical Threshold = in . read Float ( ) ; float eviction Threshold = in . read Float ( ) ; return new Memory Thresholds ( max Memory Bytes , critical Threshold , eviction Threshold ) ; } | public static MemoryThresholds fromData ( DataInput in ) throws IOException { long maxMemoryBytes = in . readLong ( ) ; float criticalThreshold = in . readFloat ( ) ; float evictionThreshold = in . readFloat ( ) ; return new MemoryThresholds ( maxMemoryBytes , criticalThreshold , evictionThreshold ) ; } | 66 |
java-test-6718 | java | For what purpose do delta x calculate ? | for views | private int scroll Horizontally Internal ( int dx ) { int child Count = get Child Count ( ) ; if ( child Count == NUM ) { return NUM ; } int item Count = get Item Count ( ) ; View left View = get Child At ( NUM ) ; View right View = get Child At ( child Count - NUM ) ; for ( int i = NUM ; i < get Child Count ( ) ; i ++... | private int scrollHorizontallyInternal ( int dx ) { int childCount = getChildCount ( ) ; if ( childCount == _NUM ) { return _NUM ; } int itemCount = getItemCount ( ) ; View leftView = getChildAt ( _NUM ) ; View rightView = getChildAt ( childCount - _NUM ) ; for ( int i = _NUM ; i < getChildCount ( ) ; i ++ ) { View vie... | 399 |
java-test-6719 | java | How does it return any assignments to parenthesis groups in the pattern ' s regular expression ? | as an array | public String [ ] match ( String text ) { List < String > matches = new Array List < String > ( ) ; match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; } | public String [ ] match ( String text ) { List < String > matches = new ArrayList < String > ( ) ; _match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = _NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; } | 81 |
java-test-6720 | java | What does it return as an array ? | any assignments to parenthesis groups in the pattern ' s regular expression | public String [ ] match ( String text ) { List < String > matches = new Array List < String > ( ) ; match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; } | public String [ ] match ( String text ) { List < String > matches = new ArrayList < String > ( ) ; _match ( text , matches ) ; String arr [ ] = new String [ matches . size ( ) ] ; for ( int i = _NUM ; i < matches . size ( ) ; i ++ ) arr [ i ] = matches . get ( i ) ; return arr ; } | 81 |
java-test-6721 | java | How does syscs_util . syscs_compress_table incur deadlock ? | with concurrent anomaly detection engine analyze processing | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6722 | java | What shows that explicit acquisition beforehand does not seem to provide any help in avoiding deadlock ( contrary to any internet testimonials one may find ) ? | experience | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6723 | java | What does derby have ? | a few important " oh by the way ( s ) " : 1 ) either of the prepared statements : syscs_util . syscs_compress_table ( ) syscs_util . syscs_inplace_compress_table ( ) should be called in autocommit mode . this should already be so for a new connection , by default , but as a formality , we ensure it . since we will not ... | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6724 | java | What incurs deadlock with concurrent anomaly detection engine analyze processing ? | syscs_util . syscs_compress_table | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6725 | java | What will we not reuse ? | the connection object | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6726 | java | What acquire an exclusive table lock for their duration ? | both prepared statements | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6727 | java | What reflects the scoping of this method and the default ( " in place = = true " ) ? | the fact that only the in - place form is trusted by anomaly detection engine at this time ( and so this is currently the only way it is offered publicly ) | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6728 | java | For what purpose do a known database prepared statement invoke ? | to compress a designated table | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6729 | java | What does the fact that only the in - place form is trusted by anomaly detection engine at this time ( and so this is currently the only way it is offered publicly ) reflect ? | the scoping of this method and the default ( " in place = = true " ) | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6730 | java | Why did we ensure it ? | as a formality | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6731 | java | What has a few important " oh by the way ( s ) " : 1 ) either of the prepared statements : syscs_util . syscs_compress_table ( ) syscs_util . syscs_inplace_compress_table ( ) should be called in autocommit mode . this should already be so for a new connection , by default , but as a formality , we ensure it . since we ... | derby | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6732 | java | For what purpose did this be so already ? | for a new connection , by default | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6733 | java | What does both prepared statements acquire ? | an exclusive table lock for their duration | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6734 | java | What does experience show ? | that explicit acquisition beforehand does not seem to provide any help in avoiding deadlock ( contrary to any internet testimonials one may find ) | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6735 | java | What do explicit acquisition beforehand provide ? | any help in avoiding deadlock | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6736 | java | What provides any help in avoiding deadlock ? | explicit acquisition beforehand | private static void compress Table ( String table Name , boolean compress In Place ) throws Ade Internal Exception { logger . trace ( String . format ( STRING , table Name , compress In Place ) ) ; logger . warn ( String . format ( STRING , table Name ) ) ; logger . trace ( String . format ( STRING , table Name ) ) ; } | private static void compressTable ( String tableName , boolean compressInPlace ) throws AdeInternalException { logger . trace ( String . format ( STRING , tableName , compressInPlace ) ) ; logger . warn ( String . format ( STRING , tableName ) ) ; logger . trace ( String . format ( STRING , tableName ) ) ; } | 70 |
java-test-6737 | java | How do the mergehash and the basehash merger this function ? | by over riding any attributes found in the basehash | private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; } | private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; } | 76 |
java-test-6738 | java | Where did any attributes find ? | in the basehash | private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; } | private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; } | 76 |
java-test-6739 | java | What does the code merge with the basehash ? | the mergehash | private Map merge Map ( Map base Hash , Map merge Hash ) { Map results = null ; if ( base Hash != null ) { results = new Hash Map ( base Hash ) ; } if ( merge Hash != null ) { if ( results != null ) { results . put All ( merge Hash ) ; } else { results = merge Hash ; } } return results ; } | private Map mergeMap ( Map baseHash , Map mergeHash ) { Map results = null ; if ( baseHash != null ) { results = new HashMap ( baseHash ) ; } if ( mergeHash != null ) { if ( results != null ) { results . putAll ( mergeHash ) ; } else { results = mergeHash ; } } return results ; } | 76 |
java-test-6740 | java | What did service type parameters use ? | in push or post to registry | private Registry Services build Service Type Params ( Resource resource ) { Registry Services rs = new Registry Services ( ) ; rs . service Types = SERVICE TYPE EML ; rs . service UR Ls = cfg . get Resource Eml Url ( resource . get Shortname ( ) ) ; if ( resource . has Published Data ( ) && resource . get Core Type Ter... | private RegistryServices buildServiceTypeParams ( Resource resource ) { RegistryServices rs = new RegistryServices ( ) ; rs . serviceTypes = SERVICE_TYPE_EML ; rs . serviceURLs = cfg . getResourceEmlUrl ( resource . getShortname ( ) ) ; if ( resource . hasPublishedData ( ) && resource . getCoreTypeTerm ( ) != null ) { ... | 295 |
java-test-6741 | java | What used in push or post to registry ? | service type parameters | private Registry Services build Service Type Params ( Resource resource ) { Registry Services rs = new Registry Services ( ) ; rs . service Types = SERVICE TYPE EML ; rs . service UR Ls = cfg . get Resource Eml Url ( resource . get Shortname ( ) ) ; if ( resource . has Published Data ( ) && resource . get Core Type Ter... | private RegistryServices buildServiceTypeParams ( Resource resource ) { RegistryServices rs = new RegistryServices ( ) ; rs . serviceTypes = SERVICE_TYPE_EML ; rs . serviceURLs = cfg . getResourceEmlUrl ( resource . getShortname ( ) ) ; if ( resource . hasPublishedData ( ) && resource . getCoreTypeTerm ( ) != null ) { ... | 295 |
java-test-6742 | java | What does the code convert into a string ? | the header portion , i . e . codebase , signer , principals , of this policy entry | String header To String ( ) { String p String = principals To String ( ) ; if ( p String . length ( ) == NUM ) { return codebase To String ( ) ; } else { return codebase To String ( ) + STRING + p String ; } } | String headerToString ( ) { String pString = principalsToString ( ) ; if ( pString . length ( ) == _NUM ) { return codebaseToString ( ) ; } else { return codebaseToString ( ) + STRING + pString ; } } | 53 |
java-test-6745 | java | What does the code create ? | a list of shaperecord to draw a line from the given origin ( startx , starty ) to the specified coordinates ( in pixels ) | public static List < Shape Record > line ( double start X , double start Y , double end X , double end Y ) { List < Shape Record > shape Records = new Array List < Shape Record > ( ) ; shape Records . add ( move ( start X , start Y ) ) ; shape Records . add All ( straight Edge ( start X , start Y , end X , end Y ) ) ; ... | public static List < ShapeRecord > line ( double startX , double startY , double endX , double endY ) { List < ShapeRecord > shapeRecords = new ArrayList < ShapeRecord > ( ) ; shapeRecords . add ( move ( startX , startY ) ) ; shapeRecords . addAll ( straightEdge ( startX , startY , endX , endY ) ) ; return shapeRecords... | 87 |
java-test-6746 | java | How should which return always ? | the same as string | public void test Explode ( ) { String [ ] test Strings = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; for ( String test : test Strings ) { String [ ] result Explode = String Utils . explode ( test , STRING ) ; String [ ] result Split = test . split ( STRING ) ; assert Eq... | public void testExplode ( ) { String [ ] testStrings = { STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING , STRING } ; for ( String test : testStrings ) { String [ ] resultExplode = StringUtils . explode ( test , STRING ) ; String [ ] resultSplit = test . split ( STRING ) ; assertEquals ( ... | 140 |
java-test-6748 | java | What does the code compare ? | the equality of two compact array objects | public boolean equals ( Object obj ) { if ( obj == null ) return BOOL ; if ( this == obj ) return BOOL ; if ( get Class ( ) != obj . get Class ( ) ) return BOOL ; Compact Byte Array other = ( Compact Byte Array ) obj ; for ( int i = NUM ; i < UNICODECOUNT ; i ++ ) { if ( element At ( ( char ) i ) != other . element At ... | public boolean equals ( Object obj ) { if ( obj == null ) return _BOOL ; if ( this == obj ) return _BOOL ; if ( getClass ( ) != obj . getClass ( ) ) return _BOOL ; CompactByteArray other = ( CompactByteArray ) obj ; for ( int i = _NUM ; i < UNICODECOUNT ; i ++ ) { if ( elementAt ( ( char ) i ) != other . elementAt ( ( ... | 100 |
java-test-6749 | java | What does the code add ? | a timestamp manifest to this signature | public void add Timestamp Manifest ( String timestamp Manifest Xml ) throws Exception { Element object = get First Element By Tag Name ( document , ds Element ( Constants . TAG OBJECT ) ) ; Document timestamp Manifest Doc = parse Document ( timestamp Manifest Xml , BOOL ) ; Element timestamp Manifest Element = timestam... | public void addTimestampManifest ( String timestampManifestXml ) throws Exception { Element object = getFirstElementByTagName ( document , dsElement ( Constants . _TAG_OBJECT ) ) ; Document timestampManifestDoc = parseDocument ( timestampManifestXml , _BOOL ) ; Element timestampManifestElement = timestampManifestDoc . ... | 85 |
java-test-6751 | java | What did lexes block cut ? | heading and tailing spaces / newlines | protected void re Lex HTMLB Lock ( int block Start , int block End , int last Nonspace Character Offset , I Element Type template Element Type ) { List < Custom Token > tokens = new Array List < Custom Token > ( ) ; int my Offset = lex Spaces In Range ( block Start , block End , tokens ) ; if ( my Offset <= last Nonspa... | protected void reLexHTMLBLock ( int blockStart , int blockEnd , int lastNonspaceCharacterOffset , IElementType templateElementType ) { List < CustomToken > tokens = new ArrayList < CustomToken > ( ) ; int myOffset = lexSpacesInRange ( blockStart , blockEnd , tokens ) ; if ( myOffset <= lastNonspaceCharacterOffset ) { t... | 165 |
java-test-6752 | java | What do we have ? | index file that points to files that were deleted | protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo... | protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ... | 342 |
java-test-6753 | java | What do we need ? | to be really careful in handling index files in case of failures to make sure we have index file that points to files that were deleted | protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo... | protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ... | 342 |
java-test-6754 | java | What do we handle ? | index files | protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo... | protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ... | 342 |
java-test-6755 | java | For what purpose be we be really careful in handling index files ? | in case of failures | protected void finalize ( List < Snapshot Files > snapshots , int file List Generation , Map < String , Blob Meta Data > blobs ) { Blob Store Index Shard Snapshots new Snapshots = new Blob Store Index Shard Snapshots ( snapshots ) ; List < String > blobs To Delete = new Array List < > ( ) ; for ( String blob Name : blo... | protected void finalize ( List < SnapshotFiles > snapshots , int fileListGeneration , Map < String , BlobMetaData > blobs ) { BlobStoreIndexShardSnapshots newSnapshots = new BlobStoreIndexShardSnapshots ( snapshots ) ; List < String > blobsToDelete = new ArrayList < > ( ) ; for ( String blobName : blobs . keySet ( ) ) ... | 342 |
java-test-6756 | java | What does the code create at the given location ? | a field annotation for the given element name | private void create Field Annotation ( J Cas jcas , String local Name , int begin , int end ) { String field Name = null ; if ( use Substitution ) { field Name = substitution . get ( local Name ) ; if ( field Name == null ) { field Name = local Name ; } } else { field Name = local Name ; } Field field = new Field ( jca... | private void createFieldAnnotation ( JCas jcas , String localName , int begin , int end ) { String fieldName = null ; if ( useSubstitution ) { fieldName = substitution . get ( localName ) ; if ( fieldName == null ) { fieldName = localName ; } } else { fieldName = localName ; } Field field = new Field ( jcas , begin , e... | 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.