From bc5e031cee77b55c43ce667db1d47c2d32c35d7f Mon Sep 17 00:00:00 2001 From: Alexander Bezzubov Date: Thu, 19 Mar 2020 11:10:03 +0100 Subject: [PATCH] Drop src-d org ref except for issues Signed-off-by: Alexander Bezzubov --- .gitignore | 3 ++- .travis.yml | 2 +- README.md | 18 +++++++++--------- benchmark_test.go | 2 +- classifier.go | 2 +- cmd/enry/main.go | 4 ++-- common.go | 4 ++-- common_test.go | 2 +- data/alias.go | 2 +- data/colors.go | 2 +- data/commit.go | 2 +- data/content.go | 4 ++-- data/documentation.go | 2 +- data/extension.go | 2 +- data/filename.go | 2 +- data/frequencies.go | 2 +- data/heuristics.go | 2 +- data/heuristics_test.go | 2 +- data/interpreter.go | 2 +- data/mimeType.go | 2 +- data/type.go | 2 +- data/vendor.go | 2 +- enry.go | 2 +- go.mod | 2 +- go.sum | 1 + internal/code-generator/assets/content.go.tmpl | 2 +- internal/code-generator/assets/header.go.tmpl | 2 +- .../code-generator/generator/samplesfreq.go | 2 +- .../generator/test_files/alias.gold | 2 +- .../generator/test_files/colors.gold | 2 +- .../generator/test_files/commit.gold | 2 +- .../generator/test_files/content.gold | 4 ++-- .../generator/test_files/documentation.gold | 2 +- .../generator/test_files/extension.gold | 2 +- .../generator/test_files/filename.gold | 2 +- .../generator/test_files/frequencies.gold | 2 +- .../generator/test_files/interpreter.gold | 2 +- .../generator/test_files/mimeType.gold | 2 +- .../generator/test_files/type.gold | 2 +- .../generator/test_files/vendor.gold | 2 +- internal/code-generator/main.go | 2 +- internal/tokenizer/tokenize.go | 2 +- internal/tokenizer/tokenize_c.go | 2 +- java/build.sbt | 4 ++-- shared/enry.go | 2 +- utils.go | 2 +- 46 files changed, 60 insertions(+), 58 deletions(-) diff --git a/.gitignore b/.gitignore index 78b3fb1..9ab3afa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.linguist +.linguist* benchmarks/output .ci Makefile.main @@ -9,3 +9,4 @@ build/ vendor/ java/lib/ .vscode/ +.venv diff --git a/.travis.yml b/.travis.yml index 004bc52..db1648b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -98,7 +98,7 @@ jobs: - sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils - cd ${HOME} - curl -sfSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf - - - cd $GOPATH/src/github.com/src-d/enry + - cd $GOPATH/src/github.com/bzz/enry script: make darwin-shared deploy: provider: releases diff --git a/README.md b/README.md index a985903..7d58b0c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# enry [![GoDoc](https://godoc.org/github.com/src-d/enry?status.svg)](https://godoc.org/github.com/src-d/enry) [![Build Status](https://travis-ci.com/src-d/enry.svg?branch=master)](https://travis-ci.com/src-d/enry) [![codecov](https://codecov.io/gh/src-d/enry/branch/master/graph/badge.svg)](https://codecov.io/gh/src-d/enry) +# enry [![GoDoc](https://godoc.org/github.com/bzz/enry?status.svg)](https://godoc.org/github.com/bzz/enry) [![Build Status](https://travis-ci.org/bzz/enry.svg?branch=master)](https://travis-ci.org/bzz/enry) [![codecov](https://codecov.io/gh/bzz/enry/branch/master/graph/badge.svg)](https://codecov.io/gh/bzz/enry) Programming language detector and toolbox to ignore binary or vendored files. *enry*, started as a port to _Go_ of the original [linguist](https://github.com/github/linguist) _Ruby_ library, that has an improved *2x performance*. @@ -18,10 +18,10 @@ Programming language detector and toolbox to ignore binary or vendored files. *e # CLI The recommended way to install the `enry` command-line tool is to either -[download a release](https://github.com/src-d/enry/releases) or run: +[download a release](https://github.com/bzz/enry/releases) or run: ``` -(cd "$(mktemp -d)" && go mod init enry && go get github.com/src-d/enry/v2/cmd/enry) +(cd "$(mktemp -d)" && go mod init enry && go get github.com/bzz/enry/v2/cmd/enry) ``` *enry* CLI accepts similar flags (`--breakdown/--json`) and produce an output, similar to *linguist*: @@ -50,7 +50,7 @@ In a [Go module](https://github.com/golang/go/wiki/Modules), import `enry` to the module by running: ```go -go get github.com/src-d/enry/v2 +go get github.com/bzz/enry/v2 ``` The rest of the examples will assume you have either done this or fetched the @@ -58,7 +58,7 @@ library into your `GOPATH`. ```go // The examples here and below assume you have imported the library. -import "github.com/src-d/enry/v2" +import "github.com/bzz/enry/v2" lang, safe := enry.GetLanguageByExtension("foo.go") fmt.Println(lang, safe) @@ -94,7 +94,7 @@ langs := enry.GetLanguagesByFilename("Gemfile", []byte(""), []string{}) ## Java bindings -Generated Java bindings using a C shared library and JNI are available under [`java`](https://github.com/src-d/enry/blob/master/java). +Generated Java bindings using a C shared library and JNI are available under [`java`](https://github.com/bzz/enry/blob/master/java). A library is published on Maven as [tech.sourced:enry-java](https://mvnrepository.com/artifact/tech.sourced/enry-java) for macOS and linux platforms. Windows support is planned under [src-d/enry#150](https://github.com/src-d/enry/issues/150). @@ -182,7 +182,7 @@ $ git clone https://github.com/github/linguist.git .linguist $ cd .linguist; git checkout ; cd .. # put the new release's commit sha in the generator_test.go (to re-generate .gold test fixtures) -# https://github.com/src-d/enry/blob/13d3d66d37a87f23a013246a1b0678c9ee3d524b/internal/code-generator/generator/generator_test.go#L18 +# https://github.com/bzz/enry/blob/13d3d66d37a87f23a013246a1b0678c9ee3d524b/internal/code-generator/generator/generator_test.go#L18 $ make code-generate ``` @@ -197,7 +197,7 @@ To stay in sync, enry needs to be updated when a new release of the linguist inc There is no automation for detecting the changes in the linguist project, so this process above has to be done manually from time to time. When submitting a pull request syncing up to a new release, please make sure it only contains the changes in -the generated files (in [data](https://github.com/src-d/enry/blob/master/data) subdirectory). +the generated files (in [data](https://github.com/bzz/enry/blob/master/data) subdirectory). Separating all the necessary "manual" code changes to a different PR that includes some background description and an update to the documentation on ["divergences from linguist"](##divergences-from-linguist) is very much appreciated as it simplifies the maintenance (review/release notes/etc). @@ -210,7 +210,7 @@ Separating all the necessary "manual" code changes to a different PR that includ ### Benchmark -All benchmark scripts are in [*benchmarks*](https://github.com/src-d/enry/blob/master/benchmarks) directory. +All benchmark scripts are in [*benchmarks*](https://github.com/bzz/enry/blob/master/benchmarks) directory. #### Dependencies diff --git a/benchmark_test.go b/benchmark_test.go index 3b3288e..0f4e238 100644 --- a/benchmark_test.go +++ b/benchmark_test.go @@ -10,7 +10,7 @@ import ( "path/filepath" "testing" - "github.com/src-d/enry/v2/data" + "github.com/bzz/enry/v2/data" ) type sample struct { diff --git a/classifier.go b/classifier.go index 2bcf51a..c02b508 100644 --- a/classifier.go +++ b/classifier.go @@ -4,7 +4,7 @@ import ( "math" "sort" - "github.com/src-d/enry/v2/internal/tokenizer" + "github.com/bzz/enry/v2/internal/tokenizer" ) // classifier is the interface in charge to detect the possible languages of the given content based on a set of diff --git a/cmd/enry/main.go b/cmd/enry/main.go index 6426a78..61986a3 100644 --- a/cmd/enry/main.go +++ b/cmd/enry/main.go @@ -14,8 +14,8 @@ import ( "sort" "strings" - "github.com/src-d/enry/v2" - "github.com/src-d/enry/v2/data" + "github.com/bzz/enry/v2" + "github.com/bzz/enry/v2/data" ) var ( diff --git a/common.go b/common.go index 91b23cc..7473590 100644 --- a/common.go +++ b/common.go @@ -6,8 +6,8 @@ import ( "path/filepath" "strings" - "github.com/src-d/enry/v2/data" - "github.com/src-d/enry/v2/regex" + "github.com/bzz/enry/v2/data" + "github.com/bzz/enry/v2/regex" ) // OtherLanguage is used as a zero value when a function can not return a specific language. diff --git a/common_test.go b/common_test.go index 802e466..9be56e3 100644 --- a/common_test.go +++ b/common_test.go @@ -8,7 +8,7 @@ import ( "path/filepath" "testing" - "github.com/src-d/enry/v2/data" + "github.com/bzz/enry/v2/data" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/data/alias.go b/data/alias.go index 638be23..7f53aab 100644 --- a/data/alias.go +++ b/data/alias.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/colors.go b/data/colors.go index 39d2acc..341d59c 100644 --- a/data/colors.go +++ b/data/colors.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/commit.go b/data/commit.go index e7cfc7b..267f1fc 100644 --- a/data/commit.go +++ b/data/commit.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/content.go b/data/content.go index dab33dd..9abf90d 100644 --- a/data/content.go +++ b/data/content.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data @@ -6,7 +6,7 @@ package data import ( "regexp" - "github.com/src-d/enry/v2/data/rule" + "github.com/bzz/enry/v2/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/data/documentation.go b/data/documentation.go index 056b3a2..7cfe8e7 100644 --- a/data/documentation.go +++ b/data/documentation.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/extension.go b/data/extension.go index 3a74599..b1ab5ca 100644 --- a/data/extension.go +++ b/data/extension.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/filename.go b/data/filename.go index c881e3d..64c393d 100644 --- a/data/filename.go +++ b/data/filename.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/frequencies.go b/data/frequencies.go index 6054c1d..c232060 100644 --- a/data/frequencies.go +++ b/data/frequencies.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/heuristics.go b/data/heuristics.go index 0b260a5..1644fe2 100644 --- a/data/heuristics.go +++ b/data/heuristics.go @@ -1,6 +1,6 @@ package data -import "github.com/src-d/enry/v2/data/rule" +import "github.com/bzz/enry/v2/data/rule" // Heuristics implements a rule-based content matching engine. diff --git a/data/heuristics_test.go b/data/heuristics_test.go index 2bd8cb8..54ca158 100644 --- a/data/heuristics_test.go +++ b/data/heuristics_test.go @@ -4,7 +4,7 @@ import ( "regexp" "testing" - "github.com/src-d/enry/v2/data/rule" + "github.com/bzz/enry/v2/data/rule" "github.com/stretchr/testify/assert" ) diff --git a/data/interpreter.go b/data/interpreter.go index 6e96c07..26a6327 100644 --- a/data/interpreter.go +++ b/data/interpreter.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/mimeType.go b/data/mimeType.go index ebc1bb3..f06c4c7 100644 --- a/data/mimeType.go +++ b/data/mimeType.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/type.go b/data/type.go index f0aa6a3..8a4e500 100644 --- a/data/type.go +++ b/data/type.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/data/vendor.go b/data/vendor.go index 6ed4796..908be27 100644 --- a/data/vendor.go +++ b/data/vendor.go @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/enry.go b/enry.go index 3c46e15..60b3ead 100644 --- a/enry.go +++ b/enry.go @@ -11,6 +11,6 @@ Upstream Linguist YAML files are used to generate datastructures for data package. */ -package enry // import "github.com/src-d/enry/v2" +package enry // import "github.com/bzz/enry/v2" //go:generate make code-generate diff --git a/go.mod b/go.mod index 5257810..76a3daf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/src-d/enry/v2 +module github.com/bzz/enry/v2 go 1.12 diff --git a/go.sum b/go.sum index 14c3ce6..d3a8b30 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/src-d/go-oniguruma v1.1.0 h1:EG+Nm5n2JqWUaCjtM0NtutPxU7ZN5Tp50GWrrV8bTww= github.com/src-d/go-oniguruma v1.1.0/go.mod h1:chVbff8kcVtmrhxtZ3yBVLLquXbzCS6DrxQaAK/CeqM= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= diff --git a/internal/code-generator/assets/content.go.tmpl b/internal/code-generator/assets/content.go.tmpl index d129daa..905aa08 100644 --- a/internal/code-generator/assets/content.go.tmpl +++ b/internal/code-generator/assets/content.go.tmpl @@ -3,7 +3,7 @@ package data import ( "regexp" - "github.com/src-d/enry/v2/data/rule" + "github.com/bzz/enry/v2/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/internal/code-generator/assets/header.go.tmpl b/internal/code-generator/assets/header.go.tmpl index 0859d06..053711e 100644 --- a/internal/code-generator/assets/header.go.tmpl +++ b/internal/code-generator/assets/header.go.tmpl @@ -1,3 +1,3 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: {{ getCommit }} diff --git a/internal/code-generator/generator/samplesfreq.go b/internal/code-generator/generator/samplesfreq.go index 6c317e8..0181058 100644 --- a/internal/code-generator/generator/samplesfreq.go +++ b/internal/code-generator/generator/samplesfreq.go @@ -12,7 +12,7 @@ import ( "strconv" "text/template" - "github.com/src-d/enry/v2/internal/tokenizer" + "github.com/bzz/enry/v2/internal/tokenizer" ) type samplesFrequencies struct { diff --git a/internal/code-generator/generator/test_files/alias.gold b/internal/code-generator/generator/test_files/alias.gold index 638be23..7f53aab 100644 --- a/internal/code-generator/generator/test_files/alias.gold +++ b/internal/code-generator/generator/test_files/alias.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/colors.gold b/internal/code-generator/generator/test_files/colors.gold index 39d2acc..341d59c 100644 --- a/internal/code-generator/generator/test_files/colors.gold +++ b/internal/code-generator/generator/test_files/colors.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/commit.gold b/internal/code-generator/generator/test_files/commit.gold index e7cfc7b..267f1fc 100644 --- a/internal/code-generator/generator/test_files/commit.gold +++ b/internal/code-generator/generator/test_files/commit.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/content.gold b/internal/code-generator/generator/test_files/content.gold index dab33dd..9abf90d 100644 --- a/internal/code-generator/generator/test_files/content.gold +++ b/internal/code-generator/generator/test_files/content.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data @@ -6,7 +6,7 @@ package data import ( "regexp" - "github.com/src-d/enry/v2/data/rule" + "github.com/bzz/enry/v2/data/rule" ) var ContentHeuristics = map[string]*Heuristics{ diff --git a/internal/code-generator/generator/test_files/documentation.gold b/internal/code-generator/generator/test_files/documentation.gold index 056b3a2..7cfe8e7 100644 --- a/internal/code-generator/generator/test_files/documentation.gold +++ b/internal/code-generator/generator/test_files/documentation.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/extension.gold b/internal/code-generator/generator/test_files/extension.gold index 3a74599..b1ab5ca 100644 --- a/internal/code-generator/generator/test_files/extension.gold +++ b/internal/code-generator/generator/test_files/extension.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/filename.gold b/internal/code-generator/generator/test_files/filename.gold index c881e3d..64c393d 100644 --- a/internal/code-generator/generator/test_files/filename.gold +++ b/internal/code-generator/generator/test_files/filename.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/frequencies.gold b/internal/code-generator/generator/test_files/frequencies.gold index 6054c1d..c232060 100644 --- a/internal/code-generator/generator/test_files/frequencies.gold +++ b/internal/code-generator/generator/test_files/frequencies.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/interpreter.gold b/internal/code-generator/generator/test_files/interpreter.gold index 6e96c07..26a6327 100644 --- a/internal/code-generator/generator/test_files/interpreter.gold +++ b/internal/code-generator/generator/test_files/interpreter.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/mimeType.gold b/internal/code-generator/generator/test_files/mimeType.gold index ebc1bb3..f06c4c7 100644 --- a/internal/code-generator/generator/test_files/mimeType.gold +++ b/internal/code-generator/generator/test_files/mimeType.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/type.gold b/internal/code-generator/generator/test_files/type.gold index f0aa6a3..8a4e500 100644 --- a/internal/code-generator/generator/test_files/type.gold +++ b/internal/code-generator/generator/test_files/type.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/generator/test_files/vendor.gold b/internal/code-generator/generator/test_files/vendor.gold index 6ed4796..908be27 100644 --- a/internal/code-generator/generator/test_files/vendor.gold +++ b/internal/code-generator/generator/test_files/vendor.gold @@ -1,4 +1,4 @@ -// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT. +// Code generated by github.com/bzz/enry/v2/internal/code-generator DO NOT EDIT. // Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d package data diff --git a/internal/code-generator/main.go b/internal/code-generator/main.go index 3df7027..8c6151b 100644 --- a/internal/code-generator/main.go +++ b/internal/code-generator/main.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "log" - "github.com/src-d/enry/v2/internal/code-generator/generator" + "github.com/bzz/enry/v2/internal/code-generator/generator" ) const ( diff --git a/internal/tokenizer/tokenize.go b/internal/tokenizer/tokenize.go index f7a6ea5..4990f09 100644 --- a/internal/tokenizer/tokenize.go +++ b/internal/tokenizer/tokenize.go @@ -5,7 +5,7 @@ package tokenizer import ( "bytes" - "github.com/src-d/enry/v2/regex" + "github.com/bzz/enry/v2/regex" ) // Tokenize returns lexical tokens from content. The tokens returned match what diff --git a/internal/tokenizer/tokenize_c.go b/internal/tokenizer/tokenize_c.go index e3a68f2..8f558b1 100644 --- a/internal/tokenizer/tokenize_c.go +++ b/internal/tokenizer/tokenize_c.go @@ -2,7 +2,7 @@ package tokenizer -import "github.com/src-d/enry/v2/internal/tokenizer/flex" +import "github.com/bzz/enry/v2/internal/tokenizer/flex" // Tokenize returns lexical tokens from content. The tokens returned match what // the Linguist library returns. At most the first ByteLimit bytes of content are tokenized. diff --git a/java/build.sbt b/java/build.sbt index 83043c8..906e87b 100644 --- a/java/build.sbt +++ b/java/build.sbt @@ -7,8 +7,8 @@ enablePlugins(GitVersioning) sonatypeProfileName := "tech.sourced" // pom settings for sonatype -homepage := Some(url("https://github.com/src-d/enry")) -scmInfo := Some(ScmInfo(url("https://github.com/src-d/enry"), +homepage := Some(url("https://github.com/bzz/enry")) +scmInfo := Some(ScmInfo(url("https://github.com/bzz/enry"), "git@github.com:src-d/enry.git")) developers += Developer("abeaumont", "Alfredo Beaumont", diff --git a/shared/enry.go b/shared/enry.go index d1fde6e..2b16cf4 100644 --- a/shared/enry.go +++ b/shared/enry.go @@ -4,7 +4,7 @@ package main import "C" -import "github.com/src-d/enry/v2" +import "github.com/bzz/enry/v2" //export GetLanguage func GetLanguage(filename string, content []byte) string { diff --git a/utils.go b/utils.go index fb807db..6e2a681 100644 --- a/utils.go +++ b/utils.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "github.com/src-d/enry/v2/data" + "github.com/bzz/enry/v2/data" ) const binSniffLen = 8000