<commit_before>import cx from 'classnames'
import * as R from 'ramda'
import * as React from 'react'
import * as M from '@material-ui/core'

import Column from './Column'
import Errors from './Errors'
import State from './State'

const useStyles = M.makeStyles((t) => ({
  disabled: {
    position: 'relative',
    '&:after': {
      background: t.palette.action.disabledBackground,
      bottom: 0,
      content: '""',
      left: 0,
      position: 'absolute',
      right: 0,
      top: 0,
    },
  },
  errors: {
    marginTop: t.spacing(1),
  },
  inner: {
    display: 'flex',
    maxHeight: t.spacing(46),
    overflow: 'auto',
  },
}))

function JsonEditor({
  addRow,<commit_msg>Fix metdata disabled state (#1993)<commit_after>import cx from 'classnames'
import * as R from 'ramda'
import * as React from 'react'
import * as M from '@material-ui/core'

import Column from './Column'
import Errors from './Errors'
import State from './State'

const useStyles = M.makeStyles((t) => ({
  disabled: {
    position: 'relative',
    '&:after': {
      background: 'rgba(255,255,255,0.9)',
      bottom: 0,
      content: '""',
      cursor: 'not-allowed',
      left: 0,
      position: 'absolute',
      right: 0,
      top: 0,
      zIndex: 1,
    },
  },
  errors: {
    marginTop: t.spacing(1),
  },
  inner: {
    display: 'flex',
    maxHeight: t.spacing(46),
    overflow: 'auto',
  },
}))

function JsonEditor({
  addRow,
{'fraction_non_alphanumeric': 0.162595952547104, 'fraction_numerical': 0.0209351011863224, 'mean_word_length': 2.7736842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2227774', 'n_tokens_mistral': 509, 'n_tokens_neox': 486, 'n_words': 135}