<commit_before>package handler

import (
	"net/http"
	"os"
	"strconv"
	"strings"

	"hermes/database"
	"hermes/stats/responses"

	"github.com/go-playground/validator"
	"github.com/labstack/echo"
	"github.com/labstack/echo/middleware"
	"github.com/labstack/gommon/log"
	"github.com/jinzhu/gorm"
)

// SCHEMA --- Extract this into another package

var (
	schema *graphql.Schema
)

type (
	field struct {
		Name     string
		Operator *string
		Int      *int
		Float    *float64
		String   *string
		Bool     *bool
		Next     *operation
	}

	operation struct {
		Condition string
		Field     *field
	}

	Resolver struct {
		db: *gorm.DB
	}

	CountResolver struct {<commit_msg>Added missing import<commit_after>package handler

import (
	"net/http"
	"os"
	"strconv"
	"strings"

	"hermes/database"
	"hermes/stats/responses"

	"github.com/go-playground/validator"
	"github.com/labstack/echo"
	"github.com/labstack/echo/middleware"
	"github.com/labstack/gommon/log"
	"github.com/jinzhu/gorm"
	"github.com/neelance/graphql-go"
)

// SCHEMA --- Extract this into another package

var (
	schema *graphql.Schema
)

type (
	field struct {
		Name     string
		Operator *string
		Int      *int
		Float    *float64
		String   *string
		Bool     *bool
		Next     *operation
	}

	operation struct {
		Condition string
		Field     *field
	}

	Resolver struct {
		db: *gorm.DB
	}

	CountResolver struct {
{'fraction_non_alphanumeric': 0.11424439624005785, 'fraction_numerical': 0.0028922631959508315, 'mean_word_length': 3.0115942028985505, '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': '6526996', 'n_tokens_mistral': 549, 'n_tokens_neox': 516, 'n_words': 107}