<commit_before>import sys, random, time
from PyQt4 import QtGui, QtCore



def generatePassword(domain, password):
	return "<PASSWORD>"

#class mainWidget(QtGui.QMainWindow):
class mainWidget(QtGui.QWidget):
	def __init__(self):
		super(mainWidget, self).__init__()
		#self.setStyleSheet("*{margin-left: auto;margin-right: auto}")
		#self.setStyleSheet("*{margin-left: 10px;}")

		self.initUI()


	def initUI(self):
		self.resize(600, 500)
		self.setWindowTitle("Passcod.es Desktop Application")

		self.inputhlayout = QtGui.QHBoxLayout()
		self.inputhlayout.addStretch(1)
		self.inputvlayout = QtGui.QVBoxLayout()
		self.inputvlayout.addStretch(1)
		# Create the domain text box
		self.domain = QtGui.QLineEdit("",self)
		self.domain.setPlaceholderText("Domain")
		self.inputvlayout.addWidget(self.domain)
		# Create the password text box
		self.password = QtGui.QLineEdit("",self)
		self.password.setPlaceholderText("Password")
		self.inputvlayout.addWidget(self.password)
		# Create the show password button
		self.displayPasswordButton = QtGui.QPushButton("Show Password", self)
		self.displayPasswordButton.clicked.connect(self.displayPassword)
		self.inputvlayout.addWidget(self.displayPasswordButton)
		# Create the copy password to clipboard button
		self.copyPasswordButton = QtGui.QPushButton("Copy Password to Clipboard", self)
		self.copyPasswordButton.clicked.connect(self.copyPassword)
		self.inputvlayout.addWidget(self.copyPasswordButton)
		# Finish configuring the layput
		self.inputvlayout.addStretch(1)
		self.inputhlayout.addLayout(self.inputvlayout)
		self.inputhlayout.addStretch(1)
		# Set the layout to the hlayout
		self.setLayout(self.inputhlayout)


	def displayPassword(self):
		self.outputhlayout = QtGui.QHBoxLayout()
		self.outputhlayout.addStretch(1)
		self.outputvlayout = QtGui.QVBoxLayout()
		self.outputvlayout.addStretch(1)
		# Create the domain text box
		self.domain = QtGui.QLineEdit("",self)
		#############self.domain.setPlaceholderText("Domain")################### will be set text
		self.outputvlayout.addWidget(self.domain)
		# Create the button to return to the main display
		self.displayPasswordButton = QtGui.QPushButton("Back", self)
		self.displayPasswordButton.clicked.connect(self.initUI)
		self.outputvlayout.addWidget(self.displayPasswordButton)
		# Finish configuring the layput
		self.outputvlayout.addStretch(1)
		self.outputhlayout.addLayout(self.outputvlayout)
		self.outputhlayout.addStretch(1)
		# Set the layout to the hlayout
		self.inputhlayout.setParent(None)
		self.setLayout(self.outputhlayout)

	def copyPassword(self):
		pass





# call the main widget
def main():
	app = QtGui.QApplication(sys.argv)

	gui = mainWidget()
	gui.show()

	app.exec_()
	print "Exiting"
	exit()
<commit_msg>Changed the userinterface for the desktop app<commit_after>import sys, random, time
from PyQt4 import QtGui, QtCore



def generatePassword(domain, password):
	return "<PASSWORD>"

#class mainWidget(QtGui.QMainWindow):
class mainWidget(QtGui.QWidget):
	def __init__(self):
		super(mainWidget, self).__init__()
		#self.setStyleSheet("*{margin-left: auto;margin-right: auto}")
		#self.setStyleSheet("*{margin-left: 10px;}")
		self.setStyleSheet("""
			QPushButton {
				width:200px;
				height: 30px;
			}
			QLineEdit {
				height: 30px;
			}
			""")
		self.initUI()
		self.isPasswordCopied = False


	def initUI(self):
		self.resize(70, 70)
		self.setWindowTitle("Passcod.es Desktop Application")

		self.inputhlayout = QtGui.QHBoxLayout()
		self.inputhlayout.addStretch(1)
		self.inputvlayout = QtGui.QVBoxLayout()
		self.inputvlayout.addStretch(1)
		# Create the domain text box
		self.domain = QtGui.QLineEdit("",self)
		self.domain.setPlaceholderText("Domain")
		self.inputvlayout.addWidget(self.domain)
		# Create the password text box
		self.password = QtGui.QLineEdit("",self)
		self.password.setPlaceholderText("Password")
		self.inputvlayout.addWidget(self.password)
		# Create the show password button
		self.displayPasswordButton = QtGui.QPushButton("Copy Password", self)
		self.displayPasswordButton.clicked.connect(self.displayPassword)
		self.inputvlayout.addWidget(self.displayPasswordButton)
		# Finish configuring the layput
		self.inputvlayout.addStretch(1)
		self.inputhlayout.addLayout(self.inputvlayout)
		self.inputhlayout.addStretch(1)
		# Set the layout to the hlayout
		self.setLayout(self.inputhlayout)


	def displayPassword(self):
		if self.isPasswordCopied:
			# display the password if it has already been copied
			pass

		else:
			self.copyPassword()
	def copyPassword(self):
		self.displayPasswordButton.setText("Display Password")





# call the main widget
def main():
	app = QtGui.QApplication(sys.argv)

	gui = mainWidget()
	gui.show()

	app.exec_()
	print "Exiting"
	exit()

{'fraction_non_alphanumeric': 0.11842381052190316, 'fraction_numerical': 0.00733598826241878, 'mean_word_length': 5.189364461738003, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5955867', 'n_tokens_mistral': 1737, 'n_tokens_neox': 1562, 'n_words': 302}