|
Download code/bad005.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/7fe6853bcbe998c7aec3aa0f7086f584cc091586/code/bad005.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@7fe6853bcbe998c7aec3aa0f7086f584cc091586/code/bad005.jsonl
-
curl -L -o bad005.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/7fe6853bcbe998c7aec3aa0f7086f584cc091586/code/bad005.jsonl
2.07 kB
| {"type": "session", "harness": "deepseek-harness", "id": "bad005", "name": "Bad Git and version control habits"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "What are bad Git and version control habits?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "**Commit Habits:**\n```bash\n# Bad commit messages\ngit commit -m \"fix\"\ngit commit -m \"stuff\"\ngit commit -m \"WIP\"\ngit commit -m \"asdfasdf\"\n\n# Good commit messages\ngit commit -m \"fix: handle null user in login flow\"\ngit commit -m \"feat: add password reset endpoint\"\ngit commit -m \"refactor: extract validation logic\"\n```\n\n**Branching Mistakes:**\n- Direct commits to main\n- Long-lived feature branches (merge hell)\n- Not pulling before pushing\n- Force pushing shared branches\n\n**Bad Practices:**\n```bash\n# Bad: committing generated files\ngit add .\ngit commit -m \"add everything\"\n\n# Bad: committing secrets\ngit add .env\ngit commit -m \"add config\"\n\n# Bad: giant commits\n# 50 files changed, 10,000 insertions\n```\n\n**Good Practices:**\n```bash\n# Use .gitignore\nnode_modules/\n.env\n*.pyc\n__pycache__/\n\n# Small, focused commits\ngit add src/auth.py\ngit commit -m \"fix: validate email format\"\n\n# Use .gitignore-template\n# Use PRs/code review\n# Write meaningful PR descriptions\n```\n\n**Merge Conflicts:**\n- Don't ignore conflicts\n- Understand both sides before resolving\n- Test after resolving\n- Communicate with team\n\n**Tagging Releases:**\n```bash\n# Bad: no tags\n# Good: semantic versioning\ngit tag -a v1.0.0 -m \"Release 1.0.0\"\ngit tag -a v1.1.0 -m \"Add user settings\"\n```"}} | |