<commit_before><?php namespace Raspberry\Sensors;

use Raspberry\Interfaces\Sensor;
use MrRio\ShellWrap as sh;
use Raspberry\Pi;

class DHT11 implements Sensor
{

    private $scriptName = 'dht11.py';
    private $scriptPath;

    public function __construct() {
        $this->scriptPath = Pi::instance()->getDirectory();
    }

    public function read()
    {
        $read = sh::sudo('python', $this->sriptPath . '/' . $this->scriptName);

        $reading = explode('|', $read);

        return [
            'temperature' => $reading[0],
            'humidity' => $reading[1]
        ];
    }
}<commit_msg>variable name fix<commit_after><?php namespace Raspberry\Sensors;

use Raspberry\Interfaces\Sensor;
use MrRio\ShellWrap as sh;
use Raspberry\Pi;

class DHT11 implements Sensor
{

    private $scriptName = 'dht11.py';
    private $scriptPath;

    public function __construct() {
        $this->scriptPath = Pi::instance()->getDirectory();
    }

    public function read()
    {
        $read = sh::sudo('python', $this->scriptPath . '/' . $this->scriptName);

        $reading = explode('|', $read);

        return [
            'temperature' => $reading[0],
            'humidity' => $reading[1]
        ];
    }
}
{'fraction_non_alphanumeric': 0.1529698942229455, 'fraction_numerical': 0.009764035801464606, 'mean_word_length': 2.6283185840707963, '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': '1187240', 'n_tokens_mistral': 404, 'n_tokens_neox': 378, 'n_words': 82}