<commit_before><?php
namespace BD\SubberBundle\Controller;

use BD\Subber\WatchList\WatchListItem;
use BD\Subber\WatchList\WatchList;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class WatchListController extends Controller
{
    /** @var \BD\Subber\WatchList\WatchList */
    private $watchList;

    public function __construct( WatchList $watchList )
    {
        $this->item = $watchList;
    }

    public function addToWatchListAction( Request $request )
    {
        $itemArray = json_decode( $request->getContent(), true );

        $item = new WatchListItem();
        $item->setFile( $itemArray['path'] );
        $item->setOriginalName( $itemArray['original_name'] );
        $item->setCreatedAt( new \DateTime() );
        $item->setUpdatedAt( new \DateTime() );

        $this->item->addItem( $item );

        return new Response();
    }
}<commit_msg>Fixed RestController's name<commit_after><?php
namespace BD\SubberBundle\Controller;

use BD\Subber\WatchList\WatchListItem;
use BD\Subber\WatchList\WatchList;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class RestController extends Controller
{
    /** @var \BD\Subber\WatchList\WatchList */
    private $watchList;

    public function __construct( WatchList $watchList )
    {
        $this->item = $watchList;
    }

    public function addToWatchListAction( Request $request )
    {
        $itemArray = json_decode( $request->getContent(), true );

        $item = new WatchListItem();
        $item->setFile( $itemArray['path'] );
        $item->setOriginalName( $itemArray['original_name'] );
        $item->setCreatedAt( new \DateTime() );
        $item->setUpdatedAt( new \DateTime() );

        $this->item->addItem( $item );

        return new Response();
    }
}
{'fraction_non_alphanumeric': 0.12787849093581577, 'fraction_numerical': 0.0, 'mean_word_length': 3.568232662192394, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '7658534', 'n_tokens_mistral': 601, 'n_tokens_neox': 584, 'n_words': 116}