<commit_before>package parser

import (
	"crypto/md5"
	"encoding/hex"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"strconv"
	"strings"

	"github.com/asdine/storm"
	"github.com/filebrowser/filebrowser"
	"github.com/filebrowser/filebrowser/bolt"
	"github.com/filebrowser/filebrowser/staticgen"
	"github.com/hacdias/fileutils"
	"github.com/mholt/caddy"
	"github.com/mholt/caddy/caddyhttp/httpserver"
)

var databases = map[string]*storm.DB{}

// Parse ...
func Parse(c *caddy.Controller, plugin string) ([]*filebrowser.FileBrowser, error) {
	var (
		configs []*filebrowser.FileBrowser
		err     error
	)

	for c.Next() {
		u := &filebrowser.User{
			Locale:        "en",
			AllowCommands: true,
			AllowEdit:     true,
			AllowNew:      true,
			AllowPublish:  true,
			Commands:      []string{"git", "svn", "hg"},
			CSS:           "",
			ViewMode:      "mosaic",
			Rules: []*filebrowser.Rule{{
				Regex:  true,
				Allow:  false,
				Regexp: &filebrowser.Regexp{Raw: "\\/\\..+"},
			}},
		}

		baseURL := "/"<commit_msg>fix: remove default rules (#455)<commit_after>package parser

import (
	"crypto/md5"
	"encoding/hex"
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"
	"strconv"
	"strings"

	"github.com/asdine/storm"
	"github.com/filebrowser/filebrowser"
	"github.com/filebrowser/filebrowser/bolt"
	"github.com/filebrowser/filebrowser/staticgen"
	"github.com/hacdias/fileutils"
	"github.com/mholt/caddy"
	"github.com/mholt/caddy/caddyhttp/httpserver"
)

var databases = map[string]*storm.DB{}

// Parse ...
func Parse(c *caddy.Controller, plugin string) ([]*filebrowser.FileBrowser, error) {
	var (
		configs []*filebrowser.FileBrowser
		err     error
	)

	for c.Next() {
		u := &filebrowser.User{
			Locale:        "en",
			AllowCommands: true,
			AllowEdit:     true,
			AllowNew:      true,
			AllowPublish:  true,
			Commands:      []string{"git", "svn", "hg"},
			CSS:           "",
			ViewMode:      "mosaic",
			Rules:         []*filebrowser.Rule{},
		}

		baseURL := "/"
{'fraction_non_alphanumeric': 0.1675101214574899, 'fraction_numerical': 0.0025303643724696357, 'mean_word_length': 3.153361344537815, 'pattern_counts': {'":': 0, '<': 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': '4000258', 'n_tokens_mistral': 831, 'n_tokens_neox': 754, 'n_words': 126}