<commit_before>package GuiElements;

import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.border.MatteBorder;


public class BroadCastReceiver extends JPanel{

	private static final long serialVersionUID = 1L;

	public BroadCastReceiver(String userName, String inputText, String timeStamp) {

		setBackground(Color.WHITE);
		setBorder(new MatteBorder(0, 3, 0, 0, Color.RED));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{500};
		gridBagLayout.rowHeights = new int[]{10,10};
		gridBagLayout.columnWeights = new double[]{1.0};
		gridBagLayout.rowWeights = new double[]{1.0, 0.0};
		setLayout(gridBagLayout);
		createInsidePanel(inputText, timeStamp);
		
	}
	
	private void createInsidePanel(String inputText, String timeStamp){
		
		
		JTextPane txtpnMessage = new JTextPane();
		txtpnMessage.setFont(new Font("Trebuchet MS", Font.PLAIN, 14));
		
		txtpnMessage.setEditable(false);
		txtpnMessage.setBackground(Color.WHITE);
		txtpnMessage.setText(inputText);
		
		GridBagConstraints gbc_txtpnMessage = new GridBagConstraints();
		gbc_txtpnMessage.fill = GridBagConstraints.BOTH;
		gbc_txtpnMessage.gridx = 0;
		gbc_txtpnMessage.gridy = 0;
		gbc_txtpnMessage.insets = new Insets(3, 3, 0, 0);
		add(txtpnMessage, gbc_txtpnMessage);
		
		JLabel lblTimestamp = new JLabel(timeStamp);
		lblTimestamp.setFont(new Font("Ubuntu Light", Font.PLAIN, 10));
		lblTimestamp.setBackground(Color.WHITE);
		
		GridBagConstraints gbc_lblTimestamp = new GridBagConstraints();
		gbc_lblTimestamp.gridx = 0;
		gbc_lblTimestamp.gridy = 1;
		gbc_lblTimestamp.anchor = GridBagConstraints.NORTHEAST;
		add(lblTimestamp, gbc_lblTimestamp);


	}
}<commit_msg>added username to broadcast receiver<commit_after>package GuiElements;

import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.border.MatteBorder;


public class BroadCastReceiver extends JPanel{

	private static final long serialVersionUID = 1L;

	public BroadCastReceiver(String userName, String inputText, String timeStamp) {

		setBackground(Color.WHITE);
		setBorder(new MatteBorder(0, 3, 0, 0, Color.RED));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{200};
		gridBagLayout.rowHeights = new int[]{35,10};
		gridBagLayout.columnWeights = new double[]{1.0};
		gridBagLayout.rowWeights = new double[]{1.0, 0.0};
		setLayout(gridBagLayout);
		createInsidePanel(userName, inputText, timeStamp);
		
	}
	
	private void createInsidePanel(String userName,String inputText, String timeStamp){
		
		JLabel lblUser = new JLabel(userName.toUpperCase());
		lblUser.setFont(new Font("Lucida Sans", Font.BOLD, 12));
		GridBagConstraints gbc_lblUser = new GridBagConstraints();
		gbc_lblUser.insets = new Insets(3, 3, 2, 0);
		gbc_lblUser.gridx = 0;
		gbc_lblUser.gridy = 0;
		gbc_lblUser.anchor = GridBagConstraints.NORTHWEST;
		add(lblUser, gbc_lblUser);
		
		JTextPane txtpnMessage = new JTextPane();
		txtpnMessage.setFont(new Font("Trebuchet MS", Font.PLAIN, 14));
		txtpnMessage.setEditable(false);
		txtpnMessage.setBackground(Color.WHITE);
		txtpnMessage.setText(inputText);
		
		GridBagConstraints gbc_txtpnMessage = new GridBagConstraints();
		gbc_txtpnMessage.fill = GridBagConstraints.HORIZONTAL;
		gbc_txtpnMessage.gridx = 0;
		gbc_txtpnMessage.gridy = 0;
		gbc_txtpnMessage.insets = new Insets(3, 3, 0, 0);
		gbc_txtpnMessage.anchor = GridBagConstraints.SOUTH;
		add(txtpnMessage, gbc_txtpnMessage);
		
		
		JLabel lblTimestamp = new JLabel(timeStamp);
		lblTimestamp.setFont(new Font("Ubuntu Light", Font.PLAIN, 10));
		lblTimestamp.setBackground(Color.WHITE);
		
		GridBagConstraints gbc_lblTimestamp = new GridBagConstraints();
		gbc_lblTimestamp.gridx = 0;
		gbc_lblTimestamp.gridy = 1;
		gbc_lblTimestamp.anchor = GridBagConstraints.NORTHEAST;
		add(lblTimestamp, gbc_lblTimestamp);


	}
}
{'fraction_non_alphanumeric': 0.10573946177661347, 'fraction_numerical': 0.016194331983805668, 'mean_word_length': 5.593406593406593, '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': '1073262', 'n_tokens_mistral': 1575, 'n_tokens_neox': 1418, 'n_words': 281}