<commit_before><?php
global $newsletter, $post;

if (!defined('ABSPATH')) exit;

require_once(WP_CONTENT_DIR . '/extensions/newsletter/emails/themes/b90-green-2015/theme-helper.php');

$theme_subject = $theme_options['theme_subject'];
$public_display = geskill_get_public_display();

$hosted_picture = get_site_url() . '/newsletter/img/' . $public_display['display_username'] . '-80x80.jpg';
$picture = get_avatar_url(get_current_user_id(), array('default' => hosted_picture));

if (isset($theme_options['theme_posts'])) {
    $filters = array();
    
    if (empty($theme_options['theme_max_posts'])) $filters['posts_per_page'] = 10;
    else $filters['posts_per_page'] = (int)$theme_options['theme_max_posts'];
    
    if (!empty($theme_options['theme_categories'])) {
        $filters['category__in'] = $theme_options['theme_categories'];
    }
    
    if (!empty($theme_options['theme_tags'])) {
        $filters['tag'] = $theme_options['theme_tags'];
    }
    
    if (!empty($theme_options['theme_post_types'])) {
        $filters['post_type'] = $theme_options['theme_post_types'];
    }    
    
    $posts = get_posts($filters);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title><?php echo $theme_options['main_header_title'] ?></title><commit_msg>Fix missing variable declaration $.<commit_after><?php
global $newsletter, $post;

if (!defined('ABSPATH')) exit;

require_once(WP_CONTENT_DIR . '/extensions/newsletter/emails/themes/b90-green-2015/theme-helper.php');

$theme_subject = $theme_options['theme_subject'];
$public_display = geskill_get_public_display();

$hosted_picture = get_site_url() . '/newsletter/img/' . $public_display['display_username'] . '-80x80.jpg';
$picture = get_avatar_url(get_current_user_id(), array('default' => $hosted_picture));

if (isset($theme_options['theme_posts'])) {
    $filters = array();
    
    if (empty($theme_options['theme_max_posts'])) $filters['posts_per_page'] = 10;
    else $filters['posts_per_page'] = (int)$theme_options['theme_max_posts'];
    
    if (!empty($theme_options['theme_categories'])) {
        $filters['category__in'] = $theme_options['theme_categories'];
    }
    
    if (!empty($theme_options['theme_tags'])) {
        $filters['tag'] = $theme_options['theme_tags'];
    }
    
    if (!empty($theme_options['theme_post_types'])) {
        $filters['post_type'] = $theme_options['theme_post_types'];
    }    
    
    $posts = get_posts($filters);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title><?php echo $theme_options['main_header_title'] ?></title>
{'fraction_non_alphanumeric': 0.19114295017909474, 'fraction_numerical': 0.016932595245848257, 'mean_word_length': 5.168674698795181, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '3832839', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1043, 'n_words': 143}