<commit_before>import {
  clickable,
  create,
  collection,
  fillable,
  isPresent,
  isVisible,
  property,
  text,
  visitable,
} from 'ember-cli-page-object';

export default create({
  scope: '[data-test-instructor-groups-list]',
  visit: visitable('/instructorgroups'),
  filterBySchool: fillable('[data-test-school-filter]'),
  filterByTitle: fillable('[data-test-title-filter]'),
  schoolFilters: collection({
    itemScope: '[data-test-school-filter] option',
    item: {
      text: text(),
      selected: property('selected'),
    },
  }),
  instructorGroups: collection({
    scope: '[data-test-instructor-groups-list]',
    itemScope: '[data-test-active-row]',
    item: {
      title: text('td', { at: 0 }),
      members: text('td', { at: 1 }),
      courses: text('td', { at: 2 }),
      remove: clickable('.remove', {scope: 'td:eq(3)'}),
      edit: clickable('.edit', {scope: 'td:eq(3)'}),
      clickTitle: clickable('a', {scope: 'td:eq(0)'}),
      canBeDeleted: isPresent('.remove', {scope: 'td:eq(3)'}),
    },

  }),
  newInstructorGroupForm: {
    scope: '[data-test-new-instructor-group]',
    title: fillable('[data-test-title]'),
    save: clickable('.done'),
    cancel: clickable('.cancel'),
    isVisible: isVisible(),
  },
  confirmInstructorGroupRemoval: clickable('[data-test-instructor-groups-list] .confirm-removal button.remove'),
  cancelInstructorGroupRemoval: clickable('[data-test-instructor-groups-list] .confirm-removal button.done'),
  removalConfirmationMessage: text('[data-test-instructor-groups-list] .confirm-removal .confirm-message'),
  emptyListRowIsVisible: isVisible('[data-test-empty-list]'),
  savedResult: text('.saved-result'),
  toggleNewInstructorGroupForm: clickable('[data-test-toggle-new-instructor-group-form] button'),
});
<commit_msg>targets element with correct data-test-* attribute.<commit_after>import {
  clickable,
  create,
  collection,
  fillable,
  isPresent,
  isVisible,
  property,
  text,
  visitable,
} from 'ember-cli-page-object';

export default create({
  scope: '[data-test-instructor-groups-list]',
  visit: visitable('/instructorgroups'),
  filterBySchool: fillable('[data-test-school-filter]'),
  filterByTitle: fillable('[data-test-title-filter]'),
  schoolFilters: collection({
    itemScope: '[data-test-school-filter] option',
    item: {
      text: text(),
      selected: property('selected'),
    },
  }),
  instructorGroups: collection({
    scope: '[data-test-instructor-groups-list]',
    itemScope: '[data-test-active-row]',
    item: {
      title: text('td', { at: 0 }),
      members: text('td', { at: 1 }),
      courses: text('td', { at: 2 }),
      remove: clickable('.remove', {scope: 'td:eq(3)'}),
      edit: clickable('.edit', {scope: 'td:eq(3)'}),
      clickTitle: clickable('a', {scope: 'td:eq(0)'}),
      canBeDeleted: isPresent('.remove', {scope: 'td:eq(3)'}),
    },

  }),
  newInstructorGroupForm: {
    scope: '[data-test-new-instructor-group]',
    title: fillable('[data-test-title]'),
    save: clickable('.done'),
    cancel: clickable('.cancel'),
    isVisible: isVisible(),
  },
  confirmInstructorGroupRemoval: clickable('[data-test-instructor-groups-list] .confirm-removal button.remove'),
  cancelInstructorGroupRemoval: clickable('[data-test-instructor-groups-list] .confirm-removal button.done'),
  removalConfirmationMessage: text('[data-test-instructor-groups-list] .confirm-removal .confirm-message'),
  emptyListRowIsVisible: isVisible('[data-test-empty-list]'),
  savedResult: text('.saved-result'),
  toggleNewInstructorGroupForm: clickable('[data-test-expand-collapse-button] button'),
});

{'fraction_non_alphanumeric': 0.18567493112947658, 'fraction_numerical': 0.003856749311294766, 'mean_word_length': 4.33186490455213, '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': '1343196', 'n_tokens_mistral': 1192, 'n_tokens_neox': 1201, 'n_words': 201}