<commit_before><?php namespace HynMe\MultiTenant\Repositories;

use HynMe\Framework\Repositories\BaseRepository;
use HynMe\MultiTenant\Contracts\TenantRepositoryContract;

class TenantRepository extends BaseRepository implements TenantRepositoryContract
{

    /**
     * @var \HynMe\MultiTenant\Models\Tenant
     */
    protected $tenant;

    /**
     * Create a pagination object
     *
     * @param int $per_page
     * @return mixed
     */
    public function paginated($per_page = 20)
    {
        return $this->tenant->paginate($per_page);
    }

    public function all()
    {
        return $this->tenant->all();
    }

    /**
     * Removes tenant and everything related
     *
     * @param $name
     * @return mixed
     */
    public function forceDeleteByName($name)
    {
        return $this->tenant->where('name', $name)->first()->delete();
    }


}<commit_msg>removed generic calls, added them to framework base repo<commit_after><?php namespace HynMe\MultiTenant\Repositories;

use HynMe\Framework\Repositories\BaseRepository;
use HynMe\MultiTenant\Contracts\TenantRepositoryContract;

class TenantRepository extends BaseRepository implements TenantRepositoryContract
{

    /**
     * @var \HynMe\MultiTenant\Models\Tenant
     */
    protected $tenant;

    /**
     * Removes tenant and everything related
     *
     * @param $name
     * @return mixed
     */
    public function forceDeleteByName($name)
    {
        return $this->tenant->where('name', $name)->first()->delete();
    }
}
{'fraction_non_alphanumeric': 0.11571334648257725, 'fraction_numerical': 0.0013149243918474688, 'mean_word_length': 2.9125964010282774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '7146947', 'n_tokens_mistral': 449, 'n_tokens_neox': 449, 'n_words': 92}