text
stringlengths
185
73.3k
repo
stringlengths
7
100
path
stringlengths
4
146
language
stringclasses
7 values
hash
stringlengths
16
16
score
float64
7
8.5
stars
int64
0
237k
"""Frontmatter parsing and metadata extraction. Mirrors the behavior of the original generate.py while fixing two defects: - an unterminated frontmatter fence no longer crashes (old code raised IndexError); - description extraction is bounded and deterministic (old code could loop forever and produced concatenated g...
nm-Team/Support
src/nmteam_support/frontmatter.py
.py
ff3c1af505b220a2
7.56
12
"""Directory index.md page generation.""" from __future__ import annotations import yaml from nmteam_support.docslist import render_docs_list from nmteam_support.nav import folder_entries, sort_entries from nmteam_support.scanner import ScannedDir def _yaml_title_scalar(title: str) -> str: """Render ``title`` ...
nm-Team/Support
src/nmteam_support/index.py
.py
72568794d044a1c8
7.56
12
"""llms.txt generation from the scanned docs tree.""" from __future__ import annotations from nmteam_support.models import DocEntry from nmteam_support.scanner import ScannedDir SITE_TITLE = "nmTeam Support" # Optional section skipped when a shorter context is needed (llmstxt.org spec). OPTIONAL_SECTION = "Optional...
nm-Team/Support
src/nmteam_support/llms.py
.py
77f48a7b4cde445f
7.56
12
"""WebP-first Markdown image rendering.""" from __future__ import annotations from pathlib import PurePosixPath from urllib.parse import urlsplit, urlunsplit from xml.etree import ElementTree from markdown import Markdown from markdown.extensions import Extension from markdown.treeprocessors import Treeprocessor _R...
nm-Team/Support
src/nmteam_support/markdown_images.py
.py
4452693665ec5aca
7.56
12
"""Core data models shared across the documentation pipeline.""" from __future__ import annotations from dataclasses import dataclass @dataclass(frozen=True) class PageMetadata: """Metadata parsed from a page's YAML frontmatter (or derived defaults).""" title: str description: str = "" index: int =...
nm-Team/Support
src/nmteam_support/models.py
.py
38605a3de9742b48
7.56
12
"""MkDocs nav YAML generation from a scanned docs tree.""" from __future__ import annotations from nmteam_support.models import DocEntry from nmteam_support.scanner import ScannedDir type NavItem = dict[str, str | list["NavItem"]] def sort_entries(entries: list[DocEntry]) -> list[DocEntry]: """Order entries: i...
nm-Team/Support
src/nmteam_support/nav.py
.py
4cfc93a917db8652
7.56
12
"""Redirects.js generation from redirects.json.""" from __future__ import annotations import json from pathlib import Path class RedirectConfigError(ValueError): """Raised when redirects.json cannot be safely managed.""" def read_redirects(path: Path) -> dict[str, str]: """Read and validate redirects for ...
nm-Team/Support
src/nmteam_support/redirects.py
.py
fdc30a9dd609fb55
7.56
12
"""Recursive scanning of the docs directory tree.""" from __future__ import annotations import os from dataclasses import dataclass, field from pathlib import Path from nmteam_support.frontmatter import parse_page from nmteam_support.models import DocEntry, PageMetadata # Directories copied verbatim into the output...
nm-Team/Support
src/nmteam_support/scanner.py
.py
719ef1e355fccf13
7.56
12
"""Static file server that serves Markdown as ``text/plain; charset=utf-8``. Standard-library only, so ``nmteam preview`` works on every platform without extra dependencies. The MIME override matters because Python's ``mimetypes`` module maps ``.md`` to ``text/markdown`` on 3.13+, which some browsers and clients downl...
nm-Team/Support
src/nmteam_support/serve.py
.py
fa3d0c126abc0c8a
7.56
12
"""Shared fixtures.""" from __future__ import annotations from pathlib import Path import pytest @pytest.fixture def docs_dir(tmp_path: Path) -> Path: """A minimal docs tree: root page + two product folders.""" docs = tmp_path / "docs" (docs / "nmbot-telegram").mkdir(parents=True) (docs / "contact-...
nm-Team/Support
tests/conftest.py
.py
c6849a95459610bb
7.06
12
"""Home page Markdown rendering regression tests.""" from pathlib import Path import markdown def test_homepage_markdown_inside_html_sections_is_rendered(): repo_root = Path(__file__).resolve().parents[1] source = (repo_root / "docs" / "index.md").read_text(encoding="utf-8") rendered = markdown.markdow...
nm-Team/Support
tests/test_homepage.py
.py
c8fa1d660b78c819
7.06
12
"""Index page generation tests.""" import yaml from nmteam_support.index import render_index_page from nmteam_support.scanner import scan_docs def test_index_page_frontmatter_and_no_docs_list(docs_dir): root = scan_docs(docs_dir) page = render_index_page(root) assert page.startswith( "---\nautom...
nm-Team/Support
tests/test_index.py
.py
1b462f20124064c5
8.06
12
"""Model smoke tests.""" from nmteam_support.models import DocEntry, PageMetadata def test_page_metadata_defaults(): meta = PageMetadata(title="t") assert meta.description == "" assert meta.index == 0 assert not meta.hide_docs_list assert not meta.hide_contributing_note assert not meta.hide_n...
nm-Team/Support
tests/test_models.py
.py
43483f14777e77d6
8.06
12
"""Nav YAML generation tests.""" from nmteam_support.models import DocEntry from nmteam_support.nav import build_nav, sort_entries from nmteam_support.scanner import scan_docs def _entry(path, name, index=0, kind="doc"): return DocEntry(title=name, description="", path=path, name=name, index=index, kind=kind) ...
nm-Team/Support
tests/test_nav.py
.py
3e756f6baa786599
8.06
12
""" Author: Wenyu Ouyang Date: 2025-01-17 LastEditTime: 2025-08-17 09:29:42 LastEditors: Wenyu Ouyang Description: Flood event extraction utilities for hydrological data processing FilePath: \hydromodeld:\Code\hydroutils\hydroutils\hydro_event.py Copyright (c) 2023-2026 Wenyu Ouyang. All rights reserved. """ import nu...
OuyangWenyu/hydroutils
hydroutils/hydro_event.py
.py
cb3b0fa4795f78c5
7.48
8
#!/usr/bin/env python """ Author: Wenyu Ouyang Date: 2022-12-02 10:42:19 LastEditTime: 2023-10-15 14:18:53 LastEditors: Wenyu Ouyang Description: Tests for `hydroutils` package FilePath: \hydroutils\tests\test_hydroutils.py Copyright (c) 2023-2024 Wenyu Ouyang. All rights reserved. """ from hydroutils import hydro_time...
OuyangWenyu/hydroutils
tests/test_hydroutils.py
.py
dcb6ff54ced79c99
7.98
8
import numpy as np __all__ = [ 'ignore_0_freq_modes', 'FLAVOR_DESC', '_gb', '_downsample_idx', 'unpolarized_invariant', 'read_eqp_dat_file', 'cartesian_from_bvec_basis', 'isotropic_parallel', 'isotropic_perpendicular', 'depolarization_ratio', ] ignore_0_freq_modes = True # Flavor labels for resonant ...
rafaeldgrande/excited_state_forces
common/utils.py
.py
d8ef0fbe3296a1af
7.48
8
import argparse import numpy as np from ase.io import read from ase.data import atomic_numbers, covalent_radii from ase.data.colors import jmol_colors ''' Build a file with excited-state forces drawn as vectors, to be visualized in XCrySDen (.axsf) or VESTA (.vesta). Reads atomic positions and cell vectors from a Qu...
rafaeldgrande/excited_state_forces
post_processing/visualize_forces.py
.py
2ee129bb2badac66
7.48
8
""" Frame construction and Cartesian-tensor contraction helpers for angle-resolved polarized Raman intensities I_parallel(theta), I_perp(theta). See resonant_raman/README.md's "Polarized Raman" subsection for the full theory. Key point: contract Cartesian indices with the incident/scattered polarization vectors BEFORE...
rafaeldgrande/excited_state_forces
resonant_raman/polarization.py
.py
dadd8f6e6d054b93
7.48
8
""" Tests for elph/bgw_binary_io.py: _scalar_dtype, _cli (error-path only) The binary readers (read_vmtxel, read_dtmat) require actual Fortran binary files and are not unit-tested here. """ import pytest import numpy as np from bgw_binary_io import _scalar_dtype, _cli class TestScalarDtype: def test_complex...
rafaeldgrande/excited_state_forces
tests/test_bgw_binary_io.py
.py
fff995ef45bf45ca
7.98
8
"""Tests for bgw_interface_m.py: reverse_bse_index, rpa_part_from_eqp, read_eqp_data.""" import pytest import numpy as np from bgw_interface_m import reverse_bse_index, rpa_part_from_eqp, read_eqp_data from excited_forces_classes import Parameters_BSE class TestReverseBSEIndex: def test_ibse_zero_gives_all_zeros(...
rafaeldgrande/excited_state_forces
tests/test_bgw_interface.py
.py
d25ba9e15ed95639
7.98
8
"""Class-based routing for FastAPI with controllers and dependency injection.""" from __future__ import annotations from collections.abc import Callable, Sequence from dataclasses import asdict, dataclass, field from enum import Enum from inspect import Parameter, isfunction, signature from typing import Any, ParamSp...
leynier/fastapi-control
fastapi_control/controller.py
.py
e168dab7c8c830db
7.48
8
"""Dependency injection support built on top of kink.""" from __future__ import annotations from collections.abc import Callable from typing import Any, TypeVar from kink import Container from kink import inject as kink_inject T = TypeVar("T") _di = Container() # type: ignore[no-untyped-call] def inject(alias: ...
leynier/fastapi-control
fastapi_control/di.py
.py
bd2ee00d54439954
7.48
8
"""Tests for the dependency injection layer (kink integration).""" from kink import Container from kink import inject as kink_inject from fastapi_control import inject def test_kink_container_supports_alias_with_factory() -> None: """Regression test: kink's Container must natively combine alias and use_fact...
leynier/fastapi-control
tests/test_di.py
.py
5ee68959d7b9eb22
7.98
8
"""Utility functions for the NOAA API client.""" import datetime import json import urllib.parse import urllib.request from typing import Any, Dict, Optional, Sequence, Union from .exceptions import ValidationError def parse_date( date_value: Optional[Union[str, datetime.datetime]], name: str, include_t...
andreassag/noaa
src/noaa/utils.py
.py
8fcce48c64594f48
7.42
6
"""Input validation functions for the NOAA API client.""" from typing import Any, Optional from .exceptions import ValidationError VALID_SORT_FIELDS = frozenset( [None, "id", "name", "mindate", "maxdate", "datacoverage"] ) VALID_SORT_ORDERS = frozenset(["asc", "desc"]) VALID_UNITS = frozenset(["standard", "metr...
andreassag/noaa
src/noaa/validators.py
.py
dd4a52e7c9a22a7f
7.42
6
"""Tests for backwards compatibility module.""" from noaa.climate import API, NOAA from noaa.client import NOAA as ClientNOAA class TestBackwardsCompatibility: """Tests for backwards compatibility.""" def test_api_alias(self): """API should be alias for NOAA.""" assert API is NOAA def t...
andreassag/noaa
tests/test_climate.py
.py
a91d8bbfd38ac7ae
7.92
6
"""Tests for custom exceptions.""" import pytest from noaa.exceptions import NOAAException, ValidationError, APIError class TestExceptions: """Tests for exception hierarchy.""" def test_validation_error_is_noaa_exception(self): """ValidationError should inherit from NOAAException.""" assert ...
andreassag/noaa
tests/test_exceptions.py
.py
53118f0ab329d308
7.92
6
"""Tests for utility functions.""" import datetime import pytest from unittest.mock import MagicMock, patch from noaa.utils import ( parse_date, join_ids, build_query_params, make_api_request, ) from noaa.exceptions import ValidationError class TestParseDate: """Tests for parse_date function."""...
andreassag/noaa
tests/test_utils.py
.py
6045cc33d705b68b
7.92
6
"""Tests for validation functions.""" import pytest from noaa.validators import ( validate_string_or_none, validate_string_or_sequence, validate_limit, validate_offset, validate_sort_field, validate_sort_order, validate_units, validate_boolean, ) from noaa.exceptions import ValidationEr...
andreassag/noaa
tests/test_validators.py
.py
fae17f42b4aab937
7.92
6
import dspy from orchestrator.schemas import PhaseHealthVerdict, DiagnosticsDecision class AssessPhaseHealth(dspy.Signature): """ Assess the health of the Kubernetes cluster for the current provisioning phase. Analyze the phase requirements and health criteria against the collected kubectl cluster state. ...
olga-mir/playground
orchestrator/signatures.py
.py
e6c1ecf7c86ed309
7.52
10
""" telemetry.py — OTEL wiring for the orchestrator, direct to GCP (no collector). Three surfaces are observed: 1. The orchestrator's own Python (phases, DSPy/LiteLLM calls, shell calls) → exported via opentelemetry-exporter-gcp-trace and -monitoring, authenticating through Application Default Credentials (ADC)...
olga-mir/playground
orchestrator/telemetry.py
.py
e14b853db9a35969
7.52
10
""" Crossplane provider and composite resource health. Checks: - All providers in Installed+Healthy state on kind and control-plane - GKECluster XR for control-plane is Ready (on kind) - GKECluster XR for apps-dev is Ready (on control-plane) - No Crossplane composites exist on apps-dev (architecture constraint...
olga-mir/playground
tests/e2e/test_crossplane.py
.py
65f99b4d5f482b4d
8.02
10
""" Fleet-level health: cluster reachability and node readiness. All assertions use k8s node conditions — deterministic, no timing dependency. """ import pytest from kubernetes import client from conftest import core_v1, wait_for_nodes_ready, wait_for_namespace @pytest.mark.kind def test_kind_nodes_ready(ctx_kind):...
olga-mir/playground
tests/e2e/test_fleet.py
.py
84f05a3c2bd62bbf
8.02
10
""" Flux GitOps health across all clusters. Determinism: asserts on .status.conditions[Ready].status which is a stable k8s API contract. Suspended resources are explicitly skipped, not failed. """ import pytest from conftest import wait_for_flux_ready @pytest.mark.kind @pytest.mark.flux def test_flux_healthy_kind(c...
olga-mir/playground
tests/e2e/test_flux.py
.py
15367c1e94f5184b
8.02
10
""" kagent functional tests on the apps-dev cluster. Determinism: - HelmRelease and pod checks assert on k8s conditions/phases, not timing. - API test asserts on HTTP status + JSON schema (list structure), NEVER on LLM response content — the same request always returns the same schema. """ import logging impo...
olga-mir/playground
tests/e2e/test_kagent.py
.py
c0618451ac33757c
8.02
10
""" LitmusChaos e2e tests on the apps-dev cluster. Determinism: - Creates a ChaosEngine with fixed, short parameters targeting a known deployment (mcp-website-fetcher, 1 replica). The pod gets deleted and Kubernetes restarts it; Litmus records verdict=Pass when its probes confirm the app recovered within...
olga-mir/playground
tests/e2e/test_litmus.py
.py
c8670a70a32c59df
8.02
10
""" Tenant workload health on apps-dev. Checks deployment readiness for both real tenants (sre) and synthetic team tenants. Deterministic: asserts on deployment .status.readyReplicas which reflects actual pod health, not scheduling assumptions. """ import logging import pytest from kubernetes import client from conf...
olga-mir/playground
tests/e2e/test_tenants.py
.py
eeeb4a249110c04c
8.02
10
from __future__ import annotations import datetime import functools from collections.abc import Iterable import pymacaroons from typing_extensions import ParamSpec from pypitoken import exceptions, restrictions PREFIX = "pypi" P = ParamSpec("P") class Token: """ Create a `Token` (as PyPI itself would do)...
ewjoachim/pypitoken
pypitoken/token.py
.py
9c9edc66e3cfd1db
7.62
16
# Some parts of pypitoken have redundant code that can't easily be factored # (for example, some high-level functions need to expose the same parameters # as lower level functions). In those case, using *args/**kwargs would ensure # we don't have code duplication, but at the price of our function signatures # being muc...
ewjoachim/pypitoken
tests/test_meta.py
.py
b9ac6e763e375bf9
7.12
16
"""An example of sending and receiving responses from Arma Reforger. Arma Reforger has made the majority of command responses asynchronous, meaning that instead of sending the responses over a COMMAND event, they are immediately acknowledged with an empty COMMAND and eventually responded across one or more MESSAGE eve...
thegamecracks/berconpy
examples/command_reforger.py
.py
9e78050dc25cb3d0
7.54
11
from __future__ import annotations import functools import inspect from collections.abc import Callable from typing import ( TYPE_CHECKING, Any, Generic, ParamSpec, TypeVar, overload, ) if TYPE_CHECKING: from typing_extensions import Self from .dispatch import EventDispatcher P = Par...
thegamecracks/berconpy
src/berconpy/_typed_event.py
.py
ec04973399cb3ff6
7.54
11
import asyncio import contextlib import logging from collections.abc import Callable from typing import Any, TypeVar from berconpy.utils import MaybeCoroFunc from .dispatch import EventDispatcher from .io import AsyncClientConnector, AsyncClientProtocol T = TypeVar("T") log = logging.getLogger(__name__) def _add_...
thegamecracks/berconpy
src/berconpy/client.py
.py
721ba26739852d76
7.54
11
from __future__ import annotations import asyncio import collections import logging from collections.abc import Callable from typing import TYPE_CHECKING, Any, TypeVar from ._typed_event import typed_event from .utils import MaybeCoroFunc, maybe_coro if TYPE_CHECKING: from .protocol.packet import ServerPacket T...
thegamecracks/berconpy
src/berconpy/dispatch.py
.py
43e6bb2876105b8f
7.54
11
import weakref from typing import TYPE_CHECKING from berconpy import utils if TYPE_CHECKING: from .cache import ArmaCache from .client import ArmaClient class Ban: """Represents a GUID/IP ban on the server.""" __slots__ = ( "_cache", "duration", "id", "index", ...
thegamecracks/berconpy
src/berconpy/ext/arma/ban.py
.py
e05b204bb06d6797
7.54
11
from __future__ import annotations import asyncio import logging import weakref from typing import TYPE_CHECKING from berconpy.errors import RCONCommandError from .parser import ( ParsedPlayer, PlayerConnect, PlayerGUID, PlayerVerifyGUID, parse_players, ) from .player import Player if TYPE_CHECK...
thegamecracks/berconpy
src/berconpy/ext/arma/cache.py
.py
3043be343b0b19f5
7.54
11
import logging from berconpy import RCONClient, RCONCommandError from .ban import Ban from .cache import ArmaCache from .dispatch import ArmaDispatcher from .io import ArmaConnector from .parser import parse_admins, parse_bans, parse_message from .player import Player log = logging.getLogger(__name__) class ArmaCl...
thegamecracks/berconpy
src/berconpy/ext/arma/client.py
.py
e30b04797ff57347
7.54
11
from __future__ import annotations import time from dataclasses import dataclass from typing import TYPE_CHECKING from berconpy.io import AsyncClientConnector, AsyncCommander, ConnectorConfig from berconpy.protocol.client import RCONClientProtocol if TYPE_CHECKING: from .client import ArmaClient @dataclass cla...
thegamecracks/berconpy
src/berconpy/ext/arma/io.py
.py
938a9d203214b840
7.54
11
import weakref from typing import TYPE_CHECKING if TYPE_CHECKING: from .cache import ArmaCache from .client import ArmaClient class Player: """Represents a player in the server.""" __slots__ = ( "_cache", "addr", "guid", "id", "in_lobby", "is_guid_vali...
thegamecracks/berconpy
src/berconpy/ext/arma/player.py
.py
a54a970e0daa5b3d
7.54
11
from abc import ABC, abstractmethod from collections.abc import Sequence from typing import Any from .packet import Packet __all__ = ("RCONGenericProtocol",) class RCONGenericProtocol(ABC): """The base class for handling the RCON protocol between two computers.""" @abstractmethod def receive_datagram(s...
thegamecracks/berconpy
src/berconpy/protocol/base.py
.py
0f463e1dec5310e8
7.54
11
import collections from typing import Generic, Protocol, TypeVar __all__ = ( "Check", "NonceCheck", ) P_contra = TypeVar("P_contra", contravariant=True) class Check(Protocol, Generic[P_contra]): """A callable object that makes a boolean judgement about a packet.""" def __call__(self, packet: P_cont...
thegamecracks/berconpy
src/berconpy/protocol/check.py
.py
bd0b0200d4db2e63
7.54
11
import enum from collections.abc import Iterable from .base import RCONGenericProtocol from .check import Check, NonceCheck from .errors import InvalidStateError from .events import ( ClientAuthEvent, ClientCommandEvent, ClientEvent, ClientMessageEvent, ) from .packet import ( ClientCommandPacket, ...
thegamecracks/berconpy
src/berconpy/protocol/client.py
.py
4c59901f847e2c0d
7.54
11
from typing import Generic, TypeVar from berconpy.errors import RCONError T = TypeVar("T") class InvalidStateError(RCONError, Generic[T]): """The current state of the protocol does not match the expected states.""" current_state: T """The current state of the protocol.""" expected_states: tuple[T, ...
thegamecracks/berconpy
src/berconpy/protocol/errors.py
.py
8454a60d6929f26f
7.54
11
import enum import secrets from collections.abc import Iterable from .base import RCONGenericProtocol from .check import Check, NonceCheck from .errors import InvalidStateError from .events import ( ServerAuthEvent, ServerCommandEvent, ServerEvent, ServerMessageEvent, ) from .packet import ( Client...
thegamecracks/berconpy
src/berconpy/protocol/server.py
.py
905c5d0bb5c0eebd
7.54
11
import inspect from collections.abc import Awaitable, Callable, Iterable from typing import ParamSpec, TypeVar EMPTY = object() P = ParamSpec("P") T = TypeVar("T") MaybeCoroFunc = Callable[P, T | Awaitable[T]] def copy_doc(original: Callable) -> Callable[[T], T]: def decorator(new: T) -> T: new.__doc__ ...
thegamecracks/berconpy
src/berconpy/utils.py
.py
5a735cf540f363b2
7.54
11
from berconpy import ArmaClient from tests.models import Player, sample_players def test_update_players(): """Checks that the cache can refresh itself from a "players" command.""" client = ArmaClient() cache = client.cache response = Player.make_message(sample_players) cache.update_players(respon...
thegamecracks/berconpy
tests/client/test_cache.py
.py
5f928c7e44240a26
7.04
11
from collections.abc import Sequence from typing import Any, TypeVar, overload from berconpy.protocol import ( ClientAuthEvent, ClientEvent, ClientPacket, ClientState, Packet, RCONClientProtocol, RCONGenericProtocol, RCONServerProtocol, ServerAuthEvent, ServerEvent, ServerPa...
thegamecracks/berconpy
tests/protocol/__init__.py
.py
1f04ad9c56462460
8.04
11
import pytest from berconpy.protocol import ( ClientAuthEvent, ClientCommandEvent, ClientMessageEvent, InvalidStateError, RCONClientProtocol, ServerCommandPacket, ServerLoginPacket, ServerMessagePacket, ) from . import first_and_only_event def test_invalid_states(client: RCONClientPr...
thegamecracks/berconpy
tests/protocol/test_client.py
.py
07eb2e07095172db
8.04
11
from berconpy.protocol import ( ClientMessageEvent, ClientMessagePacket, RCONClientProtocol, RCONServerProtocol, ServerCommandEvent, ) from . import ( authenticate, communicate, expected_password, first_and_only_packet, incorrect_password, ) def test_auth_failure(client: RCONC...
thegamecracks/berconpy
tests/protocol/test_integration.py
.py
312848f619143cbb
8.04
11
"""Component property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.definition.package_def import PackageDef from ansys.edb.core.hierarchy.model import Model from ansys.edb.core.typing import ValueLike from ansys.api.edb.v1.component_proper...
ansys/pyedb-core
src/ansys/edb/core/definition/component_property.py
.py
45ef497e20bb531e
7.45
7
"""Dataset definition.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.database import Database from ansys.edb.core.geometry.point_data import PointData from ansys.api.edb.v1.dataset_def_pb2_grpc import DatasetDefServiceStub from ansys.edb.core.e...
ansys/pyedb-core
src/ansys/edb/core/definition/dataset_def.py
.py
b2498ee97dc19791
7.45
7
"""Dielectric material definition.""" from __future__ import annotations from ansys.api.edb.v1 import debye_model_pb2_grpc import ansys.api.edb.v1.debye_model_pb2 as pb from google.protobuf import empty_pb2 from ansys.edb.core import session from ansys.edb.core.definition.dielectric_material_model import DielectricM...
ansys/pyedb-core
src/ansys/edb/core/definition/debye_model.py
.py
0306caeeb4e943bb
7.45
7
"""Die property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.typing import ValueLike from enum import Enum import ansys.api.edb.v1.die_property_pb2 as die_property_pb2 from ansys.api.edb.v1.die_property_pb2_grpc import DiePropertyServiceStub impo...
ansys/pyedb-core
src/ansys/edb/core/definition/die_property.py
.py
eb268f31ec946976
7.45
7
"""Dielectric material definition.""" from enum import Enum from ansys.api.edb.v1 import dielectric_material_model_pb2_grpc from ansys.edb.core import session from ansys.edb.core.inner import ObjBase class DielectricMaterialModelType(Enum): """Enum representing dielectric material model types.""" DEBYE = ...
ansys/pyedb-core
src/ansys/edb/core/definition/dielectric_material_model.py
.py
10f5184c18d428a2
7.45
7
"""Dielectric material definition.""" from __future__ import annotations from ansys.api.edb.v1 import djordjecvic_sarkar_model_pb2_grpc from google.protobuf import empty_pb2 from ansys.edb.core import session from ansys.edb.core.definition.dielectric_material_model import DielectricMaterialModel from ansys.edb.core....
ansys/pyedb-core
src/ansys/edb/core/definition/djordjecvic_sarkar_model.py
.py
ef669f0e8c389790
7.45
7
"""IC component property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.definition.die_property import DieProperty from ansys.edb.core.definition.solder_ball_property import SolderBallProperty from ansys.api.edb.v1.ic_component_property_pb2_grpc...
ansys/pyedb-core
src/ansys/edb/core/definition/ic_component_property.py
.py
bd668c5b061d4535
7.45
7
"""IO component property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.definition.port_property import PortProperty from ansys.edb.core.definition.solder_ball_property import SolderBallProperty from ansys.api.edb.v1.io_component_property_pb2_gr...
ansys/pyedb-core
src/ansys/edb/core/definition/io_component_property.py
.py
cda9e3faa3a4dea5
7.45
7
"""Material property thermal modifier.""" from __future__ import annotations from ansys.api.edb.v1 import material_property_thermal_modifier_pb2_grpc import ansys.api.edb.v1.material_property_thermal_modifier_pb2 as pb from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner import messages from ansys.edb....
ansys/pyedb-core
src/ansys/edb/core/definition/material_property_thermal_modifier.py
.py
9a4aa1c8bb4851eb
7.45
7
"""Dielectric material definition.""" from __future__ import annotations from ansys.api.edb.v1 import multipole_debye_model_pb2_grpc import ansys.api.edb.v1.multipole_debye_model_pb2 as pb from google.protobuf import empty_pb2 from ansys.edb.core import session from ansys.edb.core.definition.dielectric_material_mode...
ansys/pyedb-core
src/ansys/edb/core/definition/multipole_debye_model.py
.py
13a24dbef272f0b5
7.45
7
"""Package definition.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.database import Database from ansys.edb.core.database import ProductIdType from ansys.edb.core.geometry.polygon_data import PolygonData from ansys.edb.core.typing import...
ansys/pyedb-core
src/ansys/edb/core/definition/package_def.py
.py
83af97187d449f09
7.45
7
"""Padstack definition data.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.geometry.point_data import PointData from ansys.edb.core.geometry.polygon_data import PolygonData from ansys.edb.core.typing import PointLike from ansys.edb.core.t...
ansys/pyedb-core
src/ansys/edb/core/definition/padstack_def_data.py
.py
e884f180d0272d7e
7.45
7
"""Port property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.typing import ValueLike from ansys.api.edb.v1.port_property_pb2_grpc import PortPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 from ansys.edb.core.inner import ObjBa...
ansys/pyedb-core
src/ansys/edb/core/definition/port_property.py
.py
77eab4c5ba15bef7
7.45
7
"""RLC component property.""" from __future__ import annotations from ansys.api.edb.v1.rlc_component_property_pb2_grpc import RLCComponentPropertyServiceStub import google.protobuf.empty_pb2 as empty_pb2 from ansys.edb.core.definition.component_property import ComponentProperty from ansys.edb.core.inner import messa...
ansys/pyedb-core
src/ansys/edb/core/definition/rlc_component_property.py
.py
10b59bb223cc8997
7.45
7
"""Solder ball property.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.typing import ValueLike import ansys.api.edb.v1.padstack_def_data_pb2 as padstack_def_data_pb2 import ansys.api.edb.v1.solder_ball_property_pb2 as solder_ball_property_pb2 from a...
ansys/pyedb-core
src/ansys/edb/core/definition/solder_ball_property.py
.py
3952a0e66cfda764
7.45
7
"""Technology definition.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.database import Database import ansys.api.edb.v1.technology_def_pb2 as pb from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner import messages from ansys.edb.core...
ansys/pyedb-core
src/ansys/edb/core/definition/technology_def.py
.py
f44c5790baddf4ed
7.45
7
"""Common definitions used in EDB.""" from enum import Enum import ansys.api.edb.v1.definition_obj_pb2 as definition_obj_pb2 import ansys.api.edb.v1.layout_obj_pb2 as layout_obj_pb2 class LayoutObjType(Enum): """Enum representing layout object types.""" INVALID_LAYOUT_OBJ = layout_obj_pb2.INVALID_LAYOUT_OB...
ansys/pyedb-core
src/ansys/edb/core/edb_defs.py
.py
94c19dff6f903db0
7.45
7
"""Triangle 3D data.""" from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ansys.edb.core.geometry.point3d_data import Point3DData class Triangle3DData: """Represents a triangle defined by three 3D points.""" def __init__(self, point_1: Point3DData, point_2: Poi...
ansys/pyedb-core
src/ansys/edb/core/geometry/triangle3d_data.py
.py
a56721d93df3003a
7.45
7
"""Component group.""" from enum import Enum from ansys.api.edb.v1.component_group_pb2_grpc import ComponentGroupServiceStub import ansys.api.edb.v1.edb_defs_pb2 as edb_defs_pb2 from ansys.edb.core.definition import component_property from ansys.edb.core.hierarchy.group import Group from ansys.edb.core.inner import ...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/component_group.py
.py
b1f04e4fb0151b57
7.45
7
"""Group.""" from ansys.api.edb.v1.group_pb2 import GroupTypeMessage from ansys.api.edb.v1.group_pb2_grpc import GroupServiceStub from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy.hierarchy_obj import HierarchyObj from ansys.edb.core.inner import messages from ansys.edb.core.inner.utils ...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/group.py
.py
6e61768bea398378
7.45
7
"""Hierarchy object.""" from ansys.edb.core.definition import component_def from ansys.edb.core.inner import conn_obj from ansys.edb.core.inner import messages from ansys.edb.core.layer.layer import Layer from ansys.edb.core.session import StubAccessor from ansys.edb.core.session import StubType from ansys.edb.core.ut...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/hierarchy_obj.py
.py
e8453f109b81e128
7.45
7
"""Instance array.""" from ansys.api.edb.v1.inst_array_pb2_grpc import InstArrayServiceStub from ansys.edb.core.edb_defs import LayoutObjType from ansys.edb.core.hierarchy import cell_instance from ansys.edb.core.inner import messages from ansys.edb.core.inner import parser from ansys.edb.core.session import StubAcce...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/inst_array.py
.py
a2d7d9af73226bdb
7.45
7
"""Layout Component.""" from ansys.api.edb.v1.layout_component_pb2 import ImportExportLayoutComponentMessage from ansys.edb.core.hierarchy.cell_instance import CellInstance from ansys.edb.core.inner.layout_obj import ObjBase from ansys.edb.core.session import LayoutComponentServiceStub from ansys.edb.core.session imp...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/layout_component.py
.py
d297daf9ce81778d
7.45
7
"""Base hierarchy model.""" from ansys.edb.core.inner import ObjBase from ansys.edb.core.inner import messages from ansys.edb.core.session import ModelServiceStub from ansys.edb.core.session import StubAccessor from ansys.edb.core.session import StubType class Model(ObjBase): """Represents a base hierarchy model...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/model.py
.py
db904605f2edaaea
7.45
7
"""Netlist model.""" from ansys.edb.core.hierarchy.model import Model from ansys.edb.core.inner import messages from ansys.edb.core.session import NetlistModelServiceStub from ansys.edb.core.session import StubAccessor from ansys.edb.core.session import StubType class NetlistModel(Model): """Represents a netlist...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/netlist_model.py
.py
e4b2100ebe5bfe25
7.45
7
"""Pin pair model.""" import google.protobuf.empty_pb2 as empty_pb2 from ansys.edb.core.hierarchy.model import Model from ansys.edb.core.inner import messages from ansys.edb.core.inner import parser from ansys.edb.core.session import PinPairModelServiceStub from ansys.edb.core.session import StubAccessor from ansys.e...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/pin_pair_model.py
.py
65ca21978d884e72
7.45
7
"""S-parameter model.""" from ansys.edb.core.hierarchy.model import Model from ansys.edb.core.inner import messages from ansys.edb.core.session import SParameterModelServiceStub from ansys.edb.core.session import StubAccessor from ansys.edb.core.session import StubType class SParameterModel(Model): """Represents...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/sparameter_model.py
.py
ade1277954f1e8a4
7.45
7
"""SPICE Model.""" from ansys.edb.core.hierarchy.model import Model from ansys.edb.core.inner import messages from ansys.edb.core.inner import parser from ansys.edb.core.session import SpiceModelServiceStub from ansys.edb.core.session import StubAccessor from ansys.edb.core.session import StubType class SPICEModel(M...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/spice_model.py
.py
e0bf0d0937cf8f36
7.45
7
"""Structure 3D.""" from enum import Enum import ansys.api.edb.v1.structure_3d_pb2 as structure3d_pb2 from ansys.api.edb.v1.structure_3d_pb2_grpc import Structure3DServiceStub from ansys.edb.core.hierarchy.group import Group from ansys.edb.core.inner import messages from ansys.edb.core.session import StubAccessor fr...
ansys/pyedb-core
src/ansys/edb/core/hierarchy/structure3d.py
.py
f7b7aa3e1e9b25d4
7.45
7
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file ...
aws-controllers-k8s/applicationautoscaling-controller
pkg/testutil/test_suite_runner.go
.go
a6a3475583498962
7.07
13
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" file ...
aws-controllers-k8s/applicationautoscaling-controller
pkg/testutil/util.go
.go
46531239ea3954b6
7.07
13
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
aws-controllers-k8s/applicationautoscaling-controller
test/e2e/__init__.py
.py
d959df36df9891de
8.07
13
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
aws-controllers-k8s/applicationautoscaling-controller
test/e2e/bootstrap_resources.py
.py
c2c7737126084ea5
8.07
13
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
aws-controllers-k8s/applicationautoscaling-controller
test/e2e/common/sagemaker_utils.py
.py
334a4036f4c8afd1
7.07
13
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
aws-controllers-k8s/applicationautoscaling-controller
test/e2e/conftest.py
.py
e99376ccdc552e44
7.07
13
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may # not use this file except in compliance with the License. A copy of the # License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompanyin...
aws-controllers-k8s/applicationautoscaling-controller
test/e2e/service_bootstrap.py
.py
3cd1e899ee1e60cb
8.07
13
''' This script analyzes and updates Synapse tables based on JSON data files. It infers appropriate Synapse table schemas from the data, creates or clears tables as needed, and uploads the data to Synapse. The script can be run from the command line to update all tables, specific files, or by table names. Main functio...
bridge2ai/b2ai-standards-registry
scripts/analyze_and_update_synapse_tables.py
.py
efc735eb25597d00
7.62
16
import pandas as pd import numpy as np import json def analyze_column_lengths(df, check_json_length=False): """ Analyze the length of values in each column of a DataFrame. Returns max length and row number for each column. Args: df: DataFrame to analyze check_json_length: If True, mea...
bridge2ai/b2ai-standards-registry
scripts/check_value_lengths.py
.py
25557bcb8a5bb86b
7.62
16
#!/usr/bin/env python3 """ Normalize typographic Unicode punctuation to ASCII for data files. """ from __future__ import annotations import argparse import collections import pathlib import sys import unicodedata from typing import Counter, Dict, List # Map of characters we want to normalize to ASCII-friendly forms....
bridge2ai/b2ai-standards-registry
scripts/clean_unicode.py
.py
261a514cb2af6a47
7.62
16
""" Create a denormalized Manifest table for the Synapse Standards Registry Explorer. Reads Manifest.json, explodes data_parts into one row per data part, resolves all IDs to human-readable names with markdown links, and uploads the result to the existing Manifest Synapse table. Usage: python -m scripts.create_de...
bridge2ai/b2ai-standards-registry
scripts/create_denormalized_manifest.py
.py
bd1d8a2f38f6c39e
7.62
16
#!/usr/bin/env python3 import sys from ruamel.yaml import YAML from io import StringIO from typing import Any, Generator from pathlib import Path yaml = YAML() yaml.indent(mapping=2, sequence=4, offset=2) yaml.preserve_quotes = True yaml.width = 4096 def sort_keys(data: Any) -> Any: """ Recursively sorts ke...
bridge2ai/b2ai-standards-registry
scripts/format_yaml.py
.py
626b03815ccc6048
7.62
16