<commit_before>export const getSelectedTime = (
    server_time,
    selected_time,
    market_open_time,
) => {
    const boundaries = selected_time.isBefore(market_open_time)
        ? market_open_time.isBefore(server_time)
            ? server_time.add(5, 'minute')
            : market_open_time.add(5, 'minute')
        : selected_time;

    return boundaries.format('HH:mm');
};

export const getBoundaries = (
    server_time,
    market_open_time,
    market_close_time,
) => {
    const boundaries = {
        start: server_time.isBefore(market_open_time)
            ? market_open_time.add(5, 'minute')
            : server_time.add(5, 'minute'),
        end: market_close_time,
    };
    return boundaries;
};<commit_msg>Rename boundaries -> value, on getSelectedTime<commit_after>export const getSelectedTime = (
    server_time,
    selected_time,
    market_open_time,
) => {
    const value = selected_time.isBefore(market_open_time)
        ? market_open_time.isBefore(server_time)
            ? server_time.add(5, 'minute')
            : market_open_time.add(5, 'minute')
        : selected_time;

    return value.format('HH:mm');
};

export const getBoundaries = (
    server_time,
    market_open_time,
    market_close_time,
) => {
    const boundaries = {
        start: server_time.isBefore(market_open_time)
            ? market_open_time.add(5, 'minute')
            : server_time.add(5, 'minute'),
        end: market_close_time,
    };
    return boundaries;
};
{'fraction_non_alphanumeric': 0.11215580926796508, 'fraction_numerical': 0.005372733378106112, 'mean_word_length': 2.850129198966408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '7589164', 'n_tokens_mistral': 474, 'n_tokens_neox': 471, 'n_words': 74}