Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 421 - 430 of 2,497 for Case (0.03 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/LogbackConfiguration.java

        @Override
        public void setRootLoggerLevel(Level level) {
            ch.qos.logback.classic.Level value =
                    switch (level) {
                        case DEBUG -> ch.qos.logback.classic.Level.DEBUG;
                        case INFO -> ch.qos.logback.classic.Level.INFO;
                        default -> ch.qos.logback.classic.Level.ERROR;
                    };
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 17 09:56:12 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  2. cmd/tier_test.go

    		globalTierMetrics.logFailure(tier)
    	}
    	metrics := globalTierMetrics.Report()
    	var succ, fail float64
    	for _, metric := range metrics {
    		switch metric.Description.Name {
    		case tierRequestsSuccess:
    			succ += metric.Value
    		case tierRequestsFailure:
    			fail += metric.Value
    		}
    	}
    	if int(succ) != expSuccess {
    		t.Fatalf("Expected %d successes but got %f", expSuccess, succ)
    	}
    	if int(fail) != expFailure {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ClassMap.java

         * it'll either be a CACHE_MISS, in which case we
         * simply give up, or it'll be a Method, in which
         * case, we return it.</p>
         * <p>If nothing is found, then we must actually go
         * and introspect the method from the MethodMap.</p>
         * @param name Method name.
         * @param params Method parameters.
         * @return The found method.
         * @throws MethodMap.AmbiguousException in case of duplicate methods.
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/advanced-dependencies.md

    If you have this specific use case using SQLModel (or SQLAlchemy), you could explicitly close the session after you don't need it anymore:
    
    {* ../../docs_src/dependencies/tutorial014_an_py310.py ln[24:28] hl[28] *}
    
    That way the session would release the database connection, so other requests could use it.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Nov 13 07:37:15 GMT 2025
    - 9.1K bytes
    - Click Count (0)
  5. cmd/http-stats.go

    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    		hstats.totalS3Canceled.Inc(api)
    	case code >= http.StatusBadRequest:
    		if code >= http.StatusInternalServerError {
    			hstats.totalS35xxErrors.Inc(api)
    		} else {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 17:13:00 GMT 2024
    - 11.4K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java

                if (queryBuilder != null) {
                    switch (clause.occur()) {
                    case MUST:
                        boolQuery.must(queryBuilder);
                        break;
                    case SHOULD:
                        boolQuery.should(queryBuilder);
                        break;
                    case MUST_NOT:
                        boolQuery.mustNot(queryBuilder);
                        break;
                    default:
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  7. logger/slog.go

    		fields = append(fields, slog.Int64("rows", rows))
    	}
    
    	switch {
    	case err != nil && (!l.IgnoreRecordNotFoundError || !errors.Is(err, ErrRecordNotFound)):
    		fields = append(fields, slog.String("error", err.Error()))
    		l.log(ctx, slog.LevelError, "SQL executed", slog.Attr{
    			Key:   "trace",
    			Value: slog.GroupValue(fields...),
    		})
    
    	case l.SlowThreshold != 0 && elapsed > l.SlowThreshold:
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Oct 30 10:56:26 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

            // Test case 1: Standard padding
            final byte[] data1 = "abc".getBytes();
            assertEquals("YWJj", Base64Util.encode(data1));
    
            // Test case 2: Single padding
            final byte[] data2 = "abcd".getBytes();
            assertEquals("YWJjZA==", Base64Util.encode(data2));
    
            // Test case 3: Double padding
            final byte[] data3 = "abcde".getBytes();
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/pac/kerberos/KerberosTicket.java

                switch (tagged.getTagNo()) {
                case 0:// Kerberos version
                    ASN1Integer tktvno = ASN1Util.as(ASN1Integer.class, tagged);
                    if (!tktvno.getValue().equals(new BigInteger(KerberosConstants.KERBEROS_VERSION))) {
                        throw new PACDecodingException("Invalid kerberos version " + tktvno);
                    }
                    break;
                case 1:// Realm
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  10. cmd/bitrot.go

    func (a BitrotAlgorithm) New() hash.Hash {
    	switch a {
    	case SHA256:
    		return sha256.New()
    	case BLAKE2b512:
    		b2, _ := blake2b.New512(nil) // New512 never returns an error if the key is nil
    		return b2
    	case HighwayHash256:
    		hh, _ := highwayhash.New(magicHighwayHash256Key) // New will never return error since key is 256 bit
    		return hh
    	case HighwayHash256S:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 7.7K bytes
    - Click Count (0)
Back to Top