<commit_before>import React from 'react'
import ReactDOM from 'react-dom'
import { ipcRenderer, shell } from 'electron'
import iD from 'id-mapeo'
import debounce from 'lodash/debounce'
import insertCss from 'insert-css'

import logger from '../../../logger'
import api from '../../new-api'
import { defineMessages, useIntl } from 'react-intl'
import ExportButton from './ExportButton'

const m = defineMessages({
  'feedback-contribute-button': 'Feedback & Contribute',
  notes: 'Description'
})

// iD Editor style overrides
insertCss(`
  .id-container .header {
    height: 64px;
  }
  .id-container .pane {
    bottom: 0;
  }
  .id-container .entity-editor-pane .inspector-body, .id-container .selection-list-pane .inspector-body {
    top: 64px;
  }
  .id-container #bar {
    height: 64px;
    background-color: white;
    padding: 0 8px 0 8px;
    align-items: center;
  }
  .id-container #bar .toolbar-item .item-label {
    display: none;
  }
  .id-container #bar .toolbar-item .item-content {
    flex: 1;
    display: inline-flex;
    border-radius: 4px;
  }
  .id-container #bar .toolbar-item.sidebar-toggle {
    display: none;
  }
  .id-container.collapsed-sidebar #bar .toolbar-item.sidebar-toggle {
    display: inherit;
  }
  .id-container #bar > .toolbar-item.spacer:nth-child(2) {
    display: none;
  }
  .id-container button.bar-button {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(0,0,0,0);
    height: 44px;
    font-family: Rubik, sans-serif;
    font-weight: 500;
    line-height: 1.75;
    font-size: 0.875rem;
    padding: 0 16px;
  }
  .id-container [dir='ltr'] .add-point .tooltip {
    left: 0 !important;
  }
  .id-container [dir='ltr'] .add-point .tooltip .tooltip-arrow {
    left: 20px;
  }
  .id-container button.bar-button.active {
    background-color: #7092ff;
  }
  .id-container button.bar-button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .id-container button.bar-button:not(:first-child) {
    border-left: 1px solid transparent;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .id-container .joined > *:last-child {
    border-right-width: 1px;
  }
  .id-container button.save .count {
    min-width: auto;
    padding-left: 8px
  }
  .id-container #bar .mapeo-toolbar-item.mapeo-spacer {
    width: 100%;
    flex-grow: 2;
  }
  .id-container #bar .mapeo-toolbar-item {
    display: flex;
    flex: 0 1 auto;
    flex-flow: column wrap;
    justify-content: center;
    position: relative;
  }
  .id-container .inspector-body .raw-tag-editor {
    display: none;
  }
  .id-container .inspector-body .raw-member-editor {
    display: none;
  }
  .id-container .inspector-body .raw-membership-editor {
    display: none;
  }
  .id-container .layer-list li.switch {
    background: none;
  }  
  .id-container .map-panes .map-data-photo-overlays {
    display: none;
  }
  .id-container .map-panes .map-data-area-fills {
    display: none;
  }
  .id-container .map-panes .background-overlay-list-container {
    display: none;
  }
  .id-container .map-panes .background-display-options {<commit_msg>fix: Reactivate Overlays menu in Background settings (#533)<commit_after>import React from 'react'
import ReactDOM from 'react-dom'
import { ipcRenderer, shell } from 'electron'
import iD from 'id-mapeo'
import debounce from 'lodash/debounce'
import insertCss from 'insert-css'

import logger from '../../../logger'
import api from '../../new-api'
import { defineMessages, useIntl } from 'react-intl'
import ExportButton from './ExportButton'

const m = defineMessages({
  'feedback-contribute-button': 'Feedback & Contribute',
  notes: 'Description'
})

// iD Editor style overrides
insertCss(`
  .id-container .header {
    height: 64px;
  }
  .id-container .pane {
    bottom: 0;
  }
  .id-container .entity-editor-pane .inspector-body, .id-container .selection-list-pane .inspector-body {
    top: 64px;
  }
  .id-container #bar {
    height: 64px;
    background-color: white;
    padding: 0 8px 0 8px;
    align-items: center;
  }
  .id-container #bar .toolbar-item .item-label {
    display: none;
  }
  .id-container #bar .toolbar-item .item-content {
    flex: 1;
    display: inline-flex;
    border-radius: 4px;
  }
  .id-container #bar .toolbar-item.sidebar-toggle {
    display: none;
  }
  .id-container.collapsed-sidebar #bar .toolbar-item.sidebar-toggle {
    display: inherit;
  }
  .id-container #bar > .toolbar-item.spacer:nth-child(2) {
    display: none;
  }
  .id-container button.bar-button {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: rgba(0,0,0,0);
    height: 44px;
    font-family: Rubik, sans-serif;
    font-weight: 500;
    line-height: 1.75;
    font-size: 0.875rem;
    padding: 0 16px;
  }
  .id-container [dir='ltr'] .add-point .tooltip {
    left: 0 !important;
  }
  .id-container [dir='ltr'] .add-point .tooltip .tooltip-arrow {
    left: 20px;
  }
  .id-container button.bar-button.active {
    background-color: #7092ff;
  }
  .id-container button.bar-button:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .id-container button.bar-button:not(:first-child) {
    border-left: 1px solid transparent;
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .id-container .joined > *:last-child {
    border-right-width: 1px;
  }
  .id-container button.save .count {
    min-width: auto;
    padding-left: 8px
  }
  .id-container #bar .mapeo-toolbar-item.mapeo-spacer {
    width: 100%;
    flex-grow: 2;
  }
  .id-container #bar .mapeo-toolbar-item {
    display: flex;
    flex: 0 1 auto;
    flex-flow: column wrap;
    justify-content: center;
    position: relative;
  }
  .id-container .inspector-body .raw-tag-editor {
    display: none;
  }
  .id-container .inspector-body .raw-member-editor {
    display: none;
  }
  .id-container .inspector-body .raw-membership-editor {
    display: none;
  }
  .id-container .layer-list li.switch {
    background: none;
  }  
  .id-container .map-panes .map-data-photo-overlays {
    display: none;
  }
  .id-container .map-panes .map-data-area-fills {
    display: none;
  }
  .id-container .map-panes .background-display-options {
{'fraction_non_alphanumeric': 0.147475712693104, 'fraction_numerical': 0.019907628603280776, 'mean_word_length': 2.758228605625374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4031225', 'n_tokens_mistral': 2393, 'n_tokens_neox': 2263, 'n_words': 500}