<commit_before>import Base64 from 'base64';
import config from '../config';
let token = null;

module.exports = {

  requestAccesToken(auth) {
    let acessUrl = `https://www.reddit.com/api/v1/access_token`;
    let authBasic = config.APP_KEY + ': ';
    var postObj = {
      method: 'post',
      headers: {
        'Authorization': `Basic ${Base64.btoa(authBasic)}`
      },
      body: `grant_type=authorization_code&code=${auth.code}&redirect_uri=nativeforreddit://login`
    };
    return fetch(acessUrl, postObj).then((res) => {
      return res.json();
    }).then((final) => {
      token = final;
    });
  },

  getToken() {
    return token;
  }
};<commit_msg>change blank lines<commit_after>import Base64 from 'base64';
import config from '../config';

let token = null;

module.exports = {
  requestAccesToken(auth) {
    let acessUrl = `https://www.reddit.com/api/v1/access_token`;
    let authBasic = config.APP_KEY + ': ';
    var postObj = {
      method: 'post',
      headers: {
        'Authorization': `Basic ${Base64.btoa(authBasic)}`
      },
      body: `grant_type=authorization_code&code=${auth.code}&redirect_uri=nativeforreddit://login`
    };
    return fetch(acessUrl, postObj).then((res) => {
      return res.json();
    }).then((final) => {
      token = final;
    });
  },

  getToken() {
    return token;
  }
};
{'fraction_non_alphanumeric': 0.16901408450704225, 'fraction_numerical': 0.010378057820607857, 'mean_word_length': 2.9589442815249267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1025283', 'n_tokens_mistral': 463, 'n_tokens_neox': 455, 'n_words': 82}