<commit_before>from __future__ import print_function, division, absolute_import

import unittest
import gitnl


class GitnlTestCase(unittest.TestCase):
    """Tests from 'gitnl.py'."""

    def test_push_remotename_branchfrom(self):
        desired = 'push remotename branchfrom'
        actual = gitnl.parse_to_git('push my branch branchfrom to a remote called remotename')
        self.assertEqual(actual, desired)

    def test_rename_branch(self):
        desired = 'branch -m old_branch new_branch'
        actual = gitnl.parse_to_git('branch rename branch old_branch to new_branch')
        self.assertEqual(actual, desired)

if __name__ == '__main__':
    unittest.main()<commit_msg>rename method<commit_after>from __future__ import print_function, division, absolute_import

import unittest
import gitnl


class GitnlTestCase(unittest.TestCase):
    """Tests from 'gitnl.py'."""

    def test_push_remotename_branchfrom(self):
        desired = 'push remotename branchfrom'
        actual = gitnl.parse_to_git('push my branch branchfrom to a remote called remotename')
        self.assertEqual(actual, desired)

    def test_rename_branch_locally(self):
        desired = 'branch -m old_branch new_branch'
        actual = gitnl.parse_to_git('branch rename branch old_branch to new_branch')
        self.assertEqual(actual, desired)

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.08645533141210375, 'fraction_numerical': 0.0, 'mean_word_length': 4.069343065693431, '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': '2522570', 'n_tokens_mistral': 405, 'n_tokens_neox': 403, 'n_words': 106}