<commit_before><?php

namespace TheIconic\Tracking\GoogleAnalytics\Parameters;

abstract class CompoundParameter
{
    protected $parameterNameMapper = [];

    protected $parameters = [];

    public function getParameters()
    {
        return $this->parameters;
    }

    protected function saveCompoundParameterData(array $compoundData)
    {
        foreach ($compoundData as $name => $value) {
            $matchExists = false;
            foreach ($this->parameterNameMapper as $regex => $parameterName) {
                if (preg_match($regex, $name, $matches) === 1) {
                    $dynamicName = '';

                    if (isset($matches[1])) {
                        $dynamicName = $matches[1];
                    }

                    $matchExists = true;
                    $this->parameters[$parameterName . $dynamicName] = $value;

                    break;
                }
            }<commit_msg>Changing variable name<commit_after><?php

namespace TheIconic\Tracking\GoogleAnalytics\Parameters;

abstract class CompoundParameter
{
    protected $parameterNameMapper = [];

    protected $parameters = [];

    public function getParameters()
    {
        return $this->parameters;
    }

    protected function saveCompoundParameterData(array $compoundData)
    {
        foreach ($compoundData as $name => $value) {
            $matchExists = false;
            foreach ($this->parameterNameMapper as $regex => $parameterName) {
                if (preg_match($regex, $name, $matches) === 1) {
                    $parameterLastIndex = '';

                    if (isset($matches[1])) {
                        $parameterLastIndex = $matches[1];
                    }

                    $matchExists = true;
                    $this->parameters[$parameterName . $parameterLastIndex] = $value;

                    break;
                }
            }
{'fraction_non_alphanumeric': 0.10876451953537487, 'fraction_numerical': 0.0031678986272439284, 'mean_word_length': 1.7583697234352256, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5508966', 'n_tokens_mistral': 479, 'n_tokens_neox': 445, 'n_words': 96}