<commit_before>import {
    checkStatus,
    parseJSON
} from './helper.js'

import config from '../../../config.json'

export default function fetchJob({
    company_name,
    job_name,
    e04_job_no
}) {
    const {
        backend
    } = config
    const options = {
        method: 'GET',
        headers: {
            "X-Company-Name": company_name,
            "X-Job-Name": job_name,
            "X-E04-Job-No": e04_job_no
        },
        mode: 'cors'
    }
    return fetch(`${backend}/jobs`, options)
        .then(checkStatus)
        .then(parseJSON)
}<commit_msg>fix(API/fetchJob): Move company name and job name from header to params<commit_after>import {
    checkStatus,
    parseJSON
} from './helper.js'

import config from '../../../config.json'

export default function fetchJob({
    company_name,
    job_name,
    e04_job_no
}) {
    const {
        backend
    } = config

    const options = {
        method: 'GET',
        mode: 'cors'
    }

    const url = `${backend}/jobs?company_name=${company_name}&job_name=${job_name}&e04_job_no=${e04_job_no}`
    return fetch(url, options)
        .then(checkStatus)
        .then(parseJSON)
}
{'fraction_non_alphanumeric': 0.136986301369863, 'fraction_numerical': 0.010273972602739725, 'mean_word_length': 2.1939890710382515, 'pattern_counts': {'":': 3, '<': 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': '4306363', 'n_tokens_mistral': 386, 'n_tokens_neox': 378, 'n_words': 80}