Faker is a Python package that generates fake data for you.
This report summarizes scanner evidence for joke2k/faker, a Python project with 19,475 GitHub stars. SynthScan examined 376,800 lines of code across 840 source files, recording 511 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 1.6 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 473 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 426 finding(s).
Which changes need focused human review? 511 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 511 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | generate_stubs.py | 28 | def get_module_and_member_to_import(cls: Type, locale: Optional[str] = None) -> Tuple[str, str]: | CODE |
| LOW | generate_stubs.py | 71 | def get_member_functions_and_variables(cls: object, include_mangled: bool = False) -> UniqueMemberFunctionsAndVariables: | CODE |
| LOW | tests/test_generator.py | 17 | def foo_formatter_with_arguments(self, param="", append=""): | CODE |
| LOW⚡ | tests/test_generator.py | 31 | def test_get_formatter_returns_correct_formatter(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 36 | def test_get_formatter_with_unknown_formatter(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 46 | def test_format_calls_formatter_on_provider(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 49 | def test_format_passes_arguments_to_formatter(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 53 | def test_add_provider_overrides_old_provider(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 58 | def test_parse_without_formatter_tokens(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 61 | def test_parse_with_valid_formatter_tokens(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 65 | def test_arguments_group_with_values(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 73 | def test_arguments_group_with_dictionaries(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 79 | def test_arguments_group_with_invalid_name(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 83 | def test_arguments_group_with_invalid_argument_type(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 88 | def test_parse_with_valid_formatter_arguments(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 94 | def test_parse_with_unknown_arguments_group(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 99 | def test_parse_with_unknown_formatter_token(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 104 | def test_magic_call_calls_format(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 107 | def test_magic_call_calls_format_with_arguments(self, generator): | CODE |
| LOW⚡ | tests/test_generator.py | 117 | def test_random_seed_doesnt_seed_system_random(self, mock_system_random, generator): | CODE |
| LOW | tests/test_cli_arg_parsing.py | 9 | def test_cli_include_argument_parsing(self): | CODE |
| LOW | tests/test_cli_arg_parsing.py | 24 | def test_cli_multiple_includes(self): | CODE |
| LOW | tests/test_factory.py | 29 | def test_documentor_skips_unimplemented_formatters(self): | CODE |
| LOW | tests/test_factory.py | 45 | def test_print_provider_handles_non_utf_output(self): | CODE |
| LOW | tests/test_factory.py | 72 | def test_command_custom_provider(self): | CODE |
| LOW | tests/test_factory.py | 105 | def test_cli_seed_with_repeat(self): | CODE |
| LOW | tests/test_factory.py | 162 | def test_lang_unlocalized_provider(self): | CODE |
| LOW | tests/test_factory.py | 169 | def test_lang_localized_provider(self, with_default=True): | CODE |
| LOW | tests/test_factory.py | 213 | def test_lang_localized_provider_without_default(self): | CODE |
| LOW | tests/test_factory.py | 295 | def test_prefix_suffix_always_string(self): | CODE |
| LOW | tests/test_factory.py | 303 | def test_random_pystr_characters(self): | CODE |
| LOW⚡ | tests/test_factory.py | 358 | def test_arbitrary_digits_pydecimal(self): | CODE |
| LOW⚡ | tests/test_factory.py | 366 | def test_pyfloat_empty_range_error(self): | CODE |
| LOW⚡ | tests/test_factory.py | 372 | def test_pyfloat_same_min_max(self): | CODE |
| LOW⚡ | tests/test_factory.py | 378 | def test_includes_does_not_mutate_default_providers(self): | CODE |
| LOW | tests/test_optional.py | 13 | def test_optional_probability(self) -> None: | CODE |
| LOW | tests/test_optional.py | 25 | def test_optional_valid_range(self) -> None: | CODE |
| LOW | tests/test_unique_exclude.py | 12 | def test_exclude_types_excludes_bools(self): | CODE |
| LOW⚡ | tests/test_unique_exclude.py | 24 | def test_exclude_types_still_enforces_other_types(self): | CODE |
| LOW⚡ | tests/test_unique_exclude.py | 32 | def test_exclude_types_with_limited_values(self): | CODE |
| LOW⚡ | tests/test_unique_exclude.py | 40 | def test_without_exclusion_bools_exhaust(self): | CODE |
| LOW | tests/test_unique_exclude.py | 53 | def test_exclude_types_chainable(self): | CODE |
| LOW | tests/test_unique_exclude.py | 63 | def test_exclude_multiple_types(self): | CODE |
| LOW | tests/test_unique_exclude.py | 75 | def test_exclude_types_shares_seen_dict(self): | CODE |
| LOW | tests/test_unique_exclude.py | 89 | def test_exclude_types_preserves_across_locales(self): | CODE |
| LOW⚡ | tests/test_proxy.py | 356 | def test_multiple_locale_factory_selection_unsupported_method(self): | CODE |
| LOW⚡ | tests/test_proxy.py | 363 | def test_weighting_disabled_single_choice(self, mock_choices_fn, mock_choice_fn): | CODE |
| LOW⚡ | tests/test_proxy.py | 371 | def test_weighting_disabled_with_locales(self, mock_choices_fn, mock_choice_fn): | CODE |
| LOW⚡ | tests/test_proxy.py | 403 | def test_weighting_disabled_multiple_choices(self, mock_choices_fn, mock_choice_fn): | CODE |
| LOW⚡ | tests/test_proxy.py | 413 | def test_weighting_enabled_multiple_choices(self, mock_choices_fn, mock_choice_fn): | CODE |
| LOW⚡ | tests/test_proxy.py | 421 | def test_dir_include_all_providers_attribute_in_list(self): | CODE |
| LOW⚡ | tests/test_proxy.py | 484 | def test_copy_rebinds_single_locale_proxies(self): | CODE |
| LOW⚡ | tests/test_proxy.py | 493 | def test_copy_rebinds_multiple_locale_proxies(self): | CODE |
| LOW⚡ | tests/test_proxy.py | 503 | def test_copy_unique_uses_copied_proxy_state(self): | CODE |
| LOW | tests/test_proxy.py | 44 | def test_locale_as_list_invalid_value_type(self): | CODE |
| LOW | tests/test_proxy.py | 50 | def test_locale_as_ordereddict(self): | CODE |
| LOW | tests/test_proxy.py | 187 | def test_single_locale_proxy_behavior(self): | CODE |
| LOW | tests/test_proxy.py | 210 | def test_multiple_locale_proxy_behavior(self): | CODE |
| LOW | tests/test_proxy.py | 227 | def test_multiple_locale_caching_behavior(self): | CODE |
| LOW | tests/test_proxy.py | 252 | def test_multiple_locale_factory_selection_no_weights(self, mock_factory_distribution, mock_factory_choice): | CODE |
| 342 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | generate_stubs.py | 28 | CODE | |
| LOW | generate_stubs.py | 71 | CODE | |
| LOW | generate_stubs.py | 93 | CODE | |
| LOW | tests/test_providers_formats.py | 15 | CODE | |
| LOW | tests/providers/test_misc.py | 204 | CODE | |
| LOW | tests/providers/test_misc.py | 328 | CODE | |
| LOW | tests/providers/test_ssn.py | 260 | CODE | |
| LOW | tests/providers/test_ssn.py | 275 | CODE | |
| LOW | tests/providers/test_internet.py | 274 | CODE | |
| LOW | tests/providers/test_internet.py | 350 | CODE | |
| LOW | tests/providers/test_person.py | 231 | CODE | |
| LOW | tests/providers/test_person.py | 251 | CODE | |
| LOW | tests/providers/test_person.py | 1905 | CODE | |
| LOW | tests/providers/test_person.py | 1925 | CODE | |
| LOW | faker/documentor.py | 48 | CODE | |
| LOW | faker/proxy.py | 31 | CODE | |
| LOW | faker/providers/misc/__init__.py | 679 | CODE | |
| LOW | faker/providers/misc/__init__.py | 756 | CODE | |
| LOW | faker/providers/python/__init__.py | 60 | CODE | |
| LOW | faker/providers/person/pl_PL/__init__.py | 4122 | CODE | |
| LOW | faker/providers/date_time/th_TH/__init__.py | 86 | CODE | |
| LOW | faker/providers/date_time/th_TH/__init__.py | 172 | CODE | |
| LOW | faker/providers/ssn/en_US/__init__.py | 205 | CODE | |
| LOW | faker/providers/ssn/hu_HU/__init__.py | 14 | CODE | |
| LOW | faker/providers/ssn/no_NO/__init__.py | 33 | CODE | |
| LOW | faker/providers/lorem/__init__.py | 203 | CODE | |
| LOW | faker/providers/address/ru_RU/__init__.py | 1557 | CODE | |
| LOW | faker/providers/address/ru_RU/__init__.py | 1578 | CODE | |
| LOW | faker/providers/company/it_IT/__init__.py | 349 | CODE | |
| LOW | scripts/check_test_class_order.py | 62 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/providers/test_ssn.py | 381 | COMMENT | |
| LOW | tests/providers/test_ssn.py | 421 | # even when using the same seed_instance() due to using random.choice() for GG to avoid valid | COMMENT |
| LOW | tests/providers/test_ssn.py | 521 | itin = self.fake.ssn(taxpayer_identification_number_type="ITIN") | COMMENT |
| LOW | faker/providers/misc/__init__.py | 261 | # | ver | rand_a (12 bits) |var| rand_b | | COMMENT |
| LOW | faker/providers/file/__init__.py | 21 | # application/ecmascript | COMMENT |
| LOW | faker/providers/person/zh_TW/__init__.py | 1 | from collections import OrderedDict | COMMENT |
| LOW | faker/providers/person/zh_TW/__init__.py | 521 | first_names.update(first_names_female) | COMMENT |
| LOW | faker/providers/person/hu_HU/__init__.py | 1 | from collections import OrderedDict | COMMENT |
| LOW | faker/providers/ssn/en_CA/__init__.py | 41 | COMMENT | |
| LOW | faker/providers/ssn/hu_HU/__init__.py | 21 | :param gender: gender of the person - "F" for female, M for male. | COMMENT |
| LOW | faker/providers/ssn/hu_HU/__init__.py | 41 | # It also includes information on original citizenship,but this is | COMMENT |
| LOW | faker/providers/phone_number/en_GB/__init__.py | 1 | from .. import Provider as PhoneNumberProvider | COMMENT |
| LOW | faker/providers/address/en_MS/__init__.py | 1 | from collections import OrderedDict | COMMENT |
| LOW | faker/providers/address/hu_HU/__init__.py | 41 | "Petőfi", | COMMENT |
| LOW | docs/conf.py | 1 | # Faker documentation build configuration file. | COMMENT |
| LOW | docs/conf.py | 41 | COMMENT | |
| LOW | docs/conf.py | 61 | COMMENT | |
| LOW | docs/conf.py | 81 | # add_module_names = True | COMMENT |
| LOW | docs/conf.py | 101 | html_theme = "default" | COMMENT |
| LOW | docs/conf.py | 121 | COMMENT | |
| LOW | docs/conf.py | 141 | # If true, SmartyPants will be used to convert quotes and dashes to | COMMENT |
| LOW | docs/conf.py | 161 | # If true, links to the reST sources are added to the pages. | COMMENT |
| LOW | docs/conf.py | 181 | COMMENT | |
| LOW | docs/conf.py | 201 | # the title page. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/providers/test_ssn.py | 1051 | except ValueError: | CODE |
| HIGH | faker/documentor.py | 96 | except IndexError: | CODE |
| HIGH | faker/providers/date_time/__init__.py | 2217 | except OSError: | CODE |
| HIGH | faker/decode/__init__.py | 11 | except IndexError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | faker/providers/bank/fil_PH/__init__.py | 0 | implement automotive provider for ``tl_ph`` locale. there is no difference from the ``en_ph`` implementation. | STRING |
| HIGH | faker/providers/bank/tl_PH/__init__.py | 0 | implement automotive provider for ``tl_ph`` locale. there is no difference from the ``en_ph`` implementation. | STRING |
| HIGH | faker/providers/automotive/fil_PH/__init__.py | 0 | implement automotive provider for ``tl_ph`` locale. there is no difference from the ``en_ph`` implementation. | STRING |
| HIGH | faker/providers/automotive/tl_PH/__init__.py | 0 | implement automotive provider for ``tl_ph`` locale. there is no difference from the ``en_ph`` implementation. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | generate_stubs.py | 225 | body = f"""# This file is auto-generated by generate_stubs.py. | CODE |
| MEDIUM | tests/test_proxy.py | 173 | # Create a new random instance for en_US factory with seed value | COMMENT |
| MEDIUM | tests/providers/test_barcode.py | 141 | # Create a new UPC-A barcode based on the UPC-E barcode | COMMENT |
| MEDIUM | tests/providers/test_barcode.py | 152 | # Create a new UPC-A barcode based on the UPC-E barcode | COMMENT |
| MEDIUM | faker/providers/ssn/en_CA/__init__.py | 50 | # Create an array of 8 elements initialized randomly. The first digit | COMMENT |
| MEDIUM | faker/providers/address/vi_VN/__init__.py | 1 | """This module provides address-related functionalities for Vietnamese addresses.""" | STRING |
| MEDIUM | docs/conf.py | 3 | # This file is execfile()d with the current directory set to its | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | faker/providers/person/zh_TW/__init__.py | 43 | # ============================================================================= | COMMENT |
| MEDIUM | faker/providers/person/zh_TW/__init__.py | 523 | # ============================================================================= | COMMENT |
| MEDIUM | faker/providers/ssn/hu_HU/__init__.py | 35 | # ------------------------ | COMMENT |
| MEDIUM | faker/providers/ssn/hu_HU/__init__.py | 57 | # ----------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/providers/test_internet.py | 957 | # But every level henceforth should return the mocked value | COMMENT |
| MEDIUM | tests/providers/test_internet.py | 986 | # every level henceforth should return the mocked value | COMMENT |
| LOW | faker/providers/misc/__init__.py | 68 | # Generator is unseeded anyway, just use urandom | COMMENT |
| LOW | faker/providers/date_time/th_TH/__init__.py | 76 | # in that case just use the fmt_char | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CHANGELOG.md | 2222 | * Remove some words from ``en_US`` lorem ipsum provider. Thanks @Pomax. | COMMENT |
| LOW⚡ | tests/providers/test_dynamic.py | 86 | fake_data = [faker.my_provider(use_weighting=True) for _ in range(10_000)] | CODE |
| LOW⚡ | tests/providers/test_dynamic.py | 88 | for i in fake_data: | CODE |
| LOW⚡ | tests/providers/test_dynamic.py | 101 | fake_data = [faker.my_provider(use_weighting=False) for _ in range(10_000)] | CODE |
| LOW⚡ | tests/providers/test_dynamic.py | 103 | for i in fake_data: | CODE |
| LOW | faker/providers/person/__init__.py | 203 | :example: 'John Doe' | STRING |
| LOW | faker/providers/company/__init__.py | 510 | :example: 'Acme Ltd' | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | faker/proxy.py | 1 | CODE | |
| LOW | faker/__init__.py | 1 | CODE | |
| LOW | faker/__init__.py | 2 | CODE | |
| LOW | faker/__init__.py | 3 | CODE | |
| LOW | faker/generator.py | 9 | CODE | |
| LOW | faker/typing.py | 3 | CODE | |
| LOW | faker/providers/color/color.py | 22 | CODE | |
| LOW | scripts/check_test_class_order.py | 14 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | faker/factory.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | faker/generator.py | 100 | def set_formatter(self, name: str, formatter: Callable) -> None: | CODE |
| LOW | faker/generator.py | 107 | def set_arguments(self, group: str, argument: str, value: Optional[Any] = None) -> None: | CODE |
| LOW | faker/typing.py | 43 | __all__ = ["OrderedDictType", "CreditCard", "CardType", "Country", "DateParseType", "HueType", "SexLiteral", "SeedType"] | CODE |
| LOW | faker/providers/bank/en_PH/__init__.py | 5 | logger = logging.getLogger(__name__) | CODE |
| LOW | faker/sphinx/docstring.py | 12 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | generate_stubs.py | 103 | except Exception as e: | CODE |
| LOW | generate_stubs.py | 116 | except Exception as e: | CODE |
| LOW⚡ | tests/providers/test_address.py | 203 | except Exception as e: | CODE |
| LOW | faker/providers/ssn/uk_UA/__init__.py | 48 | except Exception: | CODE |
| LOW | faker/sphinx/docstring.py | 200 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/providers/test_credit_card.py | 219 | assert re.match(r"[\u4e00-\u9fff]+", card_data[1]) # Check if owner has Chinese characters | CODE |
| LOW | faker/proxy.py | 381 | # Check if this first value is unique | COMMENT |
| LOW | faker/providers/misc/__init__.py | 902 | # Check if an argument group has been supplied | COMMENT |
| LOW | faker/sphinx/validator.py | 134 | # Check if code element type is allowed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | faker/providers/phone_number/en_GB/__init__.py | 12 | # It's worth noting that the following examples include incorrect notation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | faker/providers/ssn/nl_BE/__init__.py | 28 | CODE |