<commit_before>from flask import Flask, render_template
import RPi.GPIO as GPIO
import time
from energenie import switch_on, switch_off

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')

@app.route('/on1/')
def on():
    switch_on(1)
    return render_template('index.html')

@app.route('/on2/')
def on():
    switch_on(2)
    return render_template('index.html')
   
@app.route('/off1/')
def off():
    switch_off(1)
    return render_template('index.html')

@app.route('/off2/')
def on():
    switch_off(2)
    return render_template('index.html')

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0') #, port=int("5001"))<commit_msg>Lesson learnt: check code works before committing/pushing! :)<commit_after>from flask import Flask, render_template
import RPi.GPIO as GPIO
import time
from energenie import switch_on, switch_off

app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')

@app.route('/on1/')
def on1():
    switch_on(1)
    return render_template('index.html')

@app.route('/on2/')
def on2():
    switch_on(2)
    return render_template('index.html')
   
@app.route('/off1/')
def off1():
    switch_off(1)
    return render_template('index.html')

@app.route('/off2/')
def off2():
    switch_off(2)
    return render_template('index.html')

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0') #, port=int("5001"))
{'fraction_non_alphanumeric': 0.16978516978516978, 'fraction_numerical': 0.02494802494802495, 'mean_word_length': 4.368029739776952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5458336', 'n_tokens_mistral': 530, 'n_tokens_neox': 519, 'n_words': 112}