Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code-analysis/baselines/utils/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def preprocess_and_save(args):



cache_dir = args.cache_dir
# Expand ~ and convert to absolute path to avoid Windows symlink issues
cache_dir = os.path.abspath(os.path.expanduser(args.cache_dir))
os.environ["XDG_CACHE_HOME"] = cache_dir
if not os.path.exists(cache_dir):
os.makedirs(cache_dir)
Expand Down
3 changes: 2 additions & 1 deletion code-detection/baselines/utils/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def preprocess_and_save(args):



cache_dir = args.cache_dir
# Expand ~ and convert to absolute path to avoid Windows symlink issues
cache_dir = os.path.abspath(os.path.expanduser(args.cache_dir))
os.environ["XDG_CACHE_HOME"] = cache_dir
if not os.path.exists(cache_dir):
os.makedirs(cache_dir)
Expand Down
39 changes: 24 additions & 15 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
# Core deep learning and AI libraries
torch
transformers
accelerate
datasets
openai
torch>=2.0.0
transformers>=4.30.0
accelerate>=0.20.0
datasets>=2.12.0
openai>=0.27.0

# HuggingFace ecosystem
huggingface-hub>=0.15.0
sentencepiece>=0.1.99
protobuf>=3.20.0
safetensors>=0.3.0

# Scientific computing
numpy
scipy
scikit-learn
numpy>=1.24.0
scipy>=1.10.0
scikit-learn>=1.2.0

# Data processing and analysis
pandas
matplotlib
seaborn
pandas>=2.0.0
matplotlib>=3.7.0
seaborn>=0.12.0

# Progress bars and logging
tqdm
loguru
tqdm>=4.65.0
loguru>=0.7.0

# Code parsing
tree-sitter
tree-sitter>=0.20.0

# Web requests (for API calls)
requests
requests>=2.28.0

# Table formatting
prettytable>=3.7.0