<commit_before>class Shutter(object):
    def setup_database(self, pool):
        self.__dbpool = pool
    def snapshots(self, url):
        def _get_snapshot_urls(txn, url):
            txn.execute("""SELECT s.file_path
                             FROM shutter.urls u
                                 ,shutter.snapshots s
                            WHERE u.url = %s
                              AND u.id = s.url_id
                         ORDER BY s.created_at DESC
            """, [url])
            return txn.fetchall()
        return self.__dbpool.runInteraction(_get_snapshot_urls, url)<commit_msg>Remove additional nesting from Shutter.snapshots results<commit_after>class Shutter(object):
    def setup_database(self, pool):
        self.__dbpool = pool
    def snapshots(self, url):
        def _get_snapshot_urls(txn, url):
            txn.execute("""SELECT s.file_path
                             FROM shutter.urls u
                                 ,shutter.snapshots s
                            WHERE u.url = %s
                              AND u.id = s.url_id
                         ORDER BY s.created_at DESC
            """, [url])
            return [column[0] for column in txn.fetchall()]
        return self.__dbpool.runInteraction(_get_snapshot_urls, url)
{'fraction_non_alphanumeric': 0.08313908313908314, 'fraction_numerical': 0.000777000777000777, 'mean_word_length': 1.3896103896103895, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1503312', 'n_tokens_mistral': 345, 'n_tokens_neox': 347, 'n_words': 80}