Upload LABELS.py with huggingface_hub
Browse files
LABELS.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Label vocabularies, generated from model/pico_type/labels.py. Do not edit by hand."""
|
| 2 |
+
|
| 3 |
+
COARSE_LABELS = ['text', 'code', 'link', 'image', 'file', 'config', 'markup', 'data', 'error', 'secret', 'archive', 'binary']
|
| 4 |
+
|
| 5 |
+
MODALITY_LABELS = ['textual', 'binary_image', 'binary_archive', 'binary_executable', 'binary_document', 'binary_audio', 'binary_video', 'binary_other']
|
| 6 |
+
|
| 7 |
+
SUBTYPE_LABELS = ['json', 'yaml', 'toml', 'ini', 'csv', 'tsv', 'xml', 'html', 'markdown', 'rst', 'asciidoc', 'tex', 'sql', 'graphql', 'protobuf', 'msgpack', 'log', 'diff', 'patch', 'env', 'shell', 'makefile', 'dockerfile', 'gitignore']
|
| 8 |
+
|
| 9 |
+
CODE_LANG_LABELS = ['python', 'javascript', 'typescript', 'jsx', 'tsx', 'java', 'kotlin', 'scala', 'groovy', 'clojure', 'c', 'cpp', 'csharp', 'fsharp', 'objectivec', 'go', 'rust', 'zig', 'ruby', 'php', 'perl', 'lua', 'tcl', 'swift', 'dart', 'julia', 'nim', 'crystal', 'haskell', 'ocaml', 'elm', 'erlang', 'elixir', 'lisp', 'scheme', 'racket', 'r', 'matlab', 'octave', 'sas', 'stata', 'sql', 'plsql', 'tsql', 'html', 'css', 'scss', 'sass', 'less', 'bash', 'zsh', 'fish', 'powershell', 'vim', 'fortran', 'cobol', 'ada', 'pascal', 'delphi', 'vb', 'prolog', 'vhdl']
|
| 10 |
+
|
| 11 |
+
TEXT_LANG_LABELS = ['en', 'es', 'fr', 'de', 'it', 'pt', 'nl', 'sv', 'no', 'da', 'fi', 'pl', 'cs', 'sk', 'hu', 'ro', 'el', 'tr', 'ru', 'uk', 'bg', 'sr', 'hr', 'zh', 'ja', 'ko', 'vi', 'th', 'id', 'ms']
|
| 12 |
+
|
| 13 |
+
FILE_MIME_LABELS = ['application/pdf', 'application/zip', 'application/gzip', 'application/x-tar', 'application/x-7z-compressed', 'application/x-rar-compressed', 'application/x-bzip2', 'application/x-xz', 'application/json', 'application/xml', 'application/yaml', 'application/octet-stream', 'application/x-executable', 'application/x-mach-binary', 'application/x-elf', 'application/x-deb', 'application/x-rpm', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/msword', 'application/rtf', 'application/epub+zip', 'application/x-ndjson', 'text/plain', 'text/csv', 'text/html', 'text/xml', 'text/markdown', 'image/png', 'image/jpeg', 'image/gif', 'image/webp', 'image/svg+xml', 'image/bmp', 'image/tiff', 'image/heic', 'image/heif', 'image/avif', 'image/x-icon', 'image/vnd.adobe.photoshop', 'video/mp4', 'video/webm', 'video/x-matroska', 'video/quicktime', 'video/x-msvideo', 'video/x-flv', 'video/x-mpeg', 'audio/mpeg', 'audio/ogg', 'audio/wav', 'audio/flac', 'audio/aac', 'audio/x-m4a', 'audio/webm', 'audio/midi', 'font/ttf', 'font/otf', 'font/woff', 'font/woff2', 'application/x-sqlite3', 'application/x-parquet', 'application/x-protobuf', 'application/x-flatbuffers', 'application/x-cpio', 'application/x-iso9660-image', 'application/vnd.android.package-archive', 'application/x-jar', 'application/x-python-bytecode', 'application/x-archive', 'application/pgp-encrypted', 'application/pgp-signature', 'application/x-x509-ca-cert', 'application/x-pem-file', 'application/vnd.tcpdump.pcap', 'application/java-vm', 'application/x-matlab-data', 'application/x-shockwave-flash', 'application/x-font-ttf', 'application/x-font-otf', 'application/wasm', 'application/x-ruby', 'application/javascript', 'application/ecmascript', 'application/x-bittorrent', 'application/x-dvi', 'chemical/x-mdl-sdfile', 'application/x-lzma']
|
| 14 |
+
|
| 15 |
+
RISK_LABELS = ['api_key', 'jwt', 'ssh_key', 'password', 'email', 'phone']
|
| 16 |
+
|
| 17 |
+
ALL_HEADS = ("coarse", "modality", "subtype", "code_lang", "text_lang", "file_mime", "risk")
|