<commit_before><?php
 
namespace Spiffy\Inject\Loader;

use Spiffy\Inject\Annotation;
use Spiffy\Inject\Injector;
use Spiffy\Inject\Metadata\Metadata;

class ArrayLoader implements Loader
{
    /**
     * {@inheritDoc}
     */
    public function load(Injector $i, Metadata $metadata)
    {                
        $i->nject(
            $metadata->getName(),
            [
                $metadata->getClassName(),
                $this->buildConstructor($metadata),
                $this->buildMethods($metadata)
            ]
        );
    }

    /**
     * @param Metadata $metadata
     * @return array
     */
    private function buildConstructor(Metadata $metadata)
    {
        $constructor = [];
        foreach ($metadata->getConstructor() as $annotation) {
            $value = $this->prepareValueFromAnnotation($annotation);

            if (!$value) {
                continue;
            }

            $constructor[] = $value;
        }
        
        return $constructor;
    }
<commit_msg>Whitespace on end of line<commit_after><?php
 
namespace Spiffy\Inject\Loader;

use Spiffy\Inject\Annotation;
use Spiffy\Inject\Injector;
use Spiffy\Inject\Metadata\Metadata;

class ArrayLoader implements Loader
{
    /**
     * {@inheritDoc}
     */
    public function load(Injector $i, Metadata $metadata)
    {
        $i->nject(
            $metadata->getName(),
            [
                $metadata->getClassName(),
                $this->buildConstructor($metadata),
                $this->buildMethods($metadata)
            ]
        );
    }

    /**
     * @param Metadata $metadata
     * @return array
     */
    private function buildConstructor(Metadata $metadata)
    {
        $constructor = [];
        foreach ($metadata->getConstructor() as $annotation) {
            $value = $this->prepareValueFromAnnotation($annotation);

            if (!$value) {
                continue;
            }

            $constructor[] = $value;
        }
        
        return $constructor;
    }

{'fraction_non_alphanumeric': 0.12067260138476756, 'fraction_numerical': 0.0, 'mean_word_length': 1.730094466936572, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '5870257', 'n_tokens_mistral': 542, 'n_tokens_neox': 541, 'n_words': 100}