<commit_before>import sys
from PySide.QtGui import QApplication, QMainWindow
from PySide.QtGui import QTextEdit
from PySide.QtGui import QLabel

class MyMainWindow(QMainWindow):
    def __init__(self, parent=None):
        super(MyMainWindow, self).__init__(parent)
        self.initTitle()
        self.initMainToolBar()
        self.initCentralWidget()

    def initTitle(self):
        pid = QApplication.instance().applicationPid()
        self.setWindowTitle("My Projects - ({0})".format(pid))

    def initMainToolBar(self):
        self.tb1 = self.addToolBar("ToolBar 1")
        self.tb1.addWidget(QLabel("ToolBar 1"))
        self.tb1.orientationChanged.connect(self.mainToolBarOrientationChanged)

    def mainToolBarOrientationChanged(self, orientation):
        print "Orientation changed {0}".format(orientation)

    def initCentralWidget(self):
        self.intro = QTextEdit()<commit_msg>Added QPushButtons to the QToolBar<commit_after>import sys
from PySide.QtGui import QApplication, QMainWindow
from PySide.QtGui import QTextEdit
from PySide.QtGui import QLabel
from PySide.QtGui import QPushButton

class MyMainWindow(QMainWindow):
    def __init__(self, parent=None):
        super(MyMainWindow, self).__init__(parent)
        self.initTitle()
        self.initMainToolBar()
        self.initCentralWidget()

    def initTitle(self):
        pid = QApplication.instance().applicationPid()
        self.setWindowTitle("My Projects - ({0})".format(pid))

    def initMainToolBar(self):
        self.tb1 = self.addToolBar("ToolBar 1")
        self.tb1.addWidget(QLabel("ToolBar 1"))
        self.tb1.orientationChanged.connect(self.mainToolBarOrientationChanged)
        
        self.tb1.addSeparator()
        
        for index in range(5):
            pb = QPushButton("B {0}".format(index))
            self.tb1.addWidget(pb)

    def mainToolBarOrientationChanged(self, orientation):
        print "Orientation changed {0}".format(orientation)

    def initCentralWidget(self):
        self.intro = QTextEdit()
{'fraction_non_alphanumeric': 0.10422812192723697, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 3.414316702819957, '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': '4030049', 'n_tokens_mistral': 616, 'n_tokens_neox': 587, 'n_words': 118}