<commit_before>from flask import *
from sh import media
from os import urandom
from conf import *

app = Flask(__name__)
app.secret_key = urandom(255)

media = [0,12]

@app.route('/')
def main():
	return redirect(url_for('controls'))

@app.route('/controls', methods=['GET', 'POST'])
@app.route('/controls/<control>', methods=['GET', 'POST'])
def controls(control=None):
	if request.method == 'GET':
		if control:
			media(control)
			return redirect(url_for('controls'))
		else:
			return render_template('controls.html')
	elif request.method == 'POST':
		cont = request.form['control']
		return redirect(url_for('controls', control=cont))

def nowPlaying():
	if media('isPlaying', _ok_code=media_codes) == 1:
			artist = media('artist', _ok_code=media_codes)
			track = media('title', _ok_code=media_codes)
			playing = track + artist
		else:
			playing = 'No music playing!'

app.run(debug=DEBUG, host=HOST)<commit_msg>fixed indentation issue<commit_after>from flask import *
from sh import media
from os import urandom
from conf import *

app = Flask(__name__)
app.secret_key = urandom(255)

media = [0,12]

@app.route('/')
def main():
	return redirect(url_for('controls'))

@app.route('/controls', methods=['GET', 'POST'])
@app.route('/controls/<control>', methods=['GET', 'POST'])
def controls(control=None):
	if request.method == 'GET':
		if control:
			media(control)
			return redirect(url_for('controls'))
		else:
			return render_template('controls.html')
	elif request.method == 'POST':
		cont = request.form['control']
		return redirect(url_for('controls', control=cont))

def nowPlaying():
	if media('isPlaying', _ok_code=media_codes) == 1:
		artist = media('artist', _ok_code=media_codes)
		track = media('title', _ok_code=media_codes)
		playing = track + artist
	else:
		playing = 'No music playing!'

app.run(debug=DEBUG, host=HOST)
{'fraction_non_alphanumeric': 0.16333153055705787, 'fraction_numerical': 0.0075716603569497025, 'mean_word_length': 5.607142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2577418', 'n_tokens_mistral': 661, 'n_tokens_neox': 610, 'n_words': 149}