Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for heuristics (0.46 sec)

  1. src/cmd/compile/internal/inline/inlheur/function_properties.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package inlheur
    
    // This file defines a set of Go function "properties" intended to
    // guide inlining heuristics; these properties may apply to the
    // function as a whole, or to one or more function return values or
    // parameters.
    //
    // IMPORTANT: function properties are produced on a "best effort"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 18:52:53 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/html/template/attr.go

    // type of the lowercase named attribute.
    func attrType(name string) contentType {
    	if strings.HasPrefix(name, "data-") {
    		// Strip data- so that custom attribute heuristics below are
    		// widely applied.
    		// Treat data-action as URL below.
    		name = name[5:]
    	} else if prefix, short, ok := strings.Cut(name, ":"); ok {
    		if prefix == "xmlns" {
    			return contentTypeURL
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/scoring.go

    // threshold was crossed as a result of the heuristics. Note that
    // "Status" also shows whether PGO was involved. "Callee" is the name
    // of the function called, "CallerPos" is the position of the
    // callsite, and "ScoreFlags" is a digest of the specific properties
    // we used to make adjustments to callsite score via heuristics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/cmd/vet/doc.go

    // license that can be found in the LICENSE file.
    
    /*
    Vet examines Go source code and reports suspicious constructs, such as Printf
    calls whose arguments do not align with the format string. Vet uses heuristics
    that do not guarantee all reports are genuine problems, but it can find errors
    not caught by the compilers.
    
    Vet is normally invoked through the go command.
    This command vets the package in the current directory:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 00:17:30 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_dash_x.txt

    # will fail with "can't open import". See golang.org/issue/29004.
    #
    # (The fix in golang.org/issue/29004 didn't completely fix the underlying issue:
    # cmd/go/internal/load adds a bunch of implicit dependencies
    # based on various heuristics, and, due to a bug described in
    # https://golang.org/issue/31544#issuecomment-490607180,
    # those implicit dependencies are not added early enough during
    # loading to properly affect the import graph.)
    go build runtime/cgo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_server_journal_linux.go

    import (
    	"context"
    	"fmt"
    	"os/exec"
    	"strings"
    )
    
    // getLoggingCmd returns the journalctl cmd and arguments for the given nodeLogQuery and boot. Note that
    // services are explicitly passed here to account for the heuristics
    func getLoggingCmd(n *nodeLogQuery, services []string) (string, []string, error) {
    	args := []string{
    		"--utc",
    		"--no-pager",
    		"--output=short-precise",
    	}
    	if n.SinceTime != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 11 01:09:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/go/doc/headscan.go

    //go:build ignore
    
    /*
    The headscan command extracts comment headings from package files;
    it is used to detect false positives which may require an adjustment
    to the comment formatting heuristics in comment.go.
    
    Usage: headscan [-root root_directory]
    
    By default, the $GOROOT/src directory is scanned.
    */
    package main
    
    import (
    	"flag"
    	"fmt"
    	"go/doc"
    	"go/parser"
    	"go/token"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 21:50:52 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/help.go

    const help = `PROGNAME is a tool for static analysis of Go programs.
    
    PROGNAME examines Go source code and reports suspicious constructs,
    such as Printf calls whose arguments do not align with the format
    string. It uses heuristics that do not guarantee all reports are
    genuine problems, but it can find errors not caught by the compilers.
    `
    
    // Help implements the help subcommand for a multichecker or unitchecker
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 08 01:33:44 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    //			log.Printf(format, args...)
    //		}
    //	}
    //
    //	logf(3, "invalid request: %v") // logf format reads arg 1, but call has 0 args
    //
    // To enable printf checking on a function that is not found by this
    // analyzer's heuristics (for example, because control is obscured by
    // dynamic method calls), insert a bogus call:
    //
    //	func MyPrintf(format string, args ...any) {
    //		if false {
    //			_ = fmt.Sprintf(format, args...) // enable printf checking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_server_journal.go

    	queries, ok := query["query"]
    	if len(queries) > 0 {
    		for _, q := range queries {
    			// The presence of / or \ is a hint that the query is for a log file. If the query is for foo.log without a
    			// slash prefix, the heuristics will still return the file contents.
    			if strings.ContainsAny(q, `/\`) {
    				nlq.Files = append(nlq.Files, q)
    			} else if strings.TrimSpace(q) != "" { // Prevent queries with just spaces
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 18:56:28 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top