<commit_before>function FlickrDisplayr() {
	var self = this;
	
	var base_url =  "https://api.flickr.com/services/rest";
	var method = "flickr.people.getPhotos";
	var api_key = "<KEY>";
	var user_id = "23730220%40N08";
	var page = 0;
	var totalPages;
	
	var $wrapper;
	
	var init = function () {
		console.log('Hello Flickr Displayr!!!');
		$wrapper= $('#wrapper');
		
		loadImageData(1);
		
	}
	

	
	var loadImageData = function (_page){
		page = _page;
		
		var URL = base_url+"/?method="+method+"&api_key="+api_key+"&user_id="+user_id+"&page="+page+"&format=json&jsoncallback=?";
		
		console.log('Loading Image Data', URL);

		try{ $.getJSON(URL, parseImageData); } 
		catch(e) {console.log(e);}
	}
	
	var parseImageData = function(data){
		console.log('Received Image Data', data);

		if(!totalPages) totalPages = parseInt(data.photos.total);
		var photoArray = data.photos.photo;

		for(var index=0; index<photoArray.length; index++) {

			var photo = photoArray[index];
			
			// construct image URL: http://farm{farm-id}.staticflickr.com/{server-id}/{id}_{o-secret}_o.(jpg|gif|png)
			// see: https://www.flickr.com/services/api/misc.urls.html
			var URL = 'https://farm'+photo.farm+'.staticflickr.com/'+photo.server+'/'+photo.id+'_'+photo.secret+'_b.jpg';
			console.log('new photo', URL);
			
			var $photo = $('<div class="photo" />'); // construct photo div
			$photo.css('background-image', 'url('+URL+')'); // put image as background
			
			$wrapper.append($photo); // add to HTML display
		}

	}

	init();
}

<commit_msg>gotta use your own api key<commit_after>function FlickrDisplayr() {
	var self = this;
	
	var base_url =  "https://api.flickr.com/services/rest";
	var method = "flickr.people.getPhotos";
	var api_key = "4da62db9e6167a25f10a62fa05cc9938"; 	// get your own key: https://www.flickr.com/services/apps/create/apply/
	var user_id = "23730220%40N08";
	var page = 0;
	var totalPages;
	
	var $wrapper;
	
	var init = function () {
		console.log('Hello Flickr Displayr!!!');
		$wrapper= $('#wrapper');
		
		loadImageData(1);
		
	}
	

	
	var loadImageData = function (_page){
		page = _page;
		
		var URL = base_url+"/?method="+method+"&api_key="+api_key+"&user_id="+user_id+"&page="+page+"&format=json&jsoncallback=?";
		
		console.log('Loading Image Data', URL);

		try{ $.getJSON(URL, parseImageData); } 
		catch(e) {console.log(e);}
	}
	
	var parseImageData = function(data){
		console.log('Received Image Data', data);

		if(!totalPages) totalPages = parseInt(data.photos.total);
		var photoArray = data.photos.photo;

		for(var index=0; index<photoArray.length; index++) {

			var photo = photoArray[index];
			
			// construct image URL: http://farm{farm-id}.staticflickr.com/{server-id}/{id}_{o-secret}_o.(jpg|gif|png)
			// see: https://www.flickr.com/services/api/misc.urls.html
			var URL = 'https://farm'+photo.farm+'.staticflickr.com/'+photo.server+'/'+photo.id+'_'+photo.secret+'_b.jpg';
			console.log('new photo', URL);
			
			var $photo = $('<div class="photo" />'); // construct photo div
			$photo.css('background-image', 'url('+URL+')'); // put image as background
			
			$wrapper.append($photo); // add to HTML display
		}

	}

	init();
}


{'fraction_non_alphanumeric': 0.1900722588752749, 'fraction_numerical': 0.015708451146716932, 'mean_word_length': 3.959501557632399, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 7, 'lorem ipsum': 0, 'www.': 3, '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': '3332531', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1124, 'n_words': 214}