<commit_before>package main

import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
)

var respString string = ""

const url string = "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=<KEY>"

func handleRoot(resp http.ResponseWriter, req *http.Request) {

	fmt.Fprintf(resp, respString)
}

func processString(item newsItem) string {
	return fmt.Sprintf(`<div>
			<a href = "%s">%s</a>
		</div>`, item.Url, item.Title)
}

type news struct {
	Status   string     `json:"status"`
	Source   string     `json:"source"`
	SortBy   string     `json:"sortBy"`
	Articles []newsItem `json:"articles"`
}

type newsItem struct {
	Author      string `json:author`
	Title       string `json:title`
	Description string `json:description`
	Url         string `json:url`
	UrlToImage  string `json:urlToImage`
	PublishedAt string `json:publishedAt`
}

func main() {
	var newsResults news
	resp, _ := http.Get(url)
	bytes, _ := ioutil.ReadAll(resp.Body)

	err := json.Unmarshal(bytes, &newsResults)

	if err != nil {<commit_msg>Fixed quotes<commit_after>package main

import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
)

var respString string = ""

const url string = "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=<KEY>"

func handleRoot(resp http.ResponseWriter, req *http.Request) {

	fmt.Fprintf(resp, respString)
}

func processString(item newsItem) string {
	return fmt.Sprintf(`<div>
			<a href = "%s">%s</a>
		</div>`, item.Url, item.Title)
}

type news struct {
	Status   string     `json:"status"`
	Source   string     `json:"source"`
	SortBy   string     `json:"sortBy"`
	Articles []newsItem `json:"articles"`
}

type newsItem struct {
	Author      string `json:"author"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Url         string `json:"url"`
	UrlToImage  string `json:"urlToImage"`
	PublishedAt string `json:"publishedAt"`
}

func main() {
	var newsResults news
	resp, _ := http.Get(url)
	bytes, _ := ioutil.ReadAll(resp.Body)

	err := json.Unmarshal(bytes, &newsResults)

	if err != nil {
{'fraction_non_alphanumeric': 0.14804063860667635, 'fraction_numerical': 0.0009675858732462506, 'mean_word_length': 4.118811881188119, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '7495444', 'n_tokens_mistral': 750, 'n_tokens_neox': 729, 'n_words': 169}