<commit_before>function ddg_spice_imdb(movie) {

    // Validity check
    if (movie['Response'] == 'True') {
        items = new Array();
        items[0] = new Array();
    
        // Main content and title
        items[0]['a'] = get_snippet(movie);
        items[0]['h'] = movie['Title'] + ' (' + movie['Year'] + ')';

        // Source name and url of the imdb page
        items[0]['s'] = 'IMDB';
        items[0]['u'] = 'http://www.imdb.com/title/' + movie['imdbID'];

        // Render
        nra(items);
    } 
}    

function get_snippet(movie) {
    var snippet, div;
    var space = "&nbsp;&nbsp;&nbsp;";
    
    snippet = d.createElement('span');

    // Rating, Runtime and IMDB Rating
    div_rating = d.createElement('div');
    div_rating.innerHTML = space + movie['Rated'];
    div_rating.innerHTML += space + movie['Runtime'];
    div_rating.innerHTML+= space + "<big><b>" + movie['imdbRating'] + "</b></big>";
    snippet.appendChild(div_rating);

    // Movie plot
    div_plot = d.createElement('div');
    div_plot.innerHTML = movie['Plot'];
    snippet.appendChild(div_plot);

    // Director, Writer and Actors
    div_actors = d.createElement('div');
    div_actors.innerHTML = "<b>Director(s):</b>" + space + movie['Director'] + "<br />";
    div_actors.innerHTML += "<b>Writer(s):</b>" + space + movie['Writer'] + "<br />";
    div_actors.innerHTML += "<b>Star(s):</b>" + space + movie['Actors'];
    snippet.appendChild(div_actors);<commit_msg>Layout modified. Similar to RT spice, removed bold.<commit_after>function ddg_spice_imdb(movie) {

    // Validity check
    if (movie['Response'] == 'True') {
        items = new Array();
        items[0] = new Array();
    
        // Main content and title
        items[0]['a'] = get_snippet(movie);
        items[0]['h'] = '<b>' + movie['Title'] + '</b>' + ' (' + movie['Year'] + ')';

        // Source name and url of the imdb page
        items[0]['s'] = 'IMDB';
        items[0]['u'] = 'http://www.imdb.com/title/' + movie['imdbID'];

        // Render
        nra(items);
    } 
}    

function get_snippet(movie) {
    var snippet, div;
    var space = "&nbsp;&nbsp;&nbsp;";
    
    snippet = d.createElement('span');

    // Rating, Runtime and IMDB Rating
    div_rating = d.createElement('div');
    div_rating.innerHTML = space + movie['Rated'];
    div_rating.innerHTML+= space + "<big>" + movie['imdbRating'] + "</big>";
    snippet.appendChild(div_rating);

    // Movie plot and actors
    div_plot = d.createElement('div');
    div_plot.innerHTML = movie['Plot'];
    div_plot.innerHTML += " Directed by <i>" + movie['Director'] + "</i>, ";
    div_plot.innerHTML += "starring <i>" + movie['Actors'] + "</i>.";
    
    snippet.appendChild(div_plot);
{'fraction_non_alphanumeric': 0.194757917728431, 'fraction_numerical': 0.0036403349108117948, 'mean_word_length': 2.806094182825485, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3188230', 'n_tokens_mistral': 912, 'n_tokens_neox': 879, 'n_words': 185}