- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 628 for Rewrite (0.06 seconds)
-
tests/test_datastructures.py
@pytest.mark.anyio async def test_upload_file(): stream = io.BytesIO(b"data") file = UploadFile(filename="file", file=stream, size=4) assert await file.read() == b"data" assert file.size == 4 await file.write(b" and more data!") assert await file.read() == b"" assert file.size == 19 await file.seek(0) assert await file.read() == b"data and more data!"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.8K bytes - Click Count (0) -
cmd/xl-storage_noatime_supported.go
import ( "os" "syscall" ) var ( // Disallow updating access times // Add non-block to avoid syscall to attempt to set epoll on files. readMode = os.O_RDONLY | 0x40000 | syscall.O_NONBLOCK // O_NOATIME // Write with data sync only used only for `xl.meta` writes writeMode = 0x1000 | syscall.O_NONBLOCK // O_DSYNC
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Jul 23 16:36:24 GMT 2024 - 1.1K bytes - Click Count (0) -
api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java
try (Writer writer = outputFile.openWriter()) { writer.write(newContent); } } catch (IOException e) { logError("Failed to write to file", e); throw e; // Re-throw to ensure the compilation fails } } else {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 13:33:59 GMT 2025 - 7.8K bytes - Click Count (0) -
compat/maven-repository-metadata/src/site/apt/index.apt
[] The following are generated from this model: * {{{./apidocs/index.html}Java sources}} with Reader and Writers for the Xpp3 XML parser, to read and write <<<maven-metadata(-*).xml>>> files, * a {{{../../api/maven-api-metadata/repository-metadata.html}Descriptor Reference}}.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Nov 16 18:16:44 GMT 2025 - 2.5K bytes - Click Count (0) -
fastapi/background.py
app = FastAPI() def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file: content = f"notification for {email}: {message}" email_file.write(content) @app.post("/send-notification/{email}") async def send_notification(email: str, background_tasks: BackgroundTasks): background_tasks.add_task(write_notification, email, message="some notification")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.8K bytes - Click Count (0) -
.teamcity/scripts/common.sh
IS_EC2_INSTANCE=$? if [ $IS_EC2_INSTANCE -ne 0 ]; then echo "Not running on an EC2 instance, skipping the configuration" exit 0 fi } # Function to write and execute a build script from environment variable content execute_build_script_from_env() { local script_content="$1" echo "${script_content}" > "${TMPDIR}/pre-or-post-build.sh" bash -x "${TMPDIR}/pre-or-post-build.sh"
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Sun Oct 26 09:37:09 GMT 2025 - 1.3K bytes - Click Count (0) -
.github/workflows/issue-on-pr-rollback.yml
on: push: branches: - master permissions: {} jobs: create-issue-on-pr-rollback: runs-on: ubuntu-latest permissions: contents: read issues: write pull-requests: read if: | github.repository == 'tensorflow/tensorflow' && startsWith(github.event.head_commit.message, 'Rollback of PR #') steps: - name: Checkout repoCreated: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Mon Dec 01 09:57:00 GMT 2025 - 1.5K bytes - Click Count (0) -
src/cmd/asm/internal/asm/testdata/amd64error.s
VADDSUBPD X20, X1, X2 // ERROR "invalid instruction" VADDSUBPS X0, X20, X2 // ERROR "invalid instruction" // Use of K0 for write mask (Yknot0). // TODO(quasilyte): improve error message (#21860). // "K0 can't be used for write mask" VADDPD X0, X1, K0, X2 // ERROR "invalid instruction" VADDPD Y0, Y1, K0, Y2 // ERROR "invalid instruction"
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Jun 14 00:03:57 GMT 2023 - 8.9K bytes - Click Count (0) -
SECURITY.md
# Security Policy Security is very important for FastAPI and its community. 🔒 Learn more about it below. 👇 ## Versions The latest version of FastAPI is supported. You are encouraged to [write tests](https://fastapi.tiangolo.com/tutorial/testing/) for your application and update your FastAPI version frequently after ensuring that your tests are passing. This way you will benefit from the latest features, bug fixes, and **security fixes**.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:49:48 GMT 2025 - 1.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketWriterTest.kt
val payload = Buffer() while (payload.completeSegmentByteCount() <= PAYLOAD_BYTE_MAX) { payload.writeByte('0'.code) } serverWriter.writeMessageFrame(OPCODE_BINARY, payload.snapshot()) // Write directly to the unbuffered sink. This ensures it will become single frame. assertData("827e") // 'e' == 4-byte follow-up length. assertData(format("%04X", payload.completeSegmentByteCount()))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 9.3K bytes - Click Count (0)