<commit_before>package gameMockups;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.ImageIcon;

import java.awt.Dimension;
import java.awt.Font;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class AvailableLevelView extends JPanel {
	GroupLayout layout;
	StarView starView;
	JButton lvlButton;
	String lvlname;
	
	public AvailableLevelView(String s) {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setPreferredSize(new Dimension(148, 99));
		lvlButton = new JButton("");
		lvlButton.setIcon(new ImageIcon(AvailableLevelView.class.getResource("/icons/LockIcon.png")));
		lvlButton.setFont(new Font("Comic Sans MS", Font.PLAIN, 20));
		lvlname = s;
		starView = new StarView();
		
		setupLayout();
	}
	
	void setupLayout(){
		layout = new GroupLayout(this);
		layout.setHorizontalGroup(
			layout.createParallelGroup(Alignment.LEADING)
				.addGroup(layout.createSequentialGroup()
					.addGap(1)
					.addGroup(layout.createParallelGroup(Alignment.TRAILING)
						.addComponent(lvlButton, Alignment.LEADING, 0, 0, Short.MAX_VALUE)
						.addComponent(starView, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(35, Short.MAX_VALUE))
		);
		layout.setVerticalGroup(
			layout.createParallelGroup(Alignment.TRAILING)
				.addGroup(layout.createSequentialGroup()
					.addComponent(lvlButton, GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(starView, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
		);
		this.setLayout(layout);
	}
	
		void unlocklevel(int i){
			lvlButton.setText(lvlname);
			lvlButton.setIcon(null);
			if(i==1){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
			if(i==2){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar2.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
			if(i==3){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar2.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar3.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
		}

}
<commit_msg>LvlButton defaults to disabled, unlock enables<commit_after>package gameMockups;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.ImageIcon;

import java.awt.Dimension;
import java.awt.Font;
import javax.swing.border.LineBorder;
import java.awt.Color;

public class AvailableLevelView extends JPanel {
	GroupLayout layout;
	StarView starView;
	JButton lvlButton;
	String lvlname;
	
	public AvailableLevelView(String s) {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setPreferredSize(new Dimension(148, 99));
		lvlButton = new JButton("");
		lvlButton.setEnabled(false);
		lvlButton.setIcon(new ImageIcon(AvailableLevelView.class.getResource("/icons/LockIcon.png")));
		lvlButton.setFont(new Font("Comic Sans MS", Font.PLAIN, 20));
		lvlname = s;
		starView = new StarView();
		
		setupLayout();
	}
	
	void setupLayout(){
		layout = new GroupLayout(this);
		layout.setHorizontalGroup(
			layout.createParallelGroup(Alignment.LEADING)
				.addGroup(layout.createSequentialGroup()
					.addGap(1)
					.addGroup(layout.createParallelGroup(Alignment.TRAILING)
						.addComponent(lvlButton, Alignment.LEADING, 0, 0, Short.MAX_VALUE)
						.addComponent(starView, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addContainerGap(35, Short.MAX_VALUE))
		);
		layout.setVerticalGroup(
			layout.createParallelGroup(Alignment.TRAILING)
				.addGroup(layout.createSequentialGroup()
					.addComponent(lvlButton, GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(starView, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
		);
		this.setLayout(layout);
	}
	
		void unlocklevel(int i){
			lvlButton.setText(lvlname);
			lvlButton.setIcon(null);
			lvlButton.setEnabled(true);
			if(i==1){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
			if(i==2){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar2.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
			if(i==3){
				starView.lblStar1.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar2.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
				starView.lblStar3.setIcon(new ImageIcon(StarView.class.getResource("/icons/star.png")));
			}
		}

}

{'fraction_non_alphanumeric': 0.12908912830558275, 'fraction_numerical': 0.010186092066601371, 'mean_word_length': 5.280442804428044, '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': '6121648', 'n_tokens_mistral': 1902, 'n_tokens_neox': 1722, 'n_words': 243}