<commit_before>/*function output( number ) {

};*/



//http://ezbike.xweb.service.cmwp.com/cgi-bin/report.pl?home_latitude=5.5&home_longitude=0&work_latitude=40.714&work_longitude=-73.989
var Go = $( "#go" );
var where = $( "#where" );
var work = $( "#work" );

Go.click( callNav );

function callNav(){
	navigator.geolocation.getCurrentPosition(function( position ) {
		var latitude = position.coords.latitude;
		var longitude = position.coords.longitude;
		where.text( "The latitude is "
		 + latitude
		  + " and the longitude is " + longitude + " good luck");

		callApi( latitude, longitude );
	}); 
};


function callApi( hLatitude, hLongitude ){
 	$.getJSON( "http://ezbike.xweb.service.cmwp.com/cgi-bin/report.pl?"
		+"home_latitude="
		+hLatitude
		+"&home_longitude="
		+hLongitude
		+"&work_latitude=55.714"
		+"&work_longitude=-65.989", answer
    );
};


function answer( data ) {
	var start0 = $( '#start0' );
	start0.text(
		 data.begin_at[0].slots
		 + " bikes at "
		 + data.begin_at[0].name  
		 + ", " 
		 + data.begin_at[0].blocks  
		 + " blocks away"
	);
};

/*Go.click(function GO(){
	callNav();
	callApi();
	answer( data );
});*/

//already able to generate lat and long from location on click
//need to put that lat and long into API web address
//goal to output start statation.... on click of another button



/*button.click(function(){
		where.text( latitude );*/
<commit_msg>more docks<commit_after>/*function output( number ) {

};*/



//http://ezbike.xweb.service.cmwp.com/cgi-bin/report.pl?home_latitude=5.5&home_longitude=0&work_latitude=40.714&work_longitude=-73.989
var Go = $( "#go" );
var where = $( "#where" );
var work = $( "#work" );

Go.click( callNav );

function callNav(){
	navigator.geolocation.getCurrentPosition(function( position ) {
		var latitude = position.coords.latitude;
		var longitude = position.coords.longitude;
		where.text( "The latitude is "
		 + latitude
		 + " and the longitude is " + longitude + " good luck");
		callApi( latitude, longitude );
	}); 
};


function callApi( hLatitude, hLongitude ){
 	$.getJSON( "http://ezbike.xweb.service.cmwp.com/cgi-bin/report.pl?"
		+"home_latitude="
		+hLatitude
		+"&home_longitude="
		+hLongitude
		+"&work_latitude=55.714"
		+"&work_longitude=-65.989", answer
    );
};

function answer( data ) {
    put_data_into_start( data, 0 );
    put_data_into_start( data, 1 );
    put_data_into_start( data, 2 );
};

function put_data_into_start( data, number ) {
	var start = $( '#start' + number );
	start.text(
		 data.begin_at[ number ].slots
		 + " bikes at "
		 + data.begin_at[ number ].name  
		 + ", " 
		 + data.begin_at[ number ].blocks  
		 + " blocks away"
	);
};

/*Go.click(function GO(){
	callNav();
	callApi();
	answer( data );
});*/

//already able to generate lat and long from location on click
//need to put that lat and long into API web address
//goal to output start statation.... on click of another button



/*button.click(function(){
		where.text( latitude );*/

{'fraction_non_alphanumeric': 0.16677807486631016, 'fraction_numerical': 0.01838235294117647, 'mean_word_length': 3.597542242703533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4839297', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1041, 'n_words': 237}