<commit_before>// Copyright 2012 The Gorilla Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sessions

import (
	"code.google.com/p/gorilla/context"
	"code.google.com/p/gorilla/securecookie"
	"encoding/gob"
	"errors"
	"fmt"
	"net/http"
)

// Default session and flash keys.
const (
	sessionKey = "s"
	flashesKey = "_flashes"
)

// SessionConfig --------------------------------------------------------------

// SessionConfig stores configuration for a session.
//
// Fields are a subset of http.Cookie fields.
type SessionConfig struct {
	Path   string
	Domain string
	// MaxAge=0 means no 'Max-Age' attribute specified.
	// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
	// MaxAge>0 means Max-Age attribute present and given in seconds.
	MaxAge   int
	Secure   bool
	HttpOnly bool
}
<commit_msg>newsessions: sessionKey is not needed.<commit_after>// Copyright 2012 The Gorilla Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package sessions

import (
	"code.google.com/p/gorilla/context"
	"code.google.com/p/gorilla/securecookie"
	"encoding/gob"
	"errors"
	"fmt"
	"net/http"
)

// Default flashes key.
const flashesKey = "_flash"

// SessionConfig --------------------------------------------------------------

// SessionConfig stores configuration for a session.
//
// Fields are a subset of http.Cookie fields.
type SessionConfig struct {
	Path   string
	Domain string
	// MaxAge=0 means no 'Max-Age' attribute specified.
	// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
	// MaxAge>0 means Max-Age attribute present and given in seconds.
	MaxAge   int
	Secure   bool
	HttpOnly bool
}

{'fraction_non_alphanumeric': 0.16028840820854132, 'fraction_numerical': 0.00887409872434831, 'mean_word_length': 2.5864811133200796, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4909182', 'n_tokens_mistral': 555, 'n_tokens_neox': 524, 'n_words': 194}