<commit_before>import React from 'react';
import './EditorForm.scss';
import update from 'immutability-helper';
// import find from 'lodash/find';

export class EditorForm extends React.Component {
  constructor (props) {
    super(props);
    this.generateAttributeElements = this.generateAttributeElements.bind(this);
    this.getActiveValue = this.getActiveValue.bind(this);
    this.getCheckedState = this.getCheckedState.bind(this);
    this.closeEditorForm = this.closeEditorForm.bind(this);
    this.state = {
      newAttributes: this.initializeAttributes(this.props.attributeTypes),
      recordName: {
        checked: true
        value: this.props.recordConfig ? this.props.recordConfig.recordName : '',
      },
      recordType: {
        value: this.props.attributes.RecordType || '',
        checked: true
      }
    };
  }

  initializeAttributes (attributeTypes) {<commit_msg>Fix typo<commit_after>import React from 'react';
import './EditorForm.scss';
import update from 'immutability-helper';
// import find from 'lodash/find';

export class EditorForm extends React.Component {
  constructor (props) {
    super(props);
    this.generateAttributeElements = this.generateAttributeElements.bind(this);
    this.getActiveValue = this.getActiveValue.bind(this);
    this.getCheckedState = this.getCheckedState.bind(this);
    this.closeEditorForm = this.closeEditorForm.bind(this);
    this.state = {
      newAttributes: this.initializeAttributes(this.props.attributeTypes),
      recordName: {
        value: this.props.recordConfig ? this.props.recordConfig.recordName : '',
        checked: true
      },
      recordType: {
        value: this.props.attributes.RecordType || '',
        checked: true
      }
    };
  }

  initializeAttributes (attributeTypes) {
{'fraction_non_alphanumeric': 0.115406162464986, 'fraction_numerical': 0.0, 'mean_word_length': 3.532994923857868, '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': '5878575', 'n_tokens_mistral': 495, 'n_tokens_neox': 490, 'n_words': 93}