Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 702 for switch_a (0.23 sec)

  1. android/guava/src/com/google/common/collect/SortedMultisets.java

    @ElementTypesAreNonnullByDefault
    final class SortedMultisets {
      private SortedMultisets() {}
    
      /** A skeleton implementation for {@link SortedMultiset#elementSet}. */
      @SuppressWarnings("JdkObsolete") // TODO(b/6160855): Switch GWT emulations to NavigableSet.
      static class ElementSet<E extends @Nullable Object> extends Multisets.ElementSet<E>
          implements SortedSet<E> {
        @Weak private final SortedMultiset<E> multiset;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/noncurrentversion.go

    	return n.NoncurrentDays == ExpirationDays(0)
    }
    
    // Validate returns an error with wrong value
    func (n NoncurrentVersionExpiration) Validate() error {
    	if !n.set {
    		return nil
    	}
    	val := int(n.NoncurrentDays)
    	switch {
    	case val == 0 && n.NewerNoncurrentVersions == 0:
    		// both fields can't be zero
    		return errXMLNotWellFormed
    
    	case val < 0, n.NewerNoncurrentVersions < 0:
    		// negative values are not supported
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  3. internal/config/identity/openid/providercfg.go

    func (p *providerCfg) initializeProvider(cfgGet func(string) string, transport http.RoundTripper) error {
    	vendor := cfgGet(Vendor)
    	if vendor == "" {
    		return nil
    	}
    	var err error
    	switch vendor {
    	case keyCloakVendor:
    		adminURL := cfgGet(KeyCloakAdminURL)
    		realm := cfgGet(KeyCloakRealm)
    		p.provider, err = provider.KeyCloak(
    			provider.WithAdminURL(adminURL),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. internal/jwt/parser_test.go

    	for _, data := range jwtTestData {
    		data := data
    		t.Run(data.name, func(t *testing.T) {
    			// Parse the token
    			var err error
    
    			// Figure out correct claims type
    			switch claims := data.claims.(type) {
    			case *MapClaims:
    				if data.tokenString == "" {
    					data.tokenString = mapClaimsToken(claims)
    				}
    				err = ParseWithClaims(data.tokenString, &MapClaims{}, data.keyfunc)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
  5. internal/s3select/progress.go

    	}
    	scannedReader := newCountUpReader(rc)
    	pr := progressReader{
    		rc:            rc,
    		scannedReader: scannedReader,
    	}
    	var r io.Reader
    
    	switch compType {
    	case noneType:
    		r = scannedReader
    	case gzipType:
    		gzr, err := gzip.NewReader(scannedReader)
    		if err != nil {
    			if errors.Is(err, gzip.ErrHeader) || errors.Is(err, gzip.ErrChecksum) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. internal/s3select/simdj/reader_amd64_test.go

    		parser:
    			for {
    				var next simdjson.Iter
    				typ, err := i.AdvanceIter(&next)
    				if err != nil {
    					t.Fatal(err)
    				}
    				switch typ {
    				case simdjson.TypeNone:
    					close(dst)
    					break parser
    				case simdjson.TypeRoot:
    					typ, obj, err := next.Root(nil)
    					if err != nil {
    						t.Fatal(err)
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/lex.go

    func IsRegisterShift(r ScanToken) bool {
    	return ROT <= r && r <= LSH // Order looks backwards because these are negative.
    }
    
    func (t ScanToken) String() string {
    	switch t {
    	case scanner.EOF:
    		return "EOF"
    	case scanner.Ident:
    		return "identifier"
    	case scanner.Int:
    		return "integer constant"
    	case scanner.Float:
    		return "float constant"
    	case scanner.Char:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 18:31:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. internal/s3select/json/record.go

    	return r, nil
    }
    
    // WriteCSV - encodes to CSV data.
    func (r *Record) WriteCSV(writer io.Writer, opts sql.WriteCSVOpts) error {
    	var csvRecord []string
    	for _, kv := range r.KVS {
    		var columnValue string
    		switch val := kv.Value.(type) {
    		case float64:
    			columnValue = jsonFloat(val)
    		case string:
    			columnValue = val
    		case bool, int64:
    			columnValue = fmt.Sprintf("%v", val)
    		case nil:
    			columnValue = ""
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. internal/s3select/sql/record.go

    // IterToValue converts a simdjson Iter to its underlying value.
    // Objects are returned as simdjson.Object
    // Arrays are returned as []interface{} with parsed values.
    func IterToValue(iter simdjson.Iter) (interface{}, error) {
    	switch iter.Type() {
    	case simdjson.TypeString:
    		v, err := iter.String()
    		if err != nil {
    			return nil, err
    		}
    		return v, nil
    	case simdjson.TypeFloat:
    		v, err := iter.Float()
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

            return 0;
        }
        int readParametersWireFormat( byte[] buffer, int bufferIndex, int len ) {
            return 0;
        }
        int readDataWireFormat( byte[] buffer, int bufferIndex, int len ) {
            switch( informationLevel ) {
                case SMB_INFO_ALLOCATION:
                    return readSmbInfoAllocationWireFormat( buffer, bufferIndex );
                case SMB_QUERY_FS_SIZE_INFO:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.1K bytes
    - Viewed (0)
Back to top