Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 696 for resets (0.04 seconds)

  1. src/bytes/buffer_test.go

    	buf := NewBuffer(make([]byte, n))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteByte('x')
    		}
    	}
    }
    
    func BenchmarkWriteRune(b *testing.B) {
    	const n = 4 << 10
    	const r = '☺'
    	b.SetBytes(int64(n * utf8.RuneLen(r)))
    	buf := NewBuffer(make([]byte, n*utf8.UTFMax))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    		for i := 0; i < n; i++ {
    			buf.WriteRune(r)
    		}
    	}
    }
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. prepare_stmt.go

    func (db *PreparedStmtDB) Close() {
    	db.Mux.Lock()
    	defer db.Mux.Unlock()
    
    	for _, key := range db.Stmts.Keys() {
    		db.Stmts.Delete(key)
    	}
    }
    
    // Reset Deprecated use Close instead
    func (db *PreparedStmtDB) Reset() {
    	db.Close()
    }
    
    func (db *PreparedStmtDB) prepare(ctx context.Context, conn ConnPool, isTransaction bool, query string) (_ *stmt_store.Stmt, err error) {
    	db.Mux.RLock()
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Fri Apr 25 08:22:26 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

        @Mock
        private CommonServerMessageBlockRequest splitRequest;
    
        @Mock
        private CommonServerMessageBlockRequest cancelRequest;
    
        @BeforeEach
        void setUp() {
            // Reset mocks before each test
            reset(request, nextRequest, splitRequest, cancelRequest);
        }
    
        @Test
        @DisplayName("Test isResponseAsync returns true when response is async")
        void testIsResponseAsyncTrue() {
            // Given
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            return state.get();
        }
    
        /**
         * Reset the circuit breaker
         */
        public void reset() {
            state.set(State.CLOSED);
            consecutiveFailures.set(0);
            halfOpenSuccesses.set(0);
            lastFailureTime.set(0);
            stateChangeTime.set(System.currentTimeMillis());
            log.info("Circuit breaker {} reset", name);
        }
    
        /**
         * Force the circuit to open
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            // Wait for original TTL to pass
            Thread.sleep(600);
    
            // Should still not be expired because we reset
            assertFalse(auth.isExpired());
    
            // Wait for the full TTL since reset
            Thread.sleep(500);
    
            // Now it should be expired
            assertTrue(auth.isExpired());
        }
    
        /**
         * Test password array independence after construction
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  6. docs/bucket/replication/DESIGN.md

    re-syncing of previously replicated objects. This command generates a ResetID which is a unique UUID saved to the remote target config along with the applicable date(defaults to time of initiating the reset). All objects created prior to this date are eligible for re-replication if existing object replication is enabled for the replication rule the object satisfies. At the time of completion of replication, `x-minio-internal-replication-reset-arn:<arn>` is set in the metadata with the timestamp of replication...
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/additional-status-codes.md

    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning | Advertencia
    
    Cuando devuelves un `Response` directamente, como en el ejemplo anterior, se devuelve directamente.
    
    No se serializará con un modelo, etc.
    
    Asegúrate de que tenga los datos que deseas que tenga y que los valores sean JSON válidos (si estás usando `JSONResponse`).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. cmd/metacache_gen_test.go

    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodemetacache Msgsize() is inaccurate")
    	}
    
    	vn := metacache{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    func BenchmarkEncodemetacache(b *testing.B) {
    	v := metacache{}
    	var buf bytes.Buffer
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java

        }
    
        /**
         * Sets the output encoding.
         * @param outputEncoding The output encoding.
         */
        public void setOutputEncoding(final String outputEncoding) {
            this.outputEncoding = outputEncoding;
        }
    
        /**
         * Sets whether to read content as text if extraction fails.
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 12:19:14 GMT 2025
    - 30.8K bytes
    - Click Count (0)
  10. internal/ringbuffer/ring_buffer.go

    	}
    
    	err := r.readErr(true)
    	if err == io.EOF {
    		return nil
    	}
    	return err
    }
    
    // Reset the read pointer and writer pointer to zero.
    func (r *RingBuffer) Reset() {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    
    	// Set error so any readers/writers will return immediately.
    	r.setErr(errors.New("reset called"), true)
    	if r.block {
    		r.readCond.Broadcast()
    		r.writeCond.Broadcast()
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.3K bytes
    - Click Count (0)
Back to Top