<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import getAlerts from '../actions/getAlerts'

// Components
import AlertDay from './alertday';

export class Alerts extends Component {

	componentDidMount(){
		this.props.dispatch(getAlerts('F'))
	}

	handleChange(unit){
		this.props.dispatch(getAlerts(unit))
	}


	render() {

		let alertList;

		if (this.props.alerts) {
			alertList = this.props.alerts.map( (data, index)=>{
				let fahr = data.hi;
				let cel = '';
				let day = data.date[0] + ", " 
				let date = data.date[1] + "/" + data.date[2];
				let unit = this.props.unit

				return <AlertDay key={index} day={day}  date={date} fahr={fahr}  unit={unit}/>
			})			
		}<commit_msg>Added the changed to the reducer_getAlerts time stamp<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import getAlerts from '../actions/getAlerts'

// Components
import AlertDay from './alertday';

export class Alerts extends Component {

	componentDidMount(){
		this.props.dispatch(getAlerts('F'))
	}

	handleChange(unit){
		this.props.dispatch(getAlerts(unit))
	}


	render() {

		let alertList;

		if (this.props.alerts) {
			alertList = this.props.alerts.map( (data, index)=>{
				let fahr = data.hi;
				let cel = '';
				let day = data.date[0] + ", " 
				let date = data.date[2] + "/" + data.date[1];
				let unit = this.props.unit

				return <AlertDay key={index} day={day}  date={date} fahr={fahr}  unit={unit}/>
			})			
		}
{'fraction_non_alphanumeric': 0.1616294349540079, 'fraction_numerical': 0.003942181340341655, 'mean_word_length': 3.427325581395349, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3274486', 'n_tokens_mistral': 601, 'n_tokens_neox': 523, 'n_words': 123}