<commit_before><?php
// Copyright (c) 2019 by <NAME>. (MIT License)

declare(strict_types=1);

namespace TPawl\LiTE\Factories;

use TPawl\LiTE\Filter\FilterInterface;
use TPawl\LiTE\Expressions\TemplateExpressionInterface;
use TPawl\LiTE\Expressions\VariableExpression;
use TPawl\LiTE\Filter\Filter;

class Factories
{
    public static function createVariableExpression(
        string $name, FilterInterface $filter): TemplateExpressionInterface
    {
        return new VariableExpression($name, $filter);
    }
    
    /**
     * @return \TPawl\LiTE\Filter\FilterInterface
     */
    public static function createFilter(): FilterInterface
    {
        return new Filter();
    }
}<commit_msg>Update Factories.php<commit_after><?php
// Copyright (c) 2019 by <NAME>. (MIT License)

declare(strict_types=1);

namespace TPawl\LiTE\Factories;

use TPawl\LiTE\Filter\FilterInterface;
use TPawl\LiTE\Expressions\TemplateExpressionInterface;
use TPawl\LiTE\Expressions\VariableExpression;
use TPawl\LiTE\Miscellaneous\ViewHelperCallData;
use TPawl\LiTE\Expressions\ViewHelperExpression;
use TPawl\LiTE\Filter\Filter;

class Factories
{
    public static function createVariableExpression(
        string $name, FilterInterface $filter): TemplateExpressionInterface
    {
        return new VariableExpression($name, $filter);
    }
    
    public static function createViewHelperExpression(
        ViewHelperCallData $viewHelperCallData, FilterInterface $filter): TemplateExpressionInterface
    {
        return new ViewHelperExpression($viewHelperCallData, $filter);
    }
    
    /**
     * @return \TPawl\LiTE\Filter\FilterInterface
     */
    public static function createFilter(): FilterInterface
    {
        return new Filter();
    }
}
{'fraction_non_alphanumeric': 0.09553775743707094, 'fraction_numerical': 0.005720823798627002, 'mean_word_length': 3.926760563380282, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '940432', 'n_tokens_mistral': 527, 'n_tokens_neox': 499, 'n_words': 106}