- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 5,442 for width (0.02 seconds)
-
tests/test_computed_fields.py
from pydantic import BaseModel, computed_field class Rectangle(BaseModel): width: int length: int @computed_field @property def area(self) -> int: return self.width * self.length @app.get("/") def read_root() -> Rectangle: return Rectangle(width=3, length=4) @app.get("/responses", responses={200: {"model": Rectangle}})Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 3.2K bytes - Click Count (0) -
internal/bpool/bpool.go
} // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new // byte arrays sized based on width. func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) { if capwidth <= 0 { panic("total buffer capacity must be provided") } if capwidth < 64 { panic("buffer capped with smaller than 64 bytes is not supported") } if width > capwidth {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3K bytes - Click Count (0) -
internal/bpool/bpool_test.go
} // Check with width cap if bp.WidthCap() != capWidth { t.Fatalf("bytepool capWidth invalid: got %v want %v", bp.WidthCap(), capWidth) } // Check that retrieved buffer are of the expected width b := bp.Get() if len(b) != width { t.Fatalf("bytepool length invalid: got %v want %v", len(b), width) } if cap(b) != capWidth { t.Fatalf("bytepool cap invalid: got %v want %v", cap(b), capWidth) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 2.7K bytes - Click Count (0) -
scripts/playwright/separate_openapi_schemas/image05.py
# Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs") page.get_by_role("button", name="Item", exact=True).click() page.set_viewport_size({"width": 960, "height": 700}) # Manually add the screenshot page.screenshot(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 984 bytes - Click Count (0) -
architecture/platforms.md
core_configuration["core-configuration module"] style core_configuration stroke:#1abc9c,fill:#b1f4e7,stroke-width:2px,color:#000; core_execution["core-execution module"] style core_execution stroke:#1abc9c,fill:#b1f4e7,stroke-width:2px,color:#000; end style core fill:#c2e0f4,stroke:#3498db,stroke-width:2px,color:#000;Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Thu May 02 06:42:46 GMT 2024 - 5.4K bytes - Click Count (0) -
docs/en/docs/css/termynal.css
* @version 0.0.1 * @license MIT */ :root { --color-bg: #252a33; --color-text: #eee; --color-text-subtle: #a2a2a2; } [data-termynal] { width: 750px; max-width: 100%; background: var(--color-bg); color: var(--color-text); /* font-size: 18px; */ font-size: 15px; /* font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace; */Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Nov 23 09:27:40 GMT 2025 - 2.2K bytes - Click Count (0) -
cmd/update-notifier.go
maxContentWidth := max(line1Length, line2Length) // termWidth is set to a default one to use when we are // not able to calculate terminal width via OS syscalls termWidth := 25 if width, err := pb.GetTerminalWidth(); err == nil { termWidth = width } // Box cannot be printed if terminal width is small than maxContentWidth if maxContentWidth > termWidth { return "\n" + line1InColor + "\n" + line2InColor + "\n\n" }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 3.6K bytes - Click Count (0) -
scripts/playwright/separate_openapi_schemas/image04.py
# Update the viewport manually context = browser.new_context(viewport={"width": 960, "height": 1080}) page = context.new_page() page.goto("http://localhost:8000/docs") page.get_by_role("button", name="Item-Input").click() page.get_by_role("button", name="Item-Output").click() page.set_viewport_size({"width": 960, "height": 820}) # Manually add the screenshot page.screenshot(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 1K bytes - Click Count (0) -
docs/en/docs/js/termynal.js
*/ init() { /** * Calculates width and height of Termynal container. * If container is empty and lines are dynamically loaded, defaults to browser `auto` or CSS. */ const containerStyle = getComputedStyle(this.container); this.container.style.width = containerStyle.width !== '0px' ? containerStyle.width : undefined;Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:32:57 GMT 2025 - 9.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilderFactory.java
* @return whether color styling is supported or not */ boolean isColorEnabled(); /** * Returns the terminal width or <code>-1</code> if not supported. * @return the terminal width */ int getTerminalWidth(); /** * Creates a new message builder. * @return a new message builder */ @Nonnull MessageBuilder builder();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Jan 08 10:37:09 GMT 2024 - 1.8K bytes - Click Count (0)