<commit_before>var eventPanel;
var eventGrid;
var eventStore;
var eventRecord;
var eventColumnModel;
var eventSelectionModel;

function initEventView(){
	
	eventGrid = new Ext.grid.GridPanel({
		store:eventStore,
        width:'auto',
        height:300,
        renderTo:'event-view',
		colModel:eventColumnModel,
		loadMask:true,
		bbar:eventPagingBar,
		
		// customize view config
        viewConfig: {
            forceFit:true,
            enableRowBody:true,
            showPreview:true,
            getRowClass : function(record, rowIndex, p, store){
                if(this.showPreview){
                    p.body = '<p><br/><b>Event Description:</b> '+record.data.eventDescr+'</p>';
                    return getSeverityStyle(record.data.severityLevel);
                }
                return 'x-grid3-row-collapsed';
            }
        },

	});
	
	eventGrid.on("rowdblclick", function(grid) {
		alert("Yo you clicked an event grid");
		/*var view=new Ext.View(Ext.get('squote'),tpl,{
               store:eventStore 
        });
        var sel = grid.getSelectionModel().getSelected();
        var selIndex = ds.indexOf(sel);
        var seldata=sel.data;
        	
        seldata.change=change(seldata.change);
        seldata.pctChange=pctChange(seldata.pctChange);
        seldata.lastChange=Ext.util.Format.date(seldata.lastChange,'m/d/Y');
        tpl.overwrite(view.getEl(), seldata);
            
        dialog.show(grid.getView().getRow(selIndex));*/  
    });
	
	
	eventPanel = new Ext.Panel({
		applyTo:'event-view',
		width:'auto',
		title:'EVENTS',
		autoHeight:true,
		bodyBorder:false,
		border:false,
		items:[
			eventGrid
		]
	});
	
	
	loadNodeEvents(urlParams.node);
}

eventRecord = new Ext.data.Record.create([
	{name:'empty', mapping:''},
	{name:"eventId", mapping:"id"},<commit_msg>events are now getting pulled in and paged<commit_after>var eventPanel;
var eventGrid;
var eventStore;
var eventRecord;
var eventColumnModel;
var eventSelectionModel;

function initEventView(){
	
	eventGrid = new Ext.grid.GridPanel({
		store:eventStore,
        width:'auto',
        height:300,
        renderTo:'event-view',
		colModel:eventColumnModel,
		loadMask:true,
		bbar:eventPagingBar,
		
		// customize view config
        viewConfig: {
            forceFit:true,
            enableRowBody:true,
            showPreview:true,
            getRowClass : function(record, rowIndex, p, store){
                if(this.showPreview){
                    p.body = '<p><br/><b>Event Description:</b> '+record.data.eventDescr+'</p>';
                    return getSeverityStyle(record.data.severityLevel);
                }
                return 'x-grid3-row-collapsed';
            }
        },

	});
	
	eventGrid.on("rowdblclick", function(grid) {
		alert("Yo you clicked an event grid");
		/*var view=new Ext.View(Ext.get('squote'),tpl,{
               store:eventStore 
        });
        var sel = grid.getSelectionModel().getSelected();
        var selIndex = ds.indexOf(sel);
        var seldata=sel.data;
        	
        seldata.change=change(seldata.change);
        seldata.pctChange=pctChange(seldata.pctChange);
        seldata.lastChange=Ext.util.Format.date(seldata.lastChange,'m/d/Y');
        tpl.overwrite(view.getEl(), seldata);
            
        dialog.show(grid.getView().getRow(selIndex));*/  
    });
	
	
	eventPanel = new Ext.Panel({
		applyTo:'event-view',
		width:'auto',
		title:'EVENTS',
		autoHeight:true,
		bodyBorder:false,
		border:false,
		items:[
			eventGrid
		]
	});
	
	
	loadNodeEvents(urlParams.node);
}

eventRecord = new Ext.data.Record.create([
	{name:"eventId", mapping:"id"},
{'fraction_non_alphanumeric': 0.13691128148959475, 'fraction_numerical': 0.002190580503833516, 'mean_word_length': 2.495693779904306, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3397637', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1127, 'n_words': 184}