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

import os
import sys
import pwd
import grp
import json
import socket
import MySQLdb as mdb
from time import time, sleep
from pprint import pprint
from optparse import OptionParser

DEBUG = False

class QPSData():
    def __init__(self, file_path='/var/tmp/mysql-collector.qps.txt'):
        self.unixtime  = time()
        self.delete    = 0
        self.insert    = 0
        self.update    = 0
        self.select    = 0
        self.total_qps = 0
        self.file_path = file_path
<commit_msg>mysql-collector: Adding a missing import for regex<commit_after>#!/usr/bin/env python

import os
import re
import sys
import pwd
import grp
import json
import socket
import MySQLdb as mdb
from time import time, sleep
from pprint import pprint
from optparse import OptionParser

DEBUG = False

class QPSData():
    def __init__(self, file_path='/var/tmp/mysql-collector.qps.txt'):
        self.unixtime  = time()
        self.delete    = 0
        self.insert    = 0
        self.update    = 0
        self.select    = 0
        self.total_qps = 0
        self.file_path = file_path

{'fraction_non_alphanumeric': 0.07699194270367055, 'fraction_numerical': 0.008952551477170993, 'mean_word_length': 2.5605095541401273, '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': '4649869', 'n_tokens_mistral': 367, 'n_tokens_neox': 351, 'n_words': 112}