<commit_before>#!/usr/bin/env python
#coding: utf-8

import sys

from argparse import ArgumentParser, SUPPRESS

# usage
#  git ref b81fe395c0bf28c4be8                         -> ハッシュ[b81fe395c0bf28c4be8]の[hash値]を出力
#  git ref tag                                         -> タグ[tag]の[hash値]を出力
#  git ref -t b81fe395c0bf28c4be8                      -> ハッシュ[b81fe395c0bf28c4be8]の[type値]を出力
#  git ref b81fe395c0bf28c4be8 --file git-todo.py      -> ハッシュ[b81fe395c0bf28c4be8]の[git-todo.py]の[hash値]を出力
#  git ref b81fe395c0bf28c4be8 --cat-file git-todo.py  -> ハッシュ[b81fe395c0bf28c4be8]の[git-todo.py]の[中身]を出力
#  git ref --ls HEAD                                   -> ハッシュ[HEAD]の[ls-tree -r]を表示
#  git ref 

parser = ArgumentParser(prog="git ref",
            description="This script can show refs hash or files easyly.")

parser.add_argument("refarence", action="store",
            help="Please set hash or refarence.\
                  If you not set other options, \
                                    script show full hash value.")

parser.add_argument("-l", "--ls", action="store_true", default=SUPPRESS,
            help="Show all files with hash in commit if you set.")

parser.add_argument("-t", "--type", action="store_true", default=SUPPRESS,
            help="Show type of hash.")

parser.add_argument("-f", "--file", action="store", default=SUPPRESS,
            help="Show file object hash in commit if you set.")

parser.add_argument("-c", "--cat-file", action="store",
            dest="file", default=SUPPRESS,
            help="Show file contents if you set.")
            

if __name__ == "__main__":

    if len(sys.argv) == 1:
        parser.parse_args(["-h"])

    args = parser.parse_args()
    print args
<commit_msg>mistaked english at refarence help<commit_after>#!/usr/bin/env python
#coding: utf-8

import sys

from argparse import ArgumentParser, SUPPRESS

# usage
#  git ref b81fe395c0bf28c4be8                         -> ハッシュ[b81fe395c0bf28c4be8]の[hash値]を出力
#  git ref tag                                         -> タグ[tag]の[hash値]を出力
#  git ref -t b81fe395c0bf28c4be8                      -> ハッシュ[b81fe395c0bf28c4be8]の[type値]を出力
#  git ref b81fe395c0bf28c4be8 --file git-todo.py      -> ハッシュ[b81fe395c0bf28c4be8]の[git-todo.py]の[hash値]を出力
#  git ref b81fe395c0bf28c4be8 --cat-file git-todo.py  -> ハッシュ[b81fe395c0bf28c4be8]の[git-todo.py]の[中身]を出力
#  git ref --ls HEAD                                   -> ハッシュ[HEAD]の[ls-tree -r]を表示
#  git ref 

parser = ArgumentParser(prog="git ref",
            description="This script can show refs hash or files easyly.")

parser.add_argument("refarence", action="store",
            help="Please set hash of refarence.\
                  If you not set other options, \
                                    script show full hash value.")

parser.add_argument("-l", "--ls", action="store_true", default=SUPPRESS,
            help="Show all files with hash in commit if you set.")

parser.add_argument("-t", "--type", action="store_true", default=SUPPRESS,
            help="Show type of hash.")

parser.add_argument("-f", "--file", action="store", default=SUPPRESS,
            help="Show file object hash in commit if you set.")

parser.add_argument("-c", "--cat-file", action="store",
            dest="file", default=SUPPRESS,
            help="Show file contents if you set.")
            

if __name__ == "__main__":

    if len(sys.argv) == 1:
        parser.parse_args(["-h"])

    args = parser.parse_args()
    print args

{'fraction_non_alphanumeric': 0.12775708965912347, 'fraction_numerical': 0.04697794328272701, 'mean_word_length': 2.303689687795648, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2033333', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1235, 'n_words': 268}