<commit_before># encoding: utf-8

class Cookie

  # Models a transient, new cookie on the server that can be serialized
  # into an HTTP 'Set-Cookie' header
  class Header

    include Equalizer.new(:cookie, :attributes)
    include Adamantium::Flat

    attr_reader :cookie
    protected   :cookie

    attr_reader :attributes
    protected   :attributes

    def self.build(name, value, attributes)
      new(Cookie.new(name, value), attributes)
    end

    def initialize(cookie, attributes = Attribute::Set::EMPTY)
      @cookie, @attributes = cookie, attributes
    end

    def with_domain(domain)
      with_attribute(Attribute::Domain.new(domain))
    end

    def with_path(path)
      with_attribute(Attribute::Path.new(path))
    end

    def with_max_age(seconds)
      with_attribute(Attribute::MaxAge.new(seconds))
    end

    def with_expires(time)
      with_attribute(Attribute::Expires.new(time))
    end

    def secure
      with_attribute(Attribute::Secure.instance)
    end

    def http_only
      with_attribute(Attribute::HttpOnly.instance)
    end<commit_msg>Properly use concord to remove boilerplate<commit_after># encoding: utf-8

class Cookie

  # Models a transient, new cookie on the server that can be serialized
  # into an HTTP 'Set-Cookie' header
  class Header

    include Concord.new(:cookie, :attributes)
    include Adamantium::Flat

    def self.build(name, value, attributes)
      new(Cookie.new(name, value), attributes)
    end

    def self.new(cookie, attributes = Attribute::Set::EMPTY)
      super
    end

    def with_domain(domain)
      with_attribute(Attribute::Domain.new(domain))
    end

    def with_path(path)
      with_attribute(Attribute::Path.new(path))
    end

    def with_max_age(seconds)
      with_attribute(Attribute::MaxAge.new(seconds))
    end

    def with_expires(time)
      with_attribute(Attribute::Expires.new(time))
    end

    def secure
      with_attribute(Attribute::Secure.instance)
    end

    def http_only
      with_attribute(Attribute::HttpOnly.instance)
    end
{'fraction_non_alphanumeric': 0.08847836655323287, 'fraction_numerical': 0.0009722897423432182, 'mean_word_length': 3.3326315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4185964', 'n_tokens_mistral': 627, 'n_tokens_neox': 593, 'n_words': 149}