Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 38 for 216 (0.01 seconds)

  1. tests/test_custom_middleware_exception.py

    app.include_router(router)
    app.add_middleware(ContentSizeLimitMiddleware, max_content_size=2**8)
    
    
    client = TestClient(app)
    
    
    def test_custom_middleware_exception(tmp_path: Path):
        default_pydantic_max_size = 2**16
        path = tmp_path / "test.txt"
        path.write_bytes(b"x" * (default_pydantic_max_size + 1))
    
        with client:
            with open(path, "rb") as file:
                response = client.post("/middleware", files={"file": file})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

              k1 ^= (long) toUnsignedInt(bb.get(4)) << 32; // fall through
            case 4:
              k1 ^= (long) toUnsignedInt(bb.get(3)) << 24; // fall through
            case 3:
              k1 ^= (long) toUnsignedInt(bb.get(2)) << 16; // fall through
            case 2:
              k1 ^= (long) toUnsignedInt(bb.get(1)) << 8; // fall through
            case 1:
              k1 ^= (long) toUnsignedInt(bb.get(0));
              break;
            default:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/CompactHashing.java

      private static final int BYTE_MAX_SIZE = 1 << Byte.SIZE; // 2^8 = 256
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    
      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
       * Returns the power of 2 hashtable size required to hold the expected number of items or the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/CompactHashing.java

      private static final int BYTE_MAX_SIZE = 1 << Byte.SIZE; // 2^8 = 256
      private static final int BYTE_MASK = (1 << Byte.SIZE) - 1; // 2^8 - 1 = 255
    
      private static final int SHORT_MAX_SIZE = 1 << Short.SIZE; // 2^16 = 65_536
      private static final int SHORT_MASK = (1 << Short.SIZE) - 1; // 2^16 - 1 = 65_535
    
      /**
       * Returns the power of 2 hashtable size required to hold the expected number of items or the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                assertEquals(700L, SMBUtil.readInt8(buffer, EXPECTED_SIZE * 2));
                assertEquals(800L, SMBUtil.readInt8(buffer, EXPECTED_SIZE * 2 + 8));
                assertEquals(900, SMBUtil.readInt4(buffer, EXPECTED_SIZE * 2 + 16));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
        class EdgeCaseTests {
    
            @Test
            @DisplayName("Should handle encoding with minimum buffer size")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  6. CHANGELOG/CHANGELOG-1.21.md

      - [Changelog since v1.21.6](#changelog-since-v1216)
      - [Changes by Kind](#changes-by-kind-6)
        - [Feature](#feature-4)
        - [Failing Test](#failing-test)
        - [Bug or Regression](#bug-or-regression-6)
      - [Dependencies](#dependencies-7)
        - [Added](#added-7)
        - [Changed](#changed-7)
        - [Removed](#removed-7)
    - [v1.21.6](#v1216)
      - [Downloads for v1.21.6](#downloads-for-v1216)
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Fri Oct 14 07:03:14 GMT 2022
    - 367.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/NtlmUtilTest.java

            int len = clean.length();
            byte[] out = new byte[len / 2];
            for (int i = 0; i < len; i += 2) {
                out[i / 2] = (byte) Integer.parseInt(clean.substring(i, i + 2), 16);
            }
            return out;
        }
    
        @Test
        @DisplayName("getNTHash: known vector for 'password'")
        void testGetNTHash_knownVector() {
            // Arrange
            String password = "password";
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  8. src/test/java/jcifs/internal/dtyp/ACETest.java

                "0x08, Invalid" })
        void testGetApplyToText(String flagsHex, String expectedText) {
            ace.flags = Integer.parseInt(flagsHex.substring(2), 16);
            assertEquals(expectedText, ace.getApplyToText());
        }
    
        @Test
        @DisplayName("Test toString format for allow ACE")
        void testToStringAllowACE() throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

                context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
                int encoded = context.encode(buffer, 0);
    
                assertEquals(4 + (count * 2) + 16, encoded);
                assertEquals(context.size(), encoded);
            }
    
            @Test
            @DisplayName("Should encode and decode correctly")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN);
    
                // DfsReferralResponseBuffer header
                bb.putShort((short) 32); // pathConsumed (will be divided by 2 = 16)
                bb.putShort((short) 2); // numReferrals
                bb.putShort((short) 7); // tflags
                bb.putShort((short) 0); // tflags high bytes
    
                // First Referral v1
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.4K bytes
    - Click Count (0)
Back to Top