<commit_before><?php

namespace Trolley\AgendaBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

/**
 * Class InfoCardsController
 *
 * @package Trolley\AgendaBundle\Controller
 *
 * @Route("/print/cards")
 */
class InfoCardsController extends Controller
{
    /**
     * @Route("/")
     */
    public function allUserCardsAction()
    {
        $users = $this->getDoctrine()->getRepository('TrolleyAgendaBundle:User')->findAll();
        $host = $_SERVER['HTTP_HOST'];

        $pages = array_chunk($users, 8);

        return $this->render('TrolleyAgendaBundle:InfoCards:all_user_cards.html.twig', [
            'host' => $host,
            'pages' => $pages
        ]);
    }

    /**
     * @Route("/cover")
     */
    public function coverCardsAction()
    {
        $users = $this->getDoctrine()->getRepository('TrolleyAgendaBundle:User')->findAll();

        $pages = array_chunk($users, 8);

        return $this->render('TrolleyAgendaBundle:InfoCards:cover_cards.html.twig', [
            'pages' => $pages
        ]);
    }

}
<commit_msg>Beim Druck müssen die User gegenüberlegen, damit die sich mit der Rückseite beim Druck übereinstimmen.<commit_after><?php

namespace Trolley\AgendaBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

/**
 * Class InfoCardsController
 *
 * @package Trolley\AgendaBundle\Controller
 *
 * @Route("/print/cards")
 */
class InfoCardsController extends Controller
{
    /**
     * @Route("/")
     */
    public function allUserCardsAction()
    {
        $users = $this->getDoctrine()->getRepository('TrolleyAgendaBundle:User')->findAll();
        $host = $_SERVER['HTTP_HOST'];

        $pages = array_chunk($users, 8);

        return $this->render('TrolleyAgendaBundle:InfoCards:all_user_cards.html.twig', [
            'host' => $host,
            'pages' => $pages
        ]);
    }

    /**
     * @Route("/cover")
     */
    public function coverCardsAction()
    {
        $users = $this->getDoctrine()->getRepository('TrolleyAgendaBundle:User')->findAll();

        $pages = array_chunk($users, 8);
        foreach ($pages as &$users) {
            $users = array_reverse($users);
        }

        return $this->render('TrolleyAgendaBundle:InfoCards:cover_cards.html.twig', [
            'pages' => $pages
        ]);
    }

}

{'fraction_non_alphanumeric': 0.1508743391622611, 'fraction_numerical': 0.0016266775111834079, 'mean_word_length': 2.936, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '4821573', 'n_tokens_mistral': 761, 'n_tokens_neox': 751, 'n_words': 112}