<commit_before>{
  expose
  namespace,
  utils,
  jQuery: $
} = uploadcare

namespace 'uploadcare.settings', (ns) ->

  defaults =
    'autostore': false
    'cdn-base': 'https://ucarecdn.com'
    'crop': 'disabled'
    'images-only': false
    'live': true
    'locale': null
    'locale-pluralize': null
    'locale-translations': null
    'manual-start': false
    'multiple': false
    'path-value': false
    'preview-step': false
    'public-key': null
    'pusher-key': '79ae88bd931ea68464d9'
    'social-base': 'https://social.uploadcare.com'
    'tabs': 'file url facebook gdrive instagram'
    'url-base': 'https://upload.uploadcare.com'
    'script-base': SCRIPT_BASE
    'script-ext': '.min.js'

  presets =
    'tabs':
      all: 'file url facebook dropbox gdrive instagram'
      default: defaults.tabs


  str2arr = (value) ->
    unless $.isArray(value)
      value = $.trim(value)
      value = if value then value.split(' ') else []<commit_msg>fix default 'script-base'<commit_after>{
  expose
  namespace,
  utils,
  jQuery: $
} = uploadcare

namespace 'uploadcare.settings', (ns) ->

  defaults =
    'autostore': false
    'cdn-base': 'https://ucarecdn.com'
    'crop': 'disabled'
    'images-only': false
    'live': true
    'locale': null
    'locale-pluralize': null
    'locale-translations': null
    'manual-start': false
    'multiple': false
    'path-value': false
    'preview-step': false
    'public-key': null
    'pusher-key': '79ae88bd931ea68464d9'
    'social-base': 'https://social.uploadcare.com'
    'tabs': 'file url facebook gdrive instagram'
    'url-base': 'https://upload.uploadcare.com'
    'script-base': if SCRIPT_BASE? then SCRIPT_BASE else ''
    'script-ext': '.min.js'

  presets =
    'tabs':
      all: 'file url facebook dropbox gdrive instagram'
      default: defaults.tabs


  str2arr = (value) ->
    unless $.isArray(value)
      value = $.trim(value)
      value = if value then value.split(' ') else []
{'fraction_non_alphanumeric': 0.15572519083969466, 'fraction_numerical': 0.014249363867684479, 'mean_word_length': 2.9241516966067866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '4664536', 'n_tokens_mistral': 694, 'n_tokens_neox': 667, 'n_words': 156}