tinycodinglm / reason /reason-0090.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
2.2 kB
opencode trace
System 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 c...

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.

User

Explain fallacies reasoning with concrete examples and common pitfalls. Include a runnable code example with its expected output.

Assistant

1. Ad Hominem: Attack the person, not the argument.
"You're a beginner, so your code review is wrong."

2. Straw Man: Misrepresent opponent's argument.
"You want code reviews? So you don't trust anyone?"

3. Appeal to Authority: Citing irrelevant authority.
"Einstein failed math, so math isn't important."

4. Slippery Slope: Assuming chain of events without justification.
"If we allow one shortcut, soon we'll have no standards."

5. False Dichotomy: Only two options when more exist.
"Either ship fast or ship perfect."

6. Post Hoc: A after B doesn't mean A caused by B.
"I deployed on Friday, and the server crashed. Don't deploy Fridays."

7. Composition Fallacy: What's true for parts is true for whole.
"Each module is simple, so the system is simple."

python
# Detecting fallacies in arguments (simplified)
fallacy_indicators = {
    'ad_hominem': ['you are', 'you\'re a', 'what do you know'],
    'straw_man': ['so you\'re saying', 'you want to', 'your position is'],
    'appeal_authority': ['expert says', 'studies show', 'everyone knows'],
    'slippery_slope': ['next thing', 'then we\'ll', 'where does it end'],
    'false_dichotomy': ['either.*or', 'only two', 'no other option'],
    'post_hoc': ['after.*therefore', 'since.*caused', 'happened after'],
    'composition': ['each.*therefore all', 'every part'],
}