Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1201 - 1210 of 1,420 for Contexto (0.18 seconds)

  1. docs/zh/docs/advanced/events.md

    首先要注意的是,我们定义了一个带有 `yield` 的异步函数。这与带有 `yield` 的依赖项非常相似。
    
    {* ../../docs_src/events/tutorial003_py310.py hl[14:19] *}
    
    这个函数在 `yield` 之前的部分,会在应用启动前执行。
    
    剩下的部分在 `yield` 之后,会在应用完成后执行。
    
    ### 异步上下文管理器 { #async-context-manager }
    
    如你所见,这个函数有一个装饰器 `@asynccontextmanager`。
    
    它将函数转化为所谓的“**异步上下文管理器**”。
    
    {* ../../docs_src/events/tutorial003_py310.py hl[1,13] *}
    
    在 Python 中,**上下文管理器**是一个你可以在 `with` 语句中使用的东西,例如,`open()` 可以作为上下文管理器使用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/http/NetworkExplorerTest.java

    import jakarta.servlet.WriteListener;
    import jakarta.servlet.http.HttpServletRequest;
    import jakarta.servlet.http.HttpServletResponse;
    import jakarta.servlet.http.HttpSession;
    import jcifs.SmbResourceLocator;
    import jcifs.context.SingletonContext;
    import jcifs.smb.NtlmPasswordAuthentication;
    import jcifs.smb.SmbFile;
    
    /**
     * Unit tests for the NetworkExplorer servlet.
     * Tests initialization, authentication handling, and servlet lifecycle.
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  3. src/test/java/jcifs/netbios/LmhostsTest.java

            // Mock SmbFileInputStream to simulate include file
            try (MockedConstruction<SmbFileInputStream> mockedConstruction =
                    Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> {
                        // Mock the read method to return simple content
                        byte[] includeContent = "192.168.1.200 INCLUDEHOST\n".getBytes();
                        int[] index = { 0 };
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/SourceRoot.java

         *        mostly Source Code Management (<abbr>SCM</abbr>) files
         */
        PathMatcher matcher(Collection<String> defaultIncludes, boolean useDefaultExcludes);
    
        /**
         * {@return in which context the source files will be used}
         * Not to be confused with dependency scope.
         * The default value is {@code "main"}.
         *
         * @see ProjectScope#MAIN
         */
        default ProjectScope scope() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Nov 07 13:11:07 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  5. docs/security/README.md

    #### Randomness
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Feb 26 09:25:50 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @return a list of projects, never {@code null}
         */
        @Nonnull
        List<Project> getProjects();
    
        /**
         * Returns the plugin context for mojo being executed and the specified
         * {@link Project}, never returns {@code null} as if context not present, creates it.
         *
         * <strong>Implementation note:</strong> while this method return type is {@link Map}, the
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jul 03 14:18:26 GMT 2025
    - 36.5K bytes
    - Click Count (0)
  7. doc/godebug.md

    Only differences from the base Go toolchain defaults are reported.
    
    When testing a package, `//go:debug` lines in the `*_test.go`
    files are treated as directives for the test's main package.
    In any other context, `//go:debug` lines are ignored by the toolchain;
    `go` `vet` reports such lines as misplaced.
    
    ## GODEBUG History {#history}
    
    This section documents the GODEBUG settings introduced and removed in each major Go release
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Mar 20 15:49:10 GMT 2026
    - 26K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                Smb2ReadResponse response = request.createResponse(mockContext, request);
                assertNotNull(response);
                // Response should be created with the same config from context
                verify(mockContext, times(1)).getConfig();
            }
    
            @Test
            @DisplayName("Should pass output buffer to response")
            void testCreateResponseWithBuffer() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/Constants.java

        public static final String LDAP_SECURITY_AUTHENTICATION = "ldap.security.authentication";
    
        /** LDAP initial context factory configuration key. */
        public static final String LDAP_INITIAL_CONTEXT_FACTORY = "ldap.initial.context.factory";
    
        /** LDAP account filter configuration key. */
        public static final String LDAP_ACCOUNT_FILTER = "ldap.account.filter";
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 35.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            assertArrayEquals(pathBytes, actualPath);
        }
    
        @Test
        @DisplayName("Should handle response creation with null config from context")
        void testCreateResponseWithNullConfigFromContext() {
            // Given
            CIFSContext nullConfigContext = mock(CIFSContext.class);
            when(nullConfigContext.getConfig()).thenReturn(null);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
Back to Top