<commit_before><?php

namespace Juno\Controller;

use Silex\Application;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class DefaultController
{
    public function indexAction(Application $app)
    {
        return $this->render($app, 'layout.html', array(
            '%mount_prefix%' => $app['juno.mount_prefix'],
        ));
    }

    public function templateAction(Application $app, $name)
    {
        return $this->render($app, $name . '.html');
    }

    protected function render(Application $app, $template, array $values = array())
    {<commit_msg>rtrim mount_prefix<commit_after><?php

namespace Juno\Controller;

use Silex\Application;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class DefaultController
{
    public function indexAction(Application $app)
    {
        return $this->render($app, 'layout.html', array(
            '%mount_prefix%' => rtrim($app['juno.mount_prefix'], '/') . '/',
        ));
    }

    public function templateAction(Application $app, $name)
    {
        return $this->render($app, $name . '.html');
    }

    protected function render(Application $app, $template, array $values = array())
    {
{'fraction_non_alphanumeric': 0.13937867338371115, 'fraction_numerical': 0.0, 'mean_word_length': 3.4477611940298507, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4024480', 'n_tokens_mistral': 342, 'n_tokens_neox': 341, 'n_words': 73}