Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 471 - 480 of 1,368 for toText (0.05 seconds)

  1. docs_src/server_sent_events/tutorial005_py310.py

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Prompt(BaseModel):
        text: str
    
    
    @app.post("/chat/stream", response_class=EventSourceResponse)
    async def stream_chat(prompt: Prompt) -> AsyncIterable[ServerSentEvent]:
        words = prompt.text.split()
        for word in words:
            yield ServerSentEvent(data=word, event="token")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 528 bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/execution/ProjectActivation.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Set;
    import java.util.function.Predicate;
    import java.util.stream.Stream;
    
    import static java.util.stream.Collectors.toSet;
    
    /**
     * Container for storing the request from the user to activate or deactivate certain projects and optionally fail the
     * build if those projects do not exist.
     */
    public class ProjectActivation {
    
        /**
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 11 16:38:19 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  3. tests/test_dependency_yield_except_httpexception.py

    
    def test_dependency_gets_exception():
        assert state["except"] is False
        assert state["finally"] is False
        response = client.put("/invalid-user/rick", json="Morty")
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Invalid user"}
        assert state["except"] is True
        assert state["finally"] is True
        assert fake_database["rick"] == "Rick Sanchez"
    
    
    def test_dependency_no_exception():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Sep 29 03:29:38 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  4. src/archive/tar/example_test.go

    func Example_minimal() {
    	// Create and add some files to the archive.
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	var files = []struct {
    		Name, Body string
    	}{
    		{"readme.txt", "This archive contains some text files."},
    		{"gopher.txt", "Gopher names:\nGeorge\nGeoffrey\nGonzo"},
    		{"todo.txt", "Get animal handling license."},
    	}
    	for _, file := range files {
    		hdr := &tar.Header{
    			Name: file.Name,
    			Mode: 0600,
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Nov 16 16:54:08 GMT 2017
    - 1.4K bytes
    - Click Count (0)
  5. tests/test_request_params/test_header/test_required_str.py

        ],
    )
    def test_required_alias_by_alias(path: str):
        client = TestClient(app)
        response = client.get(path, headers={"p_alias": "hello"})
        assert response.status_code == 200, response.text
        assert response.json() == {"p": "hello"}
    
    
    # =====================================================================================
    # Validation alias
    
    
    @app.get("/required-validation-alias")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  6. src/archive/zip/testdata/test-baddirsz.zip

    test.txt This is a test text file. gophercolor16x16.png...
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jun 02 16:25:34 GMT 2022
    - 1.1K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/first-steps.md

                 the following code:
    
                 <u style="text-decoration-style:solid">from </u><u style="text-decoration-style:solid"><b>main</b></u><u style="text-decoration-style:solid"> import </u><u style="text-decoration-style:solid"><b>app</b></u>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  8. tests/test_get_model_definitions_formfeed_escape.py

        """
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "components": {
                    "schemas": {
                        "Address": {
                            # NOTE: the description of this model shows only the public-facing text, before the `\f` in docstring
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. src/main/webapp/WEB-INF/view/admin/dict/stopwords/admin_dict_stopwords_edit.jsp

    <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><!DOCTYPE html>
    ${fe:html(true)}
    <head>
        <meta charset="UTF-8">
        <title><la:message key="labels.admin_brand_title"/> | <la:message
                key="labels.dict_stopwords_configuration"/></title>
        <jsp:include page="/WEB-INF/view/common/admin/head.jsp"></jsp:include>
    </head>
    <body class="hold-transition sidebar-mini">
    <div class="wrapper">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 7K bytes
    - Click Count (0)
  10. docs/en/docs/js/custom.js

        function createTermynals() {
            document
                .querySelectorAll(`.${termynalActivateClass} .highlight code`)
                .forEach(node => {
                    const text = node.textContent;
                    const lines = text.split("\n");
                    const useLines = [];
                    let buffer = [];
                    function saveBuffer() {
                        if (buffer.length) {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:59:48 GMT 2026
    - 7.7K bytes
    - Click Count (2)
Back to Top