<commit_before>import json
import requests

def add_to_daylist(title_number):
    #with open('application/static/data/reference.txt',"r+") as file:
    #    ref_number = file.read()
    #    ref_int = int(ref_number) + 1
    #    ref_number = str(ref_int)
    #    file.seek(0)
    #    file.write(ref_number)

    #reference = "AB" + ref_number

    response = requests.get('http://localhost:8888/' + title_number)
    data = response.json()
    reference = data["ABR"]

    return reference<commit_msg>made changes following testing to make the post to the daylist adapter actually work<commit_after>import json
import requests

def add_to_daylist(title_number):
    #with open('application/static/data/reference.txt',"r+") as file:
    #    ref_number = file.read()
    #    ref_int = int(ref_number) + 1
    #    ref_number = str(ref_int)
    #    file.seek(0)
    #    file.write(ref_number)

    #reference = "AB" + ref_number

    response = requests.post('http://localhost:8888/cases/' + title_number)
    data = response.json()
    reference = data["abr"]

    return reference
{'fraction_non_alphanumeric': 0.1261510128913444, 'fraction_numerical': 0.011049723756906077, 'mean_word_length': 3.2627450980392156, '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': '4078318', 'n_tokens_mistral': 363, 'n_tokens_neox': 350, 'n_words': 74}