<commit_before>#!/bin/bash
set -e -u -x

grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' *.opt \
  | sed 's/<img.*src="//g' \
  | sed 's/"$//g' \
  | sort -u \
  > $1<commit_msg>[guide] Fix image extraction when there are too many files in a directory.<commit_after>#!/bin/bash
set -e -u -x

grep --ignore-case --only-matching --no-filename '<img[^/]*src=\"[^">]*"' -r --include=*.opt . \
  | sed 's/<img.*src="//g' \
  | sed 's/"$//g' \
  | sort -u \
  > $1
{'fraction_non_alphanumeric': 0.2892561983471074, 'fraction_numerical': 0.004132231404958678, 'mean_word_length': 2.3219178082191783, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3601173', 'n_tokens_mistral': 218, 'n_tokens_neox': 201, 'n_words': 48}