<commit_before>#coding: utf-8

class Should(object):
    
    def __init__(self, negate=False):
        self._negate = negate
        self._is_thrown_by = False
        self._matchers_by_name = dict()
        self.__is()
    
    def _evaluate(self, value):
        if self._negate:
            return not value
        return value
    
    def _negate_str(self):
        if not self._negate:
            return 'not '
        return ''
    
    def __ror__(self, lvalue):
        self._lvalue = lvalue
        return self

    def __or__(self, rvalue):
        self._rvalue = rvalue
        return self._check_expectation()
    
    __rshift__ = __ror__
    __rlshift__ = __or__ 
    
    def __is(self):
        '''The default behavior for a should object, called on constructor'''
        self._func = lambda x, y: x is y
        self._error_message = '%s is %s%s'
    
    def _make_a_copy(self, func, error_message):
        clone = Should(self._negate)
        clone._is_thrown_by = self._is_thrown_by
        clone._matchers_by_name = self._matchers_by_name
        clone._func = func
        clone._error_message = error_message
        return clone
    
    @property
    def equal_to(self):
        return self._make_a_copy(func=lambda x, y: x == y, 
                                error_message='%s is %sequal to %s')
        
    @property<commit_msg>changed from __is to __set_default_matcher<commit_after>#coding: utf-8

class Should(object):
    
    def __init__(self, negate=False):
        self._negate = negate
        self._is_thrown_by = False
        self._matchers_by_name = dict()
        self.__set_default_matcher()
    
    def _evaluate(self, value):
        if self._negate:
            return not value
        return value
    
    def _negate_str(self):
        if not self._negate:
            return 'not '
        return ''
    
    def __ror__(self, lvalue):
        self._lvalue = lvalue
        return self

    def __or__(self, rvalue):
        self._rvalue = rvalue
        return self._check_expectation()
    
    __rshift__ = __ror__
    __rlshift__ = __or__ 
    
    def __set_default_matcher(self):
        '''The default behavior for a should object, called on constructor'''
        self._func = lambda x, y: x is y
        self._error_message = '%s is %s%s'
    
    def _make_a_copy(self, func, error_message):
        clone = Should(self._negate)
        clone._is_thrown_by = self._is_thrown_by
        clone._matchers_by_name = self._matchers_by_name
        clone._func = func
        clone._error_message = error_message
        return clone
    
    @property
    def equal_to(self):
        return self._make_a_copy(func=lambda x, y: x == y, 
                                error_message='%s is %sequal to %s')
        
    @property
{'fraction_non_alphanumeric': 0.08378088077336197, 'fraction_numerical': 0.0007160759040458289, 'mean_word_length': 1.9379600420609884, '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': '3052199', 'n_tokens_mistral': 876, 'n_tokens_neox': 863, 'n_words': 211}