<commit_before><?php
/**
 * Created by PhpStorm.
 * User: bryce
 * Date: 5/24/15
 * Time: 6:21 PM
 */

namespace WordWrap\AssetManager;


abstract class AssetType {

    /**
     * @var string the location of all the assets of this asset type
     */
    private $assetLocation;

    /**
     * @param $assetLocation string the locations of the assets for this type
     */
    function __construct($assetLocation) {
        $this->assetLocation = $assetLocation;
    }

    /**
     * @return string the locations
     */
    public function getAssetLocation() {
        return $this->assetLocation;
    }

    /**
     * override this to do anything before we dump the assets to the client
     */
    public abstract function onPreDump();

    /**
     * override this to do anything after we dump the assets to the client
     */
    public abstract function onPostDump();<commit_msg>added file extension to asset type wrapper<commit_after><?php
/**
 * Created by PhpStorm.
 * User: bryce
 * Date: 5/24/15
 * Time: 6:21 PM
 */

namespace WordWrap\AssetManager;


abstract class AssetType {

    /**
     * @var string the location of all the assets of this asset type
     */
    private $assetLocation;
    /**
     * @var string the extension of these assets
     */
    private $fileExtension;

    /**
     * @param $assetLocation string the locations of the assets for this type
     * @param $fileExtension string the extension of these assets
     */
    function __construct($assetLocation, $fileExtension) {
        $this->assetLocation = $assetLocation;
        $this->fileExtension = $fileExtension;
    }

    /**
     * @return string the location of all assets for this type
     */
    public function getAssetLocation() {
        return $this->assetLocation;
    }

    /**
     * @return string the file extension of all assets of this type
     */
    public function getFileExtension() {
        return $this->fileExtension;
    }

    /**
     * override this to do anything before we dump the assets to the client
     */
    public abstract function onPreDump();

    /**
     * override this to do anything after we dump the assets to the client
     */
    public abstract function onPostDump();
{'fraction_non_alphanumeric': 0.09221772379667116, 'fraction_numerical': 0.007197480881691408, 'mean_word_length': 2.448062015503876, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2117406', 'n_tokens_mistral': 610, 'n_tokens_neox': 586, 'n_words': 223}