<commit_before># -*- coding: utf-8 -*-

import json
import sqlite3
import databasesetting

conn = sqlite3.connect(databasesetting.db_path)


cursor = conn.cursor()

cursor.execute("""DROP TABLE matches;""")

with open("../matches.json") as data_file:
    data = json.load(data_file)

print data<commit_msg>ta inte bort tabllen innan<commit_after># -*- coding: utf-8 -*-

import json
import sqlite3
import databasesetting

conn = sqlite3.connect(databasesetting.db_path)


cursor = conn.cursor()

#cursor.execute("""DROP TABLE matches;""")

with open("../matches.json") as data_file:
    data = json.load(data_file)

print data
{'fraction_non_alphanumeric': 0.14217252396166133, 'fraction_numerical': 0.009584664536741214, 'mean_word_length': 4.648648648648648, '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': '6518140', 'n_tokens_mistral': 218, 'n_tokens_neox': 205, 'n_words': 51}