Repository Analysis

dragonflydb/dragonfly

A modern replacement for Redis and Memcached

6.8 Low AI signal View on GitHub
6.8
Adjusted Score
6.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
30,574
Stars
C++
Language
148,859
Lines of Code
613
Files
920
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 81LOW 838

Pattern Findings

920 matches across 12 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers488 hits · 408 pts
SeverityFileLineSnippet
LOWtools/plot_memtier_latency.py55def extract_latency_timeseries(data, operation, ignore_last_seconds=3):
LOWtools/plot_memtier_latency.py109def plot_latency_chart_interactive(data, output_file="latency_chart.html", open_browser=True):
LOWtools/release_notes_generator.py1061def _build_commit_user_content(commit: Commit) -> str:
LOWtools/release_notes_generator.py550def _dedupe_highlights_section(notes: str) -> str:
LOWtools/release_notes_generator.py1403def _score_announce_candidate(analyzed_commit: AnalyzedCommit, promoted_theme_size: int) -> float:
LOWtools/release_notes_generator.py1429def _select_announce_highlights(
LOWtools/release_notes_generator.py1463def build_composition_payload(
LOWtools/release_notes_generator.py1504def _build_release_notes_user_message(payload: CompositionPayload) -> str:
LOWtools/release_notes_generator.py1548def _build_announce_user_message(payload: CompositionPayload) -> str:
LOWtools/release_notes_generator.py1616def _build_release_notes_empty_output(payload: CompositionPayload) -> str:
LOWtools/release_notes_generator.py1623def _build_announce_empty_output(payload: CompositionPayload) -> str:
LOWtools/release_notes_generator.py1640def _post_process_release_notes(_backend_name: str, notes: str) -> str:
LOWtools/release_notes_generator.py522def _parse_commit_analysis_json(text: str) -> CommitAnalysis:
LOWtools/cluster_mgr.py241def build_config_from_existing(args):
LOWtests/dragonfly/cluster_test.py19def monotonically_increasing_port_number():
LOWtests/dragonfly/cluster_test.py208async def wait_for_ft_index_creation(client, idx_name, timeout=5):
LOWtests/dragonfly/cluster_test.py234async def check_for_no_state_status(admin_clients):
LOWtests/dragonfly/cluster_test.py264 async def test_cluster_commands_fails_when_not_emulate(self, async_client: aioredis.Redis):
LOWtests/dragonfly/cluster_test.py276 def test_cluster_slots_command(self, df_server, cluster_client: redis.RedisCluster):
LOWtests/dragonfly/cluster_test.py281 def test_cluster_help_command(self, cluster_client: redis.RedisCluster):
LOWtests/dragonfly/cluster_test.py301 def test_cluster_slots_command(self, df_server, cluster_client: redis.RedisCluster):
LOWtests/dragonfly/cluster_test.py343async def test_emulated_cluster_with_replicas(df_factory):
LOWtests/dragonfly/cluster_test.py447async def test_cluster_managed_service_info(df_factory):
LOWtests/dragonfly/cluster_test.py641async def test_cluster_slot_ownership_changes(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py1774async def test_cluster_replication_migration(
LOWtests/dragonfly/cluster_test.py1848async def test_start_replication_during_migration(
LOWtests/dragonfly/cluster_test.py1911async def test_keys_expiration_during_migration(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py1954async def test_snapshoting_during_migration(
LOWtests/dragonfly/cluster_test.py2044async def test_cluster_migration_cancel(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py2100async def test_cluster_migration_huge_container(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py2158async def test_cluster_migration_while_seeding(
LOWtests/dragonfly/cluster_test.py2214async def test_cluster_migrations_sequence(
LOWtests/dragonfly/cluster_test.py770async def test_cluster_replica_sets_non_owned_keys(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py878async def test_cluster_flush_slots_after_config_change(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py998async def test_cluster_blocking_command(df_server):
LOWtests/dragonfly/cluster_test.py1041async def test_blocking_commands_cancel(df_factory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py1075async def test_cluster_native_client(
LOWtests/dragonfly/cluster_test.py1315async def test_cluster_flushall_during_migration(
LOWtests/dragonfly/cluster_test.py1367async def test_cluster_data_migration(df_factory: DflyInstanceFactory, interrupt: bool):
LOWtests/dragonfly/cluster_test.py1442async def test_migration_serializer_expired_fields(df_factory):
LOWtests/dragonfly/cluster_test.py1484async def test_migration_with_key_ttl(df_factory):
LOWtests/dragonfly/cluster_test.py1527async def test_network_disconnect_during_migration(df_factory):
LOWtests/dragonfly/cluster_test.py1594async def test_cluster_fuzzymigration(
LOWtests/dragonfly/cluster_test.py1733async def test_cluster_config_reapply(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py2380async def test_replicate_disconnect_cluster(df_factory: DflyInstanceFactory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2448 async def is_first_master_conn_down(conn):
LOWtests/dragonfly/cluster_test.py2480def is_offset_eq_master_repl_offset(replication_info: str):
LOWtests/dragonfly/cluster_test.py2500async def test_replicate_redis_cluster(redis_cluster, df_factory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2556async def test_replicate_disconnect_redis_cluster(redis_cluster, df_factory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2647async def test_cluster_memory_consumption_migration(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py2696async def test_migration_timeout_on_sync(df_factory: DflyInstanceFactory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2771async def test_migration_one_after_another(df_factory: DflyInstanceFactory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2844async def test_migration_rebalance_node(df_factory: DflyInstanceFactory, df_seeder_factory):
LOWtests/dragonfly/cluster_test.py2988async def test_cluster_sharded_pub_sub(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py3032async def test_cluster_sharded_pubsub_shard_commands(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py3074async def test_cluster_migration_errors_num(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py3119async def test_cluster_sharded_pub_sub_migration(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py3167async def test_readonly_replication(
LOWtests/dragonfly/cluster_test.py3220async def test_cancel_blocking_cmd_during_mygration_finalization(df_factory: DflyInstanceFactory):
LOWtests/dragonfly/cluster_test.py3325async def test_replica_takeover_moved(
428 more matches not shown…
Over-Commented Block205 hits · 204 pts
SeverityFileLineSnippet
LOWtools/release_notes_generator.py81# ---------------------------------------------------------------------------
LOWtools/generate-tls-files.sh1#!/bin/bash
LOWtools/packaging/generate_debian_package.sh1#!/usr/bin/env bash
LOWtools/local/monitoring/prometheus/prometheus.yml1# my global config
LOWtools/replay/workers.go301 }
LOWtests/dragonfly/search_test.py1101 assert (
LOWtests/dragonfly/search_test.py1121 # "name",
LOWtests/dragonfly/search_test.py1141 # "2",
LOWtests/dragonfly/bull_sidekiq_test.py21# @dfly_args({"lock_on_hashtags": True})
LOWtests/integration/.run_ioredis_valid_test.sh1#!/usr/bin/env bash
LOWtests/fakeredis/test/test_mixins/test_scan.py81# key_to_remove = keys[0]
LOWcontrib/charts/dragonfly/Chart.yaml1apiVersion: v2
LOWcontrib/charts/dragonfly/values.yaml41podSecurityContext: {}
LOWcontrib/charts/dragonfly/values.yaml121 # -- TLS certificate
LOWcontrib/charts/dragonfly/values.yaml181
LOW.github/bullmq-skipped-tests.txt1# BullMQ tests excluded from CI runs against Dragonfly
LOW.github/workflows/fuzz-pr.yml1# Run AFL++ fuzzing on PRs that touch C++ code.
LOWfuzz/triage_crashes.sh1#!/usr/bin/env bash
LOWsrc/core/oah_set.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/cms.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/topk.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/topk.h21
LOWsrc/core/topk.h41// degrade overall database throughput, hence the strict separation of concerns.
LOWsrc/core/topk.h101 //
LOWsrc/core/top_keys.h1// Copyright 2025, DragonflyDB authors. All rights reserved.
LOWsrc/core/top_keys.h21// increments, and does not use PMR allocators (which are required for strict memory
LOWsrc/core/sharded_hash_map.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/sharded_hash_map.h21// Each shard contains an absl::flat_hash_map protected by two fiber-aware locks:
LOWsrc/core/sharded_hash_map.h41// Thread safety guarantees:
LOWsrc/core/sharded_hash_map.h121
LOWsrc/core/string_set.h1// Copyright 2022, DragonflyDB authors. All rights reserved.
LOWsrc/core/dash_internal.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/dash_internal.h1261 // we extract local_depth bits from the left part of the hash. Since we extended local_depth,
LOWsrc/core/dash_internal.h1281 // of items with the same bucket id, say 0. Lots of items will go to the initial segment
LOWsrc/core/dash_internal.h1501
LOWsrc/core/glob_matcher.h1// Copyright 2025, DragonflyDB authors. All rights reserved.
LOWsrc/core/glob_matcher.h41 private:
LOWsrc/core/compact_object.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/compact_object.h241
LOWsrc/core/dict_builder.h1// Copyright 2025, DragonflyDB authors. All rights reserved.
LOWsrc/core/dict_builder.h21 unsigned step);
LOWsrc/core/stream_node.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/flatbuffers.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/tiering_types.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/bptree_set.h81 ToRank(rank, &path);
LOWsrc/core/size_tracking_channel.h1// Copyright 2023, DragonflyDB authors. All rights reserved.
LOWsrc/core/dense_set.h1// Copyright 2022, DragonflyDB authors. All rights reserved.
LOWsrc/core/dense_set.h21// dict requires to allocate dictEntry per each addition in addition to the supplied key.
LOWsrc/core/qlist.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/simd_op.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/allocation_tracker.h1// Copyright 2024, DragonflyDB authors. All rights reserved.
LOWsrc/core/sorted_map.h1// Copyright 2023, Roman Gershman. All rights reserved.
LOWsrc/core/sse_port.h1// Copyright 2023, DragonflyDB authors. All rights reserved.
LOWsrc/core/dash.h1// Copyright 2022, DragonflyDB authors. All rights reserved.
LOWsrc/core/dash.h341 // table during the traversal, then Traverse() will eventually reach it even when the table
LOWsrc/core/collection_entry.h1// Copyright 2026, DragonflyDB authors. All rights reserved.
LOWsrc/core/search/ast_expr.h1// Copyright 2023, DragonflyDB authors. All rights reserved.
LOWsrc/core/search/hnsw_index.h1// Copyright 2023, DragonflyDB authors. All rights reserved.
LOWsrc/core/search/hnsw_index.h81 // Get nodes in the specified range [start, end)
LOWsrc/core/search/compressed_sorted_set.h1#pragma once
145 more matches not shown…
Decorative Section Separators59 hits · 200 pts
SeverityFileLineSnippet
MEDIUMtools/release_notes_generator.py1056# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1058# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py81# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py83# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py133# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py135# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py329# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py331# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py589# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py591# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py908# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py910# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py952# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py954# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1028# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1030# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1313# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1315# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1730# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py1732# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py517# ---------------------------------------------------------------------------
MEDIUMtools/release_notes_generator.py519# ---------------------------------------------------------------------------
MEDIUMtools/pubsub/celery-test.py80# ------------------------
MEDIUMtools/pubsub/celery-test.py82# ------------------------
MEDIUMtools/pubsub/celery-test.py91# ------------------------
MEDIUMtools/pubsub/celery-test.py93# ------------------------
MEDIUMtools/pubsub/celery-test.py20# ------------------------
MEDIUMtools/pubsub/celery-test.py22# ------------------------
MEDIUMtools/pubsub/celery-test.py65# ------------------------
MEDIUMtools/pubsub/celery-test.py67# ------------------------
MEDIUMtools/pubsub/celery-test.py166# ------------------------
MEDIUMtools/pubsub/celery-test.py168# ------------------------
MEDIUMtools/pubsub/celery-test.py185# ------------------------
MEDIUMtools/pubsub/celery-test.py187# ------------------------
MEDIUMtools/pubsub/celery-test.py247# ------------------------
MEDIUMtools/pubsub/celery-test.py249# ------------------------
MEDIUMtools/pubsub/celery-test.py456# ------------------------
MEDIUMtools/pubsub/celery-test.py458# ------------------------
MEDIUM.github/bullmq-skipped-tests.txt8# ── DRAGONFLY BUG ────────────────────────────────────────────────────────────
MEDIUM.github/bullmq-skipped-tests.txt18# ── FLAKY ─────────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh18# ─── Colors ───────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh26# ─── Config ───────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh49# ─── Args ─────────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh75# ─── Working directory ────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh84# ─── Extract zip ──────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh89# ─── Find crash archives ──────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh101# ─── Locate replay_crash.py ───────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh110# ─── Helpers ──────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh159# ─── Main loop ────────────────────────────────────────────────────────────────
MEDIUMfuzz/triage_crashes.sh324# ─── Summary ──────────────────────────────────────────────────────────────────
MEDIUMsrc/server/snapshot.h26// ┌────────────────┐ ┌─────────────┐
MEDIUMsrc/server/snapshot.h28// └──────┬─────────┘ └─┬───────────┘
MEDIUMsrc/server/snapshot.h31// ┌──────────────────────────┐
MEDIUMsrc/server/snapshot.h33// └────────────┬─────────────┘ if default is used on another db index
MEDIUMsrc/server/snapshot.h37// ┌──────────────────────────┐ ┌─────────────────────────┐
MEDIUMsrc/server/snapshot.h39// └─────────────┬────────────┘ └────────────┬────────────┘
MEDIUMsrc/server/snapshot.h43// ▼ ┌──────────────────────────┐
MEDIUMsrc/server/snapshot.h45// ┌──────────────────────────────┐ │ (appends journal entry │
MEDIUMsrc/server/snapshot.h47// └──────────────────────────────┘ └──────────────────────────┘
Excessive Try-Catch Wrapping57 hits · 62 pts
SeverityFileLineSnippet
MEDIUMtools/plot_memtier_latency.py133 print("Error: No operation data found in JSON")
MEDIUMtools/plot_memtier_latency.py354 print("Error: No operation data found in JSON")
MEDIUMtools/plot_memtier_latency.py535 print(f"Error: Input file '{input_file}' not found!")
LOWtools/defrag_mem_test.py100 except Exception as e:
LOWtools/defrag_mem_test.py159 except Exception as e:
MEDIUMtools/defrag_mem_test.py76def stats_check(connection, condition):
LOWtools/release_notes_generator.py940 except Exception:
LOWtools/release_notes_generator.py1162 except Exception as e:
LOWtools/release_notes_generator.py2005 except Exception as e:
LOWtools/cluster_mgr.py70 except Exception as e:
LOWtools/defrag_db.py41 except Exception as e:
MEDIUMtools/defrag_db.py47 print("Error recycling", recycled)
LOWtools/pubsub/stress.py268 except Exception as e:
LOWtools/pubsub/celery-test.py121 except Exception:
LOWtools/pubsub/celery-test.py209 except Exception:
LOWtools/pubsub/celery-test.py234 except Exception:
LOWtools/pubsub/celery-test.py311 except Exception:
LOWtools/pubsub/celery-test.py379 except Exception as e:
LOWtests/dragonfly/cluster_test.py61 except Exception as e:
LOWtests/dragonfly/cluster_test.py3622 except Exception:
LOWtests/dragonfly/instance.py508 except Exception as e:
LOWtests/dragonfly/instance.py513 except Exception as e:
LOWtests/dragonfly/conftest.py65 except Exception:
LOWtests/dragonfly/conftest.py113 except Exception:
LOWtests/dragonfly/conftest.py123 except Exception:
LOWtests/dragonfly/conftest.py323 except Exception:
LOWtests/dragonfly/conftest.py325 except Exception as e:
LOWtests/dragonfly/search_benchmark_utils.py168 except Exception as e:
LOWtests/dragonfly/acl_family_test.py228 except Exception as e:
LOWtests/dragonfly/connection_test.py228 except Exception:
LOWtests/dragonfly/utility.py737 except Exception as e:
MEDIUMtests/dragonfly/replication_test.py3204def replicate_inside_multi():
LOWtests/dragonfly/replication_test.py3889 except Exception as e:
LOWtests/dragonfly/replication_test.py3899 except Exception:
LOWtests/dragonfly/shutdown_test.py103 except Exception as e:
MEDIUMtests/dragonfly/search_test.py649def test_redis_om(df_server):
LOWtests/dragonfly/search_test.py778 except Exception:
LOWtests/dragonfly/search_test.py782 except Exception:
LOWtests/dragonfly/search_test.py791 except Exception:
LOWtests/dragonfly/search_test.py1245 except Exception as e:
LOWtests/dragonfly/snapshot_test.py291 except Exception as e:
LOWtests/dragonfly/snapshot_test.py306 except Exception as e:
LOWtests/dragonfly/snapshot_test.py709 except Exception:
LOWtests/dragonfly/snapshot_test.py807 except Exception:
LOWtests/dragonfly/snapshot_test.py821 except Exception:
MEDIUMtests/dragonfly/snapshot_test.py287def save():
MEDIUMtests/dragonfly/snapshot_test.py302def save_operation(operation_id):
LOW…fly/valkey_search/valkey_search_test_case_dragonfly.py91 except Exception as e:
LOW…fly/valkey_search/valkey_search_test_case_dragonfly.py107 except Exception as e:
LOWtests/dragonfly/valkey_search/util.py30 except Exception:
LOWtests/dragonfly/valkey_search/util.py55 except Exception:
LOWtests/dragonfly/valkey_search/util.py80 except Exception:
LOWtests/fakeredis/test/conftest.py15 except Exception:
LOWtests/fakeredis/test/test_hypothesis/base.py259 except Exception as e:
LOWfuzz/replay_crash.py36 except Exception:
LOWfuzz/replay_crash.py41 except Exception:
LOWfuzz/generate_targeted_seeds.py272 except Exception as e:
Unused Imports48 hits · 45 pts
SeverityFileLineSnippet
LOWtools/cache_testing.py3
LOWtools/plot_memtier_latency.py32
LOWtools/plot_memtier_latency.py35
LOWtools/defrag_mem_test.py4
LOWtools/defrag_mem_test.py5
LOWtools/release_notes_generator.py30
LOWtools/eviction/fill_db.py43
LOWtests/dragonfly/cluster_test.py14
LOWtests/dragonfly/seeder_test.py7
LOWtests/dragonfly/seeder_test.py8
LOWtests/dragonfly/server_family_test.py11
LOWtests/dragonfly/acl_family_test.py6
LOWtests/dragonfly/sentinel_test.py8
LOWtests/dragonfly/sentinel_test.py9
LOWtests/dragonfly/connection_test.py5
LOWtests/dragonfly/replication_test.py19
LOWtests/dragonfly/shutdown_test.py5
LOWtests/dragonfly/search_test.py20
LOWtests/dragonfly/set_test.py2
LOWtests/dragonfly/set_test.py3
LOWtests/dragonfly/set_test.py4
LOWtests/dragonfly/json_test.py4
LOWtests/dragonfly/redis_replication_test.py1
LOWtests/dragonfly/redis_replication_test.py5
LOWtests/dragonfly/redis_replication_test.py6
LOWtests/dragonfly/config_test.py4
LOWtests/dragonfly/config_test.py5
LOWtests/dragonfly/cluster_mgr_test.py5
LOWtests/dragonfly/tls_conf_test.py3
LOWtests/integration/async.py14
LOWtests/fakeredis/test/test_transactions.py1
LOWtests/fakeredis/test/test_json/test_json.py5
LOWtests/fakeredis/test/test_json/test_json_commands.py3
LOWtests/fakeredis/test/test_mixins/test_set_commands.py1
LOW…sts/fakeredis/test/test_mixins/test_string_commands.py1
LOW…/fakeredis/test/test_mixins/test_sortedset_commands.py1
LOWtests/fakeredis/test/test_mixins/test_scripting.py1
LOWtests/fakeredis/test/test_hypothesis/__init__.py12
LOWtests/fakeredis/test/test_hypothesis/__init__.py13
LOWtests/fakeredis/test/test_hypothesis/__init__.py14
LOWtests/fakeredis/test/test_hypothesis/__init__.py15
LOWtests/fakeredis/test/test_hypothesis/__init__.py16
LOWtests/fakeredis/test/test_hypothesis/__init__.py17
LOWtests/fakeredis/test/test_hypothesis/__init__.py18
LOWtests/fakeredis/test/test_hypothesis/__init__.py19
LOWfuzz/resp_mutator.py25
LOWsrc/core/generate_bin_sizes.py4
LOWsrc/core/generate_bin_sizes.py5
Self-Referential Comments13 hits · 32 pts
SeverityFileLineSnippet
MEDIUMtests/dragonfly/cluster_test.py26# Create a generator object
MEDIUMtests/dragonfly/connection_test.py547 # Create a publisher that sends constantly messages to the channel
MEDIUMtests/dragonfly/replication_test.py2135 # Create a new aux index on master
MEDIUMtests/dragonfly/replication_test.py2746 # Create an empty hashmap
MEDIUMtests/dragonfly/replication_test.py2801 # Create an empty hashmap
MEDIUMtests/dragonfly/replication_test.py2850 # Create a search index with HNSW vector field on the new master
MEDIUMtests/dragonfly/search_test.py846 # Create an index with all field types on master
MEDIUMtests/dragonfly/memory_test.py43 # Create a Dragonfly and fill it up with `type` until it reaches `min_rss`, then make sure that
MEDIUM…fly/valkey_search/valkey_search_test_case_dragonfly.py27 """This class represents a Dragonfly instance as a valkey server node"""
MEDIUMtests/dragonfly/valkey_search/__init__.py31 # Create a mock module for valkey_search_test_case
MEDIUM.github/workflows/docker-dev-release.yml134 # Create a temporary container and copy the binary
MEDIUM.github/workflows/docker-dev-release.yml139 # Create a tar archive
MEDIUM.github/workflows/ci.yml141 # Create a rule that automatically prints stacktrace upon segfault
Deep Nesting31 hits · 26 pts
SeverityFileLineSnippet
LOWtools/parse_allocator_tracking_logs.py13
LOWtools/defrag_mem_test.py76
LOWtools/release_notes_generator.py674
LOWtools/cluster_mgr.py111
LOWtools/cache_logs_player.py22
LOWtools/pubsub/stress.py78
LOWtools/pubsub/stress.py248
LOWtools/pubsub/stress.py105
LOWtools/pubsub/stress.py108
LOWtools/pubsub/celery-test.py97
LOWtools/pubsub/celery-test.py190
LOWtools/pubsub/celery-test.py252
LOWtests/dragonfly/cluster_test.py1594
LOWtests/dragonfly/cluster_test.py1676
LOWtests/dragonfly/instance.py64
LOWtests/dragonfly/conftest.py70
LOWtests/dragonfly/connection_test.py257
LOWtests/dragonfly/connection_test.py2276
LOWtests/dragonfly/connection_test.py63
LOWtests/dragonfly/connection_test.py2298
LOWtests/dragonfly/utility.py270
LOWtests/dragonfly/utility.py710
LOWtests/dragonfly/utility.py982
LOWtests/dragonfly/replication_test.py38
LOWtests/dragonfly/seeder/__init__.py407
LOWtests/dragonfly/seeder/__init__.py465
LOWtests/fakeredis/test/test_hypothesis/base.py263
LOWfuzz/resp_mutator.py324
LOWfuzz/memcache_mutator.py83
LOWfuzz/memcache_mutator.py176
LOWfuzz/memcache_mutator.py236
Redundant / Tautological Comments10 hits · 15 pts
SeverityFileLineSnippet
LOWtools/plot_memtier_latency.py533 # Check if input file exists
LOWtools/balls_bins.py26 # Check if any bin has K or more balls
LOWtools/docker/healthcheck.sh10# Set trap to ensure cleanup runs on exit, regardless of how the script exits
LOWtests/dragonfly/replication_test.py3796 # Check if replica data is consistent
LOW…fly/valkey_search/valkey_search_test_case_dragonfly.py102 # Check if replicas are connected
LOWtests/dragonfly/valkey_search/conftest.py9# Check if integration directory exists
LOWtests/dragonfly/valkey_search/__init__.py13# Check if integration directory exists before attempting import
LOW…ts/dragonfly/valkey_search/sync-valkey-search-tests.sh40 # Check if the file doesn't already have 'from __future__ import annotations'
LOW.github/workflows/docker-dev-release.yml124 # Check if version starts with a release version (v*.*.*)
LOWfuzz/memcache_mutator.py191 # Check if this is a store command that has a data block
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippet
HIGHtools/json_benchmark.py30 r.execute_command('JSON.SET', key, '.', '{"a":123456, "b": "hello", "nested": {"abc": "ffffff", "bfb": null}}')
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWtools/generate-tls-files.sh6# Example usage:
LOWfuzz/triage_crashes.sh5# Usage:
LOWsrc/common/heap_size.h10// Example usage:
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWsrc/redis/crc64.c139 char li[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "
LOWsrc/redis/crc64.c139 char li[] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed "
Verbosity Indicators3 hits · 1 pts
SeverityFileLineSnippet
LOWtests/dragonfly/replication_test.py3140 # Step 1: Populate master with 100 streams, each containing 200 entries
LOWtests/dragonfly/replication_test.py3149 # Step 2: Trim each stream to a random size between 70 and 200
LOWtests/dragonfly/replication_test.py3163 # Step 3: Trim all streams to 0