def get_status(self, stats, diff):
        additions = stats[0]
        deletions = stats[1]
        if additions > 0 and deletions == 0:
            status = "added"
        elif additions == 0 and deletions > 0:
            status = "deleted"
        elif additions > 0 and deletions > 0:
            status = "modified"
        else:
            try:
                if diff.new_file:
                    status = "added"
                elif diff.deleted_file:
                    status = "deleted"
                elif additions == 0 and deletions == 0:
                    status = "added"
                    #self.logger.warning("GitQuerier: addition and deletion = 0 - diff: " + str(diff))
                    self.logger.warning("GitQuerier: addition and deletion = 0")
                else:
                    status = "modified"
            except:
                status = "modified"

        return status
dataset/ETHPy150Open SOM-Research/Gitana/gitquerier.py/GitQuerier.get_status/original