<commit_before><?php

namespace Destiny\Definitions\Components;

use Carbon\Carbon;
use Destiny\Collection;
use Destiny\Definitions\Definition;
use Destiny\Definitions\Manifest\DestinyClass;
use Destiny\Definitions\Manifest\Gender;
use Destiny\Definitions\Manifest\Race;
use Destiny\Definitions\Progression\Progression;
use Destiny\Definitions\Statistic;
use Destiny\Profile\Progression\FactionCollection;
use Destiny\Profile\Progression\MilestoneCollection;
use Destiny\Profile\Progression\ProgressionCollection;
use Destiny\Profile\StatCollection;
use Destiny\StatisticsCollection;

/**
 * Class Character.
 *
 * @property string $membershipId
 * @property int $membershipType
 * @property string $characterId
 * @property string $dateLastPlayed
 * @property int $minutesPlayedThisSession
 * @property int $minutesPlayedTotal
 * @property int $light
 * @property array $stats
 * @property string $raceHash
 * @property string $genderHash
 * @property string $classHash
 * @property int $raceType
 * @property int $classType
 * @property int $genderType
 * @property string $emblemPath
 * @property string $emblemBackgroundPath
 * @property string $emblemHash
 * @property array $levelProgression
 * @property int $baseCharacterLevel
 * @property float $percentToNextLevel
 * @property-read Progression $progression
 * @property-read DestinyClass $class
 * @property-read Race $race
 * @property-read Gender $gender
 * @property-read string $raceGender
 * @property-read StatCollection $combinedStats
 * @property-read \Destiny\Character\Inventory $inventory
 * @property-read ProgressionCollection $progressions
 * @property-read FactionCollection $factions
 * @property-read MilestoneCollection $milestones
 * @property-read StatisticsCollection $statsAll
 * @property-read StatisticsCollection $statsPvP
 * @property-read StatisticsCollection $statsPvE
 * @property-read Carbon $lastPlayed
 * @property-read string $percentLabel
 * @property-read float $lightPercentToNextLevel
 * @property-read string $lightPercentLabel
 * @property-read int $minutesPlayedActive
 */
class Character extends Definition
{
    protected $appends = [
        'progression',
        'combinedStats',
    ];

    const MAX_LIGHT = 350;

    // activities
    const MILESTONE_NIGHTFALL = '2171429505';
    const MILESTONE_STRIKES = '1142551194';

    // clan
    const MILESTONE_WEEKLYCLAN = '4253138191';
    const MILESTONE_XPCLAN = '3603098564';

    // pvp
    const MILESTONE_PVP = '342166397';
    const MILESTONE_CALLTOARMS = '202035466';
    const MILESTONE_TRIALS = '3551755444';<commit_msg>correct Trials hash<commit_after><?php

namespace Destiny\Definitions\Components;

use Carbon\Carbon;
use Destiny\Collection;
use Destiny\Definitions\Definition;
use Destiny\Definitions\Manifest\DestinyClass;
use Destiny\Definitions\Manifest\Gender;
use Destiny\Definitions\Manifest\Race;
use Destiny\Definitions\Progression\Progression;
use Destiny\Definitions\Statistic;
use Destiny\Profile\Progression\FactionCollection;
use Destiny\Profile\Progression\MilestoneCollection;
use Destiny\Profile\Progression\ProgressionCollection;
use Destiny\Profile\StatCollection;
use Destiny\StatisticsCollection;

/**
 * Class Character.
 *
 * @property string $membershipId
 * @property int $membershipType
 * @property string $characterId
 * @property string $dateLastPlayed
 * @property int $minutesPlayedThisSession
 * @property int $minutesPlayedTotal
 * @property int $light
 * @property array $stats
 * @property string $raceHash
 * @property string $genderHash
 * @property string $classHash
 * @property int $raceType
 * @property int $classType
 * @property int $genderType
 * @property string $emblemPath
 * @property string $emblemBackgroundPath
 * @property string $emblemHash
 * @property array $levelProgression
 * @property int $baseCharacterLevel
 * @property float $percentToNextLevel
 * @property-read Progression $progression
 * @property-read DestinyClass $class
 * @property-read Race $race
 * @property-read Gender $gender
 * @property-read string $raceGender
 * @property-read StatCollection $combinedStats
 * @property-read \Destiny\Character\Inventory $inventory
 * @property-read ProgressionCollection $progressions
 * @property-read FactionCollection $factions
 * @property-read MilestoneCollection $milestones
 * @property-read StatisticsCollection $statsAll
 * @property-read StatisticsCollection $statsPvP
 * @property-read StatisticsCollection $statsPvE
 * @property-read Carbon $lastPlayed
 * @property-read string $percentLabel
 * @property-read float $lightPercentToNextLevel
 * @property-read string $lightPercentLabel
 * @property-read int $minutesPlayedActive
 */
class Character extends Definition
{
    protected $appends = [
        'progression',
        'combinedStats',
    ];

    const MAX_LIGHT = 350;

    // activities
    const MILESTONE_NIGHTFALL = '2171429505';
    const MILESTONE_STRIKES = '1142551194';

    // clan
    const MILESTONE_WEEKLYCLAN = '4253138191';
    const MILESTONE_XPCLAN = '3603098564';

    // pvp
    const MILESTONE_PVP = '342166397';
    const MILESTONE_CALLTOARMS = '202035466';
    const MILESTONE_TRIALS = '2311040624';
{'fraction_non_alphanumeric': 0.09358081979891725, 'fraction_numerical': 0.02745552977571539, 'mean_word_length': 5.22503008423586, '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': '664582', 'n_tokens_mistral': 1626, 'n_tokens_neox': 1490, 'n_words': 361}