<commit_before><?php
/**
 * Created by PhpStorm.
 * User: APardemann
 * Date: 12/08/2016
 * Time: 12:35 PM
 */

namespace NorseBlue\Sikker\Symmetric\Ciphers;


class InitVector
{
    /**
     * Pads the given IV string  with \0 up to the block size.
     *
     * @param string $iv The initialization vector to pad.
     * @param int $blockSize The block size.
     * @return string Returns the padded string.
     */
    public static function pad(string $iv, int $blockSize = 16)
    {
        $padded = $iv;
        for ($i = (strlen($iv) % $blockSize); $i < $blockSize; $i += 2) {
            $padded .= '\0';
        }
        return $padded;
    }
}<commit_msg>Edited some docblocks<commit_after><?php
/**
 * Created by PhpStorm.
 * User: APardemann
 * Date: 12/08/2016
 * Time: 12:35 PM
 */

namespace NorseBlue\Sikker\Symmetric\Ciphers;


class InitVector
{
    /**
     * Pads the given IV string  with \0 up to the block size.
     *
     * @param string $iv The initialization vector to pad.
     * @param int $blockSize The block size in bytes.
     * @return string Returns the padded string.
     */
    public static function pad(string $iv, int $blockSize = 16)
    {
        $padded = $iv;
        for ($i = (strlen($iv) % $blockSize); $i < $blockSize; $i += 2) {
            $padded .= '\0';
        }
        return $padded;
    }
}
{'fraction_non_alphanumeric': 0.13175425610658772, 'fraction_numerical': 0.025166543301258327, 'mean_word_length': 2.1811764705882353, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3936095', 'n_tokens_mistral': 477, 'n_tokens_neox': 451, 'n_words': 142}