<commit_before>
function DayEventRenderer() {
	var t = this;

	
	// exports
	t.renderDaySegs = renderDaySegs;
	t.resizableDayEvent = resizableDayEvent;
	t.renderDaySegsSimplified = renderDaySegsSimplified;
	
	
	// imports
	var opt = t.opt;
	var trigger = t.trigger;
	var isEventDraggable = t.isEventDraggable;
	var isEventResizable = t.isEventResizable;
	var eventEnd = t.eventEnd;
	var reportEventElement = t.reportEventElement;
	var showEvents = t.showEvents;
	var hideEvents = t.hideEvents;
	var eventResize = t.eventResize;
	var getRowCnt = t.getRowCnt;
	var getColCnt = t.getColCnt;
	var getColWidth = t.getColWidth;
	var allDayRow = t.allDayRow;
	var allDayBounds = t.allDayBounds;
	var colContentLeft = t.colContentLeft;
	var colContentRight = t.colContentRight;
	var dayOfWeekCol = t.dayOfWeekCol;
	var dateCell = t.dateCell;
	var compileDaySegs = t.compileDaySegs;
	var getDaySegmentContainer = t.getDaySegmentContainer;
	var bindDaySeg = t.bindDaySeg; //TODO: streamline this
	var formatDates = t.calendar.formatDates;
	var renderDayOverlay = t.renderDayOverlay;
	var clearOverlays = t.clearOverlays;
	var clearSelection = t.clearSelection;
	
	
	
	/* Rendering
	-----------------------------------------------------------------------------*/
	
	function renderDaySegsSimplified(segs, classNames) {
		var segmentContainer = getDaySegmentContainer();
		segmentContainer.append(daySegSimplifiedHTML(segs), classNames);
	}
	
    function daySegSimplifiedHTML(segs) {
    	var rtl = opt('isRTL');
    	var i;
    	var segCnt=segs.length;
    	var seg;
    	var event;
    	var classes;
    	var bounds = allDayBounds();
    	var minLeft = bounds.left;
    	var maxLeft = bounds.right;
    	var leftCol;
    	var rightCol;
    	var left;
    	var right;
    	var skinCss;
    	var html = '';
    	// calculate desired position/dimensions, create html
    	for (i=0; i<segCnt; i++) {
    		seg = segs[i];
    		event = seg.event;
    		defaultClasses = ['fc-event', 'fc-event-skin', 'fc-event-hori', 'fc-event-simplified'];
    		classes = classNames ? defaultClasses.concat(classNames) : defaultClasses;
    		if (rtl) {
                
                // CREATES FAKE ROUNDED CORNERS
                // if (seg.isStart) {
                //     classes.push('fc-corner-right');<commit_msg>forgot to pass along an argument..<commit_after>
function DayEventRenderer() {
	var t = this;

	
	// exports
	t.renderDaySegs = renderDaySegs;
	t.resizableDayEvent = resizableDayEvent;
	t.renderDaySegsSimplified = renderDaySegsSimplified;
	
	
	// imports
	var opt = t.opt;
	var trigger = t.trigger;
	var isEventDraggable = t.isEventDraggable;
	var isEventResizable = t.isEventResizable;
	var eventEnd = t.eventEnd;
	var reportEventElement = t.reportEventElement;
	var showEvents = t.showEvents;
	var hideEvents = t.hideEvents;
	var eventResize = t.eventResize;
	var getRowCnt = t.getRowCnt;
	var getColCnt = t.getColCnt;
	var getColWidth = t.getColWidth;
	var allDayRow = t.allDayRow;
	var allDayBounds = t.allDayBounds;
	var colContentLeft = t.colContentLeft;
	var colContentRight = t.colContentRight;
	var dayOfWeekCol = t.dayOfWeekCol;
	var dateCell = t.dateCell;
	var compileDaySegs = t.compileDaySegs;
	var getDaySegmentContainer = t.getDaySegmentContainer;
	var bindDaySeg = t.bindDaySeg; //TODO: streamline this
	var formatDates = t.calendar.formatDates;
	var renderDayOverlay = t.renderDayOverlay;
	var clearOverlays = t.clearOverlays;
	var clearSelection = t.clearSelection;
	
	
	
	/* Rendering
	-----------------------------------------------------------------------------*/
	
	function renderDaySegsSimplified(segs, classNames) {
		var segmentContainer = getDaySegmentContainer();
		segmentContainer.append(daySegSimplifiedHTML(segs), classNames);
	}
	
    function daySegSimplifiedHTML(segs, classNames) {
    	var rtl = opt('isRTL');
    	var i;
    	var segCnt=segs.length;
    	var seg;
    	var event;
    	var classes;
    	var bounds = allDayBounds();
    	var minLeft = bounds.left;
    	var maxLeft = bounds.right;
    	var leftCol;
    	var rightCol;
    	var left;
    	var right;
    	var skinCss;
    	var html = '';
    	// calculate desired position/dimensions, create html
    	for (i=0; i<segCnt; i++) {
    		seg = segs[i];
    		event = seg.event;
    		defaultClasses = ['fc-event', 'fc-event-skin', 'fc-event-hori', 'fc-event-simplified'];
    		classes = classNames ? defaultClasses.concat(classNames) : defaultClasses;
    		if (rtl) {
                
                // CREATES FAKE ROUNDED CORNERS
                // if (seg.isStart) {
                //     classes.push('fc-corner-right');
{'fraction_non_alphanumeric': 0.13130002163097557, 'fraction_numerical': 0.00043261951113995244, 'mean_word_length': 2.7746938775510204, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5913285', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1556, 'n_words': 341}