<commit_before><?php

namespace allejo\DaPulse;

use allejo\DaPulse\Objects\ApiUser;

class PulseUser extends ApiUser
{
    const API_PREFIX = "users";

    public function __construct ($idOrArray)
    {
        if (!is_array($idOrArray))
        {
            $this->urlEndPoint = sprintf("%s/%d.json", parent::apiEndpoint(), $idOrArray);
        }

        parent::__construct($idOrArray);
    }

    public static function getUsers($params = array())
    {
        $url = sprintf("%s.json", parent::apiEndpoint());
        $users = self::sendGet($url, $params);
        $pulseUsers = array();

        foreach ($users as $user)
        {
            $pulseUsers[] = new ApiUser($user);
        }

        return $pulseUsers;
    }
}<commit_msg>Return a static<commit_after><?php

namespace allejo\DaPulse;

use allejo\DaPulse\Objects\ApiUser;

class PulseUser extends ApiUser
{
    const API_PREFIX = "users";

    public function __construct ($idOrArray)
    {
        if (!is_array($idOrArray))
        {
            $this->urlEndPoint = sprintf("%s/%d.json", parent::apiEndpoint(), $idOrArray);
        }

        parent::__construct($idOrArray);
    }

    public static function getUsers($params = array())
    {
        $url = sprintf("%s.json", parent::apiEndpoint());
        $users = self::sendGet($url, $params);
        $pulseUsers = array();

        foreach ($users as $user)
        {
            $pulseUsers[] = new static($user);
        }

        return $pulseUsers;
    }
}
{'fraction_non_alphanumeric': 0.14581939799331103, 'fraction_numerical': 0.0, 'mean_word_length': 2.4233409610983982, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3663011', 'n_tokens_mistral': 462, 'n_tokens_neox': 453, 'n_words': 92}