def run(self, edit=None):
        if self.view.is_dirty():
            return status("Save the file first.")

        self.preview_opened = False
        in_file = self.view.file_name()
        in_tuple = file_path_tuple(in_file)
        ext = '.tmTheme'

        # Open up output panel and auto-finalize it when we are done
        with OutputPanel(self.view.window(), "csscheme") as out:

            # Determine our converter
            conv = tuple(c for c in converters.all if c.valid_file(in_file))
            if 1 > len(conv):
                out.write_line("Found multiple contenders for conversion.\n"
                               "If this happened to you, please tell the developer "
                               "(me) to add code for this case. Thanks.")
                return
            elif not conv:
                out.write_line("Couldn't match extension against a known converter.\n"
                               "Known extensions are: %s"
                               % ', '.join("." + c.ext for c in converters.all))
                return
            conv = conv[0]

            out.set_path(in_tuple.path)
            executables = settings().get("executables", {})

            # Run converter
            text = conv.convert(out, in_file, executables)
            if not text:
                return

            # Preview converted css for debugging, optionally
            self.previewed = not settings().get('preview_compiled_css')

            def preview_compiled_css():
                if not self.previewed:
                    self.preview_compiled_css(text, conv, in_tuple.base_name)
                    self.previewed = True

            # Parse the CSS
            stylesheet = CSSchemeParser().parse_stylesheet(text)

            # Do some awesome error printing action
            if stylesheet.errors:
                conv.report_parse_errors(out, in_file, text, stylesheet.errors)
                preview_compiled_css()
                return
            elif not stylesheet.rules:
                # The CSS seems to be ... empty?
                out.write_line("No CSS data was found")
                return

            # Check for "hidden" at-rule
            for i, r in enumerate(stylesheet.rules):
                if not r.at_keyword or r.at_keyword.strip('@') != 'hidden':
                    continue
                if strvalue(r.value) == 'true':
                    ext = '.hidden-tmTheme'
                    del stylesheet.rules[i]
                    break
                else:
                    e = DumpError(r, "Unrecognized value for 'hidden' "
                                     "at-rule, expected 'true'")
                    conv.report_dump_error(out, in_file, text, e)
                    preview_compiled_css()
                    return

            # Dump CSS data as plist into out_file
            out_file = in_tuple.no_ext + ext
            try:
                CSSchemeDumper().dump_stylesheet_file(out_file, stylesheet)
            except DumpError as e:
                conv.report_dump_error(out, in_file, text, e)
                if DEBUG:
                    import traceback
                    traceback.print_exc()
                preview_compiled_css()
                return

        status("Build successful")
        # Open out_file
        if settings().get('open_after_build'):
            self.view.window().open_file(out_file)
dataset/ETHPy150Open FichteFoll/CSScheme/convert.py/convert_csscheme.run/swapped operands of `>`