legacy-code-challenge-v2 / PRESET_REPOS.md
refaelz's picture
Initial commit for Hugging Face
532e19f
|
Raw History Blame Contribute Delete
5.35 kB

πŸ“¦ Preset GitHub Repositories for Debugging Challenges

This file lists all available preset repositories that are pre-configured and tested for the Legacy Code Challenge system.


βœ… Currently Integrated (Available in Dropdown)

These repositories are already available in the GUI dropdown menu:

1. boltons ⭐ RECOMMENDED

  • URL: https://github.com/mahmoud/boltons
  • Description: Comprehensive utility library with functions for strings, lists, dicts, math, iterators
  • Why it's great: Clean, well-documented code with many primitive-type functions
  • Best for: All difficulty levels

2. more-itertools

  • URL: https://github.com/more-itertools/more-itertools
  • Description: Advanced iterator utilities beyond the standard library
  • Why it's great: Pure Python, many simple functions with clear logic
  • Best for: Medium difficulty (nesting-level 3-4)

3. toolz

  • URL: https://github.com/pytoolz/toolz
  • Description: Functional programming utilities for Python
  • Why it's great: Short, composable functions with minimal dependencies
  • Best for: Low to medium difficulty

4. funcy

  • URL: https://github.com/Suor/funcy
  • Description: Collection manipulation utilities
  • Why it's great: Simple, readable code with good test coverage
  • Best for: All levels

5. iteration_utilities

6. algorithms (python-algorithms)

  • URL: https://github.com/keon/algorithms
  • Description: Classic algorithms implemented in Python
  • Why it's great: Educational code, clear implementations
  • Best for: High difficulty (nesting-level 5-6)

7. binaryornot

  • URL: https://github.com/audreyr/binaryornot
  • Description: Detect if a file is binary or text
  • Why it's great: Small, focused library with file handling
  • Best for: Low difficulty (simple projects)

8. humanize

9. python-dateutil

  • URL: https://github.com/dateutil/dateutil
  • Description: Powerful date/time manipulation library
  • Why it's great: Complex logic with many edge cases
  • Best for: High difficulty (complex logic)

10. inflection

  • URL: https://github.com/jpvanhal/inflection
  • Description: String transformations (pluralize, camelize, etc.)
  • Why it's great: Short functions, string manipulation
  • Best for: Low to medium difficulty

πŸ” Additional Recommended Repositories (To Add)

These repositories would work well but aren't yet added to the dropdown:

String/Text Processing

Data Structures

Math/Numbers

File/Path Utilities


🚫 Not Recommended

Avoid these types of repositories:

❌ Web frameworks (Django, Flask) - Too complex, class-heavy ❌ ML libraries (NumPy, TensorFlow) - External dependencies, compiled code ❌ GUI frameworks (tkinter, PyQt) - Event-driven, hard to test ❌ Network libraries (requests, urllib3) - I/O operations, mocking needed ❌ Database ORMs (SQLAlchemy) - Too many abstractions


🎯 Selection Criteria

A good repository should have:

βœ… Pure Python - No C extensions or compiled code βœ… Primitive types - Functions work with int, str, list, dict βœ… Call chains - Functions that call other helper functions βœ… Minimal dependencies - Stdlib or 1-2 simple deps βœ… Clear logic - Not overly abstract or metaprogramming-heavy βœ… Good structure - Organized modules, not one giant file


πŸ“– How to Use

In GUI Mode:

  1. Launch: python challenge.py
  2. Select "Choose from preset list"
  3. Pick a repository from the dropdown
  4. Click "Start Challenge"

In CLI Mode:

# List all available repos
python challenge.py --list-repos

# Use a preset repo
python challenge.py https://github.com/mahmoud/boltons --name "Alice"

# Custom repo
python challenge.py https://github.com/YOUR/REPO --name "Alice" --nesting-level 4

πŸ”§ Adding New Presets

To add a new preset repository:

  1. Test it first with a custom URL
  2. Edit student_interface.py
  3. Add to PRESET_REPOS dictionary:
    "Short Name - Description": "https://github.com/user/repo",
    
  4. Save and restart the application

Last Updated: May 11, 2026 Total Preset Repos: 10