<commit_before>import request from 'request'
import Utils from './models/utils'
import Actions from './actions'
import {APIError} from './errors'
import PriorityUICoordinator from '../priority-ui-coordinator'
import IdentityStore from './stores/identity-store'
import NylasAPI from './nylas-api'

export default class NylasAPIRequest {
  constructor(api, options) {
    const defaults = {
      url: `${api.APIRoot}${options.path}`,
      method: 'GET',
      json: true,
      timeout: 15000,
      started: () => {},
      error: () => {},<commit_msg>feat(request): Add APIRoot as an option to Nylas API Request<commit_after>import request from 'request'
import Utils from './models/utils'
import Actions from './actions'
import {APIError} from './errors'
import PriorityUICoordinator from '../priority-ui-coordinator'
import IdentityStore from './stores/identity-store'
import NylasAPI from './nylas-api'

export default class NylasAPIRequest {
  constructor(api, options) {
    const defaults = {
      url: `${options.APIRoot || api.APIRoot}${options.path}`,
      method: 'GET',
      json: true,
      timeout: 15000,
      started: () => {},
      error: () => {},
{'fraction_non_alphanumeric': 0.14334470989761092, 'fraction_numerical': 0.008532423208191127, 'mean_word_length': 3.6733067729083664, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4914434', 'n_tokens_mistral': 356, 'n_tokens_neox': 346, 'n_words': 102}