<commit_before>"""
Geary's C statistic for spatial autocorrelation
"""
__author__  = "<NAME> <<EMAIL>> "
from pysal.common import *
__all__ = ['Geary']

PERMUTATIONS=999

class Geary:
    """
    Global Geary C Autocorrelation statistic
    
    Parameters
    ----------
    y              : array
    w              : W
                     spatial weights 
    transformation : string
                     weights transformation, default is row-standardized
                     "R". Other options include "B": binary, "D":
                     doubly-standardized, "U": untransformed (general
                     weights), "V": variance-stabilizing.
    permutations   : int
                     number of random permutations for calculation of
                     pseudo-p_values

    Attributes
    ----------
    y              : array
                     original variable
    w              : W
                     spatial weights
    permutations   : int
                     number of permutations
    C              : float
                     value of statistic
    EC             : float
                     expected value
    VC             : float<commit_msg>- fixing bug 144<commit_after>"""
Geary's C statistic for spatial autocorrelation
"""
__author__  = "<NAME> <<EMAIL>> "
from pysal.common import *
__all__ = ['Geary']

PERMUTATIONS=999

class Geary:
    """
    Global Geary C Autocorrelation statistic
    
    Parameters
    ----------
    y              : array
    w              : W
                     spatial weights 
    transformation : string
                     weights transformation, default is binary.
                     Other options include "R": row-standardized, "D":
                     doubly-standardized, "U": untransformed (general
                     weights), "V": variance-stabilizing.
    permutations   : int
                     number of random permutations for calculation of
                     pseudo-p_values

    Attributes
    ----------
    y              : array
                     original variable
    w              : W
                     spatial weights
    permutations   : int
                     number of permutations
    C              : float
                     value of statistic
    EC             : float
                     expected value
    VC             : float
{'fraction_non_alphanumeric': 0.07327403642524354, 'fraction_numerical': 0.0038119440914866584, 'mean_word_length': 1.1433756805807622, 'pattern_counts': {'":': 8, '<': 9, '<?xml version=': 0, '>': 9, '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': '5353316', 'n_tokens_mistral': 575, 'n_tokens_neox': 520, 'n_words': 173}