<commit_before><?php

/**
 * (c) 2011 - ∞ Vespolina Project http://www.vespolina-project.org
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Vespolina\Sync\Manager;

use Vespolina\Sync\Entity\SyncStateInterface;
use Vespolina\Sync\ServiceAdapter\ServiceAdapterInterface;

/**
 * An interface to manage the synchronization state
 *
 * @author <NAME> <<EMAIL>>
 */
interface SyncManagerInterface
{

    /**
     * Register a local entity retriever
     *
     * @param string $entityName
     * @param $retriever Manager or gateway to retrieve the entity
     * @param  string $method The method which will be called to retrieve the entity when the id passed
     * @return mixed
     */
    public function addLocalEntityRetriever($entityName, $retriever, $method = 'findId');

    /**
     * Register a service adapter
     *
     * @param  ServiceAdapterInterface $serviceAdapter
     * @return mixed
     */
    public function addServiceAdapter(ServiceAdapterInterface $serviceAdapter);

    /**
     * Execute synchronization for the given list of entities
     *
     * @param  array   $entityNames
     * @param  integer $size
     * @return mixed
     */
    public function execute(array $entityNames = array(), $size = 0);

    /**
     * Retrieve the synchronisation state for the entity
     *
     * @param $entityName
     * @return SyncStateInterface
     */
    public function getState($entityName);
}
<commit_msg>remove unneeded break line<commit_after><?php

/**
 * (c) 2011 - ∞ Vespolina Project http://www.vespolina-project.org
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Vespolina\Sync\Manager;

use Vespolina\Sync\Entity\SyncStateInterface;
use Vespolina\Sync\ServiceAdapter\ServiceAdapterInterface;

/**
 * An interface to manage the synchronization state
 *
 * @author <NAME> <<EMAIL>.org>
 */
interface SyncManagerInterface
{
    /**
     * Register a local entity retriever
     *
     * @param string $entityName
     * @param $retriever Manager or gateway to retrieve the entity
     * @param  string $method The method which will be called to retrieve the entity when the id passed
     * @return mixed
     */
    public function addLocalEntityRetriever($entityName, $retriever, $method = 'findId');

    /**
     * Register a service adapter
     *
     * @param  ServiceAdapterInterface $serviceAdapter
     * @return mixed
     */
    public function addServiceAdapter(ServiceAdapterInterface $serviceAdapter);

    /**
     * Execute synchronization for the given list of entities
     *
     * @param  array   $entityNames
     * @param  integer $size
     * @return mixed
     */
    public function execute(array $entityNames = array(), $size = 0);

    /**
     * Retrieve the synchronisation state for the entity
     *
     * @param $entityName
     * @return SyncStateInterface
     */
    public function getState($entityName);
}

{'fraction_non_alphanumeric': 0.09177631578947368, 'fraction_numerical': 0.003289473684210526, 'mean_word_length': 3.001315789473684, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '5623057', 'n_tokens_mistral': 851, 'n_tokens_neox': 818, 'n_words': 277}