<commit_before><?php
/**
 * The Template for displaying all single posts
 *
 * Methods for TimberHelper can be found in the /functions sub-directory
 *
 * @package  WordPress
 * @subpackage  Timber
 * @since    Timber 0.1
 */

$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->post_title;
$context['comment_form'] = TimberHelper::get_comment_form();
$templates = array('single-'.$post->format_content.'.twig','single-'.$post->post_type . '.twig', 'single.twig');
Timber::render($templates, $context);
<commit_msg>fixed issue with post_format error Signed-off-by:shawnsandy <<EMAIL>><commit_after><?php
/**
 * The Template for displaying all single posts
 *
 * Methods for TimberHelper can be found in the /functions sub-directory
 *
 * @package  WordPress
 * @subpackage  Timber
 * @since    Timber 0.1
 */

$context = Timber::get_context();
$post = new TimberPost();
$context['post'] = $post;
$context['wp_title'] .= ' - ' . $post->post_title;
$context['comment_form'] = TimberHelper::get_comment_form();
$templates = array('single-'.$post->post_type . '.twig', 'single.twig');
Timber::render($templates, $context);

{'fraction_non_alphanumeric': 0.17869127516778524, 'fraction_numerical': 0.003355704697986577, 'mean_word_length': 5.086734693877551, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '3037750', 'n_tokens_mistral': 389, 'n_tokens_neox': 389, 'n_words': 90}