Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 213 for Closest (0.22 sec)

  1. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/SnapshotWatchedDirectoryFinder.java

         * so we learn if the file itself disappears or gets modified.
         * For directories, we only watch the directory itself, as we get
         * events for that.
         * In case of a missing file we need to find the closest existing
         * ancestor to watch so we can learn if the missing file respawns.
         */
        public static File getDirectoryToWatch(FileSystemLocationSnapshot snapshot) {
            File path = new File(snapshot.getAbsolutePath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/numa_info.go

    	}
    
    	return numaInfo, nil
    }
    
    func (n *NUMAInfo) Narrowest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask {
    	if m1.IsNarrowerThan(m2) {
    		return m1
    	}
    	return m2
    }
    
    func (n *NUMAInfo) Closest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask {
    	// If the length of both bitmasks aren't the same, choose the one that is narrowest.
    	if m1.Count() != m2.Count() {
    		return n.Narrowest(m1, m2)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/policy_options.go

    	"fmt"
    	"strconv"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	kubefeatures "k8s.io/kubernetes/pkg/features"
    )
    
    const (
    	PreferClosestNUMANodes string = "prefer-closest-numa-nodes"
    )
    
    var (
    	alphaOptions = sets.New[string]()
    	betaOptions  = sets.New[string](
    		PreferClosestNUMANodes,
    	)
    	stableOptions = sets.New[string]()
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. platforms/enterprise/enterprise-operations/src/main/java/org/gradle/internal/taskgraph/CalculateTaskGraphBuildOperationType.java

             * <p>
             * The graph is represented as a list of nodes (in no particular order) and their {@link PlannedNode#getNodeDependencies() dependencies}.
             * The dependencies of each node are the closest nodes in the plan whose type is in the given set.
             *
             * @param types an inclusive range-subset of node types starting with the {@link NodeIdentity.NodeType#TASK TASK}, such as {@code [TASK, TRANSFORM_STEP]}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 10 08:07:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/return.go

    // with a single-pass label/break matching phase.
    
    // hasBreak reports if s is or contains a break statement
    // referring to the label-ed statement or implicit-ly the
    // closest outer breakable statement.
    func hasBreak(s syntax.Stmt, label string, implicit bool) bool {
    	switch s := s.(type) {
    	default:
    		panic("unreachable")
    
    	case *syntax.DeclStmt, *syntax.EmptyStmt, *syntax.ExprStmt,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/image/color/color.go

    }
    
    // Palette is a palette of colors.
    type Palette []Color
    
    // Convert returns the palette color closest to c in Euclidean R,G,B space.
    func (p Palette) Convert(c Color) Color {
    	if len(p) == 0 {
    		return nil
    	}
    	return p[p.Index(c)]
    }
    
    // Index returns the index of the palette color closest to c in Euclidean
    // R,G,B,A space.
    func (p Palette) Index(c Color) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/image/color/ycbcr_test.go

    		RGBA{0x40, 0x40, 0x40, 0x40},
    	}
    	// Check that, for a Palette with no repeated colors, the closest color to
    	// each element is itself.
    	for i, c := range p {
    		j := p.Index(c)
    		if i != j {
    			t.Errorf("Index(%v): got %d (color = %v), want %d", c, j, p[j], i)
    		}
    	}
    	// Check that finding the closest color considers alpha, not just red,
    	// green and blue.
    	got := p.Convert(RGBA{0x80, 0x00, 0x00, 0x80})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 07:51:17 UTC 2016
    - 7.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            layout.buildDefinitionMissing
    
            cleanup: "temporary tree"
            tmpDir.deleteDir()
        }
    
        def "returns closest ancestor directory that contains a #settingsFilename file"() {
            given:
            def locator = buildLayoutFactoryFor()
    
            and:
            def currentDir = tmpDir.createDir("sub/current")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. tests/integration/telemetry/util.go

    	"istio.io/istio/pkg/test/framework/components/prometheus"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    // PromDiff compares a query with labels to a query of the same metric without labels, and notes the closest matching
    // metric.
    func PromDiff(t test.Failer, prom prometheus.Instance, cluster cluster.Cluster, query prometheus.Query) {
    	t.Helper()
    	unlabelled := prometheus.Query{Metric: query.Metric}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 16:30:22 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/graphql.md

    ## GraphQL with Strawberry
    
    If you need or want to work with **GraphQL**, <a href="https://strawberry.rocks/" class="external-link" target="_blank">**Strawberry**</a> is the **recommended** library as it has the design closest to **FastAPI's** design, it's all based on **type annotations**.
    
    Depending on your use case, you might prefer to use a different library, but if you asked me, I would probably suggest you try **Strawberry**.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Aug 19 19:54:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top