From 3a470f617cc6c887f78a7e9ab935bd871418e7e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ximo=20Cuadros?= Date: Thu, 8 Jun 2017 09:27:27 +0200 Subject: [PATCH] project renamed to enry --- .travis.yml | 4 ++-- README.md | 11 +++++++++-- alias.go | 2 +- classifier.go | 2 +- cli/slinguist/main.go | 2 +- content.go | 2 +- documentation.go | 2 +- extension.go | 2 +- filename.go | 2 +- frequencies.go | 2 +- internal/code-generator/assets/aliases.go.tmpl | 2 +- internal/code-generator/assets/content.go.tmpl | 2 +- internal/code-generator/assets/documentation.go.tmpl | 2 +- internal/code-generator/assets/extensions.go.tmpl | 2 +- internal/code-generator/assets/filenames.go.tmpl | 2 +- internal/code-generator/assets/frequencies.go.tmpl | 2 +- internal/code-generator/assets/interpreters.go.tmpl | 2 +- internal/code-generator/assets/types.go.tmpl | 2 +- internal/code-generator/assets/vendor.go.tmpl | 2 +- internal/code-generator/generator/samplesfreq.go | 2 +- .../code-generator/generator/test_files/aliases.gold | 2 +- .../code-generator/generator/test_files/content.gold | 2 +- .../generator/test_files/documentation.gold | 2 +- .../generator/test_files/extensions.gold | 2 +- .../generator/test_files/filenames.gold | 2 +- .../generator/test_files/frequencies.gold | 2 +- .../generator/test_files/interpreters.gold | 2 +- .../code-generator/generator/test_files/types.gold | 2 +- .../code-generator/generator/test_files/vendor.gold | 2 +- internal/code-generator/main.go | 2 +- interpreter.go | 2 +- type.go | 2 +- vendor.go | 2 +- 33 files changed, 42 insertions(+), 35 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7fa053c..24e7a54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,8 +11,8 @@ matrix: install: - rm -rf $GOPATH/src/gopkg.in/src-d - mkdir -p $GOPATH/src/gopkg.in/src-d - - ln -s $PWD $GOPATH/src/gopkg.in/src-d/simple-linguist.v1 - - cd $GOPATH/src/gopkg.in/src-d/simple-linguist.v1 + - ln -s $PWD $GOPATH/src/gopkg.in/src-d/enry.v1 + - cd $GOPATH/src/gopkg.in/src-d/enry.v1 - go get -v -t ./... diff --git a/README.md b/README.md index 610fd3a..b8f403c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# simple-linguist [![GoDoc](https://godoc.org/gopkg.in/src-d/simple-linguist.v1?status.svg)](https://godoc.org/gopkg.in/src-d/simple-linguist.v1) [![Build Status](https://travis-ci.org/src-d/simple-linguist.svg?branch=master)](https://travis-ci.org/src-d/simple-linguist) +# enry [![GoDoc](https://godoc.org/gopkg.in/src-d/enry.v1?status.svg)](https://godoc.org/gopkg.in/src-d/enry.v1) [![Build Status](https://travis-ci.org/src-d/enry.svg?branch=master)](https://travis-ci.org/src-d/simple-linguist) File language detector and toolbox to ignore binary or vendored files. *simple-linguist*, is our port to _Go_ of the original [linguist](https://github.com/github/linguist) _Ruby_ library, with fewer precision in arcane languages but with an improved *performance of 100x*. @@ -9,7 +9,7 @@ Installation The recommended way to install simple-linguist ``` -go get gopkg.in/src-d/simple-linguist.v1/... +go get gopkg.in/src-d/enry.v1/... ``` @@ -30,6 +30,13 @@ fmt.Println(lang) // result: Objective-C ``` +Why Enry? +--------- +In the movie [My Fair Lady](https://en.wikipedia.org/wiki/My_Fair_Lady), [Professor Henry Higgins](http://www.imdb.com/character/ch0011719/?ref_=tt_cl_t2) is one of the main characters, who is a linguist and at the very begging of the movie enjoys guessing the origin of the people based on his accent. + +`Enry Iggins` is how [Eliza Doolittle](http://www.imdb.com/character/ch0011720/?ref_=tt_cl_t1), [pronounce](https://www.youtube.com/watch?v=pwNKyTktDIE) the name of the Professor during the first half of the movie. + + License ------- diff --git a/alias.go b/alias.go index 182b229..96f23ad 100644 --- a/alias.go +++ b/alias.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/classifier.go b/classifier.go index bfa68dc..e4792d2 100644 --- a/classifier.go +++ b/classifier.go @@ -3,7 +3,7 @@ package slinguist import ( "math" - "gopkg.in/src-d/simple-linguist.v1/internal/tokenizer" + "gopkg.in/src-d/enry.v1/internal/tokenizer" ) // Classifier is the interface that contains the method Classify which is in charge to assign scores to the possibles candidates. diff --git a/cli/slinguist/main.go b/cli/slinguist/main.go index 8018807..11cb403 100644 --- a/cli/slinguist/main.go +++ b/cli/slinguist/main.go @@ -9,7 +9,7 @@ import ( "os" "path/filepath" - "gopkg.in/src-d/simple-linguist.v1" + "gopkg.in/src-d/enry.v1" ) func main() { diff --git a/content.go b/content.go index 4b39cc9..9d53f0c 100644 --- a/content.go +++ b/content.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/documentation.go b/documentation.go index f253c4a..3fb3b92 100644 --- a/documentation.go +++ b/documentation.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/extension.go b/extension.go index bb0c1b1..f256966 100644 --- a/extension.go +++ b/extension.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/filename.go b/filename.go index ca833bf..cc7be99 100644 --- a/filename.go +++ b/filename.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/frequencies.go b/frequencies.go index 21f8997..8d3f403 100644 --- a/frequencies.go +++ b/frequencies.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/internal/code-generator/assets/aliases.go.tmpl b/internal/code-generator/assets/aliases.go.tmpl index 6d99521..550fe40 100644 --- a/internal/code-generator/assets/aliases.go.tmpl +++ b/internal/code-generator/assets/aliases.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/content.go.tmpl b/internal/code-generator/assets/content.go.tmpl index 066f07f..552811b 100644 --- a/internal/code-generator/assets/content.go.tmpl +++ b/internal/code-generator/assets/content.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/documentation.go.tmpl b/internal/code-generator/assets/documentation.go.tmpl index ef346f2..09a1684 100644 --- a/internal/code-generator/assets/documentation.go.tmpl +++ b/internal/code-generator/assets/documentation.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/extensions.go.tmpl b/internal/code-generator/assets/extensions.go.tmpl index 48dc714..56f337f 100644 --- a/internal/code-generator/assets/extensions.go.tmpl +++ b/internal/code-generator/assets/extensions.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/filenames.go.tmpl b/internal/code-generator/assets/filenames.go.tmpl index 0272854..bc09c43 100644 --- a/internal/code-generator/assets/filenames.go.tmpl +++ b/internal/code-generator/assets/filenames.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/frequencies.go.tmpl b/internal/code-generator/assets/frequencies.go.tmpl index 2ffe886..5bf8bcb 100644 --- a/internal/code-generator/assets/frequencies.go.tmpl +++ b/internal/code-generator/assets/frequencies.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/interpreters.go.tmpl b/internal/code-generator/assets/interpreters.go.tmpl index 0ecb444..94233b7 100644 --- a/internal/code-generator/assets/interpreters.go.tmpl +++ b/internal/code-generator/assets/interpreters.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/types.go.tmpl b/internal/code-generator/assets/types.go.tmpl index c47d0e9..d38c0c4 100644 --- a/internal/code-generator/assets/types.go.tmpl +++ b/internal/code-generator/assets/types.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/assets/vendor.go.tmpl b/internal/code-generator/assets/vendor.go.tmpl index 89a65be..1f8579e 100644 --- a/internal/code-generator/assets/vendor.go.tmpl +++ b/internal/code-generator/assets/vendor.go.tmpl @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: {{ getCommit }} diff --git a/internal/code-generator/generator/samplesfreq.go b/internal/code-generator/generator/samplesfreq.go index fa5542b..9b812f8 100644 --- a/internal/code-generator/generator/samplesfreq.go +++ b/internal/code-generator/generator/samplesfreq.go @@ -13,7 +13,7 @@ import ( "strconv" "text/template" - "gopkg.in/src-d/simple-linguist.v1/internal/tokenizer" + "gopkg.in/src-d/enry.v1/internal/tokenizer" ) const samplesSubDir = "filenames" diff --git a/internal/code-generator/generator/test_files/aliases.gold b/internal/code-generator/generator/test_files/aliases.gold index 2b86bf2..3d2e01c 100644 --- a/internal/code-generator/generator/test_files/aliases.gold +++ b/internal/code-generator/generator/test_files/aliases.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/content.gold b/internal/code-generator/generator/test_files/content.gold index d871160..125d9a7 100644 --- a/internal/code-generator/generator/test_files/content.gold +++ b/internal/code-generator/generator/test_files/content.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/documentation.gold b/internal/code-generator/generator/test_files/documentation.gold index bff752d..71a6d1f 100644 --- a/internal/code-generator/generator/test_files/documentation.gold +++ b/internal/code-generator/generator/test_files/documentation.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/extensions.gold b/internal/code-generator/generator/test_files/extensions.gold index 5ac51b9..dc577dc 100644 --- a/internal/code-generator/generator/test_files/extensions.gold +++ b/internal/code-generator/generator/test_files/extensions.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/filenames.gold b/internal/code-generator/generator/test_files/filenames.gold index 1279a6c..73d6c2f 100644 --- a/internal/code-generator/generator/test_files/filenames.gold +++ b/internal/code-generator/generator/test_files/filenames.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/frequencies.gold b/internal/code-generator/generator/test_files/frequencies.gold index 0349379..c9c3b68 100644 --- a/internal/code-generator/generator/test_files/frequencies.gold +++ b/internal/code-generator/generator/test_files/frequencies.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 60f864a138650dd17fafc94814be9ee2d3aaef8c diff --git a/internal/code-generator/generator/test_files/interpreters.gold b/internal/code-generator/generator/test_files/interpreters.gold index e3ce97f..1e62519 100644 --- a/internal/code-generator/generator/test_files/interpreters.gold +++ b/internal/code-generator/generator/test_files/interpreters.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/types.gold b/internal/code-generator/generator/test_files/types.gold index ae4a637..735d90f 100644 --- a/internal/code-generator/generator/test_files/types.gold +++ b/internal/code-generator/generator/test_files/types.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/generator/test_files/vendor.gold b/internal/code-generator/generator/test_files/vendor.gold index d3619cf..c142cf8 100644 --- a/internal/code-generator/generator/test_files/vendor.gold +++ b/internal/code-generator/generator/test_files/vendor.gold @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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: 0123456789abcdef0123456789abcdef01234567 diff --git a/internal/code-generator/main.go b/internal/code-generator/main.go index 9f20a7d..e52a88f 100644 --- a/internal/code-generator/main.go +++ b/internal/code-generator/main.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "log" - "gopkg.in/src-d/simple-linguist.v1/internal/code-generator/generator" + "gopkg.in/src-d/enry.v1/internal/code-generator/generator" ) const ( diff --git a/interpreter.go b/interpreter.go index b113211..651b475 100644 --- a/interpreter.go +++ b/interpreter.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/type.go b/type.go index 4b80317..2b7805c 100644 --- a/type.go +++ b/type.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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 diff --git a/vendor.go b/vendor.go index d51de7f..c02ebae 100644 --- a/vendor.go +++ b/vendor.go @@ -1,6 +1,6 @@ package slinguist -// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/simple-linguist.v1/internal/code-generator +// 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