<commit_before>import React from 'react';
import axios from 'axios';
import available from './../../images/Available-tag.png';
import occupied from './../../images/occupied-tag.png';

export default class Home extends React.Component {

	constructor(props) {
		super(props)
		this.roomStatus.bind(this);
		this.state = {
			rooms: []
		};
	}


	componentDidMount() {
		this.get_room_status = setInterval(
			() => this.roomStatus(),
			1000
		);
	}

	roomStatus() {
		var _this = this;
		axios.get('https://mighty-dawn-90967.herokuapp.com/v1/rooms')
			.then(function(response) {
				_this.setState({
					rooms: response.data
				});
			})
			.catch(function(error) {
				console.log(error);
			});

	}

	componentWillUnmount() {
		clearInterval(this.get_room_status);
	}

	render() {
		return (
			<div className="Main-panel">
				<div className="Main-heading">War rooms availability</div>
				<div className="Main-sub-heading">Realtime updates to plan your meetings</div>
        {this.state.rooms.map(function(room) {
          return (
						<div className="Room-panel"><commit_msg>increase delay duration<commit_after>import React from 'react';
import axios from 'axios';
import available from './../../images/Available-tag.png';
import occupied from './../../images/occupied-tag.png';

export default class Home extends React.Component {

	constructor(props) {
		super(props)
		this.roomStatus.bind(this);
		this.state = {
			rooms: []
		};
	}


	componentDidMount() {
		this.get_room_status = setInterval(
			() => this.roomStatus(),
			5000
		);
	}

	roomStatus() {
		var _this = this;
		axios.get('https://mighty-dawn-90967.herokuapp.com/v1/rooms')
			.then(function(response) {
				_this.setState({
					rooms: response.data
				});
			})
			.catch(function(error) {
				console.log(error);
			});

	}

	componentWillUnmount() {
		clearInterval(this.get_room_status);
	}

	render() {
		return (
			<div className="Main-panel">
				<div className="Main-heading">War rooms availability</div>
				<div className="Main-sub-heading">Realtime updates to plan your meetings</div>
        {this.state.rooms.map(function(room) {
          return (
						<div className="Room-panel">
{'fraction_non_alphanumeric': 0.15934065934065933, 'fraction_numerical': 0.009157509157509158, 'mean_word_length': 3.2927308447937134, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '6923593', 'n_tokens_mistral': 834, 'n_tokens_neox': 702, 'n_words': 129}