<commit_before>package backend.configuration

import backend.model.user.User
import org.springframework.security.core.userdetails.UserDetails

class CustomUserDetails(val user: User) : UserDetails {

    val id = user.core.id

    override fun getUsername() = user.email

    override fun isCredentialsNonExpired() = true

    override fun isAccountNonExpired() = true

    override fun isAccountNonLocked() = true

    override fun getAuthorities() = user.core.getAuthorities()

    override fun isEnabled() = !user.isBlocked

    override fun getPassword(): String? = <PASSWORD>
}<commit_msg>Set customUserDetails.isEnabled() to true per default<commit_after>package backend.configuration

import backend.model.user.User
import org.springframework.security.core.userdetails.UserDetails

class CustomUserDetails(val user: User) : UserDetails {

    val id = user.core.id

    override fun getUsername() = user.email

    override fun isCredentialsNonExpired() = true

    override fun isAccountNonExpired() = true

    override fun isAccountNonLocked() = true

    override fun getAuthorities() = user.core.getAuthorities()

    override fun isEnabled() = true

    override fun getPassword(): String? = <PASSWORD>
}
{'fraction_non_alphanumeric': 0.08792111750205424, 'fraction_numerical': 0.0, 'mean_word_length': 4.389380530973451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6268764', 'n_tokens_mistral': 335, 'n_tokens_neox': 321, 'n_words': 91}