<commit_before>define('providers/twitter/adaptor', [
    'providers',
    'utils/str',
    'jquery',
    'gizmo',
    'jquery/rest',
    'jquery/utils',
    'providers/twitter/tab',
    'tmpl!livedesk>providers/twitter/post'
], function(providers,str, $, Gizmo)
{
    var AnnotateView = Gizmo.View.extend
    ({
        tagName: 'li',
        init: function(data)
        {
            var self = this;
            $(self.el).on('click', '.btn.publish', function()
            {
                //self.data.Content = $('.twitter-full-content .result-text', self.el).html();
                self.data.Meta.annotation = [$('.twitter-full-content .annotation:eq(0)', self.el).html(), 
                    $('.twitter-full-content .annotation:eq(1)', self.el).html()];
					if($.type(this.model.get('Meta')) === 'string')
						self.data.Meta = JSON.stringify(self.data.Meta);
                self.parent.insert(self.data, self);
                $('.actions', self.el).remove();
            })
			.on('click', '.btn.cancel', function()
            {
                self.parent = null;
                self.el.remove();
            })
			.on('click', 'a.close', function(){
				$('#delete-post .yes')
					.off(self.getEvent('click'))
					.on(self.getEvent('click'), function(){
						self.parent = null;
						self.el.remove();
					});				
			});
        },
        render: function()
        {
            var self = this;
            $.tmpl('livedesk>providers/twitter/post', this.data, function(e, o)
            { 
                self.el.addClass( $(o).attr('class') );
                self.el.html( $(o).html() );
                $('.actions', self.el).removeClass('hide');<commit_msg>NR-442: After a certain moment all the feeds stop appearing in the timeline (unless page is reloaded)<commit_after>define('providers/twitter/adaptor', [
    'providers',
    'utils/str',
    'jquery',
    'gizmo',
    'jquery/rest',
    'jquery/utils',
    'providers/twitter/tab',
    'tmpl!livedesk>providers/twitter/post'
], function(providers,str, $, Gizmo)
{
    var AnnotateView = Gizmo.View.extend
    ({
        tagName: 'li',
        init: function(data)
        {
            var self = this;
            $(self.el).on('click', '.btn.publish', function()
            {
                //self.data.Content = $('.twitter-full-content .result-text', self.el).html();
                self.data.Meta.annotation = [$('.twitter-full-content .annotation:eq(0)', self.el).html(), 
                    $('.twitter-full-content .annotation:eq(1)', self.el).html()];
					if($.type(self.data.Meta) === 'string'))
						self.data.Meta = JSON.stringify(self.data.Meta);
                self.parent.insert(self.data, self);
                $('.actions', self.el).remove();
            })
			.on('click', '.btn.cancel', function()
            {
                self.parent = null;
                self.el.remove();
            })
			.on('click', 'a.close', function(){
				$('#delete-post .yes')
					.off(self.getEvent('click'))
					.on(self.getEvent('click'), function(){
						self.parent = null;
						self.el.remove();
					});				
			});
        },
        render: function()
        {
            var self = this;
            $.tmpl('livedesk>providers/twitter/post', this.data, function(e, o)
            { 
                self.el.addClass( $(o).attr('class') );
                self.el.html( $(o).html() );
                $('.actions', self.el).removeClass('hide');
{'fraction_non_alphanumeric': 0.19098526437445826, 'fraction_numerical': 0.0020225368390638545, 'mean_word_length': 1.8330605564648117, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2373991', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1041, 'n_words': 165}