<commit_before>package ca.sait.stars.repositories;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.security.access.prepost.PreAuthorize;

import ca.sait.stars.domains.Record;

/**
 * This is a record repository interface which will be used to auto generate
 * service layer based on annotations and configurations
 * 
 * @author william
 *
 */
public interface RecordRepository extends PagingAndSortingRepository<Record, Integer> {

	@Override
	<S extends Record> S save(S entity);

	@Override
	<S extends Record> Iterable<S> save(Iterable<S> entities);

	@Override
	@PreAuthorize("@recordCheck.check(authentication,#i)")
	Record findOne(@Param("i") Integer id);

	@Override
	boolean exists(Integer id);

	@Override
	Iterable<Record> findAll();

	@Override
	Iterable<Record> findAll(Iterable<Integer> ids);

	@Override
	long count();

	@Override
	void delete(Integer id);

	@Override
	void delete(Record entity);

	@Override
	void delete(Iterable<? extends Record> entities);

	@Override
	void deleteAll();

	@Override
	Iterable<Record> findAll(Sort sort);<commit_msg>Bug fixing for checking record<commit_after>package ca.sait.stars.repositories;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.security.access.prepost.PreAuthorize;

import ca.sait.stars.domains.Record;

/**
 * This is a record repository interface which will be used to auto generate
 * service layer based on annotations and configurations
 * 
 * @author william
 *
 */
public interface RecordRepository extends PagingAndSortingRepository<Record, Integer> {

	@Override
	<S extends Record> S save(S entity);

	@Override
	<S extends Record> Iterable<S> save(Iterable<S> entities);

	@Override
	@PreAuthorize("@recordInspector.check(authentication,#i)")
	Record findOne(@Param("i") Integer id);

	@Override
	boolean exists(Integer id);

	@Override
	Iterable<Record> findAll();

	@Override
	Iterable<Record> findAll(Iterable<Integer> ids);

	@Override
	long count();

	@Override
	void delete(Integer id);

	@Override
	void delete(Record entity);

	@Override
	void delete(Iterable<? extends Record> entities);

	@Override
	void deleteAll();

	@Override
	Iterable<Record> findAll(Sort sort);
{'fraction_non_alphanumeric': 0.10721026802567006, 'fraction_numerical': 0.0, 'mean_word_length': 5.919060052219321, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1791180', 'n_tokens_mistral': 801, 'n_tokens_neox': 761, 'n_words': 201}