AI Slop Code RIsk Monitor

google/earthengine-api

Python and JavaScript bindings for calling the Earth Engine API.

9.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google/earthengine-api, a JavaScript project with 3,452 GitHub stars. SynthScan examined 110,530 lines of code across 344 source files, recording 641 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 9.7 (Moderate 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.

9.7
Adjusted Signal
9.7
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
3.5K
Stars
JavaScript
Language
110.5K
Lines of Code
344
Files
641
Pattern Hits
2026-10-12
Scan Date
0.33
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 22.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 483 finding(s).

Hallucinated Dependency & Supply Chain Risk 12.7/100 · LOW

Are imports declared and package/API names verified? 110 finding(s).

Agent Over-Engineering Ratio 22.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 439 finding(s).

PR Review Velocity Impact 43.0/100 · MEDIUM

Which changes need focused human review? 641 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

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

Severity Breakdown

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.

CRITICAL 2HIGH 112MEDIUM 12LOW 515

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 641 distinct pattern matches across 19 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.

Hyper-Verbose Identifiers370 hits · 348 pts
SeverityFileLineSnippetContext
LOWpython/ee/deserializer.py212 def decode_function_definition(CODE
LOWpython/ee/deserializer.py221 def decode_function_invocation(invoked: dict[str, Any]) -> Any:CODE
LOWpython/ee/batch.py25def _transform_operation_to_task(operation: dict[str, Any]) -> Task:CODE
LOWpython/ee/batch.py1287def _prepare_image_export_config(CODE
LOWpython/ee/batch.py1374def _prepare_map_export_config(CODE
LOWpython/ee/batch.py1420def _prepare_table_export_config(CODE
LOWpython/ee/batch.py1493def _prepare_video_export_config(CODE
LOWpython/ee/batch.py1537def _build_image_file_export_options(CODE
LOWpython/ee/batch.py1652def _build_table_file_export_options(CODE
LOWpython/ee/batch.py1706def _build_video_file_export_options(CODE
LOWpython/ee/batch.py1738def _prepare_classifier_export_config(CODE
LOWpython/ee/batch.py1791def _build_cloud_storage_destination(config: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/batch.py1812def _build_bigquery_destination(config: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/batch.py1874def _build_earth_engine_destination(config: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/batch.py1889def _build_feature_view_destination(config: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/batch.py1907def _get_rank_by_one_thing_rule(rule_str: str) -> dict[str, Any]:CODE
LOWpython/ee/batch.py2023def build_ingestion_time_parameters(CODE
LOWpython/ee/imagecollection.py314 def _apply_preparation_function(CODE
LOW⚡python/ee/_cloud_api_utils.py561def convert_operation_name_to_task_id(operation_name: str) -> str:CODE
LOW⚡python/ee/_cloud_api_utils.py567def convert_task_id_to_operation_name(project: str, task_id: str) -> str:CODE
LOW⚡python/ee/_cloud_api_utils.py572def convert_params_to_image_manifest(params: dict[str, Any]) -> dict[str, Any]:CODE
LOW⚡python/ee/_cloud_api_utils.py582def convert_params_to_table_manifest(params: dict[str, Any]) -> dict[str, Any]:CODE
LOW⚡python/ee/_cloud_api_utils.py592def convert_tilesets_to_one_platform_tilesets(tilesets: list[Any]) -> list[Any]:CODE
LOW⚡python/ee/_cloud_api_utils.py869def _convert_operation_state_to_task_state(state: str) -> str:CODE
LOW⚡python/ee/_cloud_api_utils.py878def _convert_task_state_to_operation_state(state: str) -> str:CODE
LOW⚡python/ee/_cloud_api_utils.py883def convert_to_operation_state(state: str) -> str:CODE
LOWpython/ee/_cloud_api_utils.py227def build_cloud_resource_from_document(CODE
LOWpython/ee/_cloud_api_utils.py342def _convert_msec_to_timestamp(time_msec: float) -> str:CODE
LOWpython/ee/_cloud_api_utils.py360def _convert_timestamp_to_msec(timestamp: str) -> int:CODE
LOWpython/ee/_cloud_api_utils.py381def _convert_bounding_box_to_geo_json(bbox: Sequence[float]) -> str:CODE
LOWpython/ee/_cloud_api_utils.py389def convert_get_list_params_to_list_assets_params(params) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py408def convert_list_assets_result_to_get_list_result(result) -> list[Any]:CODE
LOWpython/ee/_cloud_api_utils.py415def _convert_list_images_filter_params_to_list_assets_params(params) -> str:CODE
LOWpython/ee/_cloud_api_utils.py458def convert_list_images_params_to_list_assets_params(CODE
LOWpython/ee/_cloud_api_utils.py477def convert_list_images_result_to_get_list_result(result) -> list[Any]:CODE
LOWpython/ee/_cloud_api_utils.py484def _convert_asset_for_get_list_result(asset) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py495def _convert_image_for_get_list_result(asset) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py504def _convert_asset_type_for_get_list_result(asset_type: str) -> str:CODE
LOWpython/ee/_cloud_api_utils.py515def convert_asset_type_for_create_asset(asset_type: str) -> str:CODE
LOWpython/ee/_cloud_api_utils.py526def convert_asset_id_to_asset_name(asset_id: str) -> str:CODE
LOWpython/ee/_cloud_api_utils.py604def convert_sources_to_one_platform_sources(sources: list[Any]) -> list[Any]:CODE
LOWpython/ee/_cloud_api_utils.py623def encode_number_as_cloud_value(number: float) -> dict[str, float | str]:CODE
LOWpython/ee/_cloud_api_utils.py684def _convert_algorithm_arguments(CODE
LOWpython/ee/_cloud_api_utils.py689def _convert_algorithm_argument(arg: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py704def convert_to_image_file_format(format_str: str | None) -> str:CODE
LOWpython/ee/_cloud_api_utils.py733def convert_to_table_file_format(format_str: str | None) -> str:CODE
LOWpython/ee/_cloud_api_utils.py776def convert_to_visualization_options(params: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py839def _convert_csv_numbers_to_list(value: str) -> list[float]:CODE
LOWpython/ee/_cloud_api_utils.py846def convert_operation_to_task(operation: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py895def convert_iam_policy_to_acl(policy: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py915def convert_acl_to_iam_policy(acl: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/_cloud_api_utils.py932def convert_to_grid_dimensions(CODE
LOWpython/ee/serializer.py404 def increment_reference_count(value: Any) -> None:CODE
LOWpython/ee/serializer.py550 def _visit_all_values_in_expression(self, visitor: Any) -> None:CODE
LOWpython/ee/image.py243 def _apply_selection_and_scale(CODE
LOWpython/ee/image.py319 def _apply_spatial_transformations(CODE
LOWpython/ee/image.py402 def _extract_and_validate_transforms(obj: dict[str, Any]) -> dict[str, Any]:CODE
LOWpython/ee/data.py203def get_persistent_credentials() -> credentials_lib.Credentials:CODE
LOWpython/ee/data.py257def _install_cloud_api_resource() -> None:CODE
LOWpython/ee/data.py366def _translate_cloud_exception(CODE
310 more matches not shown…
Cross-File Repetition32 hits · 160 pts
SeverityFileLineSnippetContext
HIGHpython/ee/ee_number.py0casts the input value to an unsigned 8-bit integer.STRING
HIGHpython/ee/ee_array.py0casts the input value to an unsigned 8-bit integer.STRING
HIGHpython/ee/image.py0casts the input value to an unsigned 8-bit integer.STRING
HIGHpython/ee/ee_number.py0computes the smallest integer greater than or equal to the input.STRING
HIGHpython/ee/ee_array.py0computes the smallest integer greater than or equal to the input.STRING
HIGHpython/ee/image.py0computes the smallest integer greater than or equal to the input.STRING
HIGHpython/ee/ee_number.py0computes the inverse complementary error function of the input.STRING
HIGHpython/ee/ee_array.py0computes the inverse complementary error function of the input.STRING
HIGHpython/ee/image.py0computes the inverse complementary error function of the input.STRING
HIGHpython/ee/ee_number.py0computes euler's number e raised to the power of the input.STRING
HIGHpython/ee/image.py0computes euler's number e raised to the power of the input.STRING
HIGHpython/ee/ee_array.py0computes euler's number e raised to the power of the input.STRING
HIGHpython/ee/ee_number.py0computes the largest integer less than or equal to the input.STRING
HIGHpython/ee/ee_array.py0computes the largest integer less than or equal to the input.STRING
HIGHpython/ee/image.py0computes the largest integer less than or equal to the input.STRING
HIGHpython/ee/ee_number.py0returns 0 if the input is non-zero, and 1 otherwise.STRING
HIGHpython/ee/ee_array.py0returns 0 if the input is non-zero, and 1 otherwise.STRING
HIGHpython/ee/image.py0returns 0 if the input is non-zero, and 1 otherwise.STRING
HIGHpython/ee/ee_number.py0casts the input value to an unsigned 16-bit integer.STRING
HIGHpython/ee/ee_array.py0casts the input value to an unsigned 16-bit integer.STRING
HIGHpython/ee/image.py0casts the input value to an unsigned 16-bit integer.STRING
HIGHpython/ee/ee_number.py0casts the input value to an unsigned 32-bit integer.STRING
HIGHpython/ee/ee_array.py0casts the input value to an unsigned 32-bit integer.STRING
HIGHpython/ee/image.py0casts the input value to an unsigned 32-bit integer.STRING
HIGHpython/ee/tests/blob_test.py0verifies that untyped calls wrap the result in a computedobject.STRING
HIGHpython/ee/tests/computedobject_test.py0verifies that untyped calls wrap the result in a computedobject.STRING
HIGHpython/ee/tests/errormargin_test.py0verifies that untyped calls wrap the result in a computedobject.STRING
HIGHpython/ee/tests/filter_test.py0verifies that constructors understand valid parameters.STRING
HIGHpython/ee/tests/featurecollection_test.py0verifies that constructors understand valid parameters.STRING
HIGHpython/ee/tests/feature_test.py0verifies that constructors understand valid parameters.STRING
HIGHpython/ee/tests/image_test.py0verifies that constructors understand valid parameters.STRING
HIGHpython/ee/tests/imagecollection_test.py0verifies that constructors understand valid parameters.STRING
Cross-Language Confusion (JS/TS)24 hits · 128 pts
SeverityFileLineSnippetContext
HIGHjavascript/src/examples/Charts/ElevationHistogram.js20print(histogram);CODE
HIGHjavascript/src/examples/Charts/TemperatureDisparity.js98print(greatestDifChart);CODE
HIGHjavascript/src/examples/Charts/TemperatureDisparity.js99print(tempsByDifChart);CODE
HIGHjavascript/src/examples/Charts/ElevationProfile.js43print(chart);CODE
HIGHjavascript/src/examples/Charts/ColumnHistogram.js12print(histogram);CODE
HIGHjavascript/src/examples/Charts/ImageSpectra.js78print(bandChart);CODE
HIGHjavascript/src/examples/Charts/ImageSpectra.js79print(spectraChart);CODE
HIGHjavascript/src/examples/Charts/SeasonalTemperatures.js59print(extremeTempsChart);CODE
HIGH⚡javascript/src/examples/Charts/DoySeries.js21print(bands);CODE
HIGH⚡javascript/src/examples/Charts/DoySeries.js30print(years);CODE
HIGH⚡javascript/src/examples/Charts/DoySeries.js39print(regions);CODE
HIGH…ascript/src/examples/Charts/ElevationAndTemperature.js74print(chart);CODE
HIGH…ascript/src/examples/Charts/ImageTimeSeriesByRegion.js55print(tempTimeSeries);CODE
HIGHjavascript/src/examples/Image/ReduceRegion.js33print(max);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_03.js61print(histogram);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_03.js115print(histogram);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_04.js104print(histogram);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_04.js120print('reduction_results', reduction_results);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_04.js129print('transition_fc', transition_fc);CODE
HIGH…/tutorials/jrc_gsw/tutorial_global_surface_water_04.js145print(transition_summary_chart);CODE
HIGH…ascript/src/examples/Demos/Landsat8HarmonicModeling.js102print(ui.Chart.image.series(fittedHarmonic.select(['fitted','NDVI']), roi, ee.Reducer.mean(), 30)CODE
HIGHjavascript/src/examples/Demos/Classification.js510print('CART, explained', classifier.explain());CODE
HIGHjavascript/src/examples/Demos/Classification.js538print('Confusion Matrix', confusionMatrix);CODE
HIGHjavascript/src/examples/Demos/NASANEXClimateModeling.js56print(chart);CODE
Docstring Block Structure21 hits · 105 pts
SeverityFileLineSnippetContext
HIGHpython/ee/batch.py871Creates a task to export a FeatureCollection to a FeatureView. Args: collection: The feature collection tSTRING
HIGHpython/ee/daterange.py109Returns a DateRange that contains all the timespan of this and other. Args: other: The other DateRange to incSTRING
HIGHpython/ee/imagecollection.py191Get the URL for an animated video thumbnail of the given collection. Note: Videos can only be created when the imagSTRING
HIGHpython/ee/imagecollection.py224Get the URL for a "filmstrip" thumbnail of the given collection. Args: params: Parameters identical to getMapSTRING
HIGHpython/ee/imagecollection.py258Get the URL for a thumbnail of this collection. Args: valid_formats: A list of supported formats, the first oSTRING
HIGHpython/ee/geometry.py827Fixes the depth of the given coordinates. Checks that each element has the expected depth as all other elements STRING
HIGHpython/ee/collection.py594Iterates over a collection with an algorithm. Applies a user-supplied function to each element of a collection. TheSTRING
HIGHpython/ee/collection.py677Maps an algorithm over a collection. Args: algorithm: The operation to map over the images or features of theSTRING
HIGHpython/ee/image.py516Applies transformations and returns the thumbId. Args: params: Parameters identical to getMapId, plus, optionSTRING
HIGHpython/ee/image.py541Get a thumbnail URL for this image. Args: params: Parameters identical to getMapId, plus, optionally: STRING
HIGHpython/ee/function.py80Promotes arguments to their types based on the function's signature. Verifies that all required arguments are proviSTRING
HIGHpython/ee/function.py126Converts a list of positional arguments to a map of keyword arguments. Uses the function's signature for argument nSTRING
HIGHpython/ee/data.py346Executes a Cloud API call and translates errors to EEExceptions. Args: call: The Cloud API call, with all parametSTRING
HIGHpython/ee/data.py1047Fetches the map tile specified by (x, y, z). This method uses any credentials that were specified to ee.Initialize(STRING
HIGHpython/ee/data.py1360Get a Download ID. Args: params: An object containing table download options with the following possible vaSTRING
HIGHpython/ee/data.py2073Returns quota usage details for the asset root with the given ID. Usage notes: - The id *must* be a root folder STRING
HIGHpython/ee/oauth.py498Prompts the user to authorize access to Earth Engine via OAuth2. Args: cli_authorization_code: An optional authorSTRING
HIGHpython/ee/cli/utils.py331Implements glob-like '*' wildcard completion for cloud storage objects. Args: source_files: A list of one or moreSTRING
HIGHpython/ee/cli/utils.py372Retrieve a list of cloud storage filepaths from the given bucket. Args: bucket: The cloud storage bucket to be quSTRING
HIGHpython/ee/cli/commands.py230Decodes a date from a command line argument, returning msec since epoch". Args: string: See AssetSetCommand classSTRING
HIGHpython/ee/cli/commands.py284Decodes a general key-value property from a command-line argument. Args: string: The string must have the form naSTRING
Cross-Language Confusion23 hits · 79 pts
SeverityFileLineSnippetContext
HIGHpython/ee/customfunction.py34 null, their names will be generated deterministically, based onSTRING
HIGHpython/ee/customfunction.py85 arguments of the custom functions that use this variable. If null,STRING
HIGHpython/ee/computedobject.py192 # We can't just check for varName != null, since we allow thatCOMMENT
HIGHpython/ee/reducer.py894 beta: Residual error outlier margin. If null, a default value will beSTRING
HIGHpython/ee/feature.py507 will have edges as straight lines in the specified projection. If null,STRING
HIGHpython/ee/join.py23 a_filter = ee.Filter.equals(leftField='label', rightField='label')STRING
HIGH⚡python/ee/imagecollection.py536 single slice (length 1) along this axis. If null, defaults to 0. TheSTRING
HIGH⚡python/ee/imagecollection.py541 non-spatial dimension. If null, slices will start at index 0 for allSTRING
HIGH⚡python/ee/imagecollection.py544 individual element within the list may be null, which defaults to 0 forSTRING
HIGH⚡python/ee/imagecollection.py548 non-spatial dimension. If null, slices will extend to the end of eachSTRING
HIGH⚡python/ee/imagecollection.py552 element within the list may be null, which also defaults to the lengthSTRING
HIGHpython/ee/dictionary.py220 given key. If the algorithm returns null, the key is dropped.STRING
HIGH⚡python/ee/image.py2565 non-spatial dimension. If null, slices will start at index 0 for allSTRING
HIGH⚡python/ee/image.py2568 individual element within the list may be null, which defaults to 0 forSTRING
HIGH⚡python/ee/image.py2572 non-spatial dimension. If null, slices will extend to the end of eachSTRING
HIGH⚡python/ee/image.py2576 element within the list may be null, which also defaults to the lengthSTRING
HIGHpython/ee/image.py2142 will have edges as straight lines in the specified projection. If null,STRING
HIGHpython/ee/image.py3506 labelProperty: If non-null, the value of the first band will be saved asSTRING
HIGHpython/ee/pixeltype.py67 'float' or 'double', this can be null, signifying negative infinity.STRING
HIGHpython/ee/pixeltype.py69 'float' or 'double', this can be null, signifying positive infinity.STRING
HIGHpython/ee/data.py448 calls the hook function with all resulting profile IDs. If hook is null,STRING
HIGHpython/ee/tests/filter_test.py531 expression = ee.Filter.equals(CODE
HIGHpython/ee/tests/filter_test.py537 expression = ee.Filter.equals(CODE
Unused Imports50 hits · 50 pts
SeverityFileLineSnippetContext
LOWpython/ee/customfunction.py3CODE
LOWpython/ee/ee_number.py2CODE
LOWpython/ee/computedobject.py3CODE
LOWpython/ee/_arg_types.py2CODE
LOWpython/ee/classifier.py2CODE
LOWpython/ee/confusionmatrix.py2CODE
LOWpython/ee/kernel.py2CODE
LOWpython/ee/featurecollection.py6CODE
LOWpython/ee/deprecation.py3CODE
LOWpython/ee/batch.py10CODE
LOWpython/ee/terrain.py2CODE
LOWpython/ee/__init__.py8CODE
LOWpython/ee/__init__.py10CODE
LOWpython/ee/__init__.py12CODE
LOWpython/ee/__init__.py19CODE
LOWpython/ee/__init__.py22CODE
LOWpython/ee/__init__.py27CODE
LOWpython/ee/__init__.py29CODE
LOWpython/ee/__init__.py30CODE
LOWpython/ee/__init__.py63CODE
LOWpython/ee/reducer.py2CODE
LOWpython/ee/ee_date.py2CODE
LOWpython/ee/feature.py2CODE
LOWpython/ee/join.py3CODE
LOWpython/ee/element.py6CODE
LOWpython/ee/daterange.py2CODE
LOWpython/ee/imagecollection.py3CODE
LOWpython/ee/ee_string.py2CODE
LOWpython/ee/_state.py3CODE
LOWpython/ee/geometry.py3CODE
LOWpython/ee/errormargin.py2CODE
LOWpython/ee/ee_array.py2CODE
LOWpython/ee/collection.py6CODE
LOWpython/ee/filter.py12CODE
LOWpython/ee/ee_list.py2CODE
LOWpython/ee/dictionary.py2CODE
LOWpython/ee/projection.py2CODE
LOWpython/ee/apifunction.py16CODE
LOWpython/ee/image.py7CODE
LOWpython/ee/blob.py2CODE
LOWpython/ee/clusterer.py2CODE
LOWpython/ee/pixeltype.py2CODE
LOWpython/ee/data.py6CODE
LOWpython/ee/tests/imagecollection_test.py6CODE
LOWpython/ee/cli/utils.py17CODE
LOWpython/ee/cli/commands.py21CODE
LOWdemos/wmts/app.py6CODE
LOWdemos/wmts/app.py10CODE
LOWdemos/wmts/app.py12CODE
LOWdemos/wmts/app.py16CODE
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHpython/ee/mapclient.py399except KeyError:CODE
HIGHpython/ee/_cloud_api_utils.py218except TypeError:CODE
HIGHpython/ee/image.py1384except ee_exception.EEException:CODE
HIGHpython/ee/data.py216except OSError:CODE
HIGHpython/ee/data.py230except google.auth.exceptions.DefaultCredentialsError:CODE
HIGHpython/ee/_helpers.py62except ValueError:CODE
HIGHpython/ee/oauth.py40except ImportError:CODE
HIGHpython/ee/cli/commands.py45except ImportError:CODE
HIGHpython/ee/cli/commands.py47except TypeError:CODE
Deep Nesting35 hits · 32 pts
SeverityFileLineSnippetContext
LOWpython/ee/mapclient.py417CODE
LOWpython/ee/customfunction.py130CODE
LOWpython/ee/customfunction.py155CODE
LOWpython/ee/customfunction.py160CODE
LOWpython/ee/deserializer.py55CODE
LOWpython/ee/deserializer.py169CODE
LOWpython/ee/deserializer.py187CODE
LOWpython/ee/ee_types.py26CODE
LOWpython/ee/featurecollection.py32CODE
LOWpython/ee/batch.py1537CODE
LOWpython/ee/batch.py2067CODE
LOWpython/ee/batch.py132CODE
LOWpython/ee/__init__.py316CODE
LOWpython/ee/__init__.py478CODE
LOWpython/ee/__init__.py481CODE
LOWpython/ee/ee_date.py30CODE
LOWpython/ee/feature.py25CODE
LOWpython/ee/imagecollection.py29CODE
LOWpython/ee/_cloud_api_utils.py262CODE
LOWpython/ee/_cloud_api_utils.py704CODE
LOWpython/ee/_cloud_api_utils.py776CODE
LOWpython/ee/serializer.py110CODE
LOWpython/ee/serializer.py184CODE
LOWpython/ee/serializer.py455CODE
LOWpython/ee/serializer.py560CODE
LOWpython/ee/image.py52CODE
LOWpython/ee/image.py155CODE
LOWpython/ee/image.py243CODE
LOWpython/ee/image.py3950CODE
LOWpython/ee/data.py2298CODE
LOWpython/ee/_helpers.py120CODE
LOWpython/ee/oauth.py490CODE
LOWpython/ee/cli/commands.py283CODE
LOWpython/ee/cli/commands.py600CODE
LOWpython/ee/cli/commands.py1182CODE
Self-Referential Comments9 hits · 25 pts
SeverityFileLineSnippetContext
MEDIUMpython/ee/feature.py123 # Create a collection containing this one feature and render it.COMMENT
MEDIUMpython/ee/apifunction.py218 # Create a new function so we can attach properties to it.COMMENT
MEDIUMpython/ee/clusterer.py17 # Define a region in which to generate a sample of the input.STRING
MEDIUMpython/examples/py/ImageCollection/clipped_composite.py14# Create a Landsat 7, median-pixel composite for Spring of 2000.COMMENT
MEDIUM…thon/examples/py/ImageCollection/filtered_composite.py20# Create a Landsat 7 composite for Spring of 2000, and filter byCOMMENT
MEDIUMdemos/trendy-lights/server.py230# Create the Jinja templating system we use to dynamically generate HTML. See:COMMENT
MEDIUMdemos/wmts/app.py124# The following functions {_get_map_id_threadsafe, _get_dd_json_threadsafe}COMMENT
MEDIUMdemos/export-to-drive/server.py387 # Create a Drive helper to access the user's Google Drive.COMMENT
MEDIUMdemos/export-to-drive/build.sh26# Create the lib directory if it doesn't exist.COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALjavascript/src/layers/binaryoverlay.js111 ee.layers.AbstractTile.prototype.finishLoad.call(this);CODE
CRITICALjavascript/src/layers/imageoverlay.js109 ee.layers.AbstractTile.prototype.finishLoad.call(this);CODE
Over-Commented Block18 hits · 18 pts
SeverityFileLineSnippetContext
LOWjavascript/src/apiclient.js1281 * @privateCOMMENT
LOWjavascript/src/customfunction.js241 // that unbound variables are not passed in server calls.COMMENT
LOWjavascript/src/geometry.js41 * @constructorCOMMENT
LOWjavascript/src/eeapiclient/domain_object.ts481 // defaults = "mutable", we have to return a mutable object, and repeatedCOMMENT
LOWjavascript/src/examples/Image/LandcoverCleanup.js1// Morphological processing of land cover. This exampleCOMMENT
LOWjavascript/src/examples/Image/Hillshade.js1// Hillshade example. This is a demonstration of computingCOMMENT
LOWjavascript/src/examples/Image/ReduceRegion.js1// Image.reduceRegion exampleCOMMENT
LOW…t/src/examples/CloudMasking/Sentinel2CloudAndShadow.js1// This example demonstrates the use of theCOMMENT
LOW…/tutorials/jrc_gsw/tutorial_global_surface_water_03.js61print(histogram);COMMENT
LOW…/tutorials/jrc_gsw/tutorial_global_surface_water_02.js41//////////////////////////////////////////////////////////////COMMENT
LOW…/tutorials/jrc_gsw/tutorial_global_surface_water_04.js141 title: 'Summary of transition class areas',COMMENT
LOWjavascript/src/examples/Demos/MODISHarmonicModeling.js1// The purpose of this script is to fit a first-orderCOMMENT
LOWdemos/trendy-lights/build.sh1#!/bin/bashCOMMENT
LOWdemos/wmts/app.py121 return flask.Response(ElementTree.tostring(xml), mimetype="text/xml")COMMENT
LOWdemos/wmts/app.py141#COMMENT
LOWdemos/interactive-classifier/build.sh1#!/bin/bashCOMMENT
LOWdemos/server-auth-nodejs/app.yaml1# Copyright 2020 Google LLCCOMMENT
LOWdemos/server-auth-python/build.sh1#!/bin/bashCOMMENT
AI Structural Patterns21 hits · 16 pts
SeverityFileLineSnippetContext
LOWpython/ee/classifier.py58CODE
LOWpython/ee/classifier.py228CODE
LOWpython/ee/batch.py300CODE
LOWpython/ee/batch.py376CODE
LOWpython/ee/batch.py468CODE
LOWpython/ee/batch.py568CODE
LOWpython/ee/batch.py1042CODE
LOWpython/ee/batch.py1121CODE
LOWpython/ee/model.py65CODE
LOWpython/ee/model.py166CODE
LOWpython/ee/_cloud_api_utils.py147CODE
LOWpython/ee/_cloud_api_utils.py492CODE
LOWpython/ee/_cloud_api_utils.py501CODE
LOWpython/ee/collection.py852CODE
LOWpython/ee/image.py3466CODE
LOWpython/ee/image.py3803CODE
LOWpython/ee/image.py4259CODE
LOWpython/ee/image.py4583CODE
LOWpython/ee/clusterer.py185CODE
LOWpython/ee/clusterer.py289CODE
LOWpython/ee/data.py523CODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdemos/trendy-lights/index.html20 <script src="https://maps.googleapis.com/maps/api/js?v=3&key=your-api-key-here"></script>CODE
HIGHdemos/cloud-functions/static/index.html26 <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"CODE
HIGHdemos/server-auth-python/index.html35 <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"CODE
Fake / Example Data8 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡python/ee/tests/_helpers_test.py39 key_data = {'client_email': 'foo@bar.com'}CODE
LOW⚡python/ee/tests/_helpers_test.py48 ee.ServiceAccountCredentials(email='foo@bar.com', key_data='pem_key_data')CODE
LOW⚡python/ee/tests/_helpers_test.py51 mock_credentials.call_args[0][1], 'foo@bar.com'CODE
LOW⚡python/ee/tests/_helpers_test.py60 ee.ServiceAccountCredentials(email='foo@bar.com', key_file='foo.pem')CODE
LOW⚡python/ee/tests/_helpers_test.py63 mock_credentials.call_args[0][1], 'foo@bar.com'CODE
LOWpython/ee/tests/data_test.py1551 response._content = '{"data": "dummy_data"}' # pyrefly: ignore[bad-assignment]CODE
LOWpython/ee/tests/oauth_test.py118 token='dummy_token',CODE
LOWpython/ee/tests/oauth_test.py137 token='dummy_token',CODE
AI Slop Vocabulary6 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/ee/deserializer.py145 # information has been lost at this point, so we just use ComputedObject.COMMENT
MEDIUMpython/ee/reducer.py875 """Returns a robust linear regression reducer.STRING
LOWpython/ee/image.py282 # If given a Geometry object, just use the client's Geometry.COMMENT
MEDIUMpython/ee/tests/deserializer_test.py16 """Verifies a round trip of a comprehensive serialization case."""STRING
MEDIUMpython/ee/tests/deserializer_test.py29 """Verifies a round trip of a comprehensive serialization case."""STRING
LOWpython/ee/cli/utils.py103 # preferred and we should eventually migrate to just use thatCOMMENT
Excessive Try-Catch Wrapping6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpython/ee/mapclient.py431 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/ee/deprecation.py139 except Exception as e: # pylint: disable=broad-exceptCODE
LOWpython/ee/batch.py2179 except Exception:CODE
LOWpython/ee/batch.py2182 except Exception as e:CODE
LOWdemos/export-to-drive/server.py170 except Exception as e: # pylint: disable=broad-exceptCODE
LOWdemos/export-to-drive/server.py285 except Exception as e: # pylint: disable=broad-exceptCODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdemos/wmts/config.py18# Set this to true to turn on Cloud Storage Layers for table assets.COMMENT
LOWdemos/wmts/app.py272 # Check if the table resource is available in Cloud Storage LayersCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpython/ee/_state.py35 def set_default(self, new_default: int | str | None) -> None:CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpython/ee/tests/_utils_test.py58 def test_function(arg1=None, arg2_=None):CODE