- Sort Score
- Num 10 results
- Language All
Results 551 - 560 of 1,535 for theme (0.02 seconds)
-
docs_src/app_testing/app_b_an_py39/main.py
from typing import Annotated, Union from fastapi import FastAPI, Header, HTTPException from pydantic import BaseModel fake_secret_token = "coneofsilence" fake_db = { "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"}, "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"}, } app = FastAPI() class Item(BaseModel): id: str title: str description: Union[str, None] = None
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Aug 15 22:31:16 GMT 2024 - 1.1K bytes - Click Count (0) -
tests/test_tutorial/test_extra_models/test_tutorial004.py
def test_get_items(client: TestClient): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [ {"name": "Foo", "description": "There comes my hero"}, {"name": "Red", "description": "It's my aeroplane"}, ] def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.2K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/extension/IntegrationTestExtension.kt
* limitations under the License. */ package gradlebuild.integrationtests.extension import org.gradle.api.provider.Property abstract class IntegrationTestExtension { /** * If enabled, there will be a `GenerateAutoTestedSamplesTestTask` task * that generates a subclass of `AbstractAutoTestedSamplesTest` to * test all snippets embedded in javadoc with `class='autoTested'`. */Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jun 27 08:23:32 GMT 2025 - 1.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
return ImmutableLongArray.copyOf(Arrays.asList(values)); } // Test generators. To let the GWT test suite generator access them, they need to be public named // classes with a public default constructor (not that we run these suites under GWT yet). @J2ktIncompatible @GwtIncompatible // used only from suite @AndroidIncompatible
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.9K bytes - Click Count (0) -
internal/bucket/lifecycle/lifecycle.go
Action: DelMarkerDeleteAllVersionsAction, RuleID: rule.ID, Due: due, }) } // No other conflicting actions in this rule can apply to an object with current version as DEL marker // Note: There could be other rules with earlier expiration which need to be considered. // See TestDelMarkerExpiration continue } // NoncurrentVersionExpiration
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Apr 03 06:45:06 GMT 2025 - 18.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterators.java
return emptyListIterator(); } /** * Returns the empty iterator. * * <p>The {@link Iterable} equivalent of this method is {@link ImmutableSet#of()}. */ // Casting to any type is safe since there are no actual elements. @SuppressWarnings("unchecked") static <T extends @Nullable Object> UnmodifiableListIterator<T> emptyListIterator() { return (UnmodifiableListIterator<T>) ArrayItr.EMPTY; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 16 12:42:11 GMT 2025 - 51.4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/eventbus/EventBusBenchmark.java
eventBus = new EventBus("for benchmarking purposes"); eventBus.register(this); } @Benchmark void postStrings(int reps) { for (int i = 0; i < reps; i++) { eventBus.post("hello there"); } } @Subscribe public void handleStrings(String string) { // Nothing to do here. }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.2K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/package-info.java
* under the License. */ /** * Defines core service interfaces that provide essential Maven functionality such as * artifact resolution, dependency management, and build execution. These services * form the backbone of Maven's extensible architecture. * * @since 4.0.0 */
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 04 14:17:18 GMT 2025 - 1.1K bytes - Click Count (0) -
cmd/is-dir-empty_other.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd // isDirEmpty - returns true if there is no error and no object and prefix inside this directory func isDirEmpty(dirname string, _ bool) bool { entries, err := readDirN(dirname, 1) if err != nil { return false } return len(entries) == 0
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Apr 05 15:17:08 GMT 2024 - 1K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/LongAdder.java
} } return sum; } /** * Resets variables maintaining the sum to zero. This method may be a useful alternative to * creating a new adder, but is only effective if there are no concurrent updates. Because this * method is intrinsically racy, it should only be used when it is known that no threads are * concurrently updating. */ public void reset() { internalReset(0L);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Mar 20 13:05:10 GMT 2025 - 5.5K bytes - Click Count (0)