Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 4351 - 4360 of 8,997 for Class3 (0.12 seconds)

  1. docs_src/server_sent_events/tutorial002_py310.py

    from collections.abc import AsyncIterable
    
    from fastapi import FastAPI
    from fastapi.sse import EventSourceResponse, ServerSentEvent
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    items = [
        Item(name="Plumbus", price=32.99),
        Item(name="Portal Gun", price=999.99),
        Item(name="Meeseeks Box", price=49.99),
    ]
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 686 bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008c_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException
    
    app = FastAPI()
    
    
    class InternalError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except InternalError:
            print("Oops, we didn't raise again, Britney 😱")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 700 bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/DockerComposeThrottle.java

     * Side Public License, v 1.
     */
    package org.elasticsearch.gradle.internal.testfixtures;
    
    import org.gradle.api.services.BuildService;
    import org.gradle.api.services.BuildServiceParameters;
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 612 bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/DefaultReservedPortRangeFactory.java

     * in compliance with, at your election, the Elastic License 2.0 or the Server
     * Side Public License, v 1.
     */
    
    package org.elasticsearch.gradle.internal.util.ports;
    
    public class DefaultReservedPortRangeFactory implements ReservedPortRangeFactory {
        @Override
        public ReservedPortRange getReservedPortRange(int startPort, int endPort) {
            return new ReservedPortRange(startPort, endPort);
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 654 bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/app/pager/WebConfigPager.java

    import java.io.Serializable;
    import java.util.List;
    
    import org.codelibs.fess.util.ComponentUtil;
    
    /**
     * Pager class for web configuration settings.
     * Provides pagination functionality and search criteria for web configuration listings.
     */
    public class WebConfigPager implements Serializable {
    
        /**
         * Default constructor.
         */
        public WebConfigPager() {
            // Default constructor
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

     */
    package org.codelibs.fess.exception;
    
    import static org.junit.jupiter.api.Assertions.assertNotSame;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    public class LdapConfigurationExceptionTest extends UnitFessTestCase {
    
        @Test
        public void test_constructor_withMessage() {
            // Test with a normal message
            String message = "LDAP configuration error occurred";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

    import okhttp3.internal.platform.Platform
    import okhttp3.tls.internal.TlsUtil.localhost
    import okio.buffer
    import okio.source
    
    /** A basic HTTP/2 server that serves the contents of a local directory.  */
    class Http2Server(
      private val baseDirectory: File,
      private val sslSocketFactory: SSLSocketFactory,
    ) : Http2Connection.Listener() {
      private fun run() {
        val serverSocket = ServerSocket(8888)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/hash/SipHashFunction.java

    /**
     * {@link HashFunction} implementation of SipHash-c-d.
     *
     * @author Kurt Alfred Kluever
     * @author Jean-Philippe Aumasson
     * @author Daniel J. Bernstein
     */
    @Immutable
    final class SipHashFunction extends AbstractHashFunction implements Serializable {
      static final HashFunction SIP_HASH_24 =
          new SipHashFunction(2, 4, 0x0706050403020100L, 0x0f0e0d0c0b0a0908L);
    
      // The number of compression rounds.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/HashMultimap.java

     * existing key-value pair has no effect.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>This class is not threadsafe when any concurrent operations update the multimap. Concurrent
     * read operations will work correctly if the last write <i>happens-before</i> any reads. To allow
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

    import java.io.UnsupportedEncodingException;
    import java.nio.charset.StandardCharsets;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    /**
     * Unit tests for the NetServerEnum2 class.
     */
    class NetServerEnum2Test {
    
        private NetServerEnum2 netServerEnum2;
        private final String testDomain = "TEST_DOMAIN";
        private final int testServerTypes = NetServerEnum2.SV_TYPE_ALL;
    
        @BeforeEach
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.6K bytes
    - Click Count (0)
Back to Top