text stringlengths 11 4.05M |
|---|
package main
import (
"fmt"
)
func calcdistance(c coord, all []coord, maxDistance int) int {
distance := 0
for _, a := range all {
distance += manhattandistance(c, a)
if distance > maxDistance {
return distance
}
}
return distance
}
func main2(all []coord, lx, hx, ly, hy int) {
maxDistance := 10000
count := 0
for y := ly; y <= hy; y++ {
for x := lx; x <= hx; x++ {
if calcdistance(coord{x, y}, all, maxDistance) < maxDistance {
count++
}
}
}
fmt.Println(count)
}
|
package database
import (
"github.com/gorilla/mux"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
"youth2k/youthserver/src/render"
"log"
"net/http"
)
type Control struct {
DB *gorm.DB
Render *render.Render
}
type ControlItem struct {
ID int `gorm:"primary_key"`
Countdown, Downloads, Schedule, Speaker, User int
}
type ControlResource struct {
db *gorm.DB
Ctl *Control
}
func NewControl(db *gorm.DB) *Control {
db.AutoMigrate(&ControlItem{})
c := &ControlItem{
ID: 0,
Countdown: 0,
Downloads: 0,
Schedule: 0,
Speaker: 0,
User: 0,
}
if db.NewRecord(c) {
log.Println("First boot on database, creating control")
db.Create(c)
} else {
log.Println("Already have a control object, won't create a new one")
}
return &Control{
DB: db,
}
}
func NewControlResource(db *gorm.DB, ctl *Control) *ControlResource {
return &ControlResource{
db: db,
Ctl: ctl,
}
}
func (c *Control) IncrementCountdown() error {
ctl, err := c.getControl()
if err != nil {
return err
}
ctl.Countdown++
return c.DB.Save(ctl).Error
}
func (c *Control) IncrementDownloads() error {
ctl, err := c.getControl()
if err != nil {
return err
}
ctl.Downloads++
return c.DB.Save(ctl).Error
}
func (c *Control) IncrementSchdule() error {
ctl, err := c.getControl()
if err != nil {
return err
}
ctl.Schedule++
return c.DB.Save(ctl).Error
}
func (c *Control) IncrementSpeaker() error {
ctl, err := c.getControl()
if err != nil {
return err
}
ctl.Speaker++
return c.DB.Save(ctl).Error
}
func (c *Control) IncrementUser() error {
ctl, err := c.getControl()
if err != nil {
return err
}
ctl.User++
return c.DB.Save(ctl).Error
}
func (c *Control) getControl() (*ControlItem, error) {
ctl := &ControlItem{}
err := c.DB.First(ctl).Error
return ctl, err
}
func (c *ControlResource) Get(w http.ResponseWriter, r *http.Request) {
ctl := &ControlItem{}
err := c.db.First(ctl).Error
if err != nil {
c.Ctl.Render.RespondWithError(w, http.StatusInternalServerError, err.Error())
return
}
c.Ctl.Render.RespondWithJSON(w, http.StatusOK, ctl)
}
func (c *ControlResource) GetRouter(_ mux.MiddlewareFunc) *mux.Router {
r := mux.NewRouter()
r.HandleFunc("/", c.Get).Methods("GET")
return r
}
|
package gateway
import (
"context"
"net/http"
"strconv"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/protobuf/proto"
)
// ReplaceHeaders of a grpc request with that of http's
func ReplaceHeaders() func(ctx context.Context, w http.ResponseWriter, _ proto.Message) error {
return func(ctx context.Context, w http.ResponseWriter, _ proto.Message) error {
md, ok := runtime.ServerMetadataFromContext(ctx)
if !ok {
return nil
}
if vals := md.HeaderMD.Get("x-http-location"); len(vals) > 0 {
delete(md.HeaderMD, "x-http-location")
delete(w.Header(), "Grpc-Metadata-x-http-location")
w.Header().Set("location", vals[0])
}
// set http status code
if vals := md.HeaderMD.Get("x-http-code"); len(vals) > 0 {
code, err := strconv.Atoi(vals[0])
if err != nil {
return err
}
// delete the headers to not expose any grpc-metadata in http response
delete(md.HeaderMD, "x-http-code")
delete(w.Header(), "Grpc-Metadata-x-http-code")
w.WriteHeader(code)
}
return nil
}
}
|
package main
import "fmt"
func main() {
fmt.Println(Sum(100, 2))
}
|
package astar
import (
"math"
"testing"
)
const (
sqrt2 = 1.4142135623730951
)
type gridMap struct {
grid []int
width int
height int
}
func abs(i int) int {
if i < 0 {
i = -i
}
return i
}
func (g *gridMap) Neighbors(node Node, edges []Edge) ([]Edge, error) {
addNode := func(x, y int, cost float64) {
v := g.grid[y*g.width+x]
if v == 0 {
edges = append(edges, Edge{Node(y*g.width + x), cost})
}
}
y := int(node) / g.width
x := int(node) % g.width
if x > 0 {
addNode(x-1, y, 1)
if y > 0 {
addNode(x-1, y-1, sqrt2)
}
if y < (g.height - 1) {
addNode(x-1, y+1, sqrt2)
}
}
if x < (g.width - 1) {
addNode(x+1, y, 1)
if y > 0 {
addNode(x+1, y-1, sqrt2)
}
if y < (g.height - 1) {
addNode(x+1, y+1, sqrt2)
}
}
if y > 0 {
addNode(x, y-1, 1)
}
if y < (g.height - 1) {
addNode(x, y+1, 1)
}
return edges, nil
}
func (g *gridMap) HeuristicCost(start, end Node) (float64, error) {
endY := int(end) / g.width
endX := int(end) % g.width
startY := int(start) / g.width
startX := int(start) % g.width
a := abs(endY - startY)
b := abs(endX - startX)
return math.Sqrt(float64(a*a + b*b)), nil
}
func TestAstar(t *testing.T) {
mp := &gridMap{
grid: []int{
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 1, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 1, 1, 0,
0, 0, 1, 0, 1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 1, 0, 0, 1, 0, 0,
1, 1, 1, 0, 1, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
width: 10,
height: 10,
}
path, err := FindPath(mp, Node(5*mp.width), Node(3*mp.width+9))
if err != nil {
t.Fatal(err)
}
expected := []Node{50, 40, 30, 20, 10, 1, 2, 13, 23, 33, 43, 53, 63, 73, 83, 94, 85, 86, 77, 68, 59, 49, 39}
if len(path) < len(expected) {
t.Fatalf("Expected a path length of %d instead of %d", len(expected), len(path))
}
for i, e := range expected {
if path[i] != e {
t.Fatalf("Expected node at path index %d to be %d instead of %d", i, e, path[i])
}
}
for y := 0; y < mp.height; y++ {
out := make([]byte, mp.width)
for x := 0; x < mp.width; x++ {
o := y*mp.width + x
pth := false
for _, p := range path {
if p == Node(o) {
out[x] = '.'
pth = true
break
}
}
if !pth {
if mp.grid[y*mp.width+x] == 0 {
out[x] = ' '
} else {
out[x] = '#'
}
}
}
t.Logf(string(out))
}
}
func TestImpossible(t *testing.T) {
mp := &gridMap{
grid: []int{
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
1, 1, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 1, 1, 0,
0, 0, 1, 0, 1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 1, 0, 0, 1, 0, 0,
1, 1, 1, 0, 1, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
width: 10,
height: 10,
}
_, err := FindPath(mp, Node(5*mp.width), Node(3*mp.width+9))
if err != ErrImpossible {
t.Fatal("Expected ErrImpossible when no path is possible")
}
}
func BenchmarkFindPath(b *testing.B) {
mp := &gridMap{
grid: []int{
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 1, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 1, 0, 0, 1, 1, 0,
0, 0, 1, 0, 1, 0, 0, 0, 1, 0,
0, 0, 1, 0, 1, 0, 0, 1, 0, 0,
1, 1, 1, 0, 1, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
},
width: 10,
height: 10,
}
for i := 0; i < b.N; i++ {
FindPath(mp, Node(5*mp.width), Node(3*mp.width+9))
}
}
|
/*
* @lc app=leetcode.cn id=94 lang=golang
*
* [94] 二叉树的中序遍历
*/
// @lc code=start
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
package main
import "fmt"
type TreeNode struct {
Val int
Left *TreeNode
Right *TreeNode
}
func inorderTraversal(root *TreeNode) []int {
// a := []int{}
// if root.Left != nil {
// b := inorderTraversal(root.Left)
// a = append(a, b...)
// }
// a = append(a, root.Val)
// if root.Right != nil {
// c := inorderTraversal(root.Right)
// a = append(a, c...)
// }
// return a
stack := make([]*TreeNode, 0)
res := []int{}
cur := root
for cur != nil || len(stack) > 0 {
// fmt.Printf("first for, %d \n", cur.Val)
// left := cur.Left
for cur != nil {
// fmt.Printf("second for, %d \n", cur.Val)
stack = append(stack, cur)
cur = cur.Left
}
// fmt.Println("to get tmp")
tmp := stack[len(stack)-1]
// fmt.Println("to get tmp")
stack = stack[:len(stack)-1]
res = append(res, tmp.Val)
cur = tmp.Right
// fmt.Printf("res is %v\n", res)
}
return res
}
// @lc code=end
func main(){
l11 := TreeNode{Val: 6}
l21 := TreeNode{Val: 2}
l22 := TreeNode{Val: 8}
l31 := TreeNode{Val: 0}
l32 := TreeNode{Val: 4}
l33 := TreeNode{Val: 7}
l34 := TreeNode{Val: 9}
l41 := TreeNode{Val: 3}
l42 := TreeNode{Val: 5}
l11.Left = &l21
l11.Right = &l22
l21.Left = &l31
l21.Right = &l32
l22.Left = &l33
l22.Right = &l34
l32.Left = &l41
l32.Right = &l42
a := inorderTraversal(&l11)
fmt.Printf("%v\n", a)
}
|
package ssh
import (
"fmt"
"os"
"golang.org/x/crypto/ssh"
)
func makeSignersFromAgent() []ssh.Signer {
fmt.Fprintf(os.Stderr, "Unsupported connect to ssh-agent on this platform")
os.Exit(1)
return make([]ssh.Signer, 0)
}
|
package fakes
import (
"github.com/cloudfoundry-incubator/notifications/cf"
"github.com/cloudfoundry-incubator/notifications/postal"
)
type SpaceAndOrgLoader struct {
LoadError error
Space cf.CloudControllerSpace
Organization cf.CloudControllerOrganization
}
func NewSpaceAndOrgLoader() *SpaceAndOrgLoader {
return &SpaceAndOrgLoader{}
}
func (fake *SpaceAndOrgLoader) Load(postal.TypedGUID, string) (cf.CloudControllerSpace, cf.CloudControllerOrganization, error) {
return fake.Space, fake.Organization, fake.LoadError
}
|
package crypto
import (
"crypto/rsa"
"crypto/rand"
"crypto/x509"
"encoding/pem"
"os"
)
func RsaKeyGen(bits int) error {
privateKey, err := rsa.GenerateKey(rand.Reader, bits)
if err != nil {
return err
}
privateKeyBytes := x509.MarshalPKCS1PrivateKey(privateKey)
block := pem.Block{
Type: "RSA PRIVATE KEY",
Bytes: privateKeyBytes,
}
priFile, err := os.Create("privateKey.pem")
if err != nil {
return err
}
defer priFile.Close()
err = pem.Encode(priFile, &block)
if err != nil {
return err
}
publicKey := privateKey.PublicKey
publicKeyBytes, err := x509.MarshalPKIXPublicKey(&publicKey)
if err != nil {
return nil
}
block = pem.Block{
Type: "RSA PUBLIC KEY",
Bytes: publicKeyBytes,
}
pubFile, err := os.Create("publicKey.pem")
if err != nil {
return err
}
defer pubFile.Close()
err = pem.Encode(pubFile, &block)
if err != nil {
return err
}
return nil
}
|
package worker
import (
"github.com/labstack/echo/v4"
"net/http"
)
type (
Status struct {
Healthy bool `json:"healthy"`
Master Master `json:"master"`
Routes []*echo.Route `json:"routes"`
}
)
func (w Worker) Status() *Status {
return &Status{
Healthy: true,
Master: *w.Master,
Routes: w.Server.Routes(),
}
}
func (w Worker) statusHandler(c echo.Context) error {
return c.JSON(http.StatusOK, w.Status())
}
|
// DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//632. Smallest Range
//You have k lists of sorted integers in ascending order. Find the smallest range that includes at least one number from each of the k lists.
//We define the range [a,b] is smaller than range [c,d] if b-a < d-c or a < c if b-a == d-c.
//Example 1:
//Input:[[4,10,15,24,26], [0,9,12,20], [5,18,22,30]]
//Output: [20,24]
//Explanation:
//List 1: [4, 10, 15, 24,26], 24 is in range [20,24].
//List 2: [0, 9, 12, 20], 20 is in range [20,24].
//List 3: [5, 18, 22, 30], 22 is in range [20,24].
//Note:
//The given list may contain duplicates, so ascending order means >= here.
//1 <= k <= 3500
//-105 <= value of elements <= 105.
//For Java users, please note that the input type has been changed to List<List<Integer>>. And after you reset the code template, you'll see this point.
//func smallestRange(nums [][]int) []int {
//}
// Time Is Money |
package goldie
var Templates map[string]string = map[string]string{}
|
package Template
//协议内容
func Agreement() string {
return `
本软件使用GPLv3开源许可协议
使用本软件证明您已经知晓GPLv3开源许可协议内容。
简要摘如下
1. 使用本软件,以及其他衍生品不允许闭源。必须开放源代码。
2. 新增代码必须也遵循GPLv3许可协议。
本开源项目仅作为服务器部署使用,请遵守当地法律法规。
任何使用问题可以通过项目地址进行提交bug,或者项目社区提交问题。
本项目不对系统安全和稳定性做任何承诺,也不允许因为此原因承担任何责任。
开源项目引用:
1. php
2. mysql
3. ubuntu
4. debian
5. openrasp
6. nginx
7. centos
8. docker
9. golang
10. memcached
11. redis
感谢以上项目开发者,让我们可以站在巨人的肩膀上走的更远。
`
}
|
package tree
func findTarget(root *TreeNode, k int) bool {
h := map[int]*TreeNode{}
stack := []*TreeNode{root}
for len(stack) != 0 {
p := stack[len(stack)-1]
stack = stack[:len(stack)-1]
if v, ok := h[k-p.Val]; ok && p != v {
return true
}
h[p.Val] = p
if p.Right != nil {
stack = append(stack, p.Right)
}
if p.Left != nil {
stack = append(stack, p.Left)
}
}
return false
}
|
package sdl
// #include <SDL2/SDL.h>
import "C"
import "unsafe"
type PixelFormat struct {
Format uint32
Palette *Palette
BitsPerPixels uint8
BytesPerPixel uint8
padding [2]uint8
Rmask uint32
Gmask uint32
Bmask uint32
Amask uint32
Rloss uint8
Gloss uint8
Bloss uint8
Aloss uint8
Rshift uint8
Gshift uint8
Bshift uint8
Ashift uint8
RefCount int
Next *PixelFormat
}
type Palette struct {
Ncolors int
Colors *Color
Version uint32
RefCount int
}
type Color struct {
R uint8
G uint8
B uint8
A uint8
}
func (c Color) Uint32() uint32 {
var v uint32
v |= uint32(c.R) << 16
v |= uint32(c.G) << 8
v |= uint32(c.B)
return v
}
const (
PIXELTYPE_UNKNOWN = C.SDL_PIXELTYPE_UNKNOWN
PIXELTYPE_INDEX1 = C.SDL_PIXELTYPE_INDEX1
PIXELTYPE_INDEX4 = C.SDL_PIXELTYPE_INDEX4
PIXELTYPE_INDEX8 = C.SDL_PIXELTYPE_INDEX8
PIXELTYPE_PACKED8 = C.SDL_PIXELTYPE_PACKED8
PIXELTYPE_PACKED16 = C.SDL_PIXELTYPE_PACKED16
PIXELTYPE_PACKED32 = C.SDL_PIXELTYPE_PACKED32
PIXELTYPE_ARRAYU8 = C.SDL_PIXELTYPE_ARRAYU8
PIXELTYPE_ARRAYU16 = C.SDL_PIXELTYPE_ARRAYU16
PIXELTYPE_ARRAYU32 = C.SDL_PIXELTYPE_ARRAYU32
PIXELTYPE_ARRAYF16 = C.SDL_PIXELTYPE_ARRAYF16
PIXELTYPE_ARRAYF32 = C.SDL_PIXELTYPE_ARRAYF32
)
/** Bitmap pixel order high bit -> low bit. */
const (
BITMAPORDER_NONE = C.SDL_BITMAPORDER_NONE
BITMAPORDER_4321 = C.SDL_BITMAPORDER_4321
BITMAPORDER_1234 = C.SDL_BITMAPORDER_1234
)
/** Packed component order high bit -> low bit. */
const (
PACKEDORDER_NONE = C.SDL_PACKEDORDER_NONE
PACKEDORDER_XRGB = C.SDL_PACKEDORDER_XRGB
PACKEDORDER_RGBX = C.SDL_PACKEDORDER_RGBX
PACKEDORDER_ARGB = C.SDL_PACKEDORDER_ARGB
PACKEDORDER_RGBA = C.SDL_PACKEDORDER_RGBA
PACKEDORDER_XBGR = C.SDL_PACKEDORDER_XBGR
PACKEDORDER_BGRX = C.SDL_PACKEDORDER_BGRX
PACKEDORDER_ABGR = C.SDL_PACKEDORDER_ABGR
PACKEDORDER_BGRA = C.SDL_PACKEDORDER_BGRA
)
/** Array component order low byte -> high byte. */
const (
ARRAYORDER_NONE = C.SDL_ARRAYORDER_NONE
ARRAYORDER_RGB = C.SDL_ARRAYORDER_RGB
ARRAYORDER_RGBA = C.SDL_ARRAYORDER_RGBA
ARRAYORDER_ARGB = C.SDL_ARRAYORDER_ARGB
ARRAYORDER_BGR = C.SDL_ARRAYORDER_BGR
ARRAYORDER_BGRA = C.SDL_ARRAYORDER_BGRA
ARRAYORDER_ABGR = C.SDL_ARRAYORDER_ABGR
)
/** Packed component layout. */
const (
PACKEDLAYOUT_NONE = C.SDL_PACKEDLAYOUT_NONE
PACKEDLAYOUT_332 = C.SDL_PACKEDLAYOUT_332
PACKEDLAYOUT_4444 = C.SDL_PACKEDLAYOUT_4444
PACKEDLAYOUT_1555 = C.SDL_PACKEDLAYOUT_1555
PACKEDLAYOUT_5551 = C.SDL_PACKEDLAYOUT_5551
PACKEDLAYOUT_565 = C.SDL_PACKEDLAYOUT_565
PACKEDLAYOUT_8888 = C.SDL_PACKEDLAYOUT_8888
PACKEDLAYOUT_2101010 = C.SDL_PACKEDLAYOUT_2101010
PACKEDLAYOUT_1010102 = C.SDL_PACKEDLAYOUT_1010102
)
const (
PIXELFORMAT_UNKNOWN = C.SDL_PIXELFORMAT_UNKNOWN
PIXELFORMAT_INDEX1LSB = C.SDL_PIXELFORMAT_INDEX1LSB
PIXELFORMAT_INDEX1MSB = C.SDL_PIXELFORMAT_INDEX1MSB
PIXELFORMAT_INDEX4LSB = C.SDL_PIXELFORMAT_INDEX4LSB
PIXELFORMAT_INDEX4MSB = C.SDL_PIXELFORMAT_INDEX4MSB
PIXELFORMAT_INDEX8 = C.SDL_PIXELFORMAT_INDEX8
PIXELFORMAT_RGB332 = C.SDL_PIXELFORMAT_RGB332
PIXELFORMAT_RGB444 = C.SDL_PIXELFORMAT_RGB444
PIXELFORMAT_RGB555 = C.SDL_PIXELFORMAT_RGB555
PIXELFORMAT_BGR555 = C.SDL_PIXELFORMAT_BGR555
PIXELFORMAT_ARGB4444 = C.SDL_PIXELFORMAT_ARGB4444
PIXELFORMAT_RGBA4444 = C.SDL_PIXELFORMAT_RGBA4444
PIXELFORMAT_ABGR4444 = C.SDL_PIXELFORMAT_ABGR4444
PIXELFORMAT_BGRA4444 = C.SDL_PIXELFORMAT_BGRA4444
PIXELFORMAT_ARGB1555 = C.SDL_PIXELFORMAT_ARGB1555
PIXELFORMAT_RGBA5551 = C.SDL_PIXELFORMAT_RGBA5551
PIXELFORMAT_ABGR1555 = C.SDL_PIXELFORMAT_ABGR1555
PIXELFORMAT_BGRA5551 = C.SDL_PIXELFORMAT_BGRA5551
PIXELFORMAT_RGB565 = C.SDL_PIXELFORMAT_RGB565
PIXELFORMAT_BGR565 = C.SDL_PIXELFORMAT_BGR565
PIXELFORMAT_RGB24 = C.SDL_PIXELFORMAT_RGB24
PIXELFORMAT_BGR24 = C.SDL_PIXELFORMAT_BGR24
PIXELFORMAT_RGB888 = C.SDL_PIXELFORMAT_RGB888
PIXELFORMAT_RGBX8888 = C.SDL_PIXELFORMAT_RGBX8888
PIXELFORMAT_BGR888 = C.SDL_PIXELFORMAT_BGR888
PIXELFORMAT_BGRX8888 = C.SDL_PIXELFORMAT_BGRX8888
PIXELFORMAT_ARGB8888 = C.SDL_PIXELFORMAT_ARGB8888
PIXELFORMAT_RGBA8888 = C.SDL_PIXELFORMAT_RGBA8888
PIXELFORMAT_ABGR8888 = C.SDL_PIXELFORMAT_ABGR8888
PIXELFORMAT_BGRA8888 = C.SDL_PIXELFORMAT_BGRA8888
PIXELFORMAT_ARGB2101010 = C.SDL_PIXELFORMAT_ARGB2101010
PIXELFORMAT_YV12 = C.SDL_PIXELFORMAT_YV12
PIXELFORMAT_IYUV = C.SDL_PIXELFORMAT_IYUV
PIXELFORMAT_YUY2 = C.SDL_PIXELFORMAT_YUY2
PIXELFORMAT_UYVY = C.SDL_PIXELFORMAT_UYVY
PIXELFORMAT_YVYU = C.SDL_PIXELFORMAT_YVYU
)
func (fmt *PixelFormat) cptr() *C.SDL_PixelFormat {
return (*C.SDL_PixelFormat)(unsafe.Pointer(fmt))
}
func (p *Palette) cptr() *C.SDL_Palette {
return (*C.SDL_Palette)(unsafe.Pointer(p))
}
|
package adapters_test
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/vmware-tanzu-labs/git-story/adapters"
)
var _ = Describe("Git", func() {
path := os.Getenv("PATH")
BeforeEach(func() {
os.Setenv("PATH", fmt.Sprintf("./fixtures:%s", path))
})
AfterEach(func() {
os.Setenv("PATH", path)
})
It("should know the current branch", func() {
branchName := adapters.NewRepository().GetCurrentBranchName()
Expect(branchName).To(Equal("current-branch-123456789"))
})
It("should get all branch names", func() {
branchNames := adapters.NewRepository().GetAllBranchNames()
Expect(branchNames).To(Equal([]string{"main", "some-branch-#123"}))
})
It("should delete a branch", func() {
error := adapters.NewRepository().DeleteBranch("some-accepted-branch-123456789")
Expect(error).To(BeNil())
})
It("should fail to delete when there is a nonexistent branch", func() {
error := adapters.NewRepository().DeleteBranch("some-nonexistent-branch")
Expect(error).NotTo(BeNil())
Expect(error.Error()).To(Equal("error: branch 'some-nonexistent-branch' not found."))
})
})
|
/*
* chain: chain all problems
*
* input:
* nelts: the number of elements
* randmat_seed: random number generator seed
* thresh_percent: percentage of cells to retain
* winnow_nelts: the number of points to select
*
* output:
* result: a real vector, whose values are the result of the final product
*
*/
package main
import (
"all"
"flag"
"fmt"
)
func read_integer() int {
var value int
for true {
var read, _ = fmt.Scanf("%d", &value)
if read == 1 {
break
}
}
return value
}
func main() {
flag.Parse()
nelts := read_integer()
randmat_seed := read_integer()
thresh_percent := read_integer()
winnow_nelts := read_integer()
all.Randmat(nelts, nelts, randmat_seed)
all.Thresh(nelts, nelts, thresh_percent)
all.Winnow(nelts, nelts, winnow_nelts)
all.Outer(winnow_nelts)
all.Product(winnow_nelts)
if !*all.Is_bench {
fmt.Printf("%d\n", winnow_nelts)
for i := 0; i < winnow_nelts; i++ {
fmt.Printf("%g ", all.Product_result[i])
}
fmt.Printf("\n")
}
}
|
// Copyright 2019 The Dice Authors. All rights reserved.
//
// 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
//
// https://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,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package store
import (
"encoding/json"
"errors"
"github.com/boltdb/bolt"
"github.com/dominikbraun/dice/entity"
)
type Bucket []byte
var (
diceBucket Bucket = []byte("dice")
nodeBucket Bucket = []byte("nodes")
serviceBucket Bucket = []byte("services")
instanceBucket Bucket = []byte("instances")
ErrBucketNotFound error = errors.New("bucket could not be found")
ErrMarshallingFailed error = errors.New("marshalling of entity failed")
)
type KVStore struct {
internal *bolt.DB
}
func NewKVStore(path string) (*KVStore, error) {
var kv KVStore
var err error
if kv.internal, err = bolt.Open(path, 0600, nil); err != nil {
return nil, err
}
if err = (&kv).setup(); err != nil {
return nil, err
}
return &kv, nil
}
func (kv *KVStore) CreateNode(node *entity.Node) error {
value, err := json.Marshal(node)
if err != nil {
return ErrMarshallingFailed
}
return kv.set(nodeBucket, node.ID, value)
}
func (kv *KVStore) FindNodes(filter NodeFilter) ([]*entity.Node, error) {
values, err := kv.getAll(nodeBucket)
if len(values) == 0 || err != nil {
return nil, err
}
nodes := make([]*entity.Node, 0)
for _, v := range values {
var node entity.Node
if err = json.Unmarshal(v, &node); err != nil {
return nil, ErrMarshallingFailed
}
if filter(&node) {
nodes = append(nodes, &node)
}
}
return nodes, nil
}
func (kv *KVStore) FindNode(id string) (*entity.Node, error) {
value, err := kv.get(nodeBucket, id)
if value == nil || err != nil {
return nil, err
}
var node entity.Node
if err = json.Unmarshal(value, &node); err != nil {
return nil, ErrMarshallingFailed
}
return &node, nil
}
func (kv *KVStore) UpdateNode(id string, source *entity.Node) error {
return kv.CreateNode(source)
}
func (kv *KVStore) DeleteNode(id string) error {
return kv.delete(nodeBucket, id)
}
func (kv *KVStore) CreateService(service *entity.Service) error {
value, err := json.Marshal(service)
if err != nil {
return ErrMarshallingFailed
}
return kv.set(serviceBucket, service.ID, value)
}
func (kv *KVStore) FindServices(filter ServiceFilter) ([]*entity.Service, error) {
values, err := kv.getAll(serviceBucket)
if len(values) == 0 || err != nil {
return nil, err
}
services := make([]*entity.Service, 0)
for _, v := range values {
var service entity.Service
if err = json.Unmarshal(v, &service); err != nil {
return nil, ErrMarshallingFailed
}
if filter(&service) {
services = append(services, &service)
}
}
return services, nil
}
func (kv *KVStore) FindService(id string) (*entity.Service, error) {
value, err := kv.get(serviceBucket, id)
if value == nil || err != nil {
return nil, err
}
var service entity.Service
if err = json.Unmarshal(value, &service); err != nil {
return nil, ErrMarshallingFailed
}
return &service, nil
}
func (kv *KVStore) UpdateService(id string, source *entity.Service) error {
return kv.CreateService(source)
}
func (kv *KVStore) DeleteService(id string) error {
return kv.delete(serviceBucket, id)
}
func (kv *KVStore) CreateInstance(instance *entity.Instance) error {
value, err := json.Marshal(instance)
if err != nil {
return ErrMarshallingFailed
}
return kv.set(instanceBucket, instance.ID, value)
}
func (kv *KVStore) FindInstances(filter InstanceFilter) ([]*entity.Instance, error) {
values, err := kv.getAll(instanceBucket)
if len(values) == 0 || err != nil {
return nil, err
}
instances := make([]*entity.Instance, 0)
for _, v := range values {
var instance entity.Instance
if err = json.Unmarshal(v, &instance); err != nil {
return nil, ErrMarshallingFailed
}
if filter(&instance) {
instances = append(instances, &instance)
}
}
return instances, nil
}
func (kv *KVStore) FindInstance(id string) (*entity.Instance, error) {
value, err := kv.get(instanceBucket, id)
if value == nil || err != nil {
return nil, err
}
var instance entity.Instance
if err = json.Unmarshal(value, &instance); err != nil {
return nil, ErrMarshallingFailed
}
return &instance, nil
}
func (kv *KVStore) UpdateInstance(id string, source *entity.Instance) error {
return kv.CreateInstance(source)
}
func (kv *KVStore) DeleteInstance(id string) error {
return kv.delete(instanceBucket, id)
}
func (kv *KVStore) Close() error {
return kv.internal.Close()
}
func (kv *KVStore) setup() error {
fn := func(tx *bolt.Tx) error {
root, err := tx.CreateBucketIfNotExists(diceBucket)
if err != nil {
return err
}
if _, err = root.CreateBucketIfNotExists(nodeBucket); err != nil {
return err
}
if _, err = root.CreateBucketIfNotExists(serviceBucket); err != nil {
return err
}
if _, err := root.CreateBucketIfNotExists(instanceBucket); err != nil {
return err
}
return nil
}
return kv.internal.Update(fn)
}
func (kv *KVStore) set(bucket Bucket, key string, value []byte) error {
fn := func(tx *bolt.Tx) error {
b := tx.Bucket(diceBucket).Bucket(bucket)
if b == nil {
return ErrBucketNotFound
}
return b.Put([]byte(key), value)
}
return kv.internal.Update(fn)
}
func (kv *KVStore) get(bucket Bucket, key string) ([]byte, error) {
var result []byte
fn := func(tx *bolt.Tx) error {
b := tx.Bucket(diceBucket).Bucket(bucket)
if b == nil {
return ErrBucketNotFound
}
if value := b.Get([]byte(key)); value != nil {
result = value
return nil
}
return nil
}
if err := kv.internal.View(fn); err != nil {
return nil, err
}
return result, nil
}
func (kv *KVStore) getAll(bucket Bucket) ([][]byte, error) {
var result [][]byte
fn := func(tx *bolt.Tx) error {
b := tx.Bucket(diceBucket).Bucket(bucket)
if b == nil {
return ErrBucketNotFound
}
_ = b.ForEach(func(k, v []byte) error {
result = append(result, v)
return nil
})
return nil
}
if err := kv.internal.View(fn); err != nil {
return nil, err
}
return result, nil
}
func (kv *KVStore) delete(bucket Bucket, key string) error {
fn := func(tx *bolt.Tx) error {
b := tx.Bucket(diceBucket).Bucket(bucket)
if b == nil {
return ErrBucketNotFound
}
return b.Delete([]byte(key))
}
return kv.internal.Update(fn)
}
|
// Copyright 2019-2023 The sakuracloud_exporter Authors
//
// 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,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package collector
import (
"context"
"errors"
"testing"
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/sacloud/iaas-api-go"
"github.com/sacloud/iaas-api-go/types"
"github.com/sacloud/sakuracloud_exporter/platform"
"github.com/stretchr/testify/require"
)
type dummyAutoBackupClient struct {
autoBackup []*iaas.AutoBackup
findErr error
archives []*iaas.Archive
listBackupsErr error
}
func (d *dummyAutoBackupClient) Find(ctx context.Context) ([]*iaas.AutoBackup, error) {
return d.autoBackup, d.findErr
}
func (d *dummyAutoBackupClient) ListBackups(ctx context.Context, zone string, autoBackupID types.ID) ([]*iaas.Archive, error) {
return d.archives, d.listBackupsErr
}
func TestAutoBackupCollector_Describe(t *testing.T) {
initLoggerAndErrors()
c := NewAutoBackupCollector(context.Background(), testLogger, testErrors, &dummyAutoBackupClient{})
descs := collectDescs(c)
require.Len(t, descs, len([]*prometheus.Desc{
c.Info,
c.BackupCount,
c.LastBackupTime,
c.BackupInfo,
}))
}
func TestAutoBackupCollector_Collect(t *testing.T) {
initLoggerAndErrors()
c := NewAutoBackupCollector(context.Background(), testLogger, testErrors, nil)
cases := []struct {
name string
in platform.AutoBackupClient
wantLogs []string
wantErrCounter float64
wantMetrics []*collectedMetric
}{
{
name: "collector returns error",
in: &dummyAutoBackupClient{
findErr: errors.New("dummy"),
},
wantLogs: []string{`level=WARN msg="can't list autoBackups" err=dummy`},
wantErrCounter: 1,
wantMetrics: nil,
},
{
name: "empty result",
in: &dummyAutoBackupClient{},
wantMetrics: nil,
},
{
name: "a auto-backup: list archives is failed ",
in: &dummyAutoBackupClient{
autoBackup: []*iaas.AutoBackup{
{
ID: 101,
Name: "AutoBackup",
DiskID: 201,
MaximumNumberOfArchives: 3,
BackupSpanWeekdays: []types.EDayOfTheWeek{
types.DaysOfTheWeek.Sunday,
types.DaysOfTheWeek.Monday,
types.DaysOfTheWeek.Tuesday,
},
Tags: types.Tags{"tag1", "tag2"},
Description: "desc",
},
},
listBackupsErr: errors.New("dummy"),
},
wantMetrics: []*collectedMetric{
{
desc: c.Info,
metric: createGaugeMetric(1, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
"max_backup_num": "3",
"weekdays": ",sun,mon,tue,",
"tags": ",tag1,tag2,",
"description": "desc",
}),
},
},
wantLogs: []string{`level=WARN msg="can't list backed up archives" err=dummy`},
wantErrCounter: 1,
},
{
name: "a auto-backup without archives",
in: &dummyAutoBackupClient{
autoBackup: []*iaas.AutoBackup{
{
ID: 101,
Name: "AutoBackup",
DiskID: 201,
MaximumNumberOfArchives: 3,
BackupSpanWeekdays: []types.EDayOfTheWeek{
types.DaysOfTheWeek.Sunday,
types.DaysOfTheWeek.Monday,
types.DaysOfTheWeek.Tuesday,
},
Tags: types.Tags{"tag1", "tag2"},
Description: "desc",
},
},
},
wantMetrics: []*collectedMetric{
{
desc: c.Info,
metric: createGaugeMetric(1, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
"max_backup_num": "3",
"weekdays": ",sun,mon,tue,",
"tags": ",tag1,tag2,",
"description": "desc",
}),
},
{
desc: c.BackupCount,
metric: createGaugeMetric(0, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
}),
},
{
desc: c.LastBackupTime,
metric: createGaugeMetric(0, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
}),
},
},
},
{
name: "a auto-backup with archives",
in: &dummyAutoBackupClient{
autoBackup: []*iaas.AutoBackup{
{
ID: 101,
Name: "AutoBackup",
DiskID: 201,
MaximumNumberOfArchives: 3,
BackupSpanWeekdays: []types.EDayOfTheWeek{
types.DaysOfTheWeek.Sunday,
types.DaysOfTheWeek.Monday,
types.DaysOfTheWeek.Tuesday,
},
Tags: types.Tags{"tag1", "tag2"},
Description: "desc",
},
},
archives: []*iaas.Archive{
{
ID: 301,
Name: "Archive1",
Tags: types.Tags{"tag1-1", "tag1-2"},
Description: "desc1",
CreatedAt: time.Unix(1, 0),
},
{
ID: 302,
Name: "Archive2",
Tags: types.Tags{"tag2-1", "tag2-2"},
Description: "desc2",
CreatedAt: time.Unix(2, 0),
},
},
},
wantMetrics: []*collectedMetric{
{
desc: c.Info,
metric: createGaugeMetric(1, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
"max_backup_num": "3",
"weekdays": ",sun,mon,tue,",
"tags": ",tag1,tag2,",
"description": "desc",
}),
},
{
// BackupCount
desc: c.BackupCount,
metric: createGaugeMetric(2, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
}),
},
{
// LastBackupTime: latest backup is created at time.Unix(2,0), so value is 2000(milli sec)
desc: c.LastBackupTime,
metric: createGaugeMetric(2000, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
}),
},
{
// backup1
desc: c.BackupInfo,
metric: createGaugeMetric(1, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
"archive_id": "301",
"archive_name": "Archive1",
"archive_description": "desc1",
"archive_tags": ",tag1-1,tag1-2,",
}),
},
{
// backup2
desc: c.BackupInfo,
metric: createGaugeMetric(1, map[string]string{
"id": "101",
"name": "AutoBackup",
"disk_id": "201",
"archive_id": "302",
"archive_name": "Archive2",
"archive_description": "desc2",
"archive_tags": ",tag2-1,tag2-2,",
}),
},
},
},
}
for _, tc := range cases {
initLoggerAndErrors()
c.logger = testLogger
c.errors = testErrors
c.client = tc.in
collected, err := collectMetrics(c, "auto_backup")
require.NoError(t, err)
require.Equal(t, tc.wantLogs, collected.logged)
require.Equal(t, tc.wantErrCounter, *collected.errors.Counter.Value)
requireMetricsEqual(t, tc.wantMetrics, collected.collected)
}
}
|
package models_test
import (
"gopher-translator/pkg/mock"
"testing"
)
func TestTranslationHistoryList(t *testing.T) {
englishWord := "test"
mockInstance := mock.CreateNewMock()
gopherWord := mockInstance.TranslateEnglishWordToGopher(englishWord)
historyList := mockInstance.CreateNewTranslationHistoryStructInstance(englishWord,gopherWord)
for _, val := range historyList.History {
for _, mapVal := range val {
if mapVal != gopherWord {
t.Errorf("Expected %v, got %v", gopherWord, mapVal)
}
}
}
} |
package one
import (
"testing"
)
func TestMaxCalories(t *testing.T) {
cases := []struct {
name string
actual string
expected int
}{
{
name: "example",
actual: input,
expected: 24000,
},
{
name: "actual input",
actual: input2,
expected: 67016,
},
}
for _, c := range cases {
t.Run(c.name, func(t *testing.T) {
m := Splitter(c.actual)
_, got := MaxCalories(m)
if c.expected != got {
t.Errorf("expected %v, got %v", c.expected, got)
}
})
}
}
func TestTopThree(t *testing.T) {
cases := []struct {
name string
actual string
expected int
}{
{
name: "example",
actual: "100 200 700",
expected: 1000,
},
{
name: "input test",
actual: input,
expected: 45000,
},
{
name: "input2 test",
actual: input2,
expected: 200116,
},
}
for _, c := range cases {
t.Run(c.name, func(t *testing.T) {
got := TopThree(c.actual)
if c.expected != got {
t.Errorf("expected %v, got %v", c.expected, got)
}
})
}
}
|
package vote
import (
"github.com/consensys/gnark-crypto/ecc"
twistededwards_bn254 "github.com/consensys/gnark-crypto/ecc/bn254/twistededwards"
"github.com/consensys/gnark-crypto/signature"
"github.com/consensys/gnark/backend"
"github.com/consensys/gnark/backend/groth16"
"github.com/consensys/gnark/frontend"
"github.com/consensys/gnark/std/accumulator/merkle"
"github.com/consensys/gnark/std/algebra/twistededwards"
"github.com/consensys/gnark/std/hash/mimc"
"github.com/consensys/gnark/std/signature/eddsa"
)
var (
R1CS frontend.CompiledConstraintSystem
ProvingKey groth16.ProvingKey
VerifyingKey groth16.VerifyingKey
)
type VoteCircuit struct {
CitizensRootHash frontend.Variable `gnark:",public"`
Path, Helper []frontend.Variable
E128 frontend.Variable
PrvKeyS1 frontend.Variable
PrvKeyS2 frontend.Variable
DIDPubKey eddsa.PublicKey
VotePaperID frontend.Variable `gnark:",public"`
Choice frontend.Variable `gnark:",public"`
ChoiceSig eddsa.Signature
}
func (cc *VoteCircuit) Define(curveID ecc.ID, cs *frontend.ConstraintSystem) error {
hFunc, _ := mimc.NewMiMC("seed", curveID)
//
// 0. a prover should be a citizen
h0 := hFunc.Hash(cs, cc.DIDPubKey.A.X, cc.DIDPubKey.A.Y)
//cs.Println("h0 ", h0)
//cs.Println("Path[0]", cc.Path[0])
cs.AssertIsEqual(cc.Path[0], h0)
merkle.VerifyProof(cs, hFunc, cc.CitizensRootHash, cc.Path[:], cc.Helper[:])
//
// 1. DIDPubKey should be driven from PrvKeyScalar : check that a prover owns a private key of a DIDPubKey
params, err := twistededwards.NewEdCurve(curveID)
if err != nil {
return err
}
cc.DIDPubKey.Curve = params
//
// compute a public key from a privatek key's scalar.
// when private_key_scalar = s1 * 2**128 + s2,
// c1 = s1 * base
// c2 = s2 * base
// public key = c1 * 2**128 + c2
// compute c1 = s1 * base
c1 := twistededwards.Point{}
c1.ScalarMulFixedBase(cs, cc.DIDPubKey.Curve.BaseX, cc.DIDPubKey.Curve.BaseY, cc.PrvKeyS1, cc.DIDPubKey.Curve)
// compute c128 = c1 * 2**128
c128 := twistededwards.Point{}
c128.ScalarMulNonFixedBase(cs, &c1, cc.E128, cc.DIDPubKey.Curve)
// compute c2 = s2 * base
c2 := twistededwards.Point{}
c2.ScalarMulFixedBase(cs, cc.DIDPubKey.Curve.BaseX, cc.DIDPubKey.Curve.BaseY, cc.PrvKeyS2, cc.DIDPubKey.Curve)
// compute pubkey = c128 + c2
computedPub := twistededwards.Point{}
computedPub.AddGeneric(cs, &c128, &c2, cc.DIDPubKey.Curve)
computedPub.MustBeOnCurve(cs, cc.DIDPubKey.Curve)
//cs.Println("DIDPubKey.A.X ", cc.DIDPubKey.A.X)
//cs.Println(" computed.X ", computedPub.X)
//cs.Println("DIDPubKey.A.Y ", cc.DIDPubKey.A.Y)
//cs.Println(" computed.Y ", computedPub.Y)
cs.AssertIsEqual(cc.DIDPubKey.A.X, computedPub.X)
cs.AssertIsEqual(cc.DIDPubKey.A.Y, computedPub.Y)
//
// 2. check VotePaperID == Hash(PrvKeyScalar, DIDPubKey.A.X, DIDPubKey.A.Y)
h1 := hFunc.Hash(cs, cc.PrvKeyS1, cc.PrvKeyS2, cc.DIDPubKey.A.X, cc.DIDPubKey.A.Y)
//cs.Println("h1 ", h1)
//cs.Println("VotePaperID", cc.VotePaperID)
cs.AssertIsEqual(cc.VotePaperID, h1)
err = eddsa.Verify(cs, cc.ChoiceSig, cc.Choice, cc.DIDPubKey)
if err != nil {
return err
}
return nil
}
func (cc *VoteCircuit) AssignPubKey(pubKey signature.PublicKey) {
var p twistededwards_bn254.PointAffine
p.SetBytes(pubKey.Bytes()[:32])
x := p.X.Bytes()
y := p.Y.Bytes()
cc.DIDPubKey.A.X.Assign(x[:])
cc.DIDPubKey.A.Y.Assign(y[:])
}
func (cc *VoteCircuit) AssignSig(sigBytes []byte) {
var p twistededwards_bn254.PointAffine
p.SetBytes(sigBytes[:32])
x := p.X.Bytes()
y := p.Y.Bytes()
cc.ChoiceSig.R.X.Assign(x[:])
cc.ChoiceSig.R.Y.Assign(y[:])
// The S part of the signature is a 32 bytes scalar stored in signature[32:64].
// As decribed earlier, we split is in S1, S2 such that S = 2^128*S1+S2 to prevent
// overflowing the underlying representation in the cc.
cc.ChoiceSig.S1.Assign(sigBytes[32:48])
cc.ChoiceSig.S2.Assign(sigBytes[48:])
}
func CompileCircuit(depth int) error {
var err error
var cc VoteCircuit
cc.Path = make([]frontend.Variable, depth)
cc.Helper = make([]frontend.Variable, depth-1)
if R1CS, err = frontend.Compile(ecc.BN254, backend.GROTH16, &cc); err != nil {
return err
}
if ProvingKey, VerifyingKey, err = groth16.Setup(R1CS); err != nil {
return err
}
return nil
}
|
package seeders
import (
"github.com/agusbasari29/Skilltest-RSP-Akselerasi-2-Backend-Agus-Basari/database"
"github.com/agusbasari29/Skilltest-RSP-Akselerasi-2-Backend-Agus-Basari/repository"
"gorm.io/gorm"
)
var (
db *gorm.DB = database.SetupDatabaseConnection()
eventRepo = repository.NewEventRepository(db)
userRepo = repository.NewUserRepository(db)
trxRepo = repository.NewTransactionRepository(db)
)
func Seeders() {
UsersSeedersUp(35)
EventsSeedersUp(100)
TransactionsSeedersUp(2000)
}
|
package util
import (
"net"
)
const (
RouteFlagUp = 1 << iota
RouteFlagGateway
RouteFlagHost
)
type DefaultRouteInfo struct {
Address net.IP
Interface string
Mask net.IPMask
}
type RouteEntry struct {
BaseAddr net.IP
BroadcastAddr net.IP
Flags uint32
GatewayAddr net.IP
InterfaceName string
Mask net.IPMask
}
type RouteTable struct {
DefaultRoute *DefaultRouteInfo
RouteEntries []*RouteEntry
}
type ResolverConfiguration struct {
Domain string
Nameservers []net.IP
SearchDomains []string
}
// CompareIPs returns true if the left IP is less than the right IP, else false.
func CompareIPs(left, right net.IP) bool {
return compareIPs(left, right)
}
func CopyIP(ip net.IP) net.IP {
return copyIP(ip)
}
func DecrementIP(ip net.IP) {
decrementIP(ip)
}
func GetDefaultRoute() (*DefaultRouteInfo, error) {
return getDefaultRoute()
}
func GetMyIP() (net.IP, error) {
return getMyIP()
}
func GetResolverConfiguration() (*ResolverConfiguration, error) {
return getResolverConfiguration()
}
func GetRouteTable() (*RouteTable, error) {
return getRouteTable()
}
func IncrementIP(ip net.IP) {
incrementIP(ip)
}
func InvertIP(input net.IP) {
invertIP(input)
}
func ShrinkIP(netIP net.IP) net.IP {
return shrinkIP(netIP)
}
|
package ionic
import (
"bytes"
"encoding/json"
"fmt"
"net/url"
"github.com/ion-channel/ionic/aliases"
)
// AddAliasOptions struct that allows for adding an alias to a
// project
type AddAliasOptions struct {
Name string `json:"name"`
ProjectID string `json:"project_id"`
TeamID string `json:"team_id"`
Version string `json:"version"`
Org string `json:"org"`
}
//AddAlias takes a project and adds an alias to it. It returns the
// project stored or an error encountered by the API
func (ic *IonClient) AddAlias(alias AddAliasOptions, token string) (*aliases.Alias, error) {
params := url.Values{}
params.Set("project_id", alias.ProjectID)
b, err := json.Marshal(alias)
if err != nil {
return nil, fmt.Errorf("failed to marshall alias: %v", err.Error())
}
b, err = ic.Post(aliases.AddAliasEndpoint, token, params, *bytes.NewBuffer(b), nil)
if err != nil {
return nil, fmt.Errorf("failed to create alias: %v", err.Error())
}
var a aliases.Alias
err = json.Unmarshal(b, &a)
if err != nil {
return nil, fmt.Errorf("failed to read response from create: %v", err.Error())
}
return &a, nil
}
|
package main
import (
"testing"
"github.com/jackytck/projecteuler/tools"
)
func TestP87(t *testing.T) {
cases := []tools.TestCase{
{In: 50, Out: 4},
{In: 50000000, Out: 1097343},
}
tools.TestIntInt(t, cases, solve, "P87")
}
|
package club
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"github.com/ubclaunchpad/pinpoint/gateway/schema"
"github.com/ubclaunchpad/pinpoint/protobuf/fakes"
"github.com/ubclaunchpad/pinpoint/protobuf/request"
"go.uber.org/zap/zaptest"
)
func TestClubRouter_createClub(t *testing.T) {
type args struct {
club *schema.CreateClub
}
tests := []struct {
name string
args args
wantCode int
}{
{"bad input", args{nil}, http.StatusBadRequest},
{"successfully create club", args{&schema.CreateClub{
Name: "UBC Launch Pad",
Desc: "The best software engineering club",
}}, http.StatusCreated},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
fake := &fakes.FakeCoreClient{}
// create club router
u := NewClubRouter(zaptest.NewLogger(t).Sugar(), fake)
// create request
var b []byte
var err error
if tt.args.club != nil {
if b, err = json.Marshal(tt.args.club); err != nil {
t.Error(err)
return
}
}
reader := bytes.NewReader(b)
req, err := http.NewRequest("POST", "/create", reader)
if err != nil {
t.Error(err)
return
}
// Record responses
recorder := httptest.NewRecorder()
u.ServeHTTP(recorder, req)
if recorder.Code != tt.wantCode {
t.Errorf("expected %d, got %d", tt.wantCode, recorder.Code)
}
// TODO: test behaviour with fake core
})
}
}
func TestClubRouter_createEvent(t *testing.T) {
// TODO once event stuff is more finalized
type args struct {
path string
period *schema.CreateEvent
}
tests := []struct {
name string
args args
wantCode int
}{
{"bad param", args{"/my_club/period/my_period/event/create", nil}, http.StatusBadRequest},
{"invalid fields", args{
"/my_club/period/my_period/event/create",
&schema.CreateEvent{
Name: "Winter Semester",
Fields: []schema.FieldProps{
{Type: "", Properties: []byte(`{"julia": "has failed"}`)},
},
}}, http.StatusBadRequest},
{"successfully created event", args{
"/my_club/period/my_period/event/create",
&schema.CreateEvent{
Name: "Winter Semester",
Fields: []schema.FieldProps{
{Type: "long_text", Properties: []byte(`{"1": "2"}`)},
},
}}, http.StatusCreated},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// create club router
fake := &fakes.FakeCoreClient{}
u := NewClubRouter(zaptest.NewLogger(t).Sugar(), fake)
// create request
var b []byte
var err error
if tt.args.period != nil {
if b, err = json.Marshal(tt.args.period); err != nil {
t.Error(err)
return
}
}
reader := bytes.NewReader(b)
req, err := http.NewRequest("POST", tt.args.path, reader)
if err != nil {
t.Error(err)
return
}
// Record responses
recorder := httptest.NewRecorder()
u.ServeHTTP(recorder, req)
if recorder.Code != tt.wantCode {
t.Errorf("expected %d, got %d", tt.wantCode, recorder.Code)
}
// TODO: test behaviour with fake core
})
}
}
func TestClubRouter_createPeriod(t *testing.T) {
type args struct {
path string
period *request.CreatePeriod
}
tests := []struct {
name string
args args
wantCode int
}{
{"bad input", args{"/my_club/period/create", nil}, http.StatusBadRequest},
{"successfully create period", args{
"/my_club/period/create",
&request.CreatePeriod{
Period: "Winter Semester",
ClubID: "UBC Launch Pad",
}}, http.StatusCreated},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// create club router
fake := &fakes.FakeCoreClient{}
u := NewClubRouter(zaptest.NewLogger(t).Sugar(), fake)
// create request
var b []byte
var err error
if tt.args.period != nil {
if b, err = json.Marshal(tt.args.period); err != nil {
t.Error(err)
return
}
}
reader := bytes.NewReader(b)
req, err := http.NewRequest("POST", tt.args.path, reader)
if err != nil {
t.Error(err)
return
}
// Record responses
recorder := httptest.NewRecorder()
u.ServeHTTP(recorder, req)
if recorder.Code != tt.wantCode {
t.Errorf("expected %d, got %d", tt.wantCode, recorder.Code)
}
// TODO: test behaviour with fake core
})
}
}
|
package apis
import (
"log"
"strconv"
"github.com/umeat/go-gnss/cmd/database/daos"
"github.com/gin-gonic/gin"
"net/http"
)
func GetObservation(c *gin.Context) {
id, _ := strconv.ParseUint(c.Param("id"), 10, 32)
if obs, err := daos.GetObservation(uint(id)); err != nil {
c.AbortWithStatus(http.StatusNotFound)
log.Println(err)
} else {
c.JSON(http.StatusOK, obs)
}
}
|
package main
import (
"fmt"
)
func main() {
numbers := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
sum := 0
for index, val := range numbers {
sum += val
fmt.Print("[", index, ",", val, "]")
}
fmt.Println("\nSum is::", sum)
kvs := map[int]string{1: "apple", 2: "banana"}
for k, v := range kvs {
fmt.Println(k, "->", v)
}
str := "Hello, World!"
for index, c := range str {
fmt.Print("[", index, ",", string(c), "]")
}
}
|
package server
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"cloud.google.com/go/datastore"
"github.com/nervelife/learning-golang/src/app/data"
"google.golang.org/api/iterator"
)
var ctx context.Context
var projectID string
var client datastore.Client
func init() {
fmt.Println("Initializing server...")
ctx = context.Background()
projectID = os.Getenv("GOOGLE_CLOUD_PROJECT")
if projectID == "" {
log.Fatal("Project ID Not Found")
}
// GOOGLE_APPLICATION_CREDENTIALS
c, err := datastore.NewClient(ctx, projectID)
if err != nil {
log.Fatalf("Failed to create client %v", err)
}
client = *c
log.Println("Initilized...")
}
// Run the server
func Run() {
http.HandleFunc("/", IndexHandler)
http.HandleFunc("/save-author", SaveAuthorHandler)
http.HandleFunc("/get-all-authors", GetAllAuthors)
port := os.Getenv("PORT")
if port == "" {
port = "8088"
log.Printf("Defaulting to port %s", port)
}
log.Printf("Listening on port %s", port)
if err := http.ListenAndServe(":"+port, nil); err != nil {
log.Fatal(err)
}
}
// IndexHandler is an handler
func IndexHandler(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
return
}
fmt.Fprint(w, "Hello, World!")
}
// SaveAuthorHandler is an handler
func SaveAuthorHandler(w http.ResponseWriter, r *http.Request) {
a := data.AuthorEntity{
Name: "Giang giang",
Alive: true,
}
aKey := datastore.IncompleteKey("Authors", nil)
if _, err := client.Put(ctx, aKey, &a); err != nil {
log.Fatalf("Error saving to datastore %v", err)
}
}
// GetAllAuthors is an function
func GetAllAuthors(w http.ResponseWriter, r *http.Request) {
query := datastore.NewQuery("Authors").Filter("alive >", false)
it := client.Run(ctx, query)
var authors []data.AuthorEntity
for {
var author data.AuthorEntity
key, err := it.Next(&author)
if err == iterator.Done {
break
}
if err != nil {
log.Fatalf("Error fetching next author: %v", err)
}
author.ID = key.ID
authors = append(authors, author)
}
w.Header().Add("Content-Type", "application/json")
json.NewEncoder(w).Encode(authors)
}
|
package notify_saver_service
import (
"log"
"ms/sun/servises/event_service"
"ms/sun/shared/config"
"ms/sun/shared/helper"
"ms/sun/shared/x"
"ms/sun_old/base"
)
var newNotify = make(chan x.Notify, 1000)
func saveNewNotifyes() {
for act := range newNotify {
if act.Murmur64Hash == 0 || act.NotifyId == 0 || act.ActorUserId == 0 {
if config.IS_DEBUG {
log.Panic("x.Notify is not valid to save: ", act)
}
}
act.Save(base.DB)
}
}
func listernAndSaverNotifys() {
for {
subParam := event_service.SubParam{
Added_Post_Event: true,
Deleted_Post_Event: true,
Liked_Post_Event: true,
UnLiked_Post_Event: true,
Commented_Post_Event: true,
UnCommented_Post_Event: true,
Followed_User_Event: true,
UnFollwed_User_Event: true,
Blocked_User_Event: true,
UnBlocked_User_Event: true,
}
sub := event_service.NewSub(subParam)
for {
var e event_service.GeneralEvent
select {
case e = <-sub.Deleted_Post_Event:
case e = <-sub.Deleted_Post_Event:
on_Deleted_Post(e)
case e = <-sub.Liked_Post_Event:
on_Liked_Post(e)
case e = <-sub.UnLiked_Post_Event:
on_UnLiked_Post(e)
case e = <-sub.Commented_Post_Event:
on_Commented_Post(e)
case e = <-sub.UnCommented_Post_Event:
on_UnCommented(e)
case e = <-sub.Followed_User_Event:
on_Followed(e)
case e = <-sub.UnFollwed_User_Event:
on_UnFollwed(e)
case e = <-sub.Blocked_User_Event:
on_Blocked(e)
case e = <-sub.UnBlocked_User_Event:
on_UnBlocked(e)
}
}
}
}
func on_Deleted_Post(e event_service.GeneralEvent) {
x.NewNotify_Deleter().
PostId_Eq(e.PostId).
Delete(base.DB)
}
func on_Liked_Post(e event_service.GeneralEvent) {
if e.Post == nil {
return
}
act := x.Notify{
NotifyId: e.EventId,
ForUserId: e.Post.PostId,
ActorUserId: e.ByUserId,
NotifyType: int(x.NotifyEnum_NOTIFY_POST_LIKED),
PostId: e.PostId,
PeerUserId: 0,
CommentId: 0,
Murmur64Hash: e.Murmur64Hash,
CreatedTime: helper.TimeNow(),
}
newNotify <- act
}
func on_UnLiked_Post(e event_service.GeneralEvent) {
x.NewNotify_Deleter().
Murmur64Hash_Eq(e.Murmur64Hash).
Delete(base.DB)
}
func on_Commented_Post(e event_service.GeneralEvent) {
if e.Comment == nil || e.Post == nil {
return
}
not := x.Notify{
NotifyId: e.EventId,
ForUserId: e.Post.PostId,
ActorUserId: e.ByUserId,
NotifyType: int(x.NotifyEnum_NOTIFY_POST_COMMENTED),
PostId: e.Post.PostId,
PeerUserId: 0,
CommentId: e.Comment.CommentId,
Murmur64Hash: e.Event.Murmur64Hash,
CreatedTime: helper.TimeNow(),
}
newNotify <- not
}
func on_UnCommented(e event_service.GeneralEvent) {
x.NewNotify_Deleter().
Murmur64Hash_Eq(e.Murmur64Hash).
Delete(base.DB)
}
func on_Followed(e event_service.GeneralEvent) {
not := x.Notify{
NotifyId: e.EventId,
ForUserId: e.PeerUserId,
ActorUserId: e.ByUserId,
NotifyType: int(x.NotifyEnum_NOTIFY_FOLLOWED_YOU),
PostId: 0,
PeerUserId: 0,
CommentId: 0,
Murmur64Hash: e.Event.Murmur64Hash,
CreatedTime: helper.TimeNow(),
}
newNotify <- not
}
func on_UnFollwed(e event_service.GeneralEvent) {
x.NewNotify_Deleter().
Murmur64Hash_Eq(e.Murmur64Hash).
Delete(base.DB)
}
func on_Blocked(e event_service.GeneralEvent) {
}
func on_UnBlocked(e event_service.GeneralEvent) {
}
/*func on_Deleted_Post(e event_service.GeneralEvent) {
}
*/
|
package pie
// Top will return n elements from head of the slice
// if the slice has less elements then n that'll return all elements
// if n < 0 it'll return empty slice.
func Top[T any](ss []T, n int) (top []T) {
for i := 0; i < len(ss) && n > 0; i++ {
top = append(top, ss[i])
n--
}
return
}
|
package model
import (
"appengine"
"appengine/datastore"
)
type Category struct {
Name string
Ratio float32
// Not stored in the datastore
Key *datastore.Key `datastore:"-"`
}
func (cat *Category) ToPercent() int {
return int(cat.Ratio * 100)
}
func QueryCategories(c appengine.Context, b *Budget) ([]*Category, error) {
var categories []*Category
iter := datastore.NewQuery("Category").Ancestor(b.Key).Run(c)
for {
elem := new(Category)
key, err := iter.Next(elem)
if err == datastore.Done {
break
} else if err != nil {
return nil, err
}
elem.Key = key
categories = append(categories, elem)
}
return categories, nil
}
func LoadCategory(c appengine.Context, encodedKey string) (*Category, error) {
key, err := datastore.DecodeKey(encodedKey)
if err != nil {
return nil, err
}
// Ensure that the kind of this key is a Category
if key.Kind() != "Category" {
return nil, err
}
category := new(Category)
if err := datastore.Get(c, key, category); err != nil {
return nil, err
}
category.Key = key
return category, nil
}
func CreateCategory(c appengine.Context, b *Budget) (*Category, error) {
return &Category{
Key: datastore.NewIncompleteKey(c, "Category", b.Key),
}, nil
}
func CommitCategories(c appengine.Context, categories []*Category) error {
var keys []*datastore.Key
for _, cat := range categories {
keys = append(keys, cat.Key)
}
keys, err := datastore.PutMulti(c, keys, categories)
if err != nil {
return err
}
for i, cat := range categories {
cat.Key = keys[i]
}
return nil
}
|
package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/yugabyte/yugabyte-db/managed/yba-installer/common"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "The version of YBA Installer.",
Args: cobra.NoArgs,
Long: `
The version will be the same as the version of YugabyteDB Anywhere that you will be
installing when you involve the yba-ctl binary using the install command line option.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println(common.GetVersion())
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}
|
package main
import (
"fmt"
"os"
"path/filepath"
"github.com/garyburd/redigo/redis"
sync "./lib"
)
func main() {
if len(os.Args) < 3 {
fmt.Printf("usage: %s <src> <dst>\n", filepath.Base(os.Args[0]))
os.Exit(1)
}
src, err := redis.Dial("tcp", os.Args[1])
if err != nil {
fmt.Println(err)
return
}
dst, err := redis.Dial("tcp", os.Args[2])
if err != nil {
fmt.Println(err)
return
}
err = sync.Sync(src, dst)
if err != nil {
fmt.Println(err)
return
}
fmt.Println("SYNC COMPLETE")
}
|
package main
import (
"encoding/json"
"fmt"
"math/rand"
"net/http"
"os"
"strconv"
"strings"
"time"
)
type responseObject struct {
Events []event `json:"viktigaDatum,omitempty"`
}
type event struct {
Type string `json:"type,omitempty"`
Category string `json:"category,omitempty"`
WebSkvPath string `json:"uri,omitempty"`
Dates []string `json:"dates,omitempty"`
}
// Possible values UPP_TILL_EN_MILJON, MER_AN_EN_MILJON_TILL_FYRTIO_MILJONER, OVER_FYRTIO_MILJONER
var revenue = "UPP_TILL_EN_MILJON"
// Possible values AR, KVARTAL, MANAD
var vatDeclarationPeriod = "AR"
// Possible values true, false
var paysSalary = "true"
// Possible values 1-12
var financialYearLastMonth = "8"
func main() {
fmt.Println("Starting the import...")
result, err := getDatesFromSkatteverket(financialYearLastMonth, paysSalary, revenue, vatDeclarationPeriod)
if err != nil {
fmt.Println("An error occurred:", err)
return
}
err = createIcsFile(result)
if err != nil {
fmt.Println("An error occurred:", err)
return
}
fmt.Println("Import done!")
}
func createIcsFile(response *responseObject) error {
file, err := os.Create("skatteverket.ics")
if err != nil {
return err
}
defer file.Close()
_, err = file.WriteString("BEGIN:VCALENDAR\n" +
"PRODID:martintroedsson\n" +
"VERSION:2.0\n" +
"CALSCALE:GREGORIAN\n")
if err != nil {
return err
}
for _, event := range response.Events {
for _, date := range event.Dates {
_, err = file.WriteString("BEGIN:VEVENT\n" +
"TRANSP:TRANSPARENT\n" +
"UID:" + strconv.Itoa(rand.Int()) + "@martintroedsson\n" +
"DTSTAMP:" + time.Now().Format("20060102T150405Z") + "\n" +
"DTSTART;VALUE=DATE:" + strings.ReplaceAll(date, "-", "") + "\n" +
"SEQUENCE:0\n" +
"CLASS:PUBLIC\n" +
"SUMMARY:" + event.Category + "\n" +
"DESCRIPTION:" + event.Type + " " + event.Category + ". https://www.skatteverket.se" + event.WebSkvPath + "\n" +
"END:VEVENT\n")
if err != nil {
return err
}
}
}
_, err = file.WriteString("END:VCALENDAR")
if err != nil {
return err
}
return nil
}
func getDatesFromSkatteverket(financialYearLastMonth string, paysSalary string, revenue string,
vatDeclarationPeriod string) (*responseObject, error) {
var result *responseObject
var url = "https://skatteverket.se/viktiga-datum-api/api/v1/viktiga-datum-foretag?foretagsform=AKTIEBOLAG_FORENINGAR&" +
"omsattning=" + revenue + "&momsredovisningsperiod=" + vatDeclarationPeriod + "&rakenskapsaretsSistaManad=" + financialYearLastMonth + "&" +
"arbetsgivare=" + paysSalary + "&tidigareDatum=false"
fmt.Println("Using URL: " + url)
response, err := http.Get(url)
if err != nil {
return result, err
}
defer response.Body.Close()
decoder := json.NewDecoder(response.Body)
result = &responseObject{}
err = decoder.Decode(result)
if err != nil {
return result, err
}
return result, nil
}
|
package memphis
import (
"context"
"fmt"
"github.com/memphisdev/memphis.go"
"github.com/pkg/errors"
"github.com/batchcorp/plumber-schemas/build/go/protos/opts"
"github.com/batchcorp/plumber-schemas/build/go/protos/records"
"github.com/batchcorp/plumber/tunnel"
"github.com/batchcorp/plumber/util"
"github.com/batchcorp/plumber/validate"
)
func (m *Memphis) Tunnel(ctx context.Context, opts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error {
if err := validateTunnelOptions(opts); err != nil {
return errors.Wrap(err, "invalid tunnel options")
}
llog := m.log.WithField("pkg", "memphis/tunnel")
args := opts.GetMemphis().Args
producer, err := m.client.CreateProducer(args.Station, args.ProducerName)
if err != nil {
return errors.Wrap(err, "unable to create Memphis producer")
}
if err := tunnelSvc.Start(ctx, "Memphis", errorCh); err != nil {
return errors.Wrap(err, "unable to create tunnel")
}
headers := genHeaders(args.Headers)
po := make([]memphis.ProduceOpt, 0)
po = append(po, memphis.MsgHeaders(headers))
if args.MessageId != "" {
po = append(po, memphis.MsgId(args.MessageId))
}
outboundCh := tunnelSvc.Read()
for {
select {
case outbound := <-outboundCh:
if err := producer.Produce(outbound.Blob, po...); err != nil {
util.WriteError(m.log, errorCh, fmt.Errorf("unable to write message to station '%s': %s", args.Station, err))
}
case <-ctx.Done():
llog.Debug("context cancelled")
return nil
}
}
return nil
}
func validateTunnelOptions(opts *opts.TunnelOptions) error {
if opts == nil {
return validate.ErrEmptyTunnelOpts
}
if opts.Memphis == nil {
return validate.ErrEmptyBackendGroup
}
args := opts.Memphis.Args
if args == nil {
return validate.ErrEmptyBackendArgs
}
if args.Station == "" {
return ErrEmptyStation
}
return nil
}
|
package c49_cbc_mac_forgery
import (
"bytes"
"testing"
)
func TestValidation(t *testing.T) {
key := bytes.Repeat([]byte("K"), 16)
msg := bytes.Repeat([]byte("M"), 24)
cbc := NewCBCMAC(key)
iv, mac := cbc.Sign(msg)
if !cbc.Validation(msg, iv, mac) {
t.Errorf("Incorrect result. Expected true, got false\n")
}
mac[0] ^= 0x42
if cbc.Validation(msg, iv, mac) {
t.Errorf("Incorrect result. Expected false, got true\n")
}
}
|
package service
type GetEndpointParams struct{
Endpoint string `json:"endpoint" validate:"required,uri"`
}
type GetResponse struct {
StatusCode int `json:"statusCode"`
Content string `json:"content"`
Err error `json:"err,omitempty"`
}
type AddEndpointParams struct {
Username string `json:"username" validate:"omitempty,alphanum"`
Endpoint string `json:"endpoint" validate:"required,uri"`
Content string `json:"content" validate:"required"`
StatusCode int `json:"statusCode" validate:"required,httpStatus"`
}
type AddEndpointResponse struct {
Endpoint string `json:"endpoint"`
Err error `json:"err,omitempty"`
}
|
package main
import (
"fmt"
"github.com/PacktPublishing/Go-Programming-Cookbook-Second-Edition/chapter7/grpc/greeter"
"golang.org/x/net/context"
)
// Greeter implements the interface
// generated by protoc
type Greeter struct {
Exclaim bool
}
// Greet implements grpc Greet
func (g *Greeter) Greet(ctx context.Context, r *greeter.GreetRequest) (*greeter.GreetResponse, error) {
msg := fmt.Sprintf("%s %s", r.GetGreeting(), r.GetName())
if g.Exclaim {
msg += "!"
} else {
msg += "."
}
return &greeter.GreetResponse{Response: msg}, nil
}
|
package main
import (
"fmt"
"os"
"strings"
"github.com/NHAS/reverse_ssh/internal/server"
)
func printHelp() {
fmt.Println("Reverse SSH server")
fmt.Println(os.Args[0], "listen addr")
}
func main() {
arg := ""
if len(os.Args) > 1 {
arg = strings.TrimSpace(os.Args[1])
}
if len(os.Args) != 2 {
fmt.Println("Missing listening address")
printHelp()
return
}
switch arg {
case "-h", "-help", "--help":
printHelp()
default:
server.Run(os.Args[1])
}
}
|
// Gábor Nagy and Niklas Ingemar Bergdahl 2016-05-25
package crawler
import (
"bytes"
"io"
"log"
"net/http"
"strings"
"golang.org/x/net/html"
)
// Crawl calls and parses the assigned webpage, looking for URLs and collecting
// them in a list.
func Crawl(url string) map[string]bool {
body := getPage(url)
defer body.Close()
m := make(map[string]bool)
tokenizer := html.NewTokenizer(body)
for {
tt := tokenizer.Next()
switch tt {
case html.ErrorToken:
// Error, if not EOF, preserve
if tokenizer.Err() != io.EOF {
log.Printf("Token Error: %v", tokenizer.Err())
}
return m
case html.StartTagToken:
// Start tag has been located
token := tokenizer.Token()
// Check if token is an <a> tag
if token.Data != "a" {
continue
}
// Look for href in token
found, href := getHref(token)
if !found {
continue
}
// Check if href is relevant
if strings.Index(href, "/wiki/") == 0 {
// Check if href is a hastag or special category
if strings.Contains(href, "#") || strings.Contains(href, ":") {
continue
}
// Append domain
href = append(href)
m[href] = true
}
}
}
}
// Helper function used to retrieve the contents of the specified webpage.
func getPage(url string) (body io.ReadCloser) {
// Retrieve the page
resp, err := http.Get(url)
if err != nil {
log.Fatalf("Response Error: %v", err)
}
resp.Close = true
body = resp.Body
return
}
// Helper function used to identify href:s in an html file
func getHref(t html.Token) (found bool, href string) {
for _, a := range t.Attr {
if a.Key == "href" {
href = a.Val
found = true
}
}
return
}
// Helper function used to append the start of the URL to the href
func append(href string) string {
buffer := new(bytes.Buffer)
buffer.WriteString("http://simple.wikipedia.org")
buffer.WriteString(href)
return buffer.String()
}
|
package web
import (
"context"
"github.com/angelospillos/rankingservice"
pb "github.com/angelospillos/rankingservice/proto"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
type Server struct {
pb.UnimplementedRankingServiceServer
Service ranking.Service
}
func (s Server) GetRankings(ctx context.Context, req *pb.RankingRequest) (*pb.RankingResponse, error) {
rankings, err := s.Service.GetRankings(req.Limit)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, "Invalid Argument %s", req.Limit)
}
var response pb.RankingResponse
for _, v := range rankings {
response.Ranks = append(response.Ranks, &pb.Rank{
Order: v.Order,
Symbol: v.Symbol,
})
}
return &response, nil
}
|
package medkit
import (
"github.com/spf13/cobra"
)
// installCmd represents the install command.
var installCmd = &cobra.Command{
Use: "install",
Short: "install various resources",
Long: `
The install command will install various resources based on the sub-command.`,
Run: func(cmd *cobra.Command, args []string) {
cmd.Usage()
},
}
func init() {
installCmd.AddCommand(installDotfilesCmd)
}
|
package main
import (
"encoding/base64"
"fmt"
"golang.org/x/crypto/scrypt"
)
func main() {
dk, err := scrypt.Key([]byte("123456"), []byte("qwer"), 1 << 15, 8, 1,32)
if err != nil {
return
}
fmt.Println(base64.StdEncoding.EncodeToString(dk))
}
|
package ipcam
import "testing"
func TestIpcam_Map(t *testing.T) {
f := Ipcam{}
f.Id = "myid"
f.Url = "myurl"
f.Rec = true
f.Off = true
f.Online = false
m := f.Map()
_, ok1 := m["id"]
_, ok2 := m["url"]
_, ok3 := m["rec"]
_, ok4 := m["off"]
_, ok5 := m["online"]
if !ok1 || !ok2 || !ok3 || !ok4 || ok5 {
t.Errorf("should get default output\n")
}
m = f.Map(TAG_VIEW)
_, ok1 = m["id"]
_, ok2 = m["url"]
_, ok3 = m["rec"]
_, ok4 = m["off"]
_, ok5 = m["online"]
if !ok1 || ok2 || ok3 || !ok4 || ok5 {
t.Errorf("should get default output\n")
}
}
|
package users
import (
"context"
"database/sql"
"strings"
"cinemo.com/shoping-cart/framework/loglib"
"cinemo.com/shoping-cart/internal/errorcode"
"cinemo.com/shoping-cart/internal/orm"
"github.com/friendsofgo/errors"
"github.com/volatiletech/null/v8"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"golang.org/x/crypto/bcrypt"
)
// Service is the interface to expose User functions
type Service interface {
CreateUser(ctx context.Context, username string, password string, firstName *string, lastName *string) (*User, error)
RetrieveUserByUsername(ctx context.Context, username string) (*User, error)
Validate(ctx context.Context, username string, password string) (*User, error)
}
type userService struct {
DB *sql.DB
}
// NewUserService method create a instance of userService
func NewUserService(db *sql.DB) Service {
return &userService{
DB: db,
}
}
// CreateUser method creates a user in DB
func (s *userService) CreateUser(ctx context.Context, username string, password string, firstName *string, lastName *string) (*User, error) {
logger := loglib.GetLogger(ctx)
// Convert all username to lower before storing
username = strings.ToLower(username)
passwordHash, err := EncryptPassword(password)
if err != nil {
logger.Errorf("error: EncryptPassword %s", err.Error())
return nil, err
}
existingUser, err := s.RetrieveUserByUsername(ctx, username)
if err != nil {
if err != sql.ErrNoRows {
logger.Errorf("error: retrieveUserByUsername %s", err.Error())
return nil, err
}
}
if existingUser != nil {
logger.Infof("User already exists with username %s", username)
return nil, errorcode.ValidationError{Err: errors.Errorf("user already exists with %s", username)}
}
return saveUser(ctx, s.DB, &User{
FirstName: firstName,
LastName: lastName,
Username: username,
Password: passwordHash,
})
}
func (s *userService) RetrieveUserByUsername(ctx context.Context, username string) (*User, error) {
ormUser, err := orm.Users(
qm.Where(orm.UserColumns.Username+"=?", username),
).One(ctx, s.DB)
if err != nil {
return nil, err
}
return transformOrmToModelUser(ormUser), nil
}
func saveUser(ctx context.Context, db *sql.DB, user *User) (*User, error) {
logger := loglib.GetLogger(ctx)
ormUser := transformModelUserToOrm(user)
if err := ormUser.Insert(ctx, db, boil.Infer()); err != nil {
logger.Errorf("error: saveUser %s", err.Error())
return nil, err
}
return transformOrmToModelUser(ormUser), nil
}
func transformModelUserToOrm(user *User) *orm.User {
return &orm.User{
ID: user.ID,
Username: user.Username,
Password: user.Password,
Firstname: null.StringFromPtr(user.FirstName),
Lastname: null.StringFromPtr(user.LastName),
CreatedAt: user.CreatedAt,
UpdatedAt: user.UpdatedAt,
}
}
func transformOrmToModelUser(user *orm.User) *User {
return &User{
ID: user.ID,
Username: user.Username,
Password: user.Password,
FirstName: user.Firstname.Ptr(),
LastName: user.Lastname.Ptr(),
CreatedAt: user.CreatedAt,
UpdatedAt: user.UpdatedAt,
}
}
func (s *userService) Validate(ctx context.Context, username string, password string) (*User, error) {
user, err := s.RetrieveUserByUsername(ctx, username)
if err != nil {
return nil, errorcode.ValidationError{Err: errors.Errorf("invalid username/password")}
}
if err := bcrypt.CompareHashAndPassword([]byte(user.Password), []byte(password)); err != nil {
return nil, errorcode.ValidationError{Err: errors.Errorf("invalid username/password")}
}
return user, nil
}
// EncryptPassword generates hashed password from string
func EncryptPassword(clearPassword string) (string, error) {
passwordHash, err := bcrypt.GenerateFromPassword([]byte(clearPassword), 12)
if err != nil {
return "", err
}
return string(passwordHash), nil
}
|
package leetcode
import "strings"
func LongestCommonPrefix(strs []string) string {
if len(strs) == 0 {
return ""
}
s := strs[0]
res := ""
for i := 1; i < len(s)+1; i++ {
check := s[:i]
for j := 1; j < len(strs); j++ {
if !strings.HasPrefix(strs[j], check) {
return res
}
}
res = check
}
return res
}
|
package main
import "fmt"
func hello(){
}
|
// This file was generated for SObject Idea, API Version v43.0 at 2018-07-30 03:47:20.482032335 -0400 EDT m=+6.824894863
package sobjects
import (
"fmt"
"strings"
)
type Idea struct {
BaseSObject
Body string `force:",omitempty"`
Categories string `force:",omitempty"`
CommunityId string `force:",omitempty"`
CreatedById string `force:",omitempty"`
CreatedDate string `force:",omitempty"`
CreatorFullPhotoUrl string `force:",omitempty"`
CreatorName string `force:",omitempty"`
CreatorSmallPhotoUrl string `force:",omitempty"`
Id string `force:",omitempty"`
IsDeleted bool `force:",omitempty"`
IsHtml bool `force:",omitempty"`
IsMerged bool `force:",omitempty"`
LastCommentDate string `force:",omitempty"`
LastCommentId string `force:",omitempty"`
LastModifiedById string `force:",omitempty"`
LastModifiedDate string `force:",omitempty"`
LastReferencedDate string `force:",omitempty"`
LastViewedDate string `force:",omitempty"`
NumComments int `force:",omitempty"`
ParentIdeaId string `force:",omitempty"`
RecordTypeId string `force:",omitempty"`
Status string `force:",omitempty"`
SystemModstamp string `force:",omitempty"`
Title string `force:",omitempty"`
VoteScore float64 `force:",omitempty"`
VoteTotal float64 `force:",omitempty"`
}
func (t *Idea) ApiName() string {
return "Idea"
}
func (t *Idea) String() string {
builder := strings.Builder{}
builder.WriteString(fmt.Sprintf("Idea #%s - %s\n", t.Id, t.Name))
builder.WriteString(fmt.Sprintf("\tBody: %v\n", t.Body))
builder.WriteString(fmt.Sprintf("\tCategories: %v\n", t.Categories))
builder.WriteString(fmt.Sprintf("\tCommunityId: %v\n", t.CommunityId))
builder.WriteString(fmt.Sprintf("\tCreatedById: %v\n", t.CreatedById))
builder.WriteString(fmt.Sprintf("\tCreatedDate: %v\n", t.CreatedDate))
builder.WriteString(fmt.Sprintf("\tCreatorFullPhotoUrl: %v\n", t.CreatorFullPhotoUrl))
builder.WriteString(fmt.Sprintf("\tCreatorName: %v\n", t.CreatorName))
builder.WriteString(fmt.Sprintf("\tCreatorSmallPhotoUrl: %v\n", t.CreatorSmallPhotoUrl))
builder.WriteString(fmt.Sprintf("\tId: %v\n", t.Id))
builder.WriteString(fmt.Sprintf("\tIsDeleted: %v\n", t.IsDeleted))
builder.WriteString(fmt.Sprintf("\tIsHtml: %v\n", t.IsHtml))
builder.WriteString(fmt.Sprintf("\tIsMerged: %v\n", t.IsMerged))
builder.WriteString(fmt.Sprintf("\tLastCommentDate: %v\n", t.LastCommentDate))
builder.WriteString(fmt.Sprintf("\tLastCommentId: %v\n", t.LastCommentId))
builder.WriteString(fmt.Sprintf("\tLastModifiedById: %v\n", t.LastModifiedById))
builder.WriteString(fmt.Sprintf("\tLastModifiedDate: %v\n", t.LastModifiedDate))
builder.WriteString(fmt.Sprintf("\tLastReferencedDate: %v\n", t.LastReferencedDate))
builder.WriteString(fmt.Sprintf("\tLastViewedDate: %v\n", t.LastViewedDate))
builder.WriteString(fmt.Sprintf("\tNumComments: %v\n", t.NumComments))
builder.WriteString(fmt.Sprintf("\tParentIdeaId: %v\n", t.ParentIdeaId))
builder.WriteString(fmt.Sprintf("\tRecordTypeId: %v\n", t.RecordTypeId))
builder.WriteString(fmt.Sprintf("\tStatus: %v\n", t.Status))
builder.WriteString(fmt.Sprintf("\tSystemModstamp: %v\n", t.SystemModstamp))
builder.WriteString(fmt.Sprintf("\tTitle: %v\n", t.Title))
builder.WriteString(fmt.Sprintf("\tVoteScore: %v\n", t.VoteScore))
builder.WriteString(fmt.Sprintf("\tVoteTotal: %v\n", t.VoteTotal))
return builder.String()
}
type IdeaQueryResponse struct {
BaseQuery
Records []Idea `json:"Records" force:"records"`
}
|
// Basic building blocks of the app.
package main
import (
"fmt"
"log"
"go.jlucktay.dev/golang-workbench/go_rest_api/pkg/mongo"
"go.jlucktay.dev/golang-workbench/go_rest_api/pkg/server"
)
// App has a server and a Mongo session.
type App struct {
server *server.Server
session *mongo.Session
}
// Initialize sets up an App.
func (a *App) Initialize() {
err := a.session.Open()
if err != nil {
log.Fatalln("unable to connect to mongodb")
}
u := mongo.NewUserService(a.session.Copy())
a.server = server.NewServer(u)
}
// Run will run an App.
func (a *App) Run() {
fmt.Println("Run")
defer a.session.Close()
a.server.Start()
}
|
package main
import "fmt"
func main() {
// 声明数组,方式1
var arr [10]int
// 赋值操作
arr[0] = 11
arr[1] = 12
// 声明数组,方式2
arr2 := [3]int{1, 2, 3}
arr3 := [10]int{111, 222, 333}
arr4 := [...]int{444, 555, 666}
for key, value := range arr2 {
fmt.Println("arr2 key", key)
fmt.Println("arr2 value", value)
}
for key, value := range arr3 {
fmt.Println("arr3 key", key)
fmt.Println("arr3 value", value)
}
for key, value := range arr4 {
fmt.Println("arr4 key", key)
fmt.Println("arr4 value", value)
}
// 二维数组声明
doubleArr1 := [2][4]int{[4]int{1, 2, 3, 4}, [4]int{5, 6, 7, 8}}
dounleArr2 := [2][4]int{{11, 22, 33, 44}, {55, 66, 77, 88}}
for key, value := range doubleArr1 {
fmt.Println("doubleArr1 key", key)
fmt.Println("doubleArr1 value", value)
}
for key, value := range dounleArr2 {
fmt.Println("doubleArr1 key", key)
fmt.Println("doubleArr1 value", value)
}
}
|
package pathfileops
import (
"os"
"strings"
"testing"
)
func TestFileAccessControl_CopyIn_01(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode).\n"+
"textCode='%v'\nError='%v'\n", textCode, err.Error())
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New().\n" +
"Error='%v' \n", err.Error())
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg).\n" +
"Error='%v' \n", err.Error())
}
fAccess2 := FileAccessControl{}
fAccess2.CopyIn(&fAccess1)
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
}
func TestFileAccessControl_CopyIn_02(t *testing.T) {
fAccess1 := FileAccessControl{}
fAccess2 := FileAccessControl{}
fAccess2.CopyIn(&fAccess1)
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
}
func TestFileAccessControl_CopyOut_01(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess2 := fAccess1.CopyOut()
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
}
func TestFileAccessControl_CopyOut_02(t *testing.T) {
fAccess1 := FileAccessControl{}
fAccess2 := fAccess1.CopyOut()
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
}
func TestFileAccessControl_Empty_01(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess2 := FileAccessControl{}
fAccess2.CopyIn(&fAccess1)
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
fAccess2.Empty()
if fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected after f2Access.Empty() fAccess2!=fAccess1. However, THEY ARE EQUAL!")
}
if fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected after f2Access.Empty() fAccess2!=fAccess1. However, THEY ARE EQUAL!")
}
fAccess1.Empty()
if !fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected after both Empty(), fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
if !fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected after both Empty() fAccess2==fAccess1. However, THEY ARE NOT EQUAL!")
}
}
func TestFileAccessControl_Empty_02(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
if !fAccess1.isInitialized {
t.Error("Error: Expected fAccess1.isInitialized=='true'. However, it is 'false'!")
}
if !fAccess1.permissions.isInitialized {
t.Error("Error: Expected fAccess1.permissions.isInitialized=='true'. However, it is 'false'!")
}
if !fAccess1.fileOpenCodes.isInitialized {
t.Error("Error: Expected fAccess1.fileOpenCodes.isInitialized=='true'. However, it is 'false'!")
}
fAccess1.Empty()
if fAccess1.isInitialized {
t.Error("Error: Expected fAccess1.isInitialized=='false'. However, it is 'true'!")
}
if fAccess1.permissions.isInitialized {
t.Error("Error: Expected fAccess1.permissions.isInitialized=='false'. However, it is 'true'!")
}
if fAccess1.fileOpenCodes.isInitialized {
t.Error("Error: Expected fAccess1.fileOpenCodes.isInitialized=='false'. However, it is 'true'!")
}
}
func TestFileAccessControl_Equal_01(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg = FileOpenConfig{}.New(). "+
"Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
textCode2 := "--w--w--w-"
fPermCfg2, err := FilePermissionConfig{}.New(textCode2)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg2, err := FileOpenConfig{}.New(FOpenType.TypeWriteOnly(),
FOpenMode.ModeCreate(), FOpenMode.ModeAppend())
if err != nil {
t.Errorf("Error returned by fOpenCfg2 = FileOpenConfig{}.New(). "+
"Error='%v' \n", err.Error())
return
}
fAccess2, err := FileAccessControl{}.New(fOpenCfg2, fPermCfg2)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
if fAccess2.Equal(&fAccess1) {
t.Error("Error: Expected fAccess2!=fAccess1. However, THEY ARE EQUAL!")
}
if fAccess1.Equal(&fAccess2) {
t.Error("Error: Expected fAccess2!=fAccess1. However, THEY ARE EQUAL!")
}
}
func TestFileAccessControl_Equal_02(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
textCode2 := "-rw-rw-rw-"
fPermCfg2, err := FilePermissionConfig{}.New(textCode2)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode2). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fAccess2, err := FileAccessControl{}.New(fOpenCfg, fPermCfg2)
if err != nil {
t.Errorf("Error returned by fAccess2 = FileAccessControl{}.New("+
"fOpenCfg, fPermCfg2). Error='%v' \n", err.Error())
return
}
if fAccess1.Equal(&fAccess2) {
t.Error("Expected that fAccess1 != fAccess2 because permissions are different. " +
"Instead, they are EQUAL!")
}
}
func TestFileAccessControl_GetCompositeFileOpenCode_01(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
accessFileOpenCode, err := fAccess1.GetCompositeFileOpenCode()
if err != nil {
t.Errorf("Error returned by fAccess1.GetCompositeFileOpenCode() "+
"Error='%v' \n", err.Error())
return
}
originalFileOpenCode, err := fOpenCfg.GetCompositeFileOpenCode()
if err != nil {
t.Errorf("Error returned by fOpenCfg.GetCompositeFileOpenCode() "+
"Error='%v' \n", err.Error())
return
}
if originalFileOpenCode != accessFileOpenCode {
t.Errorf("Error: Expected originalFileOpenCode to Equal accessFileOpenCode. "+
"THEY ARE NOT EQUAL! originalFileOpenCode='%s' accessFileOpenCode='%s' ",
fOpenCfg.GetFileOpenNarrativeText(), fAccess1.fileOpenCodes.GetFileOpenNarrativeText())
}
}
func TestFileAccessControl_GetCompositeFileOpenCode_02(t *testing.T) {
textCode := "dr--r--r--"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
accessFileOpenCode, err := fAccess1.GetCompositeFileOpenCode()
if err != nil {
t.Errorf("Error returned by fAccess1.GetCompositeFileOpenCode() "+
"Error='%v' \n", err.Error())
return
}
originalFileOpenCode, err := fOpenCfg.GetCompositeFileOpenCode()
if err != nil {
t.Errorf("Error returned by fOpenCfg.GetCompositeFileOpenCode() "+
"Error='%v' \n", err.Error())
return
}
if originalFileOpenCode != accessFileOpenCode {
t.Errorf("Error: Expected originalFileOpenCode to Equal accessFileOpenCode. "+
"THEY ARE NOT EQUAL! originalFileOpenCode='%s' accessFileOpenCode='%s' ",
fOpenCfg.GetFileOpenNarrativeText(), fAccess1.fileOpenCodes.GetFileOpenNarrativeText())
}
}
func TestFileAccessControl_GetCompositeFileOpenCode_03(t *testing.T) {
fAccess1 := FileAccessControl{}
_, err := fAccess1.GetCompositeFileOpenCode()
if err == nil {
t.Error("Expected error from fAccess1.GetCompositeFileOpenCode() " +
"because fAccess1 is uninitialized. However, NO ERROR WAS RETURN! \n")
}
}
func TestFileAccessControl_GetCompositeFileOpenCode_04(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.fileOpenCodes.fileOpenType = FileOpenType(-99)
_, err = fAccess1.GetCompositeFileOpenCode()
if err == nil {
t.Error("Expected error return from fAccess1.GetCompositeFileOpenCode() " +
"because File Open Type Code is invalid. However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetCompositePermissionCode01(t *testing.T) {
textCode := "-rw-rw-rw-"
expectedFMode := os.FileMode(0666)
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fMode, err := fAccess1.GetCompositePermissionMode()
if err != nil {
t.Errorf("Error returned by fAccess1.GetCompositePermissionMode(). "+
"Error='%v' \n", err.Error())
return
}
if expectedFMode != fMode {
t.Error("Expected File Mode == 0666. Actual File Mode is different")
}
}
func TestFileAccessControl_GetCompositePermissionCode02(t *testing.T) {
textCode := "-rwxrwxrwx"
expectedFMode := os.FileMode(0777)
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fMode, err := fAccess1.GetCompositePermissionMode()
if err != nil {
t.Errorf("Error returned by fAccess1.GetCompositePermissionMode(). "+
"Error='%v' \n", err.Error())
return
}
if expectedFMode != fMode {
t.Error("Expected File Mode == 0666. Actual File Mode is different")
}
}
func TestFileAccessControl_GetCompositePermissionCode03(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions = FilePermissionConfig{}
_, err = fAccess1.GetCompositePermissionMode()
if err == nil {
t.Error("Expected an error return from fAccess1.GetCompositePermissionMode() " +
"because fAcess1.permissions was uninitialized. However, NO ERROR WAS RETURNED! \n")
return
}
}
func TestFileAccessControl_GetCompositePermissionCode04(t *testing.T) {
fAccess1 := FileAccessControl{}
_, err := fAccess1.GetCompositePermissionMode()
if err == nil {
t.Error("Expected error return from fAccess1.GetCompositePermissionMode() " +
"because it is uninitialized. However, NO ERROR WAS RETURNED!\n")
return
}
}
func TestFileAccessControl_GetCompositePermissionCode05(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions.isInitialized = false
_, err = fAccess1.GetCompositePermissionMode()
if err == nil {
t.Error("Expected an error returned from fAccess1.GetCompositePermissionMode() " +
"because fAccess1.permissions.isInitialized = false " +
"However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetCompositePermissionModeText_01(t *testing.T) {
textCode := "-rw-rw-rw-"
expectedFMode := "0666"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fModeText := fAccess1.GetCompositePermissionModeText()
if expectedFMode != fModeText {
t.Errorf("Expected File Mode == '%v'. Actual File Mode Text == '%v'. ",
expectedFMode, fModeText)
}
}
func TestFileAccessControl_GetCompositePermissionModeText_02(t *testing.T) {
textCode := "-rwxrwxrwx"
expectedFMode := "0777"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fModeText := fAccess1.GetCompositePermissionModeText()
if expectedFMode != fModeText {
t.Errorf("Expected File Mode == '%v'. Actual File Mode Text == '%v'. ",
expectedFMode, fModeText)
}
}
func TestFileAccessControl_GetCompositePermissionModeText_03(t *testing.T) {
textCode := "-rwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions = FilePermissionConfig{}
fModeText := fAccess1.GetCompositePermissionModeText()
if strings.Index(strings.ToLower(fModeText), "invalid") == -1 {
t.Error("Expected fModeText of contain 'invalid' because fAccess1.permissions" +
" is empty. However, no error was detected!")
}
}
func TestFileAccessControl_GetCompositePermissionModeText_04(t *testing.T) {
fAccess1 := FileAccessControl{}
fModeText := fAccess1.GetCompositePermissionModeText()
if strings.Index(strings.ToLower(fModeText), "invalid") == -1 {
t.Error("Expected error message containing 'invalid. No such error " +
"message was received.")
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_01(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fOpenCode, fPermCode, err := fAccess1.GetFileOpenAndPermissionCodes()
if err != nil {
t.Errorf("Error returned by fAccess1.GetFileOpenAndPermissionCodes() "+
"Error='%v' \n", err.Error())
return
}
if fOpenCode != int(FOpenType.TypeReadWrite()) {
t.Error("Expected fOpenCode to contain FOpenType.TypeReadWrite(). It did Not!")
}
if textCode != fPermCode.String() {
t.Errorf("Expected fPermCode.String() == '%v'. Actual File Mode Text == '%v'. ",
textCode, fPermCode.String())
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_02(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fOpenCode, fPermCode, err := fAccess1.GetFileOpenAndPermissionCodes()
if err != nil {
t.Errorf("Error returned by fAccess1.GetFileOpenAndPermissionCodes() "+
"Error='%v' \n", err.Error())
return
}
if fOpenCode != int(FOpenType.TypeReadOnly()) {
t.Error("Expected fOpenCode to contain FOpenType.TypeReadWrite(). It did Not!")
}
if textCode != fPermCode.String() {
t.Errorf("Expected fPermCode.String() == '%v'. Actual File Mode Text == '%v'. ",
textCode, fPermCode.String())
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_03(t *testing.T) {
textCode := "drwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeWriteOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fOpenCode, fPermCode, err := fAccess1.GetFileOpenAndPermissionCodes()
if err != nil {
t.Errorf("Error returned by fAccess1.GetFileOpenAndPermissionCodes() "+
"Error='%v' \n", err.Error())
return
}
if fOpenCode != int(FOpenType.TypeWriteOnly()) {
t.Error("Expected fOpenCode to contain FOpenType.TypeReadWrite(). It did Not!")
}
if textCode != fPermCode.String() {
t.Errorf("Expected fPermCode.String() == '%v'. Actual File Mode Text == '%v'. ",
textCode, fPermCode.String())
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_04(t *testing.T) {
textCode := "drwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeWriteOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.fileOpenCodes = FileOpenConfig{}
_, _, err = fAccess1.GetFileOpenAndPermissionCodes()
if err == nil {
t.Errorf("Expected an error from fAccess1.GetFileOpenAndPermissionCodes() " +
"because fAcess1.fileOpenCodes are uninitialized. However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_05(t *testing.T) {
textCode := "drwxrwxrwx"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeWriteOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions = FilePermissionConfig{}
_, _, err = fAccess1.GetFileOpenAndPermissionCodes()
if err == nil {
t.Errorf("Expected an error from fAccess1.GetFileOpenAndPermissionCodes() " +
"because fAcess1.permissions are uninitialized. However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_06(t *testing.T) {
fAccess1 := FileAccessControl{}
_, _, err := fAccess1.GetFileOpenAndPermissionCodes()
if err == nil {
t.Errorf("Expected an error from fAccess1.GetFileOpenAndPermissionCodes() " +
"because fAcess1 was uninitialized. However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_07(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.fileOpenCodes.fileOpenType = FileOpenType(-999)
_, _, err = fAccess1.GetFileOpenAndPermissionCodes()
if err == nil {
t.Error("Expected an error return from fAccess1.GetFileOpenAndPermissionCodes() " +
"because fAccess1.fileOpenCodes.fileOpenType is invalid. " +
"However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetFileOpenAndPermissionCodes_08(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadWrite(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions.fileMode = os.FileMode(999999)
_, _, err = fAccess1.GetFileOpenAndPermissionCodes()
if err == nil {
t.Error("Expected an error return from fAccess1.GetFileOpenAndPermissionCodes() " +
"because fAccess1.fileOpenCodes.fileOpenType is invalid. " +
"However, NO ERROR WAS RETURNED! \n")
}
}
func TestFileAccessControl_GetFileOpenConfig_01(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1FileOpenCfg, err := fAccess1.GetFileOpenConfig()
if err != nil {
t.Errorf("Error returned by fAccess1.GetFileOpenConfig() "+
"Error='%v' \n", err.Error())
return
}
if !fOpenCfg.Equal(&fAccess1FileOpenCfg) {
t.Error("Expected original fOpenCfg to equal returned file open configuration. " +
"The two are NOT equal!")
}
if !fAccess1FileOpenCfg.Equal(&fOpenCfg) {
t.Error("Expected returned fAccess1FileOpenCfg to equal the original file open " +
"configuration. The two are NOT equal!")
}
}
func TestFileAccessControl_GetFileOpenConfig_02(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions = FilePermissionConfig{}
_, err = fAccess1.GetFileOpenConfig()
if err == nil {
t.Error("Expected error from fAccess1.GetFileOpenConfig() " +
"because fAccess1.permissions is uninitialized. " +
"However, NO ERROR WAS RETURNED!\n")
}
}
func TestFileAccessControl_GetFileOpenConfig_03(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.fileOpenCodes = FileOpenConfig{}
_, err = fAccess1.GetFileOpenConfig()
if err == nil {
t.Error("Expected error from fAccess1.GetFileOpenConfig() " +
"because fAccess1.fileOpenCodes is uninitialized. " +
"However, NO ERROR WAS RETURNED!\n")
}
}
func TestFileAccessControl_GetFileOpenConfig_04(t *testing.T) {
fAccess1 := FileAccessControl{}
_, err := fAccess1.GetFileOpenConfig()
if err == nil {
t.Error("Expected error from fAccess1.GetFileOpenConfig() " +
"because fAccess1 is uninitialized. " +
"However, NO ERROR WAS RETURNED!\n")
}
}
func TestFileAccessControl_GetFilePermissionConfig_01(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fActualPermCfg, err := fAccess1.GetFilePermissionConfig()
if err != nil {
t.Errorf("Error returned by fAccess1.GetFilePermissionConfig() "+
"Error='%v' \n", err.Error())
return
}
if !fPermCfg.Equal(&fActualPermCfg) {
t.Error("Expected the original file permission config to equal the " +
"returned file permission config. They ARE NOT EQUAL!")
}
if !fActualPermCfg.Equal(&fPermCfg) {
t.Error("Expected the returned file permission config to equal the " +
"original file permission config. They ARE NOT EQUAL!")
}
}
func TestFileAccessControl_GetFilePermissionConfig_02(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.fileOpenCodes = FileOpenConfig{}
_, err = fAccess1.GetFilePermissionConfig()
if err == nil {
t.Error("Expected error return from fAccess1.GetFilePermissionConfig() " +
"because fAccess1.fileOpenCodes are uninitialized. \n")
}
}
func TestFileAccessControl_GetFilePermissionConfig_03(t *testing.T) {
textCode := "-rw-rw-rw-"
fPermCfg, err := FilePermissionConfig{}.New(textCode)
if err != nil {
t.Errorf("Error returned by FilePermissionConfig{}.New(textCode). "+
"textCode='%v' Error='%v'", textCode, err.Error())
return
}
fOpenCfg, err := FileOpenConfig{}.New(FOpenType.TypeReadOnly(),
FOpenMode.ModeNone())
if err != nil {
t.Errorf("Error returned by fOpenCfg.New(). Error='%v' \n", err.Error())
return
}
fAccess1, err := FileAccessControl{}.New(fOpenCfg, fPermCfg)
if err != nil {
t.Errorf("Error returned by FileAccessControl{}.New("+
"fOpenCfg, fPermCfg). Error='%v' \n", err.Error())
return
}
fAccess1.permissions = FilePermissionConfig{}
_, err = fAccess1.GetFilePermissionConfig()
if err == nil {
t.Error("Expected error return from fAccess1.GetFilePermissionConfig() " +
"because fAccess1.permissions are uninitialized. \n")
}
}
func TestFileAccessControl_GetFilePermissionConfig_04(t *testing.T) {
fAccess1 := FileAccessControl{}
_, err := fAccess1.GetFilePermissionConfig()
if err == nil {
t.Error("Expected error return from fAccess1.GetFilePermissionConfig() " +
"because fAccess1 is uninitialized. \n")
}
}
|
package dushengchen
/**
Submission:
https://leetcode.com/submissions/detail/372743143/
Runtime: 0 ms, faster than 100.00% of Go online submissions for Permutations.
Memory Usage: 2.7 MB, less than 51.11% of Go online submissions for Permutations.
Next challenges:
Permutations II
Permutation Sequence
Combinations
*/
func permute(nums []int) [][]int {
if len(nums) == 0 {
return nil
} else if len(nums) == 1 {
return [][]int{[]int{nums[0]}}
}
ret := [][]int{}
var x []int
subs := permute(nums[1:])
for i := 0; i < len(nums); i++ {
for _, sub := range subs {
x = InsertToSlice(sub, nums[0], i)
// fmt.Println(i, nums, sub, x)
ret = append(ret, x)
}
}
return ret
}
|
package main
import (
"fmt"
"io"
"github.com/pkg/errors"
)
var (
version = "v0.0.0+unknown" // populated by goreleaser
)
// VersionOps describes printing version string.
type VersionOp struct{}
func (op VersionOp) Run(stdout, _ io.Writer) error {
_, err := fmt.Fprintf(stdout, "%s\n", version)
return errors.Wrap(err, "write error")
}
|
// Package source models a single audio source
package source
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/go-mix/mix/bind/debug"
"github.com/go-mix/mix/bind/sample"
"github.com/go-mix/mix/bind/spec"
)
// TODO: test multi-channel source audio files
func TestBase(t *testing.T) {
// TODO: Test Source Base
}
func TestLoad_IntVsFloat(t *testing.T) {
debug.Configure(true)
testSourceSetup(44100, 1)
sourceFloat := New("testdata/Float32bitLittleEndian48000HzEstéreo.wav")
assert.NotNil(t, sourceFloat)
assert.Equal(t, spec.AudioF32, sourceFloat.Spec().Format)
sourceInt := New("testdata/Signed16bitLittleEndian44100HzMono.wav")
assert.NotNil(t, sourceInt)
assert.Equal(t, spec.AudioS16, sourceInt.Spec().Format)
}
func TestLoad_FAIL(t *testing.T) {
pathFail := "testdata/ThisShouldFailBecauseItDoesNotExist.wav"
defer func() {
msg := recover()
assert.IsType(t, "", msg)
assert.Equal(t, "File not found: "+pathFail, msg)
}()
debug.Configure(true)
testSourceSetup(44100, 1)
source := New(pathFail)
assert.NotNil(t, source)
}
func TestLoadSigned16bitLittleEndian44100HzMono(t *testing.T) {
debug.Configure(true)
testSourceSetup(44100, 1)
source := New("testdata/Signed16bitLittleEndian44100HzMono.wav")
assert.NotNil(t, source)
totalSoundMovement := testSourceAssertSound(t, source, 1)
assert.True(t, totalSoundMovement > .001)
}
func TestLoadFloat32bitLittleEndian48000HzEstéreo(t *testing.T) {
debug.Configure(true)
testSourceSetup(48000, 2)
source := New("testdata/Float32bitLittleEndian48000HzEstéreo.wav")
assert.NotNil(t, source)
totalSoundMovement := testSourceAssertSound(t, source, 2)
assert.True(t, totalSoundMovement > .001)
}
func TestOutput(t *testing.T) {
// TODO: Test Source plays audio
}
func TestSampleAt(t *testing.T) {
// TODO: Test Source SampleAt
}
func TestState(t *testing.T) {
// TODO: Test Source State
}
func TestStateName(t *testing.T) {
// TODO: Test Source StateName
}
func TestLength(t *testing.T) {
// TODO: Test Source reports length
}
func TestTeardown(t *testing.T) {
// TODO: Test Source Teardown
}
func TestMixer_mixVolume(t *testing.T) {
masterChannelsFloat = 1
assert.Equal(t, sample.Value(0), volume(0, 0, 0))
assert.Equal(t, sample.Value(1), volume(0, 1, .5))
masterChannelsFloat = 2
assert.Equal(t, sample.Value(1), volume(0, 1, -.5))
assert.Equal(t, sample.Value(.75), volume(1, 1, .5))
assert.Equal(t, sample.Value(.5), volume(0, .5, 0))
assert.Equal(t, sample.Value(.5), volume(1, .5, 1))
masterChannelsFloat = 3
assert.Equal(t, sample.Value(1), volume(0, 1, 0))
assert.Equal(t, sample.Value(0.6666666666666667), volume(1, 1, -1))
assert.Equal(t, sample.Value(0.6666666666666667), volume(2, .5, -.5))
assert.Equal(t, sample.Value(0.6666666666666667), volume(1, .5, 1))
masterChannelsFloat = 4
assert.Equal(t, sample.Value(1), volume(0, 1, -1))
assert.Equal(t, sample.Value(1), volume(1, 1, 0))
assert.Equal(t, sample.Value(.75), volume(2, .5, .5))
assert.Equal(t, sample.Value(.625), volume(3, .5, -.5))
}
//
// Private
//
func testSourceSetup(freq float64, channels int) {
Configure(spec.AudioSpec{
Freq: freq,
Format: spec.AudioF32,
Channels: channels,
})
}
func testSourceAssertSound(t *testing.T, source *Source, channels int) (totalSoundMovement sample.Value) {
for tz := spec.Tz(0); tz < source.Length(); tz++ {
smp := source.SampleAt(tz, 1, 0)
assert.Equal(t, channels, len(smp))
for c := 0; c < channels; c++ {
totalSoundMovement += smp[c].Abs()
}
}
return
}
|
// 要生成godoc,注释必须在被注解的对象上面,中间不能有空行。
// 每个package对应一个godoc页面。
//
// 这里是一个新的段落,用空的注释行分段。
//
// 代码格式前面加3个空格,
// 这里是代码格式。
//package上面的注释生成为Overview模块。
package godoc
import (
"fmt"
)
// 这里是对const的注释。
const (
C1 = "asdf" // 大写的exported常量,可以生成为godoc。
c2 = 12 // 小写的unexported变量,不能生成为godoc。
)
// 这里是对struct ObjectA的注解
type ObjectA struct {
Name string // 大写的exported变量和方法,可以生成为godoc。
age int // 小写的exported变量和方法,不能生成为godoc。
}
type objectB struct {
Name string
age int
}
// 方法GetOAName的注释
func (oa *ObjectA) GetOAName() string {
return oa.Name
}
// Foo方法是exported方法,会生成为godoc。
func Foo() {
fmt.Println("Foo!")
}
// ob的方法不能生成为godoc
func (ob *objectB) GetOAName() string {
return ob.Name
}
|
package main
import (
"bufio"
"fmt"
"io"
"os"
)
func main() {
//打开文件
//概念说明:file的叫法
//1.file叫file对象
//2.file叫file指针
//3.file叫file文件句柄
file, err := os.Open("D:/test.txt") //以读的模式打开文件
if err != nil {
fmt.Println("打开文件错误", err) //如果没有这个文件The system cannot find the file specified.
}
fmt.Println("打开的文件", file)
//函数退出时,要及时的关闭文件
defer file.Close() //要及时关闭file句柄,否则会有内存泄漏
//创建一个带缓冲的*Reader(输入流),是带缓冲的,默认缓冲大小为4096,4k,适合读取数据量大的文件,减少io操作提高性能
r := bufio.NewReader(file)
for {
str, err := r.ReadString('\n') //一直读到截止符号
if err == io.EOF { //io.EOF表示文件的末尾
break
}
fmt.Print(str)
}
// 第二次就读取不到了,流水,第一次流完了就没了
// for {
// str, err := r.ReadString('\n') //一直读到截止符号
// if err == io.EOF { //io.EOF表示文件的末尾
// fmt.Println("..", str)
// break
// }
// }
}
//常用的文件操作函数和方法
// 1)打开一个文件进行读操作
// os.Open(name string)(*File,error)
// Open打开一个文件用于读取。如果操作成功,返回的文件对象的方法可用于读取数据;
// 对应的文件描述符具有O_RDONLY模式。如果出错,错误底层类型是*PathError。
// 2)关闭一个文件
// File.Close()
// 关闭文件,使文件不能用于读写。它返回可能出现的错误。
// 3)其他函数和方法案例讲解(读文件)
// (1)读取文件内容并显示在终端(带缓冲区的方式),适合大文件
// 方法: os.Open,file.close,bufio.NewReader(),reader.ReadString方法和函数
// (2)读取文件的内容并显示在终端(使用ioutil一次将整个文件读入到内存中),这种方式适用于文件不大的情况。
// 方法: ioutil.ReadFile
|
package gorm_client
import (
"github.com/jinzhu/gorm"
)
type GormClient struct {
master *gorm.DB
slave *gorm.DB
}
func NewClient() *GormClient {
return &GormClient{}
}
var Client *GormClient
func Dial(dialect string, args ...interface{}) (*GormClient, error) {
Client = NewClient()
return Client.Dial(dialect, args...)
}
func (c *GormClient) Dial(dialect string, args ...interface{}) (*GormClient, error) {
var err error
// master dial
c.master, err = gorm.Open(dialect, args...)
if err != nil {
return c, err
}
// slave dial
c.slave, err = gorm.Open(dialect, args...)
if err != nil {
return c, err
}
return c, nil
}
func (c *GormClient) Master() *gorm.DB {
return c.master
}
func (c *GormClient) Slave() *gorm.DB {
return c.slave
}
|
package syncer
import (
"context"
"github.com/pkg/errors"
"github.com/sourcegraph/sourcegraph/internal/api"
"github.com/sourcegraph/sourcegraph/internal/db"
"github.com/sourcegraph/sourcegraph/internal/errcode"
"github.com/sourcegraph/sourcegraph/internal/types"
"github.com/sourcegraph/sourcegraph/schema"
)
func loadRepo(ctx context.Context, tx RepoStore, id api.RepoID) (*types.Repo, error) {
r, err := tx.Get(ctx, id)
if err != nil {
if errcode.IsNotFound(err) {
return nil, errors.Errorf("repo not found: %d", id)
}
return nil, err
}
return r, nil
}
func loadExternalService(ctx context.Context, esStore ExternalServiceStore, repo *types.Repo) (*types.ExternalService, error) {
var externalService *types.ExternalService
args := db.ExternalServicesListOptions{IDs: repo.ExternalServiceIDs()}
es, err := esStore.List(ctx, args)
if err != nil {
return nil, err
}
for _, e := range es {
cfg, err := e.Configuration()
if err != nil {
return nil, err
}
switch cfg := cfg.(type) {
case *schema.GitHubConnection:
if cfg.Token != "" {
externalService = e
}
case *schema.BitbucketServerConnection:
if cfg.Token != "" {
externalService = e
}
case *schema.GitLabConnection:
if cfg.Token != "" {
externalService = e
}
}
if externalService != nil {
break
}
}
if externalService == nil {
return nil, errors.Errorf("no external services found for repo %q", repo.Name)
}
return externalService, nil
}
|
package main
import (
"fmt"
"log"
"math"
"os"
"path/filepath"
"the-go-programming-language/ch2/exs_2.2/unitconv"
)
type conversion int
const (
c2F conversion = iota + 1
m2Ft
kg2Lbs
)
func (c conversion) String() string {
return []string{"Celsius/Fahrenheit", "Meter/Feet", "Kilogram/Pound"}[c-1]
}
func main() {
_, prog := filepath.Split(os.Args[0])
log.SetPrefix(fmt.Sprintf("%s: ", prog))
log.SetFlags(log.Flags() &^ log.LstdFlags)
conv := scanInt(
int(c2F), int(kg2Lbs),
fmt.Sprintf("Select conversion:\n%d. %[1]s\n%d. %[2]s\n%d. %[3]s", c2F, m2Ft, kg2Lbs),
"Wrong input",
)
val := scanFloat(
math.MinInt64, math.MaxInt64,
"Input any value:",
"Wrong input",
)
fmt.Println("Result:")
switch conversion(conv) {
case c2F:
f := unitconv.Fahrenheit(val)
c := unitconv.Celsius(val)
fmt.Printf("%s = %s, %s = %s\n", f, unitconv.F2C(f), c, unitconv.C2F(c))
case m2Ft:
ft := unitconv.Feet(val)
m := unitconv.Meter(val)
fmt.Printf("%s = %s, %s = %s\n", ft, unitconv.Ft2M(ft), m, unitconv.M2Ft(m))
case kg2Lbs:
lbs := unitconv.Pound(val)
kg := unitconv.Kilogram(val)
fmt.Printf("%s = %s, %s = %s\n", lbs, unitconv.Lbs2Kg(lbs), kg, unitconv.Kg2Lbs(kg))
}
}
func scanInt(min, max int, prompt string, failure string) int {
return int(scanFloat(float64(min), float64(max), prompt, failure))
}
func scanFloat(min, max float64, prompt string, failure string) float64 {
fmt.Println(prompt)
for {
var value float64
if _, err := fmt.Scanln(&value); err != nil {
fmt.Println(failure)
log.Printf("scanFloat: %v", err)
flushStdin()
} else if !(value >= min && value <= max) {
fmt.Println(failure)
} else {
return value
}
}
}
func flushStdin() {
var sink string
fmt.Scanln(&sink)
}
|
package medium
import "testing"
type ListNode struct {
Val int
Next *ListNode
}
func Test02(t *testing.T) {
var l1 *ListNode
var l2 *ListNode
addNode(l1,l2,0)
}
func addNode(l1 *ListNode, l2 *ListNode, pre int) (*ListNode){
if l1==nil && l2==nil {
if pre !=0 {
return &ListNode{Val:pre}
} else {
return nil
}
}
if l1 == nil{
l1 = &ListNode{Val:0}
}
if l2 == nil{
l2 = &ListNode{Val:0}
}
totalSum := l1.Val + l2.Val + pre
i,j := totalSum / 10 , totalSum %10
l := new(ListNode)
l.Val = j
l.Next = addNode(l1.Next, l2.Next, i)
return l
}
|
package scanner
import (
"h12.io/dfa"
"h12.io/gombi/scan"
)
var tokMatcherCache =
&scan.Matcher{
EOF: 1,
Illegal: 0,
M: &dfa.M{
States: dfa.States{
{
Table: dfa.TransTable{
{0x09, 0x09, 1},
{0x0a, 0x0a, 2},
{0x0d, 0x0d, 3},
{0x20, 0x20, 4},
{0x21, 0x21, 5},
{0x22, 0x22, 6},
{0x25, 0x25, 7},
{0x26, 0x26, 8},
{0x27, 0x27, 9},
{0x28, 0x28, 10},
{0x29, 0x29, 11},
{0x2a, 0x2a, 12},
{0x2b, 0x2b, 13},
{0x2c, 0x2c, 14},
{0x2d, 0x2d, 15},
{0x2e, 0x2e, 16},
{0x2f, 0x2f, 17},
{0x30, 0x30, 18},
{0x31, 0x39, 19},
{0x3a, 0x3a, 20},
{0x3b, 0x3b, 21},
{0x3c, 0x3c, 22},
{0x3d, 0x3d, 23},
{0x3e, 0x3e, 24},
{0x41, 0x5a, 25},
{0x5b, 0x5b, 26},
{0x5d, 0x5d, 27},
{0x5e, 0x5e, 28},
{0x5f, 0x5f, 25},
{0x60, 0x60, 29},
{0x61, 0x61, 25},
{0x62, 0x62, 30},
{0x63, 0x63, 31},
{0x64, 0x64, 32},
{0x65, 0x65, 33},
{0x66, 0x66, 34},
{0x67, 0x67, 35},
{0x68, 0x68, 25},
{0x69, 0x69, 36},
{0x6a, 0x6c, 25},
{0x6d, 0x6d, 37},
{0x6e, 0x6f, 25},
{0x70, 0x70, 38},
{0x71, 0x71, 25},
{0x72, 0x72, 39},
{0x73, 0x73, 40},
{0x74, 0x74, 41},
{0x75, 0x75, 25},
{0x76, 0x76, 42},
{0x77, 0x7a, 25},
{0x7b, 0x7b, 43},
{0x7c, 0x7c, 44},
{0x7d, 0x7d, 45},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 59},
{0xda, 0xda, 48},
{0xdb, 0xdb, 60},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 64},
{0xe0, 0xe0, 65},
{0xe1, 0xe1, 66},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 72},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 74},
{0xf0, 0xf0, 75},
}},
{
Label: 89,
Table: dfa.TransTable{
{0x09, 0x09, 1},
{0x0d, 0x0d, 3},
{0x20, 0x20, 4},
}},
{
Label: 88,
},
{
Label: 89,
Table: dfa.TransTable{
{0x09, 0x09, 1},
{0x0d, 0x0d, 3},
{0x20, 0x20, 4},
}},
{
Label: 89,
Table: dfa.TransTable{
{0x09, 0x09, 1},
{0x0d, 0x0d, 3},
{0x20, 0x20, 4},
}},
{
Label: 45,
Table: dfa.TransTable{{0x3d, 0x3d, 76},
}},
{
Table: dfa.TransTable{
{0x01, 0x09, 6},
{0x0b, 0x21, 6},
{0x22, 0x22, 77},
{0x23, 0x5b, 6},
{0x5c, 0x5c, 78},
{0x5d, 0x7f, 6},
{0xc2, 0xdf, 79},
{0xe0, 0xe0, 80},
{0xe1, 0xee, 81},
{0xef, 0xef, 82},
{0xf0, 0xf0, 83},
{0xf1, 0xf3, 84},
{0xf4, 0xf4, 85},
}},
{
Label: 18,
Table: dfa.TransTable{{0x3d, 0x3d, 86},
}},
{
Label: 19,
Table: dfa.TransTable{
{0x26, 0x26, 87},
{0x3d, 0x3d, 88},
{0x5e, 0x5e, 89},
}},
{
Table: dfa.TransTable{
{0x01, 0x09, 90},
{0x0b, 0x26, 90},
{0x28, 0x5b, 90},
{0x5c, 0x5c, 91},
{0x5d, 0x7f, 90},
{0xc2, 0xdf, 92},
{0xe0, 0xe0, 93},
{0xe1, 0xee, 94},
{0xef, 0xef, 95},
{0xf0, 0xf0, 96},
{0xf1, 0xf3, 97},
{0xf4, 0xf4, 98},
}},
{
Label: 51,
},
{
Label: 56,
},
{
Label: 16,
Table: dfa.TransTable{{0x3d, 0x3d, 99},
}},
{
Label: 14,
Table: dfa.TransTable{
{0x2b, 0x2b, 100},
{0x3d, 0x3d, 101},
}},
{
Label: 54,
},
{
Label: 15,
Table: dfa.TransTable{
{0x2d, 0x2d, 102},
{0x3d, 0x3d, 103},
}},
{
Label: 55,
Table: dfa.TransTable{
{0x2e, 0x2e, 104},
{0x30, 0x39, 105},
}},
{
Label: 17,
Table: dfa.TransTable{
{0x2a, 0x2a, 106},
{0x2f, 0x2f, 107},
{0x3d, 0x3d, 108},
}},
{
Label: 7,
Table: dfa.TransTable{
{0x2e, 0x2e, 109},
{0x30, 0x37, 110},
{0x38, 0x39, 111},
{0x45, 0x45, 112},
{0x58, 0x58, 113},
{0x65, 0x65, 112},
{0x69, 0x69, 114},
{0x78, 0x78, 113},
}},
{
Label: 7,
Table: dfa.TransTable{
{0x2e, 0x2e, 109},
{0x30, 0x39, 19},
{0x45, 0x45, 112},
{0x65, 0x65, 112},
{0x69, 0x69, 114},
}},
{
Label: 60,
Table: dfa.TransTable{{0x3d, 0x3d, 115},
}},
{
Label: 59,
},
{
Label: 42,
Table: dfa.TransTable{
{0x2d, 0x2d, 116},
{0x3c, 0x3c, 117},
{0x3d, 0x3d, 118},
}},
{
Label: 44,
Table: dfa.TransTable{{0x3d, 0x3d, 119},
}},
{
Label: 43,
Table: dfa.TransTable{
{0x3d, 0x3d, 120},
{0x3e, 0x3e, 121},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 52,
},
{
Label: 57,
},
{
Label: 21,
Table: dfa.TransTable{{0x3d, 0x3d, 130},
}},
{
Table: dfa.TransTable{
{0x01, 0x5f, 29},
{0x60, 0x60, 131},
{0x61, 0x7f, 29},
{0xc2, 0xdf, 132},
{0xe0, 0xe0, 133},
{0xe1, 0xee, 134},
{0xef, 0xef, 135},
{0xf0, 0xf0, 136},
{0xf1, 0xf3, 137},
{0xf4, 0xf4, 138},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 139},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 140},
{0x62, 0x67, 25},
{0x68, 0x68, 141},
{0x69, 0x6e, 25},
{0x6f, 0x6f, 142},
{0x70, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 143},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6b, 25},
{0x6c, 0x6c, 144},
{0x6d, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 145},
{0x62, 0x6e, 25},
{0x6f, 0x6f, 146},
{0x70, 0x74, 25},
{0x75, 0x75, 147},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6e, 25},
{0x6f, 0x6f, 148},
{0x70, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x65, 25},
{0x66, 0x66, 149},
{0x67, 0x6c, 25},
{0x6d, 0x6d, 150},
{0x6e, 0x6e, 151},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 152},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 153},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 154},
{0x62, 0x64, 25},
{0x65, 0x65, 155},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 156},
{0x66, 0x73, 25},
{0x74, 0x74, 157},
{0x75, 0x76, 25},
{0x77, 0x77, 158},
{0x78, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x78, 25},
{0x79, 0x79, 159},
{0x7a, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 160},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 53,
},
{
Label: 20,
Table: dfa.TransTable{
{0x3d, 0x3d, 161},
{0x7c, 0x7c, 162},
}},
{
Label: 58,
},
{
Table: dfa.TransTable{
{0xaa, 0xaa, 25},
{0xb5, 0xb5, 25},
{0xba, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x96, 25},
{0x98, 0xb6, 25},
{0xb8, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x86, 0x91, 25},
{0xa0, 0xa4, 25},
{0xac, 0xac, 25},
{0xae, 0xae, 25},
}},
{
Table: dfa.TransTable{
{0xb0, 0xb4, 25},
{0xb6, 0xb7, 25},
{0xba, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x86, 0x86, 25},
{0x88, 0x8a, 25},
{0x8c, 0x8c, 25},
{0x8e, 0xa1, 25},
{0xa3, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xb5, 25},
{0xb7, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x8a, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa7, 25},
{0xb1, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x96, 25},
{0x99, 0x99, 25},
{0xa1, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x87, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0xaa, 25},
{0xb0, 0xb2, 25},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8a, 25},
{0xae, 0xaf, 25},
{0xb1, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x93, 25},
{0x95, 0x95, 25},
{0xa5, 0xa6, 25},
{0xae, 0xaf, 25},
{0xba, 0xbc, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0x92, 0xaf, 25},
}},
{
Table: dfa.TransTable{{0x8d, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa5, 25},
{0xb1, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x8a, 0xaa, 25},
{0xb4, 0xb5, 25},
{0xba, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa0, 163},
{0xa1, 0xa1, 164},
{0xa2, 0xa2, 165},
{0xa4, 0xa4, 166},
{0xa5, 0xa5, 167},
{0xa6, 0xa6, 168},
{0xa7, 0xa7, 169},
{0xa8, 0xa8, 170},
{0xa9, 0xa9, 171},
{0xaa, 0xaa, 172},
{0xab, 0xab, 173},
{0xac, 0xac, 174},
{0xad, 0xad, 175},
{0xae, 0xae, 176},
{0xaf, 0xaf, 177},
{0xb0, 0xb0, 178},
{0xb1, 0xb1, 179},
{0xb2, 0xb2, 178},
{0xb3, 0xb3, 180},
{0xb4, 0xb4, 181},
{0xb5, 0xb5, 182},
{0xb6, 0xb6, 183},
{0xb7, 0xb7, 184},
{0xb8, 0xb8, 185},
{0xb9, 0xb9, 184},
{0xba, 0xba, 186},
{0xbb, 0xbb, 187},
{0xbc, 0xbc, 188},
{0xbd, 0xbd, 189},
{0xbe, 0xbe, 190},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 191},
{0x81, 0x81, 192},
{0x82, 0x82, 193},
{0x83, 0x83, 194},
{0x84, 0x88, 48},
{0x89, 0x89, 195},
{0x8a, 0x8a, 196},
{0x8b, 0x8b, 197},
{0x8c, 0x8c, 198},
{0x8d, 0x8d, 199},
{0x8e, 0x8e, 200},
{0x8f, 0x8f, 201},
{0x90, 0x90, 202},
{0x91, 0x98, 48},
{0x99, 0x99, 203},
{0x9a, 0x9a, 204},
{0x9b, 0x9b, 205},
{0x9c, 0x9c, 206},
{0x9d, 0x9d, 207},
{0x9e, 0x9e, 208},
{0x9f, 0x9f, 209},
{0xa0, 0xa0, 58},
{0xa1, 0xa1, 210},
{0xa2, 0xa2, 211},
{0xa3, 0xa3, 212},
{0xa4, 0xa4, 213},
{0xa5, 0xa5, 214},
{0xa6, 0xa6, 215},
{0xa7, 0xa7, 216},
{0xa8, 0xa8, 217},
{0xa9, 0xa9, 218},
{0xaa, 0xaa, 219},
{0xac, 0xac, 220},
{0xad, 0xad, 221},
{0xae, 0xae, 222},
{0xaf, 0xaf, 223},
{0xb0, 0xb0, 224},
{0xb1, 0xb1, 225},
{0xb3, 0xb3, 226},
{0xb4, 0xb6, 48},
{0xb8, 0xbb, 48},
{0xbc, 0xbc, 227},
{0xbd, 0xbd, 228},
{0xbe, 0xbe, 229},
{0xbf, 0xbf, 230},
}},
{
Table: dfa.TransTable{
{0x81, 0x81, 231},
{0x82, 0x82, 232},
{0x84, 0x84, 233},
{0x85, 0x85, 234},
{0x86, 0x86, 235},
{0xb0, 0xb0, 236},
{0xb1, 0xb1, 237},
{0xb2, 0xb2, 48},
{0xb3, 0xb3, 238},
{0xb4, 0xb4, 239},
{0xb5, 0xb5, 240},
{0xb6, 0xb6, 241},
{0xb7, 0xb7, 242},
{0xb8, 0xb8, 243},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 244},
{0x81, 0x81, 202},
{0x82, 0x82, 245},
{0x83, 0x83, 246},
{0x84, 0x84, 247},
{0x85, 0x85, 48},
{0x86, 0x86, 248},
{0x87, 0x87, 249},
{0x90, 0xbf, 48},
}},
{
Table: dfa.TransTable{
{0x80, 0xb5, 48},
{0xb6, 0xb6, 212},
{0xb8, 0xbf, 48},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 48},
}},
{
Table: dfa.TransTable{
{0x80, 0xbe, 48},
{0xbf, 0xbf, 250},
}},
{
Table: dfa.TransTable{
{0x80, 0x91, 48},
{0x92, 0x92, 250},
{0x93, 0x93, 251},
{0x94, 0x97, 48},
{0x98, 0x98, 252},
{0x99, 0x99, 253},
{0x9a, 0x9a, 254},
{0x9b, 0x9b, 223},
{0x9c, 0x9c, 255},
{0x9d, 0x9d, 48},
{0x9e, 0x9e, 256},
{0x9f, 0x9f, 257},
{0xa0, 0xa0, 258},
{0xa1, 0xa1, 208},
{0xa2, 0xa2, 259},
{0xa3, 0xa3, 260},
{0xa4, 0xa4, 261},
{0xa5, 0xa5, 262},
{0xa6, 0xa6, 263},
{0xa7, 0xa7, 264},
{0xa8, 0xa8, 265},
{0xa9, 0xa9, 266},
{0xaa, 0xaa, 267},
{0xab, 0xab, 268},
{0xac, 0xac, 269},
{0xaf, 0xaf, 270},
{0xb0, 0xbf, 48},
}},
{
Table: dfa.TransTable{
{0x80, 0x9d, 48},
{0x9e, 0x9e, 271},
{0x9f, 0x9f, 272},
}},
{
Table: dfa.TransTable{
{0xa4, 0xa8, 48},
{0xa9, 0xa9, 273},
{0xaa, 0xaa, 48},
{0xab, 0xab, 274},
{0xac, 0xac, 275},
{0xad, 0xad, 276},
{0xae, 0xae, 277},
{0xaf, 0xaf, 278},
{0xb0, 0xb3, 48},
{0xb4, 0xb4, 279},
{0xb5, 0xb5, 280},
{0xb6, 0xb6, 281},
{0xb7, 0xb7, 282},
{0xb9, 0xb9, 283},
{0xba, 0xba, 48},
{0xbb, 0xbb, 284},
{0xbc, 0xbc, 285},
{0xbd, 0xbd, 286},
{0xbe, 0xbe, 287},
{0xbf, 0xbf, 288},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 289},
{0x91, 0x91, 290},
{0x92, 0x92, 291},
{0x93, 0x93, 292},
{0x96, 0x96, 293},
{0x9b, 0x9b, 294},
{0x9d, 0x9d, 295},
{0x9e, 0x9e, 296},
{0xa0, 0xa9, 70},
{0xaa, 0xaa, 297},
{0xab, 0xab, 298},
{0xaf, 0xaf, 299},
}},
{
Label: 46,
},
{
Label: 96,
},
{
Table: dfa.TransTable{
{0x22, 0x22, 6},
{0x27, 0x27, 6},
{0x30, 0x37, 300},
{0x55, 0x55, 301},
{0x5c, 0x5c, 6},
{0x61, 0x62, 6},
{0x66, 0x66, 6},
{0x6e, 0x6e, 6},
{0x72, 0x72, 6},
{0x74, 0x74, 6},
{0x75, 0x75, 302},
{0x76, 0x76, 6},
{0x78, 0x78, 303},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 6},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 79},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 79},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 79},
{0xbb, 0xbb, 304},
{0xbc, 0xbf, 79},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 81},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 81},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 81},
}},
{
Label: 29,
},
{
Label: 36,
},
{
Label: 30,
},
{
Label: 24,
Table: dfa.TransTable{{0x3d, 0x3d, 305},
}},
{
Table: dfa.TransTable{{0x27, 0x27, 306},
}},
{
Table: dfa.TransTable{
{0x22, 0x22, 90},
{0x27, 0x27, 90},
{0x30, 0x37, 307},
{0x55, 0x55, 308},
{0x5c, 0x5c, 90},
{0x61, 0x62, 90},
{0x66, 0x66, 90},
{0x6e, 0x6e, 90},
{0x72, 0x72, 90},
{0x74, 0x74, 90},
{0x75, 0x75, 309},
{0x76, 0x76, 90},
{0x78, 0x78, 310},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 90},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 92},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 92},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 92},
{0xbb, 0xbb, 311},
{0xbc, 0xbf, 92},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 94},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 94},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 94},
}},
{
Label: 27,
},
{
Label: 39,
},
{
Label: 25,
},
{
Label: 40,
},
{
Label: 26,
},
{
Table: dfa.TransTable{{0x2e, 0x2e, 312},
}},
{
Label: 8,
Table: dfa.TransTable{
{0x30, 0x39, 105},
{0x45, 0x45, 313},
{0x65, 0x65, 313},
{0x69, 0x69, 114},
}},
{
Label: 109,
Table: dfa.TransTable{
{0x01, 0x09, 106},
{0x0a, 0x0a, 314},
{0x0b, 0x29, 106},
{0x2a, 0x2a, 315},
{0x2b, 0x7f, 106},
{0xc2, 0xdf, 316},
{0xe0, 0xe0, 317},
{0xe1, 0xee, 318},
{0xef, 0xef, 319},
{0xf0, 0xf0, 320},
{0xf1, 0xf3, 321},
{0xf4, 0xf4, 322},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x6b, 323},
{0x6c, 0x6c, 325},
{0x6d, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Label: 28,
},
{
Label: 8,
Table: dfa.TransTable{
{0x30, 0x39, 109},
{0x45, 0x45, 333},
{0x65, 0x65, 333},
{0x69, 0x69, 114},
}},
{
Label: 7,
Table: dfa.TransTable{
{0x2e, 0x2e, 109},
{0x30, 0x37, 110},
{0x38, 0x39, 111},
{0x45, 0x45, 112},
{0x65, 0x65, 112},
{0x69, 0x69, 114},
}},
{
Label: 114,
Table: dfa.TransTable{
{0x2e, 0x2e, 109},
{0x30, 0x39, 111},
{0x45, 0x45, 112},
{0x65, 0x65, 112},
{0x69, 0x69, 114},
}},
{
Table: dfa.TransTable{
{0x2b, 0x2b, 334},
{0x2d, 0x2d, 334},
{0x30, 0x39, 335},
}},
{
Label: 108,
Table: dfa.TransTable{
{0x30, 0x39, 336},
{0x41, 0x46, 336},
{0x61, 0x66, 336},
}},
{
Label: 9,
},
{
Label: 49,
},
{
Label: 38,
},
{
Label: 22,
Table: dfa.TransTable{{0x3d, 0x3d, 337},
}},
{
Label: 47,
},
{
Label: 41,
},
{
Label: 48,
},
{
Label: 23,
Table: dfa.TransTable{{0x3d, 0x3d, 338},
}},
{
Table: dfa.TransTable{
{0x80, 0x8a, 25},
{0xa0, 0xa9, 25},
{0xae, 0xaf, 25},
{0xb1, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x93, 25},
{0x95, 0x95, 25},
{0xa5, 0xa6, 25},
{0xae, 0xbc, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xaa, 25},
{0xb4, 0xb5, 25},
{0xba, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa0, 163},
{0xa1, 0xa1, 164},
{0xa2, 0xa2, 165},
{0xa4, 0xa4, 166},
{0xa5, 0xa5, 339},
{0xa6, 0xa6, 168},
{0xa7, 0xa7, 340},
{0xa8, 0xa8, 170},
{0xa9, 0xa9, 341},
{0xaa, 0xaa, 172},
{0xab, 0xab, 342},
{0xac, 0xac, 174},
{0xad, 0xad, 343},
{0xae, 0xae, 176},
{0xaf, 0xaf, 344},
{0xb0, 0xb0, 178},
{0xb1, 0xb1, 345},
{0xb2, 0xb2, 178},
{0xb3, 0xb3, 346},
{0xb4, 0xb4, 181},
{0xb5, 0xb5, 347},
{0xb6, 0xb6, 183},
{0xb7, 0xb7, 348},
{0xb8, 0xb8, 185},
{0xb9, 0xb9, 349},
{0xba, 0xba, 186},
{0xbb, 0xbb, 350},
{0xbc, 0xbc, 351},
{0xbd, 0xbd, 189},
{0xbe, 0xbe, 190},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 191},
{0x81, 0x81, 352},
{0x82, 0x82, 353},
{0x83, 0x83, 194},
{0x84, 0x88, 48},
{0x89, 0x89, 195},
{0x8a, 0x8a, 196},
{0x8b, 0x8b, 197},
{0x8c, 0x8c, 198},
{0x8d, 0x8d, 199},
{0x8e, 0x8e, 200},
{0x8f, 0x8f, 201},
{0x90, 0x90, 202},
{0x91, 0x98, 48},
{0x99, 0x99, 203},
{0x9a, 0x9a, 204},
{0x9b, 0x9b, 205},
{0x9c, 0x9c, 206},
{0x9d, 0x9d, 207},
{0x9e, 0x9e, 208},
{0x9f, 0x9f, 354},
{0xa0, 0xa0, 355},
{0xa1, 0xa1, 210},
{0xa2, 0xa2, 211},
{0xa3, 0xa3, 212},
{0xa4, 0xa4, 213},
{0xa5, 0xa5, 356},
{0xa6, 0xa6, 215},
{0xa7, 0xa7, 357},
{0xa8, 0xa8, 217},
{0xa9, 0xa9, 218},
{0xaa, 0xaa, 358},
{0xac, 0xac, 220},
{0xad, 0xad, 359},
{0xae, 0xae, 360},
{0xaf, 0xaf, 223},
{0xb0, 0xb0, 224},
{0xb1, 0xb1, 361},
{0xb3, 0xb3, 226},
{0xb4, 0xb6, 48},
{0xb8, 0xbb, 48},
{0xbc, 0xbc, 227},
{0xbd, 0xbd, 228},
{0xbe, 0xbe, 229},
{0xbf, 0xbf, 230},
}},
{
Table: dfa.TransTable{
{0x80, 0x91, 48},
{0x92, 0x92, 250},
{0x93, 0x93, 251},
{0x94, 0x97, 48},
{0x98, 0x98, 362},
{0x99, 0x99, 253},
{0x9a, 0x9a, 254},
{0x9b, 0x9b, 223},
{0x9c, 0x9c, 255},
{0x9d, 0x9d, 48},
{0x9e, 0x9e, 256},
{0x9f, 0x9f, 257},
{0xa0, 0xa0, 258},
{0xa1, 0xa1, 208},
{0xa2, 0xa2, 259},
{0xa3, 0xa3, 363},
{0xa4, 0xa4, 364},
{0xa5, 0xa5, 262},
{0xa6, 0xa6, 263},
{0xa7, 0xa7, 365},
{0xa8, 0xa8, 265},
{0xa9, 0xa9, 366},
{0xaa, 0xaa, 267},
{0xab, 0xab, 268},
{0xac, 0xac, 269},
{0xaf, 0xaf, 367},
{0xb0, 0xbf, 48},
}},
{
Table: dfa.TransTable{
{0xa4, 0xa8, 48},
{0xa9, 0xa9, 273},
{0xaa, 0xaa, 48},
{0xab, 0xab, 274},
{0xac, 0xac, 275},
{0xad, 0xad, 276},
{0xae, 0xae, 277},
{0xaf, 0xaf, 278},
{0xb0, 0xb3, 48},
{0xb4, 0xb4, 279},
{0xb5, 0xb5, 280},
{0xb6, 0xb6, 281},
{0xb7, 0xb7, 282},
{0xb9, 0xb9, 283},
{0xba, 0xba, 48},
{0xbb, 0xbb, 284},
{0xbc, 0xbc, 368},
{0xbd, 0xbd, 286},
{0xbe, 0xbe, 287},
{0xbf, 0xbf, 288},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 369},
{0x91, 0x91, 370},
{0x92, 0x92, 291},
{0x93, 0x93, 292},
{0x96, 0x96, 371},
{0x9b, 0x9b, 294},
{0x9d, 0x9d, 372},
{0x9e, 0x9e, 373},
{0x9f, 0x9f, 374},
{0xa0, 0xa9, 70},
{0xaa, 0xaa, 297},
{0xab, 0xab, 298},
{0xaf, 0xaf, 299},
}},
{
Label: 32,
},
{
Label: 95,
},
{
Table: dfa.TransTable{{0x80, 0xbf, 29},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 132},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 132},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 132},
{0xbb, 0xbb, 375},
{0xbc, 0xbf, 132},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 134},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 134},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 134},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 376},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x72, 25},
{0x73, 0x73, 377},
{0x74, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 378},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 379},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x65, 25},
{0x66, 0x66, 380},
{0x67, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x72, 25},
{0x73, 0x73, 381},
{0x74, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6b, 25},
{0x6c, 0x6c, 382},
{0x6d, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 383},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 384},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 74,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 385},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 76,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6f, 25},
{0x70, 0x70, 386},
{0x71, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 387},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6f, 25},
{0x70, 0x70, 388},
{0x71, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 389},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 390},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 391},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6b, 25},
{0x6c, 0x6c, 392},
{0x6d, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 393},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x68, 25},
{0x69, 0x69, 394},
{0x6a, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6f, 25},
{0x70, 0x70, 395},
{0x71, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 396},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 31,
},
{
Label: 37,
},
{
Table: dfa.TransTable{
{0x80, 0x95, 25},
{0x9a, 0x9a, 25},
{0xa4, 0xa4, 25},
{0xa8, 0xa8, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x98, 25},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa0, 25},
{0xa2, 0xac, 25},
}},
{
Table: dfa.TransTable{
{0x84, 0xb9, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0x98, 0xa1, 25},
{0xb1, 0xb7, 25},
{0xb9, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8c, 25},
{0x8f, 0x90, 25},
{0x93, 0xa8, 25},
{0xaa, 0xb0, 25},
{0xb2, 0xb2, 25},
{0xb6, 0xb9, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x8e, 0x8e, 25},
{0x9c, 0x9d, 25},
{0x9f, 0xa1, 25},
{0xb0, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8a, 25},
{0x8f, 0x90, 25},
{0x93, 0xa8, 25},
{0xaa, 0xb0, 25},
{0xb2, 0xb3, 25},
{0xb5, 0xb6, 25},
{0xb8, 0xb9, 25},
}},
{
Table: dfa.TransTable{
{0x99, 0x9c, 25},
{0x9e, 0x9e, 25},
{0xb2, 0xb4, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8d, 25},
{0x8f, 0x91, 25},
{0x93, 0xa8, 25},
{0xaa, 0xb0, 25},
{0xb2, 0xb3, 25},
{0xb5, 0xb9, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0xa0, 0xa1, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8c, 25},
{0x8f, 0x90, 25},
{0x93, 0xa8, 25},
{0xaa, 0xb0, 25},
{0xb2, 0xb3, 25},
{0xb5, 0xb9, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x9c, 0x9d, 25},
{0x9f, 0xa1, 25},
{0xb1, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x83, 0x83, 25},
{0x85, 0x8a, 25},
{0x8e, 0x90, 25},
{0x92, 0x95, 25},
{0x99, 0x9a, 25},
{0x9c, 0x9c, 25},
{0x9e, 0x9f, 25},
{0xa3, 0xa4, 25},
{0xa8, 0xaa, 25},
{0xae, 0xb9, 25},
}},
{
Table: dfa.TransTable{{0x90, 0x90, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8c, 25},
{0x8e, 0x90, 25},
{0x92, 0xa8, 25},
{0xaa, 0xb3, 25},
{0xb5, 0xb9, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x98, 0x99, 25},
{0xa0, 0xa1, 25},
}},
{
Table: dfa.TransTable{
{0x9e, 0x9e, 25},
{0xa0, 0xa1, 25},
{0xb1, 0xb2, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8c, 25},
{0x8e, 0x90, 25},
{0x92, 0xba, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x8e, 0x8e, 25},
{0xa0, 0xa1, 25},
{0xba, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x96, 25},
{0x9a, 0xb1, 25},
{0xb3, 0xbb, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x86, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0xb0, 25},
{0xb2, 0xb3, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x82, 25},
{0x84, 0x84, 25},
{0x87, 0x88, 25},
{0x8a, 0x8a, 25},
{0x8d, 0x8d, 25},
{0x94, 0x97, 25},
{0x99, 0x9f, 25},
{0xa1, 0xa3, 25},
{0xa5, 0xa5, 25},
{0xa7, 0xa7, 25},
{0xaa, 0xab, 25},
{0xad, 0xb0, 25},
{0xb2, 0xb3, 25},
{0xbd, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x84, 25},
{0x86, 0x86, 25},
{0x9c, 0x9f, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x80, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x87, 25},
{0x89, 0xac, 25},
}},
{
Table: dfa.TransTable{{0x88, 0x8c, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xaa, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x95, 25},
{0x9a, 0x9d, 25},
{0xa1, 0xa1, 25},
{0xa5, 0xa6, 25},
{0xae, 0xb0, 25},
{0xb5, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x8e, 0x8e, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x85, 25},
{0x87, 0x87, 25},
{0x8d, 0x8d, 25},
{0x90, 0xba, 25},
{0xbc, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x88, 25},
{0x8a, 0x8d, 25},
{0x90, 0x96, 25},
{0x98, 0x98, 25},
{0x9a, 0x9d, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x88, 25},
{0x8a, 0x8d, 25},
{0x90, 0xb0, 25},
{0xb2, 0xb5, 25},
{0xb8, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0x82, 0x85, 25},
{0x88, 0x96, 25},
{0x98, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x90, 25},
{0x92, 0x95, 25},
{0x98, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x9a, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8f, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb4, 25},
}},
{
Table: dfa.TransTable{{0x81, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xac, 25},
{0xaf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x9a, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xaa, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8c, 25},
{0x8e, 0x91, 25},
{0xa0, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x91, 25},
{0xa0, 0xac, 25},
{0xae, 0xb0, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb3, 25},
}},
{
Table: dfa.TransTable{
{0x97, 0x97, 25},
{0x9c, 0x9c, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb7, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa8, 25},
{0xaa, 0xaa, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb5, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x9c, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0xad, 25},
{0xb0, 0xb4, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xab, 25},
}},
{
Table: dfa.TransTable{{0x81, 0x87, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x96, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x94, 25},
}},
{
Table: dfa.TransTable{{0xa7, 0xa7, 25},
}},
{
Table: dfa.TransTable{{0x85, 0xb3, 25},
}},
{
Table: dfa.TransTable{{0x85, 0x8b, 25},
}},
{
Table: dfa.TransTable{
{0x83, 0xa0, 25},
{0xae, 0xaf, 25},
{0xba, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xa5, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xa3, 25},
}},
{
Table: dfa.TransTable{
{0x8d, 0x8f, 25},
{0x9a, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0xa9, 0xac, 25},
{0xae, 0xb1, 25},
{0xb5, 0xb6, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x95, 25},
{0x98, 0x9d, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x85, 25},
{0x88, 0x8d, 25},
{0x90, 0x97, 25},
{0x99, 0x99, 25},
{0x9b, 0x9b, 25},
{0x9d, 0x9d, 25},
{0x9f, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xb4, 25},
{0xb6, 0xbc, 25},
{0xbe, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x82, 0x84, 25},
{0x86, 0x8c, 25},
{0x90, 0x93, 25},
{0x96, 0x9b, 25},
{0xa0, 0xac, 25},
{0xb2, 0xb4, 25},
{0xb6, 0xbc, 25},
}},
{
Table: dfa.TransTable{
{0xb1, 0xb1, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x90, 0x9c, 25},
}},
{
Table: dfa.TransTable{
{0x82, 0x82, 25},
{0x87, 0x87, 25},
{0x8a, 0x93, 25},
{0x95, 0x95, 25},
{0x99, 0x9d, 25},
{0xa4, 0xa4, 25},
{0xa6, 0xa6, 25},
{0xa8, 0xa8, 25},
{0xaa, 0xad, 25},
{0xaf, 0xb9, 25},
{0xbc, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x89, 25},
{0x8e, 0x8e, 25},
}},
{
Table: dfa.TransTable{{0x83, 0x84, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xae, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x9e, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa4, 25},
{0xab, 0xae, 25},
{0xb2, 0xb3, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa5, 25},
{0xa7, 0xa7, 25},
{0xad, 0xad, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa7, 25},
{0xaf, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x96, 25},
{0xa0, 0xa6, 25},
{0xa8, 0xae, 25},
{0xb0, 0xb6, 25},
{0xb8, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0x88, 0x8e, 25},
{0x90, 0x96, 25},
{0x98, 0x9e, 25},
}},
{
Table: dfa.TransTable{{0xaf, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x86, 25},
{0xb1, 0xb5, 25},
{0xbb, 0xbc, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x96, 25},
{0x9d, 0x9f, 25},
{0xa1, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 25},
{0xbc, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0xad, 25},
{0xb1, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8e, 25},
{0xa0, 0xba, 25},
}},
{
Table: dfa.TransTable{{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x8c, 25},
}},
{
Table: dfa.TransTable{{0x90, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8c, 25},
{0x90, 0x9f, 25},
{0xaa, 0xab, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xae, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x97, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x97, 0x9f, 25},
{0xa2, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x88, 25},
{0x8b, 0x8e, 25},
{0x90, 0x93, 25},
{0xa0, 0xaa, 25},
}},
{
Table: dfa.TransTable{{0xb8, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x83, 0x85, 25},
{0x87, 0x8a, 25},
{0x8c, 0xa2, 25},
}},
{
Table: dfa.TransTable{{0x82, 0xb3, 25},
}},
{
Table: dfa.TransTable{
{0xb2, 0xb7, 25},
{0xbb, 0xbb, 25},
}},
{
Table: dfa.TransTable{
{0x8a, 0xa5, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0xa0, 0xbc, 25},
}},
{
Table: dfa.TransTable{{0x84, 0xb2, 25},
}},
{
Table: dfa.TransTable{{0x8f, 0x8f, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xa8, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x82, 25},
{0x84, 0x8b, 25},
{0xa0, 0xb6, 25},
{0xba, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xaf, 25},
{0xb1, 0xb1, 25},
{0xb5, 0xb6, 25},
{0xb9, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0x82, 0x82, 25},
{0x9b, 0x9d, 25},
{0xa0, 0xaa, 25},
{0xb2, 0xb4, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x86, 25},
{0x89, 0x8e, 25},
{0x91, 0x96, 25},
{0xa0, 0xa6, 25},
{0xa8, 0xae, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xa2, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa3, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0x8b, 0xbb, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xad, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x99, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0x93, 0x97, 25},
{0x9d, 0x9d, 25},
{0x9f, 0xa8, 25},
{0xaa, 0xb6, 25},
{0xb8, 0xbc, 25},
{0xbe, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x83, 0x84, 25},
{0x86, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb1, 25},
}},
{
Table: dfa.TransTable{{0x93, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xbd, 25},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8f, 25},
{0x92, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x87, 25},
{0xb0, 0xbb, 25},
}},
{
Table: dfa.TransTable{
{0xb0, 0xb4, 25},
{0xb6, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xbc, 25},
}},
{
Table: dfa.TransTable{{0xa1, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x9a, 25},
{0xa6, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x82, 0x87, 25},
{0x8a, 0x8f, 25},
{0x92, 0x97, 25},
{0x9a, 0x9c, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 397},
{0x81, 0x81, 398},
{0x82, 0x82, 48},
{0x83, 0x83, 399},
{0x8a, 0x8a, 400},
{0x8b, 0x8b, 401},
{0x8c, 0x8c, 402},
{0x8d, 0x8d, 403},
{0x8e, 0x8e, 404},
{0x8f, 0x8f, 405},
{0x90, 0x91, 48},
{0x92, 0x92, 406},
{0xa0, 0xa0, 407},
{0xa1, 0xa1, 408},
{0xa4, 0xa4, 409},
{0xa6, 0xa6, 410},
{0xa8, 0xa8, 411},
{0xa9, 0xa9, 412},
{0xac, 0xac, 212},
{0xad, 0xad, 413},
{0xb0, 0xb0, 48},
{0xb1, 0xb1, 414},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 415},
{0x82, 0x82, 416},
{0x83, 0x83, 417},
{0x84, 0x84, 418},
{0x86, 0x86, 419},
{0x87, 0x87, 420},
{0x9a, 0x9a, 205},
}},
{
Table: dfa.TransTable{
{0x80, 0x8c, 48},
{0x8d, 0x8d, 421},
}},
{
Table: dfa.TransTable{
{0x80, 0x8f, 48},
{0x90, 0x90, 421},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa7, 48},
{0xa8, 0xa8, 422},
{0xbc, 0xbc, 48},
{0xbd, 0xbd, 423},
{0xbe, 0xbe, 424},
}},
{
Table: dfa.TransTable{{0x80, 0x80, 425},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 48},
{0x91, 0x91, 426},
{0x92, 0x92, 427},
{0x93, 0x93, 428},
{0x94, 0x94, 429},
{0x95, 0x95, 430},
{0x96, 0x99, 48},
{0x9a, 0x9a, 431},
{0x9b, 0x9b, 432},
{0x9c, 0x9c, 433},
{0x9d, 0x9d, 434},
{0x9e, 0x9e, 435},
{0x9f, 0x9f, 436},
}},
{
Table: dfa.TransTable{
{0xb8, 0xb8, 437},
{0xb9, 0xb9, 438},
{0xba, 0xba, 439},
}},
{
Table: dfa.TransTable{
{0x80, 0x9a, 48},
{0x9b, 0x9b, 440},
{0x9c, 0xbf, 48},
}},
{
Table: dfa.TransTable{
{0x80, 0x9b, 48},
{0x9c, 0x9c, 201},
{0x9d, 0x9f, 48},
{0xa0, 0xa0, 406},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa7, 48},
{0xa8, 0xa8, 406},
}},
{
Table: dfa.TransTable{{0x30, 0x37, 441},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 442},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 443},
{0x41, 0x46, 443},
{0x61, 0x66, 443},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 444},
{0x41, 0x46, 444},
{0x61, 0x66, 444},
}},
{
Table: dfa.TransTable{{0x80, 0xbe, 6},
}},
{
Label: 35,
},
{
Label: 10,
},
{
Table: dfa.TransTable{{0x30, 0x37, 445},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 446},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 447},
{0x41, 0x46, 447},
{0x61, 0x66, 447},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 448},
{0x41, 0x46, 448},
{0x61, 0x66, 448},
}},
{
Table: dfa.TransTable{{0x80, 0xbe, 90},
}},
{
Label: 50,
},
{
Table: dfa.TransTable{
{0x2b, 0x2b, 449},
{0x2d, 0x2d, 449},
{0x30, 0x39, 450},
}},
{
Label: 109,
Table: dfa.TransTable{
{0x01, 0x29, 314},
{0x2a, 0x2a, 451},
{0x2b, 0x7f, 314},
{0xc2, 0xdf, 452},
{0xe0, 0xe0, 453},
{0xe1, 0xee, 454},
{0xef, 0xef, 455},
{0xf0, 0xf0, 456},
{0xf1, 0xf3, 457},
{0xf4, 0xf4, 458},
}},
{
Label: 109,
Table: dfa.TransTable{
{0x01, 0x09, 106},
{0x0a, 0x0a, 314},
{0x0b, 0x29, 106},
{0x2a, 0x2a, 315},
{0x2b, 0x2e, 106},
{0x2f, 0x2f, 459},
{0x30, 0x7f, 106},
{0xc2, 0xdf, 316},
{0xe0, 0xe0, 317},
{0xe1, 0xee, 318},
{0xef, 0xef, 319},
{0xf0, 0xf0, 320},
{0xf1, 0xf3, 321},
{0xf4, 0xf4, 322},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 106},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 316},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 316},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 316},
{0xbb, 0xbb, 460},
{0xbc, 0xbf, 316},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 318},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 318},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 318},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Label: 90,
},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x68, 323},
{0x69, 0x69, 461},
{0x6a, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 323},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 326},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 326},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 326},
{0xbb, 0xbb, 462},
{0xbc, 0xbf, 326},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 328},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 328},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 328},
}},
{
Table: dfa.TransTable{
{0x2b, 0x2b, 463},
{0x2d, 0x2d, 463},
{0x30, 0x39, 464},
}},
{
Table: dfa.TransTable{{0x30, 0x39, 335},
}},
{
Label: 8,
Table: dfa.TransTable{
{0x30, 0x39, 335},
{0x69, 0x69, 114},
}},
{
Label: 7,
Table: dfa.TransTable{
{0x30, 0x39, 336},
{0x41, 0x46, 336},
{0x61, 0x66, 336},
}},
{
Label: 33,
},
{
Label: 34,
},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0x98, 0xa1, 25},
{0xa6, 0xaf, 25},
{0xb1, 0xb7, 25},
{0xb9, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x8e, 0x8e, 25},
{0x9c, 0x9d, 25},
{0x9f, 0xa1, 25},
{0xa6, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x99, 0x9c, 25},
{0x9e, 0x9e, 25},
{0xa6, 0xaf, 25},
{0xb2, 0xb4, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0xa0, 0xa1, 25},
{0xa6, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x9c, 0x9d, 25},
{0x9f, 0xa1, 25},
{0xa6, 0xaf, 25},
{0xb1, 0xb1, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 25},
{0xa6, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x98, 0x99, 25},
{0xa0, 0xa1, 25},
{0xa6, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x9e, 0x9e, 25},
{0xa0, 0xa1, 25},
{0xa6, 0xaf, 25},
{0xb1, 0xb2, 25},
}},
{
Table: dfa.TransTable{
{0x8e, 0x8e, 25},
{0xa0, 0xa1, 25},
{0xa6, 0xaf, 25},
{0xba, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0xa6, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x86, 25},
{0x90, 0x99, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x84, 25},
{0x86, 0x86, 25},
{0x90, 0x99, 25},
{0x9c, 0x9f, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0xa0, 0xa9, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x89, 25},
{0x90, 0x95, 25},
{0x9a, 0x9d, 25},
{0xa1, 0xa1, 25},
{0xa5, 0xa6, 25},
{0xae, 0xb0, 25},
{0xb5, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x81, 25},
{0x8e, 0x8e, 25},
{0x90, 0x99, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x97, 0x97, 25},
{0x9c, 0x9c, 25},
{0xa0, 0xa9, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x99, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x86, 0xad, 25},
{0xb0, 0xb4, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x87, 25},
{0x90, 0x99, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x89, 25},
{0x90, 0x99, 25},
{0xa7, 0xa7, 25},
}},
{
Table: dfa.TransTable{
{0x85, 0x8b, 25},
{0x90, 0x99, 25},
}},
{
Table: dfa.TransTable{
{0x83, 0xa0, 25},
{0xae, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x89, 25},
{0x8d, 0xbd, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8c, 25},
{0x90, 0xab, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x99, 25},
{0xb2, 0xb7, 25},
{0xbb, 0xbb, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa5, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x8f, 0x99, 25},
{0xb0, 0xb9, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x82, 25},
{0x84, 0x8b, 25},
{0x90, 0x99, 25},
{0xa0, 0xb6, 25},
{0xba, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa2, 25},
{0xb0, 0xb9, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0x99, 25},
{0xa1, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 397},
{0x81, 0x81, 398},
{0x82, 0x82, 48},
{0x83, 0x83, 399},
{0x8a, 0x8a, 400},
{0x8b, 0x8b, 401},
{0x8c, 0x8c, 402},
{0x8d, 0x8d, 403},
{0x8e, 0x8e, 404},
{0x8f, 0x8f, 405},
{0x90, 0x91, 48},
{0x92, 0x92, 465},
{0xa0, 0xa0, 407},
{0xa1, 0xa1, 408},
{0xa4, 0xa4, 409},
{0xa6, 0xa6, 410},
{0xa8, 0xa8, 411},
{0xa9, 0xa9, 412},
{0xac, 0xac, 212},
{0xad, 0xad, 413},
{0xb0, 0xb0, 48},
{0xb1, 0xb1, 414},
{0xb4, 0xb4, 466},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 415},
{0x81, 0x81, 467},
{0x82, 0x82, 416},
{0x83, 0x83, 468},
{0x84, 0x84, 469},
{0x86, 0x86, 419},
{0x87, 0x87, 470},
{0x8b, 0x8b, 466},
{0x91, 0x91, 471},
{0x93, 0x93, 471},
{0x99, 0x99, 471},
{0x9a, 0x9a, 205},
{0x9b, 0x9b, 472},
{0x9c, 0x9c, 466},
{0xa3, 0xa3, 473},
{0xa5, 0xa5, 471},
{0xb1, 0xb1, 471},
{0xb5, 0xb5, 471},
{0xb6, 0xb6, 473},
}},
{
Table: dfa.TransTable{
{0xa0, 0xa7, 48},
{0xa8, 0xa8, 422},
{0xa9, 0xa9, 473},
{0xad, 0xad, 471},
{0xbc, 0xbc, 48},
{0xbd, 0xbd, 423},
{0xbe, 0xbe, 424},
}},
{
Table: dfa.TransTable{
{0x90, 0x90, 48},
{0x91, 0x91, 426},
{0x92, 0x92, 427},
{0x93, 0x93, 428},
{0x94, 0x94, 429},
{0x95, 0x95, 430},
{0x96, 0x99, 48},
{0x9a, 0x9a, 431},
{0x9b, 0x9b, 432},
{0x9c, 0x9c, 433},
{0x9d, 0x9d, 434},
{0x9e, 0x9e, 435},
{0x9f, 0x9f, 474},
}},
{
Table: dfa.TransTable{
{0x85, 0x85, 472},
{0x8b, 0x8b, 466},
{0xa5, 0xa5, 471},
{0xb8, 0xb8, 437},
{0xb9, 0xb9, 438},
{0xba, 0xba, 439},
}},
{
Table: dfa.TransTable{{0xaf, 0xaf, 466},
}},
{
Table: dfa.TransTable{{0x80, 0xbe, 29},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 475},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 476},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 477},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x72, 25},
{0x73, 0x73, 478},
{0x74, 0x74, 479},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 480},
{0x62, 0x64, 25},
{0x65, 0x65, 481},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 482},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6b, 25},
{0x6c, 0x6c, 483},
{0x6d, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 72,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 484},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6e, 25},
{0x6f, 0x6f, 485},
{0x70, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6e, 25},
{0x6f, 0x6f, 486},
{0x70, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 487},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 79,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6a, 25},
{0x6b, 0x6b, 488},
{0x6c, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x66, 25},
{0x67, 0x67, 489},
{0x68, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x74, 25},
{0x75, 0x75, 490},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 491},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x74, 25},
{0x75, 0x75, 492},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 493},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 494},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 87,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Table: dfa.TransTable{
{0x80, 0x8b, 25},
{0x8d, 0xa6, 25},
{0xa8, 0xba, 25},
{0xbc, 0xbd, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8d, 25},
{0x90, 0x9d, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xba, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x9c, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x90, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x9e, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0x82, 0x89, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x9d, 25},
{0xa0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x83, 25},
{0x88, 0x8f, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x9d, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x85, 25},
{0x88, 0x88, 25},
{0x8a, 0xb5, 25},
{0xb7, 0xb8, 25},
{0xbc, 0xbc, 25},
{0xbf, 0xbf, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x95, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x95, 25},
{0xa0, 0xb9, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xb7, 25},
{0xbe, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0x90, 0x93, 25},
{0x95, 0x97, 25},
{0x99, 0xb3, 25},
}},
{
Table: dfa.TransTable{{0xa0, 0xbc, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x95, 25},
{0xa0, 0xb2, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x88, 25},
}},
{
Table: dfa.TransTable{{0x83, 0xb7, 25},
}},
{
Table: dfa.TransTable{{0x83, 0xaf, 25},
}},
{
Table: dfa.TransTable{{0x90, 0xa8, 25},
}},
{
Table: dfa.TransTable{{0x83, 0xa6, 25},
}},
{
Table: dfa.TransTable{{0x83, 0xb2, 25},
}},
{
Table: dfa.TransTable{{0x81, 0x84, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xae, 25},
}},
{
Table: dfa.TransTable{{0x80, 0xb8, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x84, 25},
{0x90, 0x90, 25},
}},
{
Table: dfa.TransTable{{0x93, 0x9f, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x81, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x94, 25},
{0x96, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x9c, 25},
{0x9e, 0x9f, 25},
{0xa2, 0xa2, 25},
{0xa5, 0xa6, 25},
{0xa9, 0xac, 25},
{0xae, 0xb9, 25},
{0xbb, 0xbb, 25},
{0xbd, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x83, 25},
{0x85, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x85, 25},
{0x87, 0x8a, 25},
{0x8d, 0x94, 25},
{0x96, 0x9c, 25},
{0x9e, 0xb9, 25},
{0xbb, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x84, 25},
{0x86, 0x86, 25},
{0x8a, 0x90, 25},
{0x92, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0xa5, 25},
{0xa8, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x80, 25},
{0x82, 0x9a, 25},
{0x9c, 0xba, 25},
{0xbc, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x94, 25},
{0x96, 0xb4, 25},
{0xb6, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x8e, 25},
{0x90, 0xae, 25},
{0xb0, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x88, 25},
{0x8a, 0xa8, 25},
{0xaa, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x82, 25},
{0x84, 0x8b, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x83, 25},
{0x85, 0x9f, 25},
{0xa1, 0xa2, 25},
{0xa4, 0xa4, 25},
{0xa7, 0xa7, 25},
{0xa9, 0xb2, 25},
{0xb4, 0xb7, 25},
{0xb9, 0xb9, 25},
{0xbb, 0xbb, 25},
}},
{
Table: dfa.TransTable{
{0x82, 0x82, 25},
{0x87, 0x87, 25},
{0x89, 0x89, 25},
{0x8b, 0x8b, 25},
{0x8d, 0x8f, 25},
{0x91, 0x92, 25},
{0x94, 0x94, 25},
{0x97, 0x97, 25},
{0x99, 0x99, 25},
{0x9b, 0x9b, 25},
{0x9d, 0x9d, 25},
{0x9f, 0x9f, 25},
{0xa1, 0xa2, 25},
{0xa4, 0xa4, 25},
{0xa7, 0xaa, 25},
{0xac, 0xb2, 25},
{0xb4, 0xb7, 25},
{0xb9, 0xbc, 25},
{0xbe, 0xbe, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x89, 25},
{0x8b, 0x9b, 25},
{0xa1, 0xa3, 25},
{0xa5, 0xa9, 25},
{0xab, 0xbb, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x96, 25},
}},
{
Table: dfa.TransTable{{0x30, 0x37, 6},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 495},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 303},
{0x41, 0x46, 303},
{0x61, 0x66, 303},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 6},
{0x41, 0x46, 6},
{0x61, 0x66, 6},
}},
{
Table: dfa.TransTable{{0x30, 0x37, 90},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 496},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 310},
{0x41, 0x46, 310},
{0x61, 0x66, 310},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 90},
{0x41, 0x46, 90},
{0x61, 0x66, 90},
}},
{
Table: dfa.TransTable{{0x30, 0x39, 450},
}},
{
Label: 8,
Table: dfa.TransTable{
{0x30, 0x39, 450},
{0x69, 0x69, 114},
}},
{
Label: 109,
Table: dfa.TransTable{
{0x01, 0x29, 314},
{0x2a, 0x2a, 451},
{0x2b, 0x2e, 314},
{0x2f, 0x2f, 497},
{0x30, 0x7f, 314},
{0xc2, 0xdf, 452},
{0xe0, 0xe0, 453},
{0xe1, 0xee, 454},
{0xef, 0xef, 455},
{0xf0, 0xf0, 456},
{0xf1, 0xf3, 457},
{0xf4, 0xf4, 458},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 314},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 452},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 452},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 452},
{0xbb, 0xbb, 498},
{0xbc, 0xbf, 452},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 454},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 454},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 454},
}},
{
Label: 93,
},
{
Table: dfa.TransTable{{0x80, 0xbe, 106},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x6d, 323},
{0x6e, 0x6e, 499},
{0x6f, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Table: dfa.TransTable{{0x80, 0xbe, 323},
}},
{
Table: dfa.TransTable{{0x30, 0x39, 464},
}},
{
Label: 8,
Table: dfa.TransTable{
{0x30, 0x39, 464},
{0x69, 0x69, 114},
}},
{
Table: dfa.TransTable{
{0x80, 0x9d, 25},
{0xa0, 0xa9, 25},
}},
{
Table: dfa.TransTable{{0xb0, 0xb9, 25},
}},
{
Table: dfa.TransTable{{0xa6, 0xaf, 25},
}},
{
Table: dfa.TransTable{
{0x90, 0xa8, 25},
{0xb0, 0xb9, 25},
}},
{
Table: dfa.TransTable{
{0x83, 0xa6, 25},
{0xb6, 0xbf, 25},
}},
{
Table: dfa.TransTable{
{0x81, 0x84, 25},
{0x90, 0x99, 25},
}},
{
Table: dfa.TransTable{{0x90, 0x99, 25},
}},
{
Table: dfa.TransTable{{0x80, 0x89, 25},
}},
{
Table: dfa.TransTable{{0xa0, 0xa9, 25},
}},
{
Table: dfa.TransTable{
{0x80, 0x82, 25},
{0x84, 0x8b, 25},
{0x8e, 0xbf, 25},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6a, 25},
{0x6b, 0x6b, 500},
{0x6c, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 64,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 65,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 501},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x68, 25},
{0x69, 0x69, 502},
{0x6a, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x74, 25},
{0x75, 0x75, 503},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 504},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 70,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 505},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 73,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 75,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 506},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 507},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 508},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 509},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 510},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 511},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 512},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 513},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 86,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Table: dfa.TransTable{
{0x30, 0x30, 514},
{0x31, 0x31, 515},
}},
{
Table: dfa.TransTable{
{0x30, 0x30, 516},
{0x31, 0x31, 517},
}},
{
Label: 94,
},
{
Table: dfa.TransTable{{0x80, 0xbe, 314},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x64, 323},
{0x65, 0x65, 518},
{0x66, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Label: 63,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 66,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 519},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6b, 25},
{0x6c, 0x6c, 520},
{0x6d, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 69,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x67, 25},
{0x68, 0x68, 521},
{0x69, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 522},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x65, 25},
{0x66, 0x66, 523},
{0x67, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x66, 25},
{0x67, 0x67, 524},
{0x68, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 81,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6d, 25},
{0x6e, 0x6e, 525},
{0x6f, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 526},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 527},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x67, 25},
{0x68, 0x68, 528},
{0x69, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 302},
{0x41, 0x46, 302},
{0x61, 0x66, 302},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 302},
}},
{
Table: dfa.TransTable{
{0x30, 0x39, 309},
{0x41, 0x46, 309},
{0x61, 0x66, 309},
}},
{
Table: dfa.TransTable{{0x30, 0x30, 309},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 323},
{0x0a, 0x0a, 324},
{0x0b, 0x1f, 323},
{0x20, 0x20, 529},
{0x21, 0x7f, 323},
{0xc2, 0xdf, 326},
{0xe0, 0xe0, 327},
{0xe1, 0xee, 328},
{0xef, 0xef, 329},
{0xf0, 0xf0, 330},
{0xf1, 0xf3, 331},
{0xf4, 0xf4, 332},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x74, 25},
{0x75, 0x75, 530},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x73, 25},
{0x74, 0x74, 531},
{0x75, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x71, 25},
{0x72, 0x72, 532},
{0x73, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 77,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x61, 533},
{0x62, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 534},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 82,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 83,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 84,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 85,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 535},
{0x0a, 0x0a, 324},
{0x0b, 0x7f, 535},
{0xc2, 0xdf, 536},
{0xe0, 0xe0, 537},
{0xe1, 0xee, 538},
{0xef, 0xef, 539},
{0xf0, 0xf0, 540},
{0xf1, 0xf3, 541},
{0xf4, 0xf4, 542},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 543},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 68,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x6e, 25},
{0x6f, 0x6f, 544},
{0x70, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x62, 25},
{0x63, 0x63, 545},
{0x64, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 80,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 91,
Table: dfa.TransTable{
{0x01, 0x09, 535},
{0x0a, 0x0a, 546},
{0x0b, 0x7f, 535},
{0xc2, 0xdf, 536},
{0xe0, 0xe0, 537},
{0xe1, 0xee, 538},
{0xef, 0xef, 539},
{0xf0, 0xf0, 540},
{0xf1, 0xf3, 541},
{0xf4, 0xf4, 542},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 535},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 536},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 536},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 536},
{0xbb, 0xbb, 547},
{0xbc, 0xbf, 536},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 538},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 538},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 538},
}},
{
Label: 67,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x74, 25},
{0x75, 0x75, 548},
{0x76, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x64, 25},
{0x65, 0x65, 549},
{0x66, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 92,
},
{
Table: dfa.TransTable{{0x80, 0xbe, 535},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x66, 25},
{0x67, 0x67, 550},
{0x68, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 78,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 6,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x67, 25},
{0x68, 0x68, 551},
{0x69, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
{
Label: 71,
Table: dfa.TransTable{
{0x30, 0x39, 25},
{0x41, 0x5a, 25},
{0x5f, 0x5f, 25},
{0x61, 0x7a, 25},
{0xc2, 0xc2, 46},
{0xc3, 0xc3, 47},
{0xc4, 0xca, 48},
{0xcb, 0xcb, 49},
{0xcd, 0xcd, 50},
{0xce, 0xce, 51},
{0xcf, 0xcf, 52},
{0xd0, 0xd1, 48},
{0xd2, 0xd2, 53},
{0xd3, 0xd3, 48},
{0xd4, 0xd4, 54},
{0xd5, 0xd5, 55},
{0xd6, 0xd6, 56},
{0xd7, 0xd7, 57},
{0xd8, 0xd8, 58},
{0xd9, 0xd9, 122},
{0xda, 0xda, 48},
{0xdb, 0xdb, 123},
{0xdc, 0xdc, 61},
{0xdd, 0xdd, 62},
{0xde, 0xde, 63},
{0xdf, 0xdf, 124},
{0xe0, 0xe0, 125},
{0xe1, 0xe1, 126},
{0xe2, 0xe2, 67},
{0xe3, 0xe3, 68},
{0xe4, 0xe4, 69},
{0xe5, 0xe8, 70},
{0xe9, 0xe9, 71},
{0xea, 0xea, 127},
{0xeb, 0xec, 70},
{0xed, 0xed, 73},
{0xef, 0xef, 128},
{0xf0, 0xf0, 129},
}},
}}}
var errMatcherCache =
&scan.Matcher{
EOF: 96,
Illegal: 95,
M: &dfa.M{
States: dfa.States{
{
Table: dfa.TransTable{
{0x00, 0x00, 1},
{0x22, 0x22, 2},
{0x27, 0x27, 3},
{0x2f, 0x2f, 4},
{0x60, 0x60, 5},
{0x80, 0xc1, 6},
{0xc2, 0xdf, 7},
{0xe0, 0xe0, 8},
{0xe1, 0xee, 9},
{0xef, 0xef, 10},
{0xf0, 0xf0, 11},
{0xf1, 0xf3, 12},
{0xf4, 0xf4, 13},
{0xf5, 0xff, 6},
}},
{
Label: 103,
},
{
Label: 112,
Table: dfa.TransTable{
{0x00, 0x00, 14},
{0x01, 0x09, 2},
{0x0b, 0x21, 2},
{0x23, 0x5b, 2},
{0x5c, 0x5c, 15},
{0x5d, 0x7f, 2},
{0x80, 0xc1, 16},
{0xc2, 0xdf, 17},
{0xe0, 0xe0, 18},
{0xe1, 0xee, 19},
{0xef, 0xef, 20},
{0xf0, 0xf0, 21},
{0xf1, 0xf3, 22},
{0xf4, 0xf4, 23},
{0xf5, 0xff, 16},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x00, 24},
{0x01, 0x09, 25},
{0x0b, 0x26, 25},
{0x27, 0x27, 26},
{0x28, 0x5b, 25},
{0x5c, 0x5c, 27},
{0x5d, 0x7f, 25},
{0x80, 0xc1, 28},
{0xc2, 0xdf, 29},
{0xe0, 0xe0, 30},
{0xe1, 0xee, 31},
{0xef, 0xef, 32},
{0xf0, 0xf0, 33},
{0xf1, 0xf3, 34},
{0xf4, 0xf4, 35},
{0xf5, 0xff, 28},
}},
{
Table: dfa.TransTable{{0x2f, 0x2f, 36},
}},
{
Label: 113,
Table: dfa.TransTable{
{0x01, 0x5f, 5},
{0x61, 0x7f, 5},
{0xc2, 0xdf, 37},
{0xe0, 0xe0, 38},
{0xe1, 0xee, 39},
{0xef, 0xef, 40},
{0xf0, 0xf0, 41},
{0xf1, 0xf3, 42},
{0xf4, 0xf4, 43},
}},
{
Label: 116,
},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x9f, 6},
{0xa0, 0xbf, 7},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0x80, 0xbf, 7},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0x80, 0xba, 7},
{0xbb, 0xbb, 44},
{0xbc, 0xbf, 7},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x8f, 6},
{0x90, 0xbf, 9},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0x80, 0xbf, 9},
{0xc0, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0x80, 0x8f, 9},
{0x90, 0xff, 6},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 14},
{0x0b, 0x21, 14},
{0x22, 0x22, 45},
{0x23, 0xff, 14},
}},
{
Table: dfa.TransTable{
{0x00, 0x21, 46},
{0x22, 0x22, 2},
{0x23, 0x26, 46},
{0x27, 0x27, 2},
{0x28, 0x2f, 46},
{0x30, 0x37, 47},
{0x38, 0x54, 46},
{0x55, 0x55, 48},
{0x56, 0x5b, 46},
{0x5c, 0x5c, 2},
{0x5d, 0x60, 46},
{0x61, 0x62, 2},
{0x63, 0x65, 46},
{0x66, 0x66, 2},
{0x67, 0x6d, 46},
{0x6e, 0x6e, 2},
{0x6f, 0x71, 46},
{0x72, 0x72, 2},
{0x73, 0x73, 46},
{0x74, 0x74, 2},
{0x75, 0x75, 49},
{0x76, 0x76, 2},
{0x77, 0x77, 46},
{0x78, 0x78, 50},
{0x79, 0xff, 46},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 16},
{0x0b, 0x21, 16},
{0x22, 0x22, 51},
{0x23, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0xbf, 2},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x9f, 16},
{0xa0, 0xbf, 17},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0xbf, 17},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0xba, 17},
{0xbb, 0xbb, 52},
{0xbc, 0xbf, 17},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x8f, 16},
{0x90, 0xbf, 19},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0xbf, 19},
{0xc0, 0xff, 16},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0x8f, 19},
{0x90, 0xff, 16},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 24},
{0x0b, 0x26, 24},
{0x28, 0x5b, 24},
{0x5d, 0xff, 24},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 53},
{0x0b, 0x26, 53},
{0x28, 0x5b, 53},
{0x5c, 0x5c, 54},
{0x5d, 0xff, 53},
}},
{
Label: 115,
},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x21, 55},
{0x22, 0x22, 56},
{0x23, 0x26, 55},
{0x27, 0x27, 57},
{0x28, 0x2f, 55},
{0x30, 0x37, 58},
{0x38, 0x54, 55},
{0x55, 0x55, 59},
{0x56, 0x5b, 55},
{0x5c, 0x5c, 56},
{0x5d, 0x60, 55},
{0x61, 0x62, 56},
{0x63, 0x65, 55},
{0x66, 0x66, 56},
{0x67, 0x6d, 55},
{0x6e, 0x6e, 56},
{0x6f, 0x71, 55},
{0x72, 0x72, 56},
{0x73, 0x73, 55},
{0x74, 0x74, 56},
{0x75, 0x75, 60},
{0x76, 0x76, 56},
{0x77, 0x77, 55},
{0x78, 0x78, 61},
{0x79, 0xff, 55},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 24},
{0x0b, 0x26, 24},
{0x27, 0x27, 62},
{0x28, 0x5b, 24},
{0x5d, 0xff, 24},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0xbf, 25},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x9f, 28},
{0xa0, 0xbf, 29},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0xbf, 29},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0xba, 29},
{0xbb, 0xbb, 64},
{0xbc, 0xbf, 29},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x8f, 28},
{0x90, 0xbf, 31},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0xbf, 31},
{0xc0, 0xff, 28},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0x8f, 31},
{0x90, 0xff, 28},
}},
{
Table: dfa.TransTable{
{0x01, 0x09, 36},
{0x0b, 0x7f, 36},
{0xc2, 0xdf, 65},
{0xe0, 0xe0, 66},
{0xe1, 0xee, 67},
{0xef, 0xef, 68},
{0xf0, 0xf0, 69},
{0xf1, 0xf3, 70},
{0xf4, 0xf4, 71},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 5},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 37},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 37},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 37},
{0xbb, 0xbb, 72},
{0xbc, 0xbf, 37},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 39},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 39},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 39},
}},
{
Table: dfa.TransTable{
{0x00, 0x7f, 6},
{0xbf, 0xbf, 73},
{0xc0, 0xff, 6},
}},
{
Label: 104,
},
{
Table: dfa.TransTable{
{0x00, 0x09, 46},
{0x0b, 0x21, 46},
{0x22, 0x22, 74},
{0x23, 0xff, 46},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x37, 77},
{0x38, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x30, 78},
{0x31, 0x39, 79},
{0x3a, 0x40, 75},
{0x41, 0x46, 79},
{0x47, 0x60, 75},
{0x61, 0x66, 79},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 80},
{0x3a, 0x40, 75},
{0x41, 0x46, 80},
{0x47, 0x60, 75},
{0x61, 0x66, 80},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 81},
{0x3a, 0x40, 75},
{0x41, 0x46, 81},
{0x47, 0x60, 75},
{0x61, 0x66, 81},
{0x67, 0xff, 75},
}},
{
Label: 118,
},
{
Table: dfa.TransTable{
{0x00, 0x7f, 16},
{0x80, 0xbe, 2},
{0xbf, 0xbf, 82},
{0xc0, 0xff, 16},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 53},
{0x0b, 0x26, 53},
{0x27, 0x27, 26},
{0x28, 0x5b, 53},
{0x5c, 0x5c, 54},
{0x5d, 0xff, 53},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 54},
{0x0b, 0x26, 54},
{0x27, 0x27, 26},
{0x28, 0xff, 54},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 55},
{0x27, 0x27, 83},
{0x28, 0xff, 55},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 84},
{0x0a, 0x0a, 85},
{0x0b, 0x26, 84},
{0x28, 0xff, 84},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 54},
{0x0b, 0x26, 54},
{0x28, 0xff, 54},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x37, 88},
{0x38, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x30, 89},
{0x31, 0x39, 90},
{0x3a, 0x40, 86},
{0x41, 0x46, 90},
{0x47, 0x60, 86},
{0x61, 0x66, 90},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x39, 91},
{0x3a, 0x40, 86},
{0x41, 0x46, 91},
{0x47, 0x60, 86},
{0x61, 0x66, 91},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x39, 92},
{0x3a, 0x40, 86},
{0x41, 0x46, 92},
{0x47, 0x60, 86},
{0x61, 0x66, 92},
{0x67, 0xff, 86},
}},
{
Label: 117,
},
{
Table: dfa.TransTable{{0x27, 0x27, 62},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 28},
{0x0a, 0x0a, 63},
{0x0b, 0x26, 28},
{0x27, 0x27, 63},
{0x28, 0x5b, 28},
{0x5c, 0x5c, 63},
{0x5d, 0x7f, 28},
{0x80, 0xbe, 25},
{0xbf, 0xbf, 93},
{0xc0, 0xff, 28},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 36},
}},
{
Table: dfa.TransTable{{0xa0, 0xbf, 65},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 65},
}},
{
Table: dfa.TransTable{
{0x80, 0xba, 65},
{0xbb, 0xbb, 94},
{0xbc, 0xbf, 65},
}},
{
Table: dfa.TransTable{{0x90, 0xbf, 67},
}},
{
Table: dfa.TransTable{{0x80, 0xbf, 67},
}},
{
Table: dfa.TransTable{{0x80, 0x8f, 67},
}},
{
Table: dfa.TransTable{
{0x80, 0xbe, 5},
{0xbf, 0xbf, 95},
}},
{
Label: 99,
},
{
Label: 107,
},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0xff, 75},
}},
{
Label: 105,
},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x37, 2},
{0x38, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x30, 96},
{0x31, 0x39, 97},
{0x3a, 0x40, 75},
{0x41, 0x46, 97},
{0x47, 0x60, 75},
{0x61, 0x66, 97},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 97},
{0x3a, 0x40, 75},
{0x41, 0x46, 97},
{0x47, 0x60, 75},
{0x61, 0x66, 97},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 50},
{0x3a, 0x40, 75},
{0x41, 0x46, 50},
{0x47, 0x60, 75},
{0x61, 0x66, 50},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 2},
{0x3a, 0x40, 75},
{0x41, 0x46, 2},
{0x47, 0x60, 75},
{0x61, 0x66, 2},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 82},
{0x0b, 0x21, 82},
{0x22, 0x22, 98},
{0x23, 0xff, 82},
}},
{
Label: 107,
},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 84},
{0x0a, 0x0a, 85},
{0x0b, 0x26, 84},
{0x27, 0x27, 26},
{0x28, 0xff, 84},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0xff, 85},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 87},
{0x28, 0xff, 85},
}},
{
Label: 105,
},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x37, 56},
{0x38, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x30, 99},
{0x31, 0x39, 100},
{0x3a, 0x40, 86},
{0x41, 0x46, 100},
{0x47, 0x60, 86},
{0x61, 0x66, 100},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 87},
{0x28, 0x2f, 85},
{0x30, 0x39, 101},
{0x3a, 0x40, 85},
{0x41, 0x46, 101},
{0x47, 0x60, 85},
{0x61, 0x66, 101},
{0x67, 0xff, 85},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x39, 61},
{0x3a, 0x40, 86},
{0x41, 0x46, 61},
{0x47, 0x60, 86},
{0x61, 0x66, 61},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x39, 56},
{0x3a, 0x40, 86},
{0x41, 0x46, 56},
{0x47, 0x60, 86},
{0x61, 0x66, 56},
{0x67, 0xff, 86},
}},
{
Label: 110,
Table: dfa.TransTable{
{0x00, 0x09, 24},
{0x0b, 0x26, 24},
{0x27, 0x27, 102},
{0x28, 0x5b, 24},
{0x5d, 0xff, 24},
}},
{
Table: dfa.TransTable{
{0x80, 0xbe, 36},
{0xbf, 0xbf, 103},
}},
{
Table: dfa.TransTable{
{0x00, 0x5f, 95},
{0x60, 0x60, 104},
{0x61, 0xff, 95},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x30, 105},
{0x31, 0x31, 106},
{0x32, 0x39, 107},
{0x3a, 0x40, 75},
{0x41, 0x46, 107},
{0x47, 0x60, 75},
{0x61, 0x66, 107},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 107},
{0x3a, 0x40, 75},
{0x41, 0x46, 107},
{0x47, 0x60, 75},
{0x61, 0x66, 107},
{0x67, 0xff, 75},
}},
{
Label: 102,
},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x30, 108},
{0x31, 0x31, 109},
{0x32, 0x39, 110},
{0x3a, 0x40, 86},
{0x41, 0x46, 110},
{0x47, 0x60, 86},
{0x61, 0x66, 110},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 87},
{0x28, 0x2f, 85},
{0x30, 0x39, 111},
{0x3a, 0x40, 85},
{0x41, 0x46, 111},
{0x47, 0x60, 85},
{0x61, 0x66, 111},
{0x67, 0xff, 85},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 111},
{0x3a, 0x40, 85},
{0x41, 0x46, 111},
{0x47, 0x60, 85},
{0x61, 0x66, 111},
{0x67, 0xff, 85},
}},
{
Label: 101,
},
{
Label: 100,
Table: dfa.TransTable{
{0x00, 0x09, 103},
{0x0a, 0x0a, 112},
{0x0b, 0xff, 103},
}},
{
Label: 102,
},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 49},
{0x3a, 0x40, 75},
{0x41, 0x46, 49},
{0x47, 0x60, 75},
{0x61, 0x66, 49},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x30, 49},
{0x31, 0x39, 113},
{0x3a, 0x40, 75},
{0x41, 0x46, 113},
{0x47, 0x60, 75},
{0x61, 0x66, 113},
{0x67, 0xff, 75},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 113},
{0x3a, 0x40, 75},
{0x41, 0x46, 113},
{0x47, 0x60, 75},
{0x61, 0x66, 113},
{0x67, 0xff, 75},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x39, 60},
{0x3a, 0x40, 86},
{0x41, 0x46, 60},
{0x47, 0x60, 86},
{0x61, 0x66, 60},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x09, 86},
{0x0a, 0x0a, 85},
{0x0b, 0x21, 86},
{0x22, 0x22, 85},
{0x23, 0x26, 86},
{0x27, 0x27, 87},
{0x28, 0x2f, 86},
{0x30, 0x30, 60},
{0x31, 0x39, 114},
{0x3a, 0x40, 86},
{0x41, 0x46, 114},
{0x47, 0x60, 86},
{0x61, 0x66, 114},
{0x67, 0xff, 86},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 87},
{0x28, 0x2f, 85},
{0x30, 0x39, 115},
{0x3a, 0x40, 85},
{0x41, 0x46, 115},
{0x47, 0x60, 85},
{0x61, 0x66, 115},
{0x67, 0xff, 85},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 115},
{0x3a, 0x40, 85},
{0x41, 0x46, 115},
{0x47, 0x60, 85},
{0x61, 0x66, 115},
{0x67, 0xff, 85},
}},
{
Label: 100,
},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 116},
{0x3a, 0x40, 75},
{0x41, 0x46, 116},
{0x47, 0x60, 75},
{0x61, 0x66, 116},
{0x67, 0xff, 75},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 87},
{0x28, 0x2f, 85},
{0x30, 0x39, 117},
{0x3a, 0x40, 85},
{0x41, 0x46, 117},
{0x47, 0x60, 85},
{0x61, 0x66, 117},
{0x67, 0xff, 85},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 117},
{0x3a, 0x40, 85},
{0x41, 0x46, 117},
{0x47, 0x60, 85},
{0x61, 0x66, 117},
{0x67, 0xff, 85},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 118},
{0x3a, 0x40, 75},
{0x41, 0x46, 118},
{0x47, 0x60, 75},
{0x61, 0x66, 118},
{0x67, 0xff, 75},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 119},
{0x3a, 0x40, 85},
{0x41, 0x46, 119},
{0x47, 0x60, 85},
{0x61, 0x66, 119},
{0x67, 0xff, 85},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 120},
{0x3a, 0x40, 75},
{0x41, 0x46, 120},
{0x47, 0x60, 75},
{0x61, 0x66, 120},
{0x67, 0xff, 75},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 121},
{0x3a, 0x40, 85},
{0x41, 0x46, 121},
{0x47, 0x60, 85},
{0x61, 0x66, 121},
{0x67, 0xff, 85},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 75},
{0x0b, 0x21, 75},
{0x22, 0x22, 76},
{0x23, 0x2f, 75},
{0x30, 0x39, 122},
{0x3a, 0x40, 75},
{0x41, 0x46, 122},
{0x47, 0x60, 75},
{0x61, 0x66, 122},
{0x67, 0xff, 75},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x28, 0x2f, 85},
{0x30, 0x39, 123},
{0x3a, 0x40, 85},
{0x41, 0x46, 123},
{0x47, 0x60, 85},
{0x61, 0x66, 123},
{0x67, 0xff, 85},
}},
{
Table: dfa.TransTable{
{0x00, 0x09, 122},
{0x0b, 0x21, 122},
{0x22, 0x22, 124},
{0x23, 0xff, 122},
}},
{
Label: 111,
Table: dfa.TransTable{
{0x00, 0x26, 85},
{0x27, 0x27, 125},
{0x28, 0xff, 85},
}},
{
Label: 106,
},
{
Label: 106,
},
}}}
|
package boom
import (
"testing"
"go.mercari.io/datastore/v2/internal/testutils"
"google.golang.org/api/iterator"
)
func TestBoom_IteratorNext(t *testing.T) {
ctx, client, cleanUp := testutils.SetupCloudDatastore(t)
defer cleanUp()
type Data struct {
ID int64 `datastore:"-" boom:"id"`
}
bm := FromClient(ctx, client)
var list []*Data
for i := 0; i < 100; i++ {
list = append(list, &Data{})
}
_, err := bm.PutMulti(list)
if err != nil {
t.Fatal(err)
}
q := bm.NewQuery(bm.Kind(&Data{}))
it := bm.Run(q)
for {
obj := &Data{}
_, err = it.Next(obj)
if err == iterator.Done {
break
} else if err != nil {
t.Fatal(err)
}
if v := obj.ID; v == 0 {
t.Errorf("unexpected: %v", v)
}
_, err := it.Cursor()
if err != nil {
t.Fatal(err)
}
}
}
func TestBoom_IteratorNextKeysOnly(t *testing.T) {
ctx, client, cleanUp := testutils.SetupCloudDatastore(t)
defer cleanUp()
type Data struct {
ID int64 `datastore:"-" boom:"id"`
}
bm := FromClient(ctx, client)
var list []*Data
for i := 0; i < 100; i++ {
list = append(list, &Data{})
}
_, err := bm.PutMulti(list)
if err != nil {
t.Fatal(err)
}
q := bm.NewQuery(bm.Kind(&Data{})).KeysOnly()
it := bm.Run(q)
for {
_, err = it.Next(nil)
if err == iterator.Done {
break
} else if err != nil {
t.Fatal(err)
}
}
}
|
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"sort"
"strings"
"time"
"github.com/prometheus/common/model"
)
type ErrorType string
type ApiResponse struct {
Status string `json:"status"`
Data json.RawMessage `json:"data"`
ErrorType ErrorType `json:"errorType,omitempty"`
Error string `json:"error,omitempty"`
}
type QueryResult struct {
Type model.ValueType `json:"resultType"`
Result json.RawMessage `json:"result"`
// The decoded value.
// v model.Value
}
type LabelResult []*string
//Define a new structure that represents out API response (response status and body)
type HTTPResponse struct {
status string
//matrix model.Matrix
result []byte
}
func (r ApiResponse) Successful() bool {
return string(r.Status) == "success"
}
func main() {
h := http.HandlerFunc(proxyHandler)
log.Fatal(http.ListenAndServe(":6789", h))
}
func proxyHandler(w http.ResponseWriter, r *http.Request) {
log.Println("Received:", r.URL)
urlParts := strings.Split(r.RequestURI, `/`)
api := strings.Split(urlParts[3], `?`)[0]
var ch chan HTTPResponse = make(chan HTTPResponse)
servers := os.Args[1:]
for _, server := range servers {
go DoHTTPGet(fmt.Sprintf("%s%s", server, r.URL), ch)
}
remote := make([]ApiResponse, 0)
for range servers {
response := <-ch
if strings.HasPrefix(response.status, `200`) {
remote = append(remote, ParseResponse(response.result))
} else {
log.Println("Ignoring response with status", response.status)
}
}
merged := Merge(api, remote)
asJson, err := json.Marshal(merged)
if err != nil {
log.Println("error marshalling back", err)
}
fmt.Fprintf(w, "%s", asJson)
}
func DoHTTPGet(url string, ch chan<- HTTPResponse) {
timeout := time.Duration(5 * time.Second)
client := http.Client{
Timeout: timeout,
}
log.Println("Getting", url)
httpResponse, err := client.Get(url)
if err != nil {
log.Println("Error in response", err)
ch <- HTTPResponse{`failed`, []byte(err.Error())}
} else {
defer httpResponse.Body.Close()
httpBody, _ := ioutil.ReadAll(httpResponse.Body)
//Send an HTTPResponse back to the channel
ch <- HTTPResponse{httpResponse.Status, httpBody}
}
}
func ParseResponse(body []byte) ApiResponse {
var ar ApiResponse
err := json.Unmarshal(body, &ar)
if err != nil {
log.Println("Error unmarshalling JSON api response", err, body)
return ApiResponse{Status: "error"}
}
return ar
}
func Merge(api string, responses []ApiResponse) ApiResponse {
var qr QueryResult
var ar ApiResponse
if len(responses) == 0 {
log.Println("No responses received")
return ApiResponse{Status: "failure"}
} else {
ar = responses[0]
}
switch api {
case `label`:
return MergeArrays(responses)
case `series`:
return MergeSeries(responses)
case `query_range`:
err := json.Unmarshal(ar.Data, &qr)
if err != nil {
log.Println("Error unmarshalling JSON query result", err, string(ar.Data))
log.Println("Full response:", string(ar.Data))
return ApiResponse{}
}
switch qr.Type {
case model.ValMatrix:
return MergeMatrices(responses)
default:
log.Println("Did not recognize the response type of", qr.Type)
}
}
log.Println("Full response:", string(ar.Data))
return ApiResponse{}
}
func MergeSeries(responses []ApiResponse) ApiResponse {
merged := make([]map[string]string, 0)
for _, ar := range responses {
var result []map[string]string
err := json.Unmarshal(ar.Data, &result)
if err != nil {
log.Println("Unmarshal problem got", err)
}
for _, r := range result {
merged = append(merged, r)
}
}
log.Println("result", merged)
m, err := json.Marshal(merged)
if err != nil {
log.Println("error marshalling series back", err)
}
return ApiResponse{Status: "success", Data: m}
}
func MergeArrays(responses []ApiResponse) ApiResponse {
set := make(map[string]struct{})
for _, ar := range responses {
var labels LabelResult
err := json.Unmarshal(ar.Data, &labels)
if err != nil {
log.Println("Error unmarshalling labels", err)
}
for _, label := range labels {
set[*label] = struct{}{}
}
}
keys := make([]string, 0, len(set))
for k := range set {
keys = append(keys, k)
}
sort.Strings(keys)
m, err := json.Marshal(keys)
if err != nil {
log.Println("error marshalling labels back", err)
}
return ApiResponse{Status: "success", Data: m}
}
func MergeMatrices(responses []ApiResponse) ApiResponse {
samples := make([]*model.SampleStream, 0)
for _, r := range responses {
matrix := ExtractMatrix(r)
for _, s := range matrix {
samples = append(samples, s)
}
}
mj, _ := json.Marshal(samples)
qr := QueryResult{model.ValMatrix, mj}
qrj, _ := json.Marshal(qr)
r := ApiResponse{Status: "success", Data: qrj}
return r
}
func ExtractMatrix(ar ApiResponse) model.Matrix {
var qr QueryResult
err := json.Unmarshal(ar.Data, &qr)
if err != nil {
log.Println("Error unmarshalling JSON query result", err, string(ar.Data))
}
var m model.Matrix
err = json.Unmarshal(qr.Result, &m)
if err != nil {
log.Println("Error unmarshalling a matrix", err, string(qr.Result))
}
return m
}
|
package responses
import (
"encoding/json"
"testing"
"github.com/stretchr/testify/assert"
)
func TestWalletInfoResponse(t *testing.T) {
response := WalletInfoResponse{
Balance: "1",
Pending: "2",
Receivable: "2",
AccountsCount: 5,
AdhocCount: 1,
DeterministicCount: 14,
DeterministicIndex: 5,
}
encoded, err := json.Marshal(response)
assert.Nil(t, err)
assert.Equal(t, "{\"balance\":\"1\",\"pending\":\"2\",\"receivable\":\"2\",\"accounts_count\":5,\"adhoc_count\":1,\"deterministic_count\":14,\"deterministic_index\":5}", string(encoded))
}
|
package types
type CompanyIn struct {
Name string `json:"name"`
NameAbbr string `json:"name_abbr"`
Code int64 `json:"code"`
}
|
package dbfixtures
import (
"context"
"database/sql"
"fmt"
"os"
"path"
fixtures "github.com/go-testfixtures/testfixtures/v3"
"github.com/mitchellh/mapstructure"
"github.com/pkg/errors"
migrate "github.com/rubenv/sql-migrate"
// SQL drivers.
_ "github.com/go-sql-driver/mysql"
_ "github.com/lib/pq"
_ "github.com/mattn/go-sqlite3"
"github.com/ovh/venom"
)
// Name of the executor.
const Name = "dbfixtures"
// New returns a new executor that can load
// database fixtures.
func New() venom.Executor {
return &Executor{}
}
// Executor is a venom executor that can load
// fixtures in many databases, using YAML schemas.
type Executor struct {
Files []string `json:"files" yaml:"files"`
Folder string `json:"folder" yaml:"folder"`
Database string `json:"database" yaml:"database"`
DSN string `json:"dsn" yaml:"dsn"`
Schemas []string `json:"schemas" yaml:"schemas"`
Migrations string `json:"migrations" yaml:"migrations"`
MigrationsTable string `json:"migrationsTable" yaml:"migrationsTable"`
SkipResetSequences bool `json:"skipResetSequences" yaml:"skipResetSequences"`
}
// Result represents a step result.
type Result struct {
Executor Executor `json:"executor,omitempty" yaml:"executor,omitempty"`
}
// Run implements the venom.Executor interface for Executor.
func (e Executor) Run(ctx context.Context, step venom.TestStep) (interface{}, error) {
// Transform step to Executor instance.
if err := mapstructure.Decode(step, &e); err != nil {
return nil, err
}
// Connect to the database and ping it.
venom.Debug(ctx, "connecting to database %s, %s\n", e.Database, e.DSN)
db, err := sql.Open(e.Database, e.DSN)
if err != nil {
return nil, errors.Wrapf(err, "failed to connect to database")
}
defer db.Close()
if err = db.Ping(); err != nil {
return nil, errors.Wrapf(err, "failed to ping database")
}
workdir := venom.StringVarFromCtx(ctx, "venom.testsuite.workdir")
// Load and import the schemas in the database
// if the argument is specified.
if len(e.Schemas) != 0 {
for _, s := range e.Schemas {
venom.Debug(ctx, "loading schema from file %s\n", s)
s = path.Join(workdir, s)
sbytes, errs := os.ReadFile(s)
if errs != nil {
return nil, errs
}
if _, err = db.Exec(string(sbytes)); err != nil {
return nil, errors.Wrapf(err, "failed to exec schema from file %q", s)
}
}
} else if e.Migrations != "" {
venom.Debug(ctx, "loading migrations from folder %s\n", e.Migrations)
if e.MigrationsTable != "" {
migrate.SetTable(e.MigrationsTable)
}
dir := path.Join(workdir, e.Migrations)
migrations := &migrate.FileMigrationSource{
Dir: dir,
}
n, errMigrate := migrate.Exec(db, e.Database, migrations, migrate.Up)
if errMigrate != nil {
return nil, fmt.Errorf("failed to apply up migrations: %s", errMigrate)
}
venom.Debug(ctx, "applied %d migrations\n", n)
}
// Load fixtures in the databases.
if err = loadFixtures(ctx, db, e.Files, e.Folder, getDialect(e.Database, e.SkipResetSequences), workdir); err != nil {
return nil, err
}
r := Result{Executor: e}
return r, nil
}
// ZeroValueResult return an empty implementation of this executor result
func (Executor) ZeroValueResult() interface{} {
return Result{}
}
// GetDefaultAssertions return the default assertions of the executor.
func (e Executor) GetDefaultAssertions() venom.StepAssertions {
return venom.StepAssertions{Assertions: []venom.Assertion{}}
}
// loadFixtures loads the fixtures in the database.
// It gives priority to the fixtures files found in folder,
// and switch to the list of files if no folder was specified.
func loadFixtures(ctx context.Context, db *sql.DB, files []string, folder string, dialect func(*fixtures.Loader) error, workdir string) error {
if folder != "" {
venom.Debug(ctx, "loading fixtures from folder %s\n", path.Join(workdir, folder))
loader, err := fixtures.New(
// By default the package refuse to load if the database
// does not contains "test" to avoid wiping a production db.
fixtures.DangerousSkipTestDatabaseCheck(),
fixtures.Database(db),
fixtures.Directory(path.Join(workdir, folder)),
dialect)
if err != nil {
return errors.Wrapf(err, "failed to create folder loader")
}
if err = loader.Load(); err != nil {
return errors.Wrapf(err, "failed to load fixtures from folder %q", path.Join(workdir, folder))
}
return nil
}
if len(files) != 0 {
venom.Debug(ctx, "loading fixtures from files: %v\n", files)
for i := range files {
files[i] = path.Join(workdir, files[i])
}
loader, err := fixtures.New(
// By default the package refuse to load if the database
// does not contains "test" to avoid wiping a production db.
fixtures.DangerousSkipTestDatabaseCheck(),
fixtures.Database(db),
fixtures.Files(files...),
dialect)
if err != nil {
return errors.Wrapf(err, "failed to create files loader")
}
if err = loader.Load(); err != nil {
return errors.Wrapf(err, "failed to load fixtures from files")
}
return nil
}
venom.Debug(ctx, "neither files or folder parameter was used\n")
return nil
}
func getDialect(name string, skipResetSequences bool) func(*fixtures.Loader) error {
switch name {
case "postgres":
return func(l *fixtures.Loader) error {
if err := fixtures.Dialect("postgresql")(l); err != nil {
return err
}
if skipResetSequences {
if err := fixtures.SkipResetSequences()(l); err != nil {
return err
}
}
return nil
}
case "mysql":
return fixtures.Dialect("mysql")
case "sqlite3":
return fixtures.Dialect("sqlite3")
}
return nil
}
|
/*
* @lc app=leetcode.cn id=1104 lang=golang
*
* [1104] 二叉树寻路
*/
// @lc code=start
func pathInZigZagTree(label int) []int {
}
// @lc code=end
|
package rap
type AuthToken struct {
Token string
}
type AuthBasic struct {
Username string
Password string
}
type Authentication interface {
AuthorizationHeader() string // "basic <base64-encoded string>"
} |
package xlattice_go
const (
VERSION = "0.4.19"
VERSION_DATE = "2017-11-10"
)
|
package sql
import (
"fmt"
)
// Iterator represents a forward-only iterator over a set of points.
// These are used by the MapFunctions in this file
type Iterator interface {
Next() (conversationsKey string, time int64, value interface{})
}
// MapFunc represents a function used for mapping over a sequential series of data.
// The iterator represents a single group by interval
type MapFunc func(Iterator) interface{}
// ReduceFunc represents a function used for reducing mapper output.
type ReduceFunc func([]interface{}) interface{}
// UnmarshalFunc represents a function that can take bytes from a mapper from remote
// server and marshal it into an interface the reducer can use
type UnmarshalFunc func([]byte) (interface{}, error)
// InitializeMapFunc takes an aggregate call from the query and returns the MapFunc
func InitializeMapFunc(c *Call) (MapFunc, error) {
// see if it's a query for raw data
return MapRawQuery, nil
}
// MapRawQuery is for queries without aggregates
func MapRawQuery(itr Iterator) interface{} {
var values []*rawQueryMapOutput
for _, k, v := itr.Next(); k != 0; _, k, v = itr.Next() {
val := &rawQueryMapOutput{k, v}
values = append(values, val)
}
return values
}
// MapCount computes the number of values in an iterator.
func MapCount(itr Iterator) interface{} {
n := float64(0)
for _, k, _ := itr.Next(); k != 0; _, k, _ = itr.Next() {
n++
}
if n > 0 {
return n
}
return nil
}
type rawQueryMapOutput struct {
Time int64
Values interface{}
}
func (r *rawQueryMapOutput) String() string {
return fmt.Sprintf("{%#v %#v}", r.Time, r.Values)
}
type rawOutputs []*rawQueryMapOutput
func (a rawOutputs) Len() int { return len(a) }
func (a rawOutputs) Less(i, j int) bool { return a[i].Time < a[j].Time }
func (a rawOutputs) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
/*
* Copyright (c) 2019 VMware, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package api_test
import (
"context"
"testing"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"
"github.com/kubenext/lissio/internal/api"
"github.com/kubenext/lissio/internal/api/fake"
"github.com/kubenext/lissio/internal/controllers"
lissioFake "github.com/kubenext/lissio/internal/controllers/fake"
"github.com/kubenext/lissio/internal/log"
moduleFake "github.com/kubenext/lissio/internal/module/fake"
"github.com/kubenext/lissio/pkg/action"
"github.com/kubenext/lissio/pkg/view/component"
)
func TestContentManager_Handlers(t *testing.T) {
controller := gomock.NewController(t)
defer controller.Finish()
moduleManager := moduleFake.NewMockManagerInterface(controller)
logger := log.NopLogger()
manager := api.NewContentManager(moduleManager, logger)
AssertHandlers(t, manager, []string{
api.RequestSetContentPath,
api.RequestSetNamespace,
})
}
func TestContentManager_GenerateContent(t *testing.T) {
controller := gomock.NewController(t)
defer controller.Finish()
params := map[string][]string{}
moduleManager := moduleFake.NewMockManagerInterface(controller)
state := lissioFake.NewMockState(controller)
state.EXPECT().GetContentPath().Return("/path")
state.EXPECT().GetNamespace().Return("default")
state.EXPECT().GetQueryParams().Return(params)
state.EXPECT().OnContentPathUpdate(gomock.Any()).DoAndReturn(func(fn controllers.ContentPathUpdateFunc) controllers.UpdateCancelFunc {
fn("foo")
return func() {}
})
lissioClient := fake.NewMockLissioClient(controller)
contentResponse := component.ContentResponse{
IconName: "fake",
}
contentEvent := api.CreateContentEvent(contentResponse, "default", "/path", params)
lissioClient.EXPECT().Send(contentEvent).AnyTimes()
logger := log.NopLogger()
poller := api.NewSingleRunPoller()
contentGenerator := func(ctx context.Context, state controllers.State) (component.ContentResponse, bool, error) {
return contentResponse, false, nil
}
manager := api.NewContentManager(moduleManager, logger,
api.WithContentGenerator(contentGenerator),
api.WithContentGeneratorPoller(poller))
ctx := context.Background()
manager.Start(ctx, state, lissioClient)
}
func TestContentManager_SetContentPath(t *testing.T) {
controller := gomock.NewController(t)
defer controller.Finish()
m := moduleFake.NewMockModule(controller)
m.EXPECT().Name().Return("name").AnyTimes()
moduleManager := moduleFake.NewMockManagerInterface(controller)
state := lissioFake.NewMockState(controller)
state.EXPECT().SetContentPath("/path")
logger := log.NopLogger()
manager := api.NewContentManager(moduleManager, logger,
api.WithContentGeneratorPoller(api.NewSingleRunPoller()))
payload := action.Payload{
"contentPath": "/path",
}
require.NoError(t, manager.SetContentPath(state, payload))
}
func TestContentManager_SetNamespace(t *testing.T) {
controller := gomock.NewController(t)
defer controller.Finish()
m := moduleFake.NewMockModule(controller)
m.EXPECT().Name().Return("name").AnyTimes()
moduleManager := moduleFake.NewMockManagerInterface(controller)
state := lissioFake.NewMockState(controller)
state.EXPECT().SetNamespace("kube-system")
logger := log.NopLogger()
manager := api.NewContentManager(moduleManager, logger,
api.WithContentGeneratorPoller(api.NewSingleRunPoller()))
payload := action.Payload{
"namespace": "kube-system",
}
require.NoError(t, manager.SetNamespace(state, payload))
}
func TestContentManager_SetQueryParams(t *testing.T) {
tests := []struct {
name string
payload action.Payload
setup func(state *lissioFake.MockState)
}{
{
name: "single filter",
payload: action.Payload{
"params": map[string]interface{}{
"filters": "foo:bar",
},
},
setup: func(state *lissioFake.MockState) {
state.EXPECT().SetFilters([]controllers.Filter{
{Key: "foo", Value: "bar"},
})
},
},
{
name: "multiple filters",
payload: action.Payload{
"params": map[string]interface{}{
"filters": []interface{}{
"foo:bar",
"baz:qux",
},
},
},
setup: func(state *lissioFake.MockState) {
state.EXPECT().SetFilters([]controllers.Filter{
{Key: "foo", Value: "bar"},
{Key: "baz", Value: "qux"},
})
},
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
controller := gomock.NewController(t)
defer controller.Finish()
m := moduleFake.NewMockModule(controller)
m.EXPECT().Name().Return("name").AnyTimes()
moduleManager := moduleFake.NewMockManagerInterface(controller)
state := lissioFake.NewMockState(controller)
require.NotNil(t, test.setup)
test.setup(state)
logger := log.NopLogger()
manager := api.NewContentManager(moduleManager, logger,
api.WithContentGeneratorPoller(api.NewSingleRunPoller()))
require.NoError(t, manager.SetQueryParams(state, test.payload))
})
}
}
|
package drivers
import (
"fmt"
"sync"
"time"
"github.com/complyue/ddgo/pkg/isoevt"
"github.com/complyue/ddgo/pkg/livecoll"
"github.com/complyue/ddgo/pkg/svcs"
"github.com/complyue/hbigo"
"github.com/complyue/hbigo/pkg/errors"
"github.com/golang/glog"
)
func NewMonoAPI(tid string) *ConsumerAPI {
return &ConsumerAPI{
mono: true,
tid: tid,
// all other fields be nil
}
}
// NewConsumerAPI .
func NewConsumerAPI(tid string) *ConsumerAPI {
return &ConsumerAPI{
tid: tid,
// no collection change stream unless subscribed
tkCCES: nil,
// initially not connected
svc: nil,
}
}
// ConsumerAPI .
type ConsumerAPI struct {
mono bool // should never be changed after construction
mu sync.Mutex //
tid string
// collection change event stream for Trucks
tkCCES *isoevt.EventStream
tkCCN int // last known ccn of truck collection
svc *hbi.TCPConn
}
// implementation details at consumer endpoint for service consuming over HBI wire
type consumerContext struct {
hbi.HoContext
api *ConsumerAPI
watchingTrucks bool
}
// give types to be exposed, with typed nil pointer values to each
func (ctx *consumerContext) TypesToExpose() []interface{} {
return []interface{}{
(*Truck)(nil),
(*TrucksSnapshot)(nil),
}
}
// Tid getter
func (api *ConsumerAPI) Tid() string {
return api.tid
}
func (api *ConsumerAPI) EnsureAlive() {
if api.mono {
return
}
api.EnsureConn()
}
const ReconnectDelay = 3 * time.Second
// ensure connected to a service endpoint via hbi wire
func (api *ConsumerAPI) EnsureConn() *hbi.TCPConn {
if api.mono {
panic(errors.New("This api is running in monolith mode."))
}
api.mu.Lock()
defer api.mu.Unlock()
var err error
for {
func() {
defer func() {
if e := recover(); e != nil {
err = errors.New(fmt.Sprintf("Error connecting to drivers service: %+v", e))
}
}()
if api.svc == nil || api.svc.Hosting.Cancelled() || api.svc.Posting.Cancelled() {
var svc *hbi.TCPConn
svc, err = svcs.GetService("drivers",
func() hbi.HoContext {
ctx := &consumerContext{
HoContext: hbi.NewHoContext(),
api: api,
}
return ctx
}, // single tunnel, use tid as sticky session id, for tenant isolation
"", api.tid, true)
if err == nil {
api.svc = svc
}
}
}()
if err == nil {
if api.tkCCES != nil {
// consumer has subscribed to Trucks collection change event stream,
// make sure the connected wire has subscribed as well,
// Epoch event will be fired by service upon each subscription.
ctx := api.svc.HoCtx().(*consumerContext)
if !ctx.watchingTrucks {
po := api.svc.MustPoToPeer()
po.Notif(fmt.Sprintf(`
SubscribeTrucks(%#v)
`, api.tid))
ctx.watchingTrucks = true
}
}
return api.svc
}
glog.Errorf("Failed connecting drivers service, retrying... %+v", err)
time.Sleep(ReconnectDelay)
}
}
// get posting endpoint
func (api *ConsumerAPI) conn() (*consumerContext, hbi.Posting) {
svc := api.EnsureConn()
return svc.HoCtx().(*consumerContext), svc.MustPoToPeer()
}
func (api *ConsumerAPI) AddTruck(tid string, x, y float64) error {
if api.mono {
return AddTruck(tid, x, y)
}
_, po := api.conn()
return po.Notif(fmt.Sprintf(`
AddTruck(%#v,%#v,%#v)
`, tid, x, y))
}
func (api *ConsumerAPI) MoveTruck(
tid string, seq int, id string, x, y float64,
) error {
if api.mono {
return MoveTruck(tid, seq, id, x, y)
}
glog.V(1).Infof(" * Requesting truck %v to move to (%v,%v) ...", seq, x, y)
_, po := api.conn()
err := po.Notif(fmt.Sprintf(`
MoveTruck(%#v,%#v,%#v,%#v,%#v)
`, tid, seq, id, x, y))
glog.V(1).Infof(" * Requested truck %v to move to (%v,%v).", seq, x, y)
return err
}
func (api *ConsumerAPI) StopTruck(
tid string, seq int, id string, moving bool,
) error {
if api.mono {
return StopTruck(tid, seq, id, moving)
}
glog.V(1).Infof(" * Requested truck %v to be moving=%v.", seq, moving)
_, po := api.conn()
err := po.Notif(fmt.Sprintf(`
StopTruck(%#v,%#v,%#v,%#v)
`, tid, seq, id, moving))
glog.V(1).Infof(" * Requested truck %v to be moving=%v.", seq, moving)
return err
}
func (api *ConsumerAPI) FetchTrucks() (ccn int, tkl []Truck) {
if api.mono {
tks := FetchTrucks(api.tid)
ccn, tkl = tks.CCN, tks.Trucks
return
}
_, po := api.conn()
co, err := po.Co()
if err != nil {
panic(err)
}
defer co.Close()
result, err := co.Get(fmt.Sprintf(`
FetchTrucks(%#v)
`, api.tid), "&TrucksSnapshot{}")
if err != nil {
panic(err)
}
tks := result.(*TrucksSnapshot)
ccn, tkl = tks.CCN, tks.Trucks
return
}
func (api *ConsumerAPI) SubscribeTrucks(subr livecoll.Subscriber) {
if api.mono {
ensureLoadedFor(api.tid)
tkCollection.Subscribe(subr)
return
}
// ensure the wire is connected
api.EnsureConn()
if api.tkCCES == nil { // quick check without sync
func() {
api.mu.Lock()
defer api.mu.Unlock()
if api.tkCCES != nil { // final check after sync'ed
return
}
api.tkCCES = isoevt.NewStream()
}()
}
// now api.tkCCES is guarranteed to not be nil
// consumer side event stream dispatching for Truck changes
livecoll.Dispatch(api.tkCCES, subr, func() bool {
// fire Epoch event upon watching started
subr.Epoch(api.tkCCN)
return false
})
}
func (ctx *consumerContext) tkCCES() *isoevt.EventStream {
api := ctx.api
// api.tkCCES won't change once assigned non-nil, we can trust thread local cache
cces := api.tkCCES // fast read without sync
if cces == nil { // sync'ed read on cache miss
api.mu.Lock()
cces = api.tkCCES
api.mu.Unlock()
}
if cces == nil {
panic("Consumer side tk cces not present on service event ?!")
}
return cces
}
func (ctx *consumerContext) TkEpoch(ccn int) {
cces := ctx.tkCCES()
cces.Post(livecoll.EpochEvent{ccn})
}
// Create
func (ctx *consumerContext) TkCreated(ccn int) {
eo, err := ctx.Ho().CoRecvObj()
if err != nil {
panic(err)
}
tk := eo.(*Truck)
cces := ctx.tkCCES()
cces.Post(livecoll.CreatedEvent{ccn, tk})
}
// Update
func (ctx *consumerContext) TkUpdated(ccn int) {
eo, err := ctx.Ho().CoRecvObj()
if err != nil {
panic(err)
}
tk := eo.(*Truck)
cces := ctx.tkCCES()
cces.Post(livecoll.UpdatedEvent{ccn, tk})
}
// Delete
func (ctx *consumerContext) TkDeleted(ccn int) {
eo, err := ctx.Ho().CoRecvObj()
if err != nil {
panic(err)
}
tk := eo.(*Truck)
cces := ctx.tkCCES()
cces.Post(livecoll.DeletedEvent{ccn, tk})
}
|
package tsmt
import (
"encoding/xml"
"github.com/thought-machine/finance-messaging/iso20022"
)
type Document02100103 struct {
XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:tsmt.021.001.03 Document"`
Message *MisMatchAcceptanceNotificationV03 `xml:"MisMtchAccptncNtfctn"`
}
func (d *Document02100103) AddMessage() *MisMatchAcceptanceNotificationV03 {
d.Message = new(MisMatchAcceptanceNotificationV03)
return d.Message
}
// Scope
// The MisMatchAcceptanceNotification message is sent by the matching application to the parties involved in the transaction.
// This message is used to notify the acceptance of mis-matched data sets.
// Usage
// The MisMatchAcceptanceNotification message can be sent by the matching application to pass on information about the acceptance of mis-matched data sets that it has obtained through the receipt of an MisMatchAcceptance message.
// In order to pass on information about the rejection of mis-matched data sets the matching application sends a MisMatchRejectionNotification message.
type MisMatchAcceptanceNotificationV03 struct {
// Identifies the notification message.
NotificationIdentification *iso20022.MessageIdentification1 `xml:"NtfctnId"`
// Unique identification assigned by the matching application to the transaction.
// This identification is to be used in any communication between the parties.
//
TransactionIdentification *iso20022.SimpleIdentificationInformation `xml:"TxId"`
// Unique identification assigned by the matching application to the baseline when it is established.
EstablishedBaselineIdentification *iso20022.DocumentIdentification3 `xml:"EstblishdBaselnId"`
// Identifies the status of the transaction by means of a code.
TransactionStatus *iso20022.TransactionStatus4 `xml:"TxSts"`
// Reference to the transaction for each financial institution which is a party to the transaction.
UserTransactionReference []*iso20022.DocumentIdentification5 `xml:"UsrTxRef,omitempty"`
// Reference to the identification of the report that contained the difference.
DataSetMatchReportReference *iso20022.MessageIdentification1 `xml:"DataSetMtchRptRef"`
// Information on the next processing step required.
RequestForAction *iso20022.PendingActivity2 `xml:"ReqForActn,omitempty"`
}
func (m *MisMatchAcceptanceNotificationV03) AddNotificationIdentification() *iso20022.MessageIdentification1 {
m.NotificationIdentification = new(iso20022.MessageIdentification1)
return m.NotificationIdentification
}
func (m *MisMatchAcceptanceNotificationV03) AddTransactionIdentification() *iso20022.SimpleIdentificationInformation {
m.TransactionIdentification = new(iso20022.SimpleIdentificationInformation)
return m.TransactionIdentification
}
func (m *MisMatchAcceptanceNotificationV03) AddEstablishedBaselineIdentification() *iso20022.DocumentIdentification3 {
m.EstablishedBaselineIdentification = new(iso20022.DocumentIdentification3)
return m.EstablishedBaselineIdentification
}
func (m *MisMatchAcceptanceNotificationV03) AddTransactionStatus() *iso20022.TransactionStatus4 {
m.TransactionStatus = new(iso20022.TransactionStatus4)
return m.TransactionStatus
}
func (m *MisMatchAcceptanceNotificationV03) AddUserTransactionReference() *iso20022.DocumentIdentification5 {
newValue := new(iso20022.DocumentIdentification5)
m.UserTransactionReference = append(m.UserTransactionReference, newValue)
return newValue
}
func (m *MisMatchAcceptanceNotificationV03) AddDataSetMatchReportReference() *iso20022.MessageIdentification1 {
m.DataSetMatchReportReference = new(iso20022.MessageIdentification1)
return m.DataSetMatchReportReference
}
func (m *MisMatchAcceptanceNotificationV03) AddRequestForAction() *iso20022.PendingActivity2 {
m.RequestForAction = new(iso20022.PendingActivity2)
return m.RequestForAction
}
|
package test
import (
"fmt"
"testing"
)
type AAA struct {
ID int
Name string
Age int
}
func Test_v(t *testing.T) {
a := AAA{
ID: 1,
Name: "aaaa",
Age: 3333,
}
fmt.Println("------ +v -----------")
fmt.Println(fmt.Sprintf("%+v", a))
fmt.Println("----- #v ------------")
fmt.Println(fmt.Sprintf("%#v", a))
fmt.Println("-----------v------")
fmt.Println(fmt.Sprintf("%v", a))
}
|
package sqly
import "testing"
func TestParseArray(t *testing.T) {
//str := []byte("{10001, 10002, 10003, 10004}")
str := []byte("{{\"meeting\",\"lunch\",\"lunch2\"},{\"training\",\"presentation\",\"fff\"}}")
dims, elems, err := parseArray(str, []byte{','})
if err != nil {
t.Log(err)
}
t.Log(dims)
t.Log(elems)
}
|
package echov4
import (
"github.com/kaz/pprotein/integration"
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/labstack/gommon/log"
)
func Integrate(e *echo.Echo) {
EnableDebugHandler(e)
EnableDebugMode(e)
}
func EnableDebugHandler(e *echo.Echo) {
e.Any("/debug/*", echo.WrapHandler(integration.NewDebugHandler()))
}
func EnableDebugMode(e *echo.Echo) {
e.Debug = true
e.Logger.SetLevel(log.DEBUG)
e.Use(middleware.Logger())
e.Use(middleware.Recover())
}
|
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func pathSum(root *TreeNode, sum int) int {
if root == nil {
return 0
}
sumMap := make(map[int]int)
sumMap[0] = 1
num := 0
doPathSum(&num, root, 0, sum, sumMap)
return num
}
func doPathSum(res *int, node *TreeNode, sumSoFar int, target int, cache map[int]int) {
if node == nil {
fmt.Println("I am nil node")
} else {
fmt.Println(node.Val)
}
fmt.Println(123)
if node == nil {
return
}
sumSoFar += node.Val
if cnt, ok := cache[sumSoFar-target]; ok {
*res += cnt
}
if cnt, ok := cache[sumSoFar]; ok {
cache[sumSoFar] = cnt + 1
} else {
cache[sumSoFar] = 1
}
doPathSum(res, node.Left, sumSoFar, target, cache)
doPathSum(res, node.Right, sumSoFar, target, cache)
fmt.Println(1)
cache[sumSoFar]--
fmt.Println(1)
}
|
package utils
import "testing"
func TestToJSON(t *testing.T) {
m := map[string]int{
"first": 1,
"second": 2,
}
jsonRep := ToJSON(m)
expect := `{"first":1,"second":2}`
if jsonRep != expect {
t.Error("got bad json result: ", jsonRep)
}
}
func TestToJSONStruct(t *testing.T) {
js := &struct {
Name string
Score float64
privateInfo string
}{
Name: "Maria",
Score: 9.78,
privateInfo: "hope it will stay private",
}
jsonRep := ToJSON(js)
expect := `{"Name":"Maria","Score":9.78}`
if jsonRep != expect {
t.Error("got bad json result: ", jsonRep)
}
}
func TestToJSONStructMeta(t *testing.T) {
js := &struct {
Name string `json:"full_name"`
Score float64 `json:"score"`
privateInfo string `json:"private_info"`
}{
Name: "Maria",
Score: 9.78,
privateInfo: "hope it will stay private",
}
jsonRep := ToJSON(js)
expect := `{"full_name":"Maria","score":9.78}`
if jsonRep != expect {
t.Error("got bad json result: ", jsonRep)
}
}
|
package messaging
import (
"encoding/json"
"log"
)
// SerialiseString - uses json.marshal to serialise strings
func SerialiseString(s string) (b []byte, isOK bool) {
msg, err := json.Marshal(s)
if err != nil {
log.Println(err)
return nil, false
}
return msg, true
}
// DeserialiseString - uses json.Unmarshal to deserialise json data to a string
func DeserialiseString(raw json.RawMessage) (s string, isOK bool) {
bytes, err := json.Marshal(raw)
if err != nil {
log.Println(err)
return "", false
}
err = json.Unmarshal(bytes, &s)
if err != nil {
log.Println(err)
return "", false
}
return s, true
}
|
package Postgres
import (
"MailService/internal/Model"
"github.com/go-pg/pg/v9"
"github.com/go-pg/pg/v9/orm"
pgwrapper "gitlab.com/slax0rr/go-pg-wrapper"
)
type DataBase struct {
DB pgwrapper.DB
User string
Password string
DataBaseName string
}
func (dbInfo *DataBase) Init(user string, password string, name string) (pgwrapper.DB, error) {
dbInfo.User = user
dbInfo.Password = password
dbInfo.DataBaseName = name
dbInfo.DB = pgwrapper.NewDB(pg.Connect(&pg.Options{
User: dbInfo.User,
Password: dbInfo.Password,
Database: dbInfo.DataBaseName,
}))
err := createSchema(dbInfo.DB)
dbInfo.DB = pgwrapper.NewDB(pg.Connect(&pg.Options{
User: dbInfo.User,
Password: dbInfo.Password,
Database: dbInfo.DataBaseName,
}))
return dbInfo.DB, err
}
func createSchema(db pgwrapper.DB) error {
models := []interface{}{
(*Model.Letter)(nil),
}
for _, model := range models {
err := db.Model(model).CreateTable(&orm.CreateTableOptions{
})
if err != nil {
return err
}
}
return nil
}
|
package main
// Configuration is used to form context to perform search routine.
type configuration struct {
originBoard board // ...
maxCost int // The max cost of a board can have
//expectdepth int // The answer path is expect to be less then this number. It is used
// // to avoid the A* method behaving like BFS.
// // Setting it to 0 means no expect depth
searchtime int // After searchtime seconds, the search will be forced to stop
costFunc func(*board,uint) uint //Comstom costFunc(board,depth)
}
|
package terraform_test
import (
"errors"
"github.com/cloudfoundry/bosh-bootloader/fakes"
"github.com/cloudfoundry/bosh-bootloader/terraform"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("OutputGenerator", func() {
var (
executor *fakes.TerraformExecutor
outputGenerator terraform.OutputGenerator
terraformOutputs map[string]interface{}
)
BeforeEach(func() {
executor = &fakes.TerraformExecutor{}
terraformOutputs = map[string]interface{}{
"some-key": "some-value",
}
executor.OutputsCall.Returns.Outputs = terraformOutputs
outputGenerator = terraform.NewOutputGenerator(executor)
})
It("returns an object to access all terraform outputs", func() {
outputs, err := outputGenerator.Generate("some-key: some-value")
Expect(err).NotTo(HaveOccurred())
Expect(executor.OutputsCall.Receives.TFState).To(Equal("some-key: some-value"))
Expect(outputs.Map).To(Equal(terraformOutputs))
})
Context("when executor outputs returns an error", func() {
It("returns an empty map and the error", func() {
executor.OutputsCall.Returns.Error = errors.New("executor outputs failed")
outputs, err := outputGenerator.Generate("")
Expect(err).To(MatchError("executor outputs failed"))
Expect(outputs.Map).To(BeEmpty())
})
})
})
|
package main
import (
"fmt"
"github.com/codesoap/ytools"
"os"
"path/filepath"
)
func main() {
url, err := ytools.GetDesiredVideoUrl()
if err != nil {
os.Exit(1)
}
save_as_last_picked(url)
fmt.Println(url)
}
func save_as_last_picked(url string) (err error) {
data_dir, err := ytools.GetDataDir()
if err != nil {
return
}
last_picked_filename := filepath.Join(data_dir, "last_picked")
last_picked_file, err := os.Create(last_picked_filename)
if err != nil {
fmt.Fprintln(os.Stderr, "Could not create last_picked file.")
return
}
defer func() {
err = last_picked_file.Close()
}()
_, err = fmt.Fprintln(last_picked_file, url)
if err != nil {
return
}
return
}
|
package antlr
type BaseATNSimulator struct {
atn *ATN
sharedContextCache *PredictionContextCache
}
func NewBaseATNSimulator(atn *ATN, sharedContextCache *PredictionContextCache) *BaseATNSimulator {
b := new(BaseATNSimulator)
b.atn = atn
b.sharedContextCache = sharedContextCache
return b
}
var ATNSimulatorError = NewDFAState(0x7FFFFFFF, NewBaseATNConfigSet(false))
func (b *BaseATNSimulator) getCachedContext(context PredictionContext) PredictionContext {
if b.sharedContextCache == nil {
return context
}
var visited = make(map[PredictionContext]PredictionContext)
return getCachedBasePredictionContext(context, b.sharedContextCache, visited)
}
|
package handlers
import (
"net/http"
"rest-api-test-users/pkg/user"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-sdk-go/aws"
)
const errorMethodNotAllowed = "method Not allowed"
// ErrorBody struct object
type ErrorBody struct {
ErrorMsg *string `json:"error,omitempty"`
}
// GetUsersHandler gets user by ID
func GetUsersHandler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
id := req.PathParameters["ID"]
// if id exist find user by ID
if len(id) > 0 {
user, err := user.GetUserByID(id)
if err != nil {
errorBody := ErrorBody{aws.String(err.Error())}
return apiResponse(http.StatusBadRequest, errorBody)
}
return apiResponse(http.StatusOK, user)
}
// if id do not exist get list of users
users, err := user.GetUsers()
if err != nil {
errorBody := ErrorBody{aws.String(err.Error())}
return apiResponse(http.StatusBadRequest, errorBody)
}
return apiResponse(http.StatusOK, users)
}
// PostUserHandler creates new user in DynamoDB
func PostUserHandler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
user, err := user.CreateUser(req)
if err != nil {
errorBody := ErrorBody{aws.String(err.Error())}
return apiResponse(http.StatusBadRequest, errorBody)
}
return apiResponse(http.StatusOK, user)
}
// PutUserHandler replace with new user DynamoDB
func PutUserHandler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
user, err := user.PutUser(req)
if err != nil {
errorBody := ErrorBody{aws.String(err.Error())}
return apiResponse(http.StatusBadRequest, errorBody)
}
return apiResponse(http.StatusOK, user)
}
// DeleteUserHandler deletes user from DynamoDB
func DeleteUserHandler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
id := req.PathParameters["ID"]
err := user.DeleteUser(id)
if err != nil {
errorBody := ErrorBody{aws.String(err.Error())}
return apiResponse(http.StatusBadRequest, errorBody)
}
return apiResponse(http.StatusOK, nil)
}
// UnhandledMethod handles methods that are not implimented
func UnhandledMethod() (events.APIGatewayProxyResponse, error) {
return apiResponse(http.StatusMethodNotAllowed, errorMethodNotAllowed)
}
|
package serverconfigs
import (
"encoding/json"
"errors"
"github.com/TeaOSLab/EdgeCommon/pkg/configutils"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/sslconfigs"
)
type ServerConfig struct {
Id int64 `yaml:"id" json:"id"` // ID
ClusterId int64 `yaml:"clusterId" json:"clusterId"` // 集群ID
Type string `yaml:"type" json:"type"` // 类型
IsOn bool `yaml:"isOn" json:"isOn"` // 是否开启
Name string `yaml:"name" json:"name"` // 名称
Description string `yaml:"description" json:"description"` // 描述
AliasServerNames []string `yaml:"aliasServerNames" json:"aliasServerNames"` // 关联的域名,比如CNAME之类的
ServerNames []*ServerNameConfig `yaml:"serverNames" json:"serverNames"` // 域名
// 前端协议
HTTP *HTTPProtocolConfig `yaml:"http" json:"http"` // HTTP配置
HTTPS *HTTPSProtocolConfig `yaml:"https" json:"https"` // HTTPS配置
TCP *TCPProtocolConfig `yaml:"tcp" json:"tcp"` // TCP配置
TLS *TLSProtocolConfig `yaml:"tls" json:"tls"` // TLS配置
Unix *UnixProtocolConfig `yaml:"unix" json:"unix"` // Unix配置
UDP *UDPProtocolConfig `yaml:"udp" json:"udp"` // UDP配置
// Web配置
Web *HTTPWebConfig `yaml:"web" json:"web"`
// 反向代理配置
ReverseProxyRef *ReverseProxyRef `yaml:"reverseProxyRef" json:"reverseProxyRef"`
ReverseProxy *ReverseProxyConfig `yaml:"reverseProxy" json:"reverseProxy"`
// WAF策略
HTTPFirewallPolicyId int64 `yaml:"httpFirewallPolicyId" json:"httpFirewallPolicyId"`
HTTPFirewallPolicy *firewallconfigs.HTTPFirewallPolicy `yaml:"httpFirewallPolicy" json:"httpFirewallPolicy"` // 通过 HTTPFirewallPolicyId 获取
// 缓存策略
HTTPCachePolicyId int64 `yaml:"httpCachePolicyId" json:"httpCachePolicyId"`
HTTPCachePolicy *HTTPCachePolicy `yaml:"httpCachePolicy" json:"httpCachePolicy"` // 通过 HTTPCachePolicyId 获取
isOk bool
}
// NewServerConfigFromJSON 从JSON中解析Server配置
func NewServerConfigFromJSON(data []byte) (*ServerConfig, error) {
config := &ServerConfig{}
err := json.Unmarshal(data, config)
return config, err
}
func NewServerConfig() *ServerConfig {
return &ServerConfig{}
}
func (this *ServerConfig) Init() error {
if this.HTTP != nil {
err := this.HTTP.Init()
if err != nil {
return err
}
}
if this.HTTPS != nil {
err := this.HTTPS.Init()
if err != nil {
return err
}
}
if this.TCP != nil {
err := this.TCP.Init()
if err != nil {
return err
}
}
if this.TLS != nil {
err := this.TLS.Init()
if err != nil {
return err
}
}
if this.Unix != nil {
err := this.Unix.Init()
if err != nil {
return err
}
}
if this.UDP != nil {
err := this.UDP.Init()
if err != nil {
return err
}
}
if this.ReverseProxyRef != nil {
err := this.ReverseProxyRef.Init()
if err != nil {
return err
}
}
if this.ReverseProxy != nil {
err := this.ReverseProxy.Init()
if err != nil {
return err
}
}
if this.Web != nil {
err := this.Web.Init()
if err != nil {
return err
}
}
this.isOk = true
return nil
}
// IsOk 配置是否正确
func (this *ServerConfig) IsOk() bool {
return this.isOk
}
func (this *ServerConfig) FullAddresses() []string {
result := []string{}
if this.HTTP != nil && this.HTTP.IsOn {
result = append(result, this.HTTP.FullAddresses()...)
}
if this.HTTPS != nil && this.HTTPS.IsOn {
result = append(result, this.HTTPS.FullAddresses()...)
}
if this.TCP != nil && this.TCP.IsOn {
result = append(result, this.TCP.FullAddresses()...)
}
if this.TLS != nil && this.TLS.IsOn {
result = append(result, this.TLS.FullAddresses()...)
}
if this.Unix != nil && this.Unix.IsOn {
result = append(result, this.Unix.FullAddresses()...)
}
if this.UDP != nil && this.UDP.IsOn {
result = append(result, this.UDP.FullAddresses()...)
}
return result
}
func (this *ServerConfig) Listen() []*NetworkAddressConfig {
result := []*NetworkAddressConfig{}
if this.HTTP != nil {
result = append(result, this.HTTP.Listen...)
}
if this.HTTPS != nil {
result = append(result, this.HTTPS.Listen...)
}
if this.TCP != nil {
result = append(result, this.TCP.Listen...)
}
if this.TLS != nil {
result = append(result, this.TLS.Listen...)
}
if this.Unix != nil {
result = append(result, this.Unix.Listen...)
}
if this.UDP != nil {
result = append(result, this.UDP.Listen...)
}
return result
}
func (this *ServerConfig) AsJSON() ([]byte, error) {
return json.Marshal(this)
}
func (this *ServerConfig) IsHTTPFamily() bool {
return this.HTTP != nil || this.HTTPS != nil
}
func (this *ServerConfig) IsTCPFamily() bool {
return this.TCP != nil || this.TLS != nil
}
func (this *ServerConfig) IsUnixFamily() bool {
return this.Unix != nil
}
func (this *ServerConfig) IsUDPFamily() bool {
return this.UDP != nil
}
// MatchName 判断是否和域名匹配
func (this *ServerConfig) MatchName(name string) bool {
if len(name) == 0 {
return false
}
if len(this.AliasServerNames) > 0 && configutils.MatchDomains(this.AliasServerNames, name) {
return true
}
for _, serverName := range this.ServerNames {
if serverName.Match(name) {
return true
}
}
return false
}
// MatchNameStrictly 判断是否严格匹配
func (this *ServerConfig) MatchNameStrictly(name string) bool {
for _, serverName := range this.AliasServerNames {
if serverName == name {
return true
}
}
for _, serverName := range this.ServerNames {
if serverName.Name == name {
return true
}
}
return false
}
// SSLPolicy SSL信息
func (this *ServerConfig) SSLPolicy() *sslconfigs.SSLPolicy {
if this.HTTPS != nil {
return this.HTTPS.SSLPolicy
}
if this.TLS != nil {
return this.TLS.SSLPolicy
}
return nil
}
// FindAndCheckReverseProxy 根据条件查找ReverseProxy
func (this *ServerConfig) FindAndCheckReverseProxy(dataType string) (*ReverseProxyConfig, error) {
switch dataType {
case "server":
if this.ReverseProxy == nil {
return nil, errors.New("reverse proxy not been configured")
}
return this.ReverseProxy, nil
default:
return nil, errors.New("invalid data type:'" + dataType + "'")
}
}
|
package service
import (
"Seaman/config"
"Seaman/model"
"github.com/go-xorm/xorm"
"github.com/kataras/iris/v12"
"time"
)
/**
* 角色模块功能服务接口
*/
type AppRoleService interface {
//新增角色
AddAppRole(model *model.TplAppRoleT) bool
//删除角色
DeleteAppRole(id int) bool
//通过id查询角色
GetAppRole(id int) (model.TplAppRoleT, error)
//获取角色总数
GetAppRoleTotalCount() (int64, error)
//角色列表
GetAppRoleList() []*model.TplAppRoleT
//角色列表带分页
GetAppRolePageList(appRole *model.TplAppRoleT,offset, limit int) []*model.TplAppRoleT
//修改角色
UpdateAppRole(model *model.TplAppRoleT) bool
}
/**
* 实例化角色服务结构实体对象
*/
func NewAppRoleService(engine *xorm.Engine) AppRoleService {
return &appRoleService{
Engine: engine,
}
}
/**
* 角色服务实现结构体
*/
type appRoleService struct {
Engine *xorm.Engine
}
/**
*新增角色
*appRole:角色信息
*/
func (ars *appRoleService) AddAppRole(appRole *model.TplAppRoleT) bool {
//插入项目固定字段内容
initConfig := config.InitConfig()
appRole.AppName = initConfig.AppName
appRole.AppScope = initConfig.AppScope
appRole.TenantId = initConfig.TenantId
appRole.CreateDate = time.Now()
appRole.LastUpdateDate = time.Now()
//todo:带入createUserId 和 UpdateUserId
_, err := ars.Engine.Insert(appRole)
if err != nil {
iris.New().Logger().Info(err.Error())
}
return err == nil
}
/**
* 删除角色
*/
func (ars *appRoleService) DeleteAppRole(appRoleId int) bool {
appRole := model.TplAppRoleT{Id: int64(appRoleId)}
_, err := ars.Engine.Where(" id = ? ", appRoleId).Delete(appRole)
if err != nil {
iris.New().Logger().Info(err.Error())
}
return err == nil
}
/**
*通过id查询角色
*/
func (ars *appRoleService) GetAppRole(appRoleId int) (model.TplAppRoleT, error) {
var appRole model.TplAppRoleT
_, err := ars.Engine.Id(appRoleId).Get(&appRole)
return appRole, err
}
/**
* 请求总的角色数量
* 返回值:总角色数量
*/
func (ars *appRoleService) GetAppRoleTotalCount() (int64, error) {
count, err := ars.Engine.Where(" 1 = ? ", 1).Count(new(model.TplAppRoleT))
if err != nil {
panic(err.Error())
return 0, err
}
//角色总数
return count, nil
}
/**
* 请求角色列表数据
*/
func (ars *appRoleService) GetAppRoleList() []*model.TplAppRoleT {
var appRoleList []*model.TplAppRoleT
err := ars.Engine.Where("1 = ?", 1).Find(&appRoleList)
if err != nil {
iris.New().Logger().Error(err.Error())
panic(err.Error())
return nil
}
return appRoleList
}
/**
* 请求角色列表数据
* offset:偏移数量
* limit:一次请求获取的数据条数
*/
func (ars *appRoleService) GetAppRolePageList(appRole *model.TplAppRoleT,offset, limit int) []*model.TplAppRoleT {
var appRoleList []*model.TplAppRoleT
session := ars.Engine.Where("1 = ?", 1)
err := session.Limit(limit, offset).Find(&appRoleList)
if err != nil {
iris.New().Logger().Error(err.Error())
panic(err.Error())
return nil
}
return appRoleList
}
/**
*修改角色
*appRole:角色信息
*/
func (ars *appRoleService) UpdateAppRole(appRole *model.TplAppRoleT) bool {
_, err := ars.Engine.Id(appRole.Id).Update(appRole)
if err != nil {
iris.New().Logger().Info(err.Error())
}
return err == nil
}
|
package iutils
import "github.com/golang/protobuf/proto"
type IByte interface {
ProtoBuf(value proto.Message) error
String() string
Json(value interface{}) error
Bytes() []byte
SetData(data []byte)
}
|
package main
import "fmt"
func main() {
foo()
bar("James")
s := woo("Moneypenny")
fmt.Println(s)
x, y := mouse("Ian", "Felmming")
fmt.Println(x)
fmt.Println(y)
}
// func (r receiver) identifier(parameters) (returns(s)) { ... }
func foo() {
fmt.Println("hello Im foo")
}
// know the difference with parameter and arguments
// we define our func with parameters (if any)
// we call our func and pass in arguments (if any)
func bar(s string) {
fmt.Println("hello", s)
}
// everythin in Go is PASS BY VALUE
//
func woo(s string) string {
return fmt.Sprint("hello from woo,", s)
}
func mouse(fn, ln string) (string, bool) {
a := fmt.Sprint(fn, ln, `, say "hello"`)
b := false
return a, b
}
|
package db
import (
"fmt"
"log"
"github.com/google/uuid"
)
func AddFile(name string, folderName string) {
Open()
defer Close()
if !IsInitialized() {
Initialize()
}
tx := BeginTransaction()
rows, err := db.Query("select id from folders where name=?", folderName)
if err != nil {
log.Fatal(err)
}
if !rows.Next() {
log.Fatalf("There's no such folder. %v \n", folderName)
}
var folderId int
err = rows.Scan(&folderId)
if err != nil {
log.Fatal(err)
}
rows.Close()
stmt, err := tx.Prepare("insert into files(name, content, created_at, updated_at, folder_id) values(?, ?, ?, ?, ?)")
if err != nil {
log.Fatal(err)
}
defer stmt.Close()
uuidObj, _ := uuid.NewUUID()
now := GetNowFormattedStr()
fmt.Printf("folderId: %v \n", folderId)
_, err = stmt.Exec(name, name+uuidObj.String(), now, now, folderId)
if err != nil {
log.Fatal(err)
}
err = tx.Commit()
if err != nil {
log.Fatal(err)
}
fmt.Printf("Create file \"%v\" 🚀 \n", name)
return
}
func GetFileContentsByName(fileName string) (contentsName string) {
Open()
defer Close()
if !IsInitialized() {
Initialize()
}
rows, err := db.Query("select content from files where name=?", fileName)
defer rows.Close()
if err != nil {
log.Fatal(err)
}
if !rows.Next() {
log.Fatalf("There's no such file. %v \n", fileName)
}
err = rows.Scan(&contentsName)
if err != nil {
log.Fatal(err)
}
return
}
func DeleteFile(fileName string) {
Open()
defer Close()
tx := BeginTransaction()
stmt, err := tx.Prepare("delete from files where name=?")
if err != nil {
log.Fatal(err)
return
}
defer stmt.Close()
_, err = stmt.Exec(fileName)
if err != nil {
log.Fatal(err)
}
tx.Commit()
}
|
// Copyright 2017 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,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package executor_test
import (
"fmt"
"strings"
"testing"
"github.com/pingcap/tidb/executor"
"github.com/pingcap/tidb/parser/mysql"
"github.com/pingcap/tidb/parser/terror"
"github.com/pingcap/tidb/testkit"
"github.com/pingcap/tidb/util/dbterror/exeerrors"
"github.com/stretchr/testify/require"
)
func TestRevokeGlobal(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
_, err := tk.Exec(`REVOKE ALL PRIVILEGES ON *.* FROM 'nonexistuser'@'host'`)
require.Error(t, err)
// Create a new user.
createUserSQL := `CREATE USER 'testGlobalRevoke'@'localhost' IDENTIFIED BY '123';`
tk.MustExec(createUserSQL)
grantPrivSQL := `GRANT ALL PRIVILEGES ON *.* to 'testGlobalRevoke'@'localhost';`
tk.MustExec(grantPrivSQL)
// Make sure all the global privs for new user is "Y".
for _, v := range mysql.AllDBPrivs {
sql := fmt.Sprintf(`SELECT %s FROM mysql.User WHERE User="testGlobalRevoke" and host="localhost";`, mysql.Priv2UserCol[v])
r := tk.MustQuery(sql)
r.Check(testkit.Rows("Y"))
}
// Revoke each priv from the user.
for _, v := range mysql.AllGlobalPrivs {
sql := fmt.Sprintf("REVOKE %s ON *.* FROM 'testGlobalRevoke'@'localhost';", mysql.Priv2Str[v])
tk.MustExec(sql)
sql = fmt.Sprintf(`SELECT %s FROM mysql.User WHERE User="testGlobalRevoke" and host="localhost"`, mysql.Priv2UserCol[v])
tk.MustQuery(sql).Check(testkit.Rows("N"))
}
}
func TestRevokeDBScope(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
// Create a new user.
tk.MustExec(`CREATE USER 'testDBRevoke'@'localhost' IDENTIFIED BY '123';`)
tk.MustExec(`GRANT ALL ON test.* TO 'testDBRevoke'@'localhost';`)
_, err := tk.Exec(`REVOKE ALL PRIVILEGES ON nonexistdb.* FROM 'testDBRevoke'@'localhost'`)
require.Error(t, err)
// Revoke each priv from the user.
for _, v := range mysql.AllDBPrivs {
check := fmt.Sprintf(`SELECT %s FROM mysql.DB WHERE User="testDBRevoke" and host="localhost" and db="test"`, mysql.Priv2UserCol[v])
sql := fmt.Sprintf("REVOKE %s ON test.* FROM 'testDBRevoke'@'localhost';", mysql.Priv2Str[v])
tk.MustQuery(check).Check(testkit.Rows("Y"))
tk.MustExec(sql)
if v == mysql.AllDBPrivs[len(mysql.AllDBPrivs)-1] {
// When all privileges are set to 'N', then the record should be removed as well.
// https://github.com/pingcap/tidb/issues/38363
tk.MustQuery(check).Check(testkit.Rows())
} else {
tk.MustQuery(check).Check(testkit.Rows("N"))
}
}
}
func TestRevokeTableScope(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
// Create a new user.
tk.MustExec(`CREATE USER 'testTblRevoke'@'localhost' IDENTIFIED BY '123';`)
tk.MustExec(`CREATE TABLE test.test1(c1 int);`)
tk.MustExec(`GRANT ALL PRIVILEGES ON test.test1 TO 'testTblRevoke'@'localhost';`)
_, err := tk.Exec(`REVOKE ALL PRIVILEGES ON test.nonexisttable FROM 'testTblRevoke'@'localhost'`)
require.Error(t, err)
// Make sure all the table privs for new user is Y.
res := tk.MustQuery(`SELECT Table_priv FROM mysql.tables_priv WHERE User="testTblRevoke" and host="localhost" and db="test" and Table_name="test1"`)
res.Check(testkit.Rows("Select,Insert,Update,Delete,Create,Drop,Index,Alter,Create View,Show View,Trigger,References"))
// Revoke each priv from the user.
for index, v := range mysql.AllTablePrivs {
sql := fmt.Sprintf("REVOKE %s ON test.test1 FROM 'testTblRevoke'@'localhost';", mysql.Priv2Str[v])
tk.MustExec(sql)
rows := tk.MustQuery(`SELECT Table_priv FROM mysql.tables_priv WHERE User="testTblRevoke" and host="localhost" and db="test" and Table_name="test1";`).Rows()
if index < len(mysql.AllTablePrivs)-1 {
require.Len(t, rows, 1)
row := rows[0]
require.Len(t, row, 1)
op := v.SetString()
found := false
for _, p := range executor.SetFromString(fmt.Sprintf("%s", row[0])) {
if op == p {
found = true
break
}
}
require.False(t, found, "%s", mysql.Priv2SetStr[v])
} else {
//delete row when last prv , updated by issue #38421
require.Len(t, rows, 0)
}
}
// Revoke all table scope privs.
tk.MustExec(`GRANT ALL PRIVILEGES ON test.test1 TO 'testTblRevoke'@'localhost';`)
tk.MustExec("REVOKE ALL ON test.test1 FROM 'testTblRevoke'@'localhost';")
//delete row when last prv , updated by issue #38421
rows := tk.MustQuery(`SELECT Table_priv FROM mysql.Tables_priv WHERE User="testTblRevoke" and host="localhost" and db="test" and Table_name="test1"`).Rows()
require.Len(t, rows, 0)
}
func TestRevokeColumnScope(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
// Create a new user.
tk.MustExec(`CREATE USER 'testColRevoke'@'localhost' IDENTIFIED BY '123';`)
tk.MustExec(`CREATE TABLE test.test3(c1 int, c2 int);`)
tk.MustQuery(`SELECT * FROM mysql.Columns_priv WHERE User="testColRevoke" and host="localhost" and db="test" and Table_name="test3" and Column_name="c2"`).Check(testkit.Rows())
// Grant and Revoke each priv on the user.
for _, v := range mysql.AllColumnPrivs {
grantSQL := fmt.Sprintf("GRANT %s(c1) ON test.test3 TO 'testColRevoke'@'localhost';", mysql.Priv2Str[v])
revokeSQL := fmt.Sprintf("REVOKE %s(c1) ON test.test3 FROM 'testColRevoke'@'localhost';", mysql.Priv2Str[v])
checkSQL := `SELECT Column_priv FROM mysql.Columns_priv WHERE User="testColRevoke" and host="localhost" and db="test" and Table_name="test3" and Column_name="c1"`
tk.MustExec(grantSQL)
rows := tk.MustQuery(checkSQL).Rows()
require.Len(t, rows, 1)
row := rows[0]
require.Len(t, row, 1)
p := fmt.Sprintf("%v", row[0])
require.Greater(t, strings.Index(p, mysql.Priv2SetStr[v]), -1)
tk.MustExec(revokeSQL)
//delete row when last prv , updated by issue #38421
rows = tk.MustQuery(checkSQL).Rows()
require.Len(t, rows, 0)
}
// Create a new user.
tk.MustExec("CREATE USER 'testCol1Revoke'@'localhost' IDENTIFIED BY '123';")
tk.MustExec("USE test;")
// Grant all column scope privs.
tk.MustExec("GRANT ALL(c2) ON test3 TO 'testCol1Revoke'@'localhost';")
// Make sure all the column privs for granted user are in the Column_priv set.
for _, v := range mysql.AllColumnPrivs {
rows := tk.MustQuery(`SELECT Column_priv FROM mysql.Columns_priv WHERE User="testCol1Revoke" and host="localhost" and db="test" and Table_name="test3" and Column_name="c2";`).Rows()
require.Len(t, rows, 1)
row := rows[0]
require.Len(t, row, 1)
p := fmt.Sprintf("%v", row[0])
require.Greater(t, strings.Index(p, mysql.Priv2SetStr[v]), -1)
}
tk.MustExec("REVOKE ALL(c2) ON test3 FROM 'testCol1Revoke'@'localhost'")
//delete row when last prv , updated by issue #38421
rows := tk.MustQuery(`SELECT Column_priv FROM mysql.Columns_priv WHERE User="testCol1Revoke" and host="localhost" and db="test" and Table_name="test3"`).Rows()
require.Len(t, rows, 0)
}
// ref issue #38421
func TestRevokeTableSingle(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
// Create a new user.
tk.MustExec(`CREATE USER test;`)
tk.MustExec(`CREATE TABLE test.test1(c1 int);`)
tk.MustExec(`GRANT SELECT ON test.test1 TO test;`)
tk.MustExec(`REVOKE SELECT ON test.test1 from test;`)
rows := tk.MustQuery(`SELECT Column_priv FROM mysql.tables_priv WHERE User="test" `).Rows()
require.Len(t, rows, 0)
}
// ref issue #38421(column fix)
func TestRevokeTableSingleColumn(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
// Create a new user.
tk.MustExec(`CREATE USER test;`)
tk.MustExec(`GRANT SELECT(Host) ON mysql.db TO test`)
tk.MustExec(`GRANT SELECT(DB) ON mysql.db TO test`)
tk.MustExec(`REVOKE SELECT(Host) ON mysql.db FROM test`)
rows := tk.MustQuery(`SELECT Column_priv FROM mysql.columns_priv WHERE User="test" and Column_name ='Host' `).Rows()
require.Len(t, rows, 0)
rows = tk.MustQuery(`SELECT Column_priv FROM mysql.columns_priv WHERE User="test" and Column_name ='DB' `).Rows()
require.Len(t, rows, 1)
}
func TestRevokeDynamicPrivs(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("DROP USER if exists dyn")
tk.MustExec("create user dyn")
tk.MustExec("GRANT BACKUP_Admin ON *.* TO dyn") // grant one priv
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows("dyn % BACKUP_ADMIN N"))
// try revoking only on test.* - should fail:
_, err := tk.Exec("REVOKE BACKUP_Admin,system_variables_admin ON test.* FROM dyn")
require.True(t, terror.ErrorEqual(err, exeerrors.ErrIllegalPrivilegeLevel))
// privs should still be intact:
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows("dyn % BACKUP_ADMIN N"))
// with correct usage, the privilege is revoked
tk.MustExec("REVOKE BACKUP_Admin ON *.* FROM dyn")
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows())
// Revoke bogus is a warning in MySQL
tk.MustExec("REVOKE bogus ON *.* FROM dyn")
tk.MustQuery("SHOW WARNINGS").Check(testkit.Rows("Warning 3929 Dynamic privilege 'BOGUS' is not registered with the server."))
// grant and revoke two dynamic privileges at once.
tk.MustExec("GRANT BACKUP_ADMIN, SYSTEM_VARIABLES_ADMIN ON *.* TO dyn")
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows("dyn % BACKUP_ADMIN N", "dyn % SYSTEM_VARIABLES_ADMIN N"))
tk.MustExec("REVOKE BACKUP_ADMIN, SYSTEM_VARIABLES_ADMIN ON *.* FROM dyn")
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows())
// revoke a combination of dynamic + non-dynamic
tk.MustExec("GRANT BACKUP_ADMIN, SYSTEM_VARIABLES_ADMIN, SELECT, INSERT ON *.* TO dyn")
tk.MustExec("REVOKE BACKUP_ADMIN, SYSTEM_VARIABLES_ADMIN, SELECT, INSERT ON *.* FROM dyn")
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows())
// revoke grant option from privileges
tk.MustExec("GRANT BACKUP_ADMIN, SYSTEM_VARIABLES_ADMIN, SELECT ON *.* TO dyn WITH GRANT OPTION")
tk.MustExec("REVOKE BACKUP_ADMIN, SELECT, GRANT OPTION ON *.* FROM dyn")
tk.MustQuery("SELECT * FROM mysql.global_grants WHERE `Host` = '%' AND `User` = 'dyn' ORDER BY user,host,priv,with_grant_option").Check(testkit.Rows("dyn % SYSTEM_VARIABLES_ADMIN Y"))
}
func TestRevokeOnNonExistTable(t *testing.T) {
// issue #28533
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("CREATE DATABASE d1;")
defer tk.MustExec("DROP DATABASE IF EXISTS d1;")
tk.MustExec("USE d1;")
tk.MustExec("CREATE TABLE t1 (a int)")
defer tk.MustExec("DROP TABLE IF EXISTS t1")
tk.MustExec("CREATE USER issue28533")
defer tk.MustExec("DROP USER issue28533")
// GRANT ON existent table success
tk.MustExec("GRANT ALTER ON d1.t1 TO issue28533;")
// GRANT ON non-existent table success
tk.MustExec("GRANT INSERT, CREATE ON d1.t2 TO issue28533;")
// REVOKE ON non-existent table success
tk.MustExec("DROP TABLE t1;")
tk.MustExec("REVOKE ALTER ON d1.t1 FROM issue28533;")
}
// Check https://github.com/pingcap/tidb/issues/41773.
func TestIssue41773(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec("create table if not exists xx (id int)")
tk.MustExec("CREATE USER 't1234'@'%' IDENTIFIED BY 'sNGNQo12fEHe0n3vU';")
tk.MustExec("GRANT USAGE ON * TO 't1234'@'%';")
tk.MustExec("GRANT USAGE ON test.* TO 't1234'@'%';")
tk.MustExec("GRANT USAGE ON test.xx TO 't1234'@'%';")
tk.MustExec("REVOKE USAGE ON * FROM 't1234'@'%';")
tk.MustExec("REVOKE USAGE ON test.* FROM 't1234'@'%';")
tk.MustExec("REVOKE USAGE ON test.xx FROM 't1234'@'%';")
}
// Check https://github.com/pingcap/tidb/issues/41048
func TestCaseInsensitiveSchemaNames(t *testing.T) {
store := testkit.CreateMockStore(t)
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustExec(`CREATE TABLE test.TABLE_PRIV(id int, name varchar(20));`)
// Verify the case-insensitive updates for mysql.tables_priv table.
tk.MustExec(`GRANT SELECT ON test.table_priv TO 'root'@'%';`)
tk.MustExec(`revoke SELECT ON test.TABLE_PRIV from 'root'@'%';;`)
// Verify the case-insensitive updates for mysql.db table.
tk.MustExec(`GRANT SELECT ON test.* TO 'root'@'%';`)
tk.MustExec(`revoke SELECT ON tESt.* from 'root'@'%';;`)
// Verify the case-insensitive updates for mysql.columns_priv table.
tk.MustExec(`GRANT SELECT (id), INSERT (ID, name) ON tEst.TABLE_PRIV TO 'root'@'%';`)
tk.MustExec(`REVOKE SELECT (ID) ON test.taBle_priv from 'root'@'%';;`)
}
|
package main
import (
"time"
)
type (
Auth interface {
}
Base struct {
ID uint `gorm:"primary_key"`
CreatedAt time.Time
UpdatedAt time.Time
}
Person struct {
Base
Career string `form:"Career"`
Class string `form:"Class"`
Country string `form:"Country"`
Develop string `form:"Help"`
Email string `form:"Email"`
//Experience string `form:""`
Firstname string `form:"First"`
Freetime string `form:"Freetime"`
Ideas string `form:"Project"`
//Intrest string `form:"last"`
Lastname string `form:"Last"`
Phone string `form:"last"`
School string `form:"School"`
Skillset string `form:"Skillset"`
Subjects string `form:"Subjects"`
}
User struct {
Firstname string
Lastname string
Email string `gorm:"unique"`
Password string
Token string
Salt string
authType int //1 = hautomo 2 = google
Level int
Approved bool
Verified bool
Person Person
}
Project struct {
Name string
Description string
}
Page struct {
Base
path string
english string //JSON
finnish string //JSON
}
AuditLog struct {
Base
Who Person
Url string
Method string
What string
Id int
}
)
func (m *Base) AfterCreate() (err error) {
m.CreatedAt = time.Now()
return
}
func (m *Base) AfterUpdate() (err error) {
m.UpdatedAt = time.Now()
return
}
|
package mysql
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
"tcc_transaction/constant"
"tcc_transaction/log"
"tcc_transaction/store/data"
"time"
)
const (
maxOpenConns = 10
maxIdleConns = 10
maxLifeTime = 300
)
type MysqlClient struct {
c *sqlx.DB
}
// tcc:tcc_123@tcp(localhost:3306)/tcc?charset=utf8
func NewMysqlClient(user, pwd, host, port, database string) (*MysqlClient, error) {
db, err := sqlx.Open("mysql", fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8", user, pwd, host, port, database))
if err != nil {
return nil, err
}
db.SetMaxOpenConns(maxOpenConns)
db.SetMaxIdleConns(maxIdleConns)
db.SetConnMaxLifetime(maxLifeTime * time.Second)
err = db.Ping()
if err != nil {
return nil, err
}
return &MysqlClient{
c: db,
}, nil
}
func (c *MysqlClient) InsertRequestInfo(r *data.RequestInfo) error {
sql := `INSERT INTO request_info (url, method, param) values(?, ?, ?)`
rst, err := c.c.Exec(sql, r.Url, r.Method, r.Param)
if err != nil {
return err
}
id, err := rst.LastInsertId()
if err != nil {
return err
}
r.Id = id
return nil
}
func (c *MysqlClient) UpdateRequestInfoStatus(status int, id int64) error {
sql := `UPDATE request_info SET status = ? where id = ?`
_, err := c.c.Exec(sql, status, id)
return err
}
func (c *MysqlClient) UpdateRequestInfoTimes(id int64) error {
sql := `UPDATE request_info SET times = times + 1 where id = ?`
_, err := c.c.Exec(sql, id)
return err
}
func (c *MysqlClient) UpdateRequestInfoSend(id int64) error {
sql := `UPDATE request_info SET is_send = 1, status=? where id = ?`
_, err := c.c.Exec(sql, constant.RequestInfoStatus5, id)
return err
}
func (c *MysqlClient) ListExceptionalRequestInfo() ([]*data.RequestInfo, error) {
var rst []*data.RequestInfo
sql := `SELECT id,
url,
method,
param,
status,
times,
is_send,
deleted
FROM request_info
WHERE status in (2, 4)
AND is_send = 0
AND deleted = 0`
err := c.c.Select(&rst, sql)
if err != nil {
return nil, err
}
sql = `SELECT id, request_id, idx, url, method, status, try_result, param FROM success_step WHERE request_id = ? AND status = 0 AND deleted = 0`
for idx, ri := range rst {
var ss []*data.SuccessStep
err = c.c.Select(&ss, sql, ri.Id)
if err != nil {
log.Errorf("read success step info failed from mysql, please check it. error info is: %s", err)
continue
}
rst[idx].SuccessSteps = ss
}
return rst, nil
}
func (c *MysqlClient) InsertSuccessStep(s *data.SuccessStep) error {
sql := `INSERT INTO success_step (request_id, idx, status, url, method, param, try_result) values(?, ?, ?, ?, ?, ?, ?)`
rst, err := c.c.Exec(sql, s.RequestId, s.Index, s.Status, s.Url, s.Method, s.Param, s.Result)
if err != nil {
return err
}
id, err := rst.LastInsertId()
if err != nil {
return err
}
s.Id = id
return nil
}
// 因为需要获取自增主键,所以无法使用一个sql进行批处理
func (c *MysqlClient) BatchInsertSuccessStep(ss []*data.SuccessStep) error {
sql := `INSERT INTO success_step (request_id, idx, status, url, method, param, try_result) values(?, ?, ?, ?, ?, ?, ?)`
tx, err := c.c.Begin()
if err != nil {
return err
}
for _, s := range ss {
rst, err := tx.Exec(sql, s.RequestId, s.Index, s.Status, s.Url, s.Method, s.Param, s.Result)
if err != nil {
goto Rollback
}
id, err := rst.LastInsertId()
if err != nil {
goto Rollback
}
s.Id = id
}
return tx.Commit()
Rollback:
tx.Rollback()
return err
}
func (c *MysqlClient) UpdateSuccessStepStatus(rid, sid int64, status int) error {
sql := `UPDATE success_step SET status = ? WHERE id = ? AND request_id = ?`
_, err := c.c.Exec(sql, status, sid, rid)
return err
}
func (c *MysqlClient) Confirm(id int64) error {
tx, err := c.c.Begin()
if err != nil {
return err
}
sql := `UPDATE success_step SET status = 1 WHERE request_id = ?`
_, err = tx.Exec(sql, id)
if err != nil {
tx.Rollback()
return err
}
sql = `UPDATE request_info SET status = 1 WHERE id = ?`
_, err = tx.Exec(sql, id)
if err != nil {
tx.Rollback()
return err
}
tx.Commit()
return err
}
|
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func isValidBST(root *TreeNode) bool {
if root == nil {
return true
}
result := true
dfs(root.Left, nil, &root.Val, &result)
dfs(root.Right, &root.Val, nil, &result)
return result
}
func dfs(node *TreeNode, low *int, high *int, result *bool) {
if node == nil || !(*result) {
return
}
if (low != nil && node.Val <= (*low)) || (high != nil && node.Val >= (*high)) {
*result = false
return
}
dfs(node.Left, low, &node.Val, result)
dfs(node.Right, &node.Val, high, result)
}
/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/
func isValidBST(root *TreeNode) bool {
if root == nil {
return true
}
return dfs(root.Left, math.MinInt64, root.Val) && dfs(root.Right, root.Val, math.MaxInt64)
}
func dfs(node *TreeNode, low int, high int) bool {
if node == nil {
return true
}
if node.Val <= low || node.Val >= high {
return false
}
return dfs(node.Left, low, node.Val) && dfs(node.Right, node.Val, high)
}
|
package sudoku
import "os"
import "sync"
import "github.com/mandolyte/simplelogger"
import "sync/atomic"
// misc
var mutex = &sync.Mutex{}
var solutions map[string]string
var sl *simplelogger.SimpleLogger
var Counter uint64
func init() {
solutions = make(map[string]string)
sl = &simplelogger.SimpleLogger {
INFO: true,
DEBUG: true,
Writer: os.Stderr,
}
//sl.Info("init() @ time.now")
}
func inc_counter() {
atomic.AddUint64(&Counter, 1)
}
func add_solution(sol, puz string) {
mutex.Lock()
solutions[sol] = puz
mutex.Unlock()
}
func GetSolutions() map[string]string {
return solutions
}
func Copy (p *puzzle) *puzzle {
q := NewPuzzle()
for n,_ := range p.cells {
q.cells[n].value = p.cells[n].value
q.cells[n].marks = append(q.cells[n].marks,
p.cells[n].marks...)
}
/* test only remove later
f1 := p.fingerprint()
f2 := q.fingerprint()
if f1 == f2 {
fmt.Printf("fingerprints do match:\n%v\n%v\n",f1,f2)
} else {
fmt.Printf("fingerprints do not match:\n%v\n%v\n",f1,f2)
}
*/
return q
}
func Solve(p *puzzle) {
inc_counter()
if err := p.Validate(); err == nil {
add_solution(p.fingerprint(), p.String())
return
}
// find first blank cell (zero)
x := -1
for n,_ := range p.cells {
if p.cells[n].value == 0 {
x = n
break
}
}
if x == -1 {
// none found, just return
return
}
var wg sync.WaitGroup
// x,len(p.cells[x].marks)))
for _,v := range p.cells[x].marks {
q := Copy(p)
q.cells[x].value = v
q.Remove_used_mark(v, x)
wg.Add(1)
go func (q *puzzle) {
defer wg.Done()
Solve(q)
}(q)
}
wg.Wait()
} |
package parquet_test
import (
"testing"
"github.com/segmentio/parquet-go"
)
func TestTransformRowReader(t *testing.T) {
rows := []parquet.Row{
{parquet.Int64Value(0)},
{parquet.Int64Value(1)},
{parquet.Int64Value(2)},
{parquet.Int64Value(3)},
{parquet.Int64Value(4)},
}
want := []parquet.Row{
{parquet.Int64Value(0), parquet.Int64Value(0).Level(0, 0, 1)},
{parquet.Int64Value(1), parquet.Int64Value(2).Level(0, 0, 1)},
{parquet.Int64Value(2), parquet.Int64Value(4).Level(0, 0, 1)},
{parquet.Int64Value(3), parquet.Int64Value(6).Level(0, 0, 1)},
{parquet.Int64Value(4), parquet.Int64Value(8).Level(0, 0, 1)},
}
reader := parquet.TransformRowReader(&bufferedRows{rows: rows},
func(dst, src parquet.Row) (parquet.Row, error) {
dst = append(dst, src[0])
dst = append(dst, parquet.Int64Value(2*src[0].Int64()).Level(0, 0, 1))
return dst, nil
},
)
writer := &bufferedRows{}
_, err := parquet.CopyRows(writer, reader)
if err != nil {
t.Fatal(err)
}
assertEqualRows(t, want, writer.rows)
}
func TestTransformRowWriter(t *testing.T) {
rows := []parquet.Row{
{parquet.Int64Value(0)},
{parquet.Int64Value(1)},
{parquet.Int64Value(2)},
{parquet.Int64Value(3)},
{parquet.Int64Value(4)},
}
want := []parquet.Row{
{parquet.Int64Value(1)},
{parquet.Int64Value(3)},
}
buffer := &bufferedRows{}
writer := parquet.TransformRowWriter(buffer,
func(dst, src parquet.Row) (parquet.Row, error) {
if (src[0].Int64() % 2) != 0 {
dst = append(dst, src[0])
}
return dst, nil
},
)
reader := &bufferedRows{rows: rows}
_, err := parquet.CopyRows(writer, reader)
if err != nil {
t.Fatal(err)
}
assertEqualRows(t, want, buffer.rows)
}
|
package models
type Item struct {
Name string `bson:"name"`
Quantity int `bson:"qtd"`
Price float64 `bson:"price"`
}
|
package order
import (
"context"
"tpay_backend/merchantapi/internal/common"
"tpay_backend/model"
"tpay_backend/merchantapi/internal/svc"
"tpay_backend/merchantapi/internal/types"
"github.com/tal-tech/go-zero/core/logx"
)
type ModifyTransferTestOrderStatusLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewModifyTransferTestOrderStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) ModifyTransferTestOrderStatusLogic {
return ModifyTransferTestOrderStatusLogic{
Logger: logx.WithContext(ctx),
ctx: ctx,
svcCtx: svcCtx,
}
}
func (l *ModifyTransferTestOrderStatusLogic) ModifyTransferTestOrderStatus(merchantId int64, req types.ModifyTransferTestOrderStatusRequest) error {
order, err := model.NewTransferOrderModel(l.svcCtx.DbEngine).FindByMerchantId(merchantId, req.OrderNo)
if err != nil {
if err == model.ErrRecordNotFound {
l.Errorf("代付订单[%v]不存在", req.OrderNo)
return common.NewCodeError(common.OrderNotExist)
} else {
l.Errorf("查询代付订单[%v]失败, err=%v", req.OrderNo, err)
return common.NewCodeError(common.SystemInternalErr)
}
}
if order.Mode != model.TransferModeTest {
l.Errorf("代付订单[%v]不是测试订单,不可手动修改订单状态, mode=%v", req.OrderNo, order.Mode)
return common.NewCodeError(common.OrderNotOp)
}
if order.OrderStatus != model.TransferOrderStatusPending {
l.Errorf("代付订单[%v]不是待支付状态,不可修改订单状态, status=%v", req.OrderNo, order.OrderStatus)
return common.NewCodeError(common.OrderNotOp)
}
switch req.OrderStatus {
case model.TransferOrderStatusPaid:
err = model.NewTransferOrderModel(l.svcCtx.DbEngine).UpdateOrderStatus(order.Id, model.TransferOrderStatusPaid)
case model.TransferOrderStatusFail:
err = model.NewTransferOrderModel(l.svcCtx.DbEngine).UpdateOrderStatus(order.Id, model.TransferOrderStatusFail)
default:
l.Errorf("未知的订单状态,req.OrderStatus=%v", req.OrderStatus)
return common.NewCodeError(common.InvalidParam)
}
if err != nil {
l.Errorf("修改代付订单[%v]支付状态失败, err=%v", order.Id, err)
return common.NewCodeError(common.SysDBUpdate)
}
return nil
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.