<commit_before><?php
namespace Onebip\Concurrency;

interface Lock
{
    /**
     * @throws LockNotAvailableException
     * @param $duration (in seconds)
     */
    public function acquire($duration);

    /**
     * @param $force boolean
     */
    public function release($force);

    /**
     * @throws LockNotavailableexception
     * @param $duration (in seconds)
     */
    public function refresh($duration);

    /**
     * @return array  diagnostic information
     */
    public function show();

    /**
     * @param $polling (in seconds)
     * @param $maximumWaitingTime (in seconds)
     * @return void
     */
    public function wait($polling, $maximumWaitingTime);
}<commit_msg>Adding defaults to the Lock interface<commit_after><?php
namespace Onebip\Concurrency;

interface Lock
{
    /**
     * @throws LockNotAvailableException
     * @param $duration (in seconds)
     */
    public function acquire($duration = 360);

    /**
     * @param $force boolean
     */
    public function release($force = false);

    /**
     * @throws LockNotavailableexception
     * @param $duration (in seconds)
     */
    public function refresh($duration = 3600);

    /**
     * @return array  diagnostic information
     */
    public function show();

    /**
     * @param $polling (in seconds)
     * @param $maximumWaitingTime (in seconds)
     * @return void
     */
    public function wait($polling = 30, $maximumWaitingTime = 3600);
}
{'fraction_non_alphanumeric': 0.12131596984235778, 'fraction_numerical': 0.008910212474297465, 'mean_word_length': 2.5609756097560976, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3287354', 'n_tokens_mistral': 422, 'n_tokens_neox': 400, 'n_words': 110}