MCPcopy Create free account
hub / github.com/PrathamLearnsToCode/paper2code / __len__

Function __len__

skills/paper2code/scaffolds/data_template.py:73–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 raise NotImplementedError("Implement preprocessing per §{{SECTION}}")
72
73 def __len__(self) -> int:
74 return len(self.samples)
75
76 def __getitem__(self, idx: int) -> Dict[str, torch.Tensor]:
77 """Load and preprocess a single sample.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected