def get_uncommitted_changes(self):
        uncommitted = {
            'fields': self.get_fields() - self.get_fields('HEAD'),
            'new_comment': self.get_new_comment(ready=False),
            'links': self.get_links('HEAD') - self.get_links(),
        }

        new_files = self.run_git_command(
            'ls-files', '-o', failure_ok=True
        ).split('\n')
        modified_files = self.run_git_command(
            'ls-files', '-m', failure_ok=True
        ).split('\n')
        uncommitted['files'] = self.filter_ignored_files(
            [
                filename for filename in new_files + modified_files
                if filename
            ],
            constants.LOCAL_ONLY_FILE,
            constants.GIT_IGNORE_FILE,
            constants.GIT_EXCLUDE_FILE,
        )

        return uncommitted
dataset/ETHPy150Open coddingtonbear/jirafs/jirafs/ticketfolder.py/TicketFolder.get_uncommitted_changes/swapped operands of `-`