<commit_before>Backbone = require 'backbone'
Backbone.$ = $
analytics = require '../../../lib/analytics.coffee'

template = -> require('../templates/channel_visibility.jade') arguments...

module.exports = class ChannelVisibilityView extends Backbone.View
  autoRender: true
  autoSync: false

  events:
    'click .metadata--selector__option' : 'toggleVisibility'

  initialize: (options) ->
    @autoRender = options.autoRender || @autoRender
    @autoSync = options.autoSync || @autoSync
<commit_msg>fixes visibility bug (closes #144)<commit_after>Backbone = require 'backbone'
Backbone.$ = $
_ = require 'underscore'
analytics = require '../../../lib/analytics.coffee'

template = -> require('../templates/channel_visibility.jade') arguments...

module.exports = class ChannelVisibilityView extends Backbone.View
  defaults:
    autoRender: true
    autoSync: false

  events:
    'click .metadata--selector__option' : 'toggleVisibility'

  initialize: (options) ->
    { @autoRender, @autoSync } = _.defaults @defaults, options

{'fraction_non_alphanumeric': 0.1393998063891578, 'fraction_numerical': 0.002904162633107454, 'mean_word_length': 4.093596059113301, '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': '16408', 'n_tokens_mistral': 303, 'n_tokens_neox': 292, 'n_words': 68}