def get_results_hash(self, data, p_data, company_name):
        """Generate a hash value for BitSight statistics results.

        Args:
            data (dict): The data to be included in the hash.
            p_data (dict): Additional data, such as date and grade, to be included in the hash.
            company_name (str): The name of the company associated with the data.

        Raises:
            BitSightException: If an error occurs during the hashing process.

        Returns:
            str: The SHA-512 hash value generated for the combined data.
        """
        try:
            data["date"] = p_data.get("date")
            data["grade"] = p_data.get("grade")
            data["company_name"] = company_name
            data = json.dumps(data, sort_keys=True)
            result = hashlib.sha512(data.encode())
            result_hash = result.hexdigest()
            return result_hash
        except Exception as error:
            applogger.exception(
                "{} {} Error in hashing: {}".format(
                    self.logs_starts_with, ALERT_GRAPH_STATISTICS_FUNC_NAME, error
                )
            )
            raise BitSightException()
Generate a hash value for BitSight statistics results.

        Args:
            data (dict): The data to be included in the hash.
            p_data (dict): Additional data, such as date and grade, to be included in the hash.
            company_name (str): The name of the company associated with the data.

        Raises:
            BitSightException: If an error occurs during the hashing process.

        Returns:
            str: The SHA-512 hash value generated for the combined data.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/AlertsGraphStatisticsDetails/bitsight_statistics.py