<commit_before># edited by: <NAME>
# last updated: 3/5/2013
# fixationed appalling problem in regionCheck

# A function is added for computing first-pass skip -- Wing-Yee Chow (3/6/2013)


def region_check(region, fixationX, fixationY):
    '''Takes a region in the form [[Xstart, Ystart],[Xend, Yend]] and a pair of 
    coordinates for a fixation. It then checks where the coordinates are with
    respect to the region.
    Depending on where that is returns 'within', 'before' or 'after'.
    '''<commit_msg>added module docstring and initial comment<commit_after>'''Module to house functions that calculate eye-tracking measures.
'''
# CHANGELOG
# edited by: <NAME>
# last updated: 3/5/2013
# fixationed appalling problem in regionCheck
# A function is added for computing first-pass skip -- Wing-Yee Chow (3/6/2013)
# 5/2014 - 6/2014 by <NAME>
# rewrote the measure functions and moved cutoff filtering to another script
# added two new measures: single fixation and probability of rereading


def region_check(region, fixationX, fixationY):
    '''Takes a region in the form [[Xstart, Ystart],[Xend, Yend]] and a pair of 
    coordinates for a fixation. It then checks where the coordinates are with
    respect to the region.
    Depending on where that is returns 'within', 'before' or 'after'.
    '''
{'fraction_non_alphanumeric': 0.09153318077803203, 'fraction_numerical': 0.02593440122044241, 'mean_word_length': 4.046153846153846, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3548744', 'n_tokens_mistral': 408, 'n_tokens_neox': 363, 'n_words': 170}