<commit_before><?php

namespace App\Notifications\Frontend;

use App\Models\Release;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class ReleaseWasPublished extends Notification implements ShouldQueue
{
    use Queueable;
    /**
     * @var Release
     */
    public $release;

    /**
     * Create a new notification instance.
     *
     * @param Release $release
     */
    public function __construct(Release $release)
    {
        //
        $this->release = $release;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable): array
    {
        return ['database'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable): MailMessage
    {
        return (new MailMessage)
                    ->line("Your release has been published as {$this->release->tag_name}. You can view it on GitHub or download a zip file")
                    ->action('View the Release', url("/projects/{$this->release->project->id}/releases/{$this->release->id}"))
                    ->line('Thank you for using the Open Metadata Registry!');
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable): array
    {
        return [
            'message' => 'Your vocabulary has been published',
        ];
    }
}<commit_msg>ad tagname to realease was published<commit_after><?php

namespace App\Notifications\Frontend;

use App\Models\Release;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class ReleaseWasPublished extends Notification implements ShouldQueue
{
    use Queueable;
    /**
     * @var Release
     */
    public $release;

    /**
     * Create a new notification instance.
     *
     * @param Release $release
     */
    public function __construct(Release $release)
    {
        //
        $this->release = $release;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable): array
    {
        return ['database'];
    }

    /**
     * Get the mail representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
    public function toMail($notifiable): MailMessage
    {
        return (new MailMessage)
                    ->line("Your release has been published as {$this->release->tag_name}. You can view it on GitHub or download a zip file")
                    ->action('View the Release', url("/projects/{$this->release->project->id}/releases/{$this->release->id}"))
                    ->line('Thank you for using the Open Metadata Registry!');
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable): array
    {
        return [
            'message' => "Your release has been published as {$this->release->tag_name}.",
        ];
    }
}
{'fraction_non_alphanumeric': 0.11139383658467628, 'fraction_numerical': 0.0, 'mean_word_length': 2.2972972972972974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4146997', 'n_tokens_mistral': 950, 'n_tokens_neox': 942, 'n_words': 261}