def restore(self, ignore_errors=None):
        ignore_errors = ignore_errors if ignore_errors is not None else False
        self._assert_requirements()
        caskbrew = Brew(True, self.debug, self.verbose)
        homebrew = Brew(False, self.debug, self.verbose)

        bootstrap = self.read_bootstrap()
        casks = bootstrap.get("casks", [])
        dependencies = bootstrap.get("dependencies", {})

        self.run_scripts(before=True)

        for tap in bootstrap.get("taps", []):
            homebrew.tap(tap)

        outdated = homebrew.outdated()

        for formula in bootstrap.get("formulas", []):
            if formula in dependencies:
                deps = dependencies[formula]
                deps = deps if isinstance(deps, list) else [deps]

                # Currently only cask dependencies are supported.
                deps = (dep for dep in deps if dep.startswith("casks/"))

                for dep in deps:
                    cask = dep.split("/")[1]
                    print(tty.progress(
                        "Installing {0} dependency for {1}").format(
                            cask, formula
                        )
                    )

                    caskbrew.safe_install(cask, ignore_errors)
                    del casks[casks.index(cask)]

            homebrew.safe_install(formula, ignore_errors, outdated in formula)

        for cask in casks:
            caskbrew.safe_install(cask, ignore_errors)

        self.relink()
        self.apply_defaults()
        self.apply_icons()
        self.run_scripts(after=True)
dataset/ETHPy150Open msanders/cider/cider/core.py/Cider.restore/swapped operands of `in`