<commit_before>/**
 * TODO
 */

import Ember from 'ember'
const {isEmpty} = Ember
import computed, {readOnly} from 'ember-computed-decorators'
import {Component} from 'ember-frost-core'
import {PropTypes} from 'ember-prop-types'

import layout from '../templates/components/frost-object-browser'

export default Component.extend({
  // == Dependencies ==========================================================

  // == Properties ============================================================
  classNameBindings: ['_isActionsVisible:actions-visible'],
  propTypes: {
    // Options
    content: PropTypes.EmberObject.isRequired,
    controls: PropTypes.EmberObject.isRequired,
    hook: PropTypes.string.isRequired,
    filters: PropTypes.EmberObject.isRequired,
    selectedItems: PropTypes.EmberObject.isRequired

    // State
  },

  getDefaultProps () {
    return {
      // Keywords
      layout

      // Options
    }
  },

  // == Computed Properties ===================================================

  @readOnly
  @computed('controls.[]', 'items.@each.isSelected')
  _isActionsVisible (controls, items) {
    return !isEmpty(controls) && !isEmpty(items) && items.isAny('isSelected', true)
  }

  // == Functions =============================================================

  // == Ember Lifecycle Hooks =================================================

  // == DOM Events ============================================================

  // == Actions ===============================================================
})
<commit_msg>Removed classNameBindings, and propTypes for unused selectedItems<commit_after>/**
 * TODO
 */

import Ember from 'ember'
const {isEmpty} = Ember
import computed, {readOnly} from 'ember-computed-decorators'
import {Component} from 'ember-frost-core'
import {PropTypes} from 'ember-prop-types'

import layout from '../templates/components/frost-object-browser'

export default Component.extend({
  // == Dependencies ==========================================================

  // == Properties ============================================================
  propTypes: {
    // Options
    content: PropTypes.EmberObject.isRequired,
    controls: PropTypes.EmberObject.isRequired,
    hook: PropTypes.string.isRequired,
    filters: PropTypes.EmberObject.isRequired
    // State
  },

  getDefaultProps () {
    return {
      // Keywords
      layout

      // Options
    }
  },

  // == Computed Properties ===================================================

  // == Functions =============================================================

  // == Ember Lifecycle Hooks =================================================

  // == DOM Events ============================================================

  // == Actions ===============================================================
})

{'fraction_non_alphanumeric': 0.3779110797459421, 'fraction_numerical': 0.0, 'mean_word_length': 4.681362725450902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3003152', 'n_tokens_mistral': 697, 'n_tokens_neox': 647, 'n_words': 133}