<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JToolBar;

import javax.swing.*;

public class NewMessage2 extends JFrame{
    
      public NewMessage2(String title){
  
        //Layout Manager
        super(title);
        setSize(670, 300);
        setLayout(new BorderLayout());
        setVisible(true);
        
        
        //Panels Hierarchy
            //JToolBar     (TOP)
            //JPanel       (MIDDLE) 
            //SrollPanel   (BOTTOM)
        
        
        //Swing Components - Top Panel 
        JButton send = new JButton(" Send >> ");
        JButton draft = new JButton("Save as Draft");
        JToolBar bar = new JToolBar();  
        bar.add(send);
        bar.add(draft);

        
        //Swing Components - Middle Panel
        JLabel to = new JLabel("To:         ");
        JTextField toField = new JTextField(22);
        JLabel cc = new JLabel("Cc:         ");
        JTextField ccField = new JTextField(22);
        JLabel subject = new JLabel("Subject:");
        JTextField subjectField = new JTextField(22);
        
        JPanel mid = new JPanel();  
        mid.setPreferredSize(new Dimension(320,300));     
        mid.add(to);
        mid.add(toField);
        mid.add(cc);
        mid.add(ccField);
        mid.add(subject);
        mid.add(subjectField);                      

        
        //Swing Components - Bottom Panel 
        JTextArea body = new JTextArea(10,10);
        body.setLineWrap(true);
        body.setWrapStyleWord(true);
        JScrollPane scroll = new JScrollPane(body);
       
        
        //Finishing Panels Disposal
        add(bar, BorderLayout.NORTH);    
        add(mid, BorderLayout.LINE_START);  
        add(scroll);   
        
      }    
}<commit_msg>Menu New Message2<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import java.awt.BorderLayout;

import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JToolBar;

import javax.swing.*;

public class NewMessage2 extends JFrame{
    
      public NewMessage2(String title){
  
        //Layout Manager
        super(title);
        setSize(670, 400);
        setLayout(new BorderLayout());
        setVisible(true);
        
        
        //Panels Hierarchy
            //JToolBar     (TOP)
            //JPanel       (MIDDLE) 
            //SrollPanel   (BOTTOM)
        
        
        //Swing Components - Top Panel 
        JButton send = new JButton(" Send >> ");
        JButton draft = new JButton("Save as Draft");
        JToolBar bar = new JToolBar();  
        bar.add(send);
        bar.add(draft);

        
        //Swing Components - Middle Panel
        JLabel to = new JLabel("To:         ");
        JTextField toField = new JTextField(22);
        JLabel cc = new JLabel("Cc:         ");
        JTextField ccField = new JTextField(22);
        JLabel subject = new JLabel("Subject:");
        JTextField subjectField = new JTextField(22);
        
        JPanel mid = new JPanel();  
        mid.setPreferredSize(new Dimension(320,300));     
        mid.add(to);
        mid.add(toField);
        mid.add(cc);
        mid.add(ccField);
        mid.add(subject);
        mid.add(subjectField);                      

        
        //Swing Components - Bottom Panel 
        JTextArea body = new JTextArea(15,20);
        body.setLineWrap(true);
        body.setWrapStyleWord(true);
        JScrollPane scroll = new JScrollPane(body);
       
        
        //Finishing Panels Disposal
        add(bar, BorderLayout.NORTH);    
        add(mid, BorderLayout.LINE_START);  
        add(scroll, BorderLayout.SOUTH);   
        
      }    
}
{'fraction_non_alphanumeric': 0.10355673844664892, 'fraction_numerical': 0.011855794822163078, 'mean_word_length': 1.7932432432432432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3087108', 'n_tokens_mistral': 1239, 'n_tokens_neox': 1186, 'n_words': 287}