* Implementation for calculating language statistics Impement saving code language statistics to database Implement rendering langauge stats Add primary laguage to show in repository list Implement repository stats indexer queue Add indexer test Refactor to use queue module * Do not timeout for queues
526 lines
20 KiB
Go
526 lines
20 KiB
Go
// Code generated by github.com/src-d/enry/v2/internal/code-generator DO NOT EDIT.
|
|
// Extracted from github/linguist commit: 3a1bd3c3d3e741a8aaec4704f782e06f5cd2a00d
|
|
|
|
package data
|
|
|
|
var LanguagesType = map[string]int{
|
|
"1C Enterprise": 2,
|
|
"ABAP": 2,
|
|
"ABNF": 1,
|
|
"AGS Script": 2,
|
|
"AMPL": 2,
|
|
"ANTLR": 2,
|
|
"API Blueprint": 3,
|
|
"APL": 2,
|
|
"ASN.1": 1,
|
|
"ASP": 2,
|
|
"ATS": 2,
|
|
"ActionScript": 2,
|
|
"Ada": 2,
|
|
"Adobe Font Metrics": 1,
|
|
"Agda": 2,
|
|
"Alloy": 2,
|
|
"Alpine Abuild": 2,
|
|
"Altium Designer": 1,
|
|
"AngelScript": 2,
|
|
"Ant Build System": 1,
|
|
"ApacheConf": 1,
|
|
"Apex": 2,
|
|
"Apollo Guidance Computer": 2,
|
|
"AppleScript": 2,
|
|
"Arc": 2,
|
|
"AsciiDoc": 4,
|
|
"AspectJ": 2,
|
|
"Assembly": 2,
|
|
"Asymptote": 2,
|
|
"Augeas": 2,
|
|
"AutoHotkey": 2,
|
|
"AutoIt": 2,
|
|
"Awk": 2,
|
|
"Ballerina": 2,
|
|
"Batchfile": 2,
|
|
"Befunge": 2,
|
|
"Bison": 2,
|
|
"BitBake": 2,
|
|
"Blade": 3,
|
|
"BlitzBasic": 2,
|
|
"BlitzMax": 2,
|
|
"Bluespec": 2,
|
|
"Boo": 2,
|
|
"Brainfuck": 2,
|
|
"Brightscript": 2,
|
|
"C": 2,
|
|
"C#": 2,
|
|
"C++": 2,
|
|
"C-ObjDump": 1,
|
|
"C2hs Haskell": 2,
|
|
"CLIPS": 2,
|
|
"CMake": 2,
|
|
"COBOL": 2,
|
|
"COLLADA": 1,
|
|
"CSON": 1,
|
|
"CSS": 3,
|
|
"CSV": 1,
|
|
"CWeb": 2,
|
|
"Cabal Config": 1,
|
|
"Cap'n Proto": 2,
|
|
"CartoCSS": 2,
|
|
"Ceylon": 2,
|
|
"Chapel": 2,
|
|
"Charity": 2,
|
|
"ChucK": 2,
|
|
"Cirru": 2,
|
|
"Clarion": 2,
|
|
"Clean": 2,
|
|
"Click": 2,
|
|
"Clojure": 2,
|
|
"Closure Templates": 3,
|
|
"Cloud Firestore Security Rules": 1,
|
|
"CoNLL-U": 1,
|
|
"CoffeeScript": 2,
|
|
"ColdFusion": 2,
|
|
"ColdFusion CFC": 2,
|
|
"Common Lisp": 2,
|
|
"Common Workflow Language": 2,
|
|
"Component Pascal": 2,
|
|
"Cool": 2,
|
|
"Coq": 2,
|
|
"Cpp-ObjDump": 1,
|
|
"Creole": 4,
|
|
"Crystal": 2,
|
|
"Csound": 2,
|
|
"Csound Document": 2,
|
|
"Csound Score": 2,
|
|
"Cuda": 2,
|
|
"Cycript": 2,
|
|
"Cython": 2,
|
|
"D": 2,
|
|
"D-ObjDump": 1,
|
|
"DIGITAL Command Language": 2,
|
|
"DM": 2,
|
|
"DNS Zone": 1,
|
|
"DTrace": 2,
|
|
"Darcs Patch": 1,
|
|
"Dart": 2,
|
|
"DataWeave": 2,
|
|
"Dhall": 2,
|
|
"Diff": 1,
|
|
"Dockerfile": 2,
|
|
"Dogescript": 2,
|
|
"Dylan": 2,
|
|
"E": 2,
|
|
"EBNF": 1,
|
|
"ECL": 2,
|
|
"ECLiPSe": 2,
|
|
"EJS": 3,
|
|
"EML": 1,
|
|
"EQ": 2,
|
|
"Eagle": 1,
|
|
"Easybuild": 1,
|
|
"Ecere Projects": 1,
|
|
"EditorConfig": 1,
|
|
"Edje Data Collection": 1,
|
|
"Eiffel": 2,
|
|
"Elixir": 2,
|
|
"Elm": 2,
|
|
"Emacs Lisp": 2,
|
|
"EmberScript": 2,
|
|
"Erlang": 2,
|
|
"F#": 2,
|
|
"F*": 2,
|
|
"FIGlet Font": 1,
|
|
"FLUX": 2,
|
|
"Factor": 2,
|
|
"Fancy": 2,
|
|
"Fantom": 2,
|
|
"Filebench WML": 2,
|
|
"Filterscript": 2,
|
|
"Formatted": 1,
|
|
"Forth": 2,
|
|
"Fortran": 2,
|
|
"FreeMarker": 2,
|
|
"Frege": 2,
|
|
"G-code": 2,
|
|
"GAMS": 2,
|
|
"GAP": 2,
|
|
"GCC Machine Description": 2,
|
|
"GDB": 2,
|
|
"GDScript": 2,
|
|
"GLSL": 2,
|
|
"GN": 1,
|
|
"Game Maker Language": 2,
|
|
"Genie": 2,
|
|
"Genshi": 2,
|
|
"Gentoo Ebuild": 2,
|
|
"Gentoo Eclass": 2,
|
|
"Gerber Image": 1,
|
|
"Gettext Catalog": 4,
|
|
"Gherkin": 2,
|
|
"Git Attributes": 1,
|
|
"Git Config": 1,
|
|
"Glyph": 2,
|
|
"Glyph Bitmap Distribution Format": 1,
|
|
"Gnuplot": 2,
|
|
"Go": 2,
|
|
"Golo": 2,
|
|
"Gosu": 2,
|
|
"Grace": 2,
|
|
"Gradle": 1,
|
|
"Grammatical Framework": 2,
|
|
"Graph Modeling Language": 1,
|
|
"GraphQL": 1,
|
|
"Graphviz (DOT)": 1,
|
|
"Groovy": 2,
|
|
"Groovy Server Pages": 2,
|
|
"HAProxy": 1,
|
|
"HCL": 2,
|
|
"HLSL": 2,
|
|
"HTML": 3,
|
|
"HTML+Django": 3,
|
|
"HTML+ECR": 3,
|
|
"HTML+EEX": 3,
|
|
"HTML+ERB": 3,
|
|
"HTML+PHP": 3,
|
|
"HTML+Razor": 3,
|
|
"HTTP": 1,
|
|
"HXML": 1,
|
|
"Hack": 2,
|
|
"Haml": 3,
|
|
"Handlebars": 3,
|
|
"Harbour": 2,
|
|
"Haskell": 2,
|
|
"Haxe": 2,
|
|
"HiveQL": 2,
|
|
"HolyC": 2,
|
|
"Hy": 2,
|
|
"HyPhy": 2,
|
|
"IDL": 2,
|
|
"IGOR Pro": 2,
|
|
"INI": 1,
|
|
"IRC log": 1,
|
|
"Idris": 2,
|
|
"Ignore List": 1,
|
|
"Inform 7": 2,
|
|
"Inno Setup": 2,
|
|
"Io": 2,
|
|
"Ioke": 2,
|
|
"Isabelle": 2,
|
|
"Isabelle ROOT": 2,
|
|
"J": 2,
|
|
"JFlex": 2,
|
|
"JSON": 1,
|
|
"JSON with Comments": 1,
|
|
"JSON5": 1,
|
|
"JSONLD": 1,
|
|
"JSONiq": 2,
|
|
"JSX": 2,
|
|
"Jasmin": 2,
|
|
"Java": 2,
|
|
"Java Properties": 1,
|
|
"Java Server Pages": 2,
|
|
"JavaScript": 2,
|
|
"JavaScript+ERB": 2,
|
|
"Jison": 2,
|
|
"Jison Lex": 2,
|
|
"Jolie": 2,
|
|
"Jsonnet": 2,
|
|
"Julia": 2,
|
|
"Jupyter Notebook": 3,
|
|
"KRL": 2,
|
|
"KiCad Layout": 1,
|
|
"KiCad Legacy Layout": 1,
|
|
"KiCad Schematic": 1,
|
|
"Kit": 3,
|
|
"Kotlin": 2,
|
|
"LFE": 2,
|
|
"LLVM": 2,
|
|
"LOLCODE": 2,
|
|
"LSL": 2,
|
|
"LTspice Symbol": 1,
|
|
"LabVIEW": 2,
|
|
"Lasso": 2,
|
|
"Latte": 3,
|
|
"Lean": 2,
|
|
"Less": 3,
|
|
"Lex": 2,
|
|
"LilyPond": 2,
|
|
"Limbo": 2,
|
|
"Linker Script": 1,
|
|
"Linux Kernel Module": 1,
|
|
"Liquid": 3,
|
|
"Literate Agda": 2,
|
|
"Literate CoffeeScript": 2,
|
|
"Literate Haskell": 2,
|
|
"LiveScript": 2,
|
|
"Logos": 2,
|
|
"Logtalk": 2,
|
|
"LookML": 2,
|
|
"LoomScript": 2,
|
|
"Lua": 2,
|
|
"M": 2,
|
|
"M4": 2,
|
|
"M4Sugar": 2,
|
|
"MATLAB": 2,
|
|
"MAXScript": 2,
|
|
"MQL4": 2,
|
|
"MQL5": 2,
|
|
"MTML": 3,
|
|
"MUF": 2,
|
|
"Makefile": 2,
|
|
"Mako": 2,
|
|
"Markdown": 4,
|
|
"Marko": 3,
|
|
"Mask": 3,
|
|
"Mathematica": 2,
|
|
"Maven POM": 1,
|
|
"Max": 2,
|
|
"MediaWiki": 4,
|
|
"Mercury": 2,
|
|
"Meson": 2,
|
|
"Metal": 2,
|
|
"MiniD": 2,
|
|
"Mirah": 2,
|
|
"Modelica": 2,
|
|
"Modula-2": 2,
|
|
"Modula-3": 2,
|
|
"Module Management System": 2,
|
|
"Monkey": 2,
|
|
"Moocode": 2,
|
|
"MoonScript": 2,
|
|
"Motorola 68K Assembly": 2,
|
|
"Myghty": 2,
|
|
"NCL": 2,
|
|
"NL": 1,
|
|
"NSIS": 2,
|
|
"Nearley": 2,
|
|
"Nemerle": 2,
|
|
"NetLinx": 2,
|
|
"NetLinx+ERB": 2,
|
|
"NetLogo": 2,
|
|
"NewLisp": 2,
|
|
"Nextflow": 2,
|
|
"Nginx": 1,
|
|
"Nim": 2,
|
|
"Ninja": 1,
|
|
"Nit": 2,
|
|
"Nix": 2,
|
|
"Nu": 2,
|
|
"NumPy": 2,
|
|
"OCaml": 2,
|
|
"ObjDump": 1,
|
|
"ObjectScript": 2,
|
|
"Objective-C": 2,
|
|
"Objective-C++": 2,
|
|
"Objective-J": 2,
|
|
"Omgrofl": 2,
|
|
"Opa": 2,
|
|
"Opal": 2,
|
|
"OpenCL": 2,
|
|
"OpenEdge ABL": 2,
|
|
"OpenRC runscript": 2,
|
|
"OpenSCAD": 2,
|
|
"OpenType Feature File": 1,
|
|
"Org": 4,
|
|
"Ox": 2,
|
|
"Oxygene": 2,
|
|
"Oz": 2,
|
|
"P4": 2,
|
|
"PHP": 2,
|
|
"PLSQL": 2,
|
|
"PLpgSQL": 2,
|
|
"POV-Ray SDL": 2,
|
|
"Pan": 2,
|
|
"Papyrus": 2,
|
|
"Parrot": 2,
|
|
"Parrot Assembly": 2,
|
|
"Parrot Internal Representation": 2,
|
|
"Pascal": 2,
|
|
"Pawn": 2,
|
|
"Pep8": 2,
|
|
"Perl": 2,
|
|
"Perl 6": 2,
|
|
"Pic": 3,
|
|
"Pickle": 1,
|
|
"PicoLisp": 2,
|
|
"PigLatin": 2,
|
|
"Pike": 2,
|
|
"Pod": 4,
|
|
"Pod 6": 4,
|
|
"PogoScript": 2,
|
|
"Pony": 2,
|
|
"PostCSS": 3,
|
|
"PostScript": 3,
|
|
"PowerBuilder": 2,
|
|
"PowerShell": 2,
|
|
"Processing": 2,
|
|
"Prolog": 2,
|
|
"Propeller Spin": 2,
|
|
"Protocol Buffer": 1,
|
|
"Public Key": 1,
|
|
"Pug": 3,
|
|
"Puppet": 2,
|
|
"Pure Data": 1,
|
|
"PureBasic": 2,
|
|
"PureScript": 2,
|
|
"Python": 2,
|
|
"Python console": 2,
|
|
"Python traceback": 1,
|
|
"QML": 2,
|
|
"QMake": 2,
|
|
"Quake": 2,
|
|
"R": 2,
|
|
"RAML": 3,
|
|
"RDoc": 4,
|
|
"REALbasic": 2,
|
|
"REXX": 2,
|
|
"RHTML": 3,
|
|
"RMarkdown": 4,
|
|
"RPC": 2,
|
|
"RPM Spec": 1,
|
|
"RUNOFF": 3,
|
|
"Racket": 2,
|
|
"Ragel": 2,
|
|
"Rascal": 2,
|
|
"Raw token data": 1,
|
|
"Reason": 2,
|
|
"Rebol": 2,
|
|
"Red": 2,
|
|
"Redcode": 2,
|
|
"Regular Expression": 1,
|
|
"Ren'Py": 2,
|
|
"RenderScript": 2,
|
|
"Rich Text Format": 3,
|
|
"Ring": 2,
|
|
"RobotFramework": 2,
|
|
"Roff": 3,
|
|
"Roff Manpage": 3,
|
|
"Rouge": 2,
|
|
"Ruby": 2,
|
|
"Rust": 2,
|
|
"SAS": 2,
|
|
"SCSS": 3,
|
|
"SMT": 2,
|
|
"SPARQL": 1,
|
|
"SQF": 2,
|
|
"SQL": 1,
|
|
"SQLPL": 2,
|
|
"SRecode Template": 3,
|
|
"SSH Config": 1,
|
|
"STON": 1,
|
|
"SVG": 1,
|
|
"Sage": 2,
|
|
"SaltStack": 2,
|
|
"Sass": 3,
|
|
"Scala": 2,
|
|
"Scaml": 3,
|
|
"Scheme": 2,
|
|
"Scilab": 2,
|
|
"Self": 2,
|
|
"ShaderLab": 2,
|
|
"Shell": 2,
|
|
"ShellSession": 2,
|
|
"Shen": 2,
|
|
"Slash": 2,
|
|
"Slice": 2,
|
|
"Slim": 3,
|
|
"Smali": 2,
|
|
"Smalltalk": 2,
|
|
"Smarty": 2,
|
|
"Solidity": 2,
|
|
"SourcePawn": 2,
|
|
"Spline Font Database": 1,
|
|
"Squirrel": 2,
|
|
"Stan": 2,
|
|
"Standard ML": 2,
|
|
"Stata": 2,
|
|
"Stylus": 3,
|
|
"SubRip Text": 1,
|
|
"SugarSS": 3,
|
|
"SuperCollider": 2,
|
|
"Svelte": 3,
|
|
"Swift": 2,
|
|
"SystemVerilog": 2,
|
|
"TI Program": 2,
|
|
"TLA": 2,
|
|
"TOML": 1,
|
|
"TSQL": 2,
|
|
"TSX": 2,
|
|
"TXL": 2,
|
|
"Tcl": 2,
|
|
"Tcsh": 2,
|
|
"TeX": 3,
|
|
"Tea": 3,
|
|
"Terra": 2,
|
|
"Text": 4,
|
|
"Textile": 4,
|
|
"Thrift": 2,
|
|
"Turing": 2,
|
|
"Turtle": 1,
|
|
"Twig": 3,
|
|
"Type Language": 1,
|
|
"TypeScript": 2,
|
|
"Unified Parallel C": 2,
|
|
"Unity3D Asset": 1,
|
|
"Unix Assembly": 2,
|
|
"Uno": 2,
|
|
"UnrealScript": 2,
|
|
"UrWeb": 2,
|
|
"VCL": 2,
|
|
"VHDL": 2,
|
|
"Vala": 2,
|
|
"Verilog": 2,
|
|
"Vim script": 2,
|
|
"Visual Basic": 2,
|
|
"Volt": 2,
|
|
"Vue": 3,
|
|
"Wavefront Material": 1,
|
|
"Wavefront Object": 1,
|
|
"Web Ontology Language": 1,
|
|
"WebAssembly": 2,
|
|
"WebIDL": 2,
|
|
"WebVTT": 1,
|
|
"Windows Registry Entries": 1,
|
|
"Wollok": 2,
|
|
"World of Warcraft Addon Data": 1,
|
|
"X BitMap": 1,
|
|
"X Font Directory Index": 1,
|
|
"X PixMap": 1,
|
|
"X10": 2,
|
|
"XC": 2,
|
|
"XCompose": 1,
|
|
"XML": 1,
|
|
"XPages": 1,
|
|
"XProc": 2,
|
|
"XQuery": 2,
|
|
"XS": 2,
|
|
"XSLT": 2,
|
|
"Xojo": 2,
|
|
"Xtend": 2,
|
|
"YAML": 1,
|
|
"YANG": 1,
|
|
"YARA": 2,
|
|
"YASnippet": 3,
|
|
"Yacc": 2,
|
|
"ZAP": 2,
|
|
"ZIL": 2,
|
|
"Zeek": 2,
|
|
"ZenScript": 2,
|
|
"Zephir": 2,
|
|
"Zig": 2,
|
|
"Zimpl": 2,
|
|
"desktop": 1,
|
|
"eC": 2,
|
|
"edn": 1,
|
|
"fish": 2,
|
|
"mcfunction": 2,
|
|
"mupad": 2,
|
|
"nanorc": 1,
|
|
"nesC": 2,
|
|
"ooc": 2,
|
|
"q": 2,
|
|
"reStructuredText": 4,
|
|
"sed": 2,
|
|
"wdl": 2,
|
|
"wisp": 2,
|
|
"xBase": 2,
|
|
}
|