- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,631 for samp (0.21 sec)
-
docs/en/docs/tutorial/security/get-current-user.md
Do you want to just have a `str`? Or just a `dict`? Or a database class model instance directly? It all works the same way. You actually don't have users that log in to your application but robots, bots, or other systems, that have just an access token? Again, it all works the same.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 7.6K bytes - Viewed (0) -
docs/en/docs/advanced/testing-database.md
You can use the same dependency overrides from [Testing Dependencies with Overrides](testing-dependencies.md){.internal-link target=_blank} to alter a database for testing. You could want to set up a different database for testing, rollback the data after the tests, pre-fill it with some testing data, etc. The main idea is exactly the same you saw in that previous chapter. ## Add tests for the SQL app
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
for (int i = 0; i < keyBits; i++) { int same = 0x0; // bitset for output bits with same values int diff = 0x0; // bitset for output bits with different values int count = 0; // originally was 2 * Math.log(...), making it try more times to avoid flakiness issues int maxCount = (int) (4 * Math.log(2 * keyBits * hashBits) + 1); while (same != 0xffffffff || diff != 0xffffffff) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 25.3K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
``` ### Testing file Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file): ``` hl_lines="5" . ├── app │ ├── __init__.py │ ├── main.py │ └── test_main.py ``` Because this file is in the same package, you can use relative imports to import the object `app` from the `main` module (`main.py`): ```Python hl_lines="3"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/en/docs/how-to/sql-databases-peewee.md
On top of that, an async framework could run some sync code in a threadpool (using `asyncio.run_in_executor`), but belonging to the same request.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 16 13:23:25 GMT 2024 - 23.6K bytes - Viewed (0) -
docs/en/docs/benchmarks.md
* So, by using FastAPI you are saving development time, bugs, lines of code, and you would probably get the same performance (or better) you would if you didn't use it (as you would have to implement it all in your code).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/en/docs/advanced/templates.md
!!! note "Technical Details" You could also use `from starlette.templating import Jinja2Templates`. **FastAPI** provides the same `starlette.templating` as `fastapi.templating` just as a convenience for you, the developer. But most of the available responses come directly from Starlette. The same with `Request` and `StaticFiles`. ## Writing templates Then you can write a template at `templates/item.html` with, for example:
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 22:25:37 GMT 2024 - 3.2K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcBinding.java
import jcifs.dcerpc.msrpc.netdfs; import jcifs.dcerpc.msrpc.samr; import jcifs.dcerpc.msrpc.srvsvc; /** * */ public class DcerpcBinding { private static final Map<String, String> INTERFACES = new HashMap<>(); static { INTERFACES.put("srvsvc", srvsvc.getSyntax()); INTERFACES.put("lsarpc", lsarpc.getSyntax()); INTERFACES.put("samr", samr.getSyntax());
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 4.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java
final String key = fessConfig.getSystemProperty("saml.attribute.group.name", "memberOf"); if (StringUtil.isNotBlank(key)) { final List<String> nameList = attributes.get(key); if (nameList != null) { list.addAll(nameList); } } final String value = fessConfig.getSystemProperty("saml.default.groups"); if (StringUtil.isNotBlank(value)) {
Java - Registered: Mon Apr 29 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 6.6K bytes - Viewed (0) -
docs/en/docs/deployment/concepts.md
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18K bytes - Viewed (0)