<commit_before>from psycopg2 import connect

class Table:
    def add_message(self, twitid, text):
        cursor = self.conn.cursor()
        cursor.execute("""INSERT INTO %s(twitid, text) SELECT \'%s\', \'%s\'
            WHERE NOT EXISTS(SELECT twitid FROM %s WHERE twitid=%s)"""%(
            self.table_name, twitid, text.replace('\'', '\'\''),
            self.table_name, twitid))
<commit_msg>Добавлен коммит изменений после каждой операции добавления строки.<commit_after>from psycopg2 import connect

class Table:
    def add_message(self, twitid, text):
        cursor = self.conn.cursor()
        cursor.execute("""INSERT INTO %s(twitid, text) SELECT \'%s\', \'%s\'
            WHERE NOT EXISTS(SELECT twitid FROM %s WHERE twitid=%s)"""%(
            self.table_name, twitid, text.replace('\'', '\'\''),
            self.table_name, twitid))
        self.conn.commit()

{'fraction_non_alphanumeric': 0.15568181818181817, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 2.8640350877192984, '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': '4591196', 'n_tokens_mistral': 307, 'n_tokens_neox': 300, 'n_words': 72}