<commit_before><?php

namespace Formulaic;

trait QueryHelper
{
    public function offsetGet($index)
    {
        foreach ((array)$this as $i => $element) {<commit_msg>force to strings so comparison works ((int)0 == (string)"bar" in php)<commit_after><?php

namespace Formulaic;

trait QueryHelper
{
    public function offsetGet($index)
    {
        $index = (string)$index;
        foreach ((array)$this as $i => $element) {
            $i = (string)$i;
{'fraction_non_alphanumeric': 0.13973799126637554, 'fraction_numerical': 0.002183406113537118, 'mean_word_length': 3.3714285714285714, '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': '2715275', 'n_tokens_mistral': 138, 'n_tokens_neox': 139, 'n_words': 39}