<commit_before>import React from 'react';

import '../css/Components/Sponsors';
import '../css/Components/Grid';

import Text from './Text';
import Link from './Link';
import Button from './Button';
import Section from './Section';
import SectionTitle from './SectionTitle';
import SubSectionTitle from './SubSectionTitle';
import SponsorsData from '../data/sponsors';

const renderLogos = logos =>
  logos.map(logo => {
    const classes = `Sponsors-logo Sponsors-${logo.alt.toLowerCase()}`;

    return (
      <span className="Sponsors-levelLogo">
        <Link target="_blank" href={logo.href}>
          <img className={classes} alt={logo.alt} key={logo.id} src={logo.src} />
        </Link>
      </span>
    );
  });

const renderLevel = data => {
  const classes = `Sponsors-level Sponsors-${data.title.toLowerCase()}`;

  return (
    <div key={data.title} className={classes}>
      <div className="Sponsors-levelTitle">
        <SubSectionTitle>{data.title}</SubSectionTitle>
      </div>
      <div className="Sponsors-levelLogos">{renderLogos(data.logos)}</div>
    </div>
  );
};

const Sponsors = () => (
  <div className="Sponsors">
    <Section>
      <div className="Grid">
        <div className="Grid-10column">
          <div className="Sponsors-wrapper">
            <div className="Sponsors-title">
              <SectionTitle alternate>Sponsors</SectionTitle>
            </div>
            <div className="Grid Grid--1offset">
              <div className="Sponsors-levelsTitle">
                <Text alternative>A warm thank you to our amazing sponsors.</Text><commit_msg>Fixes lint errors<commit_after>import React from 'react';

import '../css/Components/Sponsors';
import '../css/Components/Grid';

import Text from './Text';
import Link from './Link';
import Button from './Button';
import Section from './Section';
import SectionTitle from './SectionTitle';
import SubSectionTitle from './SubSectionTitle';
import SponsorsData from '../data/sponsors';

const renderLogos = logos => (
  logos.map((logo) => {
    const classes = `Sponsors-logo Sponsors-${logo.alt.toLowerCase()}`;

    return (
      <span className="Sponsors-levelLogo">
        <Link target="_blank" href={logo.href}>
          <img className={classes} alt={logo.alt} key={logo.id} src={logo.src} />
        </Link>
      </span>
    );
  })
);

const renderLevel = (data) => {
  const classes = `Sponsors-level Sponsors-${data.title.toLowerCase()}`;

  return (
    <div key={data.title} className={classes}>
      <div className="Sponsors-levelTitle">
        <SubSectionTitle>{data.title}</SubSectionTitle>
      </div>
      <div className="Sponsors-levelLogos">{renderLogos(data.logos)}</div>
    </div>
  );
};

const Sponsors = () => (
  <div className="Sponsors">
    <Section>
      <div className="Grid">
        <div className="Grid-10column">
          <div className="Sponsors-wrapper">
            <div className="Sponsors-title">
              <SectionTitle alternate>Sponsors</SectionTitle>
            </div>
            <div className="Grid Grid--1offset">
              <div className="Sponsors-levelsTitle">
                <Text alternative>A warm thank you to our amazing sponsors.</Text>
{'fraction_non_alphanumeric': 0.15950155763239876, 'fraction_numerical': 0.001869158878504673, 'mean_word_length': 3.018773466833542, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 63, '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': '4473960', 'n_tokens_mistral': 956, 'n_tokens_neox': 943, 'n_words': 211}