- Sort Score
- Result 10 results
- Languages All
Results 541 - 550 of 1,387 for Take (0.02 sec)
-
internal/dsync/drwmutex_test.go
} // Borrowed from rwmutex_test.go func doTestParallelReaders(numReaders, gomaxprocs int) { runtime.GOMAXPROCS(gomaxprocs) m := NewDRWMutex(ds, "test-parallel") clocked := make(chan bool) cunlock := make(chan bool) cdone := make(chan bool) for range numReaders { go parallelReader(context.Background(), m, clocked, cunlock, cdone) } // Wait for all parallel RLock()s to succeed. for range numReaders {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms.md
When you need to receive form fields instead of JSON, you can use `Form`. /// info To use forms, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Make sure you create a [virtual environment](../virtual-environments.md){.internal-link target=_blank}, activate it, and then install it, for example: ```console $ pip install python-multipart ``` ///
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.7K bytes - Viewed (0) -
cmd/tier_gen.go
case "Tiers": var zb0002 uint32 zb0002, err = dc.ReadMapHeader() if err != nil { err = msgp.WrapError(err, "Tiers") return } if z.Tiers == nil { z.Tiers = make(map[string]madmin.TierConfig, zb0002) } else if len(z.Tiers) > 0 { clear(z.Tiers) } for zb0002 > 0 { zb0002-- var za0001 string za0001, err = dc.ReadString() if err != nil {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 3.9K bytes - Viewed (0) -
docs/debugging/hash-set/main.go
// in the slices returned. func hashOrder(key string, cardinality int) []int { if cardinality <= 0 { // Returns an empty int slice for cardinality < 0. return nil } nums := make([]int, cardinality) keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable) start := int(keyCrc % uint32(cardinality)) for i := 1; i <= cardinality; i++ { nums[i-1] = 1 + ((start + i) % cardinality) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.7K bytes - Viewed (0) -
internal/s3select/sql/utils.go
package sql import ( "fmt" "strings" ) // String functions // String - returns the JSONPath representation func (e *JSONPath) String() string { if len(e.pathString) == 0 { parts := make([]string, len(e.PathExpr)+1) parts[0] = e.BaseKey.String() for i, pe := range e.PathExpr { parts[i+1] = pe.String() } e.pathString = strings.Join(parts, "") } return e.pathString }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Nov 10 16:12:50 UTC 2021 - 3.6K bytes - Viewed (0) -
.junit.run/Not Slow.run.xml
<option name="TEST_SEARCH_SCOPE"> <value defaultName="wholeProject" /> </option> <tag value="!Slow & !Slowish & !Remote & !Android" /> <method v="2"> <option name="Make" enabled="true" /> </method> </configuration>
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 21 13:28:45 UTC 2020 - 730 bytes - Viewed (0) -
internal/ioutil/read_file.go
f, err := OsOpenFile(name, readMode, 0o666) if err != nil { return nil, nil, err } defer f.Close() st, err := f.Stat() if err != nil { return nil, nil, err } dst := make([]byte, st.Size()) _, err = io.ReadFull(f, dst) return dst, st, err } // ReadFile reads the named file and returns the contents. // A successful call returns err == nil, not err == EOF.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Dec 09 18:17:51 UTC 2023 - 2.3K bytes - Viewed (0) -
internal/config/config.go
func kvFields(input string, keys []string) []string { valueIndexes := make([]int, 0, len(keys)) for _, key := range keys { i := strings.Index(input, key+KvSeparator) if i == -1 { continue } valueIndexes = append(valueIndexes, i) } sort.Ints(valueIndexes) fields := make([]string, len(valueIndexes)) for i := range valueIndexes { j := i + 1 if j < len(valueIndexes) {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 37.7K bytes - Viewed (0) -
internal/http/dial_dnscache.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package http import ( "context" "net" "time" ) // LookupHost is a function to make custom lookupHost for optional cached DNS requests type LookupHost func(ctx context.Context, host string) (addrs []string, err error) // DialContextWithLookupHost is a helper function which returns `net.DialContext` function.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 2.6K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
// Number of checksum info == total parts. xlMeta.Erasure.Checksums = make([]ChecksumInfo, totalParts) // total number of parts. xlMeta.Parts = make([]ObjectPartInfo, totalParts) for i := range totalParts { // hard coding hash and algo value for the checksum, Since we are benchmarking the parsing of xl.meta the magnitude doesn't affect the test, // The magnitude doesn't make a difference, only the size does.Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 17.5K bytes - Viewed (0)