<commit_before>package hook

import (
	"errors"
	"fmt"
	"log"
	"net/http"
	"net/url"

	"github.com/bitrise-io/bitrise-webhooks/bitriseapi"
	"github.com/bitrise-io/bitrise-webhooks/config"
	"github.com/bitrise-io/bitrise-webhooks/metrics"
	"github.com/bitrise-io/bitrise-webhooks/service"
	hookCommon "github.com/bitrise-io/bitrise-webhooks/service/hook/common"
	"github.com/bitrise-io/bitrise-webhooks/service/hook/github"
	"github.com/gorilla/mux"
)

func supportedProviders() map[string]hookCommon.Provider {
	return map[string]hookCommon.Provider{
		"github": github.HookProvider{},
		// "bitbucket-v2": bitbucketv2.HookProvider{},
	}
}

// SuccessRespModel ...
type SuccessRespModel struct {
	Message string `json:"message"`
}

// ErrorsRespModel ...
type ErrorsRespModel struct {<commit_msg>bitbucket-v2 is now a supported provider<commit_after>package hook

import (
	"errors"
	"fmt"
	"log"
	"net/http"
	"net/url"

	"github.com/bitrise-io/bitrise-webhooks/bitriseapi"
	"github.com/bitrise-io/bitrise-webhooks/config"
	"github.com/bitrise-io/bitrise-webhooks/metrics"
	"github.com/bitrise-io/bitrise-webhooks/service"
	"github.com/bitrise-io/bitrise-webhooks/service/hook/bitbucketv2"
	hookCommon "github.com/bitrise-io/bitrise-webhooks/service/hook/common"
	"github.com/bitrise-io/bitrise-webhooks/service/hook/github"
	"github.com/gorilla/mux"
)

func supportedProviders() map[string]hookCommon.Provider {
	return map[string]hookCommon.Provider{
		"github":       github.HookProvider{},
		"bitbucket-v2": bitbucketv2.HookProvider{},
	}
}

// SuccessRespModel ...
type SuccessRespModel struct {
	Message string `json:"message"`
}

// ErrorsRespModel ...
type ErrorsRespModel struct {
{'fraction_non_alphanumeric': 0.14860864416814684, 'fraction_numerical': 0.003552397868561279, 'mean_word_length': 4.868055555555555, 'pattern_counts': {'":': 4, '<': 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': '7427336', 'n_tokens_mistral': 635, 'n_tokens_neox': 631, 'n_words': 78}