<commit_before>import { RequestHelper, API_URLS } from '../../base';
import { Address, AddressResponse } from '../types';
import * as _ from 'lodash';
const protocol = 'https';
const addressesUrl = `${protocol}://${API_URLS['addresses'].server}/${API_URLS['addresses'].version}/addresses`;
const readAll = (authHeader: any): Promise<Address[]> => {
    return RequestHelper.get(addressesUrl, authHeader);;
};

const read = (authHeader: any, id: string): Promise<Address> => {
    return RequestHelper.get(`${addressesUrl}/${id}`, authHeader);
};

const create = (authHeader: any, address: Address): Promise<AddressResponse> => {
    return RequestHelper.post(addressesUrl, address, authHeader);
};

export const Addresses = {
    read,
    readAll,
    create
};

<commit_msg>reorder method exports in Address Calls<commit_after>import { RequestHelper, API_URLS } from '../../base';
import { Address, AddressResponse } from '../types';
import * as _ from 'lodash';
const protocol = 'https';
const addressesUrl = `${protocol}://${API_URLS['addresses'].server}/${API_URLS['addresses'].version}/addresses`;

const create = (authHeader: any, address: Address): Promise<AddressResponse> => {
    return RequestHelper.post(addressesUrl, address, authHeader);
};

const read = (authHeader: any, id: string): Promise<AddressResponse> => {
    return RequestHelper.get(`${addressesUrl}/${id}`, authHeader);
};

const readAll = (authHeader: any): Promise<AddressResponse[]> => {
    return RequestHelper.get(addressesUrl, authHeader);;
};


export const Addresses = {
    create,
    read,
    readAll
};


{'fraction_non_alphanumeric': 0.16791979949874686, 'fraction_numerical': 0.0, 'mean_word_length': 5.189922480620155, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '6412569', 'n_tokens_mistral': 474, 'n_tokens_neox': 473, 'n_words': 115}