Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for new224 (0.1 sec)

  1. tests/update_belongs_to_test.go

    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user4 User
    	DB.Preload("Company").Preload("Manager").Find(&user4, "id = ?", user.ID)
    	CheckUser(t, user4, user)
    
    	user.Company.Name += "new2"
    	user.Manager.Name += "new2"
    	if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Select("`Company`").Save(&user).Error; err != nil {
    		t.Fatalf("errors happened when update: %v", err)
    	}
    
    	var user5 User
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jul 14 06:55:54 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/OsddHelper.java

        }
    
        public boolean hasOpenSearchFile() {
            return osddFile != null;
        }
    
        public StreamResponse asStream() {
            if (osddFile == null) {
                throw ComponentUtil.getResponseManager().new404("Unsupported Open Search Description Document response.");
            }
    
            return new StreamResponse(osddFile.getName()).contentType(contentType + "; charset=" + encoding).stream(out -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. src/crypto/sha512/sha512.go

    // New512_256 returns a new hash.Hash computing the SHA-512/256 checksum.
    func New512_256() hash.Hash {
    	d := &digest{function: crypto.SHA512_256}
    	d.Reset()
    	return d
    }
    
    // New384 returns a new hash.Hash computing the SHA-384 checksum.
    func New384() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA384()
    	}
    	d := &digest{function: crypto.SHA384}
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/dra/state/checkpoint.go

    	object = strings.Replace(object, "DRAManagerCheckpointWithoutResourceHandles", "DRAManagerCheckpoint", 1)
    	object = strings.Replace(object, "ClaimInfoStateListWithoutResourceHandles", "ClaimInfoStateList", 1)
    	hash := fnv.New32a()
    	fmt.Fprintf(hash, "%v", object)
    	if checkSum != checksum.Checksum(hash.Sum32()) {
    		return errors.ErrCorruptCheckpoint
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. pkg/ledger/util.go

    const (
    	hashLength = 8
    )
    
    type hash [hashLength]byte
    
    func bitIsSet(bits []byte, i int) bool {
    	return bits[i/8]&(1<<uint(7-i%8)) != 0
    }
    
    func hasher(data ...[]byte) []byte {
    	hasher := murmur3.New64()
    	for i := 0; i < len(data); i++ {
    		_, _ = hasher.Write(data[i])
    	}
    	result := hasher.Sum(nil)
    	return result
    }
    
    // for sorting
    type dataArray [][]byte
    
    func (d dataArray) Len() int {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/issues1.go

    	~uint
    }
    
    type T2[U Unsigned] struct {
        s U
    }
    
    func (u T2[U]) Add1() U {
        return u.s + 1
    }
    
    func NewT2[U any]() T2[U /* ERROR "U does not satisfy Unsigned" */ ] {
        return T2[U /* ERROR "U does not satisfy Unsigned" */ ]{}
    }
    
    func _() {
        u := NewT2[string]()
        _ = u.Add1()
    }
    
    // When we encounter an instantiated type such as Elem[T] we must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    		return nil
    	}
    
    	ck := cp.Checksum
    	cp.Checksum = 0
    	object := dump.ForHash(cp)
    	object = strings.Replace(object, "CPUManagerCheckpointV1", "CPUManagerCheckpoint", 1)
    	cp.Checksum = ck
    
    	hash := fnv.New32a()
    	fmt.Fprintf(hash, "%v", object)
    	if cp.Checksum != checksum.Checksum(hash.Sum32()) {
    		return errors.ErrCorruptCheckpoint
    	}
    
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. pkg/ledger/ledger_test.go

    	assert.Equal(t, firstHash != secondHash, true)
    	lastHash, err := l.Put("foo", "bar")
    	assert.NoError(t, err)
    	assert.Equal(t, firstHash, lastHash)
    }
    
    func MyHasher(data ...[]byte) (result []byte) {
    	hasher := murmur3.New64()
    	for i := 0; i < len(data); i++ {
    		hasher.Write(data[i])
    	}
    	result = hasher.Sum(nil)
    	hasher.Reset()
    	return
    }
    
    func TestCollision(t *testing.T) {
    	hit := false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 12 16:12:59 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. pkg/ledger/ledger.go

    func (s smtLedger) RootHash() string {
    	return base64.StdEncoding.EncodeToString(s.tree.Root())
    }
    
    func coerceKeyToHashLen(val string) []byte {
    	hasher := murmur3.New64()
    	_, _ = hasher.Write([]byte(val))
    	return hasher.Sum(nil)
    }
    
    func coerceToHashLen(val string) []byte {
    	// hash length is fixed at 64 bits until generic support is added
    	const hashLen = 64
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. pkg/registry/rbac/validation/rule_test.go

    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // compute a hash of a policy rule so we can sort in a deterministic order
    func hashOf(p rbacv1.PolicyRule) string {
    	hash := fnv.New32()
    	writeStrings := func(slis ...[]string) {
    		for _, sli := range slis {
    			for _, s := range sli {
    				io.WriteString(hash, s)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top