<commit_before>import {AxiosRequestConfig} from 'axios'
import * as process from 'process'

export interface IConfig {
  axios?: AxiosRequestConfig
  SiteID?: string
  SitePass?: string
  ShopID?: string
  ShopPass?: string
}

export const defaults: IConfig = {
  axios: {
    timeout: 3*60*1000,
    baseURL: 'https://pt01.mul-pay.jp',
    headers: {
      'user-agent': 'GMO PG Client: Unofficial',
      'content-length': '0'
    }
  }
}

export default class Config {
  static buildByEnv(): IConfig {
    const c: IConfig = {}
    c.axios = {}

    if (process.env.GMOPG_ENDPOINT) {
      c.axios.baseURL = process.env.GMOPG_ENDPOINT
    }
    if (process.env.GMOPG_TIMEOUT) {
      c.axios.timeout = +`${process.env.GMOPG_TIMEOUT}`
    }
    if (process.env.GMOPG_SITEID) {
      c.SiteID = process.env.GMOPG_SITEID
    }<commit_msg>'magic numbers' are not allowed<commit_after>import {AxiosRequestConfig} from 'axios'
import * as process from 'process'

export interface IConfig {
  axios?: AxiosRequestConfig
  SiteID?: string
  SitePass?: string
  ShopID?: string
  ShopPass?: string
}

const msec = 1000
const sec = 60
const min = 3

export const defaults: IConfig = {
  axios: {
    timeout: min * sec * msec,
    baseURL: 'https://pt01.mul-pay.jp',
    headers: {
      'user-agent': 'GMO PG Client: Unofficial',
      'content-length': '0'
    }
  }
}

export default class Config {
  static buildByEnv(): IConfig {
    const c: IConfig = {}
    c.axios = {}

    if (process.env.GMOPG_ENDPOINT) {
      c.axios.baseURL = process.env.GMOPG_ENDPOINT
    }
    if (process.env.GMOPG_TIMEOUT) {
      c.axios.timeout = +`${process.env.GMOPG_TIMEOUT}`
    }
    if (process.env.GMOPG_SITEID) {
      c.SiteID = process.env.GMOPG_SITEID
    }
{'fraction_non_alphanumeric': 0.1297884505431675, 'fraction_numerical': 0.011435105774728416, 'mean_word_length': 2.977272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7168878', 'n_tokens_mistral': 655, 'n_tokens_neox': 640, 'n_words': 139}