<commit_before><?php
namespace Assure;

class EncodedUri
{
    publci function assure(&$value)
    {
        if (!preg_match("@^[a-zA-Z0-9%+-_/]*$@", $value)) {
            $result = array();
            foreach (explode('/', $value) as $part) {
                $result[] = urlencode($part);
            }

            $value = implode('/', $result);
        }
    }
}
<commit_msg>fix typo in method declaration<commit_after><?php
namespace Assure;

class EncodedUri
{
    public function assure(&$value)
    {
        if (!preg_match("@^[a-zA-Z0-9%+-_/]*$@", $value)) {
            $result = array();
            foreach (explode('/', $value) as $part) {
                $result[] = urlencode($part);
            }

            $value = implode('/', $result);
        }
    }
}

{'fraction_non_alphanumeric': 0.18998716302952504, 'fraction_numerical': 0.005134788189987163, 'mean_word_length': 1.8363636363636364, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3670479', 'n_tokens_mistral': 262, 'n_tokens_neox': 254, 'n_words': 50}