<commit_before>using System;
using System.Collections.Specialized;
using System.Web;

namespace Crowbar
{
    public class BrowserContext : ISimulatedWorkerRequestContext
    {
        private readonly ISimulatedWorkerRequestContext context;

        public BrowserContext(string method)
        {
            context = this;
            context.Cookies = new HttpCookieCollection();
            context.FormValues = new NameValueCollection();
            context.Headers = new NameValueCollection();
            context.Method = method;
            context.Protocol = "http";
            context.QueryString = string.Empty;

            context.Headers["Content-Type"] = "application/octet-stream";
        }

        string ISimulatedWorkerRequestContext.BodyString { get; set; }

        HttpCookieCollection ISimulatedWorkerRequestContext.Cookies { get; set; }

        NameValueCollection ISimulatedWorkerRequestContext.FormValues { get; set; }

        NameValueCollection ISimulatedWorkerRequestContext.Headers { get; set; }

        string ISimulatedWorkerRequestContext.Method { get; set; }

        string ISimulatedWorkerRequestContext.Protocol { get; set; }

        string ISimulatedWorkerRequestContext.QueryString { get; set; }

        /// <summary>
        /// Adds a body to the request.
        /// </summary>
        /// <param name="body">A string that should be used as the request body.</param>
        /// <param name="contentType">The content type.</param>
        public void Body(string body, string contentType = "application/octet-stream")
        {<commit_msg>Added missing documentation to BrowserContext.<commit_after>using System;
using System.Collections.Specialized;
using System.Web;

namespace Crowbar
{
    /// <summary>
    /// Defines the context that a <see cref="Browser"/> instance should run under.
    /// </summary>
    public class BrowserContext : ISimulatedWorkerRequestContext
    {
        private readonly ISimulatedWorkerRequestContext context;

        public BrowserContext(string method)
        {
            context = this;
            context.Cookies = new HttpCookieCollection();
            context.FormValues = new NameValueCollection();
            context.Headers = new NameValueCollection();
            context.Method = method;
            context.Protocol = "http";
            context.QueryString = string.Empty;

            context.Headers["Content-Type"] = "application/octet-stream";
        }

        /// <summary>
        /// Gets or sets the body.
        /// </summary>
        string ISimulatedWorkerRequestContext.BodyString { get; set; }

        HttpCookieCollection ISimulatedWorkerRequestContext.Cookies { get; set; }

        /// <summary>
        /// Gets or sets the forms values.
        /// </summary>
        NameValueCollection ISimulatedWorkerRequestContext.FormValues { get; set; }

        /// <summary>
        /// Gets or sets the headers that should be used for the request.
        /// </summary>
        NameValueCollection ISimulatedWorkerRequestContext.Headers { get; set; }

        string ISimulatedWorkerRequestContext.Method { get; set; }

        /// <summary>
        /// Gets or sets the protocol that should be used for the request.
        /// </summary>
        string ISimulatedWorkerRequestContext.Protocol { get; set; }

        /// <summary>
        /// Gets or sets the query string.
        /// </summary>
        string ISimulatedWorkerRequestContext.QueryString { get; set; }

        /// <summary>
        /// Adds a body to the request.
        /// </summary>
        /// <param name="body">A string that should be used as the request body.</param>
        /// <param name="contentType">The content type.</param>
        public void Body(string body, string contentType = "application/octet-stream")
        {
{'fraction_non_alphanumeric': 0.09898145729955601, 'fraction_numerical': 0.0, 'mean_word_length': 2.3275412684622068, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 28, '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': '3195788', 'n_tokens_mistral': 944, 'n_tokens_neox': 914, 'n_words': 260}