- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 96 for SUM (0.01 sec)
-
guava/src/com/google/common/util/concurrent/AtomicLongMap.java
public void removeAllZeros() { map.values().removeIf(x -> x == 0); } /** * Returns the sum of all values in this map. * * <p>This method is not atomic: the sum may or may not include other concurrent operations. */ public long sum() { return map.values().stream().mapToLong(Long::longValue).sum(); } @LazyInit private transient @Nullable Map<K, Long> asMap;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Oct 10 23:13:45 UTC 2025 - 11.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
for (int i = 0; i < elements.length; i++) { // add to either; sum should contain all if (i % 2 == 0) { multiset1.add(elements[i]); } else { multiset2.add(elements[i]); } } return sum(multiset1, multiset2); } }; } private static TestStringMultisetGenerator differenceGenerator() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 9.7K bytes - Viewed (0) -
tests/.gitignore
go.sum...
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Jul 28 06:46:48 UTC 2020 - 7 bytes - Viewed (0) -
clause/expression_test.go
}, { Expressions: []clause.Expression{ clause.Eq{Column: clause.Expr{SQL: "SUM(?)", Vars: []interface{}{clause.Column{Name: "id"}}}, Value: 100}, }, ExpectedVars: []interface{}{100}, Result: "SUM(`id`) = ?", }, { Expressions: []clause.Expression{ clause.Gte{Column: clause.Expr{SQL: "SUM(?)", Vars: []interface{}{clause.Column{Table: "users", Name: "id"}}}, Value: 100}, },Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Nov 04 07:04:52 UTC 2025 - 8.9K bytes - Viewed (0) -
tests/joins_test.go
iv := DB.Table(`table_invoices`).Select(`seller, SUM(total) as total, SUM(paid) as paid, SUM(balance) as balance`).Group(`seller`) stmt = dryDB.Table(`table_employees`).Select(`id, name, iv.total, iv.paid, iv.balance`).Joins(`LEFT JOIN (?) AS iv ON iv.seller = table_employees.id`, iv).Scan(&user).Statement
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 15K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
int expectedHashCode = 0; for (E element : getSampleElements()) { expectedHashCode += (element == null) ? 0 : element.hashCode(); } assertEquals( "A Set's hashCode() should be the sum of those of its elements.", expectedHashCode, getSet().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @CollectionFeature.Require(ALLOWS_NULL_VALUES)Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
public void testHashCode() { int expectedHashCode = 0; for (Entry<K, V> entry : getSampleEntries()) { expectedHashCode += hash(entry); } assertEquals( "A Map's hashCode() should be the sum of those of its entries.", expectedHashCode, getMap().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @MapFeature.Require(ALLOWS_NULL_KEYS)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
int expectedHashCode = 0; for (E element : getSampleElements()) { expectedHashCode += (element == null) ? 0 : element.hashCode(); } assertEquals( "A Set's hashCode() should be the sum of those of its elements.", expectedHashCode, getSet().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @CollectionFeature.Require(ALLOWS_NULL_VALUES)Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 3.1K bytes - Viewed (0) -
docs_src/custom_request_and_route/tutorial002_an_py310.py
return custom_route_handler app = FastAPI() app.router.route_class = ValidationErrorLoggingRoute @app.post("/") async def sum_numbers(numbers: Annotated[list[int], Body()]):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 10 08:55:32 UTC 2025 - 974 bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
public void testHashCode() { int expectedHashCode = 0; for (Entry<K, V> entry : getSampleEntries()) { expectedHashCode += hash(entry); } assertEquals( "A Map's hashCode() should be the sum of those of its entries.", expectedHashCode, getMap().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @MapFeature.Require(ALLOWS_NULL_KEYS)
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0)