<commit_before># -*- coding: utf-8 -*-
from flask import Flask, jsonify, request
from crossrefquery import *
import json

#test
# stuff = 'book' #book, dissertation, monograph, journal-article, book-chapter
# test = ['<NAME>']
# z = requestarticles(stuff, test)
# print z

app = Flask(__name__)

@app.route('/v1') #http://127.0.0.1:5000/v1?words=Stalin
def hello_world():
    cat = (request.args.get('cat'))
    words = [request.args.get('words')]
    resp = requestarticles(cat, words)
    length = len(resp)
    return jsonify(length = length)

if __name__ == '__main__':
    #app.run(host='0.0.0.0', debug = False)
    app.run(debug = True)<commit_msg>fixes<commit_after># -*- coding: utf-8 -*-
from flask import Flask, jsonify, request
from crossrefquery import *
import json

#test
# stuff = 'book' #book, dissertation, monograph, journal-article, book-chapter
# test = ['<NAME>']
# z = requestarticles(stuff, test)
# print z

app = Flask(__name__)

@app.route('/v1') #http://127.0.0.1:5000/v1?words=Stalin
def hello_world():
    cat = (request.args.get('cat'))
    words = [request.args.get('words')]
    resp = requestarticles(cat, words)
    length = len(resp)
    return jsonify(length = length)

if __name__ == '__main__':
    app.run(host='0.0.0.0', debug = False)
    #app.run(debug = True)
{'fraction_non_alphanumeric': 0.17511520737327188, 'fraction_numerical': 0.026113671274961597, 'mean_word_length': 4.030888030888031, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '4061799', 'n_tokens_mistral': 490, 'n_tokens_neox': 462, 'n_words': 109}