Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 3,545 for getE (0.04 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
        assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS));
        nested.set("foo");
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertEquals("foo", future.get());
      }
    
      private static class Foo {}
    
      private static class FooChild extends Foo {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. internal/config/lambda/parse.go

    		}
    
    		webhookArgs := target.WebhookArgs{
    			Enable:     enabled,
    			Endpoint:   *url,
    			Transport:  transport,
    			AuthToken:  env.Get(authEnv, kv.Get(target.WebhookAuthToken)),
    			ClientCert: env.Get(clientCertEnv, kv.Get(target.WebhookClientCert)),
    			ClientKey:  env.Get(clientKeyEnv, kv.Get(target.WebhookClientKey)),
    		}
    		if err = webhookArgs.Validate(); err != nil {
    			return nil, err
    		}
    		webhookTargets[k] = webhookArgs
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. tests/test_security_api_key_header_description.py

        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_api_key():
        response = client.get("/users/me", headers={"key": "secret"})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          assertThat(ioe.cause!!).isInstanceOf<EOFException>()
        }
      }
    
      // TODO GET preferred order - with tests to confirm this
      // 1. successful fresh cached GET response
      // 2. unsuccessful (404, 500) fresh cached GET response
      // 3. successful network response
      // 4. successful stale cached GET response
      // 5. unsuccessful response
      @Test
      fun usesCache() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradient_checker.cc

          thetaMinus.reset(thetaMinus_raw);
        }
    
        // Get f(theta + eps):
        theta_inputs[input_index] = thetaPlus.get();
        TF_RETURN_IF_ERROR(
            RunAndMaybeSum(ctx, forward, theta_inputs, f_outputs, use_function));
        AbstractTensorHandlePtr fPlus(f_outputs[0]);
    
        // Get f(theta - eps):
        theta_inputs[input_index] = thetaMinus.get();
        TF_RETURN_IF_ERROR(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertNull(map.putIfAbsent("bar", 3));
        assertEquals(Integer.valueOf(3), map.get("bar"));
      }
    
      public void testRemove() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.remove("foo", 2));
        assertFalse(map.remove("bar", 1));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertTrue(map.remove("foo", 1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
  7. tests/test_regex_deprecated_params.py

    @needs_py310
    def test_query_params_str_validations_no_query():
        client = get_client()
        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == "Hello World"
    
    
    @needs_py310
    def test_query_params_str_validations_q_fixedquery():
        client = get_client()
        response = client.get("/items/", params={"q": "fixedquery"})
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/bsbhv/BsLabelTypeBhv.java

                result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy")));
                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setExcludedPaths(DfTypeUtil.toString(source.get("excludedPaths")));
                result.setIncludedPaths(DfTypeUtil.toString(source.get("includedPaths")));
                result.setName(DfTypeUtil.toString(source.get("name")));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/UnresolvableModelException.java

            this.artifactId = artifactId;
            this.version = version;
        }
    
        /**
         * Gets the group id of the unresolvable model.
         *
         * @return The group id of the unresolvable model, can be empty but never {@code null}.
         */
        public String getGroupId() {
            return groupId;
        }
    
        /**
         * Gets the artifact id of the unresolvable model.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_dependencies/test_tutorial006.py

                ]
            }
        )
    
    
    def test_get_invalid_one_header():
        response = client.get("/items/", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_get_invalid_second_header():
        response = client.get(
            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top