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

github.com/CarperAI/Code-Pile @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
32 symbols 82 edges 8 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Code-Pile

pytest

This repository contains the processing scripts to scrape/process the code-pile dataset.

Table of Contents

  • Project Description
  • How to use the Code-Pile (todo)
  • How to Contribute
  • Additional Resources

Project Description

Check out The code pile proposal

The Code-Pile will be released similar to "the pile" as a folder of .jsonl.zst files, see lm-dataformat

How to use the Code-Pile

It's not finished, ask on discord

How to Contribute

Think about the most usefull Code-data for the next generation of textual Code Models.

The most valuable dataset properties (use your own judgment) are: 1. Open License 2. Data quality 3. Dataset size 4. Data variance/variety/nicheness 5. Ease of obtaining/processing

To add a new dataset, open a Issue under given dataset-request template. Gather all the related informations appropriate to it. Use the issue to track.

Check if there is existing Code or someone already working on it: See Additional Resources

  1. Eleuthers Pile V1 Repos
  2. Ask on Carper #code-pile
  3. Ask on Eleuther
  4. Consult the linked Spreadsheets below

Then implement it through the following steps:

  1. Fork this repo
  2. Use the working branch
  3. Read the shared classes in datasets.py and codepile.py
  4. Create mvp/example for your dataset
  5. Create a pull request
  6. Keep building the data-domain specific classes and repeat

Citation Placeholder:

@misc{Code-Pile,
  author = {},
  doi = {},
  month = {},
  title = {},
  url = {https://github.com/CarperAI/Code-Pile},
  version = {},
  year = {2022}
}

Additional Resources

Closely related projects:

Previous work: * [Codeparrot] (https://github.com/huggingface/transformers/tree/main/examples/research_projects/codeparrot) * ...

Core symbols most depended-on inside this repo

scrape
called by 2
codepile/dataset.py
download
called by 1
codepile/codepile.py
process
called by 1
codepile/codepile.py
cli
called by 1
codepile/codepile.py
get_repo
called by 1
codepile/ghtorrent/get_github_repo.py
main
called by 1
codepile/ghtorrent/get_github_repo.py
download
called by 1
codepile/stackexchange/stackexchange.py
merge
called by 0
codepile/codepile.py

Shape

Method 16
Class 11
Function 5

Languages

Python100%

Modules by API surface

codepile/dataset.py15 symbols
codepile/codepile.py8 symbols
codepile/stackexchange/stackexchange.py5 symbols
tests/test_test.py2 symbols
codepile/ghtorrent/get_github_repo.py2 symbols

For agents

$ claude mcp add Code-Pile \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact