Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 531 - 540 of 3,772 for getA (0.12 seconds)

  1. guava-tests/test/com/google/common/collect/HashBiMapTest.java

          assertEquals(2 * i + 1, (int) bimap.get(2 * i));
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i, (int) inverse.get(2 * i + 1));
        }
        for (int i = 0; i < N; i++) {
          int oldValue = bimap.get(2 * i);
          assertEquals(2 * i + 1, (int) bimap.put(2 * i, oldValue - 2));
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i - 1, (int) bimap.get(2 * i));
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. tests/test_security_http_base.py

    app = FastAPI()
    
    security = HTTPBase(scheme="Other")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_base():
        response = client.get("/users/me", headers={"Authorization": "Other foobar"})
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  3. tests/test_security_oauth2_password_bearer_optional_description.py

        auto_error=False,
    )
    
    
    @app.get("/items/")
    async def read_items(token: str | None = Security(oauth2_scheme)):
        if token is None:
            return {"msg": "Create an account first"}
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
        response = client.get("/items")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/CartesianList.java

          @Override
          public int size() {
            return axes.size();
          }
    
          @Override
          public E get(int axis) {
            checkElementIndex(axis, size());
            int axisIndex = getAxisIndexForProductIndex(index, axis);
            return axes.get(axis).get(axisIndex);
          }
    
          @Override
          boolean isPartialView() {
            return true;
          }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

    /**
     */
    @Deprecated
    class DefaultModelBuilderFactoryTest {
    
        private static final String BASE_DIR =
                Paths.get("src", "test", "resources", "poms", "factory").toString();
    
        private File getPom(String name) {
            return new File(Paths.get(BASE_DIR, name + ".xml").toString()).getAbsoluteFile();
        }
    
        @Test
        void testCompleteWiring() throws Exception {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java

            assertNotSame(option1, option3);
    
            // But all should have the same configuration
            assertEquals(option1.getFieldNaming().get(), option2.getFieldNaming().get());
            assertEquals(option2.getFieldNaming().get(), option3.getFieldNaming().get());
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/SparseImmutableTable.java

          Cell<R, C, V> cell = cellList.get(i);
          R rowKey = cell.getRowKey();
          C columnKey = cell.getColumnKey();
          V value = cell.getValue();
    
          /*
           * These requireNonNull calls are safe because we construct the maps to hold all the provided
           * cells.
           */
          cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey));
          Map<C, V> thisRow = requireNonNull(rows.get(rowKey));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsWebAuthenticationBhv.java

                result.setAuthRealm(DfTypeUtil.toString(source.get("authRealm")));
                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setHostname(DfTypeUtil.toString(source.get("hostname")));
                result.setParameters(DfTypeUtil.toString(source.get("parameters")));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

              }
            };
    
        cache.put(0, 10);
    
        assertThat(cache.get(0, loader)).isEqualTo(10);
        assertThat(cache.get(20, loader)).isEqualTo(1);
        assertThat(cache.get(34, loader)).isEqualTo(2);
    
        cache.invalidate(0);
        assertThat(cache.get(0, loader)).isEqualTo(3);
    
        cache.put(0, 10);
        cache.invalidateAll();
        assertThat(cache.get(0, loader)).isEqualTo(4);
      }
    
      @Test
      public void sizeConstraint() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java

        public void setSequenceNumber(long sequenceNumber) {
            this.sequenceNumber = sequenceNumber;
        }
    
        /**
         * Gets the sequence number.
         *
         * @return the sequence number
         */
        public long getSequenceNumber() {
            return sequenceNumber;
        }
    
        /**
         * Gets the response sequence number returned by the server.
         * This should match the request sequence number in a successful response.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 09:06:40 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top