Removed unnecessary files

This commit is contained in:
David Alasow 2018-01-20 00:48:06 +01:00
parent f339506898
commit 2fabb65996
2 changed files with 0 additions and 60 deletions

49
qc.go
View File

@ -1,49 +0,0 @@
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"bytes"
"bufio"
"os"
"strings"
)
type CompareAni struct {
AnidbTitle string `json:"AnidbTitle"`
MeikanTitle string `json:"MeikanTitle"`
AnidbID int `json:"AnidbID"`
MeikanID int `json:"MeikanID"`
QCMatched bool
}
type resAnimes []CompareAni
func check(e error) {
if e != nil {
panic(e)
}
}
func main() {
var animes resAnimes
var err error
dat, err := ioutil.ReadFile("./result.json")
check(err)
err = json.NewDecoder(bytes.NewReader(dat)).Decode(&animes)
check(err)
for i := 0; i < len(animes); i++ {
anime := animes[i]
reader := bufio.NewReader(os.Stdin)
fmt.Printf("%s (Anidb %d)\n%s (Meikan %d)\nAre they the same? (Y/N)", anime.AnidbTitle, anime.AnidbID, anime.MeikanTitle, anime.MeikanID)
text, _ := reader.ReadString('\n')
text = strings.ToLower(text)
if (text == "y") {
anime.QCMatched = true
} else {
anime.QCMatched = false
}
}
fmt.Println(animes[0])
}

11
test.go
View File

@ -1,11 +0,0 @@
package main
import (
"fmt"
"github.com/agext/levenshtein"
)
func main() {
score := levenshtein.Match("Vampire Hunter D (2000)", "Vampire Hunter D (2001)", nil)
fmt.Print(score)
}