<commit_before><?php

// Enqueue

function scripts_and_styles_method() {

  $templateuri = get_template_directory_uri() . '/js/';

  // library.js is to bundle plugins. my.js is your scripts. enqueue more files as needed
  $jslib = $templateuri . 'library.js';
  wp_enqueue_script( 'jslib', $jslib,'','',true);

  $myscripts = $templateuri . 'main.js';
  wp_register_script( 'myscripts', $myscripts );

  $is_admin = current_user_can('administrator') ? 1 : 0;
  $jsVars = array(<commit_msg>enqueue video js and localize video url on front page<commit_after><?php

// Enqueue

function scripts_and_styles_method() {

  $templateuri = get_template_directory_uri() . '/js/';

  if (is_front_page()) {
    $home_video = get_post_meta(get_id_by_slug('home'), '_igv_home_video', true);

    if (!empty($home_video)) {
      wp_enqueue_style( 'videojs', '//vjs.zencdn.net/5.8/video-js.min.css' );
      wp_enqueue_script('videojs','//vjs.zencdn.net/5.8/video.min.js','','',true);
      wp_enqueue_script('videojsvimeo',$templateuri . 'vjsvimeo.js','','',true);
      wp_localize_script( 'videojs', 'video', array('url' => $home_video) );
    }
  }
  
  // library.js is to bundle plugins. my.js is your scripts. enqueue more files as needed
  $jslib = $templateuri . 'library.js';
  wp_enqueue_script( 'jslib', $jslib,'','',true);

  $myscripts = $templateuri . 'main.js';
  wp_register_script( 'myscripts', $myscripts );

  $is_admin = current_user_can('administrator') ? 1 : 0;
  $jsVars = array(
{'fraction_non_alphanumeric': 0.16968477531857815, 'fraction_numerical': 0.0053655264922870555, 'mean_word_length': 4.309608540925267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7097462', 'n_tokens_mistral': 556, 'n_tokens_neox': 552, 'n_words': 105}