data/file_level_transformation.py
def _get_value_dict(self, datum: pd.Series) -> Tuple[dict, dict]:
        """Build the file related values dict and pull request related dict.

        This function takes in a panda Series and returns the pull request
        related values dict and the file related values dict

        Args:
            datum: A pandas Series that holds a piece of datum of
                pull request level signal.

        Returns:
            A tuple of two dicts, the pull request related signals values and
            the file related signals values.
        """
        pr_related_values = {}
        for column in self._pr_related_columns:
            pr_related_values[column] = \
                self._pr_related_columns[column](datum[column])

        file_related_values = {}
        for column in self._file_related_columns:
            file_related_values[column] = \
                self._file_related_columns[column](datum[column])
        return pr_related_values, file_related_values
Build the file related values dict and pull request related dict.

        This function takes in a panda Series and returns the pull request
        related values dict and the file related values dict

        Args:
            datum: A pandas Series that holds a piece of datum of
                pull request level signal.

        Returns:
            A tuple of two dicts, the pull request related signals values and
            the file related signals values.
        
Build the file related values dict and pull request related dict.
This function takes in a panda Series and returns the pull request
related values dict and the file related values dict
Build the file related values dict and pull request related dict . This function takes in a panda Series and returns the pull request related values dict and the file related values dict
def _get_value_dict(self, datum: pd.Series) -> Tuple[dict, dict]:
        pr_related_values = {}
        for column in self._pr_related_columns:
            pr_related_values[column] = \
                self._pr_related_columns[column](datum[column])
        file_related_values = {}
        for column in self._file_related_columns:
            file_related_values[column] = \
                self._file_related_columns[column](datum[column])
        return pr_related_values, file_related_values
def _get_value_dict ( self , datum : pd . Series ) -> Tuple [ dict , dict ] : pr_related_values = { } for column in self . _pr_related_columns : pr_related_values [ column ] = self . _pr_related_columns [ column ] ( datum [ column ] ) file_related_values = { } for column in self . _file_related_columns : file_related_values [ column ] = self . _file_related_columns [ column ] ( datum [ column ] ) return pr_related_values , file_related_values
Build the file related values dict and pull request related dict.
Build the file related values dict and pull request related dict .
"""Build the file related values dict and pull request related dict.

        This function takes in a panda Series and returns the pull request
        related values dict and the file related values dict

        Args:
            datum: A pandas Series that holds a piece of datum of
                pull request level signal.

        Returns:
            A tuple of two dicts, the pull request related signals values and
            the file related signals values.
        """
A tuple of two dicts, the pull request related signals values and
the file related signals values.
A tuple of two dicts the pull request related signals values and the file related signals values .
self
datum
pd.Series
A pandas Series that holds a piece of datum of
pull request level signal.
A pandas Series that holds a piece of datum of pull request level signal .