<commit_before>div(ng-controller='previewReportCtrl' style='background-color:#f2f2f2;')
	.modal-content
		.modal-header.header_dark(style='background-color:#eeeeee;')
			.row
				.col-lg-12
					.create-new-event-cont
						h2.h2-create-new
							|  Preview Report
					.create-btn-cont
						button.btn.btn-danger
							span.glyphicon.glyphicon-save
							|  Export to PDF
					.save-draft-cont(style='position:absolute; float:left; margin-left:-30px;')
						button.btn.btn-default.btn-circle.glyphicon.glyphicon-remove(type='button' ng-click='cancel()')			
		.modal-body
			.row
				.col-lg-12.col-md-12.col-sm-12
					.report-wrapper
						h4.preview-report-title {{customizedDoc.reportMeta.title}}
						h4.preview-report-headers {{customizedDoc.reportMeta.type}} 
						h4.preview-report-headers {{eventdoc.eventPublishDate | date:'longDate'}}
						br
						div(ng-repeat='section in customizedDoc.docData')
							h4.report-cat-title
								| {{section.sectionName}}
							div(ng-repeat='category in section.sectionData.doc.categories' ng-if='section.sectionType == "Document"') 
								h4.report-category(ng-if='category.checked')
									| {{category.name}}
								div(ng-repeat='topic in category.topics' ng-if='topic.checked')
									h4.report-topic
										| {{topic.name}}
									ul
										li(ng-repeat='topicBullets in topic.bullets' ng-if='topicBullets.checked') 
											| {{topicBullets.name}}
											ul
												li(ng-repeat='topicSubBullets in topicBullets.subBullets' ng-if='topicSubBullets.checked')
													| {{topicSubBullets.name}}
									div(ng-repeat='subtopic in topic.subTopics' ng-if='subtopic.checked')
										h4.report-sub-topic
											| {{subtopic.name}}
										ul
											li(ng-repeat='bullet in subtopic.bullets' ng-if='bullet.checked') 
												| {{bullet.name}}
												ul
													li(ng-repeat='subBullet in bullet.subBullets' ng-if='subBullet.checked') 
														| {{subBullet.name}}
							div(ng-if='section.sectionType == "Metrics"')
								.row
									.grid(id="{{'grid_'+$index}}", ui-grid="{data: previewedGrid, columnDefs : previewColumns, showFooter: false, enableVerticalScrollbar:0,enableHorizontalScrollbar: 2, enableHeaderOptions: false, enableCellSelection: false, enableRowSelection: false, enableCellEditOnFocus: true,}", ng-style="getPreviewTableHeight(grid,'grid_'+$index)",ui-grid-auto-resize, style="background-color:#fff;") 
							br
							div(ng-if='section.sectionType == "Charts"')
									div(ng-repeat='chartConfig in customizedDoc.chartConfigs' ng-if='chartConfig.checked')
										highchart(id="{{'chartHC_'+$index}}" config='chartConfig')
							br
							i(ng-if='!section.sectionData.notes == ""') Notes: {{section.sectionData.notes}}<commit_msg>html table on preview screen pending<commit_after>div(ng-controller='previewReportCtrl' style='background-color:#f2f2f2;')
	.modal-content
		.modal-header.header_dark(style='background-color:#eeeeee;')
			.row
				.col-lg-12
					.create-new-event-cont
						h2.h2-create-new
							|  Preview Report
					.create-btn-cont
						button.btn.btn-danger
							span.glyphicon.glyphicon-save
							|  Export to PDF
					.save-draft-cont(style='position:absolute; float:left; margin-left:-30px;')
						button.btn.btn-default.btn-circle.glyphicon.glyphicon-remove(type='button' ng-click='cancel()')			
		.modal-body
			.row
				.col-lg-12.col-md-12.col-sm-12
					.report-wrapper
						h4.preview-report-title {{customizedDoc.reportMeta.title}}
						h4.preview-report-headers {{customizedDoc.reportMeta.type}} 
						h4.preview-report-headers {{eventdoc.eventPublishDate | date:'longDate'}}
						br
						div(ng-repeat='section in customizedDoc.docData')
							h4.report-cat-title
								| {{section.sectionName}}
							div(ng-repeat='category in section.sectionData.doc.categories' ng-if='section.sectionType == "Document"') 
								h4.report-category(ng-if='category.checked')
									| {{category.name}}
								div(ng-repeat='topic in category.topics' ng-if='topic.checked')
									h4.report-topic
										| {{topic.name}}
									ul
										li(ng-repeat='topicBullets in topic.bullets' ng-if='topicBullets.checked') 
											| {{topicBullets.name}}
											ul
												li(ng-repeat='topicSubBullets in topicBullets.subBullets' ng-if='topicSubBullets.checked')
													| {{topicSubBullets.name}}
									div(ng-repeat='subtopic in topic.subTopics' ng-if='subtopic.checked')
										h4.report-sub-topic
											| {{subtopic.name}}
										ul
											li(ng-repeat='bullet in subtopic.bullets' ng-if='bullet.checked') 
												| {{bullet.name}}
												ul
													li(ng-repeat='subBullet in bullet.subBullets' ng-if='subBullet.checked') 
														| {{subBullet.name}}
							div(ng-if='section.sectionType == "Metrics"')
								.row
									.col-lg-12
										table(style="margin-bottom:50px;", border="1")
											tr(style="background-color:#c6d8ae")
												td(rowspan="4")
													| &nbsp;
												td(style="font-size:20px; font-weight: bold; text-align:center; padding:5px;", colspan="5")
													| Daily Metrics
											tr(style="background-color:#c6d8ae")
												td(style="font-style:italic; text-align:center; padding:5px;", colspan="5")
													| Percent change from previous day is given in parentheses
											tr(style="background-color:#c6d8ae")
												td(style="text-align:center; padding:3px;", ng-repeat = "(col,displayValue) in filterLabel(customizedData.colDisplayNames)")
													| {{ col | date : 'EEEE'}}
											tr(style="background-color:#c6d8ae")
												td(style="text-align:center; padding:3px;", ng-repeat = "(col,displayValue) in filterLabel(customizedData.colDisplayNames)")
													| {{displayValue}}
											tbody(ng-repeat="gridData in customizedData.gridData")
												tr
													td(colspan="6" style="background-color:#c6d8ae; padding:7px 0 7px 5px;")
														| {{gridData.gridName}}
												tr(ng-repeat="dailyData in gridData.dailyData")
													td(style="padding:3px 3px 3px 5px;", width="100")
														| {{dailyData.label}}
													td(style="padding:3px 3px 3px 5px;", ng-repeat="cols in filterLabel(dailyData)")
														| {{cols}}
									//.grid(id="{{'grid_'+$index}}", ui-grid="{data: previewedGrid, columnDefs : previewColumns, showFooter: false, enableVerticalScrollbar:0,enableHorizontalScrollbar: 2, enableHeaderOptions: false, enableCellSelection: false, enableRowSelection: false, enableCellEditOnFocus: true,}", ng-style="getPreviewTableHeight(grid,'grid_'+$index)",ui-grid-auto-resize, style="background-color:#fff;") 
							br
							div(ng-if='section.sectionType == "Charts"')
									div(ng-repeat='chartConfig in customizedDoc.chartConfigs' ng-if='chartConfig.checked')
										highchart(id="{{'chartHC_'+$index}}" config='chartConfig')
							br
							i(ng-if='!section.sectionData.notes == ""') Notes: {{section.sectionData.notes}}
{'fraction_non_alphanumeric': 0.15284090909090908, 'fraction_numerical': 0.0125, 'mean_word_length': 2.8601973684210527, 'pattern_counts': {'":': 0, '<': 3, '<?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': '360769', 'n_tokens_mistral': 3265, 'n_tokens_neox': 2236, 'n_words': 310}