<commit_before>package main

import (
	"fmt"
	"github.com/sendgrid/sendgrid-go"
	"log"
	"os"
)

///////////////////////////////////////////////////
// Retrieve global email statistics
// GET /stats

// RetrieveGlobalEmailStatistics demonstrates how to retrieve e-mail statistics.
func RetrieveGlobalEmailStatistics() {
	apiKey := os.Getenv("SENDGRID_API_KEY")
	host := "http://localhost:4010"
	request := sendgrid.GetRequest(apiKey, "/v3/stats", host)
	request.Method = "GET"
	queryParams := make(map[string]string)
	queryParams["aggregated_by"] = "day"
	queryParams["limit"] = "1"
	queryParams["start_date"] = "2016-01-01"
	queryParams["end_date"] = "2016-04-01"
	queryParams["offset"] = "1"
	request.QueryParams = queryParams<commit_msg>Revert "convert to camelcase for readability and add godoc"<commit_after>package main

import (
	"fmt"
	"github.com/sendgrid/sendgrid-go"
	"log"
	"os"
)

///////////////////////////////////////////////////
// Retrieve global email statistics
// GET /stats

func Retrieveglobalemailstatistics() {
	apiKey := os.Getenv("SENDGRID_API_KEY")
	host := "http://localhost:4010"
	request := sendgrid.GetRequest(apiKey, "/v3/stats", host)
	request.Method = "GET"
	queryParams := make(map[string]string)
	queryParams["aggregated_by"] = "day"
	queryParams["limit"] = "1"
	queryParams["start_date"] = "2016-01-01"
	queryParams["end_date"] = "2016-04-01"
	queryParams["offset"] = "1"
	request.QueryParams = queryParams
{'fraction_non_alphanumeric': 0.21621621621621623, 'fraction_numerical': 0.03187803187803188, 'mean_word_length': 3.643086816720257, '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': '4798447', 'n_tokens_mistral': 509, 'n_tokens_neox': 480, 'n_words': 92}