- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 91 for setattr (0.35 seconds)
-
tensorflow/api_template.__init__.py
_initializers = _KerasLazyLoader( globals(), submodule="initializers", name="initializers") setattr(_current_module, "losses", _losses) setattr(_current_module, "metrics", _metrics) setattr(_current_module, "optimizers", _optimizers) setattr(_current_module, "initializers", _initializers) # Do an eager load for Keras' code so that any function/method that needs to
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Oct 02 22:16:02 GMT 2024 - 6.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/PrunedTagTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 21.1K bytes - Click Count (0) -
tensorflow/api_template_v1.__init__.py
import tensorflow_io_gcs_filesystem as _tensorflow_io_gcs_filesystem # Lazy-load Keras v1. _tf_uses_legacy_keras = ( _os.environ.get("TF_USE_LEGACY_KERAS", None) in ("true", "True", "1")) setattr(_current_module, "keras", _KerasLazyLoader(globals(), mode="v1")) _module_dir = _module_util.get_parent_dir_for_name("keras._tf_keras.keras") _current_module.__path__ = [_module_dir] + _current_module.__path__Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Oct 02 22:16:02 GMT 2024 - 7.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/PrunedTag.java
* Sets a custom attribute name-value pair that this pruned tag should match. * * @param name the attribute name to match * @param value the attribute value to match */ public void setAttr(final String name, final String value) { attrName = name; attrValue = value; } @Override public String toString() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Mon Nov 24 04:23:08 GMT 2025 - 7.1K bytes - Click Count (0) -
tests/test_multipart_installation.py
multipart_not_installed_error, ) def test_incorrect_multipart_installed_form(monkeypatch): monkeypatch.setattr("python_multipart.__version__", "0.0.12") with warnings.catch_warnings(record=True): warnings.simplefilter("always") monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False) with pytest.raises(RuntimeError, match=multipart_incorrect_install_error):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Oct 27 21:46:26 GMT 2024 - 5.7K bytes - Click Count (0) -
tests/test_list_bytes_file_order_preserved_issue_14811.py
# Make the FIRST file slower *deterministically* if self.filename == "slow.txt": await anyio.sleep(0.05) return await original_read(self, size) monkeypatch.setattr(StarletteUploadFile, "read", patched_read) client = TestClient(app) files = [ ("files", ("slow.txt", b"A" * 10, "text/plain")), ("files", ("fast.txt", b"B" * 10, "text/plain")), ]Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 10 12:14:38 GMT 2026 - 1.4K bytes - Click Count (0) -
tests/test_sse.py
def slow_sync_stream(): yield {"n": 1} time.sleep(0.3) yield {"n": 2} def test_keepalive_ping_async(monkeypatch: pytest.MonkeyPatch): monkeypatch.setattr(fastapi.routing, "_PING_INTERVAL", 0.05) with TestClient(keepalive_app) as c: response = c.get("/slow-async") assert response.status_code == 200 text = response.text
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 9.8K bytes - Click Count (0) -
docs/debugging/xattr/main.go
var ( path, name string value uint64 set, list bool ) func getxattr(path, name string) (uint64, error) { buf, err := xattr.LGet(path, name) if err != nil { return 0, err } return binary.LittleEndian.Uint64(buf[:8]), nil } func listxattr(path string) ([]string, error) { return xattr.LList(path) } func setxattr(path, name string, value uint64) error { data := make([]byte, 8)Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Dec 29 23:52:41 GMT 2023 - 3.2K bytes - Click Count (0) -
fastapi/dependencies/models.py
return False dunder_call = getattr(_impartial(self.call), "__call__", None) # noqa: B004 if dunder_call is None: return False # pragma: no cover if inspect.isgeneratorfunction( _impartial(dunder_call) ) or inspect.isgeneratorfunction(_unwrapped_call(dunder_call)): return TrueCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 7.1K bytes - Click Count (0) -
fastapi/openapi/utils.py
openapi_examples = getattr(field_info, "openapi_examples", None) example = getattr(field_info, "example", None) if openapi_examples: parameter["examples"] = jsonable_encoder(openapi_examples) elif example is not _Unset: parameter["example"] = jsonable_encoder(example) if getattr(field_info, "deprecated", None):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.6K bytes - Click Count (0)