<commit_before>'use strict';

let triggersFile = process.argv[2];
let locale = process.argv[3];
let localeReg = 'regex' + locale[0].toUpperCase() + locale[1];

let fs = require('fs');
let Regexes = require('../resources/regexes.js');
let NetRegexes = require('../resources/netregexes.js');
let Conditions = require('../resources/conditions.js');
let responseModule = require('../resources/responses.js');
let Responses = responseModule.responses;
let Timeline = require('../ui/raidboss/timeline.js');
let commonReplacementExports = require('../ui/raidboss/common_replacement.js');
let commonReplacement = commonReplacementExports.commonReplacement;
let partialCommonReplacementKeys = commonReplacementExports.partialCommonReplacementKeys;

// Hackily assume that any file with a txt file of the same name is a trigger/timeline.
let timelineFile = triggersFile.replace(/\.js$/, '.txt');
if (!fs.existsSync(timelineFile))
  process.exit(-1);
<commit_msg>Add zone id to find_missing_translations<commit_after>'use strict';

let triggersFile = process.argv[2];
let locale = process.argv[3];
let localeReg = 'regex' + locale[0].toUpperCase() + locale[1];

let fs = require('fs');
let Regexes = require('../resources/regexes.js');
let NetRegexes = require('../resources/netregexes.js');
let Conditions = require('../resources/conditions.js');
let ZoneId = require('../resources/zone_id.js');
let responseModule = require('../resources/responses.js');
let Responses = responseModule.responses;
let Timeline = require('../ui/raidboss/timeline.js');
let commonReplacementExports = require('../ui/raidboss/common_replacement.js');
let commonReplacement = commonReplacementExports.commonReplacement;
let partialCommonReplacementKeys = commonReplacementExports.partialCommonReplacementKeys;

// Hackily assume that any file with a txt file of the same name is a trigger/timeline.
let timelineFile = triggersFile.replace(/\.js$/, '.txt');
if (!fs.existsSync(timelineFile))
  process.exit(-1);

{'fraction_non_alphanumeric': 0.147979797979798, 'fraction_numerical': 0.005050505050505051, 'mean_word_length': 5.784246575342466, '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': '1549839', 'n_tokens_mistral': 594, 'n_tokens_neox': 581, 'n_words': 139}