tartrazine/internal/code-generator/generator
Alexander Bezzubov 78eee0cf7e
generator: flag to debug building of bayesian classifier
It seems that reading ./samples/ from Linguist consumes
a different number of files from filesystem on different OSes.

This change adds ENRY_DEBUG env var to print some debug output
about calculations of token stats from  samples.

TestPlan:
 - ENRY_DEBUG=1 go test -v ./internal/code-generator/generator \
	-run Test_GeneratorTestSuite -testify.m TestGenerationFiles

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2020-03-29 19:35:49 +02:00
..
test_files tokenizer: fix a bug and regenerate the code \w latest Go 2020-03-19 19:08:21 +01:00
aliases.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
colors.go Implement getting color code for languages 2019-07-19 23:59:46 +03:00
documentation.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
extensions.go write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
filenames.go write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
generator_test.go generator: mode debug output in case of failure 2020-03-25 14:20:26 +01:00
generator.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
heuristics_test.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
heuristics.go Improve detection of unsupported regexp syntax 2019-08-05 22:24:03 +03:00
interpreters.go write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
langinfo.go Implement getting color code for languages 2019-07-19 23:59:46 +03:00
linguist-commit.go write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
mimeType.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00
samplesfreq.go generator: flag to debug building of bayesian classifier 2020-03-29 19:35:49 +02:00
types.go write a canonical header for machine-generated files 2018-04-30 12:57:39 +03:00
vendor.go Sync to linguist 7.2.0: heuristics.yml support (#189) 2019-02-14 12:47:45 +01:00