<commit_before><?php

require_once '../lib/Qless/Worker.php';
require_once '../lib/Qless/Queue.php';
require_once '../lib/Qless/Client.php';
require_once 'TestWorkerImpl.php';

$queues = ['testQueue1','testQueue2'];
$client = new Qless\Client('localhost',6380);
$worker = new Qless\Worker("TestWorker_1", $queues, $client, 5);
<commit_msg>Support REDIS_HOST and REDIS_PORT environment variables<commit_after><?php

require_once '../lib/Qless/Worker.php';
require_once '../lib/Qless/Queue.php';
require_once '../lib/Qless/Client.php';
require_once 'TestWorkerImpl.php';

$queues = ['testQueue1','testQueue2'];
$REDIS_HOST = getenv('REDIS_HOST') ?: 'localhost';
$REDIS_PORT = getenv('REDIS_PORT') ?: 6380;

$client = new Qless\Client($REDIS_HOST, $REDIS_PORT);
$worker = new Qless\Worker("TestWorker_1", $queues, $client, 5);

{'fraction_non_alphanumeric': 0.18932038834951456, 'fraction_numerical': 0.019417475728155338, 'mean_word_length': 6.5, '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': '5482926', 'n_tokens_mistral': 304, 'n_tokens_neox': 296, 'n_words': 52}