<commit_before>package main

import (
	"log"
	"net/http"
	"os"
	"os/user"
	"path"

	"github.com/minodisk/go-image-resizer/resizer"
	"github.com/stretchr/goweb"
	"github.com/stretchr/goweb/context"
)

func main() {
	port := os.Getenv("PORT")
	usr, err := user.Current()
	if err != nil {
		log.Fatal(err)
	}

	storage := path.Join(usr.HomeDir, ".go-image-resizer")
	os.Mkdir(storage, 0777)
	goweb.MapStatic("/storage", storage)

	controller := resizer.ResizerController{}
	controller.Storage = storage
	if err := goweb.MapController(&controller); err != nil {
		log.Fatal("Can't map ResizerController: ", err)
	}

	goweb.Map(func(ctx context.Context) error {
		goweb.Respond.With(ctx, 200, []byte("POST /resizer {url:\"[リサイズする画像のURL]\", width:[リサイズするサイズ]}"))
		return nil<commit_msg>Mkdir at relative path<commit_after>package main

import (
	"log"
	"net/http"
	"os"

	"github.com/minodisk/go-image-resizer/resizer"
	"github.com/stretchr/goweb"
	"github.com/stretchr/goweb/context"
)

func main() {
	port := os.Getenv("PORT")
	storage := ".storage"
	os.Mkdir(storage, 0777)
	goweb.MapStatic("/storage", storage)

	controller := resizer.ResizerController{}
	controller.Storage = storage
	if err := goweb.MapController(&controller); err != nil {
		log.Fatal("Can't map ResizerController: ", err)
	}

	goweb.Map(func(ctx context.Context) error {
		goweb.Respond.With(ctx, 200, []byte("POST /resizer {url:\"[リサイズする画像のURL]\", width:[リサイズするサイズ]}"))
		return nil
{'fraction_non_alphanumeric': 0.17549896765313144, 'fraction_numerical': 0.009635237439779766, 'mean_word_length': 4.701960784313726, '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': '6896088', 'n_tokens_mistral': 607, 'n_tokens_neox': 571, 'n_words': 98}