<commit_before>import requests
from templates.text import TextTemplate

def process(input, entities):
    output = {}
    try:
        movie = entities['movie'][0]['value']
        r = requests.get('http://www.omdbapi.com/?t=' + movie + '&plot=full&r=json')
        data = r.json()
        output['input'] = input
        template = TextTemplate()
        template.set_text(data['Title'] + '\nPlot: ' + data['Plot'])
        template.set_post_text('\nIMDb Rating: ' + data['imdbRating'])
        output['output'] = template.get_message()
        output['success'] = True
    except:
        output['success'] = False
    return output
<commit_msg>Close #32 (#33)<commit_after>import requests
from templates.text import TextTemplate

def process(input, entities):
    output = {}
    try:
        movie = entities['movie'][0]['value']
        r = requests.get('http://www.omdbapi.com/?t=' + movie + '&plot=full&r=json')
        data = r.json()
        output['input'] = input
        template = TextTemplate()
        template.set_text(data['Title'] + '\nPlot: ' + data['Plot'])
        template.set_post_text('\nIMDb Rating: ' + data['imdbRating'] + '\nIMDb Link: http://www.imdb.com/title/' + data['imdbID'])
        output['output'] = template.get_message()
        output['success'] = True
    except:
        output['success'] = False
    return output

{'fraction_non_alphanumeric': 0.17022844509948415, 'fraction_numerical': 0.004421518054532056, 'mean_word_length': 2.9248554913294798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '3352906', 'n_tokens_mistral': 420, 'n_tokens_neox': 409, 'n_words': 82}