<commit_before>from P4_sandbox import helper_functions as hf

def check_for_outside_blotches(data):
    """Currently simply takes maximum radius of blotch and adds/subtracts from x/y."""
    # pixel coordinate maximum in x:
    right_side = 840
    cols = 'radius_1 radius_2'.split()
    #define length of all data
    no_all = data.shape[0]
    no_off_right = ((blotches.x - blotches[cols].max(axis=1)) > 840).value_counts()[True]
    return no_off_right/float(no_all)<commit_msg>fixing bugs and refactoring to planet4<commit_after>
def check_for_outside_blotches(data):
    """takes maximum radius of blotch and adds/subtracts from x/y."""
    # pixel coordinate maximum in x:
    right_side = 840
    cols = 'radius_1 radius_2'.split()
    #define length of all data
    no_all = data.shape[0]
    no_off_right = ((data.x - data[cols].
                    max(axis=1)) > right_side).value_counts()[True]
    return no_off_right/float(no_all)
{'fraction_non_alphanumeric': 0.10805084745762712, 'fraction_numerical': 0.020127118644067795, 'mean_word_length': 3.701492537313433, 'pattern_counts': {'":': 0, '<': 3, '<?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': '631285', 'n_tokens_mistral': 332, 'n_tokens_neox': 315, 'n_words': 82}