<commit_before>from __future__ import unicode_literals, print_function
import os
import tempfile

from ..exceptions import GitError
from ..git import get_issue


def prepare_parser(parser):
    parser.add_argument('args', nargs='*')


def command(args):
    try:
        issue_id = get_issue()
        issue_prefix = '{} '.format(issue_id)
    except GitError:
        issue_prefix = ''

    with tempfile.NamedTemporaryFile() as f:
        f.write(issue_prefix)
        f.flush()
        cmd_args = ['git', 'commit', '-F']
        cmd_args.append(f.name)
        cmd_args.extend(args)
        print(cmd_args)
        os.system(' '.join(cmd_args))
<commit_msg>using --template in commit<commit_after>from __future__ import unicode_literals, print_function
import os
import tempfile

from ..exceptions import GitError
from ..git import get_issue


def prepare_parser(parser):
    parser.add_argument('args', nargs='*')


def command(args):
    try:
        issue_id = get_issue()
        issue_prefix = '{} '.format(issue_id)
    except GitError:
        issue_prefix = ''

    with tempfile.NamedTemporaryFile() as f:
        f.write(issue_prefix)
        f.flush()
        cmd_args = ['git', 'commit']
        cmd_args.extend(args)
        cmd_args.append('--template')
        cmd_args.append(f.name)
        os.system(' '.join(cmd_args))

{'fraction_non_alphanumeric': 0.12005965697240865, 'fraction_numerical': 0.0, 'mean_word_length': 2.889855072463768, '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': '7367805', 'n_tokens_mistral': 427, 'n_tokens_neox': 418, 'n_words': 94}