Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for lobj (0.01 sec)

  1. fastapi/encoders.py

            )
        if isinstance(obj, Enum):
            return obj.value
        if isinstance(obj, PurePath):
            return str(obj)
        if isinstance(obj, (str, int, float, type(None))):
            return obj
        if isinstance(obj, PydanticUndefinedType):
            return None
        if isinstance(obj, dict):
            encoded_dict = {}
            allowed_keys = set(obj.keys())
            if include is not None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. tests/test_jsonable_encoder.py

        test_path = PurePath("/foo", "bar")
        obj = ModelWithPath(path=test_path)
        assert jsonable_encoder(obj) == {"path": str(test_path)}
    
    
    def test_encode_model_with_pure_posix_path():
        class ModelWithPath(BaseModel):
            path: PurePosixPath
    
            model_config = {"arbitrary_types_allowed": True}
    
        obj = ModelWithPath(path=PurePosixPath("/foo", "bar"))
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                    if (first) {
                        first = false;
                    } else {
                        buf.append(',');
                    }
                    buf.append(escapeJson(entry.getKey())).append(':').append(escapeJson(entry.getValue()));
                }
                buf.append('}');
            } else if (obj instanceof Integer || obj instanceof Long || obj instanceof Float || obj instanceof Double) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 55.4K bytes
    - Viewed (1)
  4. android/guava/src/com/google/common/base/CaseFormat.java

        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof StringConverter) {
            StringConverter that = (StringConverter) obj;
            return sourceFormat.equals(that.sourceFormat) && targetFormat.equals(that.targetFormat);
          }
          return false;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Dec 03 18:46:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/CaseFormat.java

        protected String doBackward(String s) {
          return targetFormat.to(sourceFormat, s);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof StringConverter) {
            StringConverter that = (StringConverter) obj;
            return sourceFormat.equals(that.sourceFormat) && targetFormat.equals(that.targetFormat);
          }
          return false;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Dec 03 18:46:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                        final Object obj = source.get(s);
                        if (obj instanceof Date) {
                            return false;
                        }
                        return !validateDateTimeString(source.get(s));
                    }).collect(Collectors.toList()));
        }
    
        default boolean validateDateTimeString(final Object obj) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 13 02:21:17 UTC 2025
    - 88.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

         *
         * @param obj the object containing anchor URLs (String or List of Strings)
         * @return a set of RequestData objects for the anchor URLs, or null if no valid URLs found
         */
        protected Set<RequestData> getAnchorSet(final Object obj) {
            if (obj == null) {
                return null;
            }
    
            List<String> anchorList;
            if (obj instanceof final String s) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 11 09:47:03 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  8. fastapi/_compat/shared.py

            for sub_annotation in get_args(annotation)
        )
    
    
    def is_pydantic_v1_model_instance(obj: Any) -> bool:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", UserWarning)
            from pydantic import v1
        return isinstance(obj, v1.BaseModel)
    
    
    def is_pydantic_v1_model_class(cls: Any) -> bool:
        with warnings.catch_warnings():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java

         */
        private Object getField(Object obj, String fieldName) throws Exception {
            Class<?> clazz = obj.getClass();
            while (clazz != null) {
                try {
                    java.lang.reflect.Field field = clazz.getDeclaredField(fieldName);
                    field.setAccessible(true);
                    return field.get(obj);
                } catch (NoSuchFieldException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

            }
    
            @Override
            public boolean equals(final Object obj) {
                if (this == obj) {
                    return true;
                }
                if (obj == null || getClass() != obj.getClass()) {
                    return false;
                }
                final CrawlRequest other = (CrawlRequest) obj;
                return Objects.equals(url, other.url);
            }
    
            @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 29.7K bytes
    - Viewed (3)
Back to top