<commit_before>// Big monolithic binding file.
// Binds a ton of things.

package middleware

import (
	"bufio"
	"bytes"
	"crypto/tls"
	"encoding/base64"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"math/rand"
	"mime"
	"net"
	"os"
	"path/filepath"
	"reflect"
	"regexp"
	"time"

	"os/exec"

	"github.com/DeedleFake/Go-PhysicsFS/physfs"
	"github.com/GeertJohan/go.linenoise"
	"github.com/carbonsrv/carbon/modules/glue"
	"github.com/carbonsrv/carbon/modules/helpers"
	"github.com/carbonsrv/carbon/modules/scheduler"
	"github.com/carbonsrv/carbon/modules/static"
	"github.com/fzzy/radix/redis"
	"github.com/gin-gonic/gin"
	"github.com/mattn/go-runewidth"
	"github.com/nsf/termbox-go"
	"github.com/pmylund/go-cache"
	"github.com/shurcooL/github_flavored_markdown"
	"github.com/vifino/contrib/gzip"
	"github.com/vifino/golua/lua"
	"github.com/vifino/luar"

	// DB stuff
	"database/sql"
	_ "github.com/cznic/ql/driver"
	_ "github.com/go-sql-driver/mysql"
	_ "github.com/lib/pq"
	_ "github.com/mattn/go-sqlite3"
	_ "github.com/mattn/go-yql"
)

// Vars
var webroot string

// Bind all things
func Bind(L *lua.State, root string) {
	webroot = root

	luar.Register(L, "var", luar.Map{ // Vars
		"root": root,
	})

	BindCarbon(L)
	BindMiddleware(L)
	BindRedis(L)
	BindSQL(L)<commit_msg>SQL: Use my fork of go-yql.<commit_after>// Big monolithic binding file.
// Binds a ton of things.

package middleware

import (
	"bufio"
	"bytes"
	"crypto/tls"
	"encoding/base64"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"math/rand"
	"mime"
	"net"
	"os"
	"path/filepath"
	"reflect"
	"regexp"
	"time"

	"os/exec"

	"github.com/DeedleFake/Go-PhysicsFS/physfs"
	"github.com/GeertJohan/go.linenoise"
	"github.com/carbonsrv/carbon/modules/glue"
	"github.com/carbonsrv/carbon/modules/helpers"
	"github.com/carbonsrv/carbon/modules/scheduler"
	"github.com/carbonsrv/carbon/modules/static"
	"github.com/fzzy/radix/redis"
	"github.com/gin-gonic/gin"
	"github.com/mattn/go-runewidth"
	"github.com/nsf/termbox-go"
	"github.com/pmylund/go-cache"
	"github.com/shurcooL/github_flavored_markdown"
	"github.com/vifino/contrib/gzip"
	"github.com/vifino/golua/lua"
	"github.com/vifino/luar"

	// DB stuff
	"database/sql"
	_ "github.com/cznic/ql/driver"
	_ "github.com/go-sql-driver/mysql"
	_ "github.com/lib/pq"
	_ "github.com/mattn/go-sqlite3"
	_ "github.com/vifino/go-yql"
)

// Vars
var webroot string

// Bind all things
func Bind(L *lua.State, root string) {
	webroot = root

	luar.Register(L, "var", luar.Map{ // Vars
		"root": root,
	})

	BindCarbon(L)
	BindMiddleware(L)
	BindRedis(L)
	BindSQL(L)
{'fraction_non_alphanumeric': 0.16908591604550804, 'fraction_numerical': 0.0023538642604943117, 'mean_word_length': 3.922779922779923, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5255893', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1172, 'n_words': 158}