<commit_before>import React from 'react'
import { connect } from 'react-redux'
import SVGInline from 'react-svg-inline'
import { Icon, Button, Menu, Dropdown } from 'antd'
// import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'

import 'reset-css'
import 'antd/dist/antd.css'

import rsrSvg from './images/akvorsr.svg'
import Editor from './modules/editor/editor'

const menu = () => (
  <Menu>
    <Menu.Item key="0">
      <a href="http://www.alipay.com/">My details</a>
    </Menu.Item>
    <Menu.Item key="1">
      <a href="http://www.taobao.com/">Sign out</a>
    </Menu.Item>
  </Menu>
)

const _Header = ({infoRdr}) => (
  <header>
    <Icon type="left" />
    <h1>{infoRdr.title ? infoRdr.title : 'Untitled project'}</h1>
  </header>
)
const Header = connect(({ infoRdr }) => ({ infoRdr }))(_Header)

const Root = ({ infoRdr }) => {
  return (
    <div id="root">
      <div className="top-bar">
        <div className="ui container">
          <SVGInline svg={rsrSvg} />
          <div className="right-side">
            <Dropdown overlay={menu} trigger={['click']}>
              <span className="user ant-dropdown-link">
                <NAME> <Icon type="caret-down" />
              </span>
            </Dropdown>
            <Button type="primary" ghost>My Projects</Button>
          </div>
        </div>
      </div>
      <div className="ui container">
        <Header />
        <Editor />
      </div>
    </div>
  )
}

export default Root<commit_msg>[#3545] root misc<commit_after>import React from 'react'
import { connect } from 'react-redux'
import SVGInline from 'react-svg-inline'
import { Icon, Button, Menu, Dropdown } from 'antd'

import 'reset-css'
import 'antd/dist/antd.css'

import rsrSvg from './images/akvorsr.svg'
import Editor from './modules/editor/editor'

const menu = () => (
  <Menu>
    <Menu.Item key="0">
      <a href="/en/myrsr/details/">My details</a>
    </Menu.Item>
    <Menu.Item key="1">
      <a href="/en/sign_out">Sign out</a>
    </Menu.Item>
  </Menu>
)

const _Header = ({infoRdr}) => (
  <header>
    <Icon type="left" />
    <h1>{infoRdr.title ? infoRdr.title : 'Untitled project'}</h1>
  </header>
)
const Header = connect(({ infoRdr }) => ({ infoRdr }))(_Header)

const Root = () => (
  <div id="root">
    <div className="top-bar">
      <div className="ui container">
        <SVGInline svg={rsrSvg} />
        <div className="right-side">
          <Dropdown overlay={menu} trigger={['click']}>
            <span className="user ant-dropdown-link">
              <NAME> <Icon type="caret-down" />
            </span>
          </Dropdown>
          <Button type="primary" ghost>My Projects</Button>
        </div>
      </div>
    </div>
    <div className="ui container">
      <Header />
      <Editor />
    </div>
  </div>
)

export default Root
{'fraction_non_alphanumeric': 0.18140190207819654, 'fraction_numerical': 0.004226840436773511, 'mean_word_length': 2.5018495684340323, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 83, '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': '3187209', 'n_tokens_mistral': 976, 'n_tokens_neox': 966, 'n_words': 221}