<commit_before>from nba_py import _api_scrape, _get_json, HAS_PANDAS
from nba_py.constants import *


class PlayerNotFoundException(Exception):
    pass


def get_player(first_name,
               last_name = None,
               season=CURRENT_SEASON,
               only_current=0,
               just_id=True):
    """
    Calls our PlayerList class to get a full list of players and then returns
    just an id if specified or the full row of player information

    Args:
        :first_name: First name of the player
        :last_name: Last name of the player (this is None if the player only has first name [Nene])
        :only_current: Only wants the current list of players
        :just_id: Only wants the id of the player

    Returns:
        Either the ID or full row of information of the player inputted

    Raises:
        :PlayerNotFoundException::
    """
    if last_name == None:
        name = first_name.lower()
    else:<commit_msg>change == to is None<commit_after>from nba_py import _api_scrape, _get_json, HAS_PANDAS
from nba_py.constants import *


class PlayerNotFoundException(Exception):
    pass


def get_player(first_name,
               last_name = None,
               season=CURRENT_SEASON,
               only_current=0,
               just_id=True):
    """
    Calls our PlayerList class to get a full list of players and then returns
    just an id if specified or the full row of player information

    Args:
        :first_name: First name of the player
        :last_name: Last name of the player (this is None if the player only has first name [Nene])
        :only_current: Only wants the current list of players
        :just_id: Only wants the id of the player

    Returns:
        Either the ID or full row of information of the player inputted

    Raises:
        :PlayerNotFoundException::
    """
    if last_name is None:
        name = first_name.lower()
    else:
{'fraction_non_alphanumeric': 0.055122204888195525, 'fraction_numerical': 0.0010400416016640667, 'mean_word_length': 2.454219030520646, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4892449', 'n_tokens_mistral': 539, 'n_tokens_neox': 526, 'n_words': 215}