<commit_before>import { stringify } from 'querystring'
import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { withRouter } from 'next/router'
import { translate } from 'react-i18next'

import Dropdown from '../../dropdown'

export class LanguageSelection extends React.PureComponent {
  static propTypes = {
    i18n: PropTypes.shape({
      changeLanguage: PropTypes.func.isRequired
    }).isRequired
  }

  changeLanguage(language) {
    const { i18n, router } = this.props

    const current = i18n.language<commit_msg>Add missing proptypes<commit_after>import { stringify } from 'querystring'
import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { withRouter } from 'next/router'
import { translate } from 'react-i18next'

import Dropdown from '../../dropdown'

export class LanguageSelection extends React.PureComponent {
  static propTypes = {
    i18n: PropTypes.shape({
      changeLanguage: PropTypes.func.isRequired
    }).isRequired,

    router: PropTypes.shape({
      pathname: PropTypes.string.isRequired,
      query: PropTypes.string,
      asPath: PropTypes.string.isRequired
    }).isRequired
  }

  changeLanguage(language) {
    const { i18n, router } = this.props

    const current = i18n.language
{'fraction_non_alphanumeric': 0.10107197549770292, 'fraction_numerical': 0.01225114854517611, 'mean_word_length': 3.9135338345864663, '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': '6976925', 'n_tokens_mistral': 377, 'n_tokens_neox': 374, 'n_words': 106}