<commit_before># app.py or app/__init__.py
from flask import Flask, render_template, jsonify
import os 

app = Flask(__name__)
app.config.from_object('config')

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

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

@app.route('/about')
def about():
	# check device status we can ping the robot and check if its "alive"
	return render_template('about.html')
# Now we can access the configuration variables via app.config["VAR_NAME"].

@app.route('/commands/<type>/<action>', methods=['POST'])
def commands(type, action):
    print("Command Type %s" % type)
    print("Command Action %s" % action)
    if action == "picture":
        pos.system("ls -lsf")
        os.system("echo 'Amit is the king!!!'")
    else:
        # example of running a linux command line
        os.system("ls -lsf")
        os.system("echo 'Doron is my king!!!'")
        
    res = { 'type': type, 'action': action }
    return jsonify(**res)



if __name__ == "__main__":
    app.run()<commit_msg>File:app.py add print insted fo os<commit_after># app.py or app/__init__.py
from flask import Flask, render_template, jsonify
import os 

app = Flask(__name__)
app.config.from_object('config')

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

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

@app.route('/about')
def about():
	# check device status we can ping the robot and check if its "alive"
	return render_template('about.html')
# Now we can access the configuration variables via app.config["VAR_NAME"].

@app.route('/commands/<type>/<action>', methods=['POST'])
def commands(type, action):
    print("Command Type %s" % type)
    print("Command Action %s" % action)
    if action == "picture":
        print("Amit is the king!!!")
    else:
        # example of running a linux command line
        os.system("ls -lsf")
        os.system("echo 'Doron is my king!!!'")
        
    res = { 'type': type, 'action': action }
    return jsonify(**res)



if __name__ == "__main__":
    app.run()
{'fraction_non_alphanumeric': 0.15438432835820895, 'fraction_numerical': 0.0, 'mean_word_length': 3.6529284164859, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 7, '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': '51558', 'n_tokens_mistral': 679, 'n_tokens_neox': 671, 'n_words': 203}