<commit_before>#!/usr/bin/env python

"""
sms db
"""

import sqlite3
conn = sqlite3.connect('sms.db')
c = conn.cursor()
CREATE_SQL = '''CREATE TABLE [sms] (
  [id] INTEGER PRIMARY KEY, 
  [user] TEXT, 
  [ip] TEXT, 
  [from_address] TEXT, 
  [to_address] TEXT, 
  [message] TEXT, 
  [add_time] DATETIME NOT NULL DEFAULT (datetime('now','localtime')), 
  [send_time] DATETIME, 
  [receive_time] DATETIME, 
  [worker] TEXT);
'''
c.execute(CREATE_SQL)

<commit_msg>smsdb.py<commit_after>#!/usr/bin/env python

"""
sms db
"""

import sqlite3
conn = sqlite3.connect('sms.db')
c = conn.cursor()
CREATE_SQL = '''CREATE TABLE [sms] (
  [id] INTEGER PRIMARY KEY, 
  [user] TEXT, 
  [ip] TEXT, 
  [from_address] TEXT, 
  [to_address] TEXT, 
  [message] TEXT, 
  [add_time] DATETIME NOT NULL DEFAULT (datetime('now','localtime')), 
  [send_time] DATETIME, 
  [receive_time] DATETIME, 
  [worker] TEXT);
'''
c.execute(CREATE_SQL)
def add_new_sms(to_address, message):
    return True
def get_sms_task():
    return None
def set_sms_sent_to_worker(sms_id):
    return True

{'fraction_non_alphanumeric': 0.15754716981132075, 'fraction_numerical': 0.0037735849056603774, 'mean_word_length': 4.305, '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': '6007971', 'n_tokens_mistral': 448, 'n_tokens_neox': 409, 'n_words': 95}