<commit_before>package com.jos.dem.vetlog.repository

import com.jos.dem.vetlog.model.Pet
import com.jos.dem.vetlog.model.User
import org.springframework.data.jpa.repository.JpaRepository

interface PetRepository extends JpaRepository<Pet,Long> {
  Pet save(Pet pet)
  List<Pet> findAllByUser(User user)
  Pet findByUuid(String uuid)
}
<commit_msg>#50 Adding pet by status in the repository<commit_after>package com.jos.dem.vetlog.repository

import com.jos.dem.vetlog.model.Pet
import com.jos.dem.vetlog.model.User
import com.jos.dem.vetlog.enums.PetStatus
import org.springframework.data.jpa.repository.JpaRepository

interface PetRepository extends JpaRepository<Pet,Long> {
  Pet save(Pet pet)
  Pet findByUuid(String uuid)
  List<Pet> findAllByUser(User user)
  List<Pet> findAllByStatus(PetStatus status)
}

{'fraction_non_alphanumeric': 0.0984009840098401, 'fraction_numerical': 0.0024600246002460025, 'mean_word_length': 5.783333333333333, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6125926', 'n_tokens_mistral': 272, 'n_tokens_neox': 271, 'n_words': 54}