<commit_before>'use strict'
const _ = require('lodash')
const React = require('react')
const update = require('react-addons-update')
const BusyIndicator = require('../busyIndicator.jsx')
const ErrorMessage = require('../errorMessage.jsx')
const Avatar = require('./avatar.jsx')
const FileInput = require('../fileInput.jsx')
const TimeZonePicker = require('../timeZonePicker.jsx')
const ErrorMessage = require('../errorMessage.jsx')

const UserEditor = props => {

  const {
    user,
    dirty,
    disabled,
    adminMode,
    onSave,
    onRevert,
    onChange,
    fieldErrors,
    error
  } = props

  const _onChangeText = fieldName => ({target: {value}}) =>
    onChange(update(user, {
      [fieldName]: {$set: value || undefined}
    }))

  const _onChangeCheckbox = fieldName => ({target: {checked}}) =>
    onChange(update(user, {
      [fieldName]: {$set: !!checked}<commit_msg>Fixed a double import.<commit_after>'use strict'
const _ = require('lodash')
const React = require('react')
const update = require('react-addons-update')
const BusyIndicator = require('../busyIndicator.jsx')
const ErrorMessage = require('../errorMessage.jsx')
const Avatar = require('./avatar.jsx')
const FileInput = require('../fileInput.jsx')
const TimeZonePicker = require('../timeZonePicker.jsx')

const UserEditor = props => {

  const {
    user,
    dirty,
    disabled,
    adminMode,
    onSave,
    onRevert,
    onChange,
    fieldErrors,
    error
  } = props

  const _onChangeText = fieldName => ({target: {value}}) =>
    onChange(update(user, {
      [fieldName]: {$set: value || undefined}
    }))

  const _onChangeCheckbox = fieldName => ({target: {checked}}) =>
    onChange(update(user, {
      [fieldName]: {$set: !!checked}
{'fraction_non_alphanumeric': 0.16023054755043228, 'fraction_numerical': 0.0, 'mean_word_length': 3.7823691460055096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1336057', 'n_tokens_mistral': 540, 'n_tokens_neox': 538, 'n_words': 121}