<commit_before><?php

namespace Chamilo\Core\Notification\Storage\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @package Chamilo\Core\Notification\Storage\Entity
 *
 * @author <NAME> - Hogeschool Gent
 *
 * @ORM\Entity
 * @ORM\Table(
 *     name="notification_user_notification",
 *     indexes={
 *          @ORM\Index(name="nun_read", columns={"is_read"}),
 *          @ORM\Index(name="nun_viewed", columns={"is_viewed"}),
 *          @ORM\Index(name="nun_user_id", columns={"user_id"}),
 *          @ORM\Index(name="nun_date", columns={"date"}),
 *          @ORM\Index(name="nun_user_notification", columns={"user_id", "notification_id"}),
 *          @ORM\Index(name="nun_user_notification_read", columns={"user_id", "notification_id", "is_read"}),
 *          @ORM\Index(name="nun_user_notification_viewed", columns={"user_id", "notification_id", "is_viewed"})
 *     }
 * )
 */
class UserNotification
{
    /**
     * @var int
     *<commit_msg>optimizing notification indexes<commit_after><?php

namespace Chamilo\Core\Notification\Storage\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @package Chamilo\Core\Notification\Storage\Entity
 *
 * @author <NAME> - Hogeschool Gent
 *
 * @ORM\Entity
 * @ORM\Table(
 *     name="notification_user_notification",
 *     indexes={
 *          @ORM\Index(name="nun_user_id", columns={"user_id"}),
 *          @ORM\Index(name="nun_user_notification", columns={"user_id", "notification_id"}),
 *          @ORM\Index(name="nun_user_notification_viewed", columns={"user_id", "notification_context", "is_viewed"})
 *     }
 * )
 */
class UserNotification
{
    /**
     * @var int
     *
{'fraction_non_alphanumeric': 0.17481662591687042, 'fraction_numerical': 0.0, 'mean_word_length': 3.80058651026393, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '7320929', 'n_tokens_mistral': 557, 'n_tokens_neox': 545, 'n_words': 72}