<commit_before><?php

namespace mediasilo;

use mediasilo\MediaSiloAPI;
use mediasilo\http\WebClient;
use mediasilo\http\oauth\TwoLeggedOauthClient;
use mediasilo\http\oauth\OAuthException;
use mediasilo\config\Meta;
use mediasilo\http\MediaSiloResourcePaths;

class SystemAPI extends MediaSiloAPI
{
    public function __construct() {}

    public static function createFromHostCredentials($username, $password, $hostname, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->webClient = WebClient::createFromHostCredentials($username, $password, $hostname, $baseUrl);
        $instance->init();
        return $instance;
    }

    public static function createFromSession($session, $host, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->webClient = WebClient::createFromSession($session, $host, $baseUrl);
        $instance->init();
        return $instance;
    }

    public static function createFromApplicationConsumer($consumerKey, $consumerSecret, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->consumerKey = $consumerKey;
        $instance->consumerSecret = $consumerSecret;<commit_msg>Fixed bug where password reset classes weren't avaliable in system api<commit_after><?php

namespace mediasilo;

use mediasilo\MediaSiloAPI;
use mediasilo\http\WebClient;
use mediasilo\http\oauth\TwoLeggedOauthClient;
use mediasilo\http\oauth\OAuthException;
use mediasilo\config\Meta;
use mediasilo\http\MediaSiloResourcePaths;
use mediasilo\user\PasswordResetRequest;
use mediasilo\user\PasswordReset;

class SystemAPI extends MediaSiloAPI
{
    public function __construct() {}

    public static function createFromHostCredentials($username, $password, $hostname, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->webClient = WebClient::createFromHostCredentials($username, $password, $hostname, $baseUrl);
        $instance->init();
        return $instance;
    }

    public static function createFromSession($session, $host, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->webClient = WebClient::createFromSession($session, $host, $baseUrl);
        $instance->init();
        return $instance;
    }

    public static function createFromApplicationConsumer($consumerKey, $consumerSecret, $baseUrl = Meta::API_ROOT_URL) {
        $instance = new self();
        $instance->consumerKey = $consumerKey;
        $instance->consumerSecret = $consumerSecret;
{'fraction_non_alphanumeric': 0.11334913112164297, 'fraction_numerical': 0.0, 'mean_word_length': 4.400852878464819, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4710562', 'n_tokens_mistral': 728, 'n_tokens_neox': 716, 'n_words': 157}