- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,880 for math (0.02 sec)
-
tests/lru_test.go
package tests_test import ( "crypto/rand" "fmt" "math" "math/big" "reflect" "sync" "testing" "time" "gorm.io/gorm/internal/lru" ) func TestLRU_Add_ExistingKey_UpdatesValueAndExpiresAt(t *testing.T) { lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1) lru.Add("key1", 2) if value, ok := lru.Get("key1"); !ok || value != 2 {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Sep 08 09:19:22 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/CacheStats.java
* the License. */ package com.google.common.cache; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.math.LongMath.saturatedAdd; import static com.google.common.math.LongMath.saturatedSubtract; import static java.lang.Math.max; import com.google.common.annotations.GwtCompatible; import com.google.common.base.MoreObjects; import java.util.Objects; import java.util.concurrent.Callable;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheStats.java
* the License. */ package com.google.common.cache; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.math.LongMath.saturatedAdd; import static com.google.common.math.LongMath.saturatedSubtract; import static java.lang.Math.max; import com.google.common.annotations.GwtCompatible; import com.google.common.base.MoreObjects; import java.util.Objects; import java.util.concurrent.Callable;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.convert; import java.math.BigInteger; /** * Utility class for conversions related to {@link BigInteger}. * * @author higa */ public abstract class BigIntegerConversionUtil { /** * Do not instantiate. */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
checkArgument(array.length > 0); double min = array[0]; for (int i = 1; i < array.length; i++) { min = Math.min(min, array[i]); } return min; } /** * Returns the greatest value present in {@code array}, using the same rules of comparison as * {@link Math#max(double, double)}. * * @param array a <i>nonempty</i> array of {@code double} values
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 27.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.convert; import java.math.BigDecimal; import java.math.BigInteger; import java.text.DecimalFormatSymbols; import java.util.Locale; import org.codelibs.core.lang.StringUtil; import org.codelibs.core.text.DecimalFormatSymbolsUtil; /**
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
int start = 0; // Write server name (16 bytes, null padded) byte[] nameBytes = serverName.getBytes(StandardCharsets.US_ASCII); System.arraycopy(nameBytes, 0, buffer, bufferIndex, Math.min(nameBytes.length, 15)); bufferIndex += 16; // Write version major (1 byte) buffer[bufferIndex++] = (byte) versionMajor; // Write version minor (1 byte)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
api/go1.23.txt
pkg maps, func Values[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq[$2] #61900 pkg math/rand/v2, func Uint() uint #61716 pkg math/rand/v2, method (*ChaCha8) Read([]uint8) (int, error) #67059 pkg math/rand/v2, method (*Rand) Uint() uint #61716 pkg net, method (*DNSError) Unwrap() error #63116 pkg net, method (*TCPConn) SetKeepAliveConfig(KeepAliveConfig) error #62254
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Tue Jun 25 17:08:08 UTC 2024 - 10.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessClient.java
// Exponential backoff on errors: max 30 seconds, based on consecutive failures try { int failures = Math.min(registration.getHeartbeatFailures(), MAX_FAILURE_LIMIT); long backoffDelay = Math.min(MAX_ERROR_BACKOFF, BASE_ERROR_DELAY * (1L << failures)); Thread.sleep(backoffDelay); } catch (InterruptedException ie) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0)