<commit_before><?php

namespace Assetic\Asset;

/**
 * A collection of assets loaded by glob.
 *
 * @author <NAME> <<EMAIL>>
 */
class GlobAsset extends AssetCollection
{
    /**
     * Constructor.
     *
     * @param string $glob A glob path
     */
    public function __construct($glob, $filters = array())
    {
        $assets = array();
        if (false !== $paths = glob($glob)) {
            foreach ($paths as $path) {
                $assets[] = new FileAsset($path);
            }
        }

        parent::__construct($assets, $filters);
    }
}<commit_msg>Updated GlobAsset to also accept multiple globs as an array.<commit_after><?php

namespace Assetic\Asset;

/**
 * A collection of assets loaded by glob.
 *
 * @author <NAME> <<EMAIL>>
 */
class GlobAsset extends AssetCollection
{
    /**
     * Constructor.
     *
     * @param string|array $globs   A single glob path or array of paths
     * @param array        $filters An array of filters
     */
    public function __construct($globs, $filters = array())
    {
        $assets = array();
        foreach ((array) $globs as $glob) {
            if (false !== $paths = glob($glob)) {
                foreach ($paths as $path) {
                    $assets[] = new FileAsset($path);
                }
            }
        }

        parent::__construct($assets, $filters);
    }
}
{'fraction_non_alphanumeric': 0.13475699558173784, 'fraction_numerical': 0.0, 'mean_word_length': 1.973741794310722, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '5372796', 'n_tokens_mistral': 391, 'n_tokens_neox': 381, 'n_words': 114}