<commit_before>from flask import json, request, make_response, redirect
from flask.ext.pushrod import pushrod_view
from datetime import date, datetime
from .systemofrecord import SystemOfRecord
from .mint import Mint
from themint import app

mint = Mint()


@app.route('/', methods=['GET'])
def index():
    return "Mint OK"

@app.route('/titles', methods=['POST'])
def post():
    payload = request.json
    mint.create(payload)
    # TODO the casework client will generate a unique title, which can be used to check the feeder for success
    return "Payload queued to system-of-record", 200<commit_msg>fix import<commit_after>from flask import json, request, make_response, redirect
from flask.ext.pushrod import pushrod_view
from datetime import date, datetime
from .mint import Mint
from themint import app

mint = Mint()


@app.route('/', methods=['GET'])
def index():
    return "Mint OK"

@app.route('/titles', methods=['POST'])
def post():
    payload = request.json
    mint.create(payload)
    # TODO the casework client will generate a unique title, which can be used to check the feeder for success
    return "Payload queued to system-of-record", 200
{'fraction_non_alphanumeric': 0.10223367697594501, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 4.521327014218009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2801947', 'n_tokens_mistral': 346, 'n_tokens_neox': 329, 'n_words': 134}