<commit_before>import React, { Component } from 'react'
import styled from 'styled-components'
import { Collapse, Button, CardBody, Card, Table } from 'reactstrap';
import { createUrl } from '../../api/utils'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'


const ScheduleStyle = styled.div`
    margin: 50px auto auto auto;
`


class Schedule extends Component {

  constructor(props) {
    super(props);
    this.toggle = this.toggle.bind(this);
    this.state = { collapse: false };
  }

  toggle() {
  this.setState({ collapse: !this.state.collapse });
  }

  const { data: { loading, allMatches, allLeagueSeries, allLeagueSeason }} = this.props


  render(){
    return (

       <div>
       <ScheduleStyle>
       </ScheduleStyle>
        {allLeagueSeries.map((series) =>(

            <Button color="primary" onClick={this.toggle} style={{ marginBottom: '1rem', cursor: 'pointer' }}>
            {series.start_date} </Button>
            <Collapse isOpen={this.state.collapse}>

                <Card>
                  <CardBody>
                  <Table>
                    <thead>
                      <tr>
                        <th>Match #</th>
                        <th>Team A</th>
                        <th>Team B</th>
                        <th>Score</th>
                      </tr>
                    </thead>

                    {allMatches.map((match, idx) => (
                      <tbody>
                        <tr>
                          <th scope="row">{idx}</th>
                          <td>{match.team_a}</td>
                          <td>{match.team_b}</td>
                          <td>2:1</td>
                        </tr>
                      </tbody>

                    ))}
              </Table>
              </CardBody>
            </Card>
            </Collapse>
        ))}
       </div>

   );
  }
}


const query= gql`query { allMatches, allLeagueSeries, allLeagueSeason }`
export default Schedule;
<commit_msg>forgot to commit updates for schedule last commit<commit_after>import React, { Component } from 'react'
import styled from 'styled-components'
import { Collapse, Button, CardBody, Card, Table } from 'reactstrap';
import { createUrl } from '../../api/utils'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'


const ScheduleStyle = styled.div`
    margin: 50px auto auto auto;
`


class Schedule extends Component {

  constructor(props) {
    super(props);
    this.toggle = this.toggle.bind(this);
    this.state = { collapse: false };
  }

  toggle() {
  this.setState({ collapse: !this.state.collapse });
  }

  const { data: { loading, allMatches, allLeagueSeries, allLeagueSeason }} = this.props


  render(){
    return (

       <div>
       <ScheduleStyle>
       </ScheduleStyle>
        {allLeagueSeries.map((series) =>(

            <Button color="primary" onClick={this.toggle} style={{ marginBottom: '1rem', cursor: 'pointer' }}>
            {series.start_date} </Button>
            <Collapse isOpen={this.state.collapse}>

                <Card>
                  <CardBody>
                  <Table>
                    <thead>
                      <tr>
                        <th>Match #</th>
                        <th>Team A</th>
                        <th>Team B</th>
                        <th>Score</th>
                      </tr>
                    </thead>

                    {allLeagueSeries.map((match, idx) => (
                      <tbody>
                        <tr>
                          <th scope="row">{idx}</th>
                          <td>{match.team_a}</td>
                          <td>{match.team_b}</td>
                          <td>{ match.
                            0:0
                          }
                            </td>
                        </tr>
                      </tbody>

                    ))}
              </Table>
              </CardBody>
            </Card>
            </Collapse>
        ))}
       </div>

   );
  }
}


const query= gql`query { allMatches, allLeagueSeries, allLeagueSeason }`
export default Schedule;

{'fraction_non_alphanumeric': 0.12872727272727272, 'fraction_numerical': 0.0024242424242424242, 'mean_word_length': 1.28840820854132, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 83, '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': '3858452', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1090, 'n_words': 242}