<commit_before>Backbone = require 'backbone'

module.exports = class UserSettingsView extends Backbone.View
  descriptions:
    'user/edit': 'This is your general account information and communication preferences.'
    'collector/edit': 'When you contact galleries through Artsy, this information may be shared with them as a brief introduction.'
    'profile/edit': 'This information will be public on Artsy if your public profile is enabled. Enabling your public profile also allows others to view your posts on Artsy and the artists you follow.'

  events:
    'click .garamond-tab': 'changeTab'

  initialize: (options = {}) ->
    { @profile, @userEdit } = options

  renderDescription: ->
    @$('#settings-description').text @descriptions[Backbone.history.fragment]

  deactivateTabs: ->
    (@$tabs ?= @$('.garamond-tab')).removeClass 'is-active'

  activateCurrentTab: ->
    @deactivateTabs()
    @renderDescription()
    @$("a[href='/#{Backbone.history.fragment}']").addClass 'is-active'

  changeTab: (e) ->
    e.preventDefault()
    Backbone.history.navigate $(e.currentTarget).attr('href'), trigger: true<commit_msg>Copy update<commit_after>Backbone = require 'backbone'

module.exports = class UserSettingsView extends Backbone.View
  descriptions:
    'user/edit': 'This is your general account information and communication preferences.'
    'collector/edit': 'When you contact galleries through Artsy, this information may be shared with them as a brief introduction.'
    'profile/edit': 'This information will be public on Artsy if your public profile is enabled. Enabling your public profile also lets others view the number of users that follow you.'

  events:
    'click .garamond-tab': 'changeTab'

  initialize: (options = {}) ->
    { @profile, @userEdit } = options

  renderDescription: ->
    @$('#settings-description').text @descriptions[Backbone.history.fragment]

  deactivateTabs: ->
    (@$tabs ?= @$('.garamond-tab')).removeClass 'is-active'

  activateCurrentTab: ->
    @deactivateTabs()
    @renderDescription()
    @$("a[href='/#{Backbone.history.fragment}']").addClass 'is-active'

  changeTab: (e) ->
    e.preventDefault()
    Backbone.history.navigate $(e.currentTarget).attr('href'), trigger: true
{'fraction_non_alphanumeric': 0.12834224598930483, 'fraction_numerical': 0.0, 'mean_word_length': 4.307328605200945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '3074093', 'n_tokens_mistral': 626, 'n_tokens_neox': 617, 'n_words': 191}