- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 117 for Weights (0.04 sec)
-
impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparatorTest.java
long weightC = comparator.getProjectWeight(projectC); long weightX = comparator.getProjectWeight(projectX); // Project A should have the highest weight as it's at the root assertTrue(weightA > weightB, "Project A should have weight > Project B"); assertTrue(weightA > weightC, "Project A should have weight > Project C"); assertTrue(weightB > weightX, "Project B should have weight > Project X");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Aug 06 12:03:40 UTC 2025 - 8.9K bytes - Viewed (0) -
tests/test_tutorial/test_extra_models/test_tutorial005.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
def test_post_body(client: TestClient): data = {"2": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 200, response.text assert response.json() == data def test_post_invalid_body(client: TestClient): data = {"foo": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 422, response.text assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java
* <ul> * <li>Project D: weight = 1 (no downstream dependencies)</li> * <li>Project B: weight = 2 (1 + max(D=1))</li> * <li>Project C: weight = 2 (1 + max(D=1))</li> * <li>Project A: weight = 3 (1 + max(B=2, C=2))</li> * </ul> * <p>Build order: A (weight=3), then B and C (weight=2, ordered by project ID), then D (weight=1) * <p>If projects have identical weights and IDs, the order is deterministic but may not preserve
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Aug 06 12:03:40 UTC 2025 - 4.6K bytes - Viewed (0) -
docs/de/docs/tutorial/body-nested-models.md
Das bedeutet, dass Ihre API-Clients nur Strings senden können, aber solange diese Strings nur Zahlen enthalten, wird Pydantic sie konvertieren und validieren. Und das `dict`, welches Sie als `weights` erhalten, wird `int`-Schlüssel und `float`-Werte haben. /// ## Zusammenfassung { #recap }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RequestDataTest.java
data.setUrl(null); assertNull(data.getUrl()); } public void test_weightGetterSetter() { // Test weight getter/setter RequestData data = new RequestData(); // Default weight should be 1.0 assertEquals(1.0f, data.getWeight(), 0.001f); data.setWeight(0.5f); assertEquals(0.5f, data.getWeight(), 0.001f);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 8.2K bytes - Viewed (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java
urlQueue.setWeight(i); // Higher number = higher weight urlQueueList.add(urlQueue); } urlQueueService.offerAll(sessionId, urlQueueList); // Poll - items should be ordered by weight (descending) final OpenSearchUrlQueue first = urlQueueService.poll(sessionId); assertNotNull(first); // Weight should be highest assertTrue(first.getWeight() >= 1);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 08:40:57 UTC 2025 - 14.3K bytes - Viewed (0) -
docs/es/docs/tutorial/body-nested-models.md
Esto significa que, aunque tus clientes de API solo pueden enviar strings como claves, mientras esos strings contengan enteros puros, Pydantic los convertirá y validará. Y el `dict` que recibas como `weights` tendrá realmente claves `int` y valores `float`. /// ## Resumen { #recap } Con **FastAPI** tienes la máxima flexibilidad proporcionada por los modelos Pydantic, manteniendo tu código simple, corto y elegante.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-nested-models.md
Isso significa que, embora os clientes da API só possam enviar strings como chaves, desde que essas strings contenham inteiros puros, o Pydantic irá convertê-los e validá-los. E o `dict` que você recebe como `weights` terá, na verdade, chaves `int` e valores` float`. /// ## Recapitulação { #recap }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.4K bytes - Viewed (0) -
docs/uk/docs/tutorial/body-nested-models.md
Це означає, що навіть якщо клієнти вашого API надсилатимуть ключі у вигляді рядків, якщо вони містять цілі числа, Pydantic конвертує їх і проведе валідацію. Тобто `dict`, який Ви отримаєте як `weights`, матиме ключі типу `int` та значення типу `float`. /// ## Підсумок З **FastAPI** Ви маєте максимальну гнучкість завдяки моделям Pydantic, зберігаючи при цьому код простим, коротким та елегантним.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 28 14:18:01 UTC 2025 - 10.8K bytes - Viewed (0)