<commit_before><?php
/**
 * Sage includes
 *
 * The $sage_includes array determines the code library included in your theme.
 * Add or remove files to the array as needed. Supports child theme overrides.
 *
 * Please note that missing files will produce a fatal error.
 *
 * @link https://github.com/roots/sage/pull/1042
 */
$sage_includes = [
  'lib/wrapper.php',               // Theme wrapper class
  'lib/setup.php',                 // Theme setup (previously config.php)
  'lib/assets.php',                // Scripts and stylesheets
  'lib/titles.php',                // Page titles
  'lib/extras.php',                // Custom functions

  //'lib/work.php',                  // Functions for the Work section
  'lib/shortcodes.php',            // Just some quick lil shortcodes
  //'lib/category.php',              // Control the display of category names
  'lib/date.php',                  // A future project start date function
  'lib/pics.php',                  // Make all pics uploaded via WYSIWYG open via zoom.js
  'lib/gallery.php',               // Alter output of [gallery] so pics will open via zoom.js
];

foreach ($sage_includes as $file) {
  if (!$filepath = locate_template($file)) {
    trigger_error(sprintf(__('Error locating %s for inclusion', 'sage'), $file), E_USER_ERROR);
  }

  require_once $filepath;
}
unset($file, $filepath);<commit_msg>remove unused things from functions.php<commit_after><?php
/**
 * Sage includes
 *
 * The $sage_includes array determines the code library included in your theme.
 * Add or remove files to the array as needed. Supports child theme overrides.
 *
 * Please note that missing files will produce a fatal error.
 *
 * @link https://github.com/roots/sage/pull/1042
 */
$sage_includes = [
  'lib/wrapper.php',               // Theme wrapper class
  'lib/setup.php',                 // Theme setup (previously config.php)
  'lib/assets.php',                // Scripts and stylesheets
  'lib/titles.php',                // Page titles
  'lib/extras.php',                // Custom functions

  'lib/shortcodes.php',            // Just some quick lil shortcodes
  'lib/date.php',                  // A future project start date function
  'lib/pics.php',                  // Make all pics uploaded via WYSIWYG open via zoom.js
  'lib/gallery.php',               // Alter output of [gallery] so pics will open via zoom.js
];

foreach ($sage_includes as $file) {
  if (!$filepath = locate_template($file)) {
    trigger_error(sprintf(__('Error locating %s for inclusion', 'sage'), $file), E_USER_ERROR);
  }

  require_once $filepath;
}
unset($file, $filepath);
{'fraction_non_alphanumeric': 0.11951126384116074, 'fraction_numerical': 0.0030546009927453228, 'mean_word_length': 2.2955974842767297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2429137', 'n_tokens_mistral': 780, 'n_tokens_neox': 749, 'n_words': 240}