<commit_before>TimeTraktor
===========

Tracking my time in MySQL

# Installation

## MySQL
```sql
CREATE TABLE `timetracking` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `username` enum('username') NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `window_class` varchar(250) NOT NULL,
  `window_title` varchar(250) NOT NULL,
  `time` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
```

## Flask
`pip install flask`

# Run
## Traktor
`python traktor.py`

## Viewer
`python viewer.py`<commit_msg>mysql table time set to smallint(4) and added index<commit_after>TimeTraktor
===========

Tracking my time in MySQL

# Installation

## MySQL
```sql
CREATE TABLE `timetracking` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `username` enum('karamfil') NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `window_class` varchar(200) NOT NULL,
  `window_title` varchar(200) NOT NULL,
  `time` smallint(4) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `username` (`username`,`date`,`time`,`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1554 DEFAULT CHARSET=utf8
```

## Flask
`pip install flask`

# Run
## Traktor
`python traktor.py`

## Viewer
`python viewer.py`
{'fraction_non_alphanumeric': 0.14239218877135884, 'fraction_numerical': 0.02115541090317331, 'mean_word_length': 5.40625, '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': '3534353', 'n_tokens_mistral': 481, 'n_tokens_neox': 433, 'n_words': 126}