<commit_before>`import Ember from 'ember'`
`import ENV from 'irene/config/environment'`
`import { translationMacro as t } from 'ember-i18n'`

AnalysisSettingsComponent = Ember.Component.extend

  project: null
  i18n: Ember.inject.service()
  tSavedPreferences: t("savedPreferences")

  actions:

    showUnknownAnalysis: ->
      tSavedPreferences = @get "tSavedPreferences"
      checked = @$('#show-unkown-analysis')[0].checked
      data =
        project_id: @get "project.id"
        show_unknown_analysis: checked
      that = @
      @get("ajax").post ENV.endpoints.setUnknownAnalysisStatus, data: data
      .then (data)->
        that.set "project.showUnknownAnalysis", checked
        that.get("notify").success tSavedPreferences
      .catch (error) ->
        that.get("notify").error error.payload.message
        for error in error.errors
          that.get("notify").error error.detail?.message

`export default AnalysisSettingsComponent`<commit_msg>fix: minor fixes<commit_after>`import Ember from 'ember'`
`import ENV from 'irene/config/environment'`
`import { translationMacro as t } from 'ember-i18n'`

AnalysisSettingsComponent = Ember.Component.extend

  project: null
  i18n: Ember.inject.service()
  tSavedPreferences: t("savedPreferences")

  actions:

    showUnknownAnalysis: ->
      tSavedPreferences = @get "tSavedPreferences"
      isChecked = @$('#show-unkown-analysis')[0].checked
      data =
        project_id: @get "project.id"
        status: isChecked
      that = @
      @get("ajax").post ENV.endpoints.setUnknownAnalysisStatus, data: data
      .then (data)->
        that.set "project.showUnknownAnalysis", isChecked
        that.get("notify").success tSavedPreferences
      .catch (error) ->
        that.get("notify").error error.payload.message
        for error in error.errors
          that.get("notify").error error.detail?.message

`export default AnalysisSettingsComponent`
{'fraction_non_alphanumeric': 0.11993769470404984, 'fraction_numerical': 0.005192107995846314, 'mean_word_length': 3.3895216400911163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6330687', 'n_tokens_mistral': 564, 'n_tokens_neox': 552, 'n_words': 121}