<commit_before>import Ember from 'ember';
import Condition from "../models/condition";

const {
  computed,
  computed: { alias }
} = Ember;

export default Ember.Component.extend({
  for: alias('condition'),
  tagName: 'tr',
  attributeBindings: ['condition.id:data-condition-id'],
  classNameBindings: ['isNewCondition:no-hover'],
  isEditingCondition: false,
  operators: Condition.OPERATORS,

  currentQuestion: computed('condition.questionId', function() {
    return this.get('questions').findBy('id',this.get('condition.questionId'));
  }),

  questionAnswerChoices: computed('currentQuestion', function() {
    return this.get('currentQuestion.answerChoices');
  }),

  useDropDownAnswerSelect: computed('currentQuestion', function() {
    let currentQuestion = this.get('currentQuestion');
    return currentQuestion && currentQuestion.hasMany('answerChoices').ids().length > 1;
  }),
<commit_msg>Fix #144559127<commit_after>import Ember from 'ember';
import Condition from "../models/condition";

const {
  computed,
  computed: { alias }
} = Ember;

export default Ember.Component.extend({
  for: alias('condition'),
  tagName: 'tr',
  attributeBindings: ['condition.id:data-condition-id'],
  classNameBindings: ['isNewCondition:no-hover'],
  isEditingCondition: false,
  operators: Condition.OPERATORS,

  currentQuestion: computed('condition.questionId', function() {
    return this.get('questions').findBy('id',this.get('condition.questionId'));
  }),

  questionAnswerChoices: computed('currentQuestion', function() {
    return this.get('currentQuestion.answerChoices');
  }),

  useDropDownAnswerSelect: computed('currentQuestion', 'condition.operator', function() {
    let currentQuestion = this.get('currentQuestion'),
        conditionOperator = this.get('condition.operator');
    return conditionOperator !== 'contains' && currentQuestion && currentQuestion.hasMany('answerChoices').ids().length > 1;
  }),

{'fraction_non_alphanumeric': 0.15225271879854999, 'fraction_numerical': 0.005696530295183843, 'mean_word_length': 5.7317073170731705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1355023', 'n_tokens_mistral': 558, 'n_tokens_neox': 538, 'n_words': 102}