<commit_before><?php

namespace CodeDay\Clear\Commands\Jobs;

use \Carbon\Carbon;
use \CodeDay\Clear\Models;
use \CodeDay\Clear\Services;

class SendAttendeeRemindersJob {
    public $interval = 'always';
    
    public function fire()
    {
        foreach (Models\Batch::Loaded()->events as $event) {
            foreach($event->schedule as $day) {
                foreach($day as $activity){
                    $adjustedBatchTimezone = Models\Batch::Loaded()->starts_at->setTimezone($event->batch->timezone)->hour(12);

                    $activityTime = $adjustedBatchTimezone->addMinutes($activity->time * 60);
                    $notifyTime = $activityTime->subMinutes(30);

                    $now = Carbon::now()->setTimezone($event->batch->timezone);

                    if($notifyTime->diffInMinutes($now) == 0 && $activity->type == "workshop") {
                        Services\Notifications::SendNotificationsForActivity($activity, $event);
                    }
                }
            }
        }
    }
}<commit_msg>Disable notifications<commit_after><?php

namespace CodeDay\Clear\Commands\Jobs;

use \Carbon\Carbon;
use \CodeDay\Clear\Models;
use \CodeDay\Clear\Services;

class SendAttendeeRemindersJob {
    public $interval = 'always';
    
    public function fire()
    {
        return;
        foreach (Models\Batch::Loaded()->events as $event) {
            foreach($event->schedule as $day) {
                foreach($day as $activity){
                    $adjustedBatchTimezone = Models\Batch::Loaded()->starts_at->setTimezone($event->batch->timezone)->hour(12);

                    $activityTime = $adjustedBatchTimezone->addMinutes($activity->time * 60);
                    $notifyTime = $activityTime->subMinutes(30);

                    $now = Carbon::now()->setTimezone($event->batch->timezone);

                    if($notifyTime->diffInMinutes($now) == 0 && $activity->type == "workshop") {
                        Services\Notifications::SendNotificationsForActivity($activity, $event);
                    }
                }
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.13879677877783042, 'fraction_numerical': 0.006631927996210327, 'mean_word_length': 2.1150442477876106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '1082501', 'n_tokens_mistral': 600, 'n_tokens_neox': 559, 'n_words': 86}