<commit_before>package design

import (
	"os"

	. "github.com/enow-dev/enow/design/constant"
	_ "github.com/enow-dev/enow/design/resource"
	. "github.com/goadesign/goa/design"
	. "github.com/goadesign/goa/design/apidsl"
)

var _ = API("enow", func() {
	Title("enow")
	Description("enow")
	Host(func() string {
		switch os.Getenv("Op") {
		case "develop":
			return "localhost:8080"
		case "staging":
			return "enow-staging.appspot.com"
		case "production":
			return "enow.appspot.com"
		}
		return "localhost:8080"
	}())
	Scheme("http", "https")
	BasePath("/")
	Trait(AdminUserTrait, func() {
		Security(AdminAuth)
		Response(Unauthorized, ErrorMedia)
		Response(NotFound)
		Response(BadRequest, ErrorMedia)
		Response(InternalServerError, ErrorMedia)<commit_msg>fix: #214<commit_after>package design

import (
	"os"

	. "github.com/enow-dev/enow/design/constant"
	_ "github.com/enow-dev/enow/design/resource"
	. "github.com/goadesign/goa/design"
	. "github.com/goadesign/goa/design/apidsl"
)

var _ = API("enow", func() {
	Title("enow")
	Description("enow")
	Host(func() string {
		switch os.Getenv("Op") {
		case "develop":
			return "localhost:8080"
		case "staging":
			return "enow-staging.appspot.com"
		case "production":
			return "enow.appspot.com"
		}
		return "localhost:8080"
	}())
	Scheme(func() string {
		switch os.Getenv("Op") {
		case "develop":
			return "http"
		case "staging":
			return "https"
		case "production":
			return "https"
		}
		return "http"
	}())
	BasePath("/")
	Trait(AdminUserTrait, func() {
		Security(AdminAuth)
		Response(Unauthorized, ErrorMedia)
		Response(NotFound)
		Response(BadRequest, ErrorMedia)
		Response(InternalServerError, ErrorMedia)
{'fraction_non_alphanumeric': 0.16291469194312796, 'fraction_numerical': 0.011255924170616114, 'mean_word_length': 4.396166134185304, 'pattern_counts': {'":': 9, '<': 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': '2938720', 'n_tokens_mistral': 698, 'n_tokens_neox': 638, 'n_words': 104}