<commit_before>import React, { useContext, useEffect, FC } from 'react'
import { NavLink } from 'react-router-dom'

import Icon from 'components/common/Icon'
import { AdminContext } from 'components/Admin/AdminPage'

const Navigation: FC<{}> = () => {
  const { settingForm, searchConfigured } = useContext(AdminContext)

  const items = [
    { key: 'index', to: '/admin', icon: 'mdi-cube', name: 'Wiki 管理トップ', title: 'Wiki管理', exact: true },
    { key: 'app', to: '/admin/app', icon: 'mdi-cogs', name: 'アプリ設定' },
    { key: 'notification', to: '/admin/notification', icon: 'mdi-bell', name: '通知管理' },
    { key: 'user', to: '/admin/users', icon: 'mdi-account-group', name: 'ユーザー管理' },
    { key: 'search', to: '/admin/search', icon: 'mdi-magnify', name: '検索管理', show: searchConfigured },
    { key: 'share', to: '/admin/share', icon: 'mdi-open-in-new', name: '外部共有設定' },
    { key: 'backlink', to: '/admin/backlink', icon: 'mdi-anchor', name: 'バックリンク管理' },
  ]

  useEffect(() => {
    const appTitle = settingForm['app:title'] || 'Crowi'
    const { title = undefined, name = '' } = items.find(({ to }) => to === location.pathname) || {}
    const pageTitle = `${title || name} · ${appTitle}`

    if (name && document.title !== pageTitle) {<commit_msg>Fix import<commit_after>import React, { useContext, useEffect, FC } from 'react'
import { NavLink } from 'react-router-dom'

import Icon from 'components/Common/Icon'
import { AdminContext } from 'components/Admin/AdminPage'

const Navigation: FC<{}> = () => {
  const { settingForm, searchConfigured } = useContext(AdminContext)

  const items = [
    { key: 'index', to: '/admin', icon: 'mdi-cube', name: 'Wiki 管理トップ', title: 'Wiki管理', exact: true },
    { key: 'app', to: '/admin/app', icon: 'mdi-cogs', name: 'アプリ設定' },
    { key: 'notification', to: '/admin/notification', icon: 'mdi-bell', name: '通知管理' },
    { key: 'user', to: '/admin/users', icon: 'mdi-account-group', name: 'ユーザー管理' },
    { key: 'search', to: '/admin/search', icon: 'mdi-magnify', name: '検索管理', show: searchConfigured },
    { key: 'share', to: '/admin/share', icon: 'mdi-open-in-new', name: '外部共有設定' },
    { key: 'backlink', to: '/admin/backlink', icon: 'mdi-anchor', name: 'バックリンク管理' },
  ]

  useEffect(() => {
    const appTitle = settingForm['app:title'] || 'Crowi'
    const { title = undefined, name = '' } = items.find(({ to }) => to === location.pathname) || {}
    const pageTitle = `${title || name} · ${appTitle}`

    if (name && document.title !== pageTitle) {
{'fraction_non_alphanumeric': 0.21123953766440812, 'fraction_numerical': 0.0, 'mean_word_length': 3.960474308300395, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1067173', 'n_tokens_mistral': 918, 'n_tokens_neox': 925, 'n_words': 229}