<commit_before>import sys
from collections import OrderedDict
from PyQt4 import QtGui, QtCore

if sys.version_info >= (3,):
    unicode = str


class ChangePassword(QtGui.QDialog):
    """A specially constructed two-field dialog to get a user's name (shown)
    and password (masked).  This user should provide a
    """
    def __init__(self, parent, title="User name and password",
                 verification=None):
        super(ChangePassword, self).__init__(None,
                         QtCore.Qt.WindowSystemMenuHint |
                         QtCore.Qt.WindowTitleHint)

        if verification == "demo":
            self.verification = self.demo_verification
        else:
            self.verification = verification

        self.parent = parent
        self.keys = [key for key in self.parent.o_dict.keys()]

        layout = QtGui.QGridLayout()
        layout.setColumnStretch(1, 1)
        layout.setColumnMinimumWidth(1, 250)

        self.old_password_label = QtGui.QLabel()
        self.old_password_label.setText(self.keys[0])
        self.old_password_field = QtGui.QLineEdit()
        self.old_password_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.old_password_label, 0, 0)
        layout.addWidget(self.old_password_field, 0, 1)

        self.new_password_label = QtGui.QLabel()
        self.new_password_label.setText(self.keys[1])
        self.new_password_field = QtGui.QLineEdit()
        self.new_password_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.new_password_label, 1, 0)
        layout.addWidget(self.new_password_field, 1, 1)

        self.new_password2_label = QtGui.QLabel()
        self.new_password2_label.setText(self.keys[1])
        self.new_password2_field = QtGui.QLineEdit()
        self.new_password2_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.new_password2_label, 2, 0)
        layout.addWidget(self.new_password2_field, 2, 1)

        button_box = QtGui.QDialogButtonBox()<commit_msg>fixing incorrect label for change_password<commit_after>import sys
from collections import OrderedDict
from PyQt4 import QtGui, QtCore

if sys.version_info >= (3,):
    unicode = str


class ChangePassword(QtGui.QDialog):
    """A specially constructed two-field dialog to get a user's name (shown)
    and password (masked).  This user should provide a
    """
    def __init__(self, parent, title="User name and password",
                 verification=None):
        super(ChangePassword, self).__init__(None,
                         QtCore.Qt.WindowSystemMenuHint |
                         QtCore.Qt.WindowTitleHint)

        if verification == "demo":
            self.verification = self.demo_verification
        else:
            self.verification = verification

        self.parent = parent
        self.keys = [key for key in self.parent.o_dict.keys()]

        layout = QtGui.QGridLayout()
        layout.setColumnStretch(1, 1)
        layout.setColumnMinimumWidth(1, 250)

        self.old_password_label = QtGui.QLabel()
        self.old_password_label.setText(self.keys[0])
        self.old_password_field = QtGui.QLineEdit()
        self.old_password_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.old_password_label, 0, 0)
        layout.addWidget(self.old_password_field, 0, 1)

        self.new_password_label = QtGui.QLabel()
        self.new_password_label.setText(self.keys[1])
        self.new_password_field = QtGui.QLineEdit()
        self.new_password_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.new_password_label, 1, 0)
        layout.addWidget(self.new_password_field, 1, 1)

        self.new_password2_label = QtGui.QLabel()
        self.new_password2_label.setText(self.keys[2])
        self.new_password2_field = QtGui.QLineEdit()
        self.new_password2_field.setEchoMode(QtGui.QLineEdit.Password)
        layout.addWidget(self.new_password2_label, 2, 0)
        layout.addWidget(self.new_password2_field, 2, 1)

        button_box = QtGui.QDialogButtonBox()
{'fraction_non_alphanumeric': 0.09516801569781702, 'fraction_numerical': 0.014226146676477803, 'mean_word_length': 2.8363123236124177, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '2859227', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1233, 'n_words': 221}