<commit_before>require '../lib/analytics_hooks.coffee'
mediator = require '../lib/mediator.coffee'
setupSplitTests = require '../components/split_test/setup.coffee'
route = require '../lib/route_helpers.coffee'
window._ = require 'underscore'

mediator.on 'all', (name, data) ->
  analyticsHooks.trigger "mediator:#{name}", data

require '../analytics/main_layout.js'
require '../analytics/before_ready.js'

$ -> analytics.ready ->
  if sd.CURRENT_USER?.id
    whitelist = ['collector_level', 'default_profile_id', 'email', 'id', 'name', 'phone', 'type'];
    traits = _.extend _.pick(sd.CURRENT_USER, whitelist), session_id: sd.SESSION_ID
    analytics.identify sd.CURRENT_USER.id, traits
    # clear analytics cache when user logs out
    analyticsHooks.on 'auth:logged-out', -> analytics.reset()

  setupSplitTests()

  require '../analytics/global.js'
  require '../analytics/impressions.js'
  require '../analytics/articles.js'
  require '../analytics/partner_application.js'
  require '../analytics/artworks_filter.js'
  require '../analytics/artist_page.js'
  require '../analytics/home.js'
  require '../analytics/show_page.js'
  require '../analytics/account_creation.js'
  require '../analytics/account_login.js'
  require '../analytics/bidding.js'
  require '../analytics/notifications.js'
  require '../analytics/artists.js'
  require '../analytics/artwork.js'
  require '../analytics/fair.js'
  require '../analytics/following.js'
  require '../analytics/follow_widget.js'
  require '../analytics/genes.js'
  require '../analytics/partner.js'
  require '../analytics/checkout.js'
  require '../analytics/personalize.js'
  require '../analytics/search.js'
  require '../analytics/auth.js'
  require '../analytics/layered_search.js'
  require '../analytics/artwork_rail.js'
  require '../analytics/commercial_filtering.js'

  if route.test(/^\/inquiry\/.*/) or route.test(/^\/artwork\/.*/)
    require '../analytics/embedded_inquiry.js'
    require '../analytics/inquiry_questionnaire.js'<commit_msg>Update assets file<commit_after>require '../lib/analytics_hooks.coffee'
mediator = require '../lib/mediator.coffee'
setupSplitTests = require '../components/split_test/setup.coffee'
route = require '../lib/route_helpers.coffee'
window._ = require 'underscore'

mediator.on 'all', (name, data) ->
  analyticsHooks.trigger "mediator:#{name}", data

require '../analytics/main_layout.js'
require '../analytics/before_ready.js'

$ -> analytics.ready ->
  if sd.CURRENT_USER?.id
    whitelist = ['collector_level', 'default_profile_id', 'email', 'id', 'name', 'phone', 'type'];
    traits = _.extend _.pick(sd.CURRENT_USER, whitelist), session_id: sd.SESSION_ID
    analytics.identify sd.CURRENT_USER.id, traits
    # clear analytics cache when user logs out
    analyticsHooks.on 'auth:logged-out', -> analytics.reset()

  setupSplitTests()

  require '../analytics/global.js'
  require '../analytics/impressions.js'
  require '../analytics/articles.js'
  require '../analytics/partner_application.js'
  require '../analytics/artworks_filter.js'
  require '../analytics/artist_page.js'
  require '../analytics/home.js'
  require '../analytics/show_page.js'
  require '../analytics/account_creation.js'
  require '../analytics/account_login.js'
  require '../analytics/bidding.js'
  require '../analytics/notifications.js'
  require '../analytics/artists.js'
  require '../analytics/artwork.js'
  require '../analytics/fair.js'
  require '../analytics/following.js'
  require '../analytics/follow_widget.js'
  require '../analytics/genes.js'
  require '../analytics/partner.js'
  require '../analytics/checkout.js'
  require '../analytics/personalize.js'
  require '../analytics/search.js'
  require '../analytics/auth.js'
  require '../analytics/layered_search.js'
  require '../analytics/artwork_rail.js'

  if route.test(/^\/inquiry\/.*/) or route.test(/^\/artwork\/.*/)
    require '../analytics/embedded_inquiry.js'
    require '../analytics/inquiry_questionnaire.js'
{'fraction_non_alphanumeric': 0.17471091000502764, 'fraction_numerical': 0.0, 'mean_word_length': 3.6811764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '625119', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1270, 'n_words': 231}