<commit_before>/* 
	JCavernApplet.java

	Title:			JCavern And Glen
	Author:			<NAME>
	Description:	
*/

package jcavern;

import java.awt.*;
import java.awt.event.*;
import java.util.*;

public class MissionView extends Canvas implements Observer
{
	private Mission	mModel;
	
	public MissionView(Mission aMission)
	{
		mModel = aMission;
		
		setBackground(Color.black);
		setForeground(Color.orange);
		aMission.addObserver(this);
	}
	
	public void setModel(Mission aModel)
	{
		mModel.deleteObserver(this);
		mModel = aModel;
		mModel.addObserver(this);
		repaint();
	}
	
	public void update(Observable a, Object b)
	{
		repaint();
	}
	
	public void paint(Graphics g)
	{
		//g.setFont(new Font("Monospaced", Font.PLAIN, 12));
			
		g.drawString("Your mission is " + mModel.toString(), 10, 20);
	}
}<commit_msg>now using CavernOrange; displays schematic overview of progress toward mission completion, instead of toString() sentence<commit_after>/* 
	JCavernApplet.java

	Title:			JCavern And Glen
	Author:			<NAME>
	Description:	
*/

package jcavern;

import java.awt.*;
import java.awt.event.*;
import java.util.*;

public class MissionView extends Canvas implements Observer
{
	private Mission	mModel;
	
	public MissionView(Mission aMission)
	{
		mModel = aMission;
		
		setBackground(Color.black);
		setForeground(JCavernApplet.CavernOrange);
		aMission.addObserver(this);
	}
	
	public void setModel(Mission aModel)
	{
		mModel.deleteObserver(this);
		mModel = aModel;
		mModel.addObserver(this);
		repaint();
	}
	
	public void update(Observable a, Object b)
	{
		repaint();
	}
	
	public void paint(Graphics g)
	{
		int				index;
		StringBuffer	aBuffer = new StringBuffer();;
		
		//g.setFont(new Font("Monospaced", Font.PLAIN, 12));
		
		for (index = 0; index < mModel.getQuota(); index++)
		{
			if (index < mModel.getKills())
			{
				aBuffer.append ("- ");
			}
			else
			{
				aBuffer.append(mModel.getTarget().getAppearance());
			}
			
			aBuffer.append(" ");
		}
		g.drawString(aBuffer.toString(), 10, 20);
	}
}
{'fraction_non_alphanumeric': 0.12691358024691357, 'fraction_numerical': 0.006419753086419753, 'mean_word_length': 3.755868544600939, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3376121', 'n_tokens_mistral': 818, 'n_tokens_neox': 698, 'n_words': 160}