<commit_before>
var path = require('path');
var fs = require('fs-extra');

var grammarGen = require('../grammar/grammar-gen.js');

var checksumUtil = require('../utils/checksum-util.js');

var Promise = require('../utils/promise.js');

var getGrammarTargetPath = function(grammarInfo){
	return path.join(grammarInfo.targetDir, grammarInfo.id + '_grammar.js');
}

var getGrammarChecksumPath = function(grammarInfo){<commit_msg>FIX updated gen-grammar file name generation for directories.json 'file' mode<commit_after>
var path = require('path');
var fs = require('fs-extra');

var grammarGen = require('../grammar/grammar-gen.js');

var checksumUtil = require('../utils/checksum-util.js');

var Promise = require('../utils/promise.js');

var getGrammarTargetPath = function(grammarInfo){
	return path.join(grammarInfo.targetDir, grammarInfo.id + '.js');
}

var getGrammarChecksumPath = function(grammarInfo){
{'fraction_non_alphanumeric': 0.16079295154185022, 'fraction_numerical': 0.0, 'mean_word_length': 5.6838235294117645, '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': '4123494', 'n_tokens_mistral': 297, 'n_tokens_neox': 293, 'n_words': 60}