<commit_before><?php namespace Maatwebsite\Usher\Contracts\Roles;

use Maatwebsite\Usher\Contracts\Users\User;

interface Role
{

    /**
     * @return mixed
     */
    public function getId();

    /**
     * @return string
     */
    public function getName();

    /**
     * @param string $name
     */
    public function setName($name);

    /**
     * @return ArrayCollection
     */
    public function getUsers();

    /**
     * @param User $user
     */
    public function addUser(User $user);

    /**
     * @param User $user
     */
    public function removeUser(User $user);

    /**
     * @return array
     */
    public function getPermissions();

    /**
     * @param      $key
     * @param bool $default
     * @return bool
     */
    public function getPermission($key, $default = false);

    /**
     * @param      $key
     * @return bool
     */
    public function permissionExists($key);

    /**
     * @param mixed $permissions
     */
    public function setPermissions(array $permissions = []);

    /**
     * @param $key
     * @param $value
     */
    public function addPermission($key, $value);
}
<commit_msg>Fix role assignment<commit_after><?php namespace Maatwebsite\Usher\Contracts\Roles;

interface Role
{

    /**
     * @return mixed
     */
    public function getId();

    /**
     * @return string
     */
    public function getName();

    /**
     * @param string $name
     */
    public function setName($name);

    /**
     * @return ArrayCollection
     */
    public function getUsers();

    /**
     * @return array
     */
    public function getPermissions();

    /**
     * @param      $key
     * @param bool $default
     * @return bool
     */
    public function getPermission($key, $default = false);

    /**
     * @param      $key
     * @return bool
     */
    public function permissionExists($key);

    /**
     * @param mixed $permissions
     */
    public function setPermissions(array $permissions = []);

    /**
     * @param $key
     * @param $value
     */
    public function addPermission($key, $value);
}

{'fraction_non_alphanumeric': 0.13653663177925784, 'fraction_numerical': 0.0, 'mean_word_length': 1.9208333333333334, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2618313', 'n_tokens_mistral': 621, 'n_tokens_neox': 603, 'n_words': 148}