<commit_before>from eve import Eve
from json import load
from json import loads
from .jsonparser import jparse

app = Eve()

@app.route('/')
def base():
    return 'hello'

@app.route('/greet/<name>')
def greet(name):
    return "hi " + name

#@<EMAIL>.route('/cnvvis/logratios/<start>-<stop>')
#def logs(start, stop):
#    #add method call to get .txt file of section from galaxy (returns path)
#    jpath = jparse(<path to .txt_file>)
#    with open(jpath) as jfile
#        jstring = load(jfile)
#    jobj = loads(jstring)
#    return jobj

if __name__=="__main__":
    app.run()
<commit_msg>route prefixes<commit_after>from eve import Eve
from json import load
from json import loads
from .jsonparser import jparse

app = Eve()

@app.route('/cnvvis')
def base():
    return 'hello'

@app.route('/cnvvis/greet/<name>')
def greet(name):
    return "hi " + name

#@<EMAIL>('/cnvvis/logratios/<start>-<stop>')
#def logs(start, stop):
#    #add method call to get .txt file of section from galaxy (returns path)
#    jpath = jparse(<path to .txt_file>)
#    with open(jpath) as jfile
#        jstring = load(jfile)
#    jobj = loads(jstring)
#    return jobj

if __name__=="__main__":
    app.run()

{'fraction_non_alphanumeric': 0.14858096828046743, 'fraction_numerical': 0.0, 'mean_word_length': 3.647286821705426, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, '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': '2094485', 'n_tokens_mistral': 439, 'n_tokens_neox': 430, 'n_words': 127}