<commit_before>import argparse
import fnmatch
import os
import sys

from identify import identify
from confirm import confirm
from keywords import subtitle_extensions, video_extensions

def movienamer(movie):
    directory = '/'.join(movie.split('/')[:-1])
    filename, extension = os.path.splitext(os.path.basename(movie))

    results = identify(filename, directory)
    if len(results) == 0:
        print 'No results found. Skipping movie file'
        return False

    action = confirm(results, filename, extension)

    if action == 'SKIP':
        print 'Skipping movie file'
        return False
    elif action == 'QUIT':
        print 'Exiting movienamer'
        sys.exit()
    else:
        i = int(action)
        result = results[i-1]

        if directory == '':
            directory = '.'

        dest = (directory + '/' +
                result['title'] +
                ' [' + result['year'] + ']' +
                extension)
<commit_msg>Add extra newline at end of print statements<commit_after>import argparse
import fnmatch
import os
import sys

from identify import identify
from confirm import confirm
from keywords import subtitle_extensions, video_extensions

def movienamer(movie):
    directory = '/'.join(movie.split('/')[:-1])
    filename, extension = os.path.splitext(os.path.basename(movie))

    results = identify(filename, directory)
    if len(results) == 0:
        print 'No results found. Skipping movie file\n'
        return False

    action = confirm(results, filename, extension)

    if action == 'SKIP':
        print 'Skipping movie file\n'
        return False
    elif action == 'QUIT':
        print 'Exiting movienamer'
        sys.exit()
    else:
        i = int(action)
        result = results[i-1]

        if directory == '':
            directory = '.'

        dest = (directory + '/' +
                result['title'] +
                ' [' + result['year'] + ']' +
                extension)

{'fraction_non_alphanumeric': 0.11434405308831036, 'fraction_numerical': 0.0030627871362940277, 'mean_word_length': 2.2885906040268456, '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': '612261', 'n_tokens_mistral': 557, 'n_tokens_neox': 532, 'n_words': 159}