Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2891 - 2900 of 7,590 for CLASS (0.03 sec)

  1. docs_src/dependencies/tutorial008b_an.py

    app = FastAPI()
    
    
    data = {
        "plumbus": {"description": "Freshly pickled plumbus", "owner": "Morty"},
        "portal-gun": {"description": "Gun to create portals", "owner": "Rick"},
    }
    
    
    class OwnerError(Exception):
        pass
    
    
    def get_username():
        try:
            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 785 bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial006_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
            "description": "There goes my baz",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 816 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/AccessTokenHelper.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.exception.InvalidAccessTokenException;
    import org.codelibs.fess.util.ComponentUtil;
    
    import jakarta.servlet.http.HttpServletRequest;
    
    public class AccessTokenHelper {
    
        protected static final String BEARER = "Bearer";
    
        protected Random random = new SecureRandom();
    
        public String generateAccessToken() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/exentity/JobLog.java

    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.es.config.bsentity.BsJobLog;
    import org.codelibs.fess.util.ComponentUtil;
    
    /**
     * @author FreeGen
     */
    public class JobLog extends BsJobLog {
    
        private static final long serialVersionUID = 1L;
    
        private ScheduledJob scheduledJob;
    
        public JobLog() {
        }
    
        public JobLog(final ScheduledJob scheduledJob) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/JvmUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.util;
    
    import java.util.Arrays;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    public final class JvmUtil {
        private static final Pattern VERSION_PREFIX_PATTERN = Pattern.compile("([0-9]+)(\\-?):(.*)");
    
        private JvmUtil() {
            // nothing
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

    import org.codelibs.fess.util.ComponentUtil;
    
    import jakarta.validation.ConstraintDefinitionException;
    import jakarta.validation.ConstraintValidator;
    import jakarta.validation.ConstraintValidatorContext;
    
    public class UriTypeValidator implements ConstraintValidator<UriType, String> {
        private String[] protocols;
    
        @Override
        public void initialize(final UriType uriType) {
            protocols = switch (uriType.protocolType()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 13:37:12 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/systeminfo/ApiAdminSysteminfoAction.java

    import org.codelibs.fess.app.web.api.admin.FessApiAdminAction;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.JsonResponse;
    
    /**
     * @author Keiichi Watanabe
     */
    public class ApiAdminSysteminfoAction extends FessApiAdminAction {
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideItemTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.dict.stemmeroverride;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class StemmerOverrideItemTest extends UnitFessTestCase {
    
        public void test_new1() {
            final StemmerOverrideItem stemmerOverrideItem = new StemmerOverrideItem(1, "aaa", "a");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetEqualsTester<E> extends AbstractMultisetTester<E> {
      public void testEqualsSameContents() {
        new EqualsTester()
            .addEqualityGroup(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

     * limitations under the License.
     */
    package okhttp3.recipes.kt
    
    import java.io.File
    import java.io.IOException
    import okhttp3.Cache
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class CacheResponse(cacheDirectory: File) {
      private val client: OkHttpClient =
        OkHttpClient.Builder()
          .cache(
            Cache(
              directory = cacheDirectory,
              // 1 MiB.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top