Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 107 for lstrip (0.18 seconds)

  1. scripts/doc_parsing_utils.py

        if match:
            code = match.group("code").rstrip()
            comment = match.group("comment")
            return code, comment
        return line.rstrip(), None
    
    
    def _split_slashes_comment(line: str) -> tuple[str, str | None]:
        match = SLASHES_COMMENT_RE.match(line)
        if match:
            code = match.group("code").rstrip()
            comment = match.group("comment")
            return code, comment
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
  2. scripts/mkdocs_hooks.py

            return markdown
    
        # For translated pages add translation banner
        translation_banner_content = get_translation_banner_content(config.docs_dir)
        en_url = "https://fastapi.tiangolo.com/" + page.url.lstrip("/")
        translation_banner_content = translation_banner_content.replace(
            "ENGLISH_VERSION_URL", en_url
        )
        header = ""
        body = markdown
        if markdown.startswith("#"):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

                  // Value is "double-quoted". That's valid and our regex group already strips the quotes.
                  parameter.groups[3]!!.value
                }
    
                token.startsWith('\'') && token.endsWith('\'') && token.length > 2 -> {
                  // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes.
                  token.substring(1, token.length - 1)
                }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  4. tests/test_stream_bare_type.py

        lines = [json.loads(line) for line in response.text.strip().splitlines()]
        assert lines == [{"name": "foo"}]
    
    
    def test_stream_bare_sync_iterable():
        response = client.get("/items/stream-bare-sync")
        assert response.status_code == 200
        assert response.headers["content-type"] == "application/jsonl"
        lines = [json.loads(line) for line in response.text.strip().splitlines()]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  5. tests/test_sse.py

        data_lines = [
            line for line in response.text.strip().split("\n") if line.startswith("data: ")
        ]
        assert len(data_lines) == 3
    
    
    def test_dict_items(client: TestClient):
        response = client.get("/items/stream-dict")
        assert response.status_code == 200
        data_lines = [
            line for line in response.text.strip().split("\n") if line.startswith("data: ")
        ]
    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)
  6. .github/release-drafter-3.x.yml

    # under the License.
    
    _extends: maven-gh-actions-shared:.github/release-drafter.yml
    tag-template: maven-$RESOLVED_VERSION
    
    # Override replacers to strip backport branch prefixes and handle JIRA links
    replacers:
      # Strip backport branch prefixes like [maven-4.0.x], [maven-3.x], etc.
      - search: '/^\[maven-[\d\.x-]+\]\s*-?\s*/g'
        replace: ''
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 13:07:10 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  7. .github/release-drafter.yml

    # under the License.
    
    _extends: maven-gh-actions-shared
    tag-template: maven-$RESOLVED_VERSION
    
    include-pre-releases: true
    prerelease: true
    
    # Override replacers to strip backport branch prefixes and handle JIRA links
    replacers:
      # Strip backport branch prefixes like [maven-4.0.x], [maven-3.x], etc.
      - search: '/^\[maven-[\d\.x-]+\]\s*-?\s*/g'
        replace: ''
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 13:07:10 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java

            if (Constants.DEFAULT_FIELD.equals(field)) {
                final String text = wildcardQuery.getTerm().text();
                context.addFieldLog(field, text);
                final String highlightText = StringUtils.strip(text, "*");
                if (StringUtil.isNotBlank(highlightText)) {
                    context.addHighlightedQuery(highlightText);
                }
                return buildDefaultQueryBuilder(fessConfig, context,
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

            final int rlast = result.length - 1;
            int i = 0, b = 0;
            final int len = path.length();
            int strip = 0;
    
            do {
                if (ri == rlast) {
                    result[rlast] = path.substring(b);
                    result[rlast] = path.substring(b);
                    return strip;
                }
                if (i == len || path.charAt(i) == '\\') {
                    result[ri] = path.substring(b, i);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  10. fastapi/security/utils.py

        authorization_header_value: str | None,
    ) -> tuple[str, str]:
        if not authorization_header_value:
            return "", ""
        scheme, _, param = authorization_header_value.partition(" ")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 261 bytes
    - Click Count (0)
Back to Top