<commit_before>import * as React from 'react';
import * as Translate from 'react-translate-component';
import {
  Navbar,
  Dropdown, DropdownToggle, DropdownMenu, DropdownItem
} from 'reactstrap';
import { Link } from 'react-router';
import LoadingBar from 'react-redux-loading-bar';

import { locales } from '../../../config/translation';
import IconButton from '../../shared/components/icon-button/icon-button';
import appConfig from '../../../config/constants';
import './header.scss';

export interface IHeaderProps {
  currentLocale: string;
  onLocaleChange: Function;
}

const Header = ({ currentLocale, onLocaleChange }: IHeaderProps) => {
  <%_ if (enableTranslation) { _%>
  const handleChange = (event, index, language) => {
    onLocaleChange(language);
  };
  <%_ } _%>

  const renderDevRibbon = () => (
    process.env.NODE_ENV === 'development' ?
      <div className="ribbon dev"><a href=""><Translate content="global.ribbon.dev" /></a></div> :
      null
  );

  return (
    <div><commit_msg>linting<commit_after>import * as React from 'react';
import * as Translate from 'react-translate-component';
import {
  Navbar,
  Dropdown, DropdownToggle, DropdownMenu, DropdownItem
} from 'reactstrap';
import { Link } from 'react-router';
import LoadingBar from 'react-redux-loading-bar';

import { locales } from '../../../config/translation';
import IconButton from '../../../shared/components/icon-button/icon-button';
import appConfig from '../../../config/constants';
import './header.scss';

export interface IHeaderProps {
  currentLocale: string;
  onLocaleChange: Function;
}

const Header = ({ currentLocale, onLocaleChange }: IHeaderProps) => {
  <%_ if (enableTranslation) { _%>
  const handleChange = (event, index, language) => {
    onLocaleChange(language);
  };
  <%_ } _%>

  const renderDevRibbon = () => (
    process.env.NODE_ENV === 'development' ?
      <div className="ribbon dev"><a href=""><Translate content="global.ribbon.dev" /></a></div> :
      null
  );

  return (
    <div>
{'fraction_non_alphanumeric': 0.16674913409203365, 'fraction_numerical': 0.0, 'mean_word_length': 3.907766990291262, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, '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': '1468126', 'n_tokens_mistral': 620, 'n_tokens_neox': 613, 'n_words': 145}