<commit_before>

from PyQt5 import QtCore, QtWidgets, QtGui, uic

class PropertyWidget(QtWidgets.QTableWidget):
	itemRolePropertyName = QtCore.Qt.UserRole + 1
	itemRolePropertyType = QtCore.Qt.UserRole + 2
	
	def __init__(self, parent=None):
		QtWidgets.QTableWidget.__init__(self, parent)
		
		self.setColumnCount(2)
		self.setHorizontalHeaderLabels(["Property", "Value"])
		
		self.itemChanged.connect(self.propertyChanged)
		
		self._currentList = None
		
	def loadProperties(self, properties):
		self.clearContents()
		
		self._currentList = properties
		self.setRowCount(len(self._currentList))
		
		for i, property in enumerate(self._currentList.items()):
			name = property[0]
			type, value = property[1]
			
			itemName = QtWidgets.QTableWidgetItem(name)
			itemName.setFlags(itemName.flags() & ~QtCore.Qt.ItemIsEditable)
			self.setItem(i, 0, itemName)<commit_msg>Remove unneccessary newlines in the beginning of the file<commit_after>from PyQt5 import QtCore, QtWidgets, QtGui, uic

class PropertyWidget(QtWidgets.QTableWidget):
	itemRolePropertyName = QtCore.Qt.UserRole + 1
	itemRolePropertyType = QtCore.Qt.UserRole + 2
	
	def __init__(self, parent=None):
		QtWidgets.QTableWidget.__init__(self, parent)
		
		self.setColumnCount(2)
		self.setHorizontalHeaderLabels(["Property", "Value"])
		
		self.itemChanged.connect(self.propertyChanged)
		
		self._currentList = None
		
	def loadProperties(self, properties):
		self.clearContents()
		
		self._currentList = properties
		self.setRowCount(len(self._currentList))
		
		for i, property in enumerate(self._currentList.items()):
			name = property[0]
			type, value = property[1]
			
			itemName = QtWidgets.QTableWidgetItem(name)
			itemName.setFlags(itemName.flags() & ~QtCore.Qt.ItemIsEditable)
			self.setItem(i, 0, itemName)
{'fraction_non_alphanumeric': 0.10837988826815642, 'fraction_numerical': 0.00782122905027933, 'mean_word_length': 4.910891089108911, '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': '1154548', 'n_tokens_mistral': 661, 'n_tokens_neox': 569, 'n_words': 108}