<commit_before>// this is not sanctioned

package main

import (
	"flag"
	"fmt"
	"net/http"
	"log"
	"io/ioutil"
)

func main() {
	address := flag.String("address", ":8001", "Address to listen on")
	flag.Parse()

	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

			w.Header().Add("Cache-Control", "public, max-age=600")
			w.Header().Add("Access-Control-Allow-Origin", "*")
			w.Header().Add("Access-Control-Max-Age", "600")
			w.Header().Add("Access-Control-Allow-Headers", "accept, custom")
			w.Header().Add("Access-Control-Allow-Methods", "POST, GET, OPTIONS, POST, DELETE")

			if r.Method == "OPTIONS" {

				log.Println("OPTIONS")

				w.WriteHeader(200)
				fmt.Fprintf(w, "OK")

			} else {

				log.Println(r.URL)
				body, err := ioutil.ReadAll(r.Body);

				if err != nil {
					log.Println(err)
				}

				log.Println(string(body))

				w.WriteHeader(200)
				fmt.Fprintf(w, "OK")

			}

		})<commit_msg>just return OK<commit_after>// this is not sanctioned

package main

import (
	"flag"
	"fmt"
	"net/http"
)

func main() {
	address := flag.String("address", ":8001", "Address to listen on")
	flag.Parse()

	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

			w.WriteHeader(200)
			fmt.Fprintf(w, "OK")

		})
{'fraction_non_alphanumeric': 0.19398258115597783, 'fraction_numerical': 0.018210609659540775, 'mean_word_length': 3.4195804195804196, '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': '6548062', 'n_tokens_mistral': 564, 'n_tokens_neox': 471, 'n_words': 94}