<commit_before>import sublime, sublime_plugin
import os

class FlashbackCommand(sublime_plugin.WindowCommand):
    def run(self):
        def highlight(i):
            pass

        git_log = subprocess.check_output(['git', 'log', '--pretty=format:"[%h] %s %n%cr by %cN (%ce)"'])
        self.window.show_quick_panel(git_log, highlight)
<commit_msg>Getting git log correctly<commit_after>import sublime, sublime_plugin
import os

class FlashbackCommand(sublime_plugin.WindowCommand):
    def run(self):
        def highlight(i):
            pass

        git_log = subprocess.check_output(['git', 'log', '--pretty=format:"[%h] %s%n%cD (%cr)%n%cN (%ce)---"']).split(b'---')
        items = [self.split(log) for log in git_log]
        print(items)
        self.window.show_quick_panel(items, highlight)

    def split(self, log):
        parts = [l.decode().strip('"') for l in log.split(b"\n")]
        return [p for p in parts if p]

{'fraction_non_alphanumeric': 0.15524625267665954, 'fraction_numerical': 0.0, 'mean_word_length': 3.230769230769231, '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': '3248774', 'n_tokens_mistral': 321, 'n_tokens_neox': 309, 'n_words': 71}