<commit_before>package se.kits.gakusei.content.repository;

import org.springframework.data.repository.CrudRepository;
import se.kits.gakusei.content.model.IncorrectAnswers;

import java.util.List;

public interface IncorrectAnswerRepository extends CrudRepository<IncorrectAnswers, Long> {

    List<IncorrectAnswers> findByQuizNuggetId(Long id);

}<commit_msg>expose delete by quiznuggetid query<commit_after>package se.kits.gakusei.content.repository;

import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;
import se.kits.gakusei.content.model.IncorrectAnswers;

import java.util.List;

public interface IncorrectAnswerRepository extends CrudRepository<IncorrectAnswers, Long> {

    List<IncorrectAnswers> findByQuizNuggetId(Long id);

    @Transactional
    void deleteByQuizNuggetId(Long id);
}
{'fraction_non_alphanumeric': 0.0839080459770115, 'fraction_numerical': 0.0, 'mean_word_length': 7.140186915887851, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6275455', 'n_tokens_mistral': 277, 'n_tokens_neox': 268, 'n_words': 44}