<commit_before><?php

namespace Rogue\Services;

use Rogue\Models\Reportback;
use Rogue\Repositories\ReportbackRepository;
use Rogue\Jobs\SendReportbackToPhoenix;

class ReportbackService
{
    /*
     * Instance of \Rogue\Repositories\ReportbackRepository
     */
    protected $reportbackRepository;

    /*
     * Instance of \Rogue\Jobs\SendReportbackToPhoenix
     */
    protected $sendReportbackToPhoenix;

    public function __construct(ReportbackRepository $reportbackRepository)
    {
        $this->reportbackRepository = $reportbackRepository;
    }

    /*
     * Handles all the logic around creating a reportback.
     *
     * @param array $data
     * @return \Rogue\Models\Reportback $reportback.
     */
    public function create($data)
    {
        $reportback = $this->reportbackRepository->create($data);

        // POST reportback back to phoenix.
        // If request fails, record in failed_jobs table.
        dispatch(new SendReportbackToPhoenix($reportback));<commit_msg>removes property from class<commit_after><?php

namespace Rogue\Services;

use Rogue\Models\Reportback;
use Rogue\Repositories\ReportbackRepository;
use Rogue\Jobs\SendReportbackToPhoenix;

class ReportbackService
{
    /*
     * Instance of \Rogue\Repositories\ReportbackRepository
     */
    protected $reportbackRepository;

    public function __construct(ReportbackRepository $reportbackRepository)
    {
        $this->reportbackRepository = $reportbackRepository;
    }

    /*
     * Handles all the logic around creating a reportback.
     *
     * @param array $data
     * @return \Rogue\Models\Reportback $reportback.
     */
    public function create($data)
    {
        $reportback = $this->reportbackRepository->create($data);

        // POST reportback back to phoenix.
        // If request fails, record in failed_jobs table.
        dispatch(new SendReportbackToPhoenix($reportback));
{'fraction_non_alphanumeric': 0.09209837781266353, 'fraction_numerical': 0.0, 'mean_word_length': 3.1565217391304348, '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': '345150', 'n_tokens_mistral': 553, 'n_tokens_neox': 542, 'n_words': 117}