<commit_before><?php

/**
 * @file
 * Functions to support theming in the {{ machine_name }} theme.
 */

/**
 * Implements hook_preprocess_HOOK() for html.html.twig.
 */
function {{ machine_name }}_preprocess_html(array &$variables) {
  /* Add class to html tag */
  //$variables['html_attributes']->addClass('no-js');

  // Don't display the site name twice on the front page (and potentially others)
  /*if (isset($variables['head_title_array']['title']) && isset($variables['head_title_array']['name']) && ($variables['head_title_array']['title'] == $variables['head_title_array']['name'])) {
    $variables['head_title'] = $variables['head_title_array']['name'];
  }*/
}

/**
 * Implements hook_page_attachments_alter().
 */
function {{ machine_name }}_page_attachments_alter(array &$page) {
  // Disabling browser zoom on mobile devices.
  /*foreach ($page['#attached']['html_head'] as &$meta_arr) {
    if (array_search('viewport', $meta_arr)) {
      $meta_arr[0]['#attributes']['content'] .= ', maximum-scale=1.0, user-scalable=0';
    }
  }*/


  // Tell IE to use latest rendering engine (not to use compatibility mode).
  /*$ie_edge = [
    '#type' => 'html_tag',
    '#tag' => 'meta',
    '#attributes' => [
    'http-equiv' => 'X-UA-Compatible',
    'content' => 'IE=edge',
    ],
  ];
  $page['#attached']['html_head'][] = [$ie_edge, 'ie_edge'];*/
}

/**
 * Implements hook_preprocess_page() for page.html.twig.
 */
function {{ machine_name }}_preprocess_page(array &$variables) {
<commit_msg>Enable browser zoom on mobile devices<commit_after><?php

/**
 * @file
 * Functions to support theming in the {{ machine_name }} theme.
 */

/**
 * Implements hook_preprocess_HOOK() for html.html.twig.
 */
function {{ machine_name }}_preprocess_html(array &$variables) {
  /* Add class to html tag */
  //$variables['html_attributes']->addClass('no-js');

  // Don't display the site name twice on the front page (and potentially others)
  /*if (isset($variables['head_title_array']['title']) && isset($variables['head_title_array']['name']) && ($variables['head_title_array']['title'] == $variables['head_title_array']['name'])) {
    $variables['head_title'] = $variables['head_title_array']['name'];
  }*/
}

/**
 * Implements hook_page_attachments_alter().
 */
function {{ machine_name }}_page_attachments_alter(array &$page) {
  // Tell IE to use latest rendering engine (not to use compatibility mode).
  /*$ie_edge = [
    '#type' => 'html_tag',
    '#tag' => 'meta',
    '#attributes' => [
    'http-equiv' => 'X-UA-Compatible',
    'content' => 'IE=edge',
    ],
  ];
  $page['#attached']['html_head'][] = [$ie_edge, 'ie_edge'];*/
}

/**
 * Implements hook_preprocess_page() for page.html.twig.
 */
function {{ machine_name }}_preprocess_page(array &$variables) {

{'fraction_non_alphanumeric': 0.20035971223021581, 'fraction_numerical': 0.0014388489208633094, 'mean_word_length': 4.539840637450199, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3486108', 'n_tokens_mistral': 909, 'n_tokens_neox': 901, 'n_words': 187}