Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 704 for equality (0.1 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/status/naming_controller.go

    limitations under the License.
    */
    
    package status
    
    import (
    	"context"
    	"fmt"
    	"reflect"
    	"strings"
    	"time"
    
    	"k8s.io/klog/v2"
    
    	"k8s.io/apimachinery/pkg/api/equality"
    	apierrors "k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/scalarmult_test.go

    	tmp1 := &projP1xP1{}
    	tmp2 := &projP2{}
    	tmp3 := &Point{}
    	tmp3.Set(B)
    	table := make([]affineLookupTable, 32)
    	for i := 0; i < 32; i++ {
    		// Build the table
    		table[i].FromP3(tmp3)
    		// Assert equality with the hardcoded one
    		if table[i] != basepointTable[i] {
    			t.Errorf("Basepoint table %d does not match", i)
    		}
    
    		// Set p = (16^2)*p = 256*p = 2^8*p
    		tmp2.FromP3(tmp3)
    		for j := 0; j < 7; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/changes/OutputFileChangesTest.groovy

        def "trivial content change"() {
            expect:
            changes(
                regularFile("one", 0x1234),
                regularFile("one", 0xffff)
            ) == [modified("one")]
        }
    
        def "deep equality"() {
            expect:
            changes(
                directory("root", [
                    regularFile("root/one", 0x1234),
                    regularFile("root/two", 0x2345)
                ]),
                directory("root", [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/CacheBuilder.java

     * reflected in that iterator. These iterators never throw {@link ConcurrentModificationException}.
     *
     * <p><b>Note:</b> by default, the returned cache uses equality comparisons (the {@link
     * Object#equals equals} method) to determine equality for keys or values. However, if {@link
     * #weakKeys} was specified, the cache uses identity ({@code ==}) comparisons instead for keys.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/registry_test.go

    				t.Errorf("DecodeInto(): failed to decode plugin config, expected: %+v, got: %+v",
    					test.expected, pluginFooConf)
    			}
    		})
    	}
    }
    
    // isRegistryEqual compares two registries for equality. This function is used in place of
    // reflect.DeepEqual() and cmp() as they don't compare function values.
    func isRegistryEqual(registryX, registryY Registry) bool {
    	for name, pluginFactory := range registryY {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. src/runtime/tracemap.go

    			// the same value. Both might create nodes, but only one will
    			// succeed on insertion. If two threads race to insert two
    			// different values, then both nodes will *always* get inserted,
    			// because the equality checking below will always fail.
    			//
    			// Performance note: contention on insertion is likely to be
    			// higher for small maps, but since this data structure is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/StandardNetwork.java

      @Override
      public Set<E> edgesConnecting(N nodeU, N nodeV) {
        NetworkConnections<N, E> connectionsU = checkedConnections(nodeU);
        if (!allowsSelfLoops && nodeU == nodeV) { // just an optimization, only check reference equality
          return ImmutableSet.of();
        }
        checkArgument(containsNode(nodeV), NODE_NOT_IN_GRAPH, nodeV);
        return nodePairInvalidatableSet(connectionsU.edgesConnecting(nodeV), nodeU, nodeV);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/StandardNetwork.java

      @Override
      public Set<E> edgesConnecting(N nodeU, N nodeV) {
        NetworkConnections<N, E> connectionsU = checkedConnections(nodeU);
        if (!allowsSelfLoops && nodeU == nodeV) { // just an optimization, only check reference equality
          return ImmutableSet.of();
        }
        checkArgument(containsNode(nodeV), NODE_NOT_IN_GRAPH, nodeV);
        return nodePairInvalidatableSet(connectionsU.edgesConnecting(nodeV), nodeU, nodeV);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. src/crypto/hmac/hmac.go

    	for i := range hm.ipad {
    		hm.ipad[i] ^= 0x36
    	}
    	for i := range hm.opad {
    		hm.opad[i] ^= 0x5c
    	}
    	hm.inner.Write(hm.ipad)
    
    	return hm
    }
    
    // Equal compares two MACs for equality without leaking timing information.
    func Equal(mac1, mac2 []byte) bool {
    	// We don't have to be constant time if the lengths of the MACs are
    	// different as that suggests that a completely different hash function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        1.0,
        Math.PI,
        (double) Integer.MAX_VALUE,
        (double) Long.MAX_VALUE,
        Double.MAX_VALUE,
        Double.POSITIVE_INFINITY,
        Double.NaN,
        Float.MAX_VALUE,
      };
    
      /** The notion of equality used by AtomicDouble */
      static boolean bitEquals(double x, double y) {
        return Double.doubleToRawLongBits(x) == Double.doubleToRawLongBits(y);
      }
    
      static void assertBitEquals(double x, double y) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top