original_docstring: 
      Create all the widgets for the document window which are then put in place in the layout function call.
      
docstring: Create all the widgets for the document window which are then put in place in the layout function call.
docstring_tokens: Create all the widgets for the document window which are then put in place in the layout function call .
code: def buildDocumentWindow(self):
      """
      Create all the widgets for the document window which are then put in place in the layout function call.
      """
      header = 'Author your document and compute the hash of your choice.'
      self.headerLabel = QLabel(header)
      self.headerLabel.setFont(QFont('Helvetica', 18))
  
      self.document_line = QPlainTextEdit(self)
      with open(Memory, 'r') as json_file:
          memory_document = json.load(json_file)['document']
      self.document_line.setPlainText(memory_document)
      self.document_line.setFixedHeight(300)
      self.document_line.setStyleSheet(Colors.LineLight)
  
      self.hash_line = QLineEdit(self)
      self.hash_line.setStyleSheet(Colors.LineDark)
  
      self.computeButton = QPushButton(' Compute ', self)
      self.computeButton.clicked.connect(lambda: Events.hash_document(self))
      self.computeButton.setStyleSheet(Colors.ButtonLight)
      self.computeButton.setFont(QFont('Helvetica', 16))
  
      self.hashAlgorithmBox = QComboBox(self)
      for sha in [' sha256 ', ' sha512 ']:
          self.hashAlgorithmBox.addItem(sha)
      self.hashAlgorithmBox.setStyleSheet(Colors.LineLight)
code_tokens: def buildDocumentWindow ( self ) : header = 'Author your document and compute the hash of your choice.' self . headerLabel = QLabel ( header ) self . headerLabel . setFont ( QFont ( 'Helvetica' , 18 ) ) self . document_line = QPlainTextEdit ( self ) with open ( Memory , 'r' ) as json_file : memory_document = json . load ( json_file ) [ 'document' ] self . document_line . setPlainText ( memory_document ) self . document_line . setFixedHeight ( 300 ) self . document_line . setStyleSheet ( Colors . LineLight ) self . hash_line = QLineEdit ( self ) self . hash_line . setStyleSheet ( Colors . LineDark ) self . computeButton = QPushButton ( ' Compute ' , self ) self . computeButton . clicked . connect ( lambda : Events . hash_document ( self ) ) self . computeButton . setStyleSheet ( Colors . ButtonLight ) self . computeButton . setFont ( QFont ( 'Helvetica' , 16 ) ) self . hashAlgorithmBox = QComboBox ( self ) for sha in [ ' sha256 ' , ' sha512 ' ] : self . hashAlgorithmBox . addItem ( sha ) self . hashAlgorithmBox . setStyleSheet ( Colors . LineLight )
short_docstring: Create all the widgets for the document window which are then put in place in the layout function call.
short_docstring_tokens: Create all the widgets for the document window which are then put in place in the layout function call .
comment: """
      Create all the widgets for the document window which are then put in place in the layout function call.
      """