Repository Analysis

geopy/geopy

Geocoding library for Python.

25.2 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of geopy/geopy, a Python project with 4,832 GitHub stars. SynthScan v2.0 examined 18,032 lines of code across 101 source files, recording 338 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 25.2 places this repository in the Moderate 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).

25.2
Adjusted Score
25.2
Raw Score
100%
Time Factor
2026-07-12
Last Push
4.8K
Stars
Python
Language
18.0K
Lines of Code
101
Files
338
Pattern Hits
2026-07-14
Scan Date
0.21
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

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

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 21MEDIUM 9LOW 308

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 338 distinct pattern matches across 12 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.

Hyper-Verbose Identifiers234 hits · 250 pts
SeverityFileLineSnippetContext
LOWtest/test_point.py75 def test_point_from_string_tolerates_irrelevant_surroundings(self):CODE
LOWtest/test_point.py82 def test_point_from_string_rejects_overlong_input(self):CODE
LOWtest/test_point.py94 def test_point_format_altitude(self):CODE
LOWtest/test_point.py114 def test_point_from_single_number(self):CODE
LOWtest/test_point.py129 def test_point_from_generator(self):CODE
LOWtest/test_point.py134 def test_point_degrees_are_normalized(self):CODE
LOWtest/test_point.py172 def test_point_degrees_normalization_does_not_lose_precision(self):CODE
LOWtest/test_point.py250 def test_point_setitem_normalization(self):CODE
LOWtest/test_point.py268 def test_point_assign_coordinates(self):CODE
LOWtest/test_point.py295 def test_point_comparison_does_not_raise_exceptions(self):CODE
LOWtest/test_point.py304 def test_point_comparison_with_empty_values(self):CODE
LOWtest/test_point.py322 def test_point_comparison_respects_lists(self):CODE
LOWtest/test_point.py336 def test_point_comparison_ignores_strings(self):CODE
LOWtest/conftest.py65def _is_internet_access_allowed(config):CODE
LOWtest/conftest.py70def is_internet_access_allowed(request):CODE
LOWtest/conftest.py75def skip_if_internet_access_is_not_allowed(is_internet_access_allowed):CODE
LOWtest/conftest.py161def print_requests_monitor_report(requests_monitor):CODE
LOWtest/test_distance.py31 def test_should_have_length_when_only_given_length(self):CODE
LOWtest/test_distance.py35 def test_should_have_zero_distance_for_coincident_points(self):CODE
LOWtest/test_distance.py38 def test_should_have_nonzero_distance_for_distinct_points(self):CODE
LOWtest/test_distance.py46 def test_should_compute_distance_for_trip_between_poles(self):CODE
LOWtest/test_distance.py51 def test_should_compute_destination_for_trip_between_poles(self):CODE
LOWtest/test_distance.py57 def test_destination_bearing_east(self):CODE
LOWtest/test_distance.py74 def test_should_compute_distance_across_antimeridian(self):CODE
LOWtest/test_distance.py80 def test_should_compute_destination_across_antimeridian(self):CODE
LOWtest/test_distance.py87 def test_should_not_tolerate_nans(self):CODE
LOWtest/test_distance.py96 def test_should_compute_distance_for_multiple_points_pairwise(self):CODE
LOWtest/test_distance.py105 def test_should_raise_when_using_single_numbers_as_points(self):CODE
LOWtest/test_distance.py115 def test_should_tolerate_tuples_with_textual_numbers(self):CODE
LOWtest/test_distance.py120 def test_should_warn_for_mixed_up_lat_lon(self):CODE
LOWtest/test_distance.py130 def test_should_get_consistent_results_for_distance_calculations(self):CODE
LOWtest/test_distance.py140 def test_should_be_able_to_add_distances(self):CODE
LOWtest/test_distance.py144 def test_should_not_allow_adding_with_objects_that_arent_distances(self):CODE
LOWtest/test_distance.py150 def test_should_be_able_to_negate_distances(self):CODE
LOWtest/test_distance.py155 def test_should_be_able_to_subtract_distances(self):CODE
LOWtest/test_distance.py159 def test_should_be_able_to_multiply_distances_by_floats(self):CODE
LOWtest/test_distance.py163 def test_should_not_be_able_to_multiply_distances_by_distances(self):CODE
LOWtest/test_distance.py167 def test_should_not_be_able_to_divide_floats_by_distances(self):CODE
LOWtest/test_distance.py173 def test_should_be_able_to_divide_distances_by_distances(self):CODE
LOWtest/test_distance.py178 def test_should_be_able_to_floor_divide_distances_by_distances(self):CODE
LOWtest/test_distance.py183 def test_should_be_able_to_divide_distances_by_floats(self):CODE
LOWtest/test_distance.py188 def test_should_be_able_to_floor_divide_distances(self):CODE
LOWtest/test_distance.py193 def test_should_be_able_to_take_absolute_value_of_distances(self):CODE
LOWtest/test_distance.py196 def test_should_be_true_in_boolean_context_when_nonzero_length(self):CODE
LOWtest/test_distance.py199 def test_should_be_false_in_boolean_context_when_zero_length(self):CODE
LOWtest/test_distance.py207 def test_should_convert_to_kilometers(self):CODE
LOWtest/test_distance.py210 def test_should_convert_to_kilometers_with_abbreviation(self):CODE
LOWtest/test_distance.py213 def test_should_convert_to_meters(self):CODE
LOWtest/test_distance.py216 def test_should_convert_to_meters_with_abbreviation(self):CODE
LOWtest/test_distance.py219 def test_should_convert_to_miles(self):CODE
LOWtest/test_distance.py222 def test_should_convert_to_miles_with_abbreviation(self):CODE
LOWtest/test_distance.py225 def test_should_convert_to_feet(self):CODE
LOWtest/test_distance.py228 def test_should_convert_to_feet_with_abbreviation(self):CODE
LOWtest/test_distance.py231 def test_should_convert_to_nautical_miles(self):CODE
LOWtest/test_distance.py234 def test_should_convert_to_nautical_miles_with_abbrevation(self):CODE
LOWtest/test_distance.py237 def test_should_convert_from_meters(self):CODE
LOWtest/test_distance.py240 def test_should_convert_from_feet(self):CODE
LOWtest/test_distance.py243 def test_should_convert_from_miles(self):CODE
LOWtest/test_distance.py246 def test_should_convert_from_nautical_miles(self):CODE
LOWtest/test_distance.py254 def test_should_support_comparison_with_distance(self):CODE
174 more matches not shown…
Cross-File Repetition21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHgeopy/geocoders/banfrance.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/mapquest.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/geokeo.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/mapbox.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/pelias.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/google.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/maptiler.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/opencage.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/baidu.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/photon.py0return an address by location point. :param query: the coordinates for which you wish to obtain the closest human-readabSTRING
HIGHgeopy/geocoders/geocodio.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/mapquest.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/opencage.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/mapbox.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/geolake.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/baidu.py0returns location, (latitude, longitude) from json feed.STRING
HIGHgeopy/geocoders/geocodio.py0get the location, lat, lng from a single json place.STRING
HIGHgeopy/geocoders/google.py0get the location, lat, lng from a single json place.STRING
HIGHgeopy/geocoders/geokeo.py0get the location, lat, lng from a single json place.STRING
HIGHgeopy/geocoders/opencage.py0get the location, lat, lng from a single json place.STRING
HIGHgeopy/geocoders/baidu.py0get the location, lat, lng from a single json place.STRING
Excessive Try-Catch Wrapping16 hits · 20 pts
SeverityFileLineSnippetContext
LOWtest/conftest.py216 except Exception as e:CODE
LOWtest/conftest.py238 except Exception as e:CODE
LOWtest/conftest.py329 except Exception:CODE
LOWtest/proxy_server.py183 except Exception as e:CODE
LOWtest/proxy_server.py269 except Exception as e:CODE
LOWgeopy/adapters.py299 except Exception as error:CODE
LOWgeopy/adapters.py345 except Exception:CODE
LOWgeopy/adapters.py355 except Exception:CODE
LOWgeopy/adapters.py483 except Exception as error:CODE
LOWgeopy/adapters.py615 except Exception as error:CODE
MEDIUMgeopy/adapters.py342def _read_http_error_body(self, error):CODE
MEDIUMgeopy/adapters.py480def _request(self, url, *, timeout, headers):CODE
MEDIUMgeopy/adapters.py610def _normalize_exceptions(self):CODE
LOWgeopy/geocoders/base.py377 except Exception as error:CODE
LOWgeopy/geocoders/base.py386 except Exception as error:CODE
MEDIUMgeopy/geocoders/base.py371def fut():CODE
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOWtest/test_point.py181 # The issue is that there might be a loss in precision duringCOMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py61COMMENT
LOWdocs/conf.py81# List of patterns, relative to source directory, that match files andCOMMENT
LOWdocs/conf.py101pygments_style = "default"COMMENT
LOWdocs/conf.py121# Add any paths that contain custom themes here, relative to this directory.COMMENT
LOWdocs/conf.py141# relative to this directory. They are copied after the builtin static files,COMMENT
LOWdocs/conf.py161# Additional templates that should be rendered to pages, maps page names toCOMMENT
LOWdocs/conf.py181# html_show_copyright = TrueCOMMENT
LOWdocs/conf.py201 #'pointsize': '10pt',COMMENT
LOWdocs/conf.py221# If true, show page references after internal links.COMMENT
LOWdocs/conf.py261# Documents to append as an appendix to all manuals.COMMENT
LOWgeopy/distance.py121from geographiclib.geodesic import GeodesicCOMMENT
LOWgeopy/adapters.py401 '`pip install "geopy[requests]"`.'COMMENT
LOWgeopy/extra/rate_limiter.py101 #COMMENT
LOWgeopy/extra/__init__.py1# Extra modules are intentionally not exported here, to avoidCOMMENT
LOWgeopy/geocoders/base.py161 default_timeoutCOMMENT
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippetContext
LOWtest/proxy_server.py10CODE
LOWgeopy/point.py161CODE
LOWgeopy/adapters.py295CODE
LOWgeopy/adapters.py480CODE
LOWgeopy/adapters.py610CODE
LOWgeopy/geocoders/bing.py216CODE
LOWgeopy/geocoders/google.py413CODE
LOWgeopy/geocoders/nominatim.py135CODE
LOWgeopy/geocoders/here.py332CODE
LOWgeopy/geocoders/geokeo.py189CODE
LOWgeopy/geocoders/arcgis.py229CODE
LOWgeopy/geocoders/baidu.py210CODE
LOWgeopy/geocoders/base.py345CODE
Unused Imports13 hits · 12 pts
SeverityFileLineSnippetContext
LOWtest/adapters/each_adapter.py45CODE
LOWdocs/conf.py14CODE
LOWdocs/conf.py15CODE
LOWgeopy/__init__.py12CODE
LOWgeopy/__init__.py13CODE
LOWgeopy/__init__.py14CODE
LOWgeopy/__init__.py15CODE
LOWgeopy/__init__.py16CODE
LOWgeopy/__init__.py16CODE
LOWgeopy/__init__.py16CODE
LOWgeopy/geocoders/osm.py3CODE
LOWgeopy/geocoders/__init__.py228CODE
LOWgeopy/geocoders/googlev3.py3CODE
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtest/adapters/each_adapter.py250 # Create an ssl context which should not allow the negotiation withCOMMENT
MEDIUMtest/adapters/each_adapter.py267 # Create an ssl context which should not allow the negotiation withCOMMENT
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMgeopy/geocoders/base.py189# Create an object which `repr` returns 'DEFAULT_SENTINEL'. Sphinx (docs) usesCOMMENT
AI Structural Patterns9 hits · 9 pts
SeverityFileLineSnippetContext
LOWgeopy/geocoders/google.py38CODE
LOWgeopy/geocoders/google.py174CODE
LOWgeopy/geocoders/nominatim.py135CODE
LOWgeopy/geocoders/here.py49CODE
LOWgeopy/geocoders/here.py146CODE
LOWgeopy/geocoders/here.py468CODE
LOWgeopy/geocoders/arcgis.py33CODE
LOWgeopy/geocoders/mapbox.py21CODE
LOWgeopy/geocoders/ignfrance.py39CODE
Fake / Example Data5 hits · 8 pts
SeverityFileLineSnippetContext
LOWtest/geocoders/smartystreets.py9 dummy_id = 'DUMMY12345'CODE
LOWtest/geocoders/smartystreets.py10 dummy_token = 'DUMMY67890'CODE
LOWtest/geocoders/smartystreets.py14 auth_id=self.dummy_id,CODE
LOWtest/geocoders/smartystreets.py15 auth_token=self.dummy_token,CODE
LOWtest/geocoders/smartystreets.py22 geocoder = LiveAddress(auth_id=self.dummy_id, auth_token=self.dummy_token)CODE
AI Slop Vocabulary3 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMgeopy/geocoders/ignfrance.py334 # Clean tree from namespace to facilitate XML manipulationSTRING
LOWgeopy/geocoders/baidu.py215 # When there are no results, just return.COMMENT
LOW.github/workflows/ci.yml87 # GitHub Actions cannot just pass all secrets as env vars :(COMMENT
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippetContext
LOWgeopy/geocoders/__init__.py187 # Also don't forget to pull up the list of geocodersCOMMENT
LOWgeopy/geocoders/__init__.py187 # Also don't forget to pull up the list of geocodersCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgeopy/geocoders/ignfrance.py171 # Check if acceptable query typeCOMMENT