<commit_before>/*
*  Created by <NAME> on 2010-12-23.
*/

/* 	refresh_img
*	loads given image url in the fullscreen (fs) and display (display_img) divs 
*	and updates exif panel
*/

function refresh_img(url){
	if(url=="" || url==undefined){
		$('#display_img').html("");
		$('#exifdiv .content').html("");
		$('#commentsdiv .content').html("");
		$("#fblike").html("");
		return false;
	}
	
	$('#display_img').html('<span></span><a href="'+url+'"><img src="'+url+'"/></a>');
	
	$('#fs_img').html('<img src="'+url+'"/>');

	$("#fblike").html('<iframe src="http://www.facebook.com/plugins/like.php?layout=button_count&amp;action=like&amp;colorscheme=dark&amp;height=20&amp;ref='+escape(location.href.replace("#",""))+'&amp;href='+escape(location.href.replace("#",""))+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>');

	$('#exifdiv .content').load('exif.php',{ img: url });
	$("#exif").show();

	$('#admindiv .content').load('admin.php',{ img: url });

	$('#commentsdiv .content').load("infos.php",{ file: url });

	$('#display_img a').click(function(){ 
		change_display();
		return false;
	});

	location.hash=encodeURI(url);
	
}


/* show_select
* Brings focus to selected image
*
*/
function show_select(direction){
	if(typeof($(".select").attr("class")) != 'undefined'){
		var number=($(window).width()-$("leftcolumn").width())/3;
		item=$('.select');
		for(i=0;i<number;i=i+$(".img_contain").first().width()){
			if(typeof($(item).prev().attr("class")) != 'undefined'){
				item=$(item).prev();
			}
		}
		$('#projcontent').scrollTo($(item));
	}
}

/* select_thumb(thumb)
* selects the thumb<commit_msg>Displaying of album name in page title<commit_after>/*
*  Created by <NAME> on 2010-12-23.
*/

/* 	refresh_img
*	loads given image url in the fullscreen (fs) and display (display_img) divs 
*	and updates exif panel
*/

function refresh_img(url){
	if(url=="" || url==undefined){
		$('#display_img').html("");
		$('#exifdiv .content').html("");
		$('#commentsdiv .content').html("");
		$("#fblike").html("");
		return false;
	}
	
	$('#display_img').html('<span></span><a href="'+url+'"><img src="'+url+'"/></a>');
	
	$('#fs_img').html('<img src="'+url+'"/>');

	$("#fblike").html('<iframe src="http://www.facebook.com/plugins/like.php?layout=button_count&amp;action=like&amp;colorscheme=dark&amp;height=20&amp;ref='+escape(location.href.replace("#",""))+'&amp;href='+escape(location.href.replace("#",""))+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>');

	$('#exifdiv .content').load('exif.php',{ img: url });
	$("#exif").show();

	$('#admindiv .content').load('admin.php',{ img: url });

	$('#commentsdiv .content').load("infos.php",{ file: url });

	$('#display_img a').click(function(){ 
		change_display();
		return false;
	});

	location.hash=encodeURI(url);
	
}


function update_title(title){
	document.title = title;
}

/* show_select
* Brings focus to selected image
*
*/
function show_select(direction){
	if(typeof($(".select").attr("class")) != 'undefined'){
		var number=($(window).width()-$("leftcolumn").width())/3;
		item=$('.select');
		for(i=0;i<number;i=i+$(".img_contain").first().width()){
			if(typeof($(item).prev().attr("class")) != 'undefined'){
				item=$(item).prev();
			}
		}
		$('#projcontent').scrollTo($(item));
	}
}

/* select_thumb(thumb)
* selects the thumb
{'fraction_non_alphanumeric': 0.2691087395442746, 'fraction_numerical': 0.00980674935102394, 'mean_word_length': 5.880952380952381, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6286534', 'n_tokens_mistral': 1283, 'n_tokens_neox': 1228, 'n_words': 189}