<commit_before>import React, { Component } from 'react';
import $ from 'jquery';


export default class IndividualMountain extends Component {
	constructor() {
		super();
		this.state = {
			weather: [],
			destination: ''
			// directionsInput: '',
			// directionsOutput: ''
		}
	}

	componentDidMount() {
		this.getMountainWeather();
		this.setLocation();
	}






getMountainWeather() {
	const latitude = this.props.selectedData.locationLatitude
	const longitude = this.props.selectedData.locationLongitude

	$.ajax({
		type:"GET",
		url: 	`https://api.wunderground.com/api/d0f02edcc8d2612b/conditions/forecast10day/alerts/hourly10day/q/${latitude},${longitude}.json`,
		async: true,
		dataType: "json",
		success:(result) => {
			this.setState({weather: result.forecast.simpleforecast.forecastday})
		},

		error:(errorMessage) => {
			alert("Error");
		}
	});
}

	setLocation(){
		this.setState({<commit_msg>cleaning up IndividualMountain file<commit_after>import React, { Component } from 'react';
import $ from 'jquery';


export default class IndividualMountain extends Component {
	constructor() {
		super();
		this.state = {
			weather: [],
			destination: ''
		}
	}

	componentDidMount() {
		this.getMountainWeather();
		this.setLocation();
	}

getMountainWeather() {
	const latitude = this.props.selectedData.locationLatitude
	const longitude = this.props.selectedData.locationLongitude

	$.ajax({
		type:"GET",
		url: 	`https://api.wunderground.com/api/d0f02edcc8d2612b/conditions/forecast10day/alerts/hourly10day/q/${latitude},${longitude}.json`,
		async: true,
		dataType: "json",
		success:(result) => {
			this.setState({weather: result.forecast.simpleforecast.forecastday})
		},

		error:(errorMessage) => {
			alert("Error");
		}
	});
}

	setLocation(){
		this.setState({
{'fraction_non_alphanumeric': 0.15466219988833055, 'fraction_numerical': 0.01340033500837521, 'mean_word_length': 4.446808510638298, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6871968', 'n_tokens_mistral': 670, 'n_tokens_neox': 591, 'n_words': 92}