Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 231 - 240 of 811 for functions (0.05 seconds)

  1. tests/test_dependency_yield_scope.py

    def test_app_level_dep_scope_function() -> None:
        app = FastAPI(dependencies=[Depends(raise_after_yield, scope="function")])
    
        @app.get("/app-scope-function")
        def get_app_scope_function():
            return {"status": "ok"}
    
        with TestClient(app) as client:
            response = client.get("/app-scope-function")
            assert response.status_code == 503
            assert response.json() == {"detail": "Exception after yield"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.native.js

     * @return {boolean} Whether the given string is null or is the empty string.
     * @public
     */
    Platform.stringIsNullOrEmpty = function(str) {
      return !str;
    };
    
    
    /**
     * @param {?string} str
     * @return {string} Original str, if it is non-null. Otherwise empty string.
     */
    Platform.nullToEmpty = function(str) {
      return str || "";
    };
    
    
    /**
     * @param {?string} str
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Mar 25 14:03:03 GMT 2020
    - 527 bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Streams.java

    import java.util.Spliterator;
    import java.util.Spliterators;
    import java.util.Spliterators.AbstractSpliterator;
    import java.util.function.BiConsumer;
    import java.util.function.BiFunction;
    import java.util.function.Consumer;
    import java.util.function.DoubleConsumer;
    import java.util.function.IntConsumer;
    import java.util.function.LongConsumer;
    import java.util.stream.BaseStream;
    import java.util.stream.DoubleStream;
    import java.util.stream.IntStream;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 21 15:40:45 GMT 2025
    - 36.8K bytes
    - Click Count (0)
  4. docs/fr/docs/alternatives.md

    Il est conçu pour avoir des fonctions qui reçoivent deux paramètres, une "requête" et une "réponse". Ensuite, vous
    "lisez" des parties de la requête et "écrivez" des parties dans la réponse. En raison de cette conception, il n'est
    pas possible de déclarer des paramètres de requête et des corps avec des indications de type Python standard comme paramètres de fonction.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

      public void testAbsent() {
        assertEquals(
            "Map.merge(absent, value, function) should return value",
            v3(),
            getMap()
                .merge(
                    k3(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was absent");
                    }));
        expectAdded(e3());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderFactory.java

            });
      }
    
      private static final Function<Object, Optional<?>> NULLABLE_TO_OPTIONAL =
          new Function<Object, Optional<?>>() {
            @Override
            public Optional<?> apply(@Nullable Object obj) {
              return Optional.fromNullable(obj);
            }
          };
    
      private static final Function<Optional<?>, @Nullable Object> OPTIONAL_TO_NULLABLE =
          new Function<Optional<?>, @Nullable Object>() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

       * correctly requests of varying weight (permits), /no matter/ what the actual function is - so we
       * can tweak the latter freely. (The only requirement, obviously, is that we can compute its
       * integrals).
       *
       * Note well that if, for this function, we chose a horizontal line, at height of exactly (1/QPS),
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  8. guava/src/com/google/common/base/Supplier.java

    /**
     * Legacy version of {@link java.util.function.Supplier java.util.function.Supplier}. Semantically,
     * this could be a factory, generator, builder, closure, or something else entirely. No guarantees
     * are implied by this interface.
     *
     * <p>The {@link Suppliers} class provides common suppliers and related utilities.
     *
     * <p>As this interface extends {@code java.util.function.Supplier}, an instance of this type can be
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jun 19 17:20:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterRequest.java

     * under the License.
     */
    package org.apache.maven.api.services.xml;
    
    import java.io.OutputStream;
    import java.io.Writer;
    import java.nio.file.Path;
    import java.util.function.Function;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.annotations.Nullable;
    
    /**
     * An XML writer request.
     *
     * @since 4.0.0
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Aug 10 22:21:50 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/math/MathTesting.java

            }
          };
    
      /* Helper function to make a BigInteger value from a Long. */
      private static final Function<Long, BigInteger> TO_BIGINTEGER =
          new Function<Long, BigInteger>() {
            @Override
            public BigInteger apply(Long n) {
              return BigInteger.valueOf(n);
            }
          };
    
      private static final Function<Integer, Integer> NEGATE_INT =
          new Function<Integer, Integer>() {
            @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 11.3K bytes
    - Click Count (0)
Back to Top