<commit_before>package com.brahalla.Cerberus.configuration;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserDetailsServiceImpl implements UserDetailsService {

  @Override
  public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
    if (username != "user") {
      throw new UsernameNotFoundException("no user found with " + username);
    }
    return new User(
      "user",
      "password",
      true, true, true, true,
      AuthorityUtils.createAuthorityList("USER")
    );
  }

}<commit_msg>bcrypt duh<commit_after>package com.brahalla.Cerberus.configuration;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

@Service
public class UserDetailsServiceImpl implements UserDetailsService {

  @Override
  public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
    if (username != "user") {
      throw new UsernameNotFoundException("no user found with " + username);
    }
    return new User(
      "user",
      "$2a$10$FdLhpmkhswPRCbnw2apRcON2a9Ddax1VjZU.P1bQJW.YHI4owJyfO",
      true, true, true, true,
      AuthorityUtils.createAuthorityList("USER")
    );
  }

}
{'fraction_non_alphanumeric': 0.09008555611474585, 'fraction_numerical': 0.004529441368897836, 'mean_word_length': 5.496732026143791, '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': '1118959', 'n_tokens_mistral': 548, 'n_tokens_neox': 547, 'n_words': 99}