Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 702 for switch_b (0.05 sec)

  1. src/archive/tar/format.go

    }
    
    func (f Format) String() string {
    	var ss []string
    	for f2 := Format(1); f2 < formatMax; f2 <<= 1 {
    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    	case 0:
    		return "<unknown>"
    	case 1:
    		return ss[0]
    	default:
    		return "(" + strings.Join(ss, " | ") + ")"
    	}
    }
    
    // Magics used to identify various formats.
    const (
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableEnumMap.java

    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
            Entry<K, V> entry = getOnlyElement(map.entrySet());
            return ImmutableMap.of(entry.getKey(), entry.getValue());
          default:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. tests/tests_test.go

    			log.Printf("failed to ping sqlDB, got error %v", err)
    			os.Exit(1)
    		}
    
    		RunMigrations()
    	}
    }
    
    func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
    	dbDSN := os.Getenv("GORM_DSN")
    	switch os.Getenv("GORM_DIALECT") {
    	case "mysql":
    		log.Println("testing mysql...")
    		if dbDSN == "" {
    			dbDSN = mysqlDSN
    		}
    		db, err = gorm.Open(mysql.Open(dbDSN), cfg)
    	case "postgres":
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Sep 30 03:21:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. cmd/lock-rest-client.go

    	r, err := h.Call(ctx, c.connection, args)
    	if err != nil {
    		return false, err
    	}
    	defer h.PutResponse(r)
    	ok = r.Code == dsync.RespOK
    	switch r.Code {
    	case dsync.RespLockConflict, dsync.RespLockNotFound, dsync.RespOK:
    	// no error
    	case dsync.RespLockNotInitialized:
    		err = errLockNotInitialized
    	default:
    		err = errors.New(r.Err)
    	}
    	return ok, err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

      }
    
      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
      static void awaitWaiting(Thread t) {
        while (true) {
          Thread.State state = t.getState();
          switch (state) {
            case RUNNABLE:
            case BLOCKED:
              Thread.yield();
              break;
            case WAITING:
              return;
            default:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacSignature.java

            try {
                PacDataInputStream bufferStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data)));
                this.type = bufferStream.readInt();
                switch ( this.type ) {
                case KERB_CHECKSUM_HMAC_MD5:
                    this.checksum = new byte[16];
                    break;
                case HMAC_SHA1_96_AES128:
                case HMAC_SHA1_96_AES256:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/SimpleProblemCollector.java

        public List<String> getErrors() {
            return errors;
        }
    
        public List<String> getFatals() {
            return fatals;
        }
    
        public void add(ModelProblemCollectorRequest req) {
            switch (req.getSeverity()) {
                case FATAL:
                    if (!fatals.contains(req.getMessage())) {
                        fatals.add(req.getMessage());
                    }
                    break;
                case ERROR:
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java

            for (final BooleanClause clause : booleanQuery.clauses()) {
                final QueryBuilder queryBuilder = getQueryProcessor().execute(context, clause.getQuery(), boost);
                if (queryBuilder != null) {
                    switch (clause.getOccur()) {
                    case MUST:
                        boolQuery.must(queryBuilder);
                        break;
                    case SHOULD:
                        boolQuery.should(queryBuilder);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/line_test.go

    		arch, ctxt := setArch(goarch)
    		tokenizer := lex.NewTokenizer("", strings.NewReader(test.input+"\n"), nil)
    		parser := NewParser(ctxt, arch, tokenizer)
    
    		err := tryParse(t, func() {
    			parser.Parse()
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    			t.Errorf("#%d: %q: want error %q; have %q", i, test.input, test.error, err)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                        return null;
                    }
                    final String id = getId(configId);
                    if (id == null) {
                        return null;
                    }
                    return switch (configType) {
                    case WEB -> {
                        final WebConfigService webConfigService = ComponentUtil.getComponent(WebConfigService.class);
                        yield webConfigService.getWebConfig(id).get();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top