Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 94 for simulate (0.23 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. fastapi/.agents/skills/fastapi/references/dependencies.md

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    @dataclass
    class DatabasePaginator:
        offset: int = 0
        limit: int = 100
        q: str | None = None
    
        def get_page(self) -> dict:
            # Simulate a page of data
            return {
                "offset": self.offset,
                "limit": self.limit,
                "q": self.q,
                "items": [],
            }
    
    
    def get_db_paginator(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/http/NtlmServletTest.java

    import jcifs.CIFSException;
    import jcifs.Configuration;
    import jcifs.NameServiceClient;
    import jcifs.smb.NtlmPasswordAuthentication;
    
    /**
     * Tests for the NtlmServlet class.
     * This class uses Mockito to simulate a servlet environment and test authentication logic.
     */
    @ExtendWith(MockitoExtension.class)
    class NtlmServletTest {
    
        // A concrete implementation of the abstract NtlmServlet for testing purposes.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  3. ci/official/envs/windows_x86_2022

    TFCI_WHL_AUDIT_PLAT=0
    # Tests are extremely slow at the moment
    TFCI_WHL_BAZEL_TEST_ENABLE=0
    TFCI_WHL_SIZE_LIMIT=450M
    TFCI_WHL_SIZE_LIMIT_ENABLE=1
    TFCI_WHL_IMPORT_TEST_ENABLE=1
    TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS=""
    
    # Used to simulate a T:\ drive within the container, to a limited extent,
    # via a symlink.
    # Helpful since the internal CI utilizes a T:\ drive, part of which is mounted
    # to the container, and would result in C:\<path> != T:\<path> mismatches,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Nov 06 19:44:26 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            protected int writeParameterWordsWireFormat(byte[] dst, int dstIndex) {
                paramWordsWritten = 10; // Simulate writing parameter words
                return paramWordsWritten;
            }
    
            @Override
            protected int writeBytesWireFormat(byte[] dst, int dstIndex) {
                bytesWritten = 20; // Simulate writing bytes
                return bytesWritten;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. tensorflow/c/eager/c_api_remote_test_util.h

    #define TENSORFLOW_C_EAGER_C_API_REMOTE_TEST_UTIL_H_
    
    // Run a function containing a MatMul op and check its output.
    // If heavy_load_on_streaming_rpc is true, send some rpc requests before the one
    // which creates a remote input, to simulate a scenario that the remote input
    // is not ready when we start running an op or a function.
    void TestRemoteExecuteSilentCopies(bool async, bool remote, bool func,
                                       bool heavy_load_on_streaming_rpc,
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 1.4K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/stream-data.md

    Then you can use this new class in `response_class=PNGStreamingResponse` in your *path operation function*:
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
    
    ### Simulate a File { #simulate-a-file }
    
    In this example, we are simulating a file with `io.BytesIO`, which is a file-like object that lives only in memory, but lets us use the same interface.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  7. cmd/metrics-v2_test.go

    		},
    		{
    			val:   0.79,
    			label: labels[2],
    		},
    	}
    	ticker := time.NewTicker(1 * time.Millisecond)
    	defer ticker.Stop()
    	for _, obs := range observations {
    		// Send observations once every 1ms, to simulate delay between
    		// observations. This is to test the channel based
    		// synchronization used internally.
    		<-ticker.C
    		ttfbHist.With(prometheus.Labels{"api": obs.label}).Observe(obs.val)
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            public int dec_ndr_long() {
                // Simulate decoding a long
                offset += 4;
                return 0; // Return a dummy value
            }
    
            @Override
            public void enc_ndr_short(int v) {
                // Simulate encoding a short
                offset += 2;
            }
    
            @Override
            public int dec_ndr_short() {
                // Simulate decoding a short
                offset += 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 60.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        @DisplayName("Test getInfo with compatible type")
        void testGetInfoWithCompatibleType() throws Exception {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            // Simulate setting info through readDataWireFormat
            byte[] buffer = createMockFileBasicInfoBuffer();
            response.setDataCount(buffer.length);
            response.readDataWireFormat(buffer, 0, buffer.length);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/chat/ChatPhaseCallbackTest.java

                }
    
                @Override
                public void onError(String phase, String errorMessage) {
                }
            };
    
            // Simulate typical flow
            callback.onPhaseStart(ChatPhaseCallback.PHASE_INTENT, "msg");
            callback.onPhaseStart(ChatPhaseCallback.PHASE_SEARCH, "msg");
            callback.onPhaseStart(ChatPhaseCallback.PHASE_EVALUATE, "msg");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 7.3K bytes
    - Click Count (0)
Back to Top