Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for rstrip (0.18 sec)

  1. fastapi/exceptions.py

            for err in self._errors:
                message += f"  {err}\n"
            message += self._format_endpoint_context()
            return message.rstrip()
    
    
    class RequestValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
            body: Any = None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. fastapi/routing.py

                else EndpointContext()
            )
    
            if dependant.path:
                # For mounted sub-apps, include the mount path prefix
                mount_path = request.scope.get("root_path", "").rstrip("/")
                endpoint_ctx["path"] = f"{request.method} {mount_path}{dependant.path}"
    
            # Read body and auto-close files
            try:
                body: Any = None
                if body_field:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
  3. fastapi/applications.py

                server_urls = {url for url in urls if url}
    
                async def openapi(req: Request) -> JSONResponse:
                    root_path = req.scope.get("root_path", "").rstrip("/")
                    if root_path not in server_urls:
                        if root_path and self.root_path_in_servers:
                            self.servers.insert(0, {"url": root_path})
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 176.3K bytes
    - Viewed (0)
  4. 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,
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py

            - **description**: a long description
            - **price**: required
            - **tax**: if the item doesn't have tax, you can omit this
            - **tags**: a set of unique tag strings for this item
        """).strip(),
    }
    
    
    @pytest.fixture(
        name="mod_name",
        params=[
            pytest.param("tutorial003_py39"),
            pytest.param("tutorial003_py310", marks=needs_py310),
            pytest.param("tutorial004_py39"),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. .github/workflows/maven.yml

                mv "maven-local/$MAVEN_DIR"/* maven-local/
                rm -r "maven-local/$MAVEN_DIR"
              else
                tar xzf maven-dist/apache-maven-*-bin.tar.gz -C maven-local --strip-components 1
              fi
              echo "MAVEN_HOME=$PWD/maven-local" >> $GITHUB_ENV
              echo "$PWD/maven-local/bin" >> $GITHUB_PATH
    
          - name: Build with downloaded Maven
            shell: bash
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 16 04:24:24 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. scripts/docs.py

            self.text_parts.append(data)
    
        def extract_visible_text(self, html: str) -> str:
            self.reset()
            self.text_parts = []
            self.feed(html)
            return "".join(self.text_parts).strip()
    
    
    def slugify(text: str) -> str:
        return py_slugify(
            text,
            replacements=[
                ("`", ""),  # `dict`s -> dicts
                ("'s", "s"),  # it's -> its
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Dec 21 17:40:17 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testToByteArrayAndFromByteArrayRoundTrip() {
        for (PairedStats pairedStats : ALL_PAIRED_STATS) {
          byte[] pairedStatsByteArray = pairedStats.toByteArray();
    
          // Round trip to byte array and back
          assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats);
        }
      }
    
      public void testFromByteArray_withNullInputThrowsNullPointerException() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 14K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testToByteArrayAndFromByteArrayRoundTrip() {
        for (PairedStats pairedStats : ALL_PAIRED_STATS) {
          byte[] pairedStatsByteArray = pairedStats.toByteArray();
    
          // Round trip to byte array and back
          assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats);
        }
      }
    
      public void testFromByteArray_withNullInputThrowsNullPointerException() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. scripts/translate.py

                f"%%%\n{original_content}%%%",
            ]
        )
        prompt = "\n\n".join(prompt_segments)
        print(f"Running agent for {out_path}")
        result = agent.run_sync(prompt)
        out_content = f"{result.output.strip()}\n"
        print(f"Saving translation to {out_path}")
        out_path.write_text(out_content, encoding="utf-8", newline="\n")
    
    
    def iter_all_en_paths() -> Iterable[Path]:
        """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
Back to top