<commit_before><?php
/**
 * Roots initial setup and constants
 */
function roots_setup() {
  // Make theme available for translation
  load_theme_textdomain('roots', get_template_directory() . '/lang');

  // Register wp_nav_menu() menus (http://codex.wordpress.org/Function_Reference/register_nav_menus)
  register_nav_menus(array(
    'primary_navigation' => __('Primary Navigation', 'roots'),
    'secondary_navigation' => __('Secondary Navigation', 'roots')
  ));

/* Control compression of files uploaded, set JPG compression to 70% */

add_filter( 'jpeg_quality', 'jpeg_full_quality' );
function jpeg_full_quality( $quality ) { return 70; }

  // Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails)
  add_theme_support('post-thumbnails');
  // set_post_thumbnail_size(150, 150, false);
  add_image_size('featured-small', 300, 194, array('center', 'center'));
  add_image_size('featured-medium', 500, 281, array('center', 'center'));
  add_image_size('featured-large', 720, 394, array('center', 'center'));
  
  add_image_size('insight-thumb', 250, 162, array('center', 'center')); 
  add_image_size('video-cover-thumb', 650, 355, array('center', 'center'));
  add_image_size('expert-profile', 180, 180, true ); // (cropped)
  add_image_size('large-wide', 1440, 400, array('center', 'center')); 
  add_image_size('large-wide-mobile', 560, 233, array('center', 'center')); 

  // Add post formats (http://codex.wordpress.org/Post_Formats)
  // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));<commit_msg>Updates to image dimensions<commit_after><?php
/**
 * Roots initial setup and constants
 */
function roots_setup() {
  // Make theme available for translation
  load_theme_textdomain('roots', get_template_directory() . '/lang');

  // Register wp_nav_menu() menus (http://codex.wordpress.org/Function_Reference/register_nav_menus)
  register_nav_menus(array(
    'primary_navigation' => __('Primary Navigation', 'roots'),
    'secondary_navigation' => __('Secondary Navigation', 'roots')
  ));

/* Control compression of files uploaded, set JPG compression to 70% */

add_filter( 'jpeg_quality', 'jpeg_full_quality' );
function jpeg_full_quality( $quality ) { return 70; }

  // Add post thumbnails (http://codex.wordpress.org/Post_Thumbnails)
  add_theme_support('post-thumbnails');
  // set_post_thumbnail_size(150, 150, false);
  add_image_size('featured-small', 300, 194, array('center', 'center'));
  add_image_size('featured-medium', 500, 281, array('center', 'center'));
  add_image_size('featured-large', 900, 394, array('center', 'center'));
  
  add_image_size('insight-thumb', 250, 162, array('center', 'center')); 
  add_image_size('video-cover-thumb', 650, 355, array('center', 'center'));
  add_image_size('expert-profile', 180, 180, true ); // (cropped)
  add_image_size('large-wide', 1440, 350, array('center', 'center')); 
  add_image_size('large-wide-mobile', 560, 233, array('center', 'center')); 

  // Add post formats (http://codex.wordpress.org/Post_Formats)
  // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
{'fraction_non_alphanumeric': 0.1784154709918902, 'fraction_numerical': 0.036805988771054274, 'mean_word_length': 5.765822784810126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5058752', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1018, 'n_words': 220}