Repository Analysis

koush/scrypted

Scrypted is a high performance video integration and automation platform

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of koush/scrypted, a TypeScript project with 5,795 GitHub stars. SynthScan v2.0 examined 216,067 lines of code across 1078 source files, recording 434 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 2.5 places this repository in the Likely human-written 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).

2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
5.8K
Stars
TypeScript
Language
216.1K
Lines of Code
1.1K
Files
434
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 8HIGH 1MEDIUM 24LOW 401

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 434 distinct pattern matches across 13 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.

Excessive Try-Catch Wrapping111 hits · 108 pts
SeverityFileLineSnippetContext
LOWplugins/tensorflow-lite/src/tflite/__init__.py17except Exception as e:CODE
LOWplugins/tensorflow-lite/src/tflite/__init__.py83 except Exception as e:CODE
LOWplugins/tensorflow-lite/src/tflite/__init__.py161 except Exception as e:CODE
LOWplugins/tensorflow-lite/src/tflite/__init__.py168 except Exception as e:CODE
LOWplugins/rknn/src/rknn/text_recognition.py262 except Exception as e:CODE
LOWplugins/openvino/src/ov/__init__.py206 except Exception as e:CODE
LOWplugins/openvino/src/common/yolov9_seg.py89 except Exception as e:CODE
LOWplugins/openvino/src/predict/custom_detect.py22 except Exception:CODE
LOWplugins/openvino/src/predict/face_recognize.py41 except Exception:CODE
LOWplugins/openvino/src/predict/face_recognize.py93 except Exception as e:CODE
LOWplugins/openvino/src/predict/__init__.py109 except Exception:CODE
MEDIUMplugins/openvino/src/predict/__init__.py146 print("Error downloading", url)CODE
LOWplugins/openvino/src/predict/__init__.py252 except Exception as e:CODE
LOWplugins/openvino/src/predict/text_recognize.py163 except Exception as e:CODE
LOWplugins/openvino/src/predict/clip.py28 except Exception as e:CODE
MEDIUMplugins/openvino/src/predict/clip.py29 self.print("Error initializing CLIP model:", e)CODE
LOWplugins/openvino/src/predict/clip.py40 except Exception:CODE
LOWplugins/openvino/src/predict/clip.py54 except Exception:CODE
MEDIUMplugins/wyze/src/main.py932 self.print("Error retrieving codec info")CODE
MEDIUMplugins/wyze/src/main.py147def _resolve_ioctl_result(res):CODE
MEDIUMplugins/wyze/src/main.py434def _bootstrap_cruise_points(self):CODE
MEDIUMplugins/wyze/src/main.py631def getMainByteRate(self, default=False):CODE
LOWplugins/wyze/src/main.py95 except Exception:CODE
LOWplugins/wyze/src/main.py104 except Exception:CODE
LOWplugins/wyze/src/main.py111 except Exception:CODE
LOWplugins/wyze/src/main.py125 except Exception:CODE
LOWplugins/wyze/src/main.py232 except Exception:CODE
LOWplugins/wyze/src/main.py237 except Exception:CODE
LOWplugins/wyze/src/main.py245 except Exception:CODE
LOWplugins/wyze/src/main.py256 except Exception:CODE
LOWplugins/wyze/src/main.py261 except Exception:CODE
LOWplugins/wyze/src/main.py266 except Exception:CODE
LOWplugins/wyze/src/main.py271 except Exception:CODE
LOWplugins/wyze/src/main.py285 except Exception:CODE
LOWplugins/wyze/src/main.py288 except Exception:CODE
LOWplugins/wyze/src/main.py292 except Exception:CODE
LOWplugins/wyze/src/main.py295 except Exception:CODE
LOWplugins/wyze/src/main.py300 except Exception:CODE
LOWplugins/wyze/src/main.py303 except Exception:CODE
LOWplugins/wyze/src/main.py319 except Exception:CODE
LOWplugins/wyze/src/main.py325 except Exception:CODE
LOWplugins/wyze/src/main.py329 except Exception:CODE
LOWplugins/wyze/src/main.py331 except Exception:CODE
LOWplugins/wyze/src/main.py337 except Exception:CODE
LOWplugins/wyze/src/main.py402 except Exception:CODE
LOWplugins/wyze/src/main.py406 except Exception as e:CODE
LOWplugins/wyze/src/main.py409 except Exception:CODE
LOWplugins/wyze/src/main.py411 except Exception:CODE
LOWplugins/wyze/src/main.py417 except Exception:CODE
LOWplugins/wyze/src/main.py426 except Exception:CODE
LOWplugins/wyze/src/main.py428 except Exception as e:CODE
LOWplugins/wyze/src/main.py431 except Exception:CODE
LOWplugins/wyze/src/main.py437 except Exception:CODE
LOWplugins/wyze/src/main.py441 except Exception:CODE
LOWplugins/wyze/src/main.py528 except Exception:CODE
LOWplugins/wyze/src/main.py537 except Exception:CODE
LOWplugins/wyze/src/main.py539 except Exception:CODE
LOWplugins/wyze/src/main.py547 except Exception:CODE
LOWplugins/wyze/src/main.py137 except Exception:CODE
LOWplugins/wyze/src/main.py161 except Exception:CODE
51 more matches not shown…
Hallucination Indicators8 hits · 80 pts
SeverityFileLineSnippetContext
CRITICALplugins/prebuffer-mixin/src/main.ts301 if (this.mixin.streamSettings.storageSettings.values.synthenticStreams.includes(this.streamId)) {CODE
CRITICALplugins/prebuffer-mixin/src/main.ts354 const choices = this.mixin.streamSettings.storageSettings.values.synthenticStreams.includes(this.streamId)CODE
CRITICALplugins/prebuffer-mixin/src/main.ts514 else if (this.mixin.streamSettings.storageSettings.values.synthenticStreams.includes(this.streamId)) {CODE
CRITICALplugins/unifi-protect/src/camera.ts379 return this.protect.api.bootstrap.cameras.find(camera => camera.id === id);CODE
CRITICALplugins/unifi-protect/src/light.ts33 return this.protect.api.bootstrap.lights.find(light => light.id === id);CODE
CRITICALplugins/unifi-protect/src/sensor.ts18 return this.protect.api.bootstrap.sensors.find(sensor => sensor.id === id);CODE
CRITICALplugins/tuya/src/tuya/sharing.ts103 topics: homeIds.map(id => response.result.topic.ownerId.sub.replace("{ownerId}", id))CODE
CRITICALplugins/tuya/src/tuya/sharing.ts104 .concat(deviceIds.map(id => response.result.topic.devId.sub.replace("{devId}", id) + "/sta")),CODE
Hyper-Verbose Identifiers79 hits · 80 pts
SeverityFileLineSnippetContext
LOWplugins/snapshot/src/ffmpeg-image-filter.ts46function ffmpegCreateOutputArguments(inputArguments: string[], options: FFmpegImageFilterOptions) {CODE
LOWplugins/snapshot/src/ffmpeg-image-filter.ts176export async function ffmpegFilterImageInternal(cp: ChildProcess, options: FFmpegImageFilterOptions) {CODE
LOWplugins/snapshot/src/main.ts36function calculateConstrainedDimensions(originalWidth: number, originalHeight: number, targetAspectRatio: number) {CODE
LOWplugins/prebuffer-mixin/src/flv.ts151function parseAVCDecoderConfigurationRecord(buffer: Buffer, offset: number, length: number): {CODE
LOWplugins/prebuffer-mixin/src/stream-settings.ts137 function getDefaultPrebufferedStreams(msos: ResponseMediaStreamOptions[]) {CODE
LOWplugins/rtsp/src/rtsp.ts8export function createRtspMediaStreamOptions(url: string, index: number): UrlMediaStreamOptions {CODE
LOWplugins/homekit/src/camera-mixin.ts16export function createCameraStorageSettings(device: StorageSettingsDevice) {CODE
LOWplugins/homekit/src/address-override.ts16export async function getScryptedServerAddresses() {CODE
LOWplugins/homekit/src/hap-utils.ts77export function createHAPUsernameStorageSettingsDict(device: { storage: Storage, name?: string }, group: string, subgrouCODE
LOWplugins/homekit/src/types/common.ts99function commonHumidifierDehumidifier(mode: HumidityMode, subtype: string, name: string, device: ScryptedDevice & HumidiCODE
LOWplugins/homekit/src/types/camera/camera-utils.ts55export async function getStreamingConfiguration(device: ScryptedDevice & VideoCamera, isHomeHub: boolean, storage: StoraCODE
LOWplugins/homekit/src/types/camera/camera-utils.ts112export function transcodingDebugModeWarning() {CODE
LOWplugins/homekit/src/types/camera/camera-streaming.ts33export function createCameraStreamingDelegate(device: ScryptedDevice & VideoCamera & VideoCameraConfiguration & Camera &CODE
LOWplugins/core/src/platform/lxc.ts93async function dockerGetScryptedContainerImageId() {CODE
LOWplugins/core/src/platform/lxc.ts106export async function checkLxcVersionUpdateNeeded() {CODE
LOWplugins/google-device-access/src/main.ts19function getSdmRtspMediaStreamOptions(): ResponseMediaStreamOptions {CODE
LOWplugins/unifi-protect/src/camera-sensors.ts22export function debounceFingerprintDetected(device: UnifiFingerprintDevice) {CODE
LOWplugins/alexa/src/types/light/handlers.ts107function commonColorTemperatureResponse(header, endpoint, payload, response, device: ScryptedDevice & ColorSettingTemperCODE
LOWplugins/rknn/src/rknn/plugin.py32def ensure_compatibility_and_get_cpu():CODE
LOWplugins/rknn/src/rec_utils/operators.py290 def resize_image_for_totaltext(self, im, max_side_len=512):CODE
LOWplugins/rknn/src/det_utils/operators.py287 def resize_image_for_totaltext(self, im, max_side_len=512):CODE
LOWplugins/openvino/src/common/path_tools.py3def replace_last_path_component(url, new_path):CODE
LOWplugins/openvino/src/predict/segment.py50 def process_segmentation_output(self, pred, proto):CODE
LOWplugins/wyze/src/main.py115def _annotate_points_with_degrees(points: List[Dict[str, int]]) -> List[Dict[str, int]]:CODE
LOWplugins/hikvision-doorbell/src/sip/digest.js37function calculateUserRealmPasswordHash(user, realm, password) {CODE
LOWplugins/hikvision-doorbell/src/sip/sip.js132function parseAuthenticationInfoHeader(d) {CODE
LOWplugins/hikvision-doorbell/src/sip/sip.js999function createInviteServerTransaction(transport, cleanup) {CODE
LOWplugins/hikvision-doorbell/src/sip/sip.js1090function createInviteClientTransaction(rq, transport, tu, cleanup, options) {CODE
LOWplugins/tuya/src/tuya/deprecated.ts758export function getEndPointWithCountryName(name: string) {CODE
LOWplugins/cloud/src/cloudflared-local-managed.ts116export async function createLocallyManagedTunnel(domain: string, bin?: string, signal?: AbortSignal, urlCallback?: (url:CODE
LOWplugins/diagnostics/src/main.ts14function cosineSimilarityPrenormalized(e1: Buffer, e2: Buffer) {CODE
LOWplugins/sip/src/sip-manager.ts27export abstract class SipRequestHandler {CODE
LOWplugins/objectdetector/src/ffmpeg-videoframes.ts15async function createRawImageMediaObject(image: RawImage): Promise<Image & MediaObject> {CODE
LOWplugins/objectdetector/src/polygon.ts57export function polygonIntersectsBoundingBox(polygon: ClipPath, boundingBox: BoundingBox): boolean {CODE
LOWplugins/objectdetector/src/polygon.ts88export function polygonContainsBoundingBox(polygon: ClipPath, boundingBox: BoundingBox): boolean {CODE
LOWplugins/webrtc/src/webrtc-required-codecs.ts88export function getFFmpegRtpAudioOutputArguments(audio: AudioStreamOptions, outputCodecParameters: RTCRtpCodecParametersCODE
LOWplugins/webrtc/src/wrtc-to-rtsp.ts30export async function createRTCPeerConnectionSource(options: {CODE
LOWplugins/webrtc/src/ffmpeg-to-wrtc.ts741export async function createRTCPeerConnectionSink(CODE
LOWplugins/webrtc/src/peerconnection-util.ts43function isPeerIceConnectionClosed(pc: RTCPeerConnection) {CODE
LOWplugins/ffmpeg-camera/src/main.ts7function parseDoubleQuotedArguments(input: string) {CODE
LOWserver/bin/packaged-python.d.ts2export declare function installScryptedServerRequirements(version?: string, dest?: string, options?: any): Promise<strinCODE
LOWserver/bin/packaged-python.js16module.exports.installScryptedServerRequirements = async function installScryptedServerRequirements(version, dest, optioCODE
LOWserver/python/cluster_labels.py46def needs_cluster_fork_worker(options: ClusterForkOptions) -> bool:CODE
LOWserver/src/rpc-serializer.ts87export function createRpcDuplexSerializer(writable: {CODE
LOWserver/src/rpc-serializer.ts184export function createDataChannelSerializer(dc: { send: (data: Buffer) => void }) {CODE
LOWserver/src/ip.ts67export function getUsableNetworkAddresses() {CODE
LOWserver/src/rpc.ts1export function startPeriodicGarbageCollection() {CODE
LOWserver/src/cert.ts17export function createSelfSignedCertificate(existing?: SelfSignedCertificate): SelfSignedCertificate {CODE
LOWserver/src/cluster/cluster-labels.ts54export function utilizesClusterForkWorker(options?: ClusterForkOptions) {CODE
LOWserver/src/plugin/plugin-npm-dependencies.ts45export async function installOptionalDependencies(console: Console, packageJson: any) {CODE
LOWserver/src/plugin/runtime/node-fork-worker.ts15export function isNodePluginWorkerProcess() {CODE
LOWserver/src/plugin/runtime/node-fork-worker.ts23export function isNodePluginThreadProcess() {CODE
LOWserver/src/fetch/http-fetch.ts56export function httpFetchParseIncomingMessage(readable: IncomingMessage, responseType: HttpFetchResponseType | undefinedCODE
LOWserver/src/fetch/index.ts96export function setDefaultHttpFetchAccept(headers: [string, string][], responseType: HttpFetchResponseType | undefined) CODE
LOWserver/src/fetch/index.ts153export async function domFetchParseIncomingMessage(response: Response, responseType: HttpFetchResponseType | undefined) CODE
LOWsites/static/google-cast-receiver/js/main.js1(()=>{"use strict";var __webpack_modules__={636:(module,__webpack_exports__,__webpack_require__)=>{function startPeriodiCODE
LOWcommon/src/rtsp-server.ts348export function getFirstAuthenticateHeader(headers: string[]): string {CODE
LOWcommon/src/rtc-connect.ts5export async function createBrowserSignalingSession(ws: WebSocket, localName: string, remoteName: string) {CODE
LOWcommon/src/autoconfigure-codecs.ts33export async function checkPluginNeedsAutoConfigure(plugin: ScryptedDeviceBase, extraDevices = 0) {CODE
LOWcommon/src/rtc-signaling.ts13export function waitPeerConnectionIceConnected(pc: RTCPeerConnection) {CODE
19 more matches not shown…
Unused Imports71 hits · 70 pts
SeverityFileLineSnippetContext
LOWplugins/tensorflow-lite/src/tflite/__init__.py1CODE
LOWplugins/tensorflow-lite/src/tflite/__init__.py9CODE
LOWplugins/tensorflow-lite/src/tflite/__init__.py27CODE
LOWplugins/onnx/src/ort/clip_embedding.py1CODE
LOWplugins/onnx/src/ort/__init__.py1CODE
LOWplugins/onnx/src/ort/custom_detection.py1CODE
LOWplugins/onnx/src/ort/segment.py1CODE
LOWplugins/onnx/src/ort/text_recognition.py1CODE
LOWplugins/onnx/src/ort/face_recognition.py1CODE
LOWplugins/rknn/src/rknn/__init__.py1CODE
LOWplugins/rknn/src/rec_utils/operators.py17CODE
LOWplugins/rknn/src/rec_utils/operators.py18CODE
LOWplugins/rknn/src/rec_utils/operators.py19CODE
LOWplugins/rknn/src/rec_utils/operators.py20CODE
LOWplugins/rknn/src/det_utils/db_postprocess.py18CODE
LOWplugins/rknn/src/det_utils/db_postprocess.py19CODE
LOWplugins/rknn/src/det_utils/db_postprocess.py20CODE
LOWplugins/rknn/src/det_utils/operators.py17CODE
LOWplugins/rknn/src/det_utils/operators.py18CODE
LOWplugins/rknn/src/det_utils/operators.py19CODE
LOWplugins/rknn/src/det_utils/operators.py20CODE
LOWplugins/openvino/src/detect/__init__.py1CODE
LOWplugins/openvino/src/ov/clip_embedding.py1CODE
LOWplugins/openvino/src/ov/clip_embedding.py8CODE
LOWplugins/openvino/src/ov/__init__.py1CODE
LOWplugins/openvino/src/ov/custom_detection.py1CODE
LOWplugins/openvino/src/ov/segment.py1CODE
LOWplugins/openvino/src/ov/text_recognition.py1CODE
LOWplugins/openvino/src/ov/face_recognition.py1CODE
LOWplugins/openvino/src/predict/custom_detect.py1CODE
LOWplugins/openvino/src/predict/custom_detect.py9CODE
LOWplugins/openvino/src/predict/face_recognize.py1CODE
LOWplugins/openvino/src/predict/__init__.py1CODE
LOWplugins/openvino/src/predict/text_recognize.py1CODE
LOWplugins/openvino/src/predict/segment.py1CODE
LOWplugins/openvino/src/predict/segment.py4CODE
LOWplugins/openvino/src/predict/segment.py12CODE
LOWplugins/openvino/src/predict/clip.py1CODE
LOWplugins/wyze/src/main.py1CODE
LOWplugins/coreml/src/coreml/clip_embedding.py1CODE
LOWplugins/coreml/src/coreml/__init__.py1CODE
LOWplugins/coreml/src/coreml/__init__.py25CODE
LOWplugins/coreml/src/coreml/__init__.py26CODE
LOWplugins/coreml/src/coreml/custom_detection.py1CODE
LOWplugins/coreml/src/coreml/segment.py1CODE
LOWplugins/coreml/src/coreml/segment.py7CODE
LOWplugins/coreml/src/coreml/text_recognition.py1CODE
LOWplugins/coreml/src/coreml/face_recognition.py1CODE
LOWplugins/opencv/src/opencv/__init__.py1CODE
LOWplugins/opencv/src/opencv/__init__.py13CODE
LOWplugins/ncnn/src/nc/__init__.py1CODE
LOWplugins/ncnn/src/nc/__init__.py32CODE
LOWplugins/ncnn/src/nc/__init__.py33CODE
LOWplugins/ncnn/src/nc/custom_detection.py1CODE
LOWplugins/ncnn/src/nc/custom_detection.py7CODE
LOWplugins/ncnn/src/nc/segment.py1CODE
LOWplugins/ncnn/src/nc/text_recognition.py1CODE
LOWplugins/ncnn/src/nc/face_recognition.py1CODE
LOWplugins/vscode-python/src/main.py1CODE
LOWserver/python/rpc_reader.py1CODE
11 more matches not shown…
Over-Commented Block63 hits · 63 pts
SeverityFileLineSnippetContext
LOWinstall/docker/install-intel-graphics.sh21 COMMENT
LOWinstall/docker/install-intel-graphics.sh61fiCOMMENT
LOWinstall/docker/docker-compose.yml1# The Scrypted docker-compose.yml file typically resides at:COMMENT
LOWinstall/docker/docker-compose.yml21 scrypted:COMMENT
LOWinstall/docker/docker-compose.yml41 # Avahi is used by the HomeKit plugin for mDNS advertisement.COMMENT
LOWinstall/docker/docker-compose.yml61 # without needing to bind port 5353 directly.COMMENT
LOWinstall/docker/docker-compose.yml81 # - /mnt/media/video:/nvrCOMMENT
LOWinstall/docker/docker-compose.yml101 # - /etc/avahi/services:/etc/avahi/services:roCOMMENT
LOWinstall/docker/docker-compose.yml121 # them through to docker.COMMENT
LOWinstall/docker/template/warning.sh1################################################################COMMENT
LOWplugins/homekit/src/types/camera/camera-utils.ts61 const isLowBandwidth = request.audio.packet_time >= 60;COMMENT
LOWplugins/homekit/src/types/camera/opus-repacketizer.ts1import type { RtpPacket } from "@koush/werift-src/packages/rtp/src/rtp/rtp";COMMENT
LOWplugins/homekit/src/types/camera/opus-repacketizer.ts21// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1COMMENT
LOWplugins/homekit/src/types/camera/opus-repacketizer.ts41// | |COMMENT
LOWplugins/homekit/src/types/camera/camera-return-audio.ts61 csd = csdBuffer.toString('hex').toUpperCase();COMMENT
LOW…mekit/src/types/camera/camera-streaming-srtp-sender.ts121 firstTimestamp = rtp.header.timestamp;COMMENT
LOW…ns/homekit/src/types/camera/camera-streaming-ffmpeg.ts221COMMENT
LOWplugins/tensorflow-lite/src/tflite/tflite_common.py1# Lint as: python3COMMENT
LOWplugins/tapo/src/digest-auth.ts21 return '';COMMENT
LOWplugins/amcrest/src/amcrest-api.ts381COMMENT
LOWplugins/amcrest/src/amcrest-api.ts401 // there are 4 configurable motion windows, will use the first one, index 0.COMMENT
LOWplugins/hikvision/src/main.ts221 // movement: {COMMENT
LOWplugins/hikvision/src/hikvision-xml-types.ts101COMMENT
LOWplugins/hikvision/src/hikvision-xml-types.ts121// videoQualityControlType: [COMMENT
LOWplugins/hikvision/src/hikvision-xml-types.ts141// ],COMMENT
LOWplugins/hikvision/src/hikvision-xml-types.ts161// ],COMMENT
LOWplugins/google-device-access/pubsub-server/app.yaml1# Copyright 2017, Google, Inc.COMMENT
LOWplugins/unifi-protect/src/main.ts221 // start: 1713211066646,COMMENT
LOWplugins/alexa/src/types/camera/handlers.ts41 // trickle ICE is disabled, all candidates ship in the initial SDP, so omitting theCOMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py1# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.COMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py721# self.nclass = len(self.character) + 1COMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py741# ]COMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py761# text_pre = paddle.to_tensor(text_pre, dtype='float32')COMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py781# shape=[int(out_length.sum()), self.nclass], dtype=x.dtype)COMMENT
LOWplugins/rknn/src/rec_utils/rec_postprocess.py801# self.character[idx - 1]COMMENT
LOWplugins/rknn/src/rec_utils/operators.py1"""COMMENT
LOWplugins/rknn/src/det_utils/db_postprocess.py1# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.COMMENT
LOWplugins/rknn/src/det_utils/operators.py1"""COMMENT
LOWplugins/openvino/src/requirements.txt1# openvino 2025.3.0 is failing to load on 9700 (VGG), this may be because models need to be reexported.COMMENT
LOWplugins/openvino/src/predict/face_recognize.py161 futures.append(asyncio.ensure_future(self.setEmbedding(d, image)))COMMENT
LOWplugins/doorbird/src/main.ts441 // Specify the input URL for the Doorbird's RTSP video stream.COMMENT
LOWplugins/doorbird/src/main.ts621 }COMMENT
LOWplugins/wyze/.devcontainer/devcontainer.json1// For format details, see https://aka.ms/devcontainer.json. For config options, see theCOMMENT
LOWplugins/coreml/src/coreml/face_recognition.py61COMMENT
LOWplugins/coreml/src/coreml/face_recognition.py81 # request_handler = Vision.VNImageRequestHandler.alloc().initWithCIImage_options_(COMMENT
LOWplugins/coreml/src/coreml/face_recognition.py101 # t = (1 - origin.y - size.height) * input.heightCOMMENT
LOWplugins/coreml/src/coreml/face_recognition.py121 # future = await asyncio.get_event_loop().run_in_executor(COMMENT
LOWplugins/mqtt/src/autodiscovery.ts61// "r": 255,COMMENT
LOWplugins/webrtc/src/h265-packetizer.ts141 seiSuffix?: Buffer;COMMENT
LOWplugins/webrtc/src/ffmpeg-to-wrtc.ts321 // 1378 is what homekit requests, regardless of local or remote network.COMMENT
LOWplugins/ffmpeg-camera/src/main.ts21 description: 'FFmpeg input arguments passed to the command line ffmpeg tool. A camera may have multiple streCOMMENT
LOWplugins/ffmpeg-camera/src/main.ts41COMMENT
LOWserver/test/rpc-python-test.ts41 // const ticker = await rpcPeer.getParam('ticker');COMMENT
LOWcommon/src/async-queue.ts201// await sleep(100);COMMENT
LOWcommon/src/async-queue.ts221// const asyncQueue = createAsyncQueue<number>();COMMENT
LOWsdk/types/src/types.input.ts721 getVideoStream(options?: RequestMediaStreamOptions): Promise<MediaObject>;COMMENT
LOWsdk/types/src/types.input.ts741// "height": 1080COMMENT
LOWsdk/types/src/types.input.ts761// "min": 1,COMMENT
LOWsdk/types/src/types.input.ts781// {COMMENT
LOWsdk/types/src/types.input.ts801// },COMMENT
3 more matches not shown…
Deep Nesting49 hits · 45 pts
SeverityFileLineSnippetContext
LOWplugins/tensorflow-lite/src/tflite/__init__.py74CODE
LOWplugins/onnx/src/ort/__init__.py222CODE
LOWplugins/rknn/src/rknn/plugin.py32CODE
LOWplugins/rknn/src/rec_utils/rec_postprocess.py183CODE
LOWplugins/rknn/src/rec_utils/rec_postprocess.py278CODE
LOWplugins/rknn/src/rec_utils/rec_postprocess.py360CODE
LOWplugins/rknn/src/rec_utils/rec_postprocess.py431CODE
LOWplugins/rknn/src/rec_utils/operators.py198CODE
LOWplugins/rknn/src/det_utils/operators.py195CODE
LOWplugins/openvino/src/ov/__init__.py73CODE
LOWplugins/openvino/src/ov/__init__.py98CODE
LOWplugins/openvino/src/ov/__init__.py358CODE
LOWplugins/openvino/src/common/yolo.py125CODE
LOWplugins/openvino/src/predict/text_skew.py46CODE
LOWplugins/openvino/src/predict/custom_detect.py73CODE
LOWplugins/openvino/src/predict/face_recognize.py104CODE
LOWplugins/openvino/src/predict/__init__.py119CODE
LOWplugins/openvino/src/predict/__init__.py287CODE
LOWplugins/openvino/src/predict/__init__.py414CODE
LOWplugins/openvino/src/predict/segment.py50CODE
LOWplugins/openvino/src/predict/craft_utils.py98CODE
LOWplugins/wyze/src/main.py240CODE
LOWplugins/wyze/src/main.py334CODE
LOWplugins/wyze/src/main.py515CODE
LOWplugins/wyze/src/main.py542CODE
LOWplugins/wyze/src/main.py832CODE
LOWplugins/wyze/src/main.py1207CODE
LOWplugins/wyze/src/main.py1233CODE
LOWplugins/wyze/src/main.py1246CODE
LOWplugins/coreml/src/coreml/__init__.py172CODE
LOWplugins/python-codecs/src/vipsimage.py26CODE
LOWplugins/python-codecs/src/gstreamer_postprocess.py20CODE
LOWplugins/python-codecs/src/gstreamer_postprocess.py49CODE
LOWplugins/python-codecs/src/gst_generator.py17CODE
LOWplugins/python-codecs/src/gst_generator.py75CODE
LOWplugins/python-codecs/src/libav.py20CODE
LOWplugins/python-codecs/src/pilimage.py26CODE
LOWplugins/python-codecs/src/gstreamer.py228CODE
LOWplugins/python-codecs/src/gstreamer.py309CODE
LOWplugins/python-codecs/src/gstreamer.py73CODE
LOWserver/python/plugin_pip.py26CODE
LOWserver/python/rpc_reader.py224CODE
LOWserver/python/rpc_reader.py229CODE
LOWserver/python/rpc.py495CODE
LOWserver/python/plugin_remote.py268CODE
LOWpackages/python-client/rpc_reader.py224CODE
LOWpackages/python-client/rpc_reader.py229CODE
LOWpackages/python-client/rpc.py495CODE
LOWpackages/python-client/plugin_remote.py268CODE
AI Slop Vocabulary11 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMplugins/onnx/src/ort/clip_embedding.py77 # this is a hack to utilize the existing image massaging infrastructureCOMMENT
MEDIUMplugins/openvino/src/ov/clip_embedding.py55 # this is a hack to utilize the existing image massaging infrastructureCOMMENT
LOWplugins/openvino/src/common/colors.py39 # if the format is already yuvj444p, just return the data as is.COMMENT
MEDIUMplugins/coreml/src/coreml/clip_embedding.py47 # this is a hack to utilize the existing image massaging infrastructureCOMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts46const GRACE_PERIOD_SEC: number = 2 // Grace period for seamless SIP reconnectionCODE
MEDIUMplugins/hikvision-doorbell/src/main.ts75 // grace period for seamless reconnectionCOMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts79 // RTP stream switcher for seamless target switching (SIP mode)COMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts82 // HTTP stream switcher for seamless reconnection (ISAPI mode)COMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts203 // Check if we're in ISAPI mode (no SIP) and can do seamless reconnectionCOMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts300 // Use switcher for seamless target switching supportCOMMENT
MEDIUMplugins/hikvision-doorbell/src/main.ts420 // This allows seamless switching without killing the forwarderCOMMENT
AI Structural Patterns32 hits · 32 pts
SeverityFileLineSnippetContext
LOWplugins/tensorflow-lite/src/tflite/__init__.py325CODE
LOWplugins/onnx/src/ort/__init__.py319CODE
LOWplugins/onnx/src/ort/segment.py55CODE
LOWplugins/rknn/src/rknn/text_recognition.py167CODE
LOWplugins/rknn/src/det_utils/db_postprocess.py196CODE
LOWplugins/openvino/src/ov/clip_embedding.py70CODE
LOWplugins/openvino/src/ov/clip_embedding.py83CODE
LOWplugins/openvino/src/ov/__init__.py301CODE
LOWplugins/openvino/src/ov/custom_detection.py55CODE
LOWplugins/openvino/src/ov/custom_detection.py50CODE
LOWplugins/openvino/src/ov/segment.py57CODE
LOWplugins/openvino/src/ov/text_recognition.py48CODE
LOWplugins/openvino/src/ov/text_recognition.py62CODE
LOWplugins/openvino/src/ov/text_recognition.py43CODE
LOWplugins/openvino/src/ov/text_recognition.py57CODE
LOWplugins/openvino/src/ov/face_recognition.py54CODE
LOWplugins/openvino/src/ov/face_recognition.py68CODE
LOWplugins/openvino/src/ov/face_recognition.py49CODE
LOWplugins/openvino/src/ov/face_recognition.py63CODE
LOWplugins/openvino/src/common/yolov9_seg.py260CODE
LOWplugins/openvino/src/predict/face_recognize.py62CODE
LOWplugins/openvino/src/predict/__init__.py412CODE
LOWplugins/coreml/src/coreml/clip_embedding.py63CODE
LOWplugins/coreml/src/coreml/clip_embedding.py76CODE
LOWplugins/coreml/src/coreml/__init__.py228CODE
LOWplugins/coreml/src/coreml/segment.py48CODE
LOWplugins/python-codecs/src/generator_common.py24CODE
LOWplugins/python-codecs/src/gstreamer.py306CODE
LOWplugins/ncnn/src/nc/__init__.py266CODE
LOWplugins/ncnn/src/nc/segment.py76CODE
LOWserver/python/rpc.py391CODE
LOWpackages/python-client/rpc.py391CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMinstall/docker/docker-compose-setup.py4# Define the devices to check forCOMMENT
MEDIUMplugins/openvino/src/common/path_tools.py19 # Create a new parsed URL with the updated pathCOMMENT
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsdk/types/scrypted_python/scrypted_sdk/types.py1017 devicesAccessControls: list[ScryptedDeviceAccessControl] # If devicesAccessControls is null, the user has full acceCODE
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWplugins/opencv/src/opencv/__init__.py74 'placeholder': defaultArea,CODE
LOWplugins/opencv/src/opencv/__init__.py82 'placeholder': defaultThreshold,CODE
LOWplugins/opencv/src/opencv/__init__.py90 'placeholder': defaultBlur,CODE
Slop Phrases2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUMsdk/types/scrypted_python/scrypted_sdk/types.py539 modalities: list[Any | Any] # Output types that you would like the model to generate. Most models are capable of geCODE
MEDIUMsdk/types/scrypted_python/scrypted_sdk/types.py582 modalities: list[Any | Any] # Output types that you would like the model to generate. Most models are capable of geCODE
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWplugins/openvino/src/predict/text_skew.py39 # Check if the boxes are adjacent along their left or right sidesCOMMENT
LOWsdk/types/scrypted_python/scrypted_sdk/types.py971 allowBatteryPrebuffer: bool # Set this to true to allow for prebuffering even if the device implements the Battery CODE