<commit_before><?php
namespace Sh;

use Symfony\Component\Process\Process;

class Parser
{
    public function getCommandToProcess($name, $comandArgument = NULL)
    {
        if (is_null($comandArgument)) return $name;

        if (is_array($comandArgument)) {
            $comandArgument = implode(' ', $this->SurroundItemsWithSpacesWithQuotes($comandArgument));
        }

        return $name . ' ' . $comandArgument;
    }

    private function SurroundItemsWithSpacesWithQuotes($comandArgument)
    {
        return array_map(function ($item) {
            return strpos($item, ' ') !== FALSE ? "'{$item}'" : $item;
        }, $comandArgument);
    }
}
<commit_msg>function name error<commit_after><?php
namespace Sh;

use Symfony\Component\Process\Process;

class Parser
{
    public function getCommandToProcess($name, $comandArgument = NULL)
    {
        if (is_null($comandArgument)) return $name;

        if (is_array($comandArgument)) {
            $comandArgument = implode(' ', $this->surroundItemsWithSpacesWithQuotes($comandArgument));
        }

        return $name . ' ' . $comandArgument;
    }

    private function surroundItemsWithSpacesWithQuotes($comandArgument)
    {
        return array_map(function ($item) {
            return strpos($item, ' ') !== FALSE ? "'{$item}'" : $item;
        }, $comandArgument);
    }
}

{'fraction_non_alphanumeric': 0.13353115727002968, 'fraction_numerical': 0.0, 'mean_word_length': 3.051051051051051, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7440747', 'n_tokens_mistral': 406, 'n_tokens_neox': 401, 'n_words': 74}