<commit_before>/*
	This simple extension of the java.awt.Frame class
	contains all the elements necessary to act as the
	main window of an application.
	It is used by FilebasedSenderAgent
 */

package examples.ex2;

import java.awt.*;
import java.io.*;
import java.io.StringReader;
import jade.core.*;
import jade.lang.acl.*;

/**
 * This class implements a graphical frame that display the sent and received
 * messages. In order to use it you must:
 *
 * <p>create it at the agent level
 * <code>SentReceivedGUI myGui = new SentReceivedGUI(this);</code>
 *
 * <p>in the <code>setup()</code> method:
 * <code> myGui.setTitle("Type of the Agent " + getName());
 * myGui.setVisible(true);
 *
 * <p> everytime you receive a message call:
 * <code> StringWriter w = new StringWriter();
 * msg.toText(w);
 * myGui.receivedMessage("("+w.toString()+")"); </code>
 *
 * <p> every time you send a message call:
 * <code> StringWriter w = new StringWriter();
 * msg.toText(w);
 * myGui.sentMessage("("+w.toString()+")"); </code>
 */
public class SentReceivedGUI extends Frame
{
  private Agent agent;

	public SentReceivedGUI()
	{
		// This code is automatically generated by Visual Cafe when you add
		// components to the visual environment. It instantiates and initializes
		// the components. To modify the code, only use code syntax that matches
		// what Visual Cafe can generate, or Visual Cafe may be unable to back
		// parse your Java file into its visual environment.
		
		//{{INIT_CONTROLS
		setLayout(null);
		setVisible(false);
		setSize(405,305);
		openFileDialog1 = new java.awt.FileDialog(this);
		openFileDialog1.setMode(FileDialog.LOAD);
		openFileDialog1.setTitle("Select the File with the message to send");
		//$$ openFileDialog1.move(40,277);
		setTitle("AGENT");

		label1 = new java.awt.Label("SENT MESSAGES",Label.CENTER);
		label1.setBounds(0,0,202,40);
		add(label1);

		label2 = new java.awt.Label("RECEIVED MESSAGES",Label.CENTER);
		label2.setBounds(202,0,202,40);
		add(label2);
	      <commit_msg>Minor changes to Javadoc comments.<commit_after>/*
	This simple extension of the java.awt.Frame class
	contains all the elements necessary to act as the
	main window of an application.
	It is used by FilebasedSenderAgent
 */

package examples.ex2;

import java.awt.*;
import java.io.*;
import java.io.StringReader;
import jade.core.*;
import jade.lang.acl.*;

/**
 * This class implements a graphical frame that display the sent and received
 * messages. In order to use it you must:
 *
 * <p>create it at the agent level
 * <code>SentReceivedGUI myGui = new SentReceivedGUI(this);</code>
 *
 * <p>in the <code>setup()</code> method:
 * <code> myGui.setTitle("Type of the Agent " + getName());
 * myGui.setVisible(true);
 *
 * <p> everytime you receive a message call:
 * <code> StringWriter w = new StringWriter();
 * msg.toText(w);
 * myGui.receivedMessage(w.toString()); </code>
 *
 * <p> every time you send a message call:
 * <code> StringWriter w = new StringWriter();
 * msg.toText(w);
 * myGui.sentMessage(w.toString()); </code>
 */
public class SentReceivedGUI extends Frame
{
  private Agent agent;

	public SentReceivedGUI()
	{
		// This code is automatically generated by Visual Cafe when you add
		// components to the visual environment. It instantiates and initializes
		// the components. To modify the code, only use code syntax that matches
		// what Visual Cafe can generate, or Visual Cafe may be unable to back
		// parse your Java file into its visual environment.
		
		//{{INIT_CONTROLS
		setLayout(null);
		setVisible(false);
		setSize(405,305);
		openFileDialog1 = new java.awt.FileDialog(this);
		openFileDialog1.setMode(FileDialog.LOAD);
		openFileDialog1.setTitle("Select the File with the message to send");
		//$$ openFileDialog1.move(40,277);
		setTitle("AGENT");

		label1 = new java.awt.Label("SENT MESSAGES",Label.CENTER);
		label1.setBounds(0,0,202,40);
		add(label1);

		label2 = new java.awt.Label("RECEIVED MESSAGES",Label.CENTER);
		label2.setBounds(202,0,202,40);
		add(label2);
	      
{'fraction_non_alphanumeric': 0.12527798369162343, 'fraction_numerical': 0.018779342723004695, 'mean_word_length': 4.150127226463105, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3383445', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1253, 'n_words': 412}