<commit_before>Species.DownloadsController = Ember.Controller.extend
  needs: [
    'downloadsForCmsListings', 
    'downloadsForCitesListings', 'downloadsForCitesRestrictions',
    'downloadsForEuListings', 'downloadsForEuDecisions'
  ]
  downloadsPopupVisible: false
  designation: 'cites'
  designationIsCites: ( ->
    @get('designation') == 'cites'
  ).property('designation')
  designationIsEu: ( ->
    @get('designation') == 'eu'
  ).property('designation')
  designationIsCms: ( ->
    @get('designation') == 'cms'
  ).property('designation')
  citesLegislation: 'listings'
  euLegislation: 'listings'
  legislationIsCitesListings: ( ->
    @get('citesLegislation') == 'listings'
  ).property('citesLegislation')
  legislationIsCitesRestrictions: ( ->
    @get('citesLegislation') == 'restrictions'
  ).property('citesLegislation')
  legislationIsEuListings: ( ->
    @get('euLegislation') == 'listings'
  ).property('euLegislation')
  legislationIsEuDecisions: ( ->
    @get('euLegislation') == 'decisions'
  ).property('euLegislation')

  close: () ->
    @set('downloadsPopupVisible', false)<commit_msg>modal white cover - remove when modal closes<commit_after>Species.DownloadsController = Ember.Controller.extend Species.Spinner,
  needs: [
    'downloadsForCmsListings', 
    'downloadsForCitesListings', 'downloadsForCitesRestrictions',
    'downloadsForEuListings', 'downloadsForEuDecisions'
  ]
  downloadsPopupVisible: false
  designation: 'cites'
  designationIsCites: ( ->
    @get('designation') == 'cites'
  ).property('designation')
  designationIsEu: ( ->
    @get('designation') == 'eu'
  ).property('designation')
  designationIsCms: ( ->
    @get('designation') == 'cms'
  ).property('designation')
  citesLegislation: 'listings'
  euLegislation: 'listings'
  legislationIsCitesListings: ( ->
    @get('citesLegislation') == 'listings'
  ).property('citesLegislation')
  legislationIsCitesRestrictions: ( ->
    @get('citesLegislation') == 'restrictions'
  ).property('citesLegislation')
  legislationIsEuListings: ( ->
    @get('euLegislation') == 'listings'
  ).property('euLegislation')
  legislationIsEuDecisions: ( ->
    @get('euLegislation') == 'decisions'
  ).property('euLegislation')

  close: () ->
    @set('downloadsPopupVisible', false)
    # Closing the spinner cover and resetting the spinner image.
    $(@spinnerSelector).css("visibility", "hidden").find('img').show()
{'fraction_non_alphanumeric': 0.15782932891466445, 'fraction_numerical': 0.0, 'mean_word_length': 5.176470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '535125', 'n_tokens_mistral': 820, 'n_tokens_neox': 825, 'n_words': 111}