<commit_before>const axios = require('axios');

module.exports = async options => {
    if (!options.key) {
        throw new Error('Error: key needed to use FEC API,' +
            'specify using options.key, ' +
            'or get one at https://api.data.gov/signup/');
    }

    const fecAPI = axios.create({
        baseURL: 'https://api.open.fec.gov/v1/',
        params: {
            api_key: options.key
        }
    });

    let endpoint = options.committee ?
        `/committee/${options.committee}/filings/` :
        'efile/filings';

    const res = await fecAPI.get(endpoint, {
        params: {
            sort: '-receipt_date',<commit_msg>Remove unneeded slash in api endpoint<commit_after>const axios = require('axios');

module.exports = async options => {
    if (!options.key) {
        throw new Error('Error: key needed to use FEC API,' +
            'specify using options.key, ' +
            'or get one at https://api.data.gov/signup/');
    }

    const fecAPI = axios.create({
        baseURL: 'https://api.open.fec.gov/v1/',
        params: {
            api_key: options.key
        }
    });

    let endpoint = options.committee ?
        `committee/${options.committee}/filings/` :
        'efile/filings';

    const res = await fecAPI.get(endpoint, {
        params: {
            sort: '-receipt_date',
{'fraction_non_alphanumeric': 0.14221891288160834, 'fraction_numerical': 0.0014892032762472078, 'mean_word_length': 1.9933184855233852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2422410', 'n_tokens_mistral': 428, 'n_tokens_neox': 413, 'n_words': 94}