<commit_before><?php
defined('TYPO3_MODE') or die('Access denied.');

// === Textmedia Content Element ===

// if (!is_array($GLOBALS['TCA']['tt_content']['types']['textmedia'])) {
//   $GLOBALS['TCA']['tt_content']['types']['textmedia'] = [];
// }

// $GLOBALS['TCA']['tt_content']['types']['textmedia'] = array_replace_recursive(
//   $GLOBALS['TCA']['tt_content']['types']['textmedia'],
//   [
//     'showitem' => '
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
//       bodytext,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,
//       assets,
//       --palette--;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:palette.alignment;mediablock,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
//       rowDescription',
//     'columnsOverrides' => [
//       'bodytext' => [
//         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
//       ]
//     ]
//   ]
// );

// === Text Content Element (deprecated) ===

// if (!is_array($GLOBALS['TCA']['tt_content']['types']['text'])) {
//   $GLOBALS['TCA']['tt_content']['types']['text'] = [];
// }

// $GLOBALS['TCA']['tt_content']['types']['text'] = array_replace_recursive(
//   $GLOBALS['TCA']['tt_content']['types']['text'],
//   [
//     'showitem' => '
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
//       bodytext,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
//       rowDescription',
//     'columnsOverrides' => [
//       'bodytext' => [
//         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
//       ]
//     ]
//   ]
// );

// === Text & Image Content Element (deprecated) ===

// if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic'])) {
//   $GLOBALS['TCA']['tt_content']['types']['textpic'] = [];
// }

// $GLOBALS['TCA']['tt_content']['types']['textpic'] = array_replace_recursive(
//   $GLOBALS['TCA']['tt_content']['types']['textpic'],
//   [
//     'showitem' => '
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
//       bodytext,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.images,
//       image,
//       --palette--;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:palette.alignment;imageblock,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
//       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
//       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
//       rowDescription',
//     'columnsOverrides' => [
//       'bodytext' => [
//         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
//       ]
//     ]
//   ]
// );<commit_msg>[➠] Wrap TCA overrides in user function.<commit_after><?php
defined('TYPO3_MODE') or die('Access denied.');

call_user_func(function() {
  // === Textmedia Content Element ===

  // if (!is_array($GLOBALS['TCA']['tt_content']['types']['textmedia'])) {
  //   $GLOBALS['TCA']['tt_content']['types']['textmedia'] = [];
  // }
  //
  // $GLOBALS['TCA']['tt_content']['types']['textmedia'] = array_replace_recursive(
  //   $GLOBALS['TCA']['tt_content']['types']['textmedia'],
  //   [
  //     'showitem' => '
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
  //       bodytext,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.media,
  //       assets,
  //       --palette--;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:palette.alignment;mediablock,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
  //       rowDescription',
  //     'columnsOverrides' => [
  //       'bodytext' => [
  //         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
  //       ]
  //     ]
  //   ]
  // );

  // === Text Content Element (deprecated) ===

  // if (!is_array($GLOBALS['TCA']['tt_content']['types']['text'])) {
  //   $GLOBALS['TCA']['tt_content']['types']['text'] = [];
  // }
  //
  // $GLOBALS['TCA']['tt_content']['types']['text'] = array_replace_recursive(
  //   $GLOBALS['TCA']['tt_content']['types']['text'],
  //   [
  //     'showitem' => '
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
  //       bodytext,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
  //       rowDescription',
  //     'columnsOverrides' => [
  //       'bodytext' => [
  //         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
  //       ]
  //     ]
  //   ]
  // );

  // === Text & Image Content Element (deprecated) ===

  // if (!is_array($GLOBALS['TCA']['tt_content']['types']['textpic'])) {
  //   $GLOBALS['TCA']['tt_content']['types']['textpic'] = [];
  // }
  //
  // $GLOBALS['TCA']['tt_content']['types']['textpic'] = array_replace_recursive(
  //   $GLOBALS['TCA']['tt_content']['types']['textpic'],
  //   [
  //     'showitem' => '
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.header;header,
  //       bodytext,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.images,
  //       image,
  //       --palette--;LLL:EXT:bootstrap_package/Resources/Private/Language/Backend.xlf:palette.alignment;imageblock,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.imagelinks;imagelinks,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.frames;frames,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.visibility;visibility,
  //       --palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
  //       --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
  //       rowDescription',
  //     'columnsOverrides' => [
  //       'bodytext' => [
  //         'defaultExtras' => 'richtext:rte_transform[mode=ts_css]'
  //       ]
  //     ]
  //   ]
  // );
});
{'fraction_non_alphanumeric': 0.20648583725352818, 'fraction_numerical': 0.00020018016214593134, 'mean_word_length': 3.357610117749673, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '3213430', 'n_tokens_mistral': 3547, 'n_tokens_neox': 3530, 'n_words': 183}