<commit_before>module.exports = {
  splitImageParts,
  extractDependencies,
};

function groupedRegex(string, pattern) {
  const matches = string.match(new RegExp(pattern.source, pattern.flags));
  if (!matches) {
    return [];
  }<commit_msg>fix(docker): handle null string when extracting<commit_after>module.exports = {
  splitImageParts,
  extractDependencies,
};

function groupedRegex(string, pattern) {
  // istanbul ignore if
  if (!string) {
    return [];
  }
  const matches = string.match(new RegExp(pattern.source, pattern.flags));
  if (!matches) {
    return [];
  }
{'fraction_non_alphanumeric': 0.1323024054982818, 'fraction_numerical': 0.0, 'mean_word_length': 4.398148148148148, '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': '1658407', 'n_tokens_mistral': 181, 'n_tokens_neox': 173, 'n_words': 39}