<commit_before># queryGrapher
A MySQL query graphing tool, written in Flask. Flask is a python web platform. It's like a simpler version of Django, geared towards smaller projects. The graph output uses the Google Charts Line Chart API. Once you have all the dependencies, this project is ready to go, and includes a connection to a sample MySQL database. Please see the screenshot in this project for a sample.

To run this project, you need Python 2 and Flask installed on your system. Once you have python and pip installed, you can run the following to get the right dependencies:

sudo pip install virtualenv | sudo pip install Flask | sudo pip install flask-mysqldb

If you are having trouble, please verify with Flask's documentation in case I am missing something in the list above.

Once all dependencies are in place, run the following:

python queryGrapher.py

Then, open up your browser window and go to:
http://localhost:5000

Enter your query and you are good to go! The output of the select query should be a set of columns, where the first column is the independent variable (x-axis) and the successive columns are the dependent variables (y-axis). Please see the screenshot for an example query. 

The example database is hosted on freemysqlhosting.net. The sample table provided is called popByState. It lists the populations of each state from 1960 to 2010. The first column is the year, and successive columns are states, as follows: (year, Alabama, Arkansas, California...)

The sample query "SELECT year, Alabama, California, Mississippi FROM popByState" generates a graph for the states Alabama, California, and Mississippi from the years 1960-2010 in 10 year increments. You can zoom in on the graph by boxing with your mous. To reset your zoom, just right click.

If you have any questions/comments/feedback, contact me.
<commit_msg>Updating readme<commit_after># queryGrapher
A MySQL query graphing tool, written in Flask. Flask is a python web platform. It's like a simpler version of Django, geared towards smaller projects. The graph output uses the Google Charts Line Chart API. Once you have all the dependencies, this project is ready to go, and includes a connection to a sample MySQL database. Please see the screenshot in this project for a sample.

To run this project, you need Python 2 and Flask installed on your system. Once you have python and pip installed, you can run the following to get the right dependencies:

sudo pip install virtualenv  
sudo pip install Flask  
sudo pip install flask-mysqldb

If you are having trouble, please verify with Flask's documentation in case I am missing something in the list above.

Once all dependencies are in place, run the following:

python queryGrapher.py

Then, open up your browser window and go to:
http://localhost:5000

Enter your query and you are good to go! The output of the select query should be a set of columns, where the first column is the independent variable (x-axis) and the successive columns are the dependent variables (y-axis). Please see the screenshot for an example query. 

The example database is hosted on freemysqlhosting.net. The sample table provided is called popByState. It lists the populations of each state from 1960 to 2010. The first column is the year, and successive columns are states, as follows: (year, Alabama, Arkansas, California...)

The sample query "SELECT year, Alabama, California, Mississippi FROM popByState" generates a graph for the states Alabama, California, and Mississippi from the years 1960-2010 in 10 year increments. You can zoom in on the graph by boxing with your mouse. To reset your zoom, just right click.

If you have any questions/comments, raise an issue and I will try to address it.

{'fraction_non_alphanumeric': 0.0392733101790008, 'fraction_numerical': 0.01228960726689821, 'mean_word_length': 4.449781659388647, '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': '2906497', 'n_tokens_mistral': 944, 'n_tokens_neox': 866, 'n_words': 599}