<commit_before>import axios from "axios";

const REDIRECT_URI =
    process.env.NODE_ENV === "production" || process.env.HEROKU_ENV === "production"
        ? process.env.REACT_APP_REDIRECT_URI
        : "http://localhost:3000/callback/";

const USER_TOKEN = "<PASSWORD>";
const USER_ID = "userID";

if (process.env.TEST == "production") {
    console.log("IT WORKED");
} else {
    console.log("IT DIDNT WORK" + process.env.TEST);
}

console.log(process.env.NODE_ENV);
console.log(REDIRECT_URI);

export function getToken() {
    return sessionStorage.getItem(USER_TOKEN);
}

export function setToken(token) {
    sessionStorage.setItem(USER_TOKEN, token);
}

export function getUserID() {
    return sessionStorage.getItem(USER_ID);
}

export function setUserID(id) {
    sessionStorage.setItem(USER_ID, id);
}

export function getUser(token) {
    return axios({
        method: "GET",
        baseURL: "https://api.spotify.com",
        url: "/v1/me",<commit_msg>And again<commit_after>import axios from "axios";

const REDIRECT_URI =
    process.env.NODE_ENV === "production" || process.env.HEROKU_ENV === "production"
        ? process.env.REACT_APP_REDIRECT_URI
        : "http://localhost:3000/callback/";

const USER_TOKEN = "<PASSWORD>";
const USER_ID = "userID";

console.log(process.env.REACT_APP_REDIRECT_URI);

export function getToken() {
    return sessionStorage.getItem(USER_TOKEN);
}

export function setToken(token) {
    sessionStorage.setItem(USER_TOKEN, token);
}

export function getUserID() {
    return sessionStorage.getItem(USER_ID);
}

export function setUserID(id) {
    sessionStorage.setItem(USER_ID, id);
}

export function getUser(token) {
    return axios({
        method: "GET",
        baseURL: "https://api.spotify.com",
        url: "/v1/me",
{'fraction_non_alphanumeric': 0.14085297418630752, 'fraction_numerical': 0.005611672278338945, 'mean_word_length': 3.9943977591036415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5729805', 'n_tokens_mistral': 605, 'n_tokens_neox': 607, 'n_words': 111}