VBendas commited on
Commit
89638d5
·
verified ·
1 Parent(s): 1fc79ca

Delete README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -95
README.md DELETED
@@ -1,95 +0,0 @@
1
- # Sample Pack - Expert Python DPO Dataset
2
-
3
- 5 pairs demonstrating dataset quality and variety.
4
-
5
- ---
6
-
7
- ## What's Included
8
-
9
- | Pair | Category | Difficulty | Framework | Symptom |
10
- |------|----------|-----------|-----------|---------|
11
- | 1 | Mutable defaults | Beginner | Celery | Customer B sees Customer A's data |
12
- | 19 | N+1 query | Intermediate | FastAPI + SQLAlchemy | Response time 50ms → 2000ms+ |
13
- | 45 | Deadlock (race condition) | Intermediate | asyncio | Concurrent transfers freeze forever |
14
- | 51 | SQLAlchemy sessions | Intermediate | SQLAlchemy | Data leaks between concurrent requests |
15
- | 53 | Async gather exceptions | Intermediate | asyncio | Only first error visible, others lost |
16
-
17
- ---
18
-
19
- ## How to Evaluate
20
-
21
- ### 1. Run the code (2 minutes)
22
-
23
- ```bash
24
- # Verify all code is valid Python
25
- python3 -c "
26
- import json
27
- with open('sample_5_pairs.jsonl') as f:
28
- for i, line in enumerate(f):
29
- pair = json.loads(line)
30
- print(f'Pair {pair[\"metadata\"][\"pair_id\"]}: {pair[\"metadata\"][\"category\"]} ({pair[\"metadata\"][\"difficulty\"]})')
31
- print('All pairs loaded successfully.')
32
- "
33
- ```
34
-
35
- ### 2. Read one explanation (5 minutes)
36
-
37
- Open `sample_5_pairs.jsonl`, read the `explanation` field for any pair. Check:
38
- - Does it name specific frameworks (FastAPI, not "web framework")?
39
- - Does it explain why tests miss the bug?
40
- - Does it read naturally (not templated)?
41
- - Does it include deployment context?
42
-
43
- ### 3. Compare chosen vs rejected (3 minutes)
44
-
45
- Look at the `chosen` and `rejected` fields side by side:
46
- - Is the bug subtle (not an obvious syntax error)?
47
- - Does the chosen solution have type hints, docstrings, WHY comments?
48
- - Would the rejected code pass a casual code review?
49
-
50
- ---
51
-
52
- ## Schema
53
-
54
- ```json
55
- {
56
- "prompt": "Problem description",
57
- "chosen": "Correct solution code",
58
- "rejected": "Buggy solution code",
59
- "explanation": "250-650 word technical analysis",
60
- "metadata": {
61
- "pair_id": 1,
62
- "category": "mutable_defaults",
63
- "difficulty": "intermediate",
64
- "framework": "Celery",
65
- "scenario_context": { "system_type": "...", "symptom": "...", "why_hard_to_catch": "..." },
66
- "deployment_context": { "triggers_in": [...], "safe_in": [...] },
67
- "prevention_tools": { "linters": [...], "testing_strategy": "..." }
68
- }
69
- }
70
- ```
71
-
72
- ---
73
-
74
- ## Loading with HuggingFace
75
-
76
- ```python
77
- from datasets import load_dataset
78
- dataset = load_dataset('json', data_files='sample_5_pairs.jsonl')
79
- pair = dataset['train'][0]
80
- print(pair['explanation'])
81
- ```
82
-
83
- ---
84
-
85
- ## Full Dataset Pricing
86
-
87
- | Package | Pairs | Non-Exclusive | Exclusive |
88
- |---------|-------|---------------|-----------|
89
- | Starter | 50 | $250 | $750 |
90
- | Growth | 250 | $1,250 | $3,750 |
91
- | Full | 1,000 | $5,000 | $15,000 |
92
-
93
- 7-day money-back guarantee if quality doesn't match this sample.
94
-
95
- **Contact**: [your-email]