mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
Merge pull request #54 from dpaz/issue52
Moved commit.go to the data directory
This commit is contained in:
commit
a2019d23fc
@ -8,6 +8,8 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"gopkg.in/src-d/enry.v1/data"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/suite"
|
||||
)
|
||||
@ -38,7 +40,7 @@ func (s *EnryTestSuite) SetupSuite() {
|
||||
err = os.Chdir(s.repoLinguist)
|
||||
assert.NoError(s.T(), err)
|
||||
|
||||
cmd = exec.Command("git", "checkout", linguistCommit)
|
||||
cmd = exec.Command("git", "checkout", data.LinguistCommit)
|
||||
err = cmd.Run()
|
||||
assert.NoError(s.T(), err)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
// LanguagesByAlias keeps alias for different languages and use the name of the languages as an alias too.
|
||||
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
|
||||
@ -163,6 +163,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"dylan": "Dylan",
|
||||
"e": "E",
|
||||
"eagle": "Eagle",
|
||||
"easybuild": "Easybuild",
|
||||
"ebnf": "EBNF",
|
||||
"ec": "eC",
|
||||
"ecere_projects": "Ecere Projects",
|
||||
@ -438,7 +439,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"pawn": "PAWN",
|
||||
"pep8": "Pep8",
|
||||
"perl": "Perl",
|
||||
"perl6": "Perl6",
|
||||
"perl_6": "Perl 6",
|
||||
"php": "PHP",
|
||||
"pic": "Pic",
|
||||
"pickle": "Pickle",
|
||||
@ -508,6 +509,7 @@ var LanguagesByAlias = map[string]string{
|
||||
"restructuredtext": "reStructuredText",
|
||||
"rexx": "REXX",
|
||||
"rhtml": "RHTML",
|
||||
"ring": "Ring",
|
||||
"rmarkdown": "RMarkdown",
|
||||
"robotframework": "RobotFramework",
|
||||
"roff": "Roff",
|
||||
|
@ -1,8 +1,8 @@
|
||||
package enry
|
||||
package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var linguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||
var LinguistCommit = "d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68"
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByExtension = map[string][]string{
|
||||
".1": {"Roff"},
|
||||
@ -227,6 +227,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".dylan": {"Dylan"},
|
||||
".e": {"E", "Eiffel"},
|
||||
".eam.fs": {"Formatted"},
|
||||
".eb": {"Easybuild"},
|
||||
".ebnf": {"EBNF"},
|
||||
".ebuild": {"Gentoo Ebuild"},
|
||||
".ec": {"eC"},
|
||||
@ -723,6 +724,7 @@ var LanguagesByExtension = map[string][]string{
|
||||
".rexx": {"REXX"},
|
||||
".rg": {"Rouge"},
|
||||
".rhtml": {"RHTML"},
|
||||
".ring": {"Ring"},
|
||||
".rkt": {"Racket"},
|
||||
".rktd": {"Racket"},
|
||||
".rktl": {"Racket"},
|
||||
@ -1104,6 +1106,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"EJS": {".ejs"},
|
||||
"EQ": {".eq"},
|
||||
"Eagle": {".sch", ".brd"},
|
||||
"Easybuild": {".eb"},
|
||||
"Ecere Projects": {".epj"},
|
||||
"Eiffel": {".e"},
|
||||
"Elixir": {".ex", ".exs"},
|
||||
@ -1341,6 +1344,7 @@ var ExtensionsByLanguage = map[string][]string{
|
||||
"Regular Expression": {".regexp", ".regex"},
|
||||
"Ren'Py": {".rpy"},
|
||||
"RenderScript": {".rs", ".rsh"},
|
||||
"Ring": {".ring"},
|
||||
"RobotFramework": {".robot"},
|
||||
"Roff": {".man", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".me", ".ms", ".n", ".nr", ".rno", ".roff", ".tmac"},
|
||||
"Rouge": {".rg"},
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByFilename = map[string][]string{
|
||||
".Rprofile": {"R"},
|
||||
|
1201
data/frequencies.go
1201
data/frequencies.go
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesByInterpreter = map[string][]string{
|
||||
"Rscript": {"R"},
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
var LanguagesType = map[string]int{
|
||||
"1C Enterprise": 2,
|
||||
@ -107,6 +107,7 @@ var LanguagesType = map[string]int{
|
||||
"EJS": 3,
|
||||
"EQ": 2,
|
||||
"Eagle": 3,
|
||||
"Easybuild": 1,
|
||||
"Ecere Projects": 1,
|
||||
"Eiffel": 2,
|
||||
"Elixir": 2,
|
||||
@ -349,6 +350,7 @@ var LanguagesType = map[string]int{
|
||||
"Regular Expression": 1,
|
||||
"Ren'Py": 2,
|
||||
"RenderScript": 2,
|
||||
"Ring": 2,
|
||||
"RobotFramework": 2,
|
||||
"Roff": 3,
|
||||
"Rouge": 2,
|
||||
|
@ -2,7 +2,7 @@ package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||
|
||||
import "gopkg.in/toqueteos/substring.v1"
|
||||
|
||||
@ -35,6 +35,7 @@ var VendorMatchers = substring.Or(
|
||||
substring.Regexp(`(^|/)font-awesome\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)foundation\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)normalize\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)skeleton\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)[Bb]ourbon/.*\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`(^|/)animate\.(css|less|scss|styl)$`),
|
||||
substring.Regexp(`third[-_]?party/`),
|
||||
|
@ -1,8 +1,8 @@
|
||||
package enry
|
||||
package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: {{ . }}
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var linguistCommit = "{{- . -}}"
|
||||
var LinguistCommit = "{{- . -}}"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package enry
|
||||
package data
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||
|
||||
// linguist's commit from which files were generated.
|
||||
var linguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||
var LinguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||
|
@ -63,7 +63,7 @@ const (
|
||||
frequenciesTmpl = "frequencies.go.tmpl"
|
||||
|
||||
// commit.go generation
|
||||
commitFile = "commit.go"
|
||||
commitFile = "data/commit.go"
|
||||
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
||||
commitTmpl = "commit.go.tmpl"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user