- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 310 for sliced (0.04 sec)
-
tests/scan_test.go
t.Errorf("Scan double age as age, expect: %v, got %v", res.Age*2, doubleAgeRes.Age) } var results []result DB.Table("users").Select("name, age").Where("id in ?", []uint{user2.ID, user3.ID}).Scan(&results) sort.Slice(results, func(i, j int) bool { return strings.Compare(results[i].Name, results[j].Name) <= -1 }) if len(results) != 2 || results[0].Name != user2.Name || results[1].Name != user3.Name {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10.9K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
return fi, nil } // Read at most this much on initial read. const metaDataReadDefault = 4 << 10 // Return used metadata byte slices here. var metaDataPool = bpool.Pool[[]byte]{New: func() []byte { return make([]byte, 0, metaDataReadDefault) }} // metaDataPoolGet will return a byte slice with capacity at least metaDataReadDefault. // It will be length 0. func metaDataPoolGet() []byte { return metaDataPool.Get()[:0] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 65.6K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
int chunk2 = dataSize - chunk1; // Write just enough to not trip the threshold if (chunk1 > 0) { write(out, data, 0, chunk1, singleByte); assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source)); } File file = out.getFile(); assertThat(file).isNull(); // Write data to go over the threshold if (chunk2 > 0) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 16:30:29 UTC 2025 - 6.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/StringUtilTest.java
} @Test @DisplayName("Should handle whitespace delimiter") void testJoinWithWhitespaceDelimiter() { String result = StringUtil.join(" ", "spaced", "out"); assertEquals("spaced out", result); } @Test @DisplayName("Should handle elements containing delimiter") void testJoinElementsContainingDelimiter() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/tasks/IntegrationTest.kt
override fun setClasspath(classpath: FileCollection) { /* * The 'kotlin-daemon-client.jar' repackages 'native-platform' with all its binaries. * Here we make sure it is placed at the end of the test classpath so that we do not accidentally * pick parts of 'native-platform' from the 'kotlin-daemon-client.jar' when instantiating * a Gradle runner. */Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 2K bytes - Viewed (0) -
cmd/data-usage-utils.go
for tier, stats := range ts { infos = append(infos, madmin.TierInfo{ Name: tier, Type: globalTierConfigMgr.TierType(tier), Stats: stats, }) } sort.Slice(infos, func(i, j int) bool { if infos[i].Type == "internal" { return true } if infos[j].Type == "internal" { return false } return infos[i].Name < infos[j].Name }) return infos }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 10 09:15:15 UTC 2024 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/math/Quantiles.java
from = partitionPoint + 1; } } } /** * Performs a partition operation on the slice of {@code array} with elements in the range [{@code * from}, {@code to}]. Uses the median of {@code from}, {@code to}, and the midpoint between them * as a pivot. Returns the index which the slice is partitioned around, i.e. if it returns {@codeRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 30.1K bytes - Viewed (0) -
cmd/peer-rest-client.go
time.Sleep(5 * time.Second) } } }() } // newPeerRestClients creates new peer clients. // The two slices will point to the same clients, // but 'all' will contain nil entry for local client. // The 'all' slice will be in the same order across the cluster. func newPeerRestClients(endpoints EndpointServerPools) (remote, all []*peerRESTClient) { if !globalIsDistErasure {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 26.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Dependency.java
@Experimental @Immutable public interface Dependency extends Artifact { /** * {@return the type of the dependency}. * A dependency can be a <abbr>JAR</abbr> file, * a modular-<abbr>JAR</abbr> if it is intended to be placed on the module path, * a <abbr>JAR</abbr> containing test classes, <i>etc.</i> * * @see DependencyCoordinates#getType() */ @Nonnull Type getType(); /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jun 26 07:56:58 UTC 2025 - 2.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Hashing.java
* http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp, which contained the * following header: * * MurmurHash3 was written by Austin Appleby, and is placed in the public domain. The author * hereby disclaims copyright to this source code. */ static int smear(int hashCode) { return (int) (C2 * Integer.rotateLeft((int) (hashCode * C1), 15)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.5K bytes - Viewed (0)