<commit_before>package info.rolandkrueger.userservice.repository;

import info.rolandkrueger.userservice.model.User;
import info.rolandkrueger.userservice.model.UserWithoutAuthoritiesProjection;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;

/**
 * @author <NAME>
 */
@RepositoryRestResource(excerptProjection = UserWithoutAuthoritiesProjection.class)
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
    User findByUsername(@Param("username") String username);

    User findByRegistrationConfirmationToken(@Param("token") String registrationConfirmationToken);

    @RestResource(exported = false)
    @Override Iterable<User> findAll();
}<commit_msg>Don't export save() methods from UserRepository<commit_after>package info.rolandkrueger.userservice.repository;

import info.rolandkrueger.userservice.model.User;
import info.rolandkrueger.userservice.model.UserWithoutAuthoritiesProjection;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.rest.core.annotation.RestResource;

/**
 * @author <NAME>
 */
@RepositoryRestResource(excerptProjection = UserWithoutAuthoritiesProjection.class)
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
    User findByUsername(@Param("username") String username);

    User findByRegistrationConfirmationToken(@Param("token") String registrationConfirmationToken);

    @RestResource(exported = false)
    @Override Iterable<User> findAll();

    @RestResource(exported = false)
    @Override <S extends User> S save(S entity);

    @RestResource(exported = false)
    @Override <S extends User> Iterable<S> save(Iterable<S> entities);
}
{'fraction_non_alphanumeric': 0.09814453125, 'fraction_numerical': 0.0, 'mean_word_length': 7.397540983606557, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6989894', 'n_tokens_mistral': 548, 'n_tokens_neox': 541, 'n_words': 97}