AI Slop Code RIsk Monitor

datalab-to/surya

OCR, layout analysis, reading order, table recognition in 90+ languages

36.8 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for datalab-to/surya, a Python project with 21,484 GitHub stars. SynthScan examined 15,600 lines of code across 130 source files, recording 272 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 36.8 (High 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.

36.8
Adjusted Signal
36.8
Raw Pattern Score
100%
Time Factor
2026-09-11
Last Push
21.5K
Stars
Python
Language
15.6K
Lines of Code
130
Files
272
Pattern Hits
2026-10-12
Scan Date
0.05
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 25.1/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 18.0/100 · LOW

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

Agent Over-Engineering Ratio 77.8/100 · CRITICAL

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

PR Review Velocity Impact 78.2/100 · CRITICAL

Which changes need focused human review? 272 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

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.

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 0HIGH 7MEDIUM 84LOW 181

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

Decorative Section Separators79 hits · 346 pts
SeverityFileLineSnippetContext
MEDIUM⚡surya/common/rfdetr/util/misc.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/misc.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/misc.py9# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/misc.py13# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/misc.py16# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/box_ops.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/box_ops.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/box_ops.py9# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/box_ops.py13# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/box_ops.py16# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/__init__.py9# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/__init__.py13# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/util/__init__.py16# ------------------------------------------------------------------------COMMENT
MEDIUMsurya/common/rfdetr/util/logger.py1# ------------------------------------------------------------------------COMMENT
MEDIUMsurya/common/rfdetr/util/logger.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/position_encoding.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/position_encoding.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/position_encoding.py8# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/position_encoding.py11# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/position_encoding.py14# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/__init__.py8# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/__init__.py11# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/__init__.py14# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/transformer.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/transformer.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/transformer.py8# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/transformer.py11# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/transformer.py14# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py8# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py11# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py14# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/lwdetr.py17# ------------------------------------------------------------------------COMMENT
MEDIUMsurya/common/rfdetr/models/ops/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUMsurya/common/rfdetr/models/ops/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py8# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py11# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py13# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/functions/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/functions/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/functions/__init__.py8# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/functions/__init__.py11# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/functions/__init__.py13# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py8# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py11# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py13# ------------------------------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/modules/__init__.py1# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/modules/__init__.py5# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/modules/__init__.py9# ------------------------------------------------------------------------COMMENT
MEDIUM⚡surya/common/rfdetr/models/ops/modules/__init__.py11# ------------------------------------------------------------------------COMMENT
MEDIUM⚡…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py1# ------------------------------------------------------------------------COMMENT
19 more matches not shown…
Unused Imports59 hits · 59 pts
SeverityFileLineSnippetContext
LOWsurya/layout/__init__.py1CODE
LOWsurya/ocr_error/server.py6CODE
LOWsurya/ocr_error/config.py3CODE
LOWsurya/ocr_error/client.py3CODE
LOWsurya/common/rfdetr_torch.py12CODE
LOWsurya/common/blank.py14CODE
LOWsurya/common/order/predictor.py8CODE
LOWsurya/common/order/__init__.py1CODE
LOWsurya/common/order/__init__.py1CODE
LOWsurya/common/order/order_ar.py11CODE
LOWsurya/common/batch_service/serialize.py3CODE
LOWsurya/common/batch_service/server.py15CODE
LOWsurya/common/batch_service/config.py8CODE
LOWsurya/common/batch_service/client.py10CODE
LOWsurya/common/batch_service/__init__.py14CODE
LOWsurya/common/batch_service/__init__.py15CODE
LOWsurya/common/batch_service/__init__.py16CODE
LOWsurya/common/batch_service/__init__.py19CODE
LOWsurya/common/batch_service/__init__.py20CODE
LOWsurya/common/rfdetr/predictor.py10CODE
LOWsurya/common/rfdetr/__init__.py8CODE
LOWsurya/common/rfdetr/models/__init__.py16CODE
LOWsurya/common/rfdetr/models/__init__.py16CODE
LOW…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py18CODE
LOW…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py18CODE
LOW…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py18CODE
LOWsurya/common/rfdetr/models/ops/functions/__init__.py18CODE
LOW…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py18CODE
LOW…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py18CODE
LOW…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py18CODE
LOWsurya/common/rfdetr/models/ops/modules/__init__.py13CODE
LOWsurya/common/rfdetr/models/backbone/__init__.py10CODE
LOWsurya/common/rfdetr/models/backbone/__init__.py10CODE
LOWsurya/common/rfdetr/models/backbone/__init__.py15CODE
LOWsurya/scripts/streamlit_app.py4CODE
LOWsurya/scripts/screenshot_app.py10CODE
LOWsurya/inference/__init__.py9CODE
LOWsurya/inference/parsers.py3CODE
LOWsurya/inference/prompts.py4CODE
LOWsurya/inference/prompts.py5CODE
LOWsurya/inference/prompts.py8CODE
LOWsurya/inference/prompts.py9CODE
LOWsurya/inference/backends/vllm.py3CODE
LOWsurya/inference/backends/__init__.py1CODE
LOWsurya/inference/backends/__init__.py2CODE
LOWsurya/inference/backends/spawn.py7CODE
LOWsurya/inference/backends/openai_client.py7CODE
LOWsurya/inference/backends/base.py1CODE
LOWsurya/inference/backends/llamacpp.py8CODE
LOWsurya/fast_layout/server.py8CODE
LOWsurya/fast_layout/config.py3CODE
LOWsurya/fast_layout/client.py3CODE
LOWsurya/fast_layout/__init__.py14CODE
LOWsurya/recognition/__init__.py7CODE
LOWsurya/table_rec/__init__.py10CODE
LOWsurya/detection/server.py8CODE
LOWsurya/detection/config.py3CODE
LOWsurya/detection/client.py3CODE
LOWsurya/detection/model/encoderdecoder.py12CODE
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsurya/common/batch_service/server.py190except KeyboardInterrupt:CODE
HIGHsurya/common/batch_service/client.py114except Exception:CODE
HIGHsurya/inference/__init__.py40except Exception:CODE
HIGHsurya/inference/backends/vllm.py114except SpawnError:CODE
HIGHsurya/inference/backends/spawn.py135except ProcessLookupError:CODE
HIGHsurya/inference/backends/spawn.py117except Exception:CODE
HIGHtests/conftest.py29except Exception:CODE
Excessive Try-Catch Wrapping32 hits · 33 pts
SeverityFileLineSnippetContext
LOWsurya/layout/__init__.py88 except Exception as e:CODE
LOWsurya/ocr_error/loader.py25 except Exception as e: # noqa: BLE001 - retried belowCODE
LOWsurya/common/rfdetr_torch.py54 except Exception:CODE
LOWsurya/common/s3.py61 except Exception as e:CODE
LOWsurya/common/s3.py80 except Exception:CODE
LOWsurya/common/s3.py168 except Exception as e:CODE
LOWsurya/common/order/predictor.py116 except Exception:CODE
LOWsurya/common/batch_service/server.py116 except Exception as e: # never let the worker thread dieCODE
LOWsurya/common/batch_service/server.py160 except Exception as e:CODE
LOWsurya/common/batch_service/client.py114 except Exception:CODE
LOWsurya/scripts/screenshot_app.py76 except Exception:CODE
LOWsurya/scripts/screenshot_app.py141 except Exception as e:CODE
LOWsurya/scripts/screenshot_app.py161 except Exception as e:CODE
LOWsurya/scripts/screenshot_app.py182 except Exception as e:CODE
LOWsurya/scripts/screenshot_app.py216 except Exception as e:CODE
LOWsurya/inference/__init__.py40 except Exception:CODE
LOWsurya/inference/__init__.py58 except Exception:CODE
LOWsurya/inference/backends/spawn.py54 except Exception:CODE
LOWsurya/inference/backends/spawn.py79 except Exception:CODE
LOWsurya/inference/backends/spawn.py104 except Exception:CODE
LOWsurya/inference/backends/spawn.py117 except Exception:CODE
LOWsurya/inference/backends/spawn.py137 except Exception as e:CODE
LOWsurya/inference/backends/spawn.py158 except Exception as e:CODE
LOWsurya/inference/backends/spawn.py170 except Exception as e:CODE
LOWsurya/inference/backends/openai_client.py138 except Exception as e:CODE
LOWsurya/recognition/__init__.py300 except Exception:CODE
LOWsurya/table_rec/__init__.py105 except Exception as e:CODE
LOWsurya/debug/draw.py56 except Exception as e:CODE
MEDIUMsurya/debug/draw.py57 print(f"Error drawing rectangle at {box_position}: {e}")CODE
LOWtests/conftest.py24 except Exception as exc: # SpawnError, binary missing, port issues, etc.CODE
LOWtests/conftest.py29 except Exception:CODE
LOWtests/test_fast_layout_server.py19 except Exception as exc: # model download / load unavailableCODE
Hyper-Verbose Identifiers27 hits · 27 pts
SeverityFileLineSnippetContext
LOWsurya/ocr_error/__init__.py62 def batch_ocr_error_detection(CODE
LOWsurya/common/pretrained.py9 def _check_and_adjust_attn_implementation(CODE
LOWsurya/common/compat.py6def verify_out_features_out_indices(CODE
LOWsurya/common/compat.py78def _align_output_features_output_indices(CODE
LOWsurya/common/compat.py109def get_aligned_output_features_output_indices(CODE
LOWsurya/common/compat.py146def find_pruneable_heads_and_indices(CODE
LOWsurya/common/batch_service/config.py31def service_config_from_settings(CODE
LOWsurya/common/rfdetr/util/misc.py67 def synchronize_between_processes(self) -> None:CODE
LOWsurya/common/rfdetr/util/misc.py209 def synchronize_between_processes(self) -> None:CODE
LOWsurya/common/rfdetr/util/misc.py333def nested_tensor_from_tensor_list(tensor_list: List[Tensor]) -> NestedTensor:CODE
LOWsurya/common/rfdetr/util/misc.py361def _onnx_nested_tensor_from_tensor_list(tensor_list: List[Tensor]) -> NestedTensor:CODE
LOWsurya/common/rfdetr/util/misc.py409def is_dist_avail_and_initialized():CODE
LOWsurya/common/rfdetr/models/transformer.py45def gen_sineembed_for_position(pos_tensor, dim=128):CODE
LOWsurya/common/rfdetr/models/transformer.py74def gen_encoder_output_proposals(memory, memory_padding_mask, spatial_shapes, unsigmoid=True):CODE
LOWsurya/common/rfdetr/models/lwdetr.py114 def reinitialize_detection_head(self, num_classes):CODE
LOWsurya/common/rfdetr/models/lwdetr.py295 def _get_backbone_encoder_layers(self) -> Optional[nn.ModuleList]:CODE
LOW…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py24def ms_deform_attn_core_pytorch(value, value_spatial_shapes, sampling_locations, attention_weights):CODE
LOWsurya/common/rfdetr/models/backbone/dinov2.py152 def make_new_interpolated_pos_encoding(position_embeddings, patch_size, height, width):CODE
LOWsurya/common/rfdetr/models/backbone/dinov2.py193 def new_interpolate_pos_encoding(self_mod, embeddings, height, width):CODE
LOWsurya/inference/backends/llamacpp.py33def _resolve_llama_server_binary() -> str:CODE
LOWtests/test_fast_layout_server.py23def test_engine_run_batch_orders_boxes(engine, test_image):CODE
LOWtests/test_fast_layout_server.py41def test_continuous_batching_coalesces(engine, test_image, monkeypatch):CODE
LOWtests/test_fast_layout_server.py91def test_merge_contained_same_label():CODE
LOWtests/test_fast_layout_server.py103def test_merge_keeps_cross_label():CODE
LOWtests/test_fast_layout_server.py114def test_merge_expands_to_union_on_near_overlap():CODE
LOWtests/test_detection.py16def test_detection_model_loads_all_checkpoint_weights():CODE
LOWtests/test_layout.py1def test_layout_returns_blocks(layout_predictor, test_image):CODE
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOWsurya/ocr_error/model/config.py16CODE
LOWsurya/common/rfdetr/models/transformer.py134CODE
LOWsurya/common/rfdetr/models/transformer.py376CODE
LOWsurya/common/rfdetr/models/transformer.py490CODE
LOWsurya/common/rfdetr/models/transformer.py533CODE
LOWsurya/common/rfdetr/models/transformer.py588CODE
LOW…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py152CODE
LOW…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py541CODE
LOW…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py131CODE
LOWsurya/common/rfdetr/models/backbone/dinov2.py55CODE
LOWsurya/common/rfdetr/models/backbone/backbone.py37CODE
LOWsurya/common/rfdetr/models/backbone/projector.py122CODE
LOWsurya/detection/heatmap.py165CODE
LOWsurya/detection/processor.py83CODE
LOWsurya/detection/processor.py175CODE
LOWsurya/detection/processor.py221CODE
LOWsurya/detection/model/config.py12CODE
LOWsurya/detection/model/encoderdecoder.py59CODE
LOWsurya/detection/model/encoderdecoder.py237CODE
LOWsurya/detection/model/encoderdecoder.py284CODE
LOWsurya/detection/model/encoderdecoder.py382CODE
Over-Commented Block18 hits · 18 pts
SeverityFileLineSnippetContext
LOWsurya/__init__.py1import osCOMMENT
LOWsurya/settings.py61 # override.COMMENT
LOWsurya/settings.py161 FAST_ORDER_MODEL_CHECKPOINT: str = "hf://datalab-to/surya_layout2/order"COMMENT
LOWsurya/common/rfdetr/util/misc.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/util/box_ops.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/util/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/position_encoding.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/transformer.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/lwdetr.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/ops/__init__.py1# ------------------------------------------------------------------------COMMENT
LOW…mon/rfdetr/models/ops/functions/ms_deform_attn_func.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/ops/functions/__init__.py1# ------------------------------------------------------------------------COMMENT
LOW…rya/common/rfdetr/models/ops/modules/ms_deform_attn.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/ops/modules/__init__.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/backbone/backbone.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/common/rfdetr/models/backbone/projector.py1# ------------------------------------------------------------------------COMMENT
LOWsurya/detection/processor.py1# coding=utf-8COMMENT
Deep Nesting15 hits · 15 pts
SeverityFileLineSnippetContext
LOWsurya/layout/__init__.py39CODE
LOWsurya/common/polygon.py83CODE
LOWsurya/common/s3.py31CODE
LOWsurya/common/batch_service/server.py102CODE
LOWsurya/common/rfdetr/util/misc.py216CODE
LOW…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py962CODE
LOW…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py1083CODE
LOWsurya/common/rfdetr/models/backbone/projector.py69CODE
LOWsurya/common/rfdetr/models/backbone/projector.py170CODE
LOWsurya/inference/backends/spawn.py177CODE
LOWsurya/inference/backends/spawn.py321CODE
LOWsurya/inference/backends/openai_client.py70CODE
LOWsurya/table_rec/__init__.py70CODE
LOWsurya/detection/__init__.py98CODE
LOWsurya/detection/model/encoderdecoder.py695CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMsurya/common/rfdetr/util/misc.py521 # Create the temp file in the destination directory so os.replace stays on the same filesystem (atomic).COMMENT
MEDIUMsurya/common/rfdetr/models/backbone/dinov2.py77 # Create the encoderCOMMENT
MEDIUMsurya/common/rfdetr/models/backbone/dinov2.py190 # Create a new Parameter with the new sizeCOMMENT
Modern Structural Boilerplate7 hits · 6 pts
SeverityFileLineSnippetContext
LOWsurya/common/order/__init__.py3__all__ = ["OrderPredictor", "load_order_predictor"]CODE
LOWsurya/common/rfdetr/__init__.py10__all__ = ["RFDetrDetector"]CODE
LOWsurya/common/rfdetr/models/lwdetr.py315 def update_drop_path(self, drop_path_rate: float, vit_encoder_num_layers: int) -> None:CODE
LOW…on/rfdetr/models/backbone/dinov2_with_windowed_attn.py1182__all__ = [STRING
LOWsurya/common/rfdetr/models/backbone/backbone.py31__all__ = ["Backbone"]CODE
LOWsurya/scripts/build_gguf.py52_PATCH_VOCAB_ANCHOR = """ def _set_vocab_gpt2(self) -> None:STRING
LOWsurya/scripts/build_gguf.py63_PATCH_VOCAB_REPLACEMENT = ''' def _set_vocab_gpt2(self) -> None:STRING
Fake / Example Data3 hits · 3 pts
SeverityFileLineSnippetContext
LOWsurya/scripts/templates/surya_screenshot.html151 <div class="panel-body"><div class="ocr" id="ocr"><div class="placeholder">Load a file, scroll to a page, then runCODE
LOWsurya/scripts/templates/surya_screenshot.html206 $("ocr").innerHTML = '<div class="placeholder">Run full-page OCR to see the extracted content.</div>';CODE
LOWsurya/scripts/templates/surya_screenshot.html264 ocr.innerHTML = data.html || '<div class="placeholder">No content detected on this page.</div>';CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMsurya/inference/backends/spawn.py161CODE