<commit_before>
{{alias}}( x, p )
    Evaluates the probability mass function (PMF) for a Bernoulli distribution
    with success probability `p` at a value `x`.

    If provided `NaN` as any argument, the function returns `NaN`.

    If `p < 0` or `p > 1`, the function returns `NaN`.

    Parameters
    ----------
    x: number
        Input value.

    p: number
        Success probability.

    Returns
    -------
    out: number
        Evaluated PMF.

    Examples
    --------
    > var y = {{alias}}( 4.0, 0.3 )
    ~0.072
    > y = {{alias}}( 2.0, 0.7 )
    ~0.063
    > y = {{alias}}( -1.0, 0.5 )
    0.0
    > y = {{alias}}( 0.0, NaN )
    NaN
    > y = {{alias}}( NaN, 0.5 )
    NaN
    // Invalid success probability:
    > y = {{alias}}( 2.0, 1.5 )
    NaN


{{alias}}.factory( p )
    Returns a function for evaluating the probability mass function (PMF) of a
    Bernoulli distribution with success probability `p`.

    Parameters
    ----------
    p: number
        Success probability.

    Returns
    -------
    pmf: Function
        Probability mass function (PMF).

    Examples
    --------
    > var mypmf = {{alias}}.factory( 0.5 );
    > var y = mypmf( 3.0 )
    0.0625
    > y = mypmf( 1.0 )
    0.25

    See Also
    --------
<commit_msg>Fix arguments and update return values<commit_after>
{{alias}}( x, p )
    Evaluates the probability mass function (PMF) for a Bernoulli distribution
    with success probability `p` at a value `x`.

    If provided `NaN` as any argument, the function returns `NaN`.

    If `p < 0` or `p > 1`, the function returns `NaN`.

    Parameters
    ----------
    x: number
        Input value.

    p: number
        Success probability.

    Returns
    -------
    out: number
        Evaluated PMF.

    Examples
    --------
    > var y = {{alias}}( 1.0, 0.3 )
    0.3
    > y = {{alias}}( 0.0, 0.7 )
    0.3
    > y = {{alias}}( -1.0, 0.5 )
    0.0
    > y = {{alias}}( 0.0, NaN )
    NaN
    > y = {{alias}}( NaN, 0.5 )
    NaN
    // Invalid success probability:
    > y = {{alias}}( 0.0, 1.5 )
    NaN


{{alias}}.factory( p )
    Returns a function for evaluating the probability mass function (PMF) of a
    Bernoulli distribution with success probability `p`.

    Parameters
    ----------
    p: number
        Success probability.

    Returns
    -------
    pmf: Function
        Probability mass function (PMF).

    Examples
    --------
    > var mypmf = {{alias}}.factory( 0.5 );
    > var y = mypmf( 1.0 )
    0.5
    > y = mypmf( 0.0 )
    0.5

    See Also
    --------

{'fraction_non_alphanumeric': 0.16399843811011325, 'fraction_numerical': 0.03279968762202265, 'mean_word_length': 1.587878787878788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '4670961', 'n_tokens_mistral': 894, 'n_tokens_neox': 816, 'n_words': 283}