Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 6,448 for retain (0.07 seconds)

  1. guava-tests/test/com/google/common/graph/GraphMutationTest.java

            assertThat(graph.removeNode(nodeList.get(i))).isTrue();
          }
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes
          AbstractGraphTest.validateGraph(graph);
    
          Collections.shuffle(nodeList, gen);
          for (Integer node : nodeList) {
            assertThat(graph.addNode(node)).isTrue();
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

     * </ul>
     *
     * The buffer is created with enough capacity for a 64‑bit value.
     */
    @ExtendWith(MockitoExtension.class)
    public class NdrHyperTest {
    
        /**
         * Tests a simple round‑trip encode → decode retains the original value.
         */
        @Test
        @DisplayName("Basic round‑trip for a fixed value")
        public void testEncodeRoundTrip() throws NdrException {
            final long original = 0x1122334455667788L;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  3. lib/fips140/v1.0.0-c2097c7c.zip

    0xb2, 0xc4, 0x8d, 0x40, 0xa2, 0x6e, 0x7a, 0xc4, 0xff, 0xbd, 0x35, } b, err := New(key) if err != nil { return err } buf := make([]byte, 16) NewCBCEncrypter(b, iv).CryptBlocks(buf, plaintext) if !bytes.Equal(buf, ciphertext) { return errors.New("unexpected result") } NewCBCDecrypter(b, iv).CryptBlocks(buf, ciphertext) if !bytes.Equal(buf, plaintext) { return errors.New("unexpected result") } return nil }) } golang.org/fips140@v1.0.0-c2097c7c/fips140/v1.0.0-c2097c7c/aes/cbc.go // Copyright 2024 The Go...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Verify large message is handled
            assertNotNull(result);
            assertTrue(result.length() > 1000);
            assertTrue(result.contains("Error detail 0"));
            assertTrue(result.contains("Error detail 999"));
            assertTrue(result.endsWith("\n"));
        }
    
        @Test
        public void test_execute_withCheckedExceptionWrapped() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          check(!closed) { "closed" }
          if (inputExhausted) return -1
    
          val read = super.read(sink, byteCount)
          if (read == -1L) {
            inputExhausted = true
            responseBodyComplete(trailers = Headers.EMPTY)
            return -1
          }
          return read
        }
    
        override fun close() {
          if (closed) return
          if (!inputExhausted) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 17.6K bytes
    - Click Count (7)
  6. tests/test_tuples.py

        y: float
    
    
    @app.post("/model-with-tuple/")
    def post_model_with_tuple(item_group: ItemGroup):
        return item_group
    
    
    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    def hello(values: tuple[int, int] = Form()):
        return values
    
    
    client = TestClient(app)
    
    
    def test_model_with_tuple_valid():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  7. .github/workflows/multipart/migrate.sh

    	if [[ $? -eq 0 ]]; then
    		echo "Outputs are consistent."
    		break
    	fi
    
    	remaining_attempts=$((max_wait_attempts - attempt))
    	if ((attempt >= max_wait_attempts)); then
    		echo "Outputs remain inconsistent after $max_wait_attempts attempts. Exiting with error."
    		exit 1
    	else
    		echo "Outputs are inconsistent. Waiting for $wait_interval seconds (attempt $attempt/$max_wait_attempts)."
    		sleep $wait_interval
    	fi
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon May 27 19:17:46 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            assertEquals("success", result, "Operation should return correct result");
            assertEquals(State.CLOSED, circuitBreaker.getState(), "State should remain CLOSED");
            assertEquals(0, circuitBreaker.getFailureCount(), "Failure count should remain 0");
        }
    
        @Test
        public void testFailureThresholdOpensCircuit() {
            // Fail 3 times to open circuit
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  9. docs_src/authentication_error_status_code/tutorial001_an_py310.py

        def make_not_authenticated_error(self) -> HTTPException:
            return HTTPException(
                status_code=status.HTTP_403_FORBIDDEN, detail="Not authenticated"
            )
    
    
    CredentialsDep = Annotated[HTTPAuthorizationCredentials, Depends(HTTPBearer403())]
    
    
    @app.get("/me")
    def read_me(credentials: CredentialsDep):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 618 bytes
    - Click Count (0)
  10. docs_src/handling_errors/tutorial005_py310.py

    async def validation_exception_handler(request: Request, exc: RequestValidationError):
        return JSONResponse(
            status_code=422,
            content=jsonable_encoder({"detail": exc.errors(), "body": exc.body}),
        )
    
    
    class Item(BaseModel):
        title: str
        size: int
    
    
    @app.post("/items/")
    async def create_item(item: Item):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 626 bytes
    - Click Count (0)
Back to Top