Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 650 for stateN (0.14 sec)

  1. tests/test_http_connection_injection.py

    from fastapi.requests import HTTPConnection
    from fastapi.testclient import TestClient
    from starlette.websockets import WebSocket
    
    app = FastAPI()
    app.state.value = 42
    
    
    async def extract_value_from_http_connection(conn: HTTPConnection):
        return conn.app.state.value
    
    
    @app.get("/http")
    async def get_value_by_http(value: int = Depends(extract_value_from_http_connection)):
        return value
    
    
    @app.websocket("/ws")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 13:56:41 UTC 2020
    - 972 bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MoreCollectors.java

              ToOptionalState::new,
              (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o),
              ToOptionalState::combine,
              state -> {
                Object result = state.getElement();
                return (result == NULL_PLACEHOLDER) ? null : result;
              },
              Collector.Characteristics.UNORDERED);
    
      /**
       * A collector that takes a stream containing exactly one element and returns that element. The
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static junit.framework.Assert.assertEquals;
    import static junit.framework.Assert.assertNotNull;
    import static junit.framework.Assert.assertNull;
    import static junit.framework.Assert.assertSame;
    
    import com.google.common.testing.TearDown;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. docs_src/sql_databases_peewee/sql_app/database.py

        def __init__(self, **kwargs):
            super().__setattr__("_state", db_state)
            super().__init__(**kwargs)
    
        def __setattr__(self, name, value):
            self._state.get()[name] = value
    
        def __getattr__(self, name):
            return self._state.get()[name]
    
    
    db = peewee.SqliteDatabase(DATABASE_NAME, check_same_thread=False)
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 662 bytes
    - Viewed (0)
  5. cmd/tier-last-day-stats.go

    		merged.UpdatedAt = cm.UpdatedAt
    	}
    
    	for i := range cl.Bins {
    		merged.Bins[i] = cl.Bins[i].add(cm.Bins[i])
    	}
    
    	return merged
    }
    
    // DailyAllTierStats is used to aggregate last day tier stats across MinIO servers
    type DailyAllTierStats map[string]lastDayTierStats
    
    func (l DailyAllTierStats) merge(m DailyAllTierStats) {
    	for tier, st := range m {
    		l[tier] = l[tier].merge(st)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    		stats = append(stats, madmin.KMS{
    			Status:   string(state),
    			Endpoint: endpoint,
    		})
    	}
    	return stats
    }
    
    func targetStatus(ctx context.Context, h logger.Target) madmin.Status {
    	if h.IsOnline(ctx) {
    		return madmin.Status{Status: string(madmin.ItemOnline)}
    	}
    	return madmin.Status{Status: string(madmin.ItemOffline)}
    }
    
    // fetchLoggerInfo return log info
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/netdfs.idl

    	typedef struct {
    		uint32_t count;
    		[size_is(count)] DfsInfo1 *s;
    	} DfsEnumArray1;
    
    	typedef struct {
    		uint32_t state;
    		[string] wchar_t *server_name;
    		[string] wchar_t *share_name;
    	} DfsStorageInfo;
    
    	typedef struct {
    		[string] wchar_t *path;
    		[string] wchar_t *comment;
    		uint32_t state;
    		uint32_t num_stores;
    		[size_is(num_stores)] DfsStorageInfo *stores;
    	} DfsInfo3;
    
    	typedef struct {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.IDLE;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.QUEUED;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.QUEUING;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/SequentialExecutor.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.IDLE;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.QUEUED;
    import static com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState.QUEUING;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. cmd/admin-server-info.go

    	gcStats := debug.GCStats{
    		// If stats.PauseQuantiles is non-empty, ReadGCStats fills
    		// it with quantiles summarizing the distribution of pause time.
    		// For example, if len(stats.PauseQuantiles) is 5, it will be
    		// filled with the minimum, 25%, 50%, 75%, and maximum pause times.
    		PauseQuantiles: make([]time.Duration, 5),
    	}
    	debug.ReadGCStats(&gcStats)
    	// Truncate GC stats to max 5 entries.
    	if len(gcStats.PauseEnd) > 5 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top