mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
modules: prepare for v2 release
- update go.mod \w v2 - update all import paths Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
parent
453caf7d19
commit
6a5f37e9e2
@ -10,7 +10,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/src-d/enry/data"
|
||||
"github.com/src-d/enry/v2/data"
|
||||
)
|
||||
|
||||
type sample struct {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"math"
|
||||
"sort"
|
||||
|
||||
"github.com/src-d/enry/internal/tokenizer"
|
||||
"github.com/src-d/enry/v2/internal/tokenizer"
|
||||
)
|
||||
|
||||
// Classifier is the interface in charge to detect the possible languages of the given content based on a set of
|
||||
|
@ -14,8 +14,8 @@ import (
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/src-d/enry"
|
||||
"github.com/src-d/enry/data"
|
||||
"github.com/src-d/enry/v2"
|
||||
"github.com/src-d/enry/v2/data"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/src-d/enry/data"
|
||||
"github.com/src-d/enry/regex"
|
||||
"github.com/src-d/enry/v2/data"
|
||||
"github.com/src-d/enry/v2/regex"
|
||||
)
|
||||
|
||||
// OtherLanguage is used as a zero value when a function can not return a specific language.
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/src-d/enry/data"
|
||||
"github.com/src-d/enry/v2/data"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
@ -6,7 +6,7 @@ package data
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/src-d/enry/data/rule"
|
||||
"github.com/src-d/enry/v2/data/rule"
|
||||
)
|
||||
|
||||
var ContentHeuristics = map[string]*Heuristics{
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,6 +1,6 @@
|
||||
package data
|
||||
|
||||
import "github.com/src-d/enry/data/rule"
|
||||
import "github.com/src-d/enry/v2/data/rule"
|
||||
|
||||
// Heuristics implements a rule-based content matching engine.
|
||||
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"regexp"
|
||||
"testing"
|
||||
|
||||
"github.com/src-d/enry/v2/data/rule"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/src-d/enry/data/rule"
|
||||
)
|
||||
|
||||
var testContentHeuristics = map[string]*Heuristics{
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/src-d/enry
|
||||
module github.com/src-d/enry/v2
|
||||
|
||||
go 1.12
|
||||
|
||||
|
@ -3,7 +3,7 @@ package data
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/src-d/enry/data/rule"
|
||||
"github.com/src-d/enry/v2/data/rule"
|
||||
)
|
||||
|
||||
var ContentHeuristics = map[string]*Heuristics{
|
||||
|
@ -1,3 +1,3 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: {{ getCommit }}
|
||||
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"strconv"
|
||||
"text/template"
|
||||
|
||||
"github.com/src-d/enry/internal/tokenizer"
|
||||
"github.com/src-d/enry/v2/internal/tokenizer"
|
||||
)
|
||||
|
||||
type samplesFrequencies struct {
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
@ -6,7 +6,7 @@ package data
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/src-d/enry/data/rule"
|
||||
"github.com/src-d/enry/v2/data/rule"
|
||||
)
|
||||
|
||||
var ContentHeuristics = map[string]*Heuristics{
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Code generated by github.com/src-d/enry/internal/code-generator DO NOT EDIT.
|
||||
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
||||
// Extracted from github/linguist commit: e4560984058b4726010ca4b8f03ed9d0f8f464db
|
||||
|
||||
package data
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
||||
"github.com/src-d/enry/internal/code-generator/generator"
|
||||
"github.com/src-d/enry/v2/internal/code-generator/generator"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -6,7 +6,7 @@ package tokenizer
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/src-d/enry/regex"
|
||||
"github.com/src-d/enry/v2/regex"
|
||||
)
|
||||
|
||||
const byteLimit = 100000
|
||||
|
@ -4,7 +4,7 @@
|
||||
package main
|
||||
|
||||
import "C"
|
||||
import "github.com/src-d/enry"
|
||||
import "github.com/src-d/enry/v2"
|
||||
|
||||
//export GetLanguage
|
||||
func GetLanguage(filename string, content []byte) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user