<commit_before><?php

namespace Rogue\Jobs;

use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Rogue\Services\Phoenix;
use Rogue\Models\Reportback;

class SendReportbackToPhoenix extends Job implements ShouldQueue
{
    use InteractsWithQueue, SerializesModels;

    protected $reportback;
    protected $hasFile;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct(Reportback $reportback, $hasFile = TRUE)
    {
        $this->reportback = $reportback;
        $this->hasFile = $hasFile;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        $phoenix = new Phoenix;

        // Data that every post will have
        $body = [
            'uid' => $this->reportback->drupal_id,
            'nid' => $this->reportback->campaign_id,
            'quantity' => $this->reportback->quantity,
            'why_participated' => $this->reportback->why_participated,
        ];<commit_msg>style fix to lowercase true<commit_after><?php

namespace Rogue\Jobs;

use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Rogue\Services\Phoenix;
use Rogue\Models\Reportback;

class SendReportbackToPhoenix extends Job implements ShouldQueue
{
    use InteractsWithQueue, SerializesModels;

    protected $reportback;
    protected $hasFile;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct(Reportback $reportback, $hasFile = true)
    {
        $this->reportback = $reportback;
        $this->hasFile = $hasFile;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        $phoenix = new Phoenix;

        // Data that every post will have
        $body = [
            'uid' => $this->reportback->drupal_id,
            'nid' => $this->reportback->campaign_id,
            'quantity' => $this->reportback->quantity,
            'why_participated' => $this->reportback->why_participated,
        ];
{'fraction_non_alphanumeric': 0.1132596685082873, 'fraction_numerical': 0.0, 'mean_word_length': 2.510500807754443, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '1348789', 'n_tokens_mistral': 660, 'n_tokens_neox': 653, 'n_words': 142}