Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,207 for Read (0.15 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial006_py310.py

        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_read_item_name(client: TestClient):
        response = client.get("/items/bar/name")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
    
    
    @needs_py310
    def test_read_item_public_data(client: TestClient):
        response = client.get("/items/bar/public")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  2. buildscripts/minio-upgrade.sh

    		up -d --build
    
    	add_alias
    
    	mc mb minio/minio-test/
    	mc cp ./minio minio/minio-test/to-read/
    	mc cp /etc/hosts minio/minio-test/to-read/hosts
    	mc anonymous set download minio/minio-test
    
    	verify_checksum_mc ./minio minio/minio-test/to-read/minio
    
    	curl -s http://127.0.0.1:9000/minio-test/to-read/hosts | sha256sum
    
    	MINIO_VERSION=dev docker-compose -f "buildscripts/upgrade-tests/compose.yml" stop
    }
    
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 05 11:39:55 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/settings.md

        // Use it with other programs, like
        $ echo "Hello $Env:MY_NAME"
    
        Hello Wade Wilson
        ```
    
        </div>
    
    ### Read env vars in Python
    
    You could also create environment variables outside of Python, in the terminal (or with any other method), and then read them in Python.
    
    For example you could have a file `main.py` with:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ACE.java

     * will succeed because the inherited ACE allows local <tt>Administrators</tt>
     * both <tt>FILE_READ_DATA</tt> and <tt>FILE_WRITE_DATA</tt> access.
     */
    public interface ACE {
    
        /**
         * 
         */
        public static final int FILE_READ_DATA = 0x00000001; // 1
        /**
         * 
         */
        public static final int FILE_WRITE_DATA = 0x00000002; // 2
        /**
         * 
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbConstants.java

        static final int CAP_LOCK_AND_READ = 0x0100;
        static final int CAP_NT_FIND = 0x0200;
        static final int CAP_DFS = 0x1000;
        static final int CAP_LARGE_READX = 0x4000;
        static final int CAP_LARGE_WRITEX = 0x8000;
        static final int CAP_EXTENDED_SECURITY = 0x80000000;
    
        // file attribute encoding
        /**
         * File is marked read-only
         */
        static final int ATTR_READONLY = 0x01;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  6. okhttp-brotli/src/main/kotlin/okhttp3/brotli/internal/DecompressionBombChecker.kt

      private var outputByteCount = 0L
    
      fun wrapInput(source: Source): Source {
        return object : ForwardingSource(source) {
          override fun read(
            sink: Buffer,
            byteCount: Long,
          ): Long {
            val result = super.read(sink, byteCount)
            if (result == -1L) return result
            inputByteCount += result
            return result
          }
        }
      }
    
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 29 22:50:20 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental_reader.cc

    int64_t TFE_MonitoringCounterReader::Read(const LabelType&... labels) {
      return counter->Read(labels...);
    }
    
    TFE_MonitoringCounterReader* TFE_MonitoringNewCounterReader(const char* name) {
      auto* result = new TFE_MonitoringCounterReader(name);
    
      return result;
    }
    
    int64_t TFE_MonitoringReadCounter0(TFE_MonitoringCounterReader* cell_reader) {
      int64_t result = cell_reader->Read();
    
      return result;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

                if (inputStream != null) {
                    return xml.read(inputStream, request.isStrict());
                } else if (reader != null) {
                    return xml.read(reader, request.isStrict());
                } else if (path != null) {
                    try (InputStream is = Files.newInputStream(path)) {
                        return xml.read(is, request.isStrict());
                    }
                } else {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/IoTestCase.java

        InputStream in = url.openStream();
        try {
          OutputStream out = new FileOutputStream(file);
          try {
            byte[] buf = new byte[4096];
            for (int read = in.read(buf); read != -1; read = in.read(buf)) {
              out.write(buf, 0, read);
            }
          } finally {
            out.close();
          }
        } finally {
          in.close();
        }
      }
    
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          }
    
          val read = super.read(sink, minOf(byteCount, bytesRemainingInChunk))
          if (read == -1L) {
            carrier.noNewExchanges() // The server didn't supply the promised chunk length.
            val e = ProtocolException("unexpected end of stream")
            responseBodyComplete()
            throw e
          }
          bytesRemainingInChunk -= read
          return read
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top