<commit_before>
namespace Serilog
{
    using System.IO;

    /// <summary>
    /// Enables hooking into log file lifecycle events
    /// </summary>
    public abstract class FileLifecycleHooks
    {
        /// <summary>
        /// Wraps <paramref name="sourceStream"/> in another stream, such as a GZipStream, then returns the wrapped stream
        /// </summary>
        /// <param name="sourceStream">The source log file stream</param>
        /// <returns>The wrapped stream</returns>
        public abstract Stream Wrap(Stream sourceStream);
    }
}<commit_msg>Add docs re wrapped stream ownership<commit_after>
namespace Serilog
{
    using System.IO;

    /// <summary>
    /// Enables hooking into log file lifecycle events
    /// </summary>
    public abstract class FileLifecycleHooks
    {
        /// <summary>
        /// Wraps <paramref name="underlyingStream"/> in another stream, such as a GZipStream, then returns the wrapped stream
        /// </summary>
        /// <remarks>
        /// Serilog is responsible for disposing of the wrapped stream
        /// </remarks>
        /// <param name="underlyingStream">The underlying log file stream</param>
        /// <returns>The wrapped stream</returns>
        public abstract Stream Wrap(Stream underlyingStream);
    }
}
{'fraction_non_alphanumeric': 0.11428571428571428, 'fraction_numerical': 0.0, 'mean_word_length': 2.3402061855670104, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3738858', 'n_tokens_mistral': 338, 'n_tokens_neox': 333, 'n_words': 114}