<commit_before>package combat;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;

public class Attacks {
	
	private String name;
	private static ArrayList<String> attackNames = new ArrayList<String>(Arrays.asList(
			new String[] { "Feuerwerfer", "Wasserbombe", "Pustekuchen", "Erdloch", "Schmetterball", "Traubenwerfer",
					"Rutschschlag", "Faustschlag", "Ausruhen", "<NAME>", "<NAME>" }));
	
	private int attackDmg;

	//generate name + attackDmg
	public Attacks() {
		this(new Random().nextInt(40) + 10, attackNames.get(new Random().nextInt(attackNames.size() - 1)));
	}
	
	//generate name
	public Attacks(int attackDmg) {
		this(attackDmg, attackNames.get(new Random().nextInt(attackNames.size() - 1)));
	}
	
	//save attackDmg and name
	public Attacks(int attackDmg, String name) {
		this.name = name;
		this.attackDmg = attackDmg;
	}	
	
	
	
	public String getName() {
		return name;
	}
	
	public void doAttack(IAttackable focus) {
		doAttack(focus, null);
	}
	public void doAttack(IAttackable focus, Combo combo) {
		int dmg = attackDmg;
		float luck = new Random().nextFloat() + 0.5f;
		dmg *= luck;
		focus.getDmg(dmg);
	}
	
	
	public int getDamage(){
		return attackDmg;
	}

}<commit_msg>bonus dmg with combo<commit_after>package combat;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;

public class Attacks {
	
	private String name;
	private static ArrayList<String> attackNames = new ArrayList<String>(Arrays.asList(
			new String[] { "Feuerwerfer", "Wasserbombe", "Pustekuchen", "Erdloch", "Schmetterball", "Traubenwerfer",
					"Rutschschlag", "Faustschlag", "Ausruhen", "<NAME>", "<NAME>" }));
	
	private int attackDmg;

	//generate name + attackDmg
	public Attacks() {
		this(new Random().nextInt(40) + 10, attackNames.get(new Random().nextInt(attackNames.size() - 1)));
	}
	
	//generate name
	public Attacks(int attackDmg) {
		this(attackDmg, attackNames.get(new Random().nextInt(attackNames.size() - 1)));
	}
	
	//save attackDmg and name
	public Attacks(int attackDmg, String name) {
		this.name = name;
		this.attackDmg = attackDmg;
	}	
	
	
	
	public String getName() {
		return name;
	}
	
	public void doAttack(IAttackable focus) {
		doAttack(focus, null);
	}
	public void doAttack(IAttackable focus, Combo combo) {
		int dmg = attackDmg;
		float luck = new Random().nextFloat() + 0.5f;
		dmg *= luck;
		if(combo != null){
			dmg += dmg * combo.getCombo().length / 10f;  //for each combo step get 10% extra dmg
		}
		focus.getDmg(dmg);
	}
	
	
	public int getDamage(){
		return attackDmg;
	}

}
{'fraction_non_alphanumeric': 0.14152410575427682, 'fraction_numerical': 0.007776049766718507, 'mean_word_length': 4.166666666666667, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4976110', 'n_tokens_mistral': 1019, 'n_tokens_neox': 919, 'n_words': 221}