<commit_before>import sublime, sublime_plugin, os

class CmakeClearCacheAndConfigureCommand(sublime_plugin.WindowCommand):
    """Clears the CMake-generated files, and then configures the project."""

    def is_enabled(self):
        project = self.window.project_data()
        if project is None:
            return False
        cmake = project.get('cmake')
        if cmake is None:
            return False
        cmake = sublime.expand_variables(cmake, self.window.extract_variables())
        build_folder = cmake.get('build_folder')
        if not build_folder:
            return False
        return True

    def description(self):
        return 'Clear Cache And Configure'

    def run(self):
        self.window.run_command('cmake_cache_clear', args={'with_confirmation': False})
        self.window.run_command('cmake_configure', args={'write_build_targets': False})<commit_msg>Fixed typo causing command to not run.<commit_after>import sublime, sublime_plugin, os

class CmakeClearCacheAndConfigureCommand(sublime_plugin.WindowCommand):
    """Clears the CMake-generated files, and then configures the project."""

    def is_enabled(self):
        project = self.window.project_data()
        if project is None:
            return False
        cmake = project.get('cmake')
        if cmake is None:
            return False
        cmake = sublime.expand_variables(cmake, self.window.extract_variables())
        build_folder = cmake.get('build_folder')
        if not build_folder:
            return False
        return True

    def description(self):
        return 'Clear Cache And Configure'

    def run(self):
        self.window.run_command('cmake_clear_cache', args={'with_confirmation': False})
        self.window.run_command('cmake_configure', args={'write_build_targets': False})
{'fraction_non_alphanumeric': 0.09311294765840221, 'fraction_numerical': 0.0, 'mean_word_length': 3.0355555555555553, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2340581', 'n_tokens_mistral': 510, 'n_tokens_neox': 497, 'n_words': 125}