Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 407 for search_ (0.14 sec)

  1. src/sort/search.go

    // This file implements binary search.
    
    package sort
    
    // Search uses binary search to find and return the smallest index i
    // in [0, n) at which f(i) is true, assuming that on the range [0, n),
    // f(i) == true implies f(i+1) == true. That is, Search requires that
    // f is false for some (possibly empty) prefix of the input range [0, n)
    // and then true for the (possibly empty) remainder; Search returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/search.go

    // against the standard library (std and cmd) in GOROOT/src.
    func MatchInModule(ctx context.Context, pattern string, m module.Version, tags map[string]bool) *search.Match {
    	match := search.NewMatch(pattern)
    	if m == (module.Version{}) {
    		matchPackages(ctx, match, tags, includeStd, nil)
    	}
    
    	LoadModFile(ctx) // Sets Target, needed by fetch and matchPackages.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/strings/search.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package strings
    
    // stringFinder efficiently finds strings in a source text. It's implemented
    // using the Boyer-Moore string search algorithm:
    // https://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm
    // https://www.cs.utexas.edu/~moore/publications/fstrpos.pdf (note: this aged
    // document uses 1-based indexing)
    type stringFinder struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 18:49:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. docs/debugging/pprofgoparser/main.go

    	flag.DurationVar(&margin, "margin", 0, "margin time")
    	flag.StringVar(&searchText, "search", "", "Regex to search for a text in one goroutine stacktrace")
    }
    
    func parseGoroutineType2(path string) (map[time.Duration][]string, error) {
    	f, err := os.Open(path)
    	if err != nil {
    		return nil, err
    	}
    
    	bf := bytes.Buffer{}
    
    	save := func(s string) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 06 11:43:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/LocallyAvailableResourceFinderSearchableFileStoreAdapter.java

    import java.util.stream.Collectors;
    
    /**
     * Makes a LocallyAvailableResourceFinder out of a FileStoreSearcher.
     * @param <C> The type of criterion the filestore can be searched for, and therefore locally available resources searched for.
     */
    public class LocallyAvailableResourceFinderSearchableFileStoreAdapter<C> extends AbstractLocallyAvailableResourceFinder<C> {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/filestore/TwoStageArtifactIdentifierFileStoreTest.groovy

            0 * readStore.add(key, action)
        }
    
        def "searches in both read and write stores"() {
            setup:
            def r1 = Stub(LocallyAvailableExternalResource)
            def r2 = Stub(LocallyAvailableExternalResource)
            def r3 = Stub(LocallyAvailableExternalResource)
            1 * writeStore.search(key) >> {
                [r1] as Set
            }
            1 * readStore.search(key) >> {
                [r2, r3] as Set
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. src/internal/bytealg/bytealg.go

    		if i&1 != 0 {
    			pow *= sq
    		}
    		sq *= sq
    	}
    	return hash, pow
    }
    
    // IndexRabinKarp uses the Rabin-Karp search algorithm to return the index of the
    // first occurrence of sep in s, or -1 if not present.
    func IndexRabinKarp[T string | []byte](s, sep T) int {
    	// Rabin-Karp search
    	hashss, pow := HashStr(sep)
    	n := len(sep)
    	var h uint32
    	for i := 0; i < n; i++ {
    		h = h*PrimeRK + uint32(s[i])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/internal/scripts/ScriptFileResolver.java

         *
         * @param dir the directory in which to search
         * @param basename the base name of the script file, i.e. its file name excluding the extension
         * @return the resolved script file present on disk, or {@literal null} if none were found
         */
        @Nullable
        File resolveScriptFile(File dir, String basename);
    
        /**
         * Searches for script files in the given directory, that is, any file with a known
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/os/exec/lp_wasm.go

    //go:build wasm
    
    package exec
    
    import (
    	"errors"
    )
    
    // ErrNotFound is the error resulting if a path search failed to find an executable file.
    var ErrNotFound = errors.New("executable file not found in $PATH")
    
    // LookPath searches for an executable named file in the
    // directories named by the PATH environment variable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 1012 bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMapFactory.java

        /**
         * If a node has fewer children, we use a linear search for the child.
         * We use this limit since {@link VfsRelativePath#compareToFirstSegment(String, CaseSensitivity)}
         * is about twice as slow as {@link VfsRelativePath#hasPrefix(String, CaseSensitivity)},
         * so comparing the searched path to all of the children is actually faster than doing a binary search.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top