<commit_before>import * as FileSaver from 'file-saver';

export const ENDPOINTS = {
    generateCalendar: 'http:localhost:3000/api/generate',
};

export function postData(endpoint: string, data: any): Promise<Response> {
    return fetch(endpoint, {
        method: 'POST',
        body: JSON.stringify(data),
        headers: {
            'Content-Type': 'application/json',
        },
    });
}

export function downloadCalendar(calendarText: string) {
    const blob = new Blob([calendarText], { type: 'text/plain;charset=utf-8' });
    FileSaver.saveAs(blob, 'GMU Fall 2018.ics');
}<commit_msg>forgot how urls work<commit_after>import * as FileSaver from 'file-saver';

export const ENDPOINTS = {
    generateCalendar: 'http://localhost:3000/api/generate',
};

export function postData(endpoint: string, data: any): Promise<Response> {
    return fetch(endpoint, {
        method: 'POST',
        body: JSON.stringify(data),
        headers: {
            'Content-Type': 'application/json',
        },
    });
}

export function downloadCalendar(calendarText: string) {
    const blob = new Blob([calendarText], { type: 'text/plain;charset=utf-8' });
    FileSaver.saveAs(blob, 'GMU Fall 2018.ics');
}
{'fraction_non_alphanumeric': 0.14415907207953604, 'fraction_numerical': 0.014913007456503728, 'mean_word_length': 3.5074626865671643, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1660683', 'n_tokens_mistral': 380, 'n_tokens_neox': 364, 'n_words': 83}