<commit_before>package view;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.util.Collection;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

import mutant.Mutant;

public class BarView extends ViewComponent{
	
	private JPanel bar;
	
	public BarView(){
		bar = new JPanel(new FlowLayout(FlowLayout.CENTER));
	}

	@Override
	public void update(Collection<Mutant> data) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void draw() {
		bar.setSize(600, 30);
		bar.setBorder(BorderFactory.createLineBorder(Color.black));
		bar.add(new JLabel("Live/Killed"));
		
		container.add(bar, BorderLayout.CENTER);
	}


}
<commit_msg>Updated BarView with information<commit_after>package view;


import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.util.ArrayList;
import java.util.Collection;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;

import mutant.Mutant;

public class BarView extends ViewComponent{
	
	private JPanel bar;
	
	private ArrayList<Mutant> d;
	
	public BarView(){
		bar = new JPanel(new FlowLayout(FlowLayout.CENTER));
	}

	@Override
	public void update(Collection<Mutant> data) {
		// TODO Auto-generated method stub
		d = (ArrayList<Mutant>) data;
	}

	@Override
	public void draw() {
		bar.setSize(600, 30);
		bar.setBorder(BorderFactory.createLineBorder(Color.black));
		int live = 0;
		int killed = 0;
		for(int i = 0; i<d.size(); i++){
			if(d.get(i).isKilled())
				killed++;
			else
				live++;
		}
		bar.add(new JLabel("Live: " + live + "/Killed: " + killed));
		
		container.add(bar, BorderLayout.CENTER);
	}


}

{'fraction_non_alphanumeric': 0.1269656377402446, 'fraction_numerical': 0.007571345369831101, 'mean_word_length': 4.318885448916409, 'pattern_counts': {'":': 0, '<': 8, '<?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': '5597316', 'n_tokens_mistral': 637, 'n_tokens_neox': 568, 'n_words': 133}