<commit_before>import React, { useMemo } from 'react';
import { InertiaLink } from '@inertiajs/inertia-react';

import PlatformIcon from '../Platforms/PlatformIcon';
import clsx from 'clsx';

export default function Flight({ platform, build, channels, version = null, pack = null, url = null, overview = false, sidebar = false }) {
    const Component = useMemo(() => (url ? InertiaLink : 'div'), ['url']);
    const mainProps = useMemo(() => ({ href: url }), ['url']);
    console.log(overview, sidebar);

    return (
        <Component {...mainProps} className="event">
            <div className="icon">
                <PlatformIcon platform={platform} color />
            </div>
            <div className="revision">{build}</div>
            <div className={clsx('tags', { 'justify-content-end': sidebar })}>
                {channels.map((channel, key) => (
                    <span key={key} className="badge me-1" style={{ backgroundColor: channel.color }}>{channel.name}</span>
                ))}
            </div><commit_msg>Remove console log<commit_after>import React, { useMemo } from 'react';
import { InertiaLink } from '@inertiajs/inertia-react';

import PlatformIcon from '../Platforms/PlatformIcon';
import clsx from 'clsx';

export default function Flight({ platform, build, channels, version = null, pack = null, url = null, overview = false, sidebar = false }) {
    const Component = useMemo(() => (url ? InertiaLink : 'div'), ['url']);
    const mainProps = useMemo(() => ({ href: url }), ['url']);

    return (
        <Component {...mainProps} className="event">
            <div className="icon">
                <PlatformIcon platform={platform} color />
            </div>
            <div className="revision">{build}</div>
            <div className={clsx('tags', { 'justify-content-end': sidebar })}>
                {channels.map((channel, key) => (
                    <span key={key} className="badge me-1" style={{ backgroundColor: channel.color }}>{channel.name}</span>
                ))}
            </div>
{'fraction_non_alphanumeric': 0.1682106289614822, 'fraction_numerical': 0.0009751340809361287, 'mean_word_length': 2.730909090909091, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 29, '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': '122772', 'n_tokens_mistral': 576, 'n_tokens_neox': 561, 'n_words': 151}