Search Options

Results per page
Sort
Preferred Languages
Advance

Results 611 - 620 of 1,438 for CASE (0.03 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

                switch (notification.getCause()) {
                  case EXPIRED:
                    stats[0]++;
                    break;
                  case EXPLICIT:
                    stats[1]++;
                    break;
                  case REPLACED:
                    stats[2]++;
                    break;
                  case SIZE:
                    stats[3]++;
                    break;
                  default:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils.go

    			continue
    		}
    		errorCounts[err]++
    	}
    
    	max := 0
    	for err, count := range errorCounts {
    		switch {
    		case max < count:
    			max = count
    			maxErr = err
    
    		// Prefer `nil` over other error values with the same
    		// number of occurrences.
    		case max == count && err == nil:
    			maxErr = err
    		}
    	}
    	return max, maxErr
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. dockerscripts/download-static-curl.sh

    #!/bin/bash
    
    function download_arch_specific_executable {
    	curl -f -L -s -q \
    		https://github.com/moparisthebest/static-curl/releases/latest/download/curl-$1 \
    		-o /go/bin/curl || exit 1
    	chmod +x /go/bin/curl
    }
    
    case $TARGETARCH in
    "arm64")
    	download_arch_specific_executable aarch64
    	;;
    "s390x")
    	echo "Not downloading static cURL because it does not exist for the $TARGETARCH architecture."
    	;;
    *)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 15:45:19 UTC 2024
    - 461 bytes
    - Viewed (0)
  4. src/cmd/cgo/ast_go118.go

    	switch n := x.(type) {
    	default:
    		error_(token.NoPos, "unexpected type %T in walk", x)
    		panic("unexpected type")
    
    	case *ast.IndexListExpr:
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(n.Indices, ctxExpr, visit)
    	}
    }
    
    func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList {
    	return n.TypeParams
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Nov 30 21:45:10 UTC 2022
    - 730 bytes
    - Viewed (0)
  5. tests/count_test.go

    		t.Errorf("count with join, got error: %v, count %v", err, count)
    	}
    
    	var count6 int64
    	if err := DB.Model(&User{}).Where("name in ?", []string{user1.Name, user2.Name, user3.Name}).Select(
    		"(CASE WHEN name=? THEN ? ELSE ? END) as name", "count-1", "main", "other",
    	).Count(&count6).Find(&users).Error; err != nil || count6 != 3 {
    		t.Fatalf(fmt.Sprintf("Count should work, but got err %v", err))
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. internal/config/notify/parse.go

    		}
    	case config.NotifyNSQSubSys:
    		nsqTargets, err := GetNotifyNSQ(cfg[config.NotifyNSQSubSys])
    		if err != nil {
    			return nil, err
    		}
    		for id, args := range nsqTargets {
    			if !args.Enable {
    				continue
    			}
    			t, err := target.NewNSQTarget(id, args, logOnceIf)
    			if err != nil {
    				return nil, err
    			}
    			targets = append(targets, t)
    		}
    	case config.NotifyPostgresSubSys:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 47K bytes
    - Viewed (0)
  7. cni/pkg/install/install.go

    		return nil
    	}
    
    	// If a file we are watching has a change event, yield and let caller check validity
    	select {
    	case <-watcher.Events:
    		// Something changed, and we must yield
    		return nil
    	case err := <-watcher.Errors:
    		// We had a watch error - that's no good
    		return err
    	case <-ctx.Done():
    		return ctx.Err()
    	default:
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 09 21:33:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingSortedMap.java

     * the methods of the delegate. For example, overriding {@link #put} alone <i>will not</i> change
     * the behavior of {@link #putAll}, which can lead to unexpected behavior. In this case, you should
     * override {@code putAll} as well, either providing your own implementation, or delegating to the
     * provided {@code standardPutAll} method.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. istioctl/pkg/install/k8sversion/version_test.go

    		},
    		{
    			version: versionInvalid2,
    			errMsg:  fmt.Errorf("could not parse Malformed version: %v", versionInvalid2.GitVersion),
    			isValid: false,
    		},
    	}
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) {
    			got, err := extractKubernetesVersion(c.version)
    			if c.errMsg != err && c.isValid {
    				t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err)
    			}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 30 21:50:50 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/NtlmContext.java

                }
                ri += len;
            }
    
            return null;
        }
        public byte[] initSecContext(byte[] token, int offset, int len) throws SmbException {
            switch (state) {
                case 1:
                    Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);
                    token = msg1.toByteArray();
    
                    if (log.level >= 4) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.9K bytes
    - Viewed (0)
Back to top