プロジェクト
概要
Convert all files in git repository to .txt files. Useful for training LLMs on your codebase.
AI・機械学習計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 0
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルgit2txt
Convert all files in git repository to .txt files. This is useful for training LLMs on your codebase.
How to Use
- Create new .env file by copying example.env
cp example.env .env
- Add necessary fields. The default fields are good to start with.
GIT_PROJECT_DIRECTORY=/path/to/git/repo
IGNORE_FILES=.env,package-lock.json
IGNORE_DIRS=.git,.vscode,node_modules
SAVE_DIRECTORY=training_data
SKIP_EMPTY_FILES=true
- Install dependencies. Using a virtual environment is recommended.
python -m pip install -r requirements.txt
- Run program
python main.py
- You'll see your data files in the
training_data/directory. This will be different if you changed the path viaSAVE_DIRECTORYin.envfile.
Notes
- This program requires Python version 3.6 or later. It uses the f-string formatting technique introduced in Python 3.6.
関連プロジェクトを探す
読み込み中…