<commit_before><?php

/*
 * Copyright (c) 2016 Refinery29, Inc.
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Refinery29\Test\Util\DataProvider;

use Generator;

interface DataProviderInterface
{
    /**
     * @return array|Generator
     */
    public function data();
}<commit_msg>Fix: Broaden allowed return values<commit_after><?php

/*
 * Copyright (c) 2016 Refinery29, Inc.
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace Refinery29\Test\Util\DataProvider;

use Traversable;

interface DataProviderInterface
{
    /**
     * This method should return an array or a Traversable, iterating over which should return an array of arguments to
     * pass to a test method that makes use of the concrete data provider.
     *
     * @return array|Traversable
     */
    public function data();
}
{'fraction_non_alphanumeric': 0.08056394763343404, 'fraction_numerical': 0.016112789526686808, 'mean_word_length': 3.518181818181818, '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': '7380394', 'n_tokens_mistral': 276, 'n_tokens_neox': 264, 'n_words': 108}