<commit_before>/* eslint ember/order-in-components: 0 */
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import ObjectProxy from '@ember/object/proxy';
import Component from '@ember/component';

const CourseProxy = ObjectProxy.extend({
  content: null,
  currentUser: null,
  permissionChecker: null,
  showRemoveConfirmation: false,
  intl: null,
  isSaving: false,

  status: computed('content.isPublished', 'content.isScheduled', function(){
    const intl = this.get('intl');
    let course = this.get('content');
    let translation = 'general.';
    if (course.get('isScheduled')) {
      translation += 'scheduled';
    } else if (course.get('isPublished')) {
      translation += 'published';
    } else {
      translation += 'notPublished';

    }

    return intl.t(translation).string;
  }),

  userCanDelete: computed('content', 'content.locked', 'content.archived', 'currentUser.model.directedCourses.[]', async function(){
    const permissionChecker = this.get('permissionChecker');
    const course = this.get('content');
    if (course.get('isPublishedOrScheduled')) {
      return false;<commit_msg>dropped weird string prop from translation<commit_after>/* eslint ember/order-in-components: 0 */
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import ObjectProxy from '@ember/object/proxy';
import Component from '@ember/component';

const CourseProxy = ObjectProxy.extend({
  content: null,
  currentUser: null,
  permissionChecker: null,
  showRemoveConfirmation: false,
  intl: null,
  isSaving: false,

  status: computed('content.isPublished', 'content.isScheduled', function(){
    const intl = this.get('intl');
    let course = this.get('content');
    let translation = 'general.';
    if (course.get('isScheduled')) {
      translation += 'scheduled';
    } else if (course.get('isPublished')) {
      translation += 'published';
    } else {
      translation += 'notPublished';

    }

    return intl.t(translation);
  }),

  userCanDelete: computed('content', 'content.locked', 'content.archived', 'currentUser.model.directedCourses.[]', async function(){
    const permissionChecker = this.get('permissionChecker');
    const course = this.get('content');
    if (course.get('isPublishedOrScheduled')) {
      return false;
{'fraction_non_alphanumeric': 0.14765957446808511, 'fraction_numerical': 0.000851063829787234, 'mean_word_length': 4.259507829977629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7640873', 'n_tokens_mistral': 681, 'n_tokens_neox': 665, 'n_words': 166}