data/feature_extraction.py
def compute_avg_count(lst: str, pr_ids: pd.Series) -> float:
        """Computes the average count of the list.

        Args:
            lst: A str of list representation.
            pr_ids: A pandas Series of pull request ids.

        Returns: A float indicating the average count of the list.
        """
        if pd.isna(lst):
            return 0.0
        if len(pr_ids) == 0:
            return 0.0
        return len(eval(lst)) / len(pr_ids)
Computes the average count of the list.

        Args:
            lst: A str of list representation.
            pr_ids: A pandas Series of pull request ids.

        Returns: A float indicating the average count of the list.
        
Computes the average count of the list.
Computes the average count of the list .
def compute_avg_count(lst: str, pr_ids: pd.Series) -> float:
        if pd.isna(lst):
            return 0.0
        if len(pr_ids) == 0:
            return 0.0
        return len(eval(lst)) / len(pr_ids)
def compute_avg_count ( lst : str , pr_ids : pd . Series ) -> float : if pd . isna ( lst ) : return 0.0 if len ( pr_ids ) == 0 : return 0.0 return len ( eval ( lst ) ) / len ( pr_ids )
Computes the average count of the list.
Computes the average count of the list .
"""Computes the average count of the list.

        Args:
            lst: A str of list representation.
            pr_ids: A pandas Series of pull request ids.

        Returns: A float indicating the average count of the list.
        """
lst
str
A str of list representation.
A str of list representation .
pr_ids
pd.Series
A pandas Series of pull request ids.
A pandas Series of pull request ids .