Gets version

        :param diff_to_increase_ratio: Ratio to convert number of changes into
        :return: Version of this code, based on commits diffs

def get_version(self, diff_to_increase_ratio):
        """Gets version

        :param diff_to_increase_ratio: Ratio to convert number of changes into
        :return: Version of this code, based on commits diffs
        """
        diffs = self.get_diff_amounts()
        version = Version()

        for diff in diffs:
            version.increase_by_changes(diff, diff_to_increase_ratio)

        return version