<commit_before>package main

import (
	"./sessions"
	"crypto/sha256"
	"database/sql"
	"encoding/json"
	"fmt"
	_ "github.com/go-sql-driver/mysql"
	"github.com/gorilla/mux"
	"github.com/gorilla/securecookie"
	"html/template"
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
	"os"
	"os/exec"
	"runtime"
	"strconv"
	"strings"
)

const (
	maxConnectionCount = 256
	memosPerPage       = 100
	listenAddr         = ":5000"
	sessionName        = "isucon_session"
	tmpDir             = "/tmp/"
	markdownCommand    = "../bin/markdown"
	dbConnPoolSize     = 10
	memcachedServer    = "localhost:11211"
	sessionSecret      = "<KEY>"
)

type Config struct {
	Database struct {
		Dbname   string `json:"dbname"`
		Host     string `json:"host"`
		Port     int    `json:"port"`
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"database"`
}

type User struct {
	Id         int<commit_msg>Change memd port 11211 -> 11212<commit_after>package main

import (
	"./sessions"
	"crypto/sha256"
	"database/sql"
	"encoding/json"
	"fmt"
	_ "github.com/go-sql-driver/mysql"
	"github.com/gorilla/mux"
	"github.com/gorilla/securecookie"
	"html/template"
	"io/ioutil"
	"log"
	"net/http"
	"net/url"
	"os"
	"os/exec"
	"runtime"
	"strconv"
	"strings"
)

const (
	maxConnectionCount = 256
	memosPerPage       = 100
	listenAddr         = ":5000"
	sessionName        = "isucon_session"
	tmpDir             = "/tmp/"
	markdownCommand    = "../bin/markdown"
	dbConnPoolSize     = 10
	memcachedServer    = "localhost:11212"
	sessionSecret      = "<KEY>"
)

type Config struct {
	Database struct {
		Dbname   string `json:"dbname"`
		Host     string `json:"host"`
		Port     int    `json:"port"`
		Username string `json:"username"`
		Password string `json:"password"`
	} `json:"database"`
}

type User struct {
	Id         int
{'fraction_non_alphanumeric': 0.14475138121546963, 'fraction_numerical': 0.027624309392265192, 'mean_word_length': 2.9802197802197803, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 6, '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': '1710816', 'n_tokens_mistral': 727, 'n_tokens_neox': 670, 'n_words': 135}