<commit_before><?php

declare(strict_types=1);

/*
 * This file is part of Symplify
 * Copyright (c) 2016 <NAME> (http://tomasvotruba.cz).
 */

namespace Symplify\PHP7_Sculpin\Source\SourceFileFilter;

use SplFileInfo;
use Symplify\PHP7_Sculpin\Contract\Source\SourceFileFilter\SourceFileFilterInterface;
use Symplify\PHP7_Sculpin\Source\SourceFileTypes;

final class StaticSourceFilter implements SourceFileFilterInterface
{
    public function getName() : string
    {
        return SourceFileTypes::STATIC;
    }

    public function matchesFileSource(SplFileInfo $fileInfo) : bool
    {
        return in_array($fileInfo->getExtension(), ['png', 'jpg', 'svg', 'css', 'ico']);<commit_msg>[PHP7_Sculpin] improve StaticSourceFilter<commit_after><?php

declare(strict_types=1);

/*
 * This file is part of Symplify
 * Copyright (c) 2016 <NAME> (http://tomasvotruba.cz).
 */

namespace Symplify\PHP7_Sculpin\Source\SourceFileFilter;

use SplFileInfo;
use Symplify\PHP7_Sculpin\Contract\Source\SourceFileFilter\SourceFileFilterInterface;
use Symplify\PHP7_Sculpin\Source\SourceFileTypes;

final class StaticSourceFilter implements SourceFileFilterInterface
{
    public function getName() : string
    {
        return SourceFileTypes::STATIC;
    }

    public function matchesFileSource(SplFileInfo $fileInfo) : bool
    {
        return in_array($fileInfo->getExtension(), ['png', 'jpg', 'svg', 'css', 'ico', '']);
{'fraction_non_alphanumeric': 0.11652542372881355, 'fraction_numerical': 0.012005649717514125, 'mean_word_length': 5.004237288135593, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '983883', 'n_tokens_mistral': 463, 'n_tokens_neox': 434, 'n_words': 89}