<commit_before>
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *

from Windows import mainWindow_ui
from Util import constants
from Windows.favoriteWindow import *
from Windows.centralWindow import *
from Windows.ExpirationBox import *
from Util.scanner import *
from Util.enums import *

class MainWindow(QWidget, mainWindow_ui.Ui_MainWindow):
    def __init__(self, centralWindow, config, dbManager, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)

        self.centralWindow = centralWindow
        self.config = config
        self.dbManager = dbManager

        # Set size of the recommended items columns
        self.recItemsWidget.horizontalHeader().setStretchLastSection(False)
        self.recItemsWidget.horizontalHeader().setSectionResizeMode(1, QHeaderView.ResizeToContents)
        self.recItemsWidget.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch)
        #Configure floating buttons

        #self.centralwidget.layout().removeWidget(self.floatingBtnWidget)
        self.centralWindow.layout().removeWidget(self.floatingPB1)
        self.floatingPB1.setEnabled(False)
        floatingPB1Width = 70#48 * 2 + 40
        floatingPB1Height = 70#48 + 12
        floatingPB1X = (self.width() - floatingPB1Width) / 2
        floatingPB1Y = self.height() - floatingPB1Height - 1
        self.floatingPB1.setGeometry(floatingPB1X, floatingPB1Y, floatingPB1Width, floatingPB1Height)
        self.floatingPB1.raise_()

    @pyqtSlot()
    def showEvent(self, event):
        self.centralWindow.primaryScanner.barcodeReceived.connect(self.primaryScanner_barcodeReceived)
        self.centralWindow.secondaryScanner.barcodeReceived.connect(self.secondaryScanner_barcodeReceived)
        print('This widget is being shown. Handle anything necessary. Main Window')

    @pyqtSlot()
    def hideEvent(self, event):<commit_msg>Added "Print" Icon Modified "Shopping Cart" Icon Started floating button set up for items lists (Not functional)<commit_after>
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *

from Windows import mainWindow_ui
from Util import constants
from Windows.favoriteWindow import *
from Windows.centralWindow import *
from Windows.ExpirationBox import *
from Util.scanner import *
from Util.enums import *

class MainWindow(QWidget, mainWindow_ui.Ui_MainWindow):
    def __init__(self, centralWindow, config, dbManager, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setupUi(self)

        self.centralWindow = centralWindow
        self.config = config
        self.dbManager = dbManager

        # Set size of the recommended items columns
        self.recItemsWidget.horizontalHeader().setStretchLastSection(False)
        self.recItemsWidget.horizontalHeader().setSectionResizeMode(1, QHeaderView.ResizeToContents)
        self.recItemsWidget.horizontalHeader().setSectionResizeMode(0, QHeaderView.Stretch)
        #Configure floating buttons

        #self.centralwidget.layout().removeWidget(self.floatingBtnWidget)
        #self.verticalLayout_4.removeWidget(self.floatingPB1)
        self.gridLayout_3.removeWidget(self.floatingPB1)
        self.floatingPB1.setEnabled(False)
        floatingPB1Width = 70#48 * 2 + 40
        floatingPB1Height = 70#48 + 12
        floatingPB1X = (self.width() - floatingPB1Width) / 2
        floatingPB1Y = self.height() - floatingPB1Height - 1
        self.floatingPB1.setGeometry(floatingPB1X, floatingPB1Y, floatingPB1Width, floatingPB1Height)
        self.floatingPB1.raise_()
        

    @pyqtSlot()
    def showEvent(self, event):
        self.centralWindow.primaryScanner.barcodeReceived.connect(self.primaryScanner_barcodeReceived)
        self.centralWindow.secondaryScanner.barcodeReceived.connect(self.secondaryScanner_barcodeReceived)
        print('This widget is being shown. Handle anything necessary. Main Window')

    @pyqtSlot()
    def hideEvent(self, event):
{'fraction_non_alphanumeric': 0.08286872782564622, 'fraction_numerical': 0.017486061834769386, 'mean_word_length': 3.8788627935723117, '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': '1031470', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1111, 'n_words': 228}