<commit_before>import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import EventList from './EventList';

class EventsPage extends Component {

	constructor(props) {
		super(props);
	}

	render() {

		const position = [33.9, -112];

		return <div>
				<div className="col-sm-4">
					<EventList events={this.props.events} />
				</div>
				<div className="col-sm-8">
					<Link to="submit-event" className="btn btn-primary">Submit Event</Link>
					<Map center={position} zoom={13}>
					<TileLayer
						url='http://{s}.tile.osm.org/{z}/{x}/{y}.png'
						attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'/>
						<Marker position={position}>
							<Popup>
								<span>A pretty CSS3 popup.<br/>Easily customizable.</span>
							</Popup>
						</Marker>
					</Map>            	
				</div>
			</div>;
		}
	}

EventsPage.propTypes = {
	events: PropTypes.array.isRequired
};

EventsPage.defaultProps = {
	events: []<commit_msg>added key property to Marker component<commit_after>import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { Map, Marker, Popup, TileLayer } from 'react-leaflet';
import EventList from './EventList';

class EventsPage extends Component {

	constructor(props) {
		super(props);
	}

	render() {

		const position = [33.45, -112.07];

		return <div>
				<div className="col-sm-4">
					<EventList events={this.props.events} />
				</div>
				<div className="col-sm-8">
					<Link to="submit-event" className="btn btn-primary">Submit Event</Link>
					<Map center={position} zoom={9}>
					<TileLayer
						url='http://{s}.tile.osm.org/{z}/{x}/{y}.png'
						attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'/>

						{
							this.props.events.map(event => 
								<Marker key={event.id} position={[event.eventAddress.lat, event.eventAddress.long]}>
									<Popup>
										<span>{event.name}</span>
									</Popup>
								</Marker>
							)
						}
					</Map>            	
				</div>
			</div>;
		}
	}

EventsPage.propTypes = {
	events: PropTypes.array.isRequired
};

EventsPage.defaultProps = {
	events: []
{'fraction_non_alphanumeric': 0.17404782993799822, 'fraction_numerical': 0.010186005314437556, 'mean_word_length': 2.921875, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 45, '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': '2958314', 'n_tokens_mistral': 952, 'n_tokens_neox': 749, 'n_words': 150}