Search Options

Results per page
Sort
Preferred Languages
Advance

Results 5491 - 5500 of 6,120 for stringy (0.09 sec)

  1. docs_src/security/tutorial004_an_py39.py

    from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
    from jwt.exceptions import InvalidTokenError
    from passlib.context import CryptContext
    from pydantic import BaseModel
    
    # to get a string like this run:
    # openssl rand -hex 32
    SECRET_KEY = "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7"
    ALGORITHM = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES = 30
    
    
    fake_users_db = {
        "johndoe": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. internal/lock/lock.go

    	return &RLockedFile{
    		LockedFile: lkFile,
    		refs:       1,
    	}, nil
    }
    
    // RLockedOpenFile - returns a wrapped read locked file, if the file
    // doesn't exist at path returns an error.
    func RLockedOpenFile(path string) (*RLockedFile, error) {
    	lkFile, err := LockedOpenFile(path, os.O_RDONLY, 0o666)
    	if err != nil {
    		return nil, err
    	}
    
    	return newRLockedFile(lkFile)
    }
    
    // LockedFile represents a locked file
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. common-protos/k8s.io/api/coordination/v1/generated.proto

      repeated Lease items = 2;
    }
    
    // LeaseSpec is a specification of a Lease.
    message LeaseSpec {
      // holderIdentity contains the identity of the holder of a current lease.
      // +optional
      optional string holderIdentity = 1;
    
      // leaseDurationSeconds is a duration that candidates for a lease need
      // to wait to force acquire it. This is measure against time of last
      // observed renewTime.
      // +optional
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. build-logic/documentation/src/test/groovy/gradlebuild/docs/XmlSpecification.groovy

    import javax.xml.parsers.DocumentBuilderFactory
    
    abstract class XmlSpecification extends Specification {
        final Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()
    
        def parse(String str, Document document = null) {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()
            factory.setNamespaceAware(true)
            DocumentBuilder builder = factory.newDocumentBuilder()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  5. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            then:
            newRepo.find('class') == value
        }
    }
    
    class TestDomainObject implements Attachable<TestDomainObject>, Serializable {
        def value
    
        TestDomainObject(String value) {
            this.value = value
        }
    
        @Override
        boolean equals(Object o) {
            return o.value == value
        }
    
        @Override
        int hashCode() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrcHasher);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

      open val connection: Connection?
        get() = null
    
      /** Returns if the event closes this event, or null if this is no open event. */
      open fun closes(event: ConnectionEvent): Boolean? = null
    
      val name: String
        get() = javaClass.simpleName
    
      data class ConnectStart(
        override val timestampNs: Long,
        val route: Route,
        val call: Call,
      ) : ConnectionEvent()
    
      data class ConnectFailed(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

    ) : AsyncDns {
      @RequiresApi(Build.VERSION_CODES.Q)
      internal val resolver = DnsResolver.getInstance()
      private val executor = Executors.newSingleThreadExecutor()
    
      override fun query(
        hostname: String,
        callback: AsyncDns.Callback,
      ) {
        try {
          resolver.query(
            network,
            hostname,
            dnsClass.type,
            DnsResolver.FLAG_EMPTY,
            executor,
            null,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/pager/SynonymPager.java

        private boolean existPrePage;
    
        private boolean existNextPage;
    
        private List<Integer> pageNumberList;
    
        private int pageSize;
    
        private int currentPageNumber;
    
        public String id;
    
        public void clear() {
            allRecordCount = 0;
            allPageCount = 0;
            existPrePage = false;
            existNextPage = false;
            pageSize = getDefaultPageSize();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullMissingWhenNullUnsupported(String message) {
        try {
          assertFalse(message, actualContents().contains(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top