<commit_before>package uk.ac.ebi.spot.goci.curation.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import uk.ac.ebi.spot.goci.curation.model.SingleNucleotidePolymorphismXref;

import java.util.Collection;

/**
 * Created by emma on 08/01/15.
 *
 * @author emma
 *         <p>
 *         Repository accessing Single Nucloetide Polymorphism XREF entity object
 */
@RepositoryRestResource
public interface SingleNucleotidePolymorphismXrefRepository extends JpaRepository<SingleNucleotidePolymorphismXref, Long> {
    Collection<SingleNucleotidePolymorphismXref> findByAssociationID(Long associationID);
}<commit_msg>Added method to find cross-ref by assoication and snpID<commit_after>package uk.ac.ebi.spot.goci.curation.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import uk.ac.ebi.spot.goci.curation.model.SingleNucleotidePolymorphismXref;

import java.util.Collection;

/**
 * Created by emma on 08/01/15.
 *
 * @author emma
 *         <p>
 *         Repository accessing Single Nucloetide Polymorphism XREF entity object
 */
@RepositoryRestResource
public interface SingleNucleotidePolymorphismXrefRepository extends JpaRepository<SingleNucleotidePolymorphismXref, Long> {

    Collection<SingleNucleotidePolymorphismXref> findByAssociationID(Long associationID);

    Collection<SingleNucleotidePolymorphismXref> findBySnpID(Long snpID);

    SingleNucleotidePolymorphismXref findByAssociationIDAndSnpID(Long associationID, Long snpID);

}
{'fraction_non_alphanumeric': 0.07980652962515115, 'fraction_numerical': 0.007255139056831923, 'mean_word_length': 5.953781512605042, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3443169', 'n_tokens_mistral': 542, 'n_tokens_neox': 478, 'n_words': 88}