<commit_before><?php
namespace Concrete\Core\Asset;

use Concrete\Core\Foundation\Object as Object;
use Concrete\Core\Package\Package;

class AssetList
{
    /**
     * @var null|self
     */
    private static $loc = null;

    /**
     * @var array Array of assets with type, version, and handle
     */
    public $assets = array();

    /**
     * @var array map<handle, AssetGroup>
     */
    public $assetGroups = array();

    public function getRegisteredAssets()
    {
        return $this->assets;
    }

    /**
     * @return AssetList
     */
    public static function getInstance()
    {
        if (null === self::$loc) {
            self::$loc = new self;
        }
        return self::$loc;
    }
<commit_msg>Feature: Add accessor method to get registered assetgroups<commit_after><?php
namespace Concrete\Core\Asset;

use Concrete\Core\Foundation\Object as Object;
use Concrete\Core\Package\Package;

class AssetList
{
    /**
     * @var null|self
     */
    private static $loc = null;

    /**
     * @var array Array of assets with type, version, and handle
     */
    public $assets = array();

    /**
     * @var AssetGroup[] map<handle, AssetGroup>
     */
    public $assetGroups = array();

    public function getRegisteredAssets()
    {
        return $this->assets;
    }

    /**
     * @return \Concrete\Core\Asset\AssetGroup[]
     */
    public function getRegisteredAssetGroups()
    {
        return $this->assetGroups;
    }

    /**
     * @return AssetList
     */
    public static function getInstance()
    {
        if (null === self::$loc) {
            self::$loc = new self;
        }
        return self::$loc;
    }

{'fraction_non_alphanumeric': 0.1281437125748503, 'fraction_numerical': 0.0, 'mean_word_length': 2.0944444444444446, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '2254806', 'n_tokens_mistral': 502, 'n_tokens_neox': 493, 'n_words': 126}