<commit_before><?php

namespace DC\AdminBundle\Controller;
use Symfony\Component\HttpFoundation\Response;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class UserController extends Controller
{
    public function listAction($search,$page){
      $repository = $this->getDoctrine()
                    ->getRepository('DCShowcaseBundle:User');
      $onpage = 10;
      $offset = $onpage*$page;
      $users = $repository->searchUsers($search,$onpage,$offset);
      $count_users = $repository->countSearchUsers($search);
      
      $params = array(
        "users"   => $users,
        "search"  => $search,
        "page"    => $page,
        "maxpage" => ceil($count_users/$onpage)-1
        );
      return $this->render('DCAdminBundle:User:list.html.twig', $params);
    }

    public function editAction($user_id){
      $params =  array(<commit_msg>templates<commit_after><?php

namespace DC\AdminBundle\Controller;
use Symfony\Component\HttpFoundation\Response;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class UserController extends Controller
{
    public function listAction($search,$page){
      $repository = $this->getDoctrine()
                    ->getRepository('DCShowcaseBundle:User');
      $onpage = 20;
      $offset = $onpage*$page;
      $users = $repository->searchUsers($search,$onpage,$offset);
      $count_users = $repository->countSearchUsers($search);
      
      $params = array(
        "users"   => $users,
        "search"  => $search,
        "page"    => $page,
        "maxpage" => ceil($count_users/$onpage)-1
        );
      return $this->render('DCAdminBundle:User:list.html.twig', $params);
    }

    public function editAction($user_id){
      $params =  array(
{'fraction_non_alphanumeric': 0.14367816091954022, 'fraction_numerical': 0.0034482758620689655, 'mean_word_length': 3.0964705882352943, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '2973026', 'n_tokens_mistral': 511, 'n_tokens_neox': 501, 'n_words': 85}