<commit_before><?php

class jQueryTmpl_Tag_EachStart implements jQueryTmpl_Tag
{
    public function getTokenType()
    {
        return 'EachStart';
    }

    public function getRegex()
    {
        return '/{{each.*?}}/is';
    }

    public function getNestingValue()
    {
        return array(0,1);
    }

    public function parseTag($rawTagString)
    {
        $matches = array();
        preg_match('/^{{each(\((.*?),(.*)\)(.*)|(.*))}}$/is', $rawTagString, $matches);

        if (trim($matches[3]) == '')
        {
            return array
            (
                'name' => trim($matches[1])
            );
        }

        // Matched optional params as well
        return array<commit_msg>More reliable way to determin regex matches<commit_after><?php

class jQueryTmpl_Tag_EachStart implements jQueryTmpl_Tag
{
    public function getTokenType()
    {
        return 'EachStart';
    }

    public function getRegex()
    {
        return '/{{each.*?}}/is';
    }

    public function getNestingValue()
    {
        return array(0,1);
    }

    public function parseTag($rawTagString)
    {
        $matches = array();
        preg_match('/^{{each(\((.*?),(.*)\)(.*)|(.*))}}$/is', $rawTagString, $matches);

        if (count($matches) == 6)
        {
            return array
            (
                'name' => trim($matches[1])
            );
        }

        // Matched optional params as well
        return array
{'fraction_non_alphanumeric': 0.1559696342305038, 'fraction_numerical': 0.005521048999309869, 'mean_word_length': 1.837573385518591, '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': '1180612', 'n_tokens_mistral': 443, 'n_tokens_neox': 421, 'n_words': 88}