<commit_before>package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"github.com/ricardolonga/openv2/domain"
)

type Response struct {
	UserMessage string       `json:"userMessage"`
	User        *domain.User `json:"user"`
}

func main() {
	userRepository := &domain.UserRepository{}

	router := gin.Default()

	router.Use(HeadersRequired())

	router.GET("/", func(c *gin.Context) {
		c.String(200, fmt.Sprintf("Olá!"))
	})

	router.POST("/login", func(c *gin.Context) {
		user := &domain.User{Name: c.Request.Header.Get("name"), Email: c.Request.Header.Get("email")}
		userRepository.Save(user)
		c.JSON(http.StatusOK, &Response{UserMessage: "Login successful!", User: user})
	})

	err := http.ListenAndServe(":8080", router)
	if err != nil {<commit_msg>Corrigido import.<commit_after>package main

import (
	"github.com/gin-gonic/gin"
	"github.com/ricardolonga/openv2/domain"
	"net/http"
)

type Response struct {
	UserMessage string       `json:"userMessage"`
	User        *domain.User `json:"user"`
}

func main() {
	userRepository := &domain.UserRepository{}

	router := gin.Default()

	gin.SetMode(gin.DebugMode)

	router.Use(HeadersRequired())

	router.GET("/", func(c *gin.Context) {
		c.String(200, "Olá, estou na AWS!")
	})

	router.POST("/login", func(c *gin.Context) {
		user := &domain.User{Name: c.Request.Header.Get("name"), Email: c.Request.Header.Get("email")}
		userRepository.Save(user)
		c.JSON(http.StatusOK, &Response{UserMessage: "Login successful!", User: user})
	})

	err := http.ListenAndServe(":8080", router)
	if err != nil {
{'fraction_non_alphanumeric': 0.1824583866837388, 'fraction_numerical': 0.010243277848911651, 'mean_word_length': 4.503521126760563, 'pattern_counts': {'":': 2, '<': 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': '4676495', 'n_tokens_mistral': 591, 'n_tokens_neox': 557, 'n_words': 101}