<commit_before>









Ergo.declare_mixin('Ergo.mixins.Growl', function(o) {

	
	var self = this;
	
	
	this.growl = {
		
		open: function(pos) {
			
			var container = $('.growl-container');
			
			if(container.length == 0)
				container = new Ergo.mixins.Growl.Container({renderTo: 'body'});
			else
				container = container.ergo();
			
			container.push(self);
			
		},
		
		
		close: function() {
			
			self.hide().then(function(){
				self._wrapper.hide().then(function(){
					self._wrapper.destroy();
					self.destroy();
				});
			});
			
		}
		
		
	};
	




}, 'growl');




Ergo.declare('Ergo.mixins.Growl.Container', 'Ergo.core.Widget', {
	
	defaults: {
		html: '<div/>',
		cls: 'growl-container',
		style: {'position': 'fixed', 'top': 0, 'right': 0},

		defaultItem: {
			etype: 'widget',
			html: '<div/>',
			mixins: ['effects'],
			style: {'border': '1px solid transparent'},
			effects: {
				show: 'slideDown',
				hide: 'slideUp',<commit_msg>fix growl<commit_after>









Ergo.declare_mixin('Ergo.mixins.Growl', function(o) {

	
	var self = this;
	
	
	this.growl = {
		
		open: function(pos) {
			
			var container = $('.growl-container');
			
			if(container.length == 0)
				container = new Ergo.mixins.Growl.Container({renderTo: 'body'});
			else
				container = container.ergo();
			
			container.push(self);
			
		},
		
		
		close: function() {
			
			self.hide().then(function(){
				self._wrapper.hide().then(function(){
					self._wrapper.destroy();
					self.destroy();
				});
			});
			
		}
		
		
	};
	




}, 'growl');




Ergo.declare('Ergo.mixins.Growl.Container', 'Ergo.core.Widget', {
	
	defaults: {
		html: '<div/>',
		cls: 'growl-container',
		style: {'position': 'fixed', 'top': 0, 'right': 0, 'z-index': 1000000},
		autoHeight: 'ignore',

		defaultItem: {
			etype: 'widget',
			html: '<div/>',
			mixins: ['effects'],
			style: {'border': '1px solid transparent'},
			effects: {
				show: 'slideDown',
				hide: 'slideUp',
{'fraction_non_alphanumeric': 0.19461382113821138, 'fraction_numerical': 0.007621951219512195, 'mean_word_length': 2.680373831775701, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6494563', 'n_tokens_mistral': 910, 'n_tokens_neox': 681, 'n_words': 124}