AOI

Add Srcml to AOIs

def add_srcml_to_AOIs(
        aois_raw: pandas.core.frame.DataFrame,
      srcML_path: str
)->pd.dataframe:

Add srcML tags to AOIs dataframe and returns it. Check https://www.srcml.org/ for more information about srcML The files: rectangle.tsv and vehicle.tsv should be in the same directory as the code.

Parameters

Returns

pandas.DataFrame: AOI dataframe with srcML

Add Tokens to AOIs

def add_tokens_to_AOIs(
        file_path:str
      aois_raw: pandas.core.frame.DataFrame str
)->pd.dataframe:

Adds tokens from code files to aois dataframe and returns it.

Parameters

Returns

pandas.DataFrame: a dataframe of AOIs with token information

Find AOI

def find_aoi(
      eye_events: pd.Dataframe=pd.Dataframe(),
      eye_tracker_col: str = "eye_tracker",
      stimuli_module_col: str = "stimuli_module",
      stimuli_name_col: str = "stimuli_name", image: Image = None
      level: str = "sub_line", margin_height: int = 4, margin_width: int = 7
)->pd.Dataframe:

Adds tokens from code files to aois dataframe and returns it.

Parameters

Returns

pandas.DataFrame: a pandas DataFrame of area of interest detected by the method