<commit_before>import * as React from "react"
import { aflData, AFLRoundData, Round, Match } from "./data"

interface TippingAppState {
	data: AFLRoundData
	selectedRoundNum: number
}

export interface TippingAppProps {
	selectedRound: Round
	selectWinner: (match: Match, winner: string) => void
	goPrevRound: () => void
	goNextRound: () => void
}

interface TippingBaseAppInterface {
	(props: TippingAppProps): JSX.Element
}

export interface TippingBaseContainerProps {
	child: TippingBaseAppInterface
	initialRoundNum?: number
}

export class TippingBaseContainer extends React.Component<TippingBaseContainerProps, TippingAppState> {

	constructor(props) {
		super(props)
		this.state = {
			data: aflData,
			selectedRoundNum: props.initialRoundNum ? props.initialRoundNum : 0
		}
	}

	handleWinnerSelected = (match: Match, team: string) => {
		match.tip = team
		this.setState({data: aflData})
	}

	goPrevRound = () => {
		if (this.state.selectedRoundNum > 0) {
			this.setState({selectedRoundNum: this.state.selectedRoundNum - 1})
		}
	}

	goNextRound = () => {<commit_msg>fix(tipping_base_container): typescript error<commit_after>import * as React from "react"
import { aflData, AFLRoundData, Round, Match } from "./data"

interface TippingAppState {
	data: AFLRoundData
	selectedRoundNum: number
}

export interface TippingAppProps {
	selectedRound: Round
	selectWinner: (match: Match, winner: string) => void
	goPrevRound: () => void
	goNextRound: () => void
}

interface TippingBaseAppInterface {
	(props: TippingAppProps): JSX.Element
}

export interface TippingBaseContainerProps {
	child: TippingBaseAppInterface
	initialRoundNum?: number
}

export class TippingBaseContainer extends React.Component<TippingBaseContainerProps, TippingAppState> {

	constructor(props: TippingBaseContainerProps) {
		super(props)
		this.state = {
			data: aflData,
			selectedRoundNum: props.initialRoundNum ? props.initialRoundNum : 0
		}
	}

	handleWinnerSelected = (match: Match, team: string) => {
		match.tip = team
		this.setState({data: aflData})
	}

	goPrevRound = () => {
		if (this.state.selectedRoundNum > 0) {
			this.setState({selectedRoundNum: this.state.selectedRoundNum - 1})
		}
	}

	goNextRound = () => {
{'fraction_non_alphanumeric': 0.11096075778078485, 'fraction_numerical': 0.0027063599458728013, 'mean_word_length': 5.060109289617486, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '751118', 'n_tokens_mistral': 744, 'n_tokens_neox': 703, 'n_words': 157}