<commit_before>from cinema.movie import Movie
import sys

if len(sys.argv) != 2:
    print "Usage:\n \tpython example.py {MOVIE_NAME}\n\n" \
          "Example:\n \tpython example.py 'A Separation'\n\n" \
          "You can also specify the movie's production year, like:\n" \
          "\tpython example.py 'Shawshank Redemption 1994'\n"
    exit()

movie_name = sys.argv[1].strip()
movie = Movie(movie_name)
print("Title: {}".format(movie.title))
print("Director: {}".format(movie.directors))
print("Country: {}".format(movie.country))
print("Awards: {}".format(movie.awards))
print("Genre: {}".format(movie.genre))
print("IMDB Rating: {}".format(movie.imdb_rating))<commit_msg>Upated the example<commit_after>from cinema.movie import Movie, MovieNotFound
import sys

if len(sys.argv) != 2:
    print "Usage:\n \tpython example.py {MOVIE_NAME}\n\n" \
          "Example:\n \tpython example.py 'A Separation'\n\n" \
          "You can also specify the movie's production year, like:\n" \
          "\tpython example.py 'Shawshank Redemption 1994'\n"
    exit()

movie_name = sys.argv[1].strip()

try:
    movie = Movie(movie_name)
    print("{} ({})".format(movie.title, movie.year))
    print("Awards: {}".format(movie.awards))
    print("IMDB Rating: {}/10".format(movie.imdb_rating))
    print("Tomato Meter: {}/100".format(movie.tomatometer))
    print("Meta Score: {}/100".format(movie.metascore))
    print("Director: {}".format(", ".join(movie.directors)))
    print("Cast: {}".format(", ".join(movie.cast)))
    print("Genre: {}".format(", ".join(movie.genre)))
    print("Country: {}".format(", ".join(movie.country)))
    print("Writer: {}".format(", ".join(movie.writers)))
    print("Language: {}".format(", ".join(movie.language)))
    print("Runtime: {}".format(movie.runtime))
    print("Released: {}".format(movie.released))
    print("Rated: {}".format(movie.rated))
    print("IMDB ID: {}".format(movie.imdb_id))
    print("Plot: {}".format(movie.plot))
except MovieNotFound:
    print("No movie found!")


{'fraction_non_alphanumeric': 0.20246913580246914, 'fraction_numerical': 0.009876543209876543, 'mean_word_length': 4.027295285359801, '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': '4357266', 'n_tokens_mistral': 725, 'n_tokens_neox': 673, 'n_words': 140}