<commit_before><?php

namespace seregazhuk\PinterestBot\Api\Providers;

use LogicException;
use seregazhuk\PinterestBot\Api\Traits\UploadsImages;
use seregazhuk\PinterestBot\Exceptions\AuthFailed;
use seregazhuk\PinterestBot\Helpers\UrlBuilder;

class User extends Provider
{
    use UploadsImages;

    /**
     * @var array
     */
    protected $loginRequiredFor = ['profile', 'convertToBusiness'];

    const REGISTRATION_COMPLETE_EXPERIENCE_ID = '11:10105';
    const ACCOUNT_TYPE_OTHER = 'other';

    /**
     * Updates or returns user profile info. Gets associative array as a param. Available keys of array are:<commit_msg>fix: user provider methods login control<commit_after><?php

namespace seregazhuk\PinterestBot\Api\Providers;

use LogicException;
use seregazhuk\PinterestBot\Helpers\UrlBuilder;
use seregazhuk\PinterestBot\Exceptions\AuthFailed;
use seregazhuk\PinterestBot\Api\Traits\UploadsImages;

class User extends Provider
{
    use UploadsImages;

    /**
     * @var array
     */
    protected $loginRequiredFor = [
        'profile',
        'convertToBusiness',
        'changePassword',
        'isBanned',
        'deactivate',
        'getUserName'
    ];

    const REGISTRATION_COMPLETE_EXPERIENCE_ID = '11:10105';
    const ACCOUNT_TYPE_OTHER = 'other';

    /**
     * Updates or returns user profile info. Gets associative array as a param. Available keys of array are:
{'fraction_non_alphanumeric': 0.09188034188034189, 'fraction_numerical': 0.009971509971509971, 'mean_word_length': 3.714765100671141, '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': '211039', 'n_tokens_mistral': 459, 'n_tokens_neox': 440, 'n_words': 100}