<commit_before>import { FunctionComponent } from "react"
import ItemsList from "./ItemsList"
import CombinedGitHubReleasesEntry from "../models/CombinedGitHubReleasesEntry"
import FormattedDate from "./FormattedDate"
import TagsList from "./TagsList"
import { compareAsc } from "date-fns"

interface Props {
  combinedReleases: CombinedGitHubReleasesEntry
}

const CombinedGitHubReleasesPreview: FunctionComponent<Props> = ({
  combinedReleases,
}) => {
  const earliestEntry =
    combinedReleases.releases[combinedReleases.releases.length - 1]
  const latestEntry = combinedReleases.releases[0]
  const sortedReleases = combinedReleases.releases.sort(
    (releaseA, releaseB) => {
      return compareAsc(new Date(releaseA.date), new Date(releaseB.date))
    },
  )
  const items = sortedReleases.map(release => {
    return { title: release.versionNumber, url: release.url }
  })
  return (
    <article key={combinedReleases.title}>
      <header><commit_msg>Fix date orders of CombinedGitHubReleasesPreview<commit_after>import { FunctionComponent } from "react"
import ItemsList from "./ItemsList"
import CombinedGitHubReleasesEntry from "../models/CombinedGitHubReleasesEntry"
import FormattedDate from "./FormattedDate"
import TagsList from "./TagsList"
import { compareDesc } from "date-fns"

interface Props {
  combinedReleases: CombinedGitHubReleasesEntry
}

const CombinedGitHubReleasesPreview: FunctionComponent<Props> = ({
  combinedReleases,
}) => {
  const sortedReleases = combinedReleases.releases.sort(
    (releaseA, releaseB) => {
      return compareDesc(new Date(releaseA.date), new Date(releaseB.date))
    },
  )
  const earliestEntry = sortedReleases[combinedReleases.releases.length - 1]
  const latestEntry = sortedReleases[0]
  const items = sortedReleases.reverse().map(release => {
    return { title: release.versionNumber, url: release.url }
  })
  return (
    <article key={combinedReleases.title}>
      <header>
{'fraction_non_alphanumeric': 0.10518214468958441, 'fraction_numerical': 0.002052334530528476, 'mean_word_length': 5.018518518518518, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1205243', 'n_tokens_mistral': 591, 'n_tokens_neox': 561, 'n_words': 125}