Spaces:
Sleeping
Sleeping
File size: 5,345 Bytes
532e19f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | # π¦ 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**
- **URL:** https://github.com/MSeifert04/iteration_utilities
- **Description:** Fast iterator helpers and utilities
- **Why it's great:** Well-structured with helper function chains
- **Best for:** Medium to high difficulty (nesting-level 4-5)
### 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**
- **URL:** https://github.com/python-humanize/humanize
- **Description:** Human-readable formatting for numbers, dates, file sizes
- **Why it's great:** String manipulation with edge cases
- **Best for:** Medium difficulty
### 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
- **python-slugify** - https://github.com/un33k/python-slugify
- **ftfy** - https://github.com/rspeer/python-ftfy
- **arrow** - https://github.com/arrow-py/arrow
### Data Structures
- **sortedcontainers** - https://github.com/grantjenks/python-sortedcontainers
- **bidict** - https://github.com/jab/bidict
- **cachetools** - https://github.com/tkem/cachetools
### Math/Numbers
- **num2words** - https://github.com/savoirfairelinux/num2words
- **pyparsing** (examples folder) - https://github.com/pyparsing/pyparsing
### File/Path Utilities
- **pathlib2** - https://github.com/jazzband/pathlib2
- **scandir** - https://github.com/benhoyt/scandir
---
## π« 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:
```bash
# 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:
```python
"Short Name - Description": "https://github.com/user/repo",
```
4. Save and restart the application
---
**Last Updated:** May 11, 2026
**Total Preset Repos:** 10
|