mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 20:17:21 +00:00
Language statistics bar for repositories (#8037)
* Implementation for calculating language statistics Impement saving code language statistics to database Implement rendering langauge stats Add primary laguage to show in repository list Implement repository stats indexer queue Add indexer test Refactor to use queue module * Do not timeout for queues
This commit is contained in:
17
vendor/github.com/src-d/enry/v2/regex/oniguruma.go
generated
vendored
Normal file
17
vendor/github.com/src-d/enry/v2/regex/oniguruma.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// +build oniguruma
|
||||
|
||||
package regex
|
||||
|
||||
import (
|
||||
rubex "github.com/src-d/go-oniguruma"
|
||||
)
|
||||
|
||||
type EnryRegexp = *rubex.Regexp
|
||||
|
||||
func MustCompile(str string) EnryRegexp {
|
||||
return rubex.MustCompileASCII(str)
|
||||
}
|
||||
|
||||
func QuoteMeta(s string) string {
|
||||
return rubex.QuoteMeta(s)
|
||||
}
|
17
vendor/github.com/src-d/enry/v2/regex/standard.go
generated
vendored
Normal file
17
vendor/github.com/src-d/enry/v2/regex/standard.go
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
// +build !oniguruma
|
||||
|
||||
package regex
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
)
|
||||
|
||||
type EnryRegexp = *regexp.Regexp
|
||||
|
||||
func MustCompile(str string) EnryRegexp {
|
||||
return regexp.MustCompile(str)
|
||||
}
|
||||
|
||||
func QuoteMeta(s string) string {
|
||||
return regexp.QuoteMeta(s)
|
||||
}
|
Reference in New Issue
Block a user