<commit_before>package ca.corefacility.bioinformatics.irida.repositories.sample;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplateField;
import ca.corefacility.bioinformatics.irida.repositories.IridaJpaRepository;

/**
 * A repository for storing and reading {@link MetadataTemplateField}s
 */
public interface MetadataFieldRepository extends IridaJpaRepository<MetadataTemplateField, Long> {

	/**
	 * Get a {@link MetadataTemplateField} based on its {@link String} label.
	 *
	 * @param label
	 * 		the {@link String} field label
	 *
	 * @return {@link MetadataTemplateField}
	 */
	@Query("from MetadataTemplateField m where m.label = ?1")
	public MetadataTemplateField findMetadataFieldByLabel(String label);

	@Query("FROM MetadataTemplateField m where m.label LIKE %:query%")
	public List<MetadataTemplateField> findAllMetadataFieldsByLabelQuery(@Param("query") String query);
}<commit_msg>Updated comments.<commit_after>package ca.corefacility.bioinformatics.irida.repositories.sample;

import ca.corefacility.bioinformatics.irida.model.sample.MetadataTemplateField;
import ca.corefacility.bioinformatics.irida.repositories.IridaJpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * A repository for storing and reading {@link MetadataTemplateField}s
 */
public interface MetadataFieldRepository extends IridaJpaRepository<MetadataTemplateField, Long> {

    /**
     * Get a {@link MetadataTemplateField} based on its {@link String} label.
     *
     * @param label the {@link String} field label
     * @return {@link MetadataTemplateField}
     */
    @Query("from MetadataTemplateField m where m.label = ?1")
    public MetadataTemplateField findMetadataFieldByLabel(String label);

    /**
     * Get a {@link List} of {@link MetadataTemplateField} with a label that partially matches the query
     *
     * @param query The {@link String} to test the {@link MetadataTemplateField}'s label against.
     * @return {@link List} of {@link MetadataTemplateField} with labels that match the query.
     */
    @Query("FROM MetadataTemplateField m where m.label LIKE %:query%")
    public List<MetadataTemplateField> findAllMetadataFieldsByLabelQuery(@Param("query") String query);
}
{'fraction_non_alphanumeric': 0.09983700081499593, 'fraction_numerical': 0.0008149959250203749, 'mean_word_length': 5.262755102040816, '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': '2684215', 'n_tokens_mistral': 697, 'n_tokens_neox': 663, 'n_words': 176}