Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 1,729 for states (0.05 seconds)

  1. tests/test_dependency_yield_scope.py

            assert response.status_code == 200
            assert response.json() == {"status": "ok"}
    
    
    def test_app_level_dep_scope_function() -> None:
        app = FastAPI(dependencies=[Depends(raise_after_yield, scope="function")])
    
        @app.get("/app-scope-function")
        def get_app_scope_function():
            return {"status": "ok"}
    
        with TestClient(app) as client:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactStatus.java

            }
            map.put(key, this);
        }
    
        public static ArtifactStatus valueOf(String status) {
            ArtifactStatus retVal = null;
    
            if (status != null) {
                retVal = map.get(status);
            }
    
            return retVal != null ? retVal : NONE;
        }
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  3. tensorflow/c/eager/abstract_tensor_handle.h

      virtual tensorflow::DataType DataType() const = 0;
    
      // Returns the status of the tensor handle. If it is a tfrt::TensorHandle,
      // the tensor handle can be an error and return non-OK status.
      virtual absl::Status TensorHandleStatus() const;
    
      // Returns tensor shape. If tensor has unknown rank, shape remains untouched.
      virtual absl::Status Shape(tensorflow::PartialTensorShape* shape) const = 0;
    
      // Returns tensor (full) type.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 3K bytes
    - Click Count (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

            override fun shutdown() = TODO()
          }
      }
    
      @Test @Ignore
      fun mockResponse() {
        var mockResponse: MockResponse = MockResponse()
        var status: String = mockResponse.status
        status = mockResponse.status
        mockResponse.status = ""
        mockResponse = mockResponse.setResponseCode(0)
        var headers: Headers = mockResponse.headers
        var trailers: Headers = mockResponse.trailers
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/path-operation-configuration.md

    ///
    
    ## 回應狀態碼 { #response-status-code }
    
    你可以為「路徑操作」的回應設定 (HTTP) `status_code`。
    
    你可以直接傳入整數代碼,例如 `404`。
    
    如果不記得每個數字代碼代表什麼,你可以使用 `status` 中的速記常數:
    
    {* ../../docs_src/path_operation_configuration/tutorial001_py310.py hl[1,15] *}
    
    該狀態碼會用於回應,並被加入至 OpenAPI 結構描述中。
    
    /// note | 技術細節
    
    你也可以使用 `from starlette import status`。
    
    **FastAPI** 提供與 `starlette.status` 相同的 `fastapi.status`,僅為了方便你這位開發者,但它其實直接來自 Starlette。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/math/StatsTesting.java

      static final Stats OTHER_MANY_VALUES_STATS = Stats.of(OTHER_MANY_VALUES);
      static final Stats INTEGER_MANY_VALUES_STATS_VARARGS =
          Stats.of(Ints.toArray(INTEGER_MANY_VALUES));
      static final Stats INTEGER_MANY_VALUES_STATS_ITERABLE = Stats.of(INTEGER_MANY_VALUES);
      static final Stats LARGE_INTEGER_VALUES_STATS = Stats.of(LARGE_INTEGER_VALUES);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 24K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

             *
             * @param key lease key
             * @param path file path
             * @param state initial lease state
             */
            public LeaseEntry(Smb2LeaseKey key, String path, int state) {
                this.leaseKey = key;
                this.path = path;
                this.leaseState = state;
                this.createTime = System.currentTimeMillis();
                this.lastAccessTime = createTime;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  8. internal/bucket/object/lock/lock_test.go

    		if o.Status != tt.expected.Status {
    			t.Fatalf("Case %d expected %v, got %v", i, tt.expected.Status, o.Status)
    		}
    	}
    }
    
    func TestParseObjectLegalHold(t *testing.T) {
    	tests := []struct {
    		value       string
    		expectedErr error
    		expectErr   bool
    	}{
    		{
    			value:       `<?xml version="1.0" encoding="UTF-8"?><LegalHold xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Status>string</Status></LegalHold>`,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 18.4K bytes
    - Click Count (0)
  9. internal/event/targetlist.go

    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		// should not happen
    		return
    	}
    
    	stats.currentSendCalls--
    	list.targetStats[id] = stats
    }
    
    func (list *TargetList) incFailedEvents(id TargetID) {
    	list.statLock.Lock()
    	defer list.statLock.Unlock()
    
    	stats, ok := list.targetStats[id]
    	if !ok {
    		stats = targetStat{}
    	}
    
    	stats.failedEvents++
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  10. tests/test_additional_responses_custom_validationerror.py

                    "schemas": {
                        "Error": {
                            "title": "Error",
                            "required": ["status", "title"],
                            "type": "object",
                            "properties": {
                                "status": {"title": "Status", "type": "string"},
                                "title": {"title": "Title", "type": "string"},
                            },
                        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.2K bytes
    - Click Count (0)
Back to Top