<commit_before><?php

namespace Steam\Api;

use Steam\Api\Exception\ApiNotImplementedException;
use Steam\Api\Exception\InsufficientParameters;
use Steam\Steam;

class Economy extends Steam
{
    const ENDPOINT_BASE = 'ISteamEconomy/';

    public function getAssetClassInfo(array $classIds = array(), $language = 'en')
    {
        $appId = $this->getAdapter()->getConfig()->getAppId();

        if(empty($appId))
        {
            throw new InsufficientParameters('You need to set a appId in the config to use this method');
        }

        $params = array(
            'appid' => $appId,
            'language' => $language,
            'class_count' => count($classIds),
        );

        $i = 0;

        foreach($classIds as $classId)
        {
            $params['classid' . $i] = $classId;
            $i++;
        }

        $url = self::ENDPOINT_BASE . 'GetAssetClassInfo/v0001';

        return $this->getAdapter()->request($url, $params)->getParsedBody();
    }

    public function getAssetPrices($language = 'en', $currency = null)
    {
        $appId = $this->getAdapter()->getConfig()->getAppId();

        if(empty($appId))
        {
            throw new InsufficientParameters('You need to set a appId in the config to use this method');
        }
<commit_msg>added comments to economy class<commit_after><?php

namespace Steam\Api;

use Steam\Api\Exception\InsufficientParameters;
use Steam\Steam;

class Economy extends Steam
{
    const ENDPOINT_BASE = 'ISteamEconomy/';

    /**
     * @link http://wiki.teamfortress.com/wiki/WebAPI/GetAssetClassInfo
     *
     * @param array $classIds
     * @param string $language
     *
     * @return mixed
     * @throws Exception\InsufficientParameters
     */
    public function getAssetClassInfo(array $classIds = array(), $language = 'en')
    {
        $appId = $this->getAdapter()->getConfig()->getAppId();

        if(empty($appId))
        {
            throw new InsufficientParameters('You need to set a appId in the config to use this method');
        }

        $params = array(
            'appid' => $appId,
            'language' => $language,
            'class_count' => count($classIds),
        );

        $i = 0;

        foreach($classIds as $classId)
        {
            $params['classid' . $i] = $classId;
            $i++;
        }

        $url = self::ENDPOINT_BASE . 'GetAssetClassInfo/v0001';

        return $this->getAdapter()->request($url, $params)->getParsedBody();
    }

    /**
     * @link http://wiki.teamfortress.com/wiki/WebAPI/GetAssetPrices
     *
     * @param string $language
     * @param null $currency
     *
     * @return mixed
     * @throws Exception\InsufficientParameters
     */
    public function getAssetPrices($language = 'en', $currency = null)
    {
        $appId = $this->getAdapter()->getConfig()->getAppId();

        if(empty($appId))
        {
            throw new InsufficientParameters('You need to set a appId in the config to use this method');
        }

{'fraction_non_alphanumeric': 0.13421926910299004, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 2.2799564270152506, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '2328469', 'n_tokens_mistral': 896, 'n_tokens_neox': 869, 'n_words': 202}