- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 278 for Weights (0.06 seconds)
-
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");
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Aug 06 12:03:40 GMT 2025 - 8.9K bytes - Click Count (0) -
tests/test_tutorial/test_extra_models/test_tutorial005.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 1.7K bytes - Click Count (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() == {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/Weigher.java
import com.google.common.annotations.GwtCompatible; /** * Calculates the weights of cache entries. * * @author Charles Fry * @since 11.0 */ @GwtCompatible public interface Weigher<K, V> { /** * Returns the weight of a cache entry. There is no unit for entry weights; rather they are simply * relative to each other. * * @return the weight of the entry; must be non-negative */ int weigh(K key, V value);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1K bytes - Click Count (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
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Aug 06 12:03:40 GMT 2025 - 4.6K bytes - Click Count (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);Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 8.2K bytes - Click Count (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 }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.6K bytes - Click Count (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.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.2K bytes - Click Count (0) -
docs/uk/docs/tutorial/body-nested-models.md
Це означає, що навіть якщо клієнти вашого API надсилатимуть ключі у вигляді рядків, якщо вони містять цілі числа, Pydantic конвертує їх і проведе валідацію. Тобто `dict`, який Ви отримаєте як `weights`, матиме ключі типу `int` та значення типу `float`. /// ## Підсумок З **FastAPI** Ви маєте максимальну гнучкість завдяки моделям Pydantic, зберігаючи при цьому код простим, коротким та елегантним.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Feb 28 14:18:01 GMT 2025 - 10.8K bytes - Click Count (0) -
docs/en/docs/tutorial/body-nested-models.md
This means that, even though your API clients can only send strings as keys, as long as those strings contain pure integers, Pydantic will convert them and validate them. And the `dict` you receive as `weights` will actually have `int` keys and `float` values. /// ## Recap { #recap } With **FastAPI** you have the maximum flexibility provided by Pydantic models, while keeping your code simple, short and elegant.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.7K bytes - Click Count (0)