<commit_before>require 'lib/setup'
translate = require 't7e'
StackOfPages = require 'stack-of-pages/stack-of-pages'

Counter = require 'models/counter'

Api = require 'zooniverse/lib/api'
Analytics = require 'zooniverse/lib/google-analytics'
LanguageManager = require 'zooniverse/lib/language-manager'
TopBar = require 'zooniverse/controllers/top-bar'
User = require 'zooniverse/models/user'
Recent = require 'zooniverse/models/recent'

api = new Api project: 'spacewarp'

# Initialize Counter model
new Counter({classified: 0, potentials: 0, favorites: 0}).save()

enUs = require 'translations/en_us'
esCl = require 'translations/es_cl'
translate.load enUs

languageManager = new LanguageManager
  translations:
    en: label: 'English', strings: enUs
    es: label: 'Español', strings: esCl

languageManager.on 'change-language', (e, code, strings) ->
  translate.load strings
  translate.refresh()

topBar = new TopBar
topBar.el.appendTo 'body'

# Navigation
$('body').append require 'views/navigation'

stack = new StackOfPages
  '#/home': require 'controllers/home'
  '#/classify': require 'controllers/classifier'
  '#/about': require 'controllers/about'
  '#/guide': require 'controllers/guide'
  '#/profile': require 'controllers/profile'
  '#/faq': require 'controllers/faq'
  '#/projects/*': require 'controllers/results'
  default: '#/home'
document.body.appendChild stack.el

new Analytics
  account: 'UA-1224199-43'
  domain: 'spacewarps.org'

User.fetch()

# Lazy loading of Guide images
$('img.lazy').lazyload({threshold : 200, effect: 'fadeIn'})

# Redirects
projects = require 'lib/project-surveys'
initRedirects = ->
  console.log 'here', location.hash
  switch location.hash
    when '#/projects' then location.hash = "#/projects/#{ projects[0] }/summary"
addEventListener 'hashchange', initRedirects
initRedirects()

module.exports = {stack, api, topBar}
<commit_msg>Remove log<commit_after>require 'lib/setup'
translate = require 't7e'
StackOfPages = require 'stack-of-pages/stack-of-pages'

Counter = require 'models/counter'

Api = require 'zooniverse/lib/api'
Analytics = require 'zooniverse/lib/google-analytics'
LanguageManager = require 'zooniverse/lib/language-manager'
TopBar = require 'zooniverse/controllers/top-bar'
User = require 'zooniverse/models/user'
Recent = require 'zooniverse/models/recent'

api = new Api project: 'spacewarp'

# Initialize Counter model
new Counter({classified: 0, potentials: 0, favorites: 0}).save()

enUs = require 'translations/en_us'
esCl = require 'translations/es_cl'
translate.load enUs

languageManager = new LanguageManager
  translations:
    en: label: 'English', strings: enUs
    es: label: 'Español', strings: esCl

languageManager.on 'change-language', (e, code, strings) ->
  translate.load strings
  translate.refresh()

topBar = new TopBar
topBar.el.appendTo 'body'

# Navigation
$('body').append require 'views/navigation'

stack = new StackOfPages
  '#/home': require 'controllers/home'
  '#/classify': require 'controllers/classifier'
  '#/about': require 'controllers/about'
  '#/guide': require 'controllers/guide'
  '#/profile': require 'controllers/profile'
  '#/faq': require 'controllers/faq'
  '#/projects/*': require 'controllers/results'
  default: '#/home'
document.body.appendChild stack.el

new Analytics
  account: 'UA-1224199-43'
  domain: 'spacewarps.org'

User.fetch()

# Lazy loading of Guide images
$('img.lazy').lazyload({threshold : 200, effect: 'fadeIn'})

# Redirects
projects = require 'lib/project-surveys'
initRedirects = ->
  switch location.hash
    when '#/projects' then location.hash = "#/projects/#{ projects[0] }/summary"
addEventListener 'hashchange', initRedirects
initRedirects()

module.exports = {stack, api, topBar}

{'fraction_non_alphanumeric': 0.1394912985274431, 'fraction_numerical': 0.009103078982597055, 'mean_word_length': 5.134646962233169, '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': '4353926', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1214, 'n_words': 302}