<commit_before><?php
/**
 * User: matteo
 * Date: 25/11/12
 * Time: 22.22
 *
 * Just for fun...
 */

namespace Cypress\GitElephantHostBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Cypress\GitElephantHostBundle\Controller\Base\Controller as BaseController;

/**
 * Repository controller
 */
class RepositoryController extends BaseController
{
    /**
     * Repository home
     *
     * @param string $slug slug
     *
     * @Route("/repo/{slug}", name="repository")
     * @Template()
     *
     * @return array
     */
    public function repositoryAction($slug)
    {
        $git = $this->getRepositoryRepo()->findOneBySlug($slug)->getGit();
        $ref = 'master';
        $path = '';

        return compact('git', 'ref', 'path');
    }

    /**
     * Tree Object
     *
     * @Route("/repo/{slug}/tree/{ref}/{path}", name="tree_object", requirements={"path" = ".+"})
     * @Template("CypressGitElephantHostBundle:Repository:repository.html.twig");
     */
    public function treeObjectAction($slug, $ref, $path)
    {
        $git = $this->getRepositoryRepo()->findOneBySlug($slug)->getGit();

        return compact('git', 'ref', 'path');
    }
}
<commit_msg>git-all automatic commit<commit_after><?php
/**
 * User: matteo
 * Date: 25/11/12
 * Time: 22.22
 *
 * Just for fun...
 */

namespace Cypress\GitElephantHostBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Cypress\GitElephantHostBundle\Controller\Base\Controller as BaseController;

/**
 * Repository controller
 */
class RepositoryController extends BaseController
{
    /**
     * Repository home
     *
     * @param string $slug slug
     *
     * @Route("/repo/{slug}", name="repository")
     * @Template()
     *
     * @return array
     */
    public function repositoryAction($slug)
    {
        $git = $this->getRepositoryRepo()->findOneBySlug($slug)->getGit();
        $ref = 'master';
        $path = '';

        return compact('git', 'ref', 'path');
    }

    /**
     * Tree Object
     *
     * @param string $slug repo slug
     * @param string $ref  actual reference
     * @param string $path actual path
     *
     * @Route("/repo/{slug}/tree/{ref}/{path}", name="tree_object", requirements={"path" = ".+"})
     * @Template("CypressGitElephantHostBundle:Repository:repository.html.twig")
     *
     * @return array
     */
    public function treeObjectAction($slug, $ref, $path)
    {
        $git = $this->getRepositoryRepo()->findOneBySlug($slug)->getGit();

        return compact('git', 'ref', 'path');
    }
}

{'fraction_non_alphanumeric': 0.16095764272559854, 'fraction_numerical': 0.007366482504604052, 'mean_word_length': 2.9707602339181287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3021307', 'n_tokens_mistral': 853, 'n_tokens_neox': 834, 'n_words': 151}