<commit_before>var totallyHarmlessString = '636f6e736f6c652e6c6f672827636f646520696e6a656374696f6e2729';
eval(Buffer.from(totallyHarmlessString, 'hex').toString()); // NOT OK: eval("console.log('code injection')")
eval(totallyHarmlessString);                                // OK: throws parse error

var test = "0123456789";
try {
  eval(test+"n"); // OK, but currently flagged
  console.log("Bigints supported.");
} catch(e) {
  console.log("Bigints not supported.");
}

require('babeface'); // OK<commit_msg>update inconsistency comment for CWE-506<commit_after>var totallyHarmlessString = '636f6e736f6c652e6c6f672827636f646520696e6a656374696f6e2729';
eval(Buffer.from(totallyHarmlessString, 'hex').toString()); // NOT OK: eval("console.log('code injection')")
eval(totallyHarmlessString);                                // OK: throws parse error

var test = "0123456789";
try {
  eval(test+"n"); // OK, but currently flagged [INCONSISTENCY]
  console.log("Bigints supported.");
} catch(e) {
  console.log("Bigints not supported.");
}

require('babeface'); // OK
{'fraction_non_alphanumeric': 0.14741784037558686, 'fraction_numerical': 0.107981220657277, 'mean_word_length': 4.466666666666667, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4259967', 'n_tokens_mistral': 430, 'n_tokens_neox': 357, 'n_words': 66}