Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1141 - 1150 of 2,283 for else (0.03 sec)

  1. src/archive/zip/reader.go

    		}
    		if r.desr != nil {
    			if err1 := readDataDescriptor(r.desr, r.f); err1 != nil {
    				if err1 == io.EOF {
    					err = io.ErrUnexpectedEOF
    				} else {
    					err = err1
    				}
    			} else if r.hash.Sum32() != r.f.CRC32 {
    				err = ErrChecksum
    			}
    		} else {
    			// If there's not a data descriptor, we still compare
    			// the CRC32 of what we've read against the file header
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. tests/test_additional_properties_bool.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel, ConfigDict
    
    
    class FooBaseModel(BaseModel):
        if PYDANTIC_V2:
            model_config = ConfigDict(extra="forbid")
        else:
    
            class Config:
                extra = "forbid"
    
    
    class Foo(FooBaseModel):
        pass
    
    
    app = FastAPI()
    
    
    @app.post("/")
    async def post(
        foo: Union[Foo, None] = None,
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/TlsVersion.kt

          return when (javaName) {
            "TLSv1.3" -> TLS_1_3
            "TLSv1.2" -> TLS_1_2
            "TLSv1.1" -> TLS_1_1
            "TLSv1" -> TLS_1_0
            "SSLv3" -> SSL_3_0
            else -> throw IllegalArgumentException("Unexpected TLS version: $javaName")
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        Timestamped<V> value = cachingHashMap.get(key);
    
        if (value == null) {
          statsCounter.recordMisses(1);
          return null;
        } else if (!isExpired(value)) {
          statsCounter.recordHits(1);
          value.updateTimestamp();
          return value.getValue();
        } else {
          statsCounter.recordEviction();
          statsCounter.recordMisses(1);
          // `key` was in the cache, so it's a K.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/BigIntegerMath.java

              BigInteger halfPower =
                  SQRT2_PRECOMPUTED_BITS.shiftRight(SQRT2_PRECOMPUTE_THRESHOLD - logFloor);
              if (x.compareTo(halfPower) <= 0) {
                return logFloor;
              } else {
                return logFloor + 1;
              }
            }
            // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
            //
            // To determine which side of logFloor.5 the logarithm is,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

            case 1:
                if ((getFlags() & NTLMSSP_NEGOTIATE_NTLM2) == 0) {
                    setLMResponse(getLMResponse(type2, password));
                    setNTResponse(getNTResponse(type2, password));
                } else {
                    // NTLM2 Session Response
    
                    byte[] clientChallenge = new byte[24];
                    RANDOM.nextBytes(clientChallenge);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                    c = userInfo.charAt( i );
                    if( c == ';' ) {
                        domain = userInfo.substring( 0, i );
                        u = i + 1;
                    } else if( c == ':' ) {
                        password = userInfo.substring( i + 1 );
                        break;
                    }
                }
                username = userInfo.substring( u, i );
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  8. cmd/data-scanner.go

    	// Load current bloom cycle
    	var cycleInfo currentScannerCycle
    
    	buf, _ := readConfig(ctx, objAPI, dataUsageBloomNamePath)
    	if len(buf) == 8 {
    		cycleInfo.next = binary.LittleEndian.Uint64(buf)
    	} else if len(buf) > 8 {
    		cycleInfo.next = binary.LittleEndian.Uint64(buf[:8])
    		buf = buf[8:]
    		_, err := cycleInfo.UnmarshalMsg(buf)
    		bugLogIf(ctx, err)
    	}
    
    	scannerTimer := time.NewTimer(scannerCycle.Load())
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  9. buildSrc/src/main/kotlin/AlpnVersions.kt

        in 102..111 -> "8.1.9.v20160720"
        in 112..120 -> "8.1.10.v20161026"
        in 121..160 -> "8.1.11.v20170118"
        in 161..181 -> "8.1.12.v20180117"
        in 191..242 -> "8.1.13.v20181017"
        else -> null
      }
    }
    
    /**
     * Returns the alpn-boot version specific to this OpenJDK 8 JVM, or null if this is not a Java 8 VM.
     * https://github.com/xjdr/xio/blob/master/alpn-boot.gradle
     */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 07 16:05:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/delmarker-expiration_test.go

    			var dexp DelMarkerExpiration
    			var fail bool
    			err := xml.Unmarshal([]byte(test.xml), &dexp)
    			if test.err == nil {
    				if err != nil {
    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    					fail = true
    				}
    			}
    			if fail {
    				t.Fatalf("Expected %v but got %v", test.err, err)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top