<commit_before>(function($) {
$(function() {
	link = $('#sspadmin_right').metadata().link;
	// Will load the link the right panel via ajax.
	$('a[rel=right], .autocomplete_results ul li a').live("click", function() {
		$t = $(this);
		$('#sspadmin_right').load($t.attr('href'));
		return false;
	});
	
	// Update behaviours for the results table
	$('.project_results thead a, .project_results tfoot a').live("click", function() {
		$t = $(this);
		$('.project_results').load($t.attr('href'));
		return false;
	});
	
	$('.project_results tfoot select').live("change",function() {
		$t = $(this);
		$('.project_results').load(
			$t.metadata().url,
			{'PerPage' : $t.val()}
		);
	});
	
	
	// Detail page, update CSR, status
	$('#CSRID, #Status').live("change", function() {
		$.post(
			link+'updateproject',
			{
				val : $(this).val(),
				name : $(this).attr('name'),
				id : $('#project').metadata().id
			},
			function(data) {
				$('#update_message').text(data);
			}
		);
	});
	
	// ajaxform can't handle file inputs!
	$('input[type=file]').livequery(function() {
		$(this).each(function() {
			$input = $(this);
			name = $input.attr('name');
			id = $input.attr('id');
			klass = $input.attr('class');
			$input.replaceWith($('<input type="text" class="'+klass+'" name="'+name+'" id="'+id+'" />'));
		});
	});
	
	// Add a new message
	$('#Form_CreateMessageForm').live("submit", function() {
		$(this).ajaxSubmit({
			target : '#messages',
			success : function() {
				$('textarea, :text, input[name=Attachments]').val('');
			}
		});
		return false;
	});
	

});
})(jQuery);<commit_msg>FIX - fixed uploadify holding onto files after a message is posted.<commit_after>(function($) {
$(function() {
	link = $('#sspadmin_right').metadata().link;
	// Will load the link the right panel via ajax.
	$('a[rel=right], .autocomplete_results ul li a').live("click", function() {
		$t = $(this);
		$('#sspadmin_right').load($t.attr('href'));
		return false;
	});
	
	// Update behaviours for the results table
	$('.project_results thead a, .project_results tfoot a').live("click", function() {
		$t = $(this);
		$('.project_results').load($t.attr('href'));
		return false;
	});
	
	$('.project_results tfoot select').live("change",function() {
		$t = $(this);
		$('.project_results').load(
			$t.metadata().url,
			{'PerPage' : $t.val()}
		);
	});
	
	
	// Detail page, update CSR, status
	$('#CSRID, #Status').live("change", function() {
		$.post(
			link+'updateproject',
			{
				val : $(this).val(),
				name : $(this).attr('name'),
				id : $('#project').metadata().id
			},
			function(data) {
				$('#update_message').text(data);
			}
		);
	});
	
	// ajaxform can't handle file inputs!
	$('input[type=file]').livequery(function() {
		$(this).each(function() {
			$input = $(this);
			name = $input.attr('name');
			id = $input.attr('id');
			klass = $input.attr('class');
			$input.replaceWith($('<input type="text" class="'+klass+'" name="'+name+'" id="'+id+'" />'));
		});
	});
	
	// Add a new message
	$('#Form_CreateMessageForm').live("submit", function() {
		$(this).ajaxSubmit({
			target : '#messages',
			success : function() {
				$('textarea').val('');
				$('.uploadify-filename').remove();
				$('input[name^=Attachments]').remove();
			}
			
		});
		return false;
	});
	

});
})(jQuery);
{'fraction_non_alphanumeric': 0.25052950075642966, 'fraction_numerical': 0.0, 'mean_word_length': 3.8192419825072887, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1992825', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1134, 'n_words': 221}