1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
Former-commit-id: 4ed39377abc09b46081e0abe0ebf12b44599bf8d [formerly 1b1eea480288850f56e644fa6eb426516d8df6ca] [formerly 8ece3e976a0e4f7c7cb06891de2cd53df430996c [formerly 14a6a064a03b11395c06c04ba7abf1e61fe5d489 [formerly 01b8faa71b]]]
Former-commit-id: bd29761bf5ea90bb5eaaf183600b5ef545588db4 [formerly 2cf32e2ef1ee89c3cb8fb0add85e2e2ed480c9c0]
Former-commit-id: f4b08e349584affb7c41cd00fa7427f2d2919982
Former-commit-id: ec20eef484
This commit is contained in:
Zack Scholl 2016-02-10 15:16:29 -05:00
parent b8a8a783be
commit e94b3ce896

View File

@ -1,8 +1,6 @@
package main package main
import ( import (
"fmt"
"log"
"math/rand" "math/rand"
"sort" "sort"
"strings" "strings"
@ -146,7 +144,7 @@ func getImportantVersions(p WikiData) []versionsInfo {
for _, k := range a { for _, k := range a {
for _, s := range n[k] { for _, s := range n[k] {
if s != 0 && s != len(n) { if s != 0 && s != len(n) {
fmt.Printf("%d, %d\n", s, k) // fmt.Printf("%d, %d\n", s, k)
importantVersions = append(importantVersions, s) importantVersions = append(importantVersions, s)
if len(importantVersions) > 10 { if len(importantVersions) > 10 {
sort.Ints(importantVersions) sort.Ints(importantVersions)
@ -165,11 +163,6 @@ func getImportantVersions(p WikiData) []versionsInfo {
return r return r
} }
func timeTrack(start time.Time, name string) {
elapsed := time.Since(start)
log.Printf("%s took %s", name, elapsed)
}
func rebuildTextsToDiffN(p WikiData, n int) string { func rebuildTextsToDiffN(p WikiData, n int) string {
dmp := diffmatchpatch.New() dmp := diffmatchpatch.New()
lastText := "" lastText := ""