<commit_before>/**
 * Created by janeluck on 17/6/29.
 */
const scrm = {
  //todo: 根据token具体用途还需要再改
  url: function (str) {

    const token = window.location.search.match(/token=([^&]*)/) && window.location.search.match(/token=([^&]*)/)[1]
    if (/localhost|10.10.3.195/.test(window.location.host)) {
      str = '/api' + str
    }


    return str + "?token=" + token
  },
  // 返回app内部
  goBack: function () {

    alert(window.jsObj.goBack)
    window.jsObj && window.jsObj.goBack()
  }
}

export default scrm<commit_msg>goBack<commit_after>/**
 * Created by janeluck on 17/6/29.
 */
const scrm = {
  //todo: 根据token具体用途还需要再改
  url: function (str) {

    const token = window.location.search.match(/token=([^&]*)/) && window.location.search.match(/token=([^&]*)/)[1]
    if (/localhost|10.10.3.195/.test(window.location.host)) {
      str = '/api' + str
    }


    return str + "?token=" + token
  },
  // 返回app内部
  goBack: function () {
    window.jsObj && window.jsObj.goBack && window.jsObj.goBack()
  }
}

export default scrm
{'fraction_non_alphanumeric': 0.19922630560928434, 'fraction_numerical': 0.027079303675048357, 'mean_word_length': 2.8475836431226766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3086730', 'n_tokens_mistral': 429, 'n_tokens_neox': 405, 'n_words': 69}