MCPcopy Index your code
hub / github.com/CarperAI/Code-Pile / CodePile

Class CodePile

codepile/codepile.py:6–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4from codepile.dataset import Dataset
5
6class CodePile(Dataset):
7 def __init__(self, tempdir, target_dir):
8 self.subdatasets = []
9
10 subsets = [
11 StackExchangeDataset
12 ]
13 for d in subsets:
14 self.subdatasets.append(d(tempdir, target_dir))
15
16 def download(self):
17 for d in self.subdatasets:
18 d.scraper.scrape()
19
20 def process(self):
21 for d in self.subdatasets:
22 d.processor.process()
23
24 def merge(self):
25 raise NotImplementedError()
26
27
28def download(args):

Callers 2

downloadFunction · 0.85
processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected