<commit_before>import superagent from 'superagent'
import { API_HOST } from './config'

class Api {

  requestLogin = (email, password) => (
    superagent
      .post(`${API_HOST}/auth/sessions`)
      .set('Content-Type', 'application/json')
      .send({ email, password })
  )


  // PUT RESPPNSE TOEKN ABOVE

  signup = (email, password, username, interests) => (

    superagent
      .post(`${API_HOST}/auth/sessions`)
      .set('Content-Type', 'application/json')
      .send({ email, password, username, interests })
  )

}

export default new Api();<commit_msg>Update api.js<commit_after>import superagent from 'superagent'
import { API_HOST } from './config'

class Api {


  requestLogin = (email, password) => (
    superagent
      .post(`${API_HOST}/auth/sessions`)
      .set('Content-Type', 'application/json')
      .send({ email, password })
  )


  signup = (email, password, username, interests) => (

    superagent
      .post(`${API_HOST}/auth/sessions`)
      .set('Content-Type', 'application/json')
      .send({ email, password, username, interests })
  )

  requestQuestion = (currentLevel, isCorrect) => {
    return superagent
      .get(`${API_HOST}/nextQuestion?=${currentLevel}&isCorrect=${isCorrect}`)
      .set('Content-Type', 'application/json')
  }

}



export default new Api();
{'fraction_non_alphanumeric': 0.16363636363636364, 'fraction_numerical': 0.0, 'mean_word_length': 3.316993464052288, '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': '2199341', 'n_tokens_mistral': 424, 'n_tokens_neox': 409, 'n_words': 88}