<commit_before>import { computed } from 'mobx'
import { createMuiTheme } from '@material-ui/core/styles'
import merge from 'lodash.merge'

const overrides = {
  MuiIconButton: {
    root: {
      height: '2.5rem',
      width: '2.5rem'
    }
  },
  MuiSwitch: {
    root: {
      width: '3.5rem'
    }
  },
  MuiSnackbarContent: {
    root: {
      fontSize: '1.5rem',
      padding: '0 2rem',
      justifyContent: 'center',
      textTransform: 'capitalize',
      backgroundColor: 'rgba(0, 0, 0, 0.618)'
    }
  },
  MuiTooltip: {
    tooltip: {
      display: 'inline-flex'
    }
  }
}

const app = {
  backgroundColor: 'white',
  test: {
    danger: 'white'
  }
}

const theme = { overrides, app }

const darkTheme = {
  overrides,
  app: merge({}, app, {
    backgroundColor: '#202123'
  })
}

export default class ThemeStore {
  constructor (store) {
    this.store = store
  }

  @computed
  get theme () {
    return this.store.userStore.darkTheme ? darkTheme : theme
  }

  @computed
  get muiTheme () {
    return createMuiTheme(this.theme)
  }
}
<commit_msg>Tune merge level<commit_after>import { computed } from 'mobx'
import { createMuiTheme } from '@material-ui/core/styles'
import merge from 'lodash.merge'

const overrides = {
  MuiIconButton: {
    root: {
      height: '2.5rem',
      width: '2.5rem'
    }
  },
  MuiSwitch: {
    root: {
      width: '3.5rem'
    }
  },
  MuiSnackbarContent: {
    root: {
      fontSize: '1.5rem',
      padding: '0 2rem',
      justifyContent: 'center',
      textTransform: 'capitalize',
      backgroundColor: 'rgba(0, 0, 0, 0.618)'
    }
  },
  MuiTooltip: {
    tooltip: {
      display: 'inline-flex'
    }
  }
}

const app = {
  backgroundColor: 'white',
  test: {
    danger: 'white'
  }
}

const theme = { overrides, app }

const darkTheme = merge({}, theme, {
  app: {
    backgroundColor: '#202123'
  }
})

export default class ThemeStore {
  constructor (store) {
    this.store = store
  }

  @computed
  get theme () {
    return this.store.userStore.darkTheme ? darkTheme : theme
  }

  @computed
  get muiTheme () {
    return createMuiTheme(this.theme)
  }
}

{'fraction_non_alphanumeric': 0.14118198874296436, 'fraction_numerical': 0.021575984990619138, 'mean_word_length': 2.508223684210526, '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': '6245961', 'n_tokens_mistral': 809, 'n_tokens_neox': 783, 'n_words': 167}