<commit_before>import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import ConfirmationModal from '@folio/stripes-components/lib/ConfirmationModal';
import SafeHTMLMessage from '@folio/react-intl-safe-html';
import Callout from '@folio/stripes-components/lib/Callout';

import EditableList from '@folio/stripes-components/lib/EditableList';
import Owners from './Owners';
import CopyModal from './CopyModal';

function includes(arr, str, input, out) {
  const items = [];
  for (let i = 0; i < arr.length; i++) {
    const obj = arr[i];
    if (obj[input].localeCompare(str, 'sv', { sensitivity: 'base' }) === 0) {
      items.push(obj[out]);
    }
  }
  return items;
}

function validate(type, props) {
  const items = type.items || [];
  const owners = _.get(props.resources, ['owners', 'records'], []);
  const ownerId = _.get(props.resources, ['activeRecord', 'ownerId'], '');
  const errors = { items: [] };
  items.forEach((item, i) => {
    const allfeefines = _.get(props.resources, ['allfeefines', 'records'], []);
    errors.items.push({});<commit_msg>Get EditableList from stripes-smart-components<commit_after>import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import ConfirmationModal from '@folio/stripes-components/lib/ConfirmationModal';
import SafeHTMLMessage from '@folio/react-intl-safe-html';
import Callout from '@folio/stripes-components/lib/Callout';
import { EditableList } from '@folio/stripes-smart-components';

import Owners from './Owners';
import CopyModal from './CopyModal';

function includes(arr, str, input, out) {
  const items = [];
  for (let i = 0; i < arr.length; i++) {
    const obj = arr[i];
    if (obj[input].localeCompare(str, 'sv', { sensitivity: 'base' }) === 0) {
      items.push(obj[out]);
    }
  }
  return items;
}

function validate(type, props) {
  const items = type.items || [];
  const owners = _.get(props.resources, ['owners', 'records'], []);
  const ownerId = _.get(props.resources, ['activeRecord', 'ownerId'], '');
  const errors = { items: [] };
  items.forEach((item, i) => {
    const allfeefines = _.get(props.resources, ['allfeefines', 'records'], []);
    errors.items.push({});
{'fraction_non_alphanumeric': 0.1752252252252252, 'fraction_numerical': 0.0018018018018018018, 'mean_word_length': 4.48395061728395, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5305673', 'n_tokens_mistral': 703, 'n_tokens_neox': 697, 'n_words': 178}