<commit_before>/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import $ from 'jquery'
import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import ReactModal from 'react-modal'
import Button from '@instructure/ui-buttons/lib/components/Button'
import TextInput from '@instructure/ui-forms/lib/components/TextInput'
import ScreenReaderContent from '@instructure/ui-a11y/lib/components/ScreenReaderContent'
import I18n from 'i18n!calendar_color_picker'
import CourseNicknameEdit from './CourseNicknameEdit'
import classnames from 'classnames'
import 'compiled/jquery.rails_flash_notifications'

  export const PREDEFINED_COLORS = [
    {hexcode: '#EF4437', name: I18n.t('Red')},
    {hexcode: '#E71F63', name: I18n.t('Pink')},
    {hexcode: '#8F3E97', name: I18n.t('Purple')},
    {hexcode: '#65499D', name: I18n.t('Deep Purple')},
    {hexcode: '#4554A4', name: I18n.t('Indigo')},
    {hexcode: '#2083C5', name: I18n.t('Blue')},
    {hexcode: '#35A4DC', name: I18n.t('Light Blue')},
    {hexcode: '#09BCD3', name: I18n.t('Cyan')},
    {hexcode: '#009688', name: I18n.t('Teal')},
    {hexcode: '#43A047', name: I18n.t('Green')},
    {hexcode: '#8BC34A', name: I18n.t('Light Green')},
    {hexcode: '#FDC010', name: I18n.t('Yellow')},
    {hexcode: '#F8971C', name: I18n.t('Orange')},
    {hexcode: '#F0592B', name: I18n.t('Deep Orange')},
    {hexcode: '#F06291', name: I18n.t('Light Pink')}
  ];

  function shouldApplySwatchBorderColor (color) {
    return this.props.withBoxShadow || this.state.currentColor !== color.hexcode
  }
<commit_msg>style(ColorPicker): update hex + names for 3:1 default<commit_after>/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

import $ from 'jquery'
import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import ReactModal from 'react-modal'
import Button from '@instructure/ui-buttons/lib/components/Button'
import TextInput from '@instructure/ui-forms/lib/components/TextInput'
import ScreenReaderContent from '@instructure/ui-a11y/lib/components/ScreenReaderContent'
import I18n from 'i18n!calendar_color_picker'
import CourseNicknameEdit from './CourseNicknameEdit'
import classnames from 'classnames'
import 'compiled/jquery.rails_flash_notifications'

  export const PREDEFINED_COLORS = [
    {hexcode: '#BD3C14', name: I18n.t('Brick')},
    {hexcode: '#FF2717', name: I18n.t('Red')},
    {hexcode: '#E71F63', name: I18n.t('Magenta')},
    {hexcode: '#8F3E97', name: I18n.t('Purple')},
    {hexcode: '#65499D', name: I18n.t('Deep Purple')},
    {hexcode: '#4554A4', name: I18n.t('Indigo')},
    {hexcode: '#1770AB', name: I18n.t('Blue')},
    {hexcode: '#0B9BE3', name: I18n.t('Light Blue')},
    {hexcode: '#06A3B7', name: I18n.t('Cyan')},
    {hexcode: '#009688', name: I18n.t('Teal')},
    {hexcode: '#009606', name: I18n.t('Green')},
    {hexcode: '#8D9900', name: I18n.t('Olive')},
    {hexcode: '#D97900', name: I18n.t('Pumpkin')},
    {hexcode: '#FD5D10', name: I18n.t('Orange')},
    {hexcode: '#F06291', name: I18n.t('Pink')}
  ];

  function shouldApplySwatchBorderColor (color) {
    return this.props.withBoxShadow || this.state.currentColor !== color.hexcode
  }

{'fraction_non_alphanumeric': 0.14609739826551035, 'fraction_numerical': 0.047364909939959975, 'mean_word_length': 4.587577639751553, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4413532', 'n_tokens_mistral': 1634, 'n_tokens_neox': 1510, 'n_words': 453}