<commit_before>package backend

import (
	"fmt"

	"github.com/containerops/dockyard/backend/drivers"
	_"github.com/containerops/dockyard/backend/drivers/aliyun"
	_"github.com/containerops/dockyard/backend/drivers/amazons3"
	_ "github.com/containerops/dockyard/backend/drivers/native"
	_ "github.com/containerops/dockyard/backend/drivers/qiniu"
	_ "github.com/containerops/dockyard/backend/drivers/upyun"
	"github.com/containerops/wrench/setting"
)

var Sc drivers.ShareChannel

func InitBackend() error {
	if initfunc, existed := drivers.Drv[setting.BackendDriver]; existed {
		initfunc()
	} else {
		return fmt.Errorf("Driver %v is not registered", setting.BackendDriver)
	}

	//Init goroutine
	Sc = *drivers.NewShareChannel()
	Sc.Open()

	return nil
}
<commit_msg>correct same sytle of ignored import package<commit_after>package backend

import (
	"fmt"

	"github.com/containerops/dockyard/backend/drivers"
	_ "github.com/containerops/dockyard/backend/drivers/aliyun"
	_ "github.com/containerops/dockyard/backend/drivers/amazons3"
	_ "github.com/containerops/dockyard/backend/drivers/native"
	_ "github.com/containerops/dockyard/backend/drivers/qiniu"
	_ "github.com/containerops/dockyard/backend/drivers/upyun"
	"github.com/containerops/wrench/setting"
)

var Sc drivers.ShareChannel

func InitBackend() error {
	if initfunc, existed := drivers.Drv[setting.BackendDriver]; existed {
		initfunc()
	} else {
		return fmt.Errorf("Driver %v is not registered", setting.BackendDriver)
	}

	//Init goroutine
	Sc = *drivers.NewShareChannel()
	Sc.Open()

	return nil
}

{'fraction_non_alphanumeric': 0.12396166134185303, 'fraction_numerical': 0.0012779552715654952, 'mean_word_length': 5.093385214007782, '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': '3991858', 'n_tokens_mistral': 579, 'n_tokens_neox': 545, 'n_words': 82}