<commit_before><?php

namespace blink\sentry;

use Closure;
use blink\core\BaseObject;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ServerRequestInterface;
use Sentry\Integration\FrameContextifierIntegration;
use Sentry\Integration\RequestFetcherInterface;
use Sentry\Integration\RequestIntegration;
use Sentry\Severity;
use Sentry\State\HubInterface;
use Sentry\State\Scope;

/**
 * Class Sentry
 *
 * @package blink\sentry
 */
class Sentry extends BaseObject
{
    public $dsn;
    public $options = [];
    public $environments = ['prod', 'staging'];

    /**
     * @var HubInterface
     */
    private $_client;

    public function init()
    {
        $this->_client = $this->createClient();
    }

    protected function isEnabled()
    {
        return true;
        return in_array(app()->environment, $this->environments);
    }

    protected function fetchRequest(): ?ServerRequestInterface
    {
        return null;
    }

    protected function configureScope(Scope $scope): void 
    {<commit_msg>Fixed isEnabled()<commit_after><?php

namespace blink\sentry;

use Closure;
use blink\core\BaseObject;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ServerRequestInterface;
use Sentry\Integration\FrameContextifierIntegration;
use Sentry\Integration\RequestFetcherInterface;
use Sentry\Integration\RequestIntegration;
use Sentry\Severity;
use Sentry\State\HubInterface;
use Sentry\State\Scope;

/**
 * Class Sentry
 *
 * @package blink\sentry
 */
class Sentry extends BaseObject
{
    public $dsn;
    public $options = [];
    public $environments = ['prod', 'staging'];

    /**
     * @var HubInterface
     */
    private $_client;

    public function init()
    {
        $this->_client = $this->createClient();
    }

    protected function isEnabled()
    {
        return in_array(app()->environment, $this->environments);
    }

    protected function fetchRequest(): ?ServerRequestInterface
    {
        return null;
    }

    protected function configureScope(Scope $scope): void 
    {
{'fraction_non_alphanumeric': 0.1130690161527166, 'fraction_numerical': 0.0, 'mean_word_length': 3.4434782608695653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5166440', 'n_tokens_mistral': 607, 'n_tokens_neox': 596, 'n_words': 133}