<commit_before>var request = require('request');
var cheerio = require('cheerio');
var config = require('../config');
var Searcher = require('./searcher').Searcher;

var MovieSearcher = function(item) {
	Searcher.call(this, item);
};

MovieSearcher.prototype = Object.create(Searcher.prototype);

function searchFor(item) {
	var searcher = new MovieSearcher(item);
	searcher.search();
}

MovieSearcher.prototype.getSearchTerm = function(item) {
	if (item.searchTerm)
		return item.searchTerm;
	
	return item.name + " " + item.year;<commit_msg>Movie searcher don't add year to search term if it is not defined.<commit_after>var request = require('request');
var cheerio = require('cheerio');
var config = require('../config');
var Searcher = require('./searcher').Searcher;

var MovieSearcher = function(item) {
	Searcher.call(this, item);
};

MovieSearcher.prototype = Object.create(Searcher.prototype);

function searchFor(item) {
	var searcher = new MovieSearcher(item);
	searcher.search();
}

MovieSearcher.prototype.getSearchTerm = function(item) {
	if (item.searchTerm)
		return item.searchTerm;
	
	if (item.year)
		return item.name + " " + item.year;
	else
		return item.name;
{'fraction_non_alphanumeric': 0.14297800338409475, 'fraction_numerical': 0.0, 'mean_word_length': 5.292553191489362, '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': '1318380', 'n_tokens_mistral': 385, 'n_tokens_neox': 390, 'n_words': 86}