<commit_before>
import {
  FilterOption,
  ComparisonTypes,
} from '../../../framework/services.js';

export default [
  new FilterOption({
    name: 'Max ID',
    getValue: item => item.id,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Min ID',
    getValue: item => item.id,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Name',
    getValue: item => item.name,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Status',
    getValue: item => item.status,
    comparisonType: ComparisonTypes.ONE_OF,
    comparisonParameters: {
      oneOfOptions: ['Active', 'Stopped', 'Archived'],
    },
  }),
  new FilterOption({
    name: 'Fuel',
    getValue: item => item.fuel,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Maximum Number of Passengers',
    getValue: item => item.passengers,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Minimum Number of Passengers',
    getValue: item => item.passengers,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Maximum Number of Cylinders',
    getValue: item => item.cylinders,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Minimum Number of Cylinders',
    getValue: item => item.cylinders,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Fuel Economy',
    getValue: item => item.fuelEconomy,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Kpi Sold',
    getValue: item => item.kpiSold,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Kpi Registered',
    getValue: item => item.kpiRegistered,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
];
<commit_msg>[SDX-1147] Integrate status filter for line Item: - updated example using OneOfOption<commit_after>
import {
  FilterOption,
  ComparisonTypes,
  OneOfOption,
} from '../../../framework/services.js';

export default [
  new FilterOption({
    name: 'Max ID',
    getValue: item => item.id,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Min ID',
    getValue: item => item.id,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Name',
    getValue: item => item.name,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Status',
    getValue: item => item.status,
    comparisonType: ComparisonTypes.ONE_OF,
    comparisonParameters: {
      oneOfOptions: [
        new OneOfOption('Active'),
        new OneOfOption('Stopped'),
        new OneOfOption('Archived'),
      ],
    },
  }),
  new FilterOption({
    name: 'Fuel',
    getValue: item => item.fuel,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Maximum Number of Passengers',
    getValue: item => item.passengers,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Minimum Number of Passengers',
    getValue: item => item.passengers,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Maximum Number of Cylinders',
    getValue: item => item.cylinders,
    comparisonType: ComparisonTypes.MAX,
  }),
  new FilterOption({
    name: 'Minimum Number of Cylinders',
    getValue: item => item.cylinders,
    comparisonType: ComparisonTypes.MIN,
  }),
  new FilterOption({
    name: 'Fuel Economy',
    getValue: item => item.fuelEconomy,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Kpi Sold',
    getValue: item => item.kpiSold,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
  new FilterOption({
    name: 'Kpi Registered',
    getValue: item => item.kpiRegistered,
    comparisonType: ComparisonTypes.CONTAINS,
  }),
];

{'fraction_non_alphanumeric': 0.13002854918245524, 'fraction_numerical': 0.0010381520892810796, 'mean_word_length': 3.3795454545454544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '6713011', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1160, 'n_words': 290}