<commit_before>package bg.car_wash.configurations.database;

import bg.car_wash.areas.user.entity.User;
import bg.car_wash.areas.user.entity.UserType;

import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

public class UserDefault {

	private List<User> users;

	public UserDefault() {
		this.users = new LinkedList<>();
		this.initUsers();
	}

	public void initUsers() {
		User u1 = new User();
		u1.setEmail("<EMAIL>");
		u1.setUsername("ivan");
		u1.setFullName("<NAME>");
		u1.setPassword("<PASSWORD>");
		u1.setUserType(UserType.ADMIN);
		u1.setRemuneration(new BigDecimal("1000"));
		User u2 = new User();
		u2.setEmail("<EMAIL>");
		u2.setUsername("pesho");
		u2.setFullName("<NAME>");
		u2.setPassword("<PASSWORD>");
		u2.setUserType(UserType.DIRECTOR);
		u2.setRemuneration(new BigDecimal("2000"));
		User u3 = new User();
		u3.setEmail("<EMAIL>");
		u3.setUsername("asen");
		u3.setFullName("<NAME>");
		u3.setPassword("<PASSWORD>");
		u3.setUserType(UserType.WORKER);
		u3.setRemuneration(new BigDecimal("600"));
		User u4 = new User();
		u4.setEmail("<EMAIL>");
		u4.setUsername("krum");
		u4.setFullName("<NAME>");
		u4.setPassword("<PASSWORD>");
		u4.setUserType(UserType.PAYMASTER);
		u4.setRemuneration(new BigDecimal("800"));

		this.users.add(u1);
		this.users.add(u2);
		this.users.add(u3);
		this.users.add(u4);
	}

	public List<User> getUsers() {
		return this.users;
	}
}
<commit_msg>create 4 users with roles<commit_after>package bg.car_wash.configurations.database;

import bg.car_wash.areas.user.entity.User;
import bg.car_wash.areas.user.entity.UserType;
import bg.car_wash.configurations.user.UserConfiguration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

public class UserDefault {

	private BCryptPasswordEncoder bCryptPasswordEncoder;

	private String password;

	private List<User> users;

	public UserDefault() {
		this.users = new LinkedList<>();
		this.bCryptPasswordEncoder = new BCryptPasswordEncoder();
		this.password = this.bCryptPasswordEncoder.encode("<PASSWORD>");
		this.initUsers();
	}

	public void initUsers() {
		User u1 = new User();
		u1.setEmail("<EMAIL>");
		u1.setFullName("<NAME>");
		u1.setPassword(<PASSWORD>);
		u1.setUserType(UserType.ADMIN);
		u1.setRemuneration(new BigDecimal(UserConfiguration.ADMIN_REMUNERATION));
		u1.setAccountNonExpired(true);
		u1.setAccountNonLocked(true);
		u1.setCredentialsNonExpired(true);
		u1.setEnabled(true);

		User u2 = new User();
		u2.setEmail("<EMAIL>");
		u2.setFullName("<NAME>");
		u2.setPassword(<PASSWORD>);
		u2.setUserType(UserType.DIRECTOR);
		u2.setRemuneration(new BigDecimal(UserConfiguration.DIRECTOR_REMUNERATION));
		u2.setAccountNonExpired(true);
		u2.setAccountNonLocked(true);
		u2.setCredentialsNonExpired(true);
		u2.setEnabled(true);

		User u3 = new User();
		u3.setEmail("<EMAIL>");
		u3.setFullName("<NAME>");
		u3.setPassword(<PASSWORD>);
		u3.setUserType(UserType.WORKER);
		u3.setRemuneration(new BigDecimal(UserConfiguration.WORKER_REMUNERATION));
		u3.setAccountNonExpired(true);
		u3.setAccountNonLocked(true);
		u3.setCredentialsNonExpired(true);
		u3.setEnabled(true);

		User u4 = new User();
		u4.setEmail("<EMAIL>");
		u4.setFullName("<NAME>");
		u4.setPassword(<PASSWORD>);
		u4.setUserType(UserType.PAYMASTER);
		u4.setRemuneration(new BigDecimal(UserConfiguration.PAYMASTER_REMUNERATION));
		u4.setAccountNonExpired(true);
		u4.setAccountNonLocked(true);
		u4.setCredentialsNonExpired(true);
		u4.setEnabled(true);

		this.users.add(u1);
		this.users.add(u2);
		this.users.add(u3);
		this.users.add(u4);
	}

	public List<User> getUsers() {
		return this.users;
	}
}

{'fraction_non_alphanumeric': 0.15855614973262033, 'fraction_numerical': 0.024331550802139036, 'mean_word_length': 5.563157894736842, 'pattern_counts': {'":': 0, '<': 34, '<?xml version=': 0, '>': 34, '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': '4264407', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1393, 'n_words': 191}