<commit_before>// Copyright (c) 2010, www.andrew-eells.com. All rights reserved.

package com.andrew_eells.persistence.service;

import com.andrew_eells.persistence.infrastructure.query.QuerySpecification;

import java.util.List;

/**
 * Standardised database repository access.
 */
public interface PersistenceService<PersistentStrategy>
{
    /**
     * Persist new object.
     *
     * @param object New object.
     */
    void create(final PersistentStrategy object);

    /**
     * Read unique result object.
     *
     * @param querySpecification Query specification.
     * @return Unique result or <code>null</code> if none exists.
     */
    PersistentStrategy readUnique(final QuerySpecification querySpecification);

    /**
     * Read collection of result objects.
     *
     * @param querySpecification Query specification.
     * @return Collection of results or empty collection if none exists.
     */
    List<PersistentStrategy> readList(final QuerySpecification querySpecification);

    /**
     * Update existing object.
     *
     * @param object Object to be updated.
     */
    void update(final PersistentStrategy object);

    /**
     * Delete existing object.
     *
     * @param object Object to be deleted.
     */
    void delete(final PersistentStrategy object);
}<commit_msg>Fixed strange typo in parameter type of service<commit_after>// Copyright (c) 2010, www.andrew-eells.com. All rights reserved.

package com.andrew_eells.persistence.service;

import com.andrew_eells.persistence.infrastructure.query.QuerySpecification;

import java.util.List;

/**
 * Standardised database repository access.
 */
public interface PersistenceService<PersistenceStrategy>
{
    /**
     * Persist new object.
     *
     * @param object New object.
     */
    void create(final PersistenceStrategy object);

    /**
     * Read unique result object.
     *
     * @param querySpecification Query specification.
     * @return Unique result or <code>null</code> if none exists.
     */
    PersistenceStrategy readUnique(final QuerySpecification querySpecification);

    /**
     * Read collection of result objects.
     *
     * @param querySpecification Query specification.
     * @return Collection of results or empty collection if none exists.
     */
    List<PersistenceStrategy> readList(final QuerySpecification querySpecification);

    /**
     * Update existing object.
     *
     * @param object Object to be updated.
     */
    void update(final PersistenceStrategy object);

    /**
     * Delete existing object.
     *
     * @param object Object to be deleted.
     */
    void delete(final PersistenceStrategy object);
}
{'fraction_non_alphanumeric': 0.08968609865470852, 'fraction_numerical': 0.0029895366218236174, 'mean_word_length': 2.948377581120944, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2278981', 'n_tokens_mistral': 715, 'n_tokens_neox': 695, 'n_words': 209}