From d9491c55fa4c75b29393486dcfac50eb3d5ae7fd Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 24 Aug 2024 16:55:56 +0000 Subject: [PATCH] Updated Linguist to v7.30.0 --- README.md | 2 +- data/alias.go | 16 +- data/colors.go | 12 +- data/commit.go | 4 +- data/content.go | 15 +- data/documentation.go | 2 +- data/extension.go | 2734 ++-- data/filename.go | 10 +- data/frequencies.go | 10472 +++++++++------- data/groups.go | 3 +- data/id.go | 12 +- data/interpreter.go | 5 +- data/languageInfo.go | 217 +- data/mimeType.go | 3 +- data/type.go | 12 +- data/vendor.go | 2 +- .../generator/generator_test.go | 2 +- .../generator/test_files/alias.gold | 16 +- .../generator/test_files/colors.gold | 12 +- .../generator/test_files/commit.gold | 4 +- .../generator/test_files/content.gold | 15 +- .../generator/test_files/documentation.gold | 2 +- .../generator/test_files/extension.gold | 2734 ++-- .../generator/test_files/filename.gold | 10 +- .../generator/test_files/frequencies.gold | 10472 +++++++++------- .../generator/test_files/groups.gold | 3 +- .../generator/test_files/interpreter.gold | 5 +- .../generator/test_files/mimeType.gold | 3 +- .../generator/test_files/type.gold | 12 +- .../generator/test_files/vendor.gold | 2 +- 30 files changed, 14839 insertions(+), 11974 deletions(-) diff --git a/README.md b/README.md index 10468a1..77e3c68 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Generated Rust bindings using a C static library are available at https://github ## Divergences from Linguist -The `enry` library is based on the data from `github/linguist` version **v7.29.0**. +The `enry` library is based on the data from `github/linguist` version **v7.30.0**. Parsing [linguist/samples](https://github.com/github/linguist/tree/master/samples) the following `enry` results are different from the Linguist: diff --git a/data/alias.go b/data/alias.go index a3b4881..1aaec14 100644 --- a/data/alias.go +++ b/data/alias.go @@ -1,5 +1,5 @@ // Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT. -// Extracted from github/linguist commit: 4ac734c15a96f9e16fd12330d0cb8de82274f700 +// Extracted from github/linguist commit: 42fd3c2514375fc6ad281552368edd3fb9f6ee7f package data @@ -119,6 +119,7 @@ var LanguageByAliasMap = map[string]string{ "boo": "Boo", "boogie": "Boogie", "bplus": "BlitzBasic", + "bqn": "BQN", "brainfuck": "Brainfuck", "brighterscript": "BrighterScript", "brightscript": "Brightscript", @@ -137,6 +138,8 @@ var LanguageByAliasMap = map[string]string{ "c2hs_haskell": "C2hs Haskell", "cabal": "Cabal Config", "cabal_config": "Cabal Config", + "caddy": "Caddyfile", + "caddyfile": "Caddyfile", "cadence": "Cadence", "cairo": "Cairo", "cake": "C#", @@ -197,6 +200,9 @@ var LanguageByAliasMap = map[string]string{ "cpp": "C++", "cpp-objdump": "Cpp-ObjDump", "creole": "Creole", + "cron": "crontab", + "cron_table": "crontab", + "crontab": "crontab", "crystal": "Crystal", "csharp": "C#", "cson": "CSON", @@ -286,6 +292,7 @@ var LanguageByAliasMap = map[string]string{ "email": "E-mail", "emberscript": "EmberScript", "eml": "E-mail", + "envrc": "Shell", "eq": "EQ", "erb": "HTML+ERB", "erlang": "Erlang", @@ -303,6 +310,7 @@ var LanguageByAliasMap = map[string]string{ "figlet_font": "FIGlet Font", "filebench_wml": "Filebench WML", "filterscript": "Filterscript", + "firrtl": "FIRRTL", "fish": "fish", "flex": "Lex", "fluent": "Fluent", @@ -485,6 +493,7 @@ var LanguageByAliasMap = map[string]string{ "jsonnet": "Jsonnet", "jsp": "Java Server Pages", "julia": "Julia", + "julia_repl": "Julia REPL", "jupyter_notebook": "Jupyter Notebook", "just": "Just", "justfile": "Just", @@ -542,6 +551,7 @@ var LanguageByAliasMap = map[string]string{ "lsl": "LSL", "ltspice_symbol": "LTspice Symbol", "lua": "Lua", + "luau": "Luau", "m": "M", "m2": "Macaulay2", "m4": "M4", @@ -637,6 +647,7 @@ var LanguageByAliasMap = map[string]string{ "nixos": "Nix", "njk": "Nunjucks", "nl": "NL", + "nmodl": "NMODL", "node": "JavaScript", "npm_config": "NPM Config", "npmrc": "NPM Config", @@ -730,6 +741,7 @@ var LanguageByAliasMap = map[string]string{ "pike": "Pike", "pip_requirements": "Pip Requirements", "pir": "Parrot Internal Representation", + "pkl": "Pkl", "plain_text": "Text", "plantuml": "PlantUML", "plpgsql": "PLpgSQL", @@ -837,6 +849,7 @@ var LanguageByAliasMap = map[string]string{ "roc": "Roc", "roff": "Roff", "roff_manpage": "Roff Manpage", + "ron": "RON", "rouge": "Rouge", "routeros_script": "RouterOS Script", "rpc": "RPC", @@ -941,6 +954,7 @@ var LanguageByAliasMap = map[string]string{ "tcl": "Tcl", "tcsh": "Tcsh", "tea": "Tea", + "templ": "templ", "terra": "Terra", "terraform": "HCL", "terraform_template": "Terraform Template", diff --git a/data/colors.go b/data/colors.go index 9da37dc..f1b9803 100644 --- a/data/colors.go +++ b/data/colors.go @@ -1,5 +1,5 @@ // Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT. -// Extracted from github/linguist commit: 4ac734c15a96f9e16fd12330d0cb8de82274f700 +// Extracted from github/linguist commit: 42fd3c2514375fc6ad281552368edd3fb9f6ee7f package data @@ -45,6 +45,7 @@ var LanguagesColor = map[string]string{ "Avro IDL": "#0040FF", "Awk": "#c30e9b", "BASIC": "#ff0000", + "BQN": "#2b7067", "Ballerina": "#FF5000", "Batchfile": "#C1F12E", "Beef": "#a52f4e", @@ -78,6 +79,7 @@ var LanguagesColor = map[string]string{ "CUE": "#5886E1", "CWeb": "#00007a", "Cabal Config": "#483465", + "Caddyfile": "#22b638", "Cadence": "#00ef8b", "Cairo": "#ff4a48", "CameLIGO": "#3be133", @@ -150,6 +152,7 @@ var LanguagesColor = map[string]string{ "F#": "#b845fc", "F*": "#572e30", "FIGlet Font": "#FFDDBB", + "FIRRTL": "#2f632f", "FLUX": "#88ccff", "Factor": "#636746", "Fancy": "#7b9db4", @@ -266,6 +269,7 @@ var LanguagesColor = map[string]string{ "Jolie": "#843179", "Jsonnet": "#0064bd", "Julia": "#a270ba", + "Julia REPL": "#a270ba", "Jupyter Notebook": "#DA5B0B", "Just": "#384d54", "KRL": "#28430A", @@ -296,6 +300,7 @@ var LanguagesColor = map[string]string{ "Logtalk": "#295b9a", "LookML": "#652B81", "Lua": "#000080", + "Luau": "#00A2FF", "MATLAB": "#e16737", "MAXScript": "#00a6a6", "MDX": "#fcb32c", @@ -329,6 +334,7 @@ var LanguagesColor = map[string]string{ "Move": "#4a137a", "Mustache": "#724b3b", "NCL": "#28431f", + "NMODL": "#00356B", "NPM Config": "#cb3837", "NWScript": "#111522", "Nasal": "#1d2c4e", @@ -389,6 +395,7 @@ var LanguagesColor = map[string]string{ "PigLatin": "#fcd7de", "Pike": "#005390", "Pip Requirements": "#FFD343", + "Pkl": "#6b9543", "PlantUML": "#fbbd16", "PogoScript": "#d80074", "Polar": "#ae81ff", @@ -422,6 +429,7 @@ var LanguagesColor = map[string]string{ "RDoc": "#701516", "REXX": "#d90e09", "RMarkdown": "#198ce7", + "RON": "#a62c00", "RPGLE": "#2BDE21", "RUNOFF": "#665a4e", "Racket": "#3c5caa", @@ -572,6 +580,7 @@ var LanguagesColor = map[string]string{ "Zephir": "#118f9e", "Zig": "#ec915c", "Zimpl": "#d67711", + "crontab": "#ead7ac", "eC": "#913960", "fish": "#4aae47", "hoon": "#00b171", @@ -586,6 +595,7 @@ var LanguagesColor = map[string]string{ "q": "#0040cd", "reStructuredText": "#141414", "sed": "#64b970", + "templ": "#66D0DD", "wisp": "#7582D1", "xBase": "#403a40", } diff --git a/data/commit.go b/data/commit.go index bba8c29..f87eb12 100644 --- a/data/commit.go +++ b/data/commit.go @@ -1,7 +1,7 @@ // Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT. -// Extracted from github/linguist commit: 4ac734c15a96f9e16fd12330d0cb8de82274f700 +// Extracted from github/linguist commit: 42fd3c2514375fc6ad281552368edd3fb9f6ee7f package data // linguist's commit from which files were generated. -var LinguistCommit = "4ac734c15a96f9e16fd12330d0cb8de82274f700" +var LinguistCommit = "42fd3c2514375fc6ad281552368edd3fb9f6ee7f" diff --git a/data/content.go b/data/content.go index 3c6a5c3..68113c1 100644 --- a/data/content.go +++ b/data/content.go @@ -1,5 +1,5 @@ // Code generated by github.com/go-enry/go-enry/v2/internal/code-generator DO NOT EDIT. -// Extracted from github/linguist commit: 4ac734c15a96f9e16fd12330d0cb8de82274f700 +// Extracted from github/linguist commit: 42fd3c2514375fc6ad281552368edd3fb9f6ee7f package data @@ -1318,6 +1318,10 @@ var ContentHeuristics = map[string]*Heuristics{ rule.MatchingLanguages("XML"), regex.MustCompileMultiline(`": -3.208825, + "@": -2.930112, + "A": -6.541030, + "Clock": -5.442418, + "FIRRTL": -5.847883, + "Foo": -5.847883, + "MaxPeriodFibonacciLFSR": -5.847883, + "Memory": -5.847883, + "Reset": -6.541030, + "UInt": -3.496508, + "Users/user/repos/github.com/seldridge/scala": -4.931592, + "[": -2.264364, + "]": -2.264364, + "_T": -5.847883, + "_a_T": -5.847883, + "_state_WIRE": -4.749271, + "a": -5.442418, + "a_hi": -5.847883, + "a_lo": -5.847883, + "a_prng": -6.541030, + "a_prng.clock": -6.541030, + "a_prng.io.increment": -6.541030, + "a_prng.io.out": -5.154736, + "a_prng.io.seed.bits": -5.154736, + "a_prng.io.seed.valid": -6.541030, + "a_prng.reset": -6.541030, + "bind": -6.541030, + "bits": -6.541030, + "cat": -5.442418, + "circuit": -5.847883, + "clock": -4.461588, + "connect": -3.650658, + "data": -6.541030, + "depth": -6.541030, + "flip": -5.847883, + "h": -4.749271, + "increment": -6.541030, + "input": -4.343805, + "inst": -6.541030, + "invalidate": -5.154736, + "io": -6.541030, + "io.increment": -6.541030, + "io.out": -6.541030, + "io.seed.bits": -5.154736, + "io.seed.valid": -6.541030, + "latency": -5.847883, + "layer": -6.541030, + "mem": -6.541030, + "module": -5.442418, + "node": -5.154736, + "of": -6.541030, + "out": -6.541030, + "output": -5.442418, + "printf": -6.541030, + "public": -5.847883, + "r": -6.541030, + "r.addr": -6.541030, + "r.clk": -6.541030, + "r.data": -6.541030, + "r.en": -6.541030, + "rAddr": -5.442418, + "rData": -5.847883, + "rEn": -5.442418, + "read": -5.847883, + "reader": -6.541030, + "regreset": -6.541030, + "reset": -5.154736, + "seed": -6.541030, + "snippets/LFSR.scala": -4.931592, + "src/main/scala/chisel": -3.075294, + "state": -3.832980, + "tbMemoryKind": -4.238445, + "type": -6.541030, + "undefined": -6.541030, + "under": -6.541030, + "valid": -6.541030, + "version": -5.847883, + "w": -6.541030, + "w.addr": -6.541030, + "w.clk": -6.541030, + "w.data": -6.541030, + "w.en": -6.541030, + "w.mask": -6.541030, + "wData": -5.847883, + "wMask": -5.847883, + "when": -5.847883, + "wire": -6.541030, + "write": -5.847883, + "writer": -6.541030, + "xor": -6.541030, + "{": -5.442418, + "}": -5.442418, + }, "FLUX": map[string]float64{ "(": -2.578592, ")": -2.578592, @@ -73726,114 +74031,115 @@ var TokensLogProbabilities = map[string]map[string]float64{ "~": -6.587550, }, "JSON": map[string]float64{ - ",": -0.887471, - "-": -1.930115, - ":": -3.501419, - "Action": -11.138654, - "Allow": -11.138654, - "AssumeRole": -11.138654, - "Effect": -11.138654, - "Principal": -11.138654, - "Service": -11.138654, - "Sid": -11.138654, - "Statement": -11.138654, - "Version": -11.138654, - "[": -1.624660, - "\\": -8.653747, - "]": -1.624881, - "false": -7.737456, - "lambda.amazonaws.com": -11.138654, - "null": -11.138654, - "sts": -11.138654, - "true": -7.206828, - "{": -4.733425, - "}": -4.735080, + ",": -0.889636, + "-": -1.941104, + ":": -3.381533, + "": -10.456496, + "Action": -11.149643, + "Allow": -11.149643, + "AssumeRole": -11.149643, + "Effect": -11.149643, + "Principal": -11.149643, + "Service": -11.149643, + "Sid": -11.149643, + "Statement": -11.149643, + "Version": -11.149643, + "[": -1.631083, + "\\": -8.664736, + "]": -1.631303, + "false": -7.715656, + "lambda.amazonaws.com": -11.149643, + "null": -11.149643, + "sts": -11.149643, + "true": -7.217817, + "{": -4.671133, + "}": -4.672671, }, "JSON with Comments": map[string]float64{ - "$": -7.543273, - "(": -8.236421, - ")": -8.236421, - ",": -1.021916, - "-": -7.137808, - "//Defines": -5.838525, - "//Specifies": -8.236421, - "1": -6.850126, - "2": -8.236421, - ":": -1.349889, - "": -7.543273, - "": -8.236421, - "": -6.850126, - "": -8.236421, - "": -8.236421, - "": -8.236421, - "