Repository Analysis

huggingface/tokenizers

💥 Fast State-of-the-Art Tokenizers optimized for Research and Production

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of huggingface/tokenizers, a Rust project with 10,888 GitHub stars. SynthScan v2.0 examined 66,405 lines of code across 291 source files, recording 379 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.9K
Stars
Rust
Language
66.4K
Lines of Code
291
Files
379
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 1MEDIUM 25LOW 353

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 379 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block217 hits · 212 pts
SeverityFileLineSnippetContext
LOWtokenizers/examples/unstable_wasm/src/utils.rs1pub fn set_panic_hook() {COMMENT
LOWtokenizers/benches/unigram_benchmark.rs21// let mut model = Unigram::default();COMMENT
LOWtokenizers/benches/ci_benchmark.rs1//! Consolidated benchmark suite for CI regression detection.COMMENT
LOWtokenizers/src/lib.rs1#![cfg_attr(docsrs, feature(doc_cfg))]COMMENT
LOWtokenizers/src/lib.rs21//! splitting text is simply on whitespace.COMMENT
LOWtokenizers/src/lib.rs41//! }COMMENT
LOWtokenizers/src/lib.rs61//!COMMENT
LOWtokenizers/src/lib.rs81//!COMMENT
LOWtokenizers/src/lib.rs101//! .with_pre_tokenizer(Some(ByteLevel::default()))COMMENT
LOWtokenizers/src/lib.rs121//! by the total number of core/threads your CPU provides but this can be tuned by setting the `RAYON_RS_NUM_THREADS`COMMENT
LOWtokenizers/src/normalizers/bert.rs21 // Cc, Cf, Cn or CoCOMMENT
LOWtokenizers/src/tokenizer/mod.rs81 /// Retrieve the size of the vocabularyCOMMENT
LOWtokenizers/src/tokenizer/mod.rs801 .map(|(i, sequence)| encode(true, i, sequence))COMMENT
LOWtokenizers/src/tokenizer/mod.rs841 let pair_encoding = pairCOMMENT
LOWtokenizers/src/tokenizer/mod.rs861 /// // Pre-tokenized sequences:COMMENT
LOWtokenizers/src/tokenizer/mod.rs881 // Encode each sequenceCOMMENT
LOWtokenizers/src/tokenizer/mod.rs901 /// tokenizer.encode("Single sequence", false);COMMENT
LOWtokenizers/src/tokenizer/mod.rs961COMMENT
LOWtokenizers/src/tokenizer/mod.rs981/// decode_stream.step(1246).unwrap(),COMMENT
LOWtokenizers/src/tokenizer/mod.rs1001/// ]);COMMENT
LOWtokenizers/src/tokenizer/mod.rs1021/// // Valid utf-8 again, this corresponds to both tokens: [1, 2]COMMENT
LOWtokenizers/src/tokenizer/mod.rs1041/// .unwrap();COMMENT
LOWtokenizers/src/tokenizer/mod.rs1061pub struct DecodeStream<'tok, M, N, PT, PP, D> {COMMENT
LOWtokenizers/src/tokenizer/added_vocabulary.rs121 match_.end()COMMENT
LOWtokenizers/src/tokenizer/added_vocabulary.rs141#[derive(Clone)]COMMENT
LOWtokenizers/src/tokenizer/normalizer.rs101/// It is possible to retrieve a part of the original string, by indexing it withCOMMENT
LOWtokenizers/src/tokenizer/normalizer.rs301 .collect(),COMMENT
LOWtokenizers/src/tokenizer/normalizer.rs421 self.normalizedCOMMENT
LOWtokenizers/src/tokenizer/normalizer.rs681 }COMMENT
LOWtokenizers/src/tokenizer/pre_tokenizer.rs61 /// Split the `PreTokenizedString` by providing a `split_fn` in charge of splittingCOMMENT
LOWtokenizers/src/utils/parallelism.rs61 PARALLELISM.store(if val { 2 } else { 1 }, Ordering::SeqCst);COMMENT
LOWtokenizers/src/utils/mod.rs61///COMMENT
LOWtokenizers/src/utils/mod.rs81/// ```should_panicCOMMENT
LOWtokenizers/src/utils/mod.rs101/// # #[macro_use] extern crate tokenizers;COMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs41/// Parity selection variant.COMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs261/// this trainer accepts multiple corpora (one per language) and selectsCOMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs281///COMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs301/// and accumulates word counts into a single internal map. Parity-awareCOMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs1001 LengthState {COMMENT
LOWtokenizers/src/models/bpe/parity_trainer.rs1881 // lang 1: "abab" x5, "xyxy" x10COMMENT
LOWtokenizers/src/models/bpe/mod.rs21 JsonError(#[from] serde_json::Error),COMMENT
LOWtokenizers/src/models/bpe/trainer.rs181/// # ExamplesCOMMENT
LOWtokenizers/src/models/bpe/model.rs21type VocabR = AHashMap<u32, String>;COMMENT
LOWtokenizers/src/models/bpe/model.rs301 pub(crate) vocab_r: VocabR,COMMENT
LOWtokenizers/src/processors/template.rs1//! # Template ProcessingCOMMENT
LOWtokenizers/src/processors/template.rs21//! So, we can define a [`TemplateProcessing`] that will achieve this result:COMMENT
LOWtokenizers/src/processors/template.rs41//! ```COMMENT
LOWtokenizers/src/processors/template.rs81///COMMENT
LOWtokenizers/src/processors/template.rs181/// // Simple cases, where a single id/token is necessary:COMMENT
LOWtokenizers/src/processors/template.rs241/// # use tokenizers::processors::template::Template;COMMENT
LOWtokenizers/src/processors/template.rs321/// A `Template` is actually a sequence of `Piece` that will beCOMMENT
LOWtokenizers/src/processors/template.rs601 // .take_overflowing()COMMENT
LOWtokenizers/src/processors/template.rs621 // )?);COMMENT
LOWtokenizers/src/processors/template.rs661 // 1 => (COMMENT
LOWtokenizers/src/decoders/ctc.rs1use crate::decoders::wordpiece;COMMENT
LOWdocs/source/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/source/conf.py41# ones.COMMENT
LOWbindings/python/tests/documentation/test_quicktour.py81 print(output.ids)COMMENT
LOWbindings/python/tests/documentation/test_quicktour.py161 # END encode_batchCOMMENT
LOWbindings/python/src/normalizers.rs141 })?;COMMENT
157 more matches not shown…
Unused Imports59 hits · 58 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/rust_doc.py4CODE
LOWdocs/source/_ext/entities.py5CODE
LOWdocs/source/_ext/entities.py10CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py89CODE
LOWbindings/python/py_src/tokenizers/__init__.py105CODE
LOWbindings/python/py_src/tokenizers/__init__.py105CODE
LOWbindings/python/py_src/tokenizers/__init__.py105CODE
LOWbindings/python/py_src/tokenizers/__init__.py105CODE
LOWbindings/python/py_src/tokenizers/__init__.py105CODE
LOWbindings/python/py_src/tokenizers/tools/__init__.py1CODE
LOWbindings/python/py_src/tokenizers/tools/__init__.py1CODE
LOWbindings/python/py_src/tokenizers/tools/visualizer.py2CODE
LOWbindings/python/py_src/tokenizers/tools/visualizer.py5CODE
LOWbindings/python/py_src/tokenizers/tools/visualizer.py6CODE
LOW…rc/tokenizers/implementations/sentencepiece_unigram.py1CODE
LOW…rc/tokenizers/implementations/sentencepiece_unigram.py2CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py1CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py2CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py3CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py4CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py5CODE
LOW…s/python/py_src/tokenizers/implementations/__init__.py6CODE
LOWbindings/python/tests/test_freethreaded.py159CODE
LOWbindings/python/tests/test_benchmarks.py21CODE
LOWbindings/python/tests/test_serialization.py11CODE
LOW…ts/documentation/test_tutorial_train_from_iterators.py8CODE
LOWbindings/python/tests/documentation/test_quicktour.py3CODE
LOWbindings/python/tests/documentation/test_pipeline.py4CODE
LOW…gs/python/tests/implementations/test_bert_wordpiece.py4CODE
LOWbindings/python/tests/implementations/test_char_bpe.py4CODE
LOW…gs/python/tests/implementations/test_byte_level_bpe.py4CODE
LOWbindings/python/tests/bindings/test_processors.py18CODE
LOWbindings/python/tests/bindings/test_normalizers.py6CODE
LOWbindings/python/tests/bindings/test_tokenizer.py17CODE
LOWbindings/python/tests/bindings/test_encoding.py5CODE
LOWbindings/python/tests/bindings/test_models.py6CODE
LOWbindings/python/tests/bindings/test_trainers.py17CODE
LOWbindings/python/scripts/spm_parity_check.py5CODE
LOWbindings/python/scripts/convert.py2CODE
LOWbindings/python/scripts/convert.py7CODE
LOWbindings/python/scripts/convert.py16CODE
LOWbindings/python/scripts/convert.py16CODE
LOWbindings/python/scripts/convert.py16CODE
LOWbindings/python/scripts/convert.py22CODE
LOWbindings/python/scripts/convert.py23CODE
LOWbindings/python/scripts/convert.py25CODE
Hyper-Verbose Identifiers55 hits · 56 pts
SeverityFileLineSnippetContext
LOWbindings/python/conftest.py12def pytest_collection_modifyitems(config, items):CODE
LOW…dings/python/py_src/tokenizers/normalizers/__init__.py23def unicode_normalizer_from_str(normalizer: str) -> Normalizer:CODE
LOWbindings/python/py_src/tokenizers/tools/visualizer.py192 def consecutive_chars_to_html(CODE
LOW…on/py_src/tokenizers/implementations/base_tokenizer.py25 def num_special_tokens_to_add(self, is_pair: bool) -> int:CODE
LOWbindings/python/tests/test_freethreaded.py49 def test_encode_while_swapping_post_processor(self):CODE
LOWbindings/python/tests/test_freethreaded.py81 def test_encode_while_mutating_trainer_fields(self):CODE
LOWbindings/python/tests/test_freethreaded.py114 def test_concurrent_setters_no_lock_poisoning(self):CODE
LOWbindings/python/tests/test_freethreaded.py156 def test_gil_actually_disabled_on_import(self):CODE
LOWbindings/python/tests/test_benchmarks.py90 def test_encode_batch_multithreaded(self, benchmark, gpt2_tokenizer, lines):CODE
LOWbindings/python/tests/test_benchmarks.py127 def test_encode_batch_multithreaded(self, benchmark, llama3_tokenizer, lines):CODE
LOWbindings/python/tests/test_benchmarks.py161 def test_async_encode_batch_fast(self, benchmark, llama3_tokenizer, lines):CODE
LOWbindings/python/tests/utils.py70def doc_pipeline_bert_tokenizer(data_dir):CODE
LOWbindings/python/tests/utils.py78def multiprocessing_with_parallelism(tokenizer, enabled: bool):CODE
LOWbindings/python/tests/test_serialization.py16 def test_full_serialization_albert(self, albert_base):CODE
LOWbindings/python/tests/test_serialization.py120 def test_full_deserialization_hub(self):CODE
LOW…gs/python/tests/implementations/test_bert_wordpiece.py45 def test_multiprocessing_with_parallelism(self, bert_files):CODE
LOWbindings/python/tests/implementations/test_char_bpe.py52 def test_multiprocessing_with_parallelism(self, openai_files):CODE
LOW…ngs/python/tests/implementations/test_sentencepiece.py31 def test_train_with_unk_token(self, tmpdir):CODE
LOW…ngs/python/tests/implementations/test_sentencepiece.py53 def test_train_from_iterator_with_unk_token(self):CODE
LOW…gs/python/tests/implementations/test_byte_level_bpe.py92 def test_multiprocessing_with_parallelism(self, roberta_files):CODE
LOWbindings/python/tests/bindings/test_normalizers.py30 def test_handle_chinese_chars(self):CODE
LOWbindings/python/tests/bindings/test_normalizers.py93 def test_item_getters_and_setters(self):CODE
LOWbindings/python/tests/bindings/test_normalizers.py230 def test_normalizer_interface(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py617 def test_multiprocessing_with_parallelism(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py622 def test_multithreaded_concurrency(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py1039 def test_async_methods_existence(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py1047 async def test_performance_comparison(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py21 def test_instantiate_with_content_only(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py57 def test_can_set_single_world(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py73 def test_has_expected_type_and_methods(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py114 def test_add_tokens_with_normalizer(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py130 def test_normalizer_change_refreshes_added_tokens(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py329 def test_encode_add_special_tokens(self, roberta_files):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py418 def test_decode_stream_copy_and_prefix_ids(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py440 def test_decode_stream_fallback(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py473 def test_decode_skip_special_tokens(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py667 def test_from_pretrained_revision(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py676 def test_unigram_byte_fallback(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py703 def test_encode_special_tokens(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py807 def test_weakref_with_multiple_references(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py937 async def test_with_truncation_padding(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py949 async def test_various_input_formats(self):CODE
LOWbindings/python/tests/bindings/test_tokenizer.py1068 async def encode_sync_with_executor(_):CODE
LOWbindings/python/tests/bindings/test_pre_tokenizers.py187 def test_item_getters_and_setters(self):CODE
LOWbindings/python/tests/bindings/test_encoding.py118 def test_invalid_truncate_direction(self, encodings):CODE
LOWbindings/python/tests/bindings/test_trainers.py163 def test_train_parallelism_with_custom_pretokenizer(self, train_files):CODE
LOWbindings/python/tests/bindings/test_trainers.py187 def test_train_with_special_tokens(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py260 def test_cannot_train_different_model(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py294 def test_continuing_prefix_trainer_mismatch(self, train_files):CODE
LOWbindings/python/tests/bindings/test_trainers.py338 def test_instantiate_defaults(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py348 def test_instantiate_variants(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py367 def test_train_from_iterator_with_dev(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py379 def test_train_from_iterator_with_ratio(self):CODE
LOWbindings/python/tests/bindings/test_trainers.py397 def test_train_iterators_dev_iterators_length_mismatch(self):CODE
LOWbindings/node/index.d.ts326export declare function whitespaceSplitPreTokenizer(): PreTokenizerCODE
Decorative Section Separators12 hits · 42 pts
SeverityFileLineSnippetContext
MEDIUMbindings/python/tests/test_benchmarks.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py74# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py107# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py109# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py151# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py168# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py170# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py191# ---------------------------------------------------------------------------COMMENT
MEDIUMbindings/python/tests/test_benchmarks.py193# ---------------------------------------------------------------------------COMMENT
Self-Referential Comments8 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/CI.yml1# This file is autogenerated by maturin v1.7.4COMMENT
MEDIUMbindings/python/py_src/tokenizers/tools/visualizer.py282 # Create a span from the current consecutive charactersCOMMENT
MEDIUM…on/py_src/tokenizers/implementations/byte_level_bpe.py50 # Create the normalizer structureCOMMENT
MEDIUM…on/py_src/tokenizers/implementations/char_level_bpe.py65 # Create the normalizer structureCOMMENT
MEDIUMbindings/python/tests/documentation/test_quicktour.py16 # This method contains everything we don't want to runCOMMENT
MEDIUMbindings/python/tests/bindings/test_tokenizer.py623 # Create a single shared tokenizer instance (thread-safe)COMMENT
MEDIUMbindings/python/tests/bindings/test_tokenizer.py1049 # Create a large batch for performance comparisonCOMMENT
MEDIUMbindings/python/examples/example.py59 # Create a Tokenizer using BPESTRING
Excessive Try-Catch Wrapping12 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/entities.py194 except Exception as err:CODE
LOWdocs/source/_ext/entities.py217 except Exception:CODE
LOW…rc/tokenizers/implementations/sentencepiece_unigram.py154 except Exception:CODE
LOWbindings/python/tests/test_serialization.py145 except Exception as e:CODE
LOWbindings/python/tests/documentation/test_quicktour.py58 except Exception:CODE
LOWbindings/python/tests/documentation/test_pipeline.py24 except Exception:CODE
LOWbindings/python/tests/documentation/test_pipeline.py152 except Exception:CODE
MEDIUMbindings/python/tests/documentation/test_pipeline.py17def test_pipeline(self, doc_wiki_tokenizer):CODE
MEDIUMbindings/python/tests/documentation/test_pipeline.py149def test_bert_example(self, doc_pipeline_bert_tokenizer):CODE
LOWbindings/python/scripts/spm_parity_check.py14except Exception:CODE
LOWbindings/python/scripts/spm_parity_check.py195 except Exception:CODE
LOWbindings/python/scripts/convert.py46 except Exception:CODE
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMtokenizers/src/lib.rs120//! - tokenizers is designed to leverage CPU parallelism when possible. The level of parallelism is determinedCOMMENT
MEDIUMtokenizers/src/models/bpe/trainer.rs760 // this is the more robust version that only tests max length of learned tokensCOMMENT
MEDIUMbindings/python/src/pre_tokenizers.rs153 /// keep track of the pre-tokenization, and leverage the capabilities of theCOMMENT
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/source/_ext/entities.py113CODE
LOWdocs/source/_ext/entities.py136CODE
LOWbindings/python/scripts/spm_parity_check.py150CODE
LOWbindings/python/scripts/spm_parity_check.py209CODE
LOWbindings/python/scripts/convert.py333CODE
LOWbindings/python/benches/test_tiktoken.py81CODE
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWbindings/python/py_src/tokenizers/tools/visualizer.py331CODE
LOW…on/py_src/tokenizers/implementations/byte_level_bpe.py16CODE
LOW…on/py_src/tokenizers/implementations/char_level_bpe.py25CODE
LOW…on/py_src/tokenizers/implementations/char_level_bpe.py123CODE
LOW…on/py_src/tokenizers/implementations/bert_wordpiece.py15CODE
LOW…on/py_src/tokenizers/implementations/bert_wordpiece.py118CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbindings/python/tests/bindings/test_trainers.py66 == b"""{"BpeTrainer":{"min_frequency":12,"vocab_size":30000,"show_progress":true,"progress_format":"IndicatiCODE