<commit_before>var Playlist = {
	currentTrack: null,
	artist: null,
	page: 3,
	limit: 10,
	tracks: [],
	searchData: [],
	
	play: function(mbid, similar) {
		var url = 'https://gdata.youtube.com/feeds/api/videos',
			track = null,
			e = typeof event != 'undefined' ? event : {},
			target = e.target || e.srcElement,
			targetClass = $(target).attr('class');

		if (strstr(targetClass, 'icon') || strstr(targetClass, 'btn')) {
			return true;
		}

		if (similar != null) {
			var parent = Playlist.searchTrack(Playlist.tracks, 'mbid', mbid);
			
			track = Playlist.searchTrack(parent.similar, 'mbid', similar);
		} else {
			track = Playlist.searchTrack(Playlist.tracks, 'mbid', mbid);
		}
		
		$.ajax({
			url: url,
			success: function(data) {				
				if (typeof data.feed.entry !== 'undefined') {
					var song_url = data.feed.entry[0].link[0].href,
						regex = /[a-zA-Z0-9_-]+(?=&)/,
						matched = regex.exec(song_url);
	
					Youtube.player.loadVideoById(matched[0]);
	
					Playlist.highlightTrack(track);
					Playlist.currentTrack = track;
					
					$.gritter.add({
						title: 'Now playing...',
						image: track.image,<commit_msg>set the window title to the track that's playing<commit_after>var Playlist = {
	currentTrack: null,
	artist: null,
	page: 3,
	limit: 10,
	tracks: [],
	searchData: [],
	
	play: function(mbid, similar) {
		var url = 'https://gdata.youtube.com/feeds/api/videos',
			track = null,
			e = typeof event != 'undefined' ? event : {},
			target = e.target || e.srcElement,
			targetClass = $(target).attr('class');

		if (strstr(targetClass, 'icon') || strstr(targetClass, 'btn')) {
			return true;
		}

		if (similar != null) {
			var parent = Playlist.searchTrack(Playlist.tracks, 'mbid', mbid);
			
			track = Playlist.searchTrack(parent.similar, 'mbid', similar);
		} else {
			track = Playlist.searchTrack(Playlist.tracks, 'mbid', mbid);
		}
		
		$.ajax({
			url: url,
			success: function(data) {				
				if (typeof data.feed.entry !== 'undefined') {
					var song_url = data.feed.entry[0].link[0].href,
						regex = /[a-zA-Z0-9_-]+(?=&)/,
						matched = regex.exec(song_url);
	
					Youtube.player.loadVideoById(matched[0]);
	
					Playlist.highlightTrack(track);
					Playlist.currentTrack = track;
					
					document.title = track.artist + ' - ' + track.title;
					
					$.gritter.add({
						title: 'Now playing...',
						image: track.image,
{'fraction_non_alphanumeric': 0.17244258872651358, 'fraction_numerical': 0.006680584551148226, 'mean_word_length': 3.026890756302521, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '649825', 'n_tokens_mistral': 1044, 'n_tokens_neox': 825, 'n_words': 170}