<commit_before>#!/bin/bash

for example in $(ls examples); do
  if [[ -d examples/${example} ]]; then
    html=stage/_book/${example}.html

    sed -i s:${example}.md:examples/${example}/input.md: ${html}
  fi
done<commit_msg>fix-edit-button: handle new hierarchy of nested examples<commit_after>#!/bin/bash

for example in $(find examples -type d -name "*"); do
  html=stage/_book/${example#examples/}.html
  if [[ -f ${html} ]]; then
    echo ${html}

    sed -i s:${example#examples/}.md:${example}/input.md: ${html}
  fi
done
{'fraction_non_alphanumeric': 0.1947069943289225, 'fraction_numerical': 0.0, 'mean_word_length': 3.8623853211009176, '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': '2439567', 'n_tokens_mistral': 187, 'n_tokens_neox': 181, 'n_words': 46}