<commit_before>package graphql

import (
	"github.com/go-ggz/ggz/pkg/config"
	"github.com/go-ggz/ggz/schema"

	"github.com/gin-gonic/gin"
	"github.com/graphql-go/handler"
)

// Handler initializes the prometheus middleware.
func Handler() gin.HandlerFunc {
	// Creates a GraphQL-go HTTP handler with the defined schema
	h := handler.New(&handler.Config{
		Schema:   &schema.Schema,
		Pretty:   true,
		GraphiQL: config.Server.GraphiQL,
	})

	return func(c *gin.Context) {
		h.ServeHTTP(c.Writer, c.Request)
	}
}
<commit_msg>chore(graphql): config for pretty<commit_after>package graphql

import (
	"github.com/go-ggz/ggz/pkg/config"
	"github.com/go-ggz/ggz/schema"

	"github.com/gin-gonic/gin"
	"github.com/graphql-go/handler"
)

// Handler initializes the prometheus middleware.
func Handler() gin.HandlerFunc {
	// Creates a GraphQL-go HTTP handler with the defined schema
	h := handler.New(&handler.Config{
		Schema:   &schema.Schema,
		Pretty:   config.Server.GraphiQL,
		GraphiQL: config.Server.GraphiQL,
	})

	return func(c *gin.Context) {
		h.ServeHTTP(c.Writer, c.Request)
	}
}

{'fraction_non_alphanumeric': 0.1408839779005525, 'fraction_numerical': 0.0, 'mean_word_length': 3.940909090909091, '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': '4419841', 'n_tokens_mistral': 431, 'n_tokens_neox': 408, 'n_words': 77}