<commit_before>// Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

package mysql

import (
	"fmt"
	"strings"
)

// Version information.
const (
	MinProtocolVersion byte = 10
	MaxPayloadLen      int  = 1<<24 - 1
	// The version number should be three digits.
	// See https://dev.mysql.com/doc/refman/5.7/en/which-version.html
	TiDBReleaseVersion string = "0.8.0"
)

// ServerVersion is the version information of this tidb-server in MySQL's format.
var ServerVersion = fmt.Sprintf("5.7.1-TiDB-%s", TiDBReleaseVersion)

// Header information.
const (
	OKHeader          byte = 0x00
	ErrHeader         byte = 0xff
	EOFHeader         byte = 0xfe
	LocalInFileHeader byte = 0xfb
)

// Server information.
const (
	ServerStatusInTrans            uint16 = 0x0001
	ServerStatusAutocommit         uint16 = 0x0002<commit_msg>mysql: Upgrade version to 0.9.0 (#4388)<commit_after>// Copyright 2015 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

package mysql

import (
	"fmt"
	"strings"
)

// Version information.
const (
	MinProtocolVersion byte = 10
	MaxPayloadLen      int  = 1<<24 - 1
	// The version number should be three digits.
	// See https://dev.mysql.com/doc/refman/5.7/en/which-version.html
	TiDBReleaseVersion string = "0.9.0"
)

// ServerVersion is the version information of this tidb-server in MySQL's format.
var ServerVersion = fmt.Sprintf("5.7.1-TiDB-%s", TiDBReleaseVersion)

// Header information.
const (
	OKHeader          byte = 0x00
	ErrHeader         byte = 0xff
	EOFHeader         byte = 0xfe
	LocalInFileHeader byte = 0xfb
)

// Server information.
const (
	ServerStatusInTrans            uint16 = 0x0001
	ServerStatusAutocommit         uint16 = 0x0002
{'fraction_non_alphanumeric': 0.09689922480620156, 'fraction_numerical': 0.03527131782945737, 'mean_word_length': 2.9953560371517027, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6909081', 'n_tokens_mistral': 821, 'n_tokens_neox': 757, 'n_words': 280}