<commit_before>import praw
import argparse

parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.')
parser.add_argument('--sub', required=False, default='all', help='Subreddit name (default: `all`)')
parser.add_argument('--limit', type=int, required=False, default=100, help='Post limit (default: 100)')
args = parser.parse_args()

r = praw.Reddit(user_agent='stream only self posts from a sub by /u/km97')
posts = [post for post in r.get_subreddit(args.sub).get_hot(limit=args.limit) if post.is_self]

for post in posts:
    print("Title:", post.title)
    print("Score: {} | Comments: {}".format(post.score, post.num_comments))
    print()
    print(post.selftext.replace('**', '').replace('*', ''))
    print()
    print("Link:", post.permalink)
    print('=' * 30)<commit_msg>Update argparse help msgs<commit_after>import praw
import argparse

parser = argparse.ArgumentParser(description='Stream self posts from any subreddit.')
parser.add_argument('-sub', required=False, default='all', help='Subreddit name (default=\'all\')')
parser.add_argument('-limit', required=False, default=100, help='Post limit (default=100, max=1000)', type=int)
args = parser.parse_args()

r = praw.Reddit(user_agent='stream only self posts from a sub by /u/km97')
posts = [post for post in r.get_subreddit(args.sub).get_hot(limit=args.limit) if post.is_self]

for post in posts:
    print("Title:", post.title)
    print("Score: {} | Comments: {}".format(post.score, post.num_comments))
    print()
    print(post.selftext.replace('**', '').replace('*', ''))
    print()
    print("Link:", post.permalink)
    print('=' * 30)
{'fraction_non_alphanumeric': 0.17560975609756097, 'fraction_numerical': 0.014634146341463415, 'mean_word_length': 5.385214007782102, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3071256', 'n_tokens_mistral': 550, 'n_tokens_neox': 536, 'n_words': 129}