<commit_before>import React, { FC, useCallback, useMemo, useState } from 'react';

import Head from 'next/head';

import GlobalHeader, { COMMUNITY_TITLE, COMMUNITY_URL } from '@jetbrains/kotlin-web-site-ui/out/components/header';
import GlobalFooter from '@jetbrains/kotlin-web-site-ui/out/components/footer';
import TopMenu from '@jetbrains/kotlin-web-site-ui/out/components/top-menu';
import CtaBlock from '@jetbrains/kotlin-web-site-ui/out/components/cta-block';
import Button from '@rescui/button';
import { Theme, ThemeProvider } from '@rescui/ui-contexts';
import { useRouter } from 'next/router';
import { StickyHeader } from '../../../components/sticky-header/sticky-header';
import { Search, onSearch } from '../../../components/search/search';
import releasesDataRaw from '../../../data/releases.yml';

const releasesData: ReleasesData = releasesDataRaw as ReleasesData;

const items = [
    {
        url: '/community/',
        title: 'Overview',
    },
    {
        url: '/community/user-groups/',
        title: 'Kotlin User Groups',
    },
    {
        url: '/community/events/',
        title: 'Events',
    },
];

interface CommunityLayoutProps {
    title: string;
    description?: string;
    ogImageName?: string;
    children: React.ReactNode;
}

export const CommunityLayout: FC<CommunityLayoutProps> = ({ title, ogImageName, description, children }) => {
    const [theme, setTheme] = useState<Theme>('dark');
    const router = useRouter();
    const activeIndex = useMemo(
        () => items.map((item) => item.url).indexOf(addTrailingSlash(router.pathname)),
        [router.pathname]
    );
    const linkHandler = useCallback(
        (event, url) => {
            event.preventDefault();
            router.push(url);<commit_msg>ktl-759 chore: remove unused param<commit_after>import React, { FC, useCallback, useMemo, useState } from 'react';

import Head from 'next/head';

import GlobalHeader, { COMMUNITY_TITLE, COMMUNITY_URL } from '@jetbrains/kotlin-web-site-ui/out/components/header';
import GlobalFooter from '@jetbrains/kotlin-web-site-ui/out/components/footer';
import TopMenu from '@jetbrains/kotlin-web-site-ui/out/components/top-menu';
import CtaBlock from '@jetbrains/kotlin-web-site-ui/out/components/cta-block';
import Button from '@rescui/button';
import { Theme, ThemeProvider } from '@rescui/ui-contexts';
import { useRouter } from 'next/router';
import { StickyHeader } from '../../../components/sticky-header/sticky-header';
import { Search, onSearch } from '../../../components/search/search';
import releasesDataRaw from '../../../data/releases.yml';

const releasesData: ReleasesData = releasesDataRaw as ReleasesData;

const items = [
    {
        url: '/community/',
        title: 'Overview',
    },
    {
        url: '/community/user-groups/',
        title: 'Kotlin User Groups',
    },
    {
        url: '/community/events/',
        title: 'Events',
    },
];

interface CommunityLayoutProps {
    title: string;
    description?: string;
    ogImageName?: string;
    children: React.ReactNode;
}

export const CommunityLayout: FC<CommunityLayoutProps> = ({ title, ogImageName, description, children }) => {
    const [theme] = useState<Theme>('dark');
    const router = useRouter();
    const activeIndex = useMemo(
        () => items.map((item) => item.url).indexOf(addTrailingSlash(router.pathname)),
        [router.pathname]
    );
    const linkHandler = useCallback(
        (event, url) => {
            event.preventDefault();
            router.push(url);
{'fraction_non_alphanumeric': 0.1519094766619519, 'fraction_numerical': 0.0008486562942008486, 'mean_word_length': 3.3600493218249077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '4813683', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1061, 'n_words': 234}