<commit_before><?php
/**
 * @license http://opensource.org/licenses/BSD-2-Clause BSD-2-Clause
 * @copyright Copyright (c) <NAME>
 */

namespace Mwop\App\Handler;

use Psr\Container\ContainerInterface;
use Zend\Expressive\Template\TemplateRendererInterface;

class HomePageHandlerFactory
{
    public function __invoke(ContainerInterface $container) : HomePageHandler
    {
        return new HomePageHandler(
            $container->get('config-homepage.posts'),
            $container->get('config-instagram.feed'),
            $container->get(TemplateRendererInterface::class)
        );<commit_msg>fix: get configuration service for HomePageHandlerFactory<commit_after><?php
/**
 * @license http://opensource.org/licenses/BSD-2-Clause BSD-2-Clause
 * @copyright Copyright (c) <NAME>
 */

namespace Mwop\App\Handler;

use Psr\Container\ContainerInterface;
use Zend\Expressive\Template\TemplateRendererInterface;

class HomePageHandlerFactory
{
    public function __invoke(ContainerInterface $container) : HomePageHandler
    {
        $config = $container->get('config');
        return new HomePageHandler(
            $config['homepage']['posts'] ?? [],
            $config['instagram']['feed'] ?? '',
            $container->get(TemplateRendererInterface::class)
        );
{'fraction_non_alphanumeric': 0.1305707584050039, 'fraction_numerical': 0.003127443315089914, 'mean_word_length': 3.81203007518797, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 10, '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': '2128568', 'n_tokens_mistral': 346, 'n_tokens_neox': 347, 'n_words': 61}