<commit_before>/**
 *
 *
 * @copyright 2017 Government of Canada
 * @license MIT
 * @author igboyes
 *
 */

import Request from "superagent";

const jobsAPI = {

    find: () => {
        return Request.get("/api/jobs");
    },

    get: (jobId) => {
        return Request.get(`/api/jobs/${jobId}`);
    },

    test: (options = {}) => {
        return Request.post("/api/jobs/test")
            .send(options);
    }

};

export default jobsAPI;<commit_msg>Allow starting of long test tasks in client<commit_after>/**
 *
 *
 * @copyright 2017 Government of Canada
 * @license MIT
 * @author igboyes
 *
 */

import Request from "superagent";

const jobsAPI = {

    find: () => {
        return Request.get("/api/jobs");
    },

    get: (jobId) => {
        return Request.get(`/api/jobs/${jobId}`);
    },

    test: (options = {}) => {
        console.log(options);

        return Request.post("/api/jobs/test")
            .send(options);
    }

};

export default jobsAPI;
{'fraction_non_alphanumeric': 0.17364657814096016, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 2.277591973244147, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2194884', 'n_tokens_mistral': 329, 'n_tokens_neox': 312, 'n_words': 69}