<commit_before>//Third party modules
var util = require('util');
//Application modules
var recipeFinder = require('./lib/RecipeFinder');

if (process.argv.length < 4) {
    console.log('Usage: node ' + process.argv[1] + ' Recipes-JSON-File Fridge-CSV-File-Name');
    process.exit(1);
}
    

var recipesFilePath = process.argv[2];
var fridgeFilePath = process.argv[3];

recipeFinder.run(recipesFilePath, fridgeFilePath, function(err, result){
    if (result) {
        console.log('Found recipe:', util.inspect(result.recipe, {showHidden: true, depth: null})); 
    } else {
        console.log('Order Takeout');
        
    }<commit_msg>Added comments on run.js<commit_after>//Third party modules
var util = require('util');
//Application modules
var recipeFinder = require('./lib/RecipeFinder');

if (process.argv.length < 4) {
    console.log('Usage: node ' + process.argv[1] + ' Recipes-JSON-File Fridge-CSV-File-Name');
    process.exit(1);
}
    

var recipesFilePath = process.argv[2];
var fridgeFilePath = process.argv[3];

//The run function of recipeFinder module will load data from the two files and return results
// through the callback function.
recipeFinder.run(recipesFilePath, fridgeFilePath, function(err, result){
    if (result) {
        console.log('Found recipe:', util.inspect(result.recipe, {showHidden: true, depth: null})); 
    } else {
        console.log('Order Takeout');
        
    }
{'fraction_non_alphanumeric': 0.14507042253521127, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 3.7525083612040135, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1380934', 'n_tokens_mistral': 440, 'n_tokens_neox': 435, 'n_words': 107}