<commit_before>// +build !cgo

// This only builds when CGO isn't enabled so that we don't attempt to do it on unsuiable environments,
// since CGO is required for Python plugins. Yet, we have to maintain symbol compatibility for the main package.
package gateway

import (
	"errors"

	"github.com/TykTechnologies/tyk/coprocess"
)

func NewPythonDispatcher() (dispatcher coprocess.Dispatcher, err error) {
	return nil, errors.New("python support not compiled")
}<commit_msg>Fix non-cgo build (#3684)<commit_after>// +build !cgo

// This only builds when CGO isn't enabled so that we don't attempt to do it on unsuiable environments,
// since CGO is required for Python plugins. Yet, we have to maintain symbol compatibility for the main package.
package gateway

import (
	"errors"

	"github.com/TykTechnologies/tyk/apidef"
	"github.com/TykTechnologies/tyk/config"
	"github.com/TykTechnologies/tyk/coprocess"
)

var GatewayFireSystemEvent func(name apidef.TykEvent, meta interface{})

func NewPythonDispatcher(conf config.Config) (dispatcher coprocess.Dispatcher, err error) {
	return nil, errors.New("python support not compiled")
}
{'fraction_non_alphanumeric': 0.09267431597528684, 'fraction_numerical': 0.00353045013239188, 'mean_word_length': 4.93717277486911, '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': '3723638', 'n_tokens_mistral': 362, 'n_tokens_neox': 337, 'n_words': 124}