<commit_before>package de.roamingthings.expenses.user.repository;

import de.roamingthings.expenses.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author <NAME> [<EMAIL>]
 * @version 2017/05/03
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
}<commit_msg>Added check if user exists<commit_after>package de.roamingthings.expenses.user.repository;

import de.roamingthings.expenses.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author <NAME> [<EMAIL>]
 * @version 2017/05/03
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);

    boolean existsByUsername(String username);
}
{'fraction_non_alphanumeric': 0.11306256860592755, 'fraction_numerical': 0.01756311745334797, 'mean_word_length': 6.069767441860465, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '380926', 'n_tokens_mistral': 284, 'n_tokens_neox': 261, 'n_words': 53}