id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
326,700
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/netlist_service.py
circuit_synth.kicad.netlist_service.CircuitDataLoader
import logging from typing import Any, Dict, List, Optional import json class CircuitDataLoader: """Responsible for loading and validating circuit JSON data.""" def __init__(self): self.logger = logging.getLogger(f'{__name__}.{self.__class__.__name__}') def load_circuit_data(self, json_file_path:...
class CircuitDataLoader: '''Responsible for loading and validating circuit JSON data.''' def __init__(self): pass def load_circuit_data(self, json_file_path: str) -> Dict[str, Any]: '''Load and validate circuit data from JSON file.''' pass def _flatten_hierarchical_data(self,...
5
3
29
4
20
6
4
0.29
0
8
0
0
3
1
3
3
91
17
58
27
51
17
51
23
46
9
0
3
16
326,701
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/netlist_service.py
circuit_synth.kicad.netlist_service.CircuitReconstructor
import logging from typing import Any, Dict, List, Optional class CircuitReconstructor: """Responsible for reconstructing Circuit objects from JSON data.""" def __init__(self): self.logger = logging.getLogger(f'{__name__}.{self.__class__.__name__}') def reconstruct_circuit(self, circuit_data: Dic...
class CircuitReconstructor: '''Responsible for reconstructing Circuit objects from JSON data.''' def __init__(self): pass def reconstruct_circuit(self, circuit_data: Dict[str, Any], circuit_name: str): '''Reconstruct a Circuit object from JSON data, preserving hierarchical structure.''' ...
3
2
59
10
32
18
5
0.56
0
7
3
0
2
1
2
2
122
22
64
26
57
36
47
26
40
9
0
5
10
326,702
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/netlist_service.py
circuit_synth.kicad.netlist_service.KiCadNetlistService
import logging from pathlib import Path from typing import Any, Dict, List, Optional class KiCadNetlistService: """ Main service for generating KiCad netlist files. This service orchestrates the netlist generation process using dependency injection and clear separation of concerns. """ def __...
class KiCadNetlistService: ''' Main service for generating KiCad netlist files. This service orchestrates the netlist generation process using dependency injection and clear separation of concerns. ''' def __init__(self, data_loader: Optional[CircuitDataLoader]=None, circuit_reconstructor: Opt...
3
3
36
6
23
8
3
0.46
0
7
4
0
2
4
2
2
81
14
46
23
35
21
25
15
21
5
0
2
6
326,703
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/netlist_service.py
circuit_synth.kicad.netlist_service.NetlistFileWriter
from pathlib import Path import logging class NetlistFileWriter: """Responsible for writing netlist files to disk.""" def __init__(self): self.logger = logging.getLogger(f'{__name__}.{self.__class__.__name__}') def write_netlist(self, circuit, output_path: Path) -> bool: """Write circuit ...
class NetlistFileWriter: '''Responsible for writing netlist files to disk.''' def __init__(self): pass def write_netlist(self, circuit, output_path: Path) -> bool: '''Write circuit netlist to KiCad .net file.''' pass
3
2
26
2
10
15
2
1.5
0
5
1
0
2
1
2
2
56
6
20
7
16
30
17
6
13
3
0
2
4
326,704
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/netlist_service.py
circuit_synth.kicad.netlist_service.NetlistGenerationResult
from pathlib import Path from typing import Any, Dict, List, Optional from dataclasses import dataclass @dataclass class NetlistGenerationResult: """Result of netlist generation operation.""" success: bool netlist_path: Optional[Path] = None error_message: Optional[str] = None component_count: int ...
@dataclass class NetlistGenerationResult: '''Result of netlist generation operation.''' pass
2
1
0
0
0
0
0
0.17
0
0
0
0
0
0
0
0
8
1
6
5
5
1
6
5
5
0
0
0
0
326,705
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/pcb_gen/pcb_generator.py
circuit_synth.kicad.pcb_gen.pcb_generator.PCBGenerator
import tempfile import re from circuit_synth.pcb import PCBBoard from typing import Any, Dict, List, Optional, Tuple from circuit_synth.kicad.core.s_expression import SExpressionParser from pathlib import Path import json from circuit_synth.core.circuit import Circuit from collections import defaultdict class PCBGener...
class PCBGenerator: ''' Generates PCB files from circuit definitions with hierarchical placement. This class integrates with the schematic generation workflow to create PCB files with components placed according to their hierarchical structure. ''' def __init__(self, project_dir: Path, project...
11
10
110
16
72
25
13
0.35
0
18
5
0
9
3
9
9
1,099
172
712
169
678
248
513
138
499
33
0
6
131
326,706
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/circuit_loader.py
circuit_synth.kicad.sch_gen.circuit_loader.Circuit
from circuit_synth.kicad.core.types import Point, SchematicPin, SchematicSymbol class Circuit: """ Holds all components (as SchematicSymbols), nets, and child subcircuits (instances). """ def __init__(self, name: str): self.name = name self.components: List[SchematicSymbol] = [] ...
class Circuit: ''' Holds all components (as SchematicSymbols), nets, and child subcircuits (instances). ''' def __init__(self, name: str): pass def add_component(self, comp: SchematicSymbol): pass def add_net(self, net: Net): pass def __repr__(self): pass
5
1
7
0
6
1
1
0.29
0
3
2
0
4
5
4
4
35
4
24
10
19
7
15
10
10
1
0
0
4
326,707
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/circuit_loader.py
circuit_synth.kicad.sch_gen.circuit_loader.Net
class Net: """ Represents an electrical net (by name) and the pin connections (component ref, pin_number). """ def __init__(self, name: str): self.name = name self.connections: List[tuple] = [] def __repr__(self): return f"Net(name='{self.name}', connections={self.connectio...
class Net: ''' Represents an electrical net (by name) and the pin connections (component ref, pin_number). ''' def __init__(self, name: str): pass def __repr__(self): pass
3
1
3
0
3
1
1
0.67
0
2
0
0
2
2
2
2
12
2
6
5
3
4
6
5
3
1
0
0
2
326,708
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/circuit_loader.py
circuit_synth.kicad.sch_gen.circuit_loader.Pin
class Pin: """ Represents a single pin on a component (including location, orientation, etc.). """ def __init__(self, number: str, name: str, function: str, orientation: float, x: float, y: float, length: float): self.number = number self.name = name self.function = function ...
class Pin: ''' Represents a single pin on a component (including location, orientation, etc.). ''' def __init__(self, number: str, name: str, function: str, orientation: float, x: float, y: float, length: float): pass def __repr__(self): pass
3
1
11
0
11
2
1
0.26
0
2
0
0
2
7
2
2
28
2
23
19
11
6
11
10
8
1
0
0
2
326,709
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/collision_detection.py
circuit_synth.kicad.sch_gen.collision_detection.BBox
class BBox: """Simple bounding box class with min/max points (in mm).""" def __init__(self, x_min: float, y_min: float, x_max: float, y_max: float): self.x_min = x_min self.y_min = y_min self.x_max = x_max self.y_max = y_max def intersects(self, other: 'BBox') -> bool: ...
class BBox: '''Simple bounding box class with min/max points (in mm).''' def __init__(self, x_min: float, y_min: float, x_max: float, y_max: float): pass def intersects(self, other: 'BBox') -> bool: ''' Check if this bounding box intersects another, returning True if so. We...
4
2
12
0
11
1
1
0.15
0
2
0
0
3
4
3
3
42
3
34
9
30
5
12
9
8
1
0
0
3
326,710
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/collision_detection.py
circuit_synth.kicad.sch_gen.collision_detection.CollisionDetector
from typing import List class CollisionDetector: """ Simple collision detection manager that tracks placed bounding boxes and attempts to find a new location that doesn't overlap with existing boxes. Also ensures components stay within sheet boundaries. """ def __init__(self, min_spacing: floa...
class CollisionDetector: ''' Simple collision detection manager that tracks placed bounding boxes and attempts to find a new location that doesn't overlap with existing boxes. Also ensures components stay within sheet boundaries. ''' def __init__(self, min_spacing: float=2.54, sheet_size: tupl...
5
5
26
2
18
10
2
0.59
0
4
1
0
4
4
4
4
112
10
74
18
64
44
30
13
25
3
0
2
6
326,711
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/collision_manager.py
circuit_synth.kicad.sch_gen.collision_manager.CollisionManager
from typing import Tuple from .collision_detection import BBox, CollisionDetector class CollisionManager: """ Manages collision detection during schematic generation. Provides a more robust approach for placing symbols with proper spacing. """ def __init__(self, sheet_size: Tuple[float, float]=(21...
class CollisionManager: ''' Manages collision detection during schematic generation. Provides a more robust approach for placing symbols with proper spacing. ''' def __init__(self, sheet_size: Tuple[float, float]=(210.0, 297.0), grid=2.54): ''' :param sheet_size: (width_mm, height_...
6
6
49
7
31
13
3
0.44
0
3
2
1
5
8
5
5
255
38
158
47
144
69
105
39
99
10
0
4
16
326,712
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/connection_analyzer.py
circuit_synth.kicad.sch_gen.connection_analyzer.ConnectionAnalyzer
from typing import Dict, List, Tuple class ConnectionAnalyzer: """ Stub implementation of ConnectionAnalyzer. This provides basic functionality to analyze circuit connections for component placement optimization. """ def __init__(self): self.connections: Dict[str, List[str]] = {} ...
class ConnectionAnalyzer: ''' Stub implementation of ConnectionAnalyzer. This provides basic functionality to analyze circuit connections for component placement optimization. ''' def __init__(self): pass def analyze_circuit(self, circuit) -> None: ''' Analyze circ...
8
6
16
3
8
6
3
0.9
0
6
0
0
6
2
6
6
124
25
52
25
42
47
47
23
39
13
0
4
21
326,713
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/connection_aware_collision_manager.py
circuit_synth.kicad.sch_gen.connection_aware_collision_manager.ConnectionAwareCollisionManager
from typing import Dict, List, Optional, Set, Tuple import math from .collision_detection import BBox from .connection_analyzer import ConnectionAnalyzer from .collision_manager import MIN_COMPONENT_SPACING, CollisionManager class ConnectionAwareCollisionManager(CollisionManager): """ Extends CollisionManager ...
class ConnectionAwareCollisionManager(CollisionManager): ''' Extends CollisionManager with connection-aware placement. Places components to minimize total wire length while avoiding collisions. ''' def __init__(self, sheet_size: Tuple[float, float]=(210.0, 297.0), grid=2.54): ''' I...
9
9
32
5
18
10
3
0.57
1
8
2
0
8
8
8
13
267
51
141
66
120
81
103
54
94
7
1
3
24
326,714
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/integrated_reference_manager.py
circuit_synth.kicad.sch_gen.integrated_reference_manager.IntegratedReferenceManager
from typing import Dict, Optional, Set class IntegratedReferenceManager: """ Self-contained reference manager for schematic generation workflow. """ def __init__(self): self.used_references: Set[str] = set() self.reference_counters: Dict[str, int] = {} self.type_to_lib_id = {'r...
class IntegratedReferenceManager: ''' Self-contained reference manager for schematic generation workflow. ''' def __init__(self): pass def get_reference_for_component(self, component) -> str: ''' Generate a reference for a component using the new API. Args: ...
9
8
23
2
14
7
3
0.5
0
5
0
0
8
4
8
8
197
26
114
22
105
57
64
22
55
12
0
2
25
326,715
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/main_generator.py
circuit_synth.kicad.sch_gen.main_generator.LLMPlacementManager
import logging class LLMPlacementManager: """Optimized collision-based placement manager for high performance.""" def __init__(self, *args, **kwargs): logging.info('Using optimized collision-based placement for high performance') def place_components(self, components, nets, existing_placements=No...
class LLMPlacementManager: '''Optimized collision-based placement manager for high performance.''' def __init__(self, *args, **kwargs): pass def place_components(self, components, nets, existing_placements=None): '''Fallback to basic grid placement''' pass
3
2
7
0
6
2
2
0.38
0
0
0
0
2
0
2
2
17
2
13
6
10
5
13
6
10
3
0
2
4
326,716
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/main_generator.py
circuit_synth.kicad.sch_gen.main_generator.SchematicGenerator
from ...core.dependency_injection import DependencyContainer, IDependencyContainer, ServiceLocator from typing import Any, Dict, List, Optional, Tuple from .collision_manager import SHEET_MARGIN, CollisionManager from circuit_synth.kicad.canonical import CanonicalCircuit, CircuitMatcher from .schematic_writer import Sc...
class SchematicGenerator: ''' Refactored KiCad integration implementing IKiCadIntegration interface. This class consolidates the existing KiCad generation logic while providing a clean interface for dependency injection and future extensibility. ''' def __init__(self, output_dir: str, project_...
43
31
44
6
31
8
4
0.27
0
39
27
0
29
10
29
29
1,634
243
1,116
304
988
305
664
232
592
29
0
7
153
326,717
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/main_generator.py
circuit_synth.kicad.sch_gen.main_generator.SchematicGeneratorImpl
from pathlib import Path from typing import Any, Dict, List, Optional, Tuple class SchematicGeneratorImpl: """Implementation of ISchematicGenerator interface using existing logic.""" def __init__(self, output_dir: str, project_name: str): self.output_dir = Path(output_dir).resolve() self.proje...
class SchematicGeneratorImpl: '''Implementation of ISchematicGenerator interface using existing logic.''' def __init__(self, output_dir: str, project_name: str): pass def generate_from_circuit_data(self, circuit_data: Dict[str, Any], config: Optional[Dict]=None) -> Dict[str, Any]: '''Gene...
3
2
22
3
17
3
4
0.18
0
6
1
0
2
3
2
2
47
7
34
14
27
6
24
9
21
7
0
3
8
326,718
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/modern_generator.py
circuit_synth.kicad.sch_gen.modern_generator.ModernKiCadGenerator
from pathlib import Path from ...core.circuit import Circuit from ...core.component import Component from ...core.net import Net from typing import Any, Dict, List, Optional, Tuple class ModernKiCadGenerator: """ Modern KiCad schematic file writer using kicad-sch-api. This generator focuses ONLY on schema...
class ModernKiCadGenerator: ''' Modern KiCad schematic file writer using kicad-sch-api. This generator focuses ONLY on schematic file writing with exact format preservation. Component placement, hierarchy, and layout are handled by the legacy system and passed in as positioned data. Features: ...
15
15
31
4
21
6
4
0.32
0
14
3
0
14
4
14
14
466
75
299
67
282
95
165
62
148
7
0
3
56
326,719
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sch_gen/symbol_geometry.py
circuit_synth.kicad.sch_gen.symbol_geometry.SymbolBoundingBoxCalculator
import math from typing import Any, Dict, List, Optional, Tuple class SymbolBoundingBoxCalculator: """Calculate the actual bounding box of a symbol from its graphical elements.""" DEFAULT_TEXT_HEIGHT = 2.54 DEFAULT_PIN_LENGTH = 2.54 DEFAULT_PIN_NAME_OFFSET = 0.508 DEFAULT_PIN_NUMBER_SIZE = 1.27 ...
class SymbolBoundingBoxCalculator: '''Calculate the actual bounding box of a symbol from its graphical elements.''' @classmethod def calculate_bounding_box(cls, symbol_data: Dict[str, Any], include_properties: bool=True, hierarchical_labels: Optional[List[Dict[str, Any]]]=None) -> Tuple[float, float, float...
9
5
67
9
45
15
8
0.38
0
5
0
0
0
0
4
4
290
42
191
79
171
72
137
64
132
13
0
3
30
326,720
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/component_manager.py
circuit_synth.kicad.schematic.component_manager.ComponentManager
from ..core.symbol_cache import get_symbol_cache from .placement import PlacementEngine, PlacementStrategy from .instance_utils import add_symbol_instance from typing import Any, Dict, List, Optional, Tuple import time import uuid from ..core.types import Point, Schematic, SchematicSymbol class ComponentManager: "...
class ComponentManager: ''' Manages components in a KiCad schematic. Provides high-level operations for adding, removing, updating, and searching components. ''' def __init__(self, schematic: Schematic, sheet_size: Tuple[float, float]=None): ''' Initialize component manager with a ...
18
18
26
4
14
9
3
0.65
0
12
5
0
17
3
17
17
466
81
237
85
188
153
158
56
138
9
0
4
53
326,721
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ComponentPin
from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class ComponentPin: """Represents a component pin.""" component_ref: str pin_number: str ...
@dataclass class ComponentPin: '''Represents a component pin.''' pass
2
1
0
0
0
0
0
0.2
0
0
0
0
0
0
0
0
7
1
5
2
4
1
5
2
4
0
0
0
0
326,722
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ConnectionEdge
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class ConnectionEdge: """Edge in the connection graph.""" start_node: ConnectionNode end_node: ConnectionNode wire_uuid: Optional[str] = None def __hash__(self): return hash(...
@dataclass class ConnectionEdge: '''Edge in the connection graph.''' def __hash__(self): pass
3
1
2
0
2
0
1
0.17
0
0
0
0
1
0
1
1
9
2
6
3
4
1
6
3
4
1
0
0
1
326,723
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ConnectionGraph
from collections import deque from typing import Any, Dict, List, Optional, Set, Tuple, Union from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire class ConnectionGraph: """Graph representation of schematic connections.""" def __init__(self): """Initialize ...
class ConnectionGraph: '''Graph representation of schematic connections.''' def __init__(self): '''Initialize connection graph.''' pass def add_node(self, node: ConnectionNode): '''Add a node to the graph.''' pass def add_edge(self, start: ConnectionNode, end: Connect...
6
6
11
2
8
1
3
0.16
0
6
3
0
5
3
5
5
63
13
43
23
30
7
36
16
30
7
0
3
14
326,724
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ConnectionNode
from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class ConnectionNode: """Node in the connection graph.""" position: Point node_type: str ...
@dataclass class ConnectionNode: '''Node in the connection graph.''' def __hash__(self): pass
3
1
2
0
2
0
1
0.43
0
0
0
0
1
0
1
1
10
2
7
4
5
3
7
4
5
1
0
0
1
326,725
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ConnectionPath
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire @dataclass class ConnectionPath: """Path between two pins.""" start_pin: ComponentPin end_pin: Component...
@dataclass class ConnectionPath: '''Path between two pins.''' pass
2
1
0
0
0
0
0
0.17
0
0
0
0
0
0
0
0
8
1
6
4
5
1
6
4
5
0
0
0
0
326,726
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.ConnectionTracer
from collections import deque from typing import Any, Dict, List, Optional, Set, Tuple, Union from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire class ConnectionTracer: """ Traces electrical connections through a schematic. This class builds a connection grap...
class ConnectionTracer: ''' Traces electrical connections through a schematic. This class builds a connection graph from the schematic elements and provides methods to trace nets, find paths, and analyze connectivity. ''' def __init__(self, schematic: Schematic): ''' Initialize...
12
12
31
5
18
8
5
0.48
0
14
7
0
11
3
11
11
361
69
200
78
184
96
168
74
156
16
0
5
59
326,727
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_tracer.py
circuit_synth.kicad.schematic.connection_tracer.NetTrace
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class NetTrace: """Complete trace of a net.""" net_name: str nodes: List[ConnectionNode] = field(default_factory=list) edges: List[ConnectionEdge] = field(default_factory=list) compon...
@dataclass class NetTrace: '''Complete trace of a net.''' def add_node(self, node: ConnectionNode): '''Add a node to the trace.''' pass def add_edge(self, edge: ConnectionEdge): '''Add an edge to the trace.''' pass
4
3
6
0
5
2
2
0.27
0
2
2
0
2
0
2
2
22
3
15
9
12
4
15
9
12
2
0
1
4
326,728
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_updater.py
circuit_synth.kicad.schematic.connection_updater.ConnectionUpdate
from typing import Dict, List, Optional, Set, Tuple from dataclasses import dataclass @dataclass class ConnectionUpdate: """Represents a connection update operation.""" component_ref: str pin_nets: Dict[str, str] routing_style: str = 'manhattan'
@dataclass class ConnectionUpdate: '''Represents a connection update operation.''' pass
2
1
0
0
0
0
0
0.5
0
0
0
0
0
0
0
0
6
1
4
2
3
2
4
2
3
0
0
0
0
326,729
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/connection_updater.py
circuit_synth.kicad.schematic.connection_updater.ConnectionUpdater
from .wire_router import RoutingConstraints, WireRouter from .wire_manager import WireManager from typing import Dict, List, Optional, Set, Tuple from ..core.types import Junction, Label, LabelType, Point, Schematic, SchematicSymbol, Wire from .instance_utils import add_symbol_instance class ConnectionUpdater: """...
class ConnectionUpdater: ''' Handles updating connections in a schematic. This class manages: - Removing old connections - Creating new connections with proper routing - Managing power/ground symbols - Creating and placing net labels ''' def __init__(self, schematic: Schematic): ...
15
15
23
4
11
9
3
0.85
0
11
8
0
14
4
14
14
343
67
151
61
125
129
108
50
93
7
0
3
41
326,730
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/geometry_utils.py
circuit_synth.kicad.schematic.geometry_utils.GeometryUtils
import math from typing import Dict, List, Optional, Tuple from ..core.types import Label, LabelType, Point, SchematicPin, SchematicSymbol class GeometryUtils: """Utilities for calculating positions and transformations in schematics.""" @staticmethod def get_actual_pin_position(symbol: SchematicSymbol, pi...
class GeometryUtils: '''Utilities for calculating positions and transformations in schematics.''' @staticmethod def get_actual_pin_position(symbol: SchematicSymbol, pin_number: str) -> Optional[Point]: ''' Get the world position of a pin on a component. Args: symbol: The...
15
8
40
6
21
14
3
0.66
0
7
5
0
0
0
7
7
298
51
154
59
120
102
93
33
85
5
0
3
20
326,731
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/hierarchical_synchronizer.py
circuit_synth.kicad.schematic.hierarchical_synchronizer.HierarchicalSheet
from pathlib import Path from typing import Any, Dict, List, Optional, Tuple from .synchronizer import APISynchronizer class HierarchicalSheet: """Represents a sheet in the hierarchical structure.""" def __init__(self, name: str, file_path: Path, parent: Optional['HierarchicalSheet']=None): self.name ...
class HierarchicalSheet: '''Represents a sheet in the hierarchical structure.''' def __init__(self, name: str, file_path: Path, parent: Optional['HierarchicalSheet']=None): pass def add_child(self, child: 'HierarchicalSheet'): '''Add a child sheet.''' pass def get_hierarchica...
4
3
7
0
6
1
2
0.15
0
3
1
0
3
6
3
3
26
3
20
13
14
3
18
11
14
3
0
1
5
326,732
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/hierarchical_synchronizer.py
circuit_synth.kicad.schematic.hierarchical_synchronizer.HierarchicalSynchronizer
from pathlib import Path from typing import Any, Dict, List, Optional, Tuple from .synchronizer import APISynchronizer from ..core.s_expression import SExpressionParser class HierarchicalSynchronizer: """ Synchronizer for hierarchical KiCad projects. This synchronizer handles multi-level circuit hierarchi...
class HierarchicalSynchronizer: ''' Synchronizer for hierarchical KiCad projects. This synchronizer handles multi-level circuit hierarchies by: 1. Building a hierarchical tree of all schematic sheets 2. Matching sheets to circuit subcircuits 3. Synchronizing each sheet with its corresponding su...
10
10
31
5
20
6
5
0.35
0
11
3
0
9
6
9
9
302
53
184
51
162
65
131
38
121
22
0
6
41
326,733
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/hierarchy_navigator.py
circuit_synth.kicad.schematic.hierarchy_navigator.HierarchyAnalysis
from dataclasses import dataclass, field from typing import Dict, List, Optional, Set, Tuple @dataclass class HierarchyAnalysis: """Analysis results for a hierarchical design.""" total_sheets: int max_depth: int circular_references: List[List[str]] duplicate_instances: Dict[str, int] missing_fi...
@dataclass class HierarchyAnalysis: '''Analysis results for a hierarchical design.''' pass
2
1
0
0
0
0
0
0.43
0
0
0
0
0
0
0
0
9
1
7
1
6
3
7
1
6
0
0
0
0
326,734
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/hierarchy_navigator.py
circuit_synth.kicad.schematic.hierarchy_navigator.HierarchyNavigator
from ..core.types import Schematic, Sheet, SheetPin from typing import Dict, List, Optional, Set, Tuple from ..core.s_expression import SExpressionParser from pathlib import Path class HierarchyNavigator: """ Navigate and analyze hierarchical schematic designs. This class provides tools to: - Build hi...
class HierarchyNavigator: ''' Navigate and analyze hierarchical schematic designs. This class provides tools to: - Build hierarchy trees - Find sheets and navigate paths - Validate hierarchy structure - Analyze net scoping ''' def __init__(self, root_schematic: Schematic, project_p...
23
18
20
3
13
4
4
0.4
0
10
5
0
17
5
17
17
423
87
240
99
208
96
204
91
179
8
0
4
80
326,735
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/hierarchy_navigator.py
circuit_synth.kicad.schematic.hierarchy_navigator.HierarchyNode
from dataclasses import dataclass, field from typing import Dict, List, Optional, Set, Tuple @dataclass class HierarchyNode: """Node in the hierarchy tree.""" sheet_name: str sheet_uuid: str sheet_filename: str parent_uuid: Optional[str] = None children: List['HierarchyNode'] = field(default_fa...
@dataclass class HierarchyNode: '''Node in the hierarchy tree.''' def add_child(self, child: 'HierarchyNode'): '''Add a child node.''' pass def get_full_path(self) -> str: '''Get the full hierarchical path.''' pass def find_node(self, sheet_uuid: str) -> Optional['Hier...
5
4
7
1
6
1
2
0.16
0
1
0
0
3
0
3
3
35
6
25
10
21
4
25
10
21
4
0
2
7
326,736
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/junction_manager.py
circuit_synth.kicad.schematic.junction_manager.JunctionManager
from collections import defaultdict from typing import Dict, List, Set, Tuple from .connection_utils import get_wire_segments, points_equal, segment_intersection from ..core.types import Junction, Point, Schematic, Wire class JunctionManager: """ Manages wire junctions in the schematic. Automatically detec...
class JunctionManager: ''' Manages wire junctions in the schematic. Automatically detects where junctions are needed and manages their lifecycle. ''' def __init__(self, schematic: Schematic): ''' Initialize junction manager with a schematic. Args: schematic: The...
13
13
20
3
10
7
4
0.67
0
9
3
0
12
2
12
12
260
50
126
60
111
85
118
57
105
7
0
5
43
326,737
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/label_manager.py
circuit_synth.kicad.schematic.label_manager.LabelManager
from typing import Any, Dict, List, Optional, Tuple from .connection_utils import points_equal, snap_to_grid import uuid from ..core.types import Label, LabelType, Point, Schematic, Wire class LabelManager: """ Manages labels in a KiCad schematic. Provides high-level operations for adding, removing, and ma...
class LabelManager: ''' Manages labels in a KiCad schematic. Provides high-level operations for adding, removing, and manipulating labels. ''' def __init__(self, schematic: Schematic): ''' Initialize label manager with a schematic. Args: schematic: The schematic...
15
15
20
3
11
6
3
0.59
0
11
5
0
14
2
14
14
295
53
152
67
117
90
111
47
96
8
0
4
41
326,738
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/label_utils.py
circuit_synth.kicad.schematic.label_utils.LabelPosition
from enum import Enum class LabelPosition(Enum): """Label positioning relative to connection point.""" ABOVE = 'above' BELOW = 'below' LEFT = 'left' RIGHT = 'right' AUTO = 'auto'
class LabelPosition(Enum): '''Label positioning relative to connection point.''' pass
1
1
0
0
0
0
0
0.17
1
0
0
0
0
0
0
49
8
1
6
6
5
1
6
6
5
0
4
0
0
326,739
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.BusNet
from typing import Dict, List, Optional, Set, Tuple import re from dataclasses import dataclass, field @dataclass class BusNet: """Represents a bus (collection of related nets).""" name: str member_nets: List[str] width: int @property def is_valid(self) -> bool: """Check if bus has val...
@dataclass class BusNet: '''Represents a bus (collection of related nets).''' @property def is_valid(self) -> bool: '''Check if bus has valid syntax.''' pass def get_member_name(self, index: int) -> str: '''Get the name of a specific bus member.''' pass
5
3
4
0
3
1
1
0.3
0
3
0
0
2
0
2
2
16
3
10
5
6
3
9
4
6
1
0
0
2
326,740
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.ConnectivityReport
from typing import Dict, List, Optional, Set, Tuple from dataclasses import dataclass, field @dataclass class ConnectivityReport: """Report on schematic connectivity.""" total_nets: int connected_nets: int floating_nets: int power_nets: List[str] ground_nets: List[str] bus_nets: List[BusNet...
@dataclass class ConnectivityReport: '''Report on schematic connectivity.''' pass
2
1
0
0
0
0
0
0.4
0
0
0
0
0
0
0
0
12
1
10
1
9
4
10
1
9
0
0
0
0
326,741
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.HierarchicalNetDiscovery
from .connection_tracer import ConnectionTracer, NetTrace from typing import Dict, List, Optional, Set, Tuple from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire class HierarchicalNetDiscovery(NetDiscovery): """Extended net discovery for hierarchical designs.""" d...
class HierarchicalNetDiscovery(NetDiscovery): '''Extended net discovery for hierarchical designs.''' def __init__(self, root_schematic: Schematic, sheet_schematics: Dict[str, Schematic]): ''' Initialize hierarchical net discovery. Args: root_schematic: The root schematic ...
4
4
17
3
7
7
2
0.91
1
6
4
0
3
1
3
15
56
12
23
15
17
21
21
13
17
4
1
2
7
326,742
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.NetDiscovery
from .connection_tracer import ConnectionTracer, NetTrace import re from typing import Dict, List, Optional, Set, Tuple from collections import defaultdict from ..core.types import Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire class NetDiscovery: """ Discovers and analyzes nets in a ...
class NetDiscovery: ''' Discovers and analyzes nets in a schematic. This class provides functionality to: - Discover all nets in a schematic - Identify bus nets - Find floating and unconnected nets - Suggest net names - Analyze connectivity ''' def __init__(self, schematic: Sch...
13
13
34
5
24
6
6
0.27
0
15
8
1
12
3
12
12
435
70
287
95
274
78
191
95
178
15
0
5
74
326,743
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.NetInfo
from dataclasses import dataclass, field from typing import Dict, List, Optional, Set, Tuple @dataclass class NetInfo: """Information about a discovered net.""" name: str component_pins: List[Tuple[str, str]] wire_count: int label_count: int junction_count: int total_length: float is_po...
@dataclass class NetInfo: '''Information about a discovered net.''' pass
2
1
0
0
0
0
0
0.25
0
0
0
0
0
0
0
0
14
1
12
3
11
3
12
3
11
0
0
0
0
326,744
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_discovery.py
circuit_synth.kicad.schematic.net_discovery.NetStatistics
from typing import Dict, List, Optional, Set, Tuple from dataclasses import dataclass, field @dataclass class NetStatistics: """Statistics about nets in the schematic.""" total_count: int named_count: int unnamed_count: int power_count: int ground_count: int bus_count: int average_fanou...
@dataclass class NetStatistics: '''Statistics about nets in the schematic.''' pass
2
1
0
0
0
0
0
0.08
0
0
0
0
0
0
0
0
14
1
12
1
11
1
12
1
11
0
0
0
0
326,745
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/net_matcher.py
circuit_synth.kicad.schematic.net_matcher.NetMatcher
from .connection_tracer import ConnectionTracer from typing import Dict, List, Set, Tuple class NetMatcher: """ Matches components based on their net connections. """ def __init__(self, connection_tracer: ConnectionTracer): """Initialize with connection tracer.""" self.tracer = connect...
class NetMatcher: ''' Matches components based on their net connections. ''' def __init__(self, connection_tracer: ConnectionTracer): '''Initialize with connection tracer.''' pass def match_by_connections(self, circuit_component: Dict, kicad_components: List[Dict]) -> List[Tuple[s...
5
5
15
3
9
3
3
0.44
0
4
1
0
4
2
4
4
66
14
36
19
29
16
34
17
29
4
0
2
12
326,746
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/placement.py
circuit_synth.kicad.schematic.placement.ElementBounds
class ElementBounds: """Bounding box for any schematic element (component or sheet).""" def __init__(self, x: float, y: float, width: float, height: float, element_type: str='component'): self.x = x self.y = y self.width = width self.height = height self.element_type = e...
class ElementBounds: '''Bounding box for any schematic element (component or sheet).''' def __init__(self, x: float, y: float, width: float, height: float, element_type: str='component'): pass @property def right(self) -> float: pass @property def bottom(self) -> float: ...
7
2
6
0
6
1
1
0.11
0
3
0
0
4
5
4
4
33
4
27
19
13
3
13
10
8
1
0
0
4
326,747
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/placement.py
circuit_synth.kicad.schematic.placement.PlacementEngine
from .symbol_geometry import SymbolGeometry import time from ..core.types import Point, Schematic, SchematicSymbol, Sheet from typing import List, Optional, Tuple class PlacementEngine: """ Handles automatic component placement with collision detection. """ def __init__(self, schematic: Schematic, gri...
class PlacementEngine: ''' Handles automatic component placement with collision detection. ''' def __init__(self, schematic: Schematic, grid_size: float=2.54, sheet_size: Tuple[float, float]=None): ''' Initialize placement engine. Args: schematic: The schematic to p...
20
20
43
6
27
12
5
0.45
0
15
7
0
19
5
19
19
840
138
509
213
454
227
338
179
316
11
0
4
95
326,748
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/placement.py
circuit_synth.kicad.schematic.placement.PlacementStrategy
from enum import Enum class PlacementStrategy(Enum): """Component placement strategies.""" AUTO = 'auto' GRID = 'grid' EDGE_RIGHT = 'edge_right' EDGE_BOTTOM = 'edge_bottom' CENTER = 'center'
class PlacementStrategy(Enum): '''Component placement strategies.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
49
8
1
6
6
5
6
6
6
5
0
4
0
0
326,749
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/project_generator.py
circuit_synth.kicad.schematic.project_generator.ProjectGenerator
from typing import Optional from .placement import PlacementEngine, PlacementStrategy import shutil from ..core.s_expression import SExpressionParser import sexpdata from .connection_updater import ConnectionUpdater from ..core.types import Label, LabelType, Point, Schematic, SchematicSymbol, Sheet from .sheet_placemen...
class ProjectGenerator: '''Generate new KiCad projects using the API.''' def __init__(self, output_dir: str, project_name: str): ''' Initialize project generator. Args: output_dir: Directory where project will be created project_name: Name of the project ...
14
14
42
5
28
9
4
0.32
0
18
12
0
13
3
13
13
563
83
368
105
348
117
188
99
174
20
0
8
55
326,750
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.ComponentValueParser
import re from typing import Any, Dict, List, Optional, Set, Tuple, Union class ComponentValueParser: """Parse component values with units.""" UNIT_MULTIPLIERS = {'p': 1e-12, 'n': 1e-09, 'u': 1e-06, 'µ': 1e-06, 'm': 0.001, 'k': 1000.0, 'K': 1000.0, 'M': 1000000.0, 'G': 1000000000.0} @classmethod def p...
class ComponentValueParser: '''Parse component values with units.''' @classmethod def parse_value(cls, value_str: str) -> Optional[float]: ''' Parse a component value string to numeric value. Examples: "10k" -> 10000.0 "4.7µF" -> 4.7e-6 "100nF" ->...
3
2
31
6
16
9
5
0.34
0
3
0
0
0
0
1
1
47
8
29
7
26
10
18
6
16
5
0
2
5
326,751
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.MatchType
from enum import Enum class MatchType(Enum): """Types of pattern matching.""" EXACT = 'exact' CONTAINS = 'contains' REGEX = 'regex' WILDCARD = 'wildcard'
class MatchType(Enum): '''Types of pattern matching.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
49
7
1
5
5
4
1
5
5
4
0
4
0
0
326,752
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.NetStatistics
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class NetStatistics: """Statistics about a net.""" name: str component_count: int pin_count: int wire_count: int total_length: float has_power_connection: bool has_ground_...
@dataclass class NetStatistics: '''Statistics about a net.''' pass
2
1
0
0
0
0
0
0.22
0
0
0
0
0
0
0
0
11
1
9
1
8
2
9
1
8
0
0
0
0
326,753
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.SearchCriterion
from dataclasses import dataclass, field @dataclass class SearchCriterion: """Single search criterion.""" field: str pattern: str match_type: MatchType = MatchType.CONTAINS case_sensitive: bool = False
@dataclass class SearchCriterion: '''Single search criterion.''' pass
2
1
0
0
0
0
0
0.4
0
0
0
0
0
0
0
0
7
1
5
3
4
2
5
3
4
0
0
0
0
326,754
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.SearchEngine
from ..core.types import BoundingBox, Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire from typing import Any, Dict, List, Optional, Set, Tuple, Union import re from dataclasses import dataclass, field class SearchEngine: """ Advanced search engine for KiCad schematics. Provides co...
class SearchEngine: ''' Advanced search engine for KiCad schematics. Provides comprehensive search capabilities including: - Component search by various criteria - Net tracing and discovery - Spatial searches - Connection analysis ''' def __init__(self, schematic: Schematic): ...
16
16
25
3
16
5
5
0.37
0
14
8
0
15
4
15
15
396
66
243
83
213
89
175
69
159
13
0
4
82
326,755
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.SearchQuery
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set, Tuple, Union @dataclass class SearchQuery: """Complex search query with multiple criteria.""" criteria: List[SearchCriterion] = field(default_factory=list) combine_with: str = 'AND' def add_criterion(self, fiel...
@dataclass class SearchQuery: '''Complex search query with multiple criteria.''' def add_criterion(self, field: str, pattern: str, match_type: MatchType=MatchType.CONTAINS, case_sensitive: bool=False): '''Add a search criterion.''' pass
3
2
16
0
15
1
1
0.17
0
4
2
0
1
0
1
1
22
2
18
10
10
3
5
4
3
1
0
0
1
326,756
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.SearchQueryBuilder
class SearchQueryBuilder: """Helper class to build complex search queries.""" def __init__(self): """Initialize query builder.""" self.query = SearchQuery() def with_reference(self, pattern: str, match_type: MatchType=MatchType.CONTAINS): """Add reference criterion.""" self...
class SearchQueryBuilder: '''Helper class to build complex search queries.''' def __init__(self): '''Initialize query builder.''' pass def with_reference(self, pattern: str, match_type: MatchType=MatchType.CONTAINS): '''Add reference criterion.''' pass def with_value(s...
9
9
4
0
3
1
1
0.36
0
3
2
0
8
1
8
8
42
8
25
12
14
9
23
10
14
1
0
0
8
326,757
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/search_engine.py
circuit_synth.kicad.schematic.search_engine.SearchResults
from ..core.types import BoundingBox, Junction, Label, LabelType, Net, Point, Schematic, SchematicSymbol, Wire from typing import Any, Dict, List, Optional, Set, Tuple, Union from dataclasses import dataclass, field @dataclass class SearchResults: """Container for search results.""" components: List[SchematicS...
@dataclass class SearchResults: '''Container for search results.''' @property def total_count(self) -> int: '''Get total number of results.''' pass def is_empty(self) -> bool: '''Check if results are empty.''' pass
5
3
4
0
3
1
1
0.25
0
2
0
0
2
0
2
2
18
3
12
8
8
3
9
7
6
1
0
0
2
326,758
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sheet_manager.py
circuit_synth.kicad.schematic.sheet_manager.SheetInfo
from typing import Dict, List, Optional, Set, Tuple from dataclasses import dataclass from ..core.types import BoundingBox, Point, Schematic, SchematicSymbol, Sheet, SheetPin @dataclass class SheetInfo: """Information about a sheet and its contents.""" sheet: Sheet schematic: Optional[Schematic] = None ...
@dataclass class SheetInfo: '''Information about a sheet and its contents.''' pass
2
1
0
0
0
0
0
0.4
0
0
0
0
0
0
0
0
7
1
5
4
4
2
5
4
4
0
0
0
0
326,759
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sheet_manager.py
circuit_synth.kicad.schematic.sheet_manager.SheetManager
from typing import Dict, List, Optional, Set, Tuple from ..core.s_expression import SExpressionParser from ..core.types import BoundingBox, Point, Schematic, SchematicSymbol, Sheet, SheetPin from pathlib import Path import uuid class SheetManager: """ Manages hierarchical sheets in KiCad schematics. This ...
class SheetManager: ''' Manages hierarchical sheets in KiCad schematics. This class provides functionality to: - Create and manage sheets - Add/remove sheet pins - Load sheet contents - Validate sheet hierarchy ''' def __init__(self, schematic: Schematic, project_path: Optional[Pat...
22
21
23
4
12
7
3
0.58
0
17
7
0
20
4
20
20
493
106
249
103
209
144
206
85
183
8
0
3
69
326,760
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/symbol_geometry.py
circuit_synth.kicad.schematic.symbol_geometry.SymbolGeometry
from typing import Any, Dict, List, Optional, Tuple from ..core.symbol_cache import get_symbol_cache class SymbolGeometry: """ Calculates accurate symbol dimensions from KiCad symbol library files. """ CHAR_WIDTH_FACTOR = 0.8 CHAR_HEIGHT = 1.27 DEFAULT_DIMENSIONS = {'R': (200, 750), 'C': (200, ...
class SymbolGeometry: ''' Calculates accurate symbol dimensions from KiCad symbol library files. ''' def __init__(self): pass def get_symbol_bounds(self, lib_id: str) -> Tuple[float, float]: ''' Get the bounding box dimensions for a symbol. Args: lib_id...
8
6
37
5
24
9
5
0.45
0
5
0
0
5
2
6
6
256
39
163
56
153
74
127
51
120
12
0
3
30
326,761
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sync_adapter.py
circuit_synth.kicad.schematic.sync_adapter.SyncAdapter
from .synchronizer import APISynchronizer from pathlib import Path from typing import Any, Dict, List class SyncAdapter: """ Adapts APISynchronizer to work with existing SchematicSynchronizer interface. """ def __init__(self, project_path: str, match_criteria: List[str]=None, preserve_user_components:...
class SyncAdapter: ''' Adapts APISynchronizer to work with existing SchematicSynchronizer interface. ''' def __init__(self, project_path: str, match_criteria: List[str]=None, preserve_user_components: bool=True): '''Initialize adapter with compatibility interface.''' pass def _fin...
6
6
18
3
11
4
3
0.4
0
9
2
0
5
3
5
5
97
18
57
27
45
23
43
21
36
7
0
3
14
326,762
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sync_strategies.py
circuit_synth.kicad.schematic.sync_strategies.ConnectionMatchStrategy
from typing import Any, Dict from .net_matcher import NetMatcher class ConnectionMatchStrategy(SyncStrategy): """Match components by their connections.""" def __init__(self, net_matcher: NetMatcher): self.net_matcher = net_matcher def match_components(self, circuit_components: Dict[str, Dict], ki...
class ConnectionMatchStrategy(SyncStrategy): '''Match components by their connections.''' def __init__(self, net_matcher: NetMatcher): pass def match_components(self, circuit_components: Dict[str, Dict], kicad_components: Dict[str, Any]) -> Dict[str, str]: pass
3
1
16
3
12
2
3
0.17
1
4
1
0
2
1
2
23
35
7
24
12
19
4
17
10
14
5
5
3
6
326,763
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sync_strategies.py
circuit_synth.kicad.schematic.sync_strategies.ReferenceMatchStrategy
from .search_engine import MatchType, SearchEngine from typing import Any, Dict class ReferenceMatchStrategy(SyncStrategy): """Match components by reference designator.""" def __init__(self, search_engine: SearchEngine): self.search_engine = search_engine def match_components(self, circuit_compon...
class ReferenceMatchStrategy(SyncStrategy): '''Match components by reference designator.''' def __init__(self, search_engine: SearchEngine): pass def match_components(self, circuit_components: Dict[str, Dict], kicad_components: Dict[str, Any]) -> Dict[str, str]: pass
3
1
11
3
8
1
3
0.19
1
3
1
0
2
1
2
23
26
7
16
12
11
3
14
10
11
4
5
3
5
326,764
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sync_strategies.py
circuit_synth.kicad.schematic.sync_strategies.SyncStrategy
from typing import Any, Dict from abc import ABC, abstractmethod class SyncStrategy(ABC): """Base class for component matching strategies.""" @abstractmethod def match_components(self, circuit_components: Dict[str, Dict], kicad_components: Dict[str, Any]) -> Dict[str, str]: """ Match circu...
class SyncStrategy(ABC): '''Base class for component matching strategies.''' @abstractmethod def match_components(self, circuit_components: Dict[str, Dict], kicad_components: Dict[str, Any]) -> Dict[str, str]: ''' Match circuit components to KiCad components. Returns: Di...
3
2
10
1
4
5
1
1
1
2
0
3
1
0
1
21
14
2
6
5
1
6
3
2
1
1
4
0
1
326,765
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/sync_strategies.py
circuit_synth.kicad.schematic.sync_strategies.ValueFootprintStrategy
from typing import Any, Dict from .search_engine import MatchType, SearchEngine class ValueFootprintStrategy(SyncStrategy): """Match components by value and footprint.""" def __init__(self, search_engine: SearchEngine): self.search_engine = search_engine def match_components(self, circuit_compone...
class ValueFootprintStrategy(SyncStrategy): '''Match components by value and footprint.''' def __init__(self, search_engine: SearchEngine): pass def match_components(self, circuit_components: Dict[str, Dict], kicad_components: Dict[str, Any]) -> Dict[str, str]: pass
3
1
15
3
11
2
4
0.18
1
4
1
0
2
1
2
23
33
7
22
13
17
4
20
11
17
6
5
3
7
326,766
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/synchronizer.py
circuit_synth.kicad.schematic.synchronizer.APISynchronizer
from .search_engine import SearchEngine, SearchQueryBuilder from ..core.types import Schematic, SchematicSymbol from pathlib import Path from .net_matcher import NetMatcher from .sync_strategies import ConnectionMatchStrategy, ReferenceMatchStrategy, SyncStrategy, ValueFootprintStrategy from ..core.s_expression import ...
class APISynchronizer: ''' API-based synchronizer for updating KiCad schematics from Circuit Synth. This class uses the new KiCad API components for improved matching and manipulation of schematic elements. ''' def __init__(self, schematic_path: str, preserve_user_components: bool=True): ...
16
15
31
4
22
5
5
0.26
0
21
12
0
14
9
14
14
464
75
315
105
280
81
226
86
207
11
0
4
73
326,767
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/synchronizer.py
circuit_synth.kicad.schematic.synchronizer.SyncReport
from typing import Any, Dict, List, Optional, Tuple from dataclasses import dataclass, field @dataclass class SyncReport: """Report of synchronization results.""" matched: Dict[str, str] = field(default_factory=dict) added: List[str] = field(default_factory=list) modified: List[str] = field(default_fac...
@dataclass class SyncReport: '''Report of synchronization results.''' def to_dict(self) -> Dict[str, Any]: '''Convert to dictionary for compatibility.''' pass
3
2
15
0
14
1
1
0.14
0
2
0
0
1
0
1
1
25
2
21
8
19
3
9
8
7
1
0
0
1
326,768
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/text_manager.py
circuit_synth.kicad.schematic.text_manager.TextManager
import uuid from ..core.types import Point, Schematic, Text from .connection_utils import points_equal, snap_to_grid from typing import Any, Dict, List, Optional, Tuple class TextManager: """ Manages text annotations in a KiCad schematic. Provides high-level operations for adding, removing, and manipulatin...
class TextManager: ''' Manages text annotations in a KiCad schematic. Provides high-level operations for adding, removing, and manipulating text. ''' def __init__(self, schematic: Schematic): ''' Initialize text manager with a schematic. Args: schematic: The sch...
13
13
26
4
14
8
5
0.57
0
11
3
0
12
2
12
12
329
58
173
64
139
98
130
43
117
18
0
4
55
326,769
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/wire_manager.py
circuit_synth.kicad.schematic.wire_manager.ConnectionPoint
from typing import Dict, List, Optional, Set, Tuple from ..core.types import Junction, Label, LabelType, Point, Schematic, SchematicPin, SchematicSymbol, Wire from dataclasses import dataclass, field @dataclass class ConnectionPoint: """Represents a connection point in the schematic.""" position: Point con...
@dataclass class ConnectionPoint: '''Represents a connection point in the schematic.''' def add_connection(self, element_uuid: str): '''Add a connected element.''' pass
3
2
3
0
2
1
1
0.38
0
1
0
0
1
0
1
1
12
2
8
4
6
3
6
4
4
1
0
0
1
326,770
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/wire_manager.py
circuit_synth.kicad.schematic.wire_manager.WireManager
from typing import Dict, List, Optional, Set, Tuple from ..core.types import Junction, Label, LabelType, Point, Schematic, SchematicPin, SchematicSymbol, Wire import uuid class WireManager: """ Manages wires and connections in a schematic. This class provides functionality for: - Tracking wire-to-comp...
class WireManager: ''' Manages wires and connections in a schematic. This class provides functionality for: - Tracking wire-to-component pin connections - Managing junctions where wires meet - Finding and manipulating wire connections - Routing new wires between points ''' def __in...
15
15
23
4
11
9
3
0.83
0
10
7
0
14
5
14
14
347
66
154
65
127
128
117
52
102
6
0
3
44
326,771
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/wire_router.py
circuit_synth.kicad.schematic.wire_router.RoutingConstraints
from dataclasses import dataclass @dataclass class RoutingConstraints: """Constraints for wire routing.""" grid_size: float = 2.54 min_segment_length: float = 2.54 prefer_horizontal: bool = True avoid_diagonal: bool = True max_segments: int = 5
@dataclass class RoutingConstraints: '''Constraints for wire routing.''' pass
2
1
0
0
0
0
0
0.33
0
0
0
0
0
0
0
0
8
1
6
6
5
2
6
6
5
0
0
0
0
326,772
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/schematic/wire_router.py
circuit_synth.kicad.schematic.wire_router.WireRouter
import math from typing import List, Optional, Set, Tuple from ..core.types import Point class WireRouter: """ Wire routing engine for schematic connections. Provides various routing algorithms: - Direct (straight line) - Manhattan (horizontal/vertical only) - Diagonal (45-degree angles) -...
class WireRouter: ''' Wire routing engine for schematic connections. Provides various routing algorithms: - Direct (straight line) - Manhattan (horizontal/vertical only) - Diagonal (45-degree angles) - Smart (obstacle-aware) ''' def __init__(self, constraints: Optional[RoutingConst...
12
12
29
5
15
9
3
0.68
0
6
2
0
11
1
11
11
338
67
161
76
122
110
105
49
93
5
0
2
35
326,773
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sexpr_manipulator.py
circuit_synth.kicad.sexpr_manipulator.SExpressionManipulator
from typing import Any, Dict, List, Optional, Tuple, Union import sexpdata import uuid class SExpressionManipulator: """ Pure S-expression data manipulation. This class handles S-expression parsing and modification without any knowledge of files or KiCad-specific business logic. It provides clean data...
class SExpressionManipulator: ''' Pure S-expression data manipulation. This class handles S-expression parsing and modification without any knowledge of files or KiCad-specific business logic. It provides clean data structure operations that can be used by higher layers. ''' def __init__(s...
15
14
26
4
15
7
4
0.51
0
8
0
0
12
1
13
13
355
62
194
36
179
99
114
34
100
7
0
2
47
326,774
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sheet_hierarchy_manager.py
circuit_synth.kicad.sheet_hierarchy_manager.SheetHierarchyManager
import json import re import uuid from typing import Dict, List, Optional, Set class SheetHierarchyManager: def __init__(self, test_mode: bool=False): """Initialize SheetHierarchyManager. Args: test_mode: If True, skip strict UUID validation for testing """ self.root: ...
class SheetHierarchyManager: def __init__(self, test_mode: bool=False): '''Initialize SheetHierarchyManager. Args: test_mode: If True, skip strict UUID validation for testing ''' pass def parse_sheet_hierarchy(self, kicad_pro_path: str) -> None: '''Parse sh...
22
15
25
4
14
7
4
0.57
0
9
1
0
15
4
15
15
480
96
246
68
224
141
215
65
193
18
0
4
85
326,775
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/sheet_hierarchy_manager.py
circuit_synth.kicad.sheet_hierarchy_manager.SheetNode
import uuid from dataclasses import dataclass from typing import Dict, List, Optional, Set @dataclass class SheetNode: uuid: str name: str parent: Optional['SheetNode'] children: List['SheetNode'] path: str tstamps: str
@dataclass class SheetNode: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
7
0
7
1
6
0
7
1
6
0
0
0
0
326,776
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/symbol_lib_parser.py
circuit_synth.kicad.symbol_lib_parser.GraphicElement
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set @dataclass class GraphicElement: """Represents a graphical shape in a KiCad symbol (rectangle, circle, arc, etc.).""" shape_type: str start: Optional[List[float]] end: Optional[List[float]] mid: Optional[List...
@dataclass class GraphicElement: '''Represents a graphical shape in a KiCad symbol (rectangle, circle, arc, etc.).''' def to_simple_dict(self) -> Dict[str, Any]: '''Convert this graphical element into a JSON-serializable dict.''' pass @classmethod def from_simple_dict(cls, d: Dict[str, ...
5
3
13
0
12
4
1
0.43
0
2
0
0
1
0
2
2
41
3
35
10
31
15
14
9
11
1
0
0
2
326,777
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/symbol_lib_parser.py
circuit_synth.kicad.symbol_lib_parser.KicadSymbol
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set from copy import deepcopy @dataclass class KicadSymbol: """ Represents a KiCad symbol with its properties, pins, graphics, etc. Now also stores 'pin_numbers' mode and a 'pin_names_offset' float if found. """ ...
@dataclass class KicadSymbol: ''' Represents a KiCad symbol with its properties, pins, graphics, etc. Now also stores 'pin_numbers' mode and a 'pin_names_offset' float if found. ''' def merge_parent(self, parent: 'KicadSymbol') -> None: ''' Merge parent's attributes into this symbol...
6
4
29
3
21
6
5
0.34
0
5
2
0
2
0
3
3
110
13
74
23
69
25
44
22
40
11
0
2
14
326,778
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/symbol_lib_parser.py
circuit_synth.kicad.symbol_lib_parser.KicadSymbolParser
from circuit_synth.core.exception import LibraryNotFound, ParseError, SymbolNotFoundError import os from typing import Any, Dict, List, Optional, Set import sexpdata import uuid class KicadSymbolParser: """Singleton parser for KiCad .kicad_sym libraries with caching.""" _instance = None _initialized = Fals...
class KicadSymbolParser: '''Singleton parser for KiCad .kicad_sym libraries with caching.''' def __init__(self): pass def _initialize(self): pass def __new__(cls): pass def _parse_file(self, filepath: str) -> Dict[str, KicadSymbol]: ''' Parse entire .kica...
17
13
29
3
22
6
6
0.26
0
17
7
0
16
0
16
16
486
57
348
111
326
92
249
104
231
24
0
5
101
326,779
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/symbol_lib_parser.py
circuit_synth.kicad.symbol_lib_parser.KicadSymbolPin
from dataclasses import dataclass, field from typing import Any, Dict, List, Optional, Set @dataclass class KicadSymbolPin: """Represents a pin in a KiCad symbol.""" pin_id: str name: str number: str function: str unit: int x: float y: float length: float orientation: float ...
@dataclass class KicadSymbolPin: '''Represents a pin in a KiCad symbol.''' def to_simple_dict(self) -> Dict[str, Any]: '''Convert this pin into a JSON-serializable dict.''' pass @classmethod def from_simple_dict(cls, d: Dict[str, Any]) -> 'KicadSymbolPin': '''Recreate a pin obje...
5
3
8
0
7
1
1
0.16
0
2
0
0
1
0
2
2
31
3
25
4
21
4
14
3
11
1
0
0
2
326,780
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/kicad/symbol_lib_parser_manager.py
circuit_synth.kicad.symbol_lib_parser_manager.SharedParserManager
import threading from .symbol_lib_parser import KicadSymbol, KicadSymbolParser from typing import Dict, Optional class SharedParserManager: """ Singleton manager for KiCad symbol parser. """ _parser_instance: Optional[KicadSymbolParser] = None _lock = threading.Lock() _test_mode: bool = False ...
class SharedParserManager: ''' Singleton manager for KiCad symbol parser. ''' @classmethod def get_parser(cls, test_mode: bool=False) -> KicadSymbolParser: ''' Get or create the shared parser instance. If test_mode is True, we avoid reading from system env, or you can ...
5
3
11
0
7
4
2
0.55
0
2
1
0
0
0
2
2
34
3
20
8
15
11
16
6
13
2
0
2
3
326,781
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/api_client.py
circuit_synth.manufacturing.digikey.api_client.DigiKeyAPIClient
from typing import Any, Dict, List, Optional import time import requests import json class DigiKeyAPIClient: """ Direct API client for DigiKey Product Information API v4. Implements OAuth2 authentication and provides methods for: - Product search by keyword - Product details lookup - Batch pro...
class DigiKeyAPIClient: ''' Direct API client for DigiKey Product Information API v4. Implements OAuth2 authentication and provides methods for: - Product search by keyword - Product details lookup - Batch product queries - Pricing and availability data ''' def __init__(self, confi...
12
12
23
4
14
5
3
0.4
0
6
1
0
11
6
11
11
275
51
160
55
135
64
105
35
93
4
0
3
29
326,782
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/api_client.py
circuit_synth.manufacturing.digikey.api_client.DigiKeyConfig
from pathlib import Path from dataclasses import dataclass import os from typing import Any, Dict, List, Optional @dataclass class DigiKeyConfig: """Configuration for DigiKey API access.""" client_id: str client_secret: str sandbox_mode: bool = False cache_dir: Optional[Path] = None token_refre...
@dataclass class DigiKeyConfig: '''Configuration for DigiKey API access.''' @classmethod def from_environment(cls) -> 'DigiKeyConfig': '''Create configuration from environment variables.''' pass
4
2
19
2
16
1
2
0.13
0
2
1
0
0
0
1
1
29
4
23
9
19
3
11
8
8
2
0
0
2
326,783
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/cache.py
circuit_synth.manufacturing.digikey.cache.DigiKeyCache
import hashlib from pathlib import Path import json import time from typing import Any, Dict, List, Optional class DigiKeyCache: """ Cache manager for DigiKey API responses. Reduces API calls and improves response times by caching: - Product search results - Product details - Pricing and avail...
class DigiKeyCache: ''' Cache manager for DigiKey API responses. Reduces API calls and improves response times by caching: - Product search results - Product details - Pricing and availability data ''' def __init__(self, cache_dir: Optional[Path]=None, ttl_seconds: int=3600): '...
12
12
16
2
9
4
2
0.52
0
8
0
0
11
4
11
11
191
37
101
39
87
53
75
33
63
5
0
2
22
326,784
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/component_search.py
circuit_synth.manufacturing.digikey.component_search.DigiKeyComponent
from dataclasses import dataclass from typing import Any, Dict, List, Optional, Tuple @dataclass class DigiKeyComponent: """Represents a DigiKey component with all relevant information.""" digikey_part_number: str manufacturer_part_number: str manufacturer: str description: str quantity_availab...
@dataclass class DigiKeyComponent: '''Represents a DigiKey component with all relevant information.''' @property def is_in_stock(self) -> bool: '''Check if component is in stock.''' pass @property def manufacturability_score(self) -> float: ''' Calculate manufacturabi...
6
3
23
3
15
5
7
0.32
0
2
0
0
2
0
2
2
79
13
50
10
45
16
40
8
37
13
0
1
14
326,785
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/component_search.py
circuit_synth.manufacturing.digikey.component_search.DigiKeyComponentSearch
from .cache import get_digikey_cache from .api_client import DigiKeyAPIClient from typing import Any, Dict, List, Optional, Tuple class DigiKeyComponentSearch: """ High-level component search interface for DigiKey. Provides intelligent component recommendations with caching, KiCad integration, and man...
class DigiKeyComponentSearch: ''' High-level component search interface for DigiKey. Provides intelligent component recommendations with caching, KiCad integration, and manufacturability scoring. ''' def __init__(self, use_cache: bool=True): ''' Initialize the component search....
7
7
46
7
30
10
6
0.34
0
8
2
0
6
3
6
6
291
48
183
60
164
62
99
45
92
14
0
3
33
326,786
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/digikey/config_manager.py
circuit_synth.manufacturing.digikey.config_manager.DigiKeyConfigManager
import os from typing import Optional import json from pathlib import Path class DigiKeyConfigManager: """ Manages DigiKey API configuration with multiple source support. Configuration precedence (highest to lowest): 1. Direct parameters (programmatic) 2. Environment variables 3. User config f...
class DigiKeyConfigManager: ''' Manages DigiKey API configuration with multiple source support. Configuration precedence (highest to lowest): 1. Direct parameters (programmatic) 2. Environment variables 3. User config file (~/.circuit_synth/digikey_config.json) 4. Project .env file (if pyth...
15
8
36
6
22
9
4
0.42
0
8
0
0
0
0
7
7
278
51
161
52
133
68
111
29
102
8
0
4
30
326,787
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/cache.py
circuit_synth.manufacturing.jlcpcb.cache.JLCPCBCache
import json from typing import Any, Dict, List, Optional import time from pathlib import Path import hashlib class JLCPCBCache: """ Cache system for JLCPCB search results. Caches component search results with timestamp-based expiration to reduce API calls and improve search performance. """ d...
class JLCPCBCache: ''' Cache system for JLCPCB search results. Caches component search results with timestamp-based expiration to reduce API calls and improve search performance. ''' def __init__(self, cache_dir: Optional[Path]=None, cache_duration_hours: int=24): ''' Initializ...
10
10
18
3
10
5
3
0.58
0
9
0
0
9
3
9
9
175
34
90
33
78
52
76
27
66
7
0
3
24
326,788
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/fast_search.py
circuit_synth.manufacturing.jlcpcb.fast_search.FastJLCSearch
from .jlc_web_scraper import JlcWebScraper import time from typing import Dict, List, Optional, Tuple from .cache import JLCPCBCache, get_jlcpcb_cache class FastJLCSearch: """ Optimized JLCPCB search implementation. Features: - Direct search without agent overhead - Intelligent caching to avoid re...
class FastJLCSearch: ''' Optimized JLCPCB search implementation. Features: - Direct search without agent overhead - Intelligent caching to avoid repeated searches - Fast filtering and sorting - Minimal token usage (no LLM required) ''' def __init__(self, cache_hours: int=24): ...
16
16
21
3
13
5
3
0.46
0
10
3
0
15
4
15
15
336
58
194
81
154
90
127
54
111
6
0
3
45
326,789
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/fast_search.py
circuit_synth.manufacturing.jlcpcb.fast_search.FastSearchResult
from dataclasses import dataclass from typing import Dict, List, Optional, Tuple @dataclass class FastSearchResult: """Lightweight search result optimized for speed.""" part_number: str manufacturer_part: str description: str stock: int price: float package: str basic_part: bool mat...
@dataclass class FastSearchResult: '''Lightweight search result optimized for speed.''' def to_dict(self) -> Dict: '''Convert to dictionary for JSON serialization.''' pass
3
2
12
0
11
1
1
0.25
0
0
0
0
1
0
1
1
24
2
20
2
18
5
11
2
9
1
0
0
1
326,790
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/jlc_parts_lookup.py
circuit_synth.manufacturing.jlcpcb.jlc_parts_lookup.JlcPartsInterface
import requests import time import os from typing import Any, Callable, Dict, List, Optional class JlcPartsInterface: """ Interface to JLC PCB parts database for component recommendations. Adapted from yaqwsx/jlcparts for circuit-synth integration. """ def __init__(self, key: Optional[str]=None, ...
class JlcPartsInterface: ''' Interface to JLC PCB parts database for component recommendations. Adapted from yaqwsx/jlcparts for circuit-synth integration. ''' def __init__(self, key: Optional[str]=None, secret: Optional[str]=None) -> None: ''' Initialize JLC Parts interface. ...
6
6
32
4
22
6
5
0.3
0
6
0
0
5
4
5
5
173
27
112
31
102
34
68
24
62
8
0
5
23
326,791
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/jlc_web_scraper.py
circuit_synth.manufacturing.jlcpcb.jlc_web_scraper.JlcWebScraper
from bs4 import BeautifulSoup from typing import Any, Dict, List, Optional import requests class JlcWebScraper: """ Web scraper for JLCPCB component search without API keys. Uses the public search interface to get component data. """ def __init__(self, delay_seconds: float=1.0): """ ...
class JlcWebScraper: ''' Web scraper for JLCPCB component search without API keys. Uses the public search interface to get component data. ''' def __init__(self, delay_seconds: float=1.0): ''' Initialize web scraper. Args: delay_seconds: Delay between requests t...
10
10
38
4
25
8
4
0.34
0
8
0
0
9
2
9
9
353
46
230
47
208
79
87
30
77
9
0
6
37
326,792
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/smart_component_finder.py
circuit_synth.manufacturing.jlcpcb.smart_component_finder.ComponentRecommendation
from dataclasses import dataclass @dataclass class ComponentRecommendation: """A complete component recommendation with all necessary information.""" jlc_part_number: str manufacturer_part: str manufacturer: str description: str stock_quantity: int price: str library_type: str kicad...
@dataclass class ComponentRecommendation: '''A complete component recommendation with all necessary information.''' pass
2
1
0
0
0
0
0
0.27
0
0
0
0
0
0
0
0
22
3
15
1
14
4
15
1
14
0
0
0
0
326,793
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/jlcpcb/smart_component_finder.py
circuit_synth.manufacturing.jlcpcb.smart_component_finder.SmartComponentFinder
from .jlc_web_scraper import get_component_availability_web, search_jlc_components_web from typing import Any, Dict, List, Optional, Tuple class SmartComponentFinder: """ Intelligent component finder that combines JLCPCB data with KiCad compatibility. Makes it incredibly easy for users to find manufactura...
null
19
19
24
3
17
4
4
0.25
0
7
1
0
18
2
18
18
454
67
312
89
268
79
154
65
133
8
0
2
65
326,794
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/unified_search.py
circuit_synth.manufacturing.unified_search.UnifiedComponent
from dataclasses import dataclass from typing import Any, Dict, List, Optional, Union @dataclass class UnifiedComponent: """Unified component representation across all suppliers.""" supplier: str supplier_part_number: str manufacturer_part_number: str manufacturer: str description: str stoc...
@dataclass class UnifiedComponent: '''Unified component representation across all suppliers.''' @property def availability_score(self) -> float: '''Score based on stock availability.''' pass @property def value_score(self) -> float: '''Combined score of price and availability...
6
3
16
1
13
2
6
0.19
0
1
0
0
2
0
2
2
55
6
42
11
37
8
32
9
29
6
0
2
12
326,795
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/manufacturing/unified_search.py
circuit_synth.manufacturing.unified_search.UnifiedComponentSearch
from typing import Any, Dict, List, Optional, Union class UnifiedComponentSearch: """ Unified search interface for all component suppliers. """ SUPPORTED_SUPPLIERS = ['jlcpcb', 'digikey'] def __init__(self): """Initialize the unified search system.""" self.results_cache = {} d...
class UnifiedComponentSearch: ''' Unified search interface for all component suppliers. ''' def __init__(self): '''Initialize the unified search system.''' pass def search(self, query: str, sources: Union[str, List[str]]='all', min_stock: Optional[int]=None, max_price: Optional[fl...
8
8
34
5
23
5
6
0.23
0
6
1
0
7
1
7
7
249
44
166
56
137
39
103
35
93
18
0
5
42
326,796
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/pcb/footprint_library.py
circuit_synth.pcb.footprint_library.FootprintInfo
from pathlib import Path from datetime import datetime from .types import Arc, Layer, Line, Pad, Property, Text from typing import Any, Dict, List, Optional, Set, Tuple from dataclasses import asdict, dataclass, field @dataclass class FootprintInfo: """Metadata about a footprint (without full parsing).""" libr...
@dataclass class FootprintInfo: '''Metadata about a footprint (without full parsing).''' @property def footprint_type(self) -> str: '''Get footprint type: SMD, THT, or Mixed.''' pass @property def is_smd(self) -> bool: '''Check if footprint is SMD (surface mount).''' ...
10
5
5
0
4
1
2
0.3
0
2
0
0
4
0
4
4
53
10
33
20
24
10
27
16
22
4
0
1
7
326,797
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/pcb/footprint_library.py
circuit_synth.pcb.footprint_library.FootprintLibraryCache
from datetime import datetime from pathlib import Path import os from typing import Any, Dict, List, Optional, Set, Tuple import platform import json import sexpdata from dataclasses import asdict, dataclass, field class FootprintLibraryCache: """ Lazy-loading cache for KiCad footprint libraries. This imp...
class FootprintLibraryCache: ''' Lazy-loading cache for KiCad footprint libraries. This implementation only parses footprint files when they are actually requested, making startup much faster. ''' def __init__(self, cache_dir: Optional[Path]=None): '''Initialize the lazy-loading footpr...
14
13
29
4
21
5
5
0.24
0
11
1
0
12
5
12
12
381
59
265
73
247
63
183
59
169
15
0
6
71
326,798
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/pcb/kicad_cli.py
circuit_synth.pcb.kicad_cli.DRCResult
from dataclasses import dataclass from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union @dataclass class DRCResult: """Result of a DRC (Design Rule Check) operation.""" success: bool violations: List[Dict[str, Any]] warnings: List[Dict[str, Any]] unconnected_items: Lis...
@dataclass class DRCResult: '''Result of a DRC (Design Rule Check) operation.''' @property def total_issues(self) -> int: '''Total number of issues found.''' pass
4
2
3
0
2
1
1
0.22
0
1
0
0
1
0
1
1
13
2
9
4
6
2
8
3
6
1
0
0
1
326,799
circuit-synth/circuit-synth
/Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/circuit-synth_circuit-synth/src/circuit_synth/pcb/kicad_cli.py
circuit_synth.pcb.kicad_cli.KiCadCLI
import platform from pathlib import Path import shutil import subprocess import json import os from typing import Any, Dict, List, Optional, Tuple, Union class KiCadCLI: """ Generic interface to run KiCad CLI commands. Provides both low-level command execution and high-level convenience methods for co...
class KiCadCLI: ''' Generic interface to run KiCad CLI commands. Provides both low-level command execution and high-level convenience methods for common operations like DRC, export, etc. ''' def __init__(self, kicad_cli_path: Optional[str]=None): ''' Initialize KiCad CLI interf...
10
10
49
7
30
12
5
0.43
0
9
3
0
9
1
9
9
456
72
271
89
216
116
115
42
105
8
0
3
42