<commit_before>import React from 'react';
import _ from 'lodash';
import classNames from 'classnames';

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

import Section from './Section';
import Workshop from './Workshop';
import DropcapText from './DropcapText';
import SectionTitle from './SectionTitle';
import WorkshopsData from '../data/workshops';
import SubSectionTitle from './SubSectionTitle';
import Button from './Button';
import Link from './Link';
import Text from './Text';

const workshopsReducer = (accum, workshop, index) => {
  if (index % 2 === 0) {
    return { odd: [...accum.odd, workshop], even: [...accum.even] };
  }

  return { odd: [...accum.odd], even: [...accum.even, workshop] };
};

const workshops = (function workshopsData() {
  if (WorkshopsData.length <= 2) {
    return [WorkshopsData, []];
  }

  return _.chain(WorkshopsData)
    .reduce(workshopsReducer, { odd: [], even: [] })
    .toArray()
    .zip()
    .flatten()
    .value();
}());

const renderWorkshop = isOddRow => (workshop, index) => {
  const isEvenWorkshop = index % 2 !== 0;

  const className = classNames({
    'Grid-4column': (isEvenWorkshop && !isOddRow) || (!isEvenWorkshop && isOddRow),
    'Grid-5column': (!isEvenWorkshop && !isOddRow) || (isEvenWorkshop && isOddRow),
  });

  return (
    <div key={index} className={className}>
      <div className={`Workshops-item ${!isEvenWorkshop ? 'odd' : ''}`}>
        <Link href={`/workshops/#${workshop.id}`}>
          <Workshop {...workshop} />
        </Link>
      </div>
    </div>
  );<commit_msg>Removes workshops links<commit_after>import React from 'react';
import _ from 'lodash';
import classNames from 'classnames';

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

import Section from './Section';
import Workshop from './Workshop';
import DropcapText from './DropcapText';
import SectionTitle from './SectionTitle';
import WorkshopsData from '../data/workshops';
import SubSectionTitle from './SubSectionTitle';
import Button from './Button';
import Link from './Link';
import Text from './Text';

const workshopsReducer = (accum, workshop, index) => {
  if (index % 2 === 0) {
    return { odd: [...accum.odd, workshop], even: [...accum.even] };
  }

  return { odd: [...accum.odd], even: [...accum.even, workshop] };
};

const workshops = (function workshopsData() {
  if (WorkshopsData.length <= 2) {
    return [WorkshopsData, []];
  }

  return _.chain(WorkshopsData)
    .reduce(workshopsReducer, { odd: [], even: [] })
    .toArray()
    .zip()
    .flatten()
    .value();
}());

const renderWorkshop = isOddRow => (workshop, index) => {
  const isEvenWorkshop = index % 2 !== 0;

  const className = classNames({
    'Grid-4column': (isEvenWorkshop && !isOddRow) || (!isEvenWorkshop && isOddRow),
    'Grid-5column': (!isEvenWorkshop && !isOddRow) || (isEvenWorkshop && isOddRow),
  });

  return (
    <div key={index} className={className}>
      <div className={`Workshops-item ${!isEvenWorkshop ? 'odd' : ''}`}>
        <Workshop {...workshop} />
      </div>
    </div>
  );
{'fraction_non_alphanumeric': 0.18659361907831132, 'fraction_numerical': 0.0045117628101836935, 'mean_word_length': 3.5647058823529414, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '3063794', 'n_tokens_mistral': 1001, 'n_tokens_neox': 975, 'n_words': 255}