file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
tests/completion_basic.rs | Rust | mod common;
use common::create_test_backend;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Interface Completion Tests ─────────────────────────────────────────────
#[tokio::test]
async fn test_completion_interface_type_hint_resolves_methods() {
let backend = create_test_backend();
let u... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_class_names.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend_with_stubs};
use phpantom_lsp::Backend;
use phpantom_lsp::composer::parse_autoload_classmap;
use std::collections::HashMap;
use std::fs;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Helper ───────────────────────────────────────... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_cross_file.rs | Rust | mod common;
use common::create_psr4_workspace;
use phpantom_lsp::Backend;
use phpantom_lsp::composer::parse_autoload_classmap;
use std::fs;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Cross-file / PSR-4 resolution tests ────────────────────────────────────
#[tokio::test]
async fn test_cross_fi... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_enums.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend, create_test_backend_with_stubs};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Nullsafe operator ?-> completion ───────────────────────────────────────
/// Test: `Priority::tryFrom($int)?->` should suggest `name` and `value`
/... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_inheritance.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Inheritance tests ──────────────────────────────────────────────────────
#[tokio::test]
async fn test_completion_inherits_public_and_protected_methods_same_file() {
let backend... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_methods.rs | Rust | mod common;
use common::create_test_backend;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Method Insert Text with Parameters ─────────────────────────────────────
#[tokio::test]
async fn test_completion_method_insert_text_no_params() {
let backend = create_test_backend();
let uri = Url... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_mixins.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Basic @mixin usage (same file) ────────────────────────────────────────
#[tokio::test]
async fn test_completion_mixin_methods_available_on_class() {
let backend = create_test_b... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_namespaces.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
#[tokio::test]
async fn test_completion_inside_namespaced_class() {
let backend = create_test_backend();
let uri = Url::parse("file:///namespaced.php").unwrap();
let text = co... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_parent.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── parent:: completion tests ──────────────────────────────────────────────
#[tokio::test]
async fn test_completion_parent_double_colon_shows_static_and_instance() {
let backend =... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_properties.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
#[tokio::test]
async fn test_completion_includes_properties() {
let backend = create_test_backend();
let uri = Url::parse("file:///props.php").unwrap();
let text = concat!(
... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_stub_functions.rs | Rust | mod common;
use common::{create_test_backend, create_test_backend_with_function_stubs};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
/// Helper: open a file and request completion at the given line/character.
async fn complete_at(
backend: &phpantom_lsp::Backend,
uri: &Url,
text: &str,
... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_traits.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Basic trait usage (same file) ──────────────────────────────────────────
#[tokio::test]
async fn test_completion_trait_methods_available_on_class() {
let backend = create_test_... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/completion_variables.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
#[tokio::test]
async fn test_completion_new_self_variable() {
let backend = create_test_backend();
let uri = Url::parse("file:///newself.php").unwrap();
let text = concat!(
... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/composer.rs | Rust | use phpantom_lsp::composer::{
extract_require_once_paths, normalise_path, parse_autoload_classmap, parse_autoload_files,
parse_composer_json, parse_vendor_autoload_psr4, resolve_class_path,
};
use std::fs;
use std::path::Path;
/// Helper: create a temporary workspace with a composer.json and
/// optional PHP c... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_classes.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Same-File Goto Definition Tests ────────────────────────────────────────
#[tokio::test]
async fn test_goto_definition_same_file_class() {
let backend = create_test_backend();
... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_helpers.rs | Rust | use phpantom_lsp::Backend;
use std::collections::HashMap;
use tower_lsp::lsp_types::*;
// ─── Word Extraction Tests ──────────────────────────────────────────────────
#[test]
fn test_extract_word_simple_class_name() {
let content = "<?php\nclass Foo {}\n";
// Cursor on "Foo"
let pos = Position {
l... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_members.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Member Definition: Class Constants ─────────────────────────────────────
#[tokio::test]
async fn test_goto_definition_class_constant_same_file() {
let backend = create_test_bac... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_self_static.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Goto Definition: new self() / new static() / new parent() ─────────────
#[tokio::test]
async fn test_goto_definition_new_self_same_file() {
let backend = create_test_backend();... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_unions.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Union Return Type Resolution ───────────────────────────────────────────
/// When a function returns a union type (`B|C`), goto definition should
/// resolve the member if any part... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/definition_variables.rs | Rust | mod common;
use common::{create_psr4_workspace, create_test_backend};
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Ambiguous Variable Types ───────────────────────────────────────────────
/// When a variable is reassigned inside an `if` block, the variable could be
/// either type after the blo... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/docblock_types.rs | Rust | mod common;
use common::create_test_backend;
use phpantom_lsp::Backend;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Helper ─────────────────────────────────────────────────────────────────
/// Extract completion filter_text names (falling back to label) from a
/// CompletionResponse.
fn comple... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/parser.rs | Rust | mod common;
use common::create_test_backend;
use phpantom_lsp::Visibility;
// ─── PHP Parsing / AST Extraction Tests ─────────────────────────────────────
#[tokio::test]
async fn test_parse_php_extracts_class_and_methods() {
let backend = create_test_backend();
let php = "<?php\nclass User {\n function lo... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/return_type_resolution.rs | Rust | mod common;
use common::create_test_backend;
use phpantom_lsp::Backend;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
// ─── Function Return Type Resolution ────────────────────────────────────────
/// Test: `app()->abort()` — function call return type used to resolve member.
/// The function `app()` r... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
tests/server_lifecycle.rs | Rust | mod common;
use common::create_test_backend;
use tower_lsp::LanguageServer;
use tower_lsp::lsp_types::*;
#[tokio::test]
async fn test_initialize_server_info() {
let backend = create_test_backend();
let params = InitializeParams::default();
let result = backend.initialize(params).await.unwrap();
let s... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
zed-extension/src/lib.rs | Rust | use std::fs;
use zed_extension_api::{self as zed, LanguageServerId, Result};
struct PHPantomExtension {
cached_binary_path: Option<String>,
}
impl PHPantomExtension {
fn language_server_binary_path(
&mut self,
language_server_id: &LanguageServerId,
worktree: &zed::Worktree,
) -> Re... | AJenbo/phpantom_lsp | 3 | A minimal but usable PHP Language Server Protocol (LSP) implementation in Rust. | Rust | AJenbo | Anders Jenbo | |
build.ps1 | PowerShell | . "$PSScriptRoot\scripts\getReleaseNotes.ps1"
. "$PSScriptRoot\scripts\bumpVersion.ps1"
######################################################################
# Step 1: Grab release notes and update solution metadata
######################################################################
$releaseNotes = Get-ReleaseNote... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/bumpVersion.ps1 | PowerShell | function UpdateVersionAndReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[PSCustomObject]$ReleaseNotesResult,
[Parameter(Mandatory=$true)]
[string]$XmlFilePath
)
# Load XML
$xmlContent = New-Object XML
$xmlContent.Load($XmlFilePath)
# Update VersionPrefix a... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/getReleaseNotes.ps1 | PowerShell | function Get-ReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[string]$MarkdownFile
)
# Read markdown file content
$content = Get-Content -Path $MarkdownFile -Raw
# Split content based on headers
$sections = $content -split "####"
# Output object to store result
$ou... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Benchmarks/Program.cs | C# | using System.Reflection;
using Akka.Reminders.Benchmarks;
using BenchmarkDotNet.Running;
using Npgsql;
Console.WriteLine("Akka.Reminders Benchmarks");
Console.WriteLine("-------------------------");
Console.WriteLine("IMPORTANT: Make sure PostgreSQL is running via 'docker-compose up -d' before running benchmarks.");
C... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Benchmarks/ReminderBenchmarkConfig.cs | C# | using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Exporters;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
using Perfolizer.Horology;
namespace Akka.Reminders.Benchmarks;
/// <summary>
/// Custom BenchmarkDotN... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Benchmarks/ReminderStorageBenchmarks.cs | C# | using Akka.Reminders.Storage;
using BenchmarkDotNet.Attributes;
namespace Akka.Reminders.Benchmarks;
/// <summary>
/// Benchmarks the critical path: fetching due reminders in batches and marking them complete.
/// Uses real PostgreSQL via Testcontainers to measure actual I/O performance.
/// </summary>
[Config(typeof... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Benchmarks/SqlReminderBenchmarkBase.cs | C# | using Akka.Actor;
using Akka.Reminders.Sql;
using Akka.Reminders.Sql.Configuration;
using BenchmarkDotNet.Attributes;
using Npgsql;
using NpgsqlTypes;
namespace Akka.Reminders.Benchmarks;
/// <summary>
/// Abstract base class for reminder storage benchmarks using an external PostgreSQL instance.
/// Start PostgreSQL ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/AkkaHostingExtensions.cs | C# | using Akka.Actor;
using Akka.Reminders.Sql;
using Akka.Reminders.Sql.Configuration;
namespace Akka.Reminders;
/// <summary>
/// Extension methods for configuring SQL-based reminder storage with Akka.Hosting.
/// </summary>
public static class SqlReminderStorageHostingExtensions
{
/// <summary>
/// Configures ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Configuration/SqlReminderStorageSettings.cs | C# | namespace Akka.Reminders.Sql.Configuration;
/// <summary>
/// Configuration settings for SQL-based reminder storage.
/// Controls database connection, schema, and initialization behavior.
/// </summary>
public sealed record SqlReminderStorageSettings
{
/// <summary>
/// The database connection string.
/// ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Hosting/SqlStorageExtensions.cs | C# | using Akka.Actor;
using Akka.Reminders.Sql.Configuration;
namespace Akka.Reminders.Sql.Hosting;
/// <summary>
/// Extension methods for configuring SQL storage with Akka.Hosting.
/// </summary>
public static class SqlStorageExtensions
{
/// <summary>
/// Configures SQL Server storage for reminders.
/// </... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Internal/ISqlDialect.cs | C# | using System.Data.Common;
namespace Akka.Reminders.Sql.Internal;
/// <summary>
/// Defines database-specific SQL operations for reminder storage.
/// Abstracts differences between SQL Server, PostgreSQL, etc.
/// </summary>
internal interface ISqlDialect
{
/// <summary>
/// Gets the SQL statement to create th... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Internal/PostgreSqlDialect.cs | C# | using System.Data;
using System.Data.Common;
using Npgsql;
using NpgsqlTypes;
namespace Akka.Reminders.Sql.Internal;
/// <summary>
/// PostgreSQL implementation of the SQL dialect for reminder storage.
/// Uses PostgreSQL-specific features like INSERT ON CONFLICT and TIMESTAMP WITH TIME ZONE.
/// </summary>
internal ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Internal/SqlServerDialect.cs | C# | using System.Data;
using System.Data.Common;
using Microsoft.Data.SqlClient;
namespace Akka.Reminders.Sql.Internal;
/// <summary>
/// SQL Server implementation of the SQL dialect for reminder storage.
/// Uses SQL Server-specific features like MERGE and DATETIME2.
/// </summary>
internal sealed class SqlServerDialect... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Scripts/PostgreSql-Create.sql | SQL | -- Akka.Reminders PostgreSQL Schema Creation Script
-- This script creates the schema and table for storing reminders in PostgreSQL.
--
-- Usage:
-- 1. Review and modify the schema name if needed (default: 'reminders')
-- 2. Review and modify the table name if needed (default: 'scheduled_reminders')
-- 3. Execute... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/Scripts/SqlServer-Create.sql | SQL | -- Akka.Reminders SQL Server Schema Creation Script
-- This script creates the schema and table for storing reminders in SQL Server.
--
-- Usage:
-- 1. Review and modify the schema name if needed (default: 'reminders')
-- 2. Review and modify the table name if needed (default: 'scheduled_reminders')
-- 3. Execute... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Sql/SqlReminderStorage.cs | C# | using System.Data;
using Akka.Actor;
using Akka.Reminders.Sql.Configuration;
using Akka.Reminders.Sql.Internal;
using Akka.Reminders.Storage;
namespace Akka.Reminders.Sql;
/// <summary>
/// SQL-based implementation of <see cref="IReminderStorage"/>.
/// Stores reminders in a SQL database with support for SQL Server a... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/FailableReminderStorage.cs | C# | using Akka.Reminders.Storage;
namespace Akka.Reminders.Tests;
/// <summary>
/// Wraps an <see cref="IReminderStorage"/> and allows selectively failing write operations
/// to test circuit breaker and failure recovery behavior.
/// </summary>
internal sealed class FailableReminderStorage : IReminderStorage
{
priva... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/LocalReminderSpecs.cs | C# | using Akka.Actor;
using Akka.Cluster.Sharding;
using Akka.Hosting;
using Akka.Reminders.Sharding;
using FluentAssertions;
using FluentAssertions.Extensions;
using Xunit;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Demonstrates the use of WithLocalReminders for fast, non-clustered testi... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/NonHostRoleClusterSpecs.cs | C# | using Akka.Actor;
using Akka.Cluster.Hosting;
using Akka.Cluster.Sharding;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using FluentAssertions;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Tests for nodes that don't have th... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderClientExtensionSpecs.cs | C# | using Akka.Actor;
using Akka.Configuration;
using Akka.Hosting;
using Akka.Reminders.Storage;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Tests for ReminderClientExtension behavior, initialization, and ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderClientSpecs.cs | C# | using Akka.Actor;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Unit tests for the ReminderClientExtension and IReminderClient.
/// Tests client functionality in isolation without... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderClusterIntegrationSpecs.cs | C# | using Akka.Actor;
using Akka.Cluster;
using Akka.Cluster.Hosting;
using Akka.Cluster.Sharding;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Integration tests for Akka.Reminders w... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderSchedulerRecoverySpecs.cs | C# | using Akka.Actor;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using Akka.TestKit;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Tests for ReminderScheduler recovery behavior.
/// Validates that the scheduler correctly loads... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderSchedulerTimingSpecs.cs | C# | using Akka.Actor;
using Akka.Configuration;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using Akka.TestKit;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Unit tests for ReminderScheduler timing behavior using TestScheduler.... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/ReminderSettingsValidationSpecs.cs | C# | using Akka.Reminders.Storage;
namespace Akka.Reminders.Tests;
public class ReminderSettingsValidationSpecs
{
[Fact]
public void Validate_ShouldThrow_WhenMaxBatchSizeIsZero()
{
var settings = new ReminderSettings { MaxBatchSize = 0 };
Assert.Throws<ArgumentOutOfRangeException>(() => setting... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/Storage/InMemoryReminderStorageSpecs.cs | C# | using Akka.Reminders.Storage;
namespace Akka.Reminders.Tests.Storage;
/// <summary>
/// Tests for <see cref="InMemoryReminderStorage"/> using the abstract test harness.
/// </summary>
public class InMemoryReminderStorageSpecs : ReminderStorageSpecBase
{
protected override Task<IReminderStorage> CreateStorage()
... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/Storage/ReminderStorageSpecBase.cs | C# | using Akka.Reminders.Storage;
namespace Akka.Reminders.Tests.Storage;
/// <summary>
/// Abstract base class for testing <see cref="IReminderStorage"/> implementations.
/// </summary>
/// <remarks>
/// Inherit from this class and implement <see cref="CreateStorage"/> to test your storage implementation.
/// All tests ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/Storage/SqlReminderStorageSpecs.cs | C# | using Akka.Actor;
using Akka.Reminders.Sql;
using Akka.Reminders.Sql.Configuration;
using Akka.Reminders.Storage;
using Testcontainers.MsSql;
using Testcontainers.PostgreSql;
namespace Akka.Reminders.Tests.Storage;
/// <summary>
/// Tests for <see cref="SqlReminderStorage"/> with SQL Server using Testcontainers.
/// ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders.Tests/WriteCircuitBreakerSpecs.cs | C# | using Akka.Actor;
using Akka.Hosting;
using Akka.Hosting.TestKit;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
using Akka.TestKit;
using Xunit.Abstractions;
namespace Akka.Reminders.Tests;
/// <summary>
/// Tests for the write circuit breaker in ReminderScheduler.
/// Validates that when database writ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/AkkaHostingExtensions.cs | C# | using Akka.Actor;
using Akka.Cluster.Tools.Singleton;
using Akka.Event;
using Akka.Hosting;
namespace Akka.Reminders;
/// <summary>
/// Extension methods for configuring Akka.Reminders with Akka.Hosting.
/// </summary>
public static class AkkaHostingExtensions
{
/// <summary>
/// Adds the Akka.Reminders syste... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/IReminderClient.cs | C# | namespace Akka.Reminders;
/// <summary>
/// Interface for working with persistent reminders.
/// </summary>
public interface IReminderClient
{
/// <summary>
/// Reminders will be set on behalf of this entity.
/// </summary>
public ReminderEntity Entity { get; }
/// <summary>
/// Schedule a on... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/LocalReminderConfigurationBuilder.cs | C# | using Akka.Actor;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
namespace Akka.Reminders;
/// <summary>
/// Configuration builder for local (non-clustered) reminder functionality, designed for testing scenarios.
/// </summary>
/// <remarks>
/// This builder configures reminders without requiring a clus... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderClient.cs | C# | using Akka.Actor;
using Akka.Util;
namespace Akka.Reminders;
/// <summary>
/// Concrete implementation of <see cref="IReminderClient"/> that communicates with
/// the reminder scheduler singleton via a ClusterSingletonProxy.
/// </summary>
internal sealed class ReminderClient : IReminderClient
{
private readonly ... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderClientExtension.cs | C# | using Akka.Actor;
using Akka.Configuration;
using Akka.Hosting;
using Akka.Util;
namespace Akka.Reminders;
/// <summary>
/// <see cref="IExtension"/> for creating <see cref="IReminderClient"/> instances
/// that communicate with the reminder scheduler singleton.
/// </summary>
public sealed class ReminderClientExtens... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderConfigurationBuilder.cs | C# | using Akka.Actor;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
namespace Akka.Reminders;
/// <summary>
/// Fluent builder for configuring the Akka.Reminders system.
/// </summary>
public sealed class ReminderConfigurationBuilder
{
private Func<ActorSystem, IReminderStorage>? _storageFactory;
p... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderProtocol.cs | C# | namespace Akka.Reminders;
public interface IReminderProtocol
{
/// <summary>
/// Which entity to send the reminder message to.
/// </summary>
public ReminderEntity Entity { get; }
}
public interface IReminderCommand : IReminderProtocol;
public interface IReminderQuery : IReminderProtocol;
public in... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderScheduler.cs | C# | using Akka.Actor;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
namespace Akka.Reminders;
/// <summary>
/// Settings needed by the <see cref="ReminderScheduler"/> to schedule reminders.
/// </summary>
public sealed record ReminderSettings
{
/// <summary>
/// If we're grabbing reminders that ar... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/ReminderSetup.cs | C# | using Akka.Actor;
using Akka.Actor.Setup;
using Akka.Cluster.Sharding;
using Akka.Reminders.Sharding;
using Akka.Reminders.Storage;
namespace Akka.Reminders;
/// <summary>
/// Configuration setup for the Akka.Reminders system.
/// </summary>
public sealed class ReminderSetup : Setup
{
/// <summary>
/// Create... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/Sharding/IShardRegionResolver.cs | C# | using Akka.Actor;
using Akka.Cluster.Sharding;
namespace Akka.Reminders.Sharding;
/// <summary>
/// Thin abstraction for resolving the ShardRegion for a given reminder entity.
/// </summary>
/// <remarks>
/// Exists mostly to facilitate testing, so users can test reminder functionality
/// </remarks>
public interfac... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/Storage/IReminderStorage.cs | C# | namespace Akka.Reminders.Storage;
public sealed record ReminderOverview
{
/// <summary>
/// Determined from our actual data set - how soon is the next reminder?
/// </summary>
public TimeSpan TimeUntilNext { get; init; } = TimeSpan.MaxValue;
/// <summary>
/// How many reminders are pendin... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Akka.Reminders/Storage/InMemoryReminderStorage.cs | C# | using System.Collections.Concurrent;
namespace Akka.Reminders.Storage;
/// <summary>
/// In-memory implementation of <see cref="IReminderStorage"/>.
/// </summary>
/// <remarks>
/// Thread-safe implementation using concurrent collections. Suitable for testing and single-node scenarios.
/// Not suitable for distribute... | Aaronontheweb/akka-reminders | 7 | Prototype of a scheduled reminders system for Akka.NET Actors | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
build.ps1 | PowerShell | . "$PSScriptRoot\scripts\getReleaseNotes.ps1"
. "$PSScriptRoot\scripts\bumpVersion.ps1"
######################################################################
# Step 1: Grab release notes and update solution metadata
######################################################################
$releaseNotes = Get-ReleaseNote... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/bumpVersion.ps1 | PowerShell | function UpdateVersionAndReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[PSCustomObject]$ReleaseNotesResult,
[Parameter(Mandatory=$true)]
[string]$XmlFilePath
)
# Load XML
$xmlContent = New-Object XML
$xmlContent.Load($XmlFilePath)
# Update VersionPrefix a... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/getReleaseNotes.ps1 | PowerShell | function Get-ReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[string]$MarkdownFile
)
# Read markdown file content
$content = Get-Content -Path $MarkdownFile -Raw
# Split content based on headers
$sections = $content -split "####"
# Output object to store result
$ou... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/AkkaStreams.HighLevel/Program.cs | C# | using System.Text.Json;
using Akka;
using Akka.Actor;
using Akka.Configuration;
using Akka.Event;
using Akka.Hosting;
using Akka.Streams;
using Akka.Streams.Dsl;
using Akka.Streams.Kafka.Dsl;
using Akka.Streams.Kafka.Helpers;
using Akka.Streams.Kafka.Messages;
using Akka.Streams.Kafka.Settings;
using Confluent.Kafka;
u... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/ConfluentKafka.LowLevel/Program.cs | C# | using System.Collections.Concurrent;
using System.Text.Json;
using Confluent.Kafka;
using Microsoft.Extensions.Logging;
using Shared;
// Parse command line args
var instanceId = args.Length > 0 ? args[0] : "1";
Console.Title = $"Confluent.Kafka Instance {instanceId}";
// Setup simple console logging
using var loggerF... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/DataProducer/Program.cs | C# | using System.Text.Json;
using Akka;
using Akka.Actor;
using Akka.Configuration;
using Akka.Hosting;
using Akka.Streams;
using Akka.Streams.Dsl;
using Akka.Streams.Kafka.Dsl;
using Akka.Streams.Kafka.Messages;
using Akka.Streams.Kafka.Settings;
using Confluent.Kafka;
using Confluent.Kafka.Admin;
using Microsoft.Extensio... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/Class1.cs | C# | namespace Shared;
public class Class1
{
}
| Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/DemoDataGenerator.cs | C# | namespace Shared;
public class DemoDataGenerator
{
private readonly Random _random = new();
private readonly string[] _customerIds =
{
"CUST-001", "CUST-002", "CUST-003", "CUST-004", "CUST-005"
};
private readonly string[] _productIds =
{
"PROD-A", "PROD-B", "PROD-C"... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/KafkaHelper.cs | C# | using Confluent.Kafka;
namespace Shared;
public static class KafkaHelper
{
public static bool CheckKafkaAvailability(string bootstrapServers)
{
Console.WriteLine("Checking Kafka availability...");
var adminConfig = new AdminClientConfig { BootstrapServers = bootstrapServers };
... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/KafkaSetup.cs | C# | using Testcontainers.Kafka;
namespace Shared;
public class KafkaSetup : IAsyncDisposable
{
private KafkaContainer? _container;
public string BootstrapServers { get; private set; } = "";
public async Task StartAsync()
{
Console.WriteLine("Starting Kafka container...");
... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/Messages.cs | C# | namespace Shared;
public record OrderEvent(
string OrderId,
string CustomerId,
decimal Amount,
DateTime Timestamp,
string ProductId
);
public record ProcessedOrder(
string OrderId,
string CustomerId,
decimal Amount,
DateTime ProcessedAt,
ProcessingStatus Status,
string? Err... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Shared/OrderProcessor.cs | C# | using System.Collections.Concurrent;
namespace Shared;
public class OrderProcessor
{
private readonly Random _random = new();
private readonly ConcurrentDictionary<string, int> _attemptCounts = new();
// Simulate different failure scenarios
private readonly HashSet<string> _poisonOrderIds = new()... | Aaronontheweb/akkastreamskafka-demos | 5 | Akka.NET's Akka.Streams.Kafka library examples and demos | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
build.ps1 | PowerShell | . "$PSScriptRoot\scripts\getReleaseNotes.ps1"
. "$PSScriptRoot\scripts\bumpVersion.ps1"
######################################################################
# Step 1: Grab release notes and update solution metadata
######################################################################
$releaseNotes = Get-ReleaseNote... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/bumpVersion.ps1 | PowerShell | function UpdateVersionAndReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[PSCustomObject]$ReleaseNotesResult,
[Parameter(Mandatory=$true)]
[string]$XmlFilePath
)
# Load XML
$xmlContent = New-Object XML
$xmlContent.Load($XmlFilePath)
# Update VersionPrefix a... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
scripts/getReleaseNotes.ps1 | PowerShell | function Get-ReleaseNotes {
param (
[Parameter(Mandatory=$true)]
[string]$MarkdownFile
)
# Read markdown file content
$content = Get-Content -Path $MarkdownFile -Raw
# Split content based on headers
$sections = $content -split "####"
# Output object to store result
$ou... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Commands/AnalyzeCommand.cs | C# | using System.Diagnostics;
using CommandLine;
using Slopwatch.Analysis;
using Slopwatch.Baseline;
using Slopwatch.Cmd.Output;
using Slopwatch.Detection;
using Slopwatch.Detection.Rules;
namespace Slopwatch.Cmd.Commands;
/// <summary>
/// Command for analyzing files for sloppy code patterns.
/// </summary>
[Verb("analy... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Commands/DefaultPatterns.cs | C# | namespace Slopwatch.Cmd.Commands;
/// <summary>
/// Default file patterns used by slopwatch commands.
/// </summary>
internal static class DefaultPatterns
{
/// <summary>
/// Default glob patterns for scanning .NET projects.
/// Includes C# source files and MSBuild project/props/targets files.
/// </su... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Commands/InitCommand.cs | C# | using CommandLine;
using Slopwatch.Analysis;
using Slopwatch.Baseline;
using Slopwatch.Detection;
using Slopwatch.Detection.Rules;
namespace Slopwatch.Cmd.Commands;
/// <summary>
/// Command for initializing slopwatch in a project.
/// Creates .slopwatch directory and baseline file.
/// </summary>
[Verb("init", HelpT... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Commands/ListRulesCommand.cs | C# | using CommandLine;
using Slopwatch.Detection;
using Slopwatch.Detection.Rules;
namespace Slopwatch.Cmd.Commands;
/// <summary>
/// Command for listing all available detection rules.
/// </summary>
[Verb("list-rules", HelpText = "List all available detection rules")]
public sealed class ListRulesCommand
{
/// <sum... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Output/ConsoleOutputFormatter.cs | C# | using Slopwatch.Detection;
namespace Slopwatch.Cmd.Output;
/// <summary>
/// Formats detection results for console output with color support.
/// </summary>
public sealed class ConsoleOutputFormatter : IOutputFormatter
{
private readonly bool _useColors;
/// <summary>
/// Initializes a new instance of th... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Output/IOutputFormatter.cs | C# | using Slopwatch.Detection;
namespace Slopwatch.Cmd.Output;
/// <summary>
/// Interface for formatting detection results for output.
/// </summary>
public interface IOutputFormatter
{
/// <summary>
/// Formats detection results for output.
/// </summary>
/// <param name="results">The detection results ... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Output/JsonOutputFormatter.cs | C# | using System.Text.Encodings.Web;
using System.Text.Json;
using Slopwatch.Detection;
namespace Slopwatch.Cmd.Output;
/// <summary>
/// Formats detection results as JSON.
/// </summary>
public sealed class JsonOutputFormatter : IOutputFormatter
{
private static readonly JsonSerializerOptions JsonOptions = new()
... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch.Cmd/Program.cs | C# | using CommandLine;
using Slopwatch.Cmd.Commands;
namespace Slopwatch.Cmd;
/// <summary>
/// Main entry point for the slopwatch CLI tool.
/// </summary>
public static class Program
{
/// <summary>
/// Main entry point.
/// </summary>
/// <param name="args">Command line arguments.</param>
/// <retur... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Analysis/AnalysisOptions.cs | C# | using Slopwatch.Detection;
namespace Slopwatch.Analysis;
/// <summary>
/// Configuration options for file analysis.
/// </summary>
public sealed class AnalysisOptions
{
/// <summary>
/// Gets or sets the minimum severity level for reporting detections.
/// </summary>
/// <remarks>
/// Detections w... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Analysis/FileAnalyzer.cs | C# | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.Extensions.FileSystemGlobbing;
using Microsoft.Extensions.FileSystemGlobbing.Abstractions;
using Slopwatch.Detection;
namespace Slopwatch.Analysis;
/// <summary>
/// Main analysis engine for detecting code patterns across files.
/// </... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Analysis/ParallelAnalyzer.cs | C# | using Akka;
using Akka.Actor;
using Akka.Streams;
using Akka.Streams.Dsl;
using Slopwatch.Detection;
namespace Slopwatch.Analysis;
/// <summary>
/// Provides parallel file analysis using Akka.Streams.
/// </summary>
/// <remarks>
/// Creates a temporary ActorSystem with logging suppressed for efficient parallel proce... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Analysis/RuleRegistry.cs | C# | using Microsoft.Extensions.FileSystemGlobbing;
using Slopwatch.Detection;
namespace Slopwatch.Analysis;
/// <summary>
/// Manages the registration and discovery of detection rules.
/// </summary>
/// <remarks>
/// The registry maintains a collection of rules and provides efficient lookup
/// of rules applicable to sp... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Baseline/BaselineEntry.cs | C# | // -----------------------------------------------------------------------
// <copyright file="BaselineEntry.cs" company="Aaron Stannard">
// Copyright (C) 2025 - 2025 Aaron Stannard
// </copyright>
// -----------------------------------------------------------------------
using System.Security.Cryptography;
using... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Baseline/BaselineFile.cs | C# | // -----------------------------------------------------------------------
// <copyright file="BaselineFile.cs" company="Aaron Stannard">
// Copyright (C) 2025 - 2025 Aaron Stannard
// </copyright>
// -----------------------------------------------------------------------
using System.Text.Encodings.Web;
using Sys... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Configuration/SlopwatchConfig.cs | C# | using System.Text.Json.Serialization;
namespace Slopwatch.Configuration;
/// <summary>
/// Root configuration for Slopwatch suppressions and rules.
/// </summary>
/// <remarks>
/// This configuration file allows project-level suppression management through
/// a .slopwatch/config.json file in the repository root.
///... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Detection/DetectionContext.cs | C# | using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
namespace Slopwatch.Detection;
/// <summary>
/// Provides context information for detection rules to analyze a file.
/// </summary>
/// <param name="FilePath">The full path to the file being analyzed.</param>
/// <param name="FileName">The name of the... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Detection/DetectionResult.cs | C# | namespace Slopwatch.Detection;
/// <summary>
/// Represents a single detection result from a rule analysis.
/// </summary>
/// <param name="RuleId">
/// The unique identifier for the rule that produced this result (e.g., "SW001").
/// </param>
/// <param name="RuleName">
/// The human-readable name of the rule that pr... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Detection/DetectionSeverity.cs | C# | namespace Slopwatch.Detection;
/// <summary>
/// Represents the severity level of a detected code pattern.
/// </summary>
public enum DetectionSeverity
{
/// <summary>
/// Informational finding that may indicate a pattern worth reviewing
/// but is not necessarily problematic.
/// </summary>
Info =... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
src/Slopwatch/Detection/IDetectionRule.cs | C# | namespace Slopwatch.Detection;
/// <summary>
/// Defines the contract for a detection rule that analyzes code for specific patterns.
/// </summary>
/// <remarks>
/// Detection rules are the core extensibility point for slopwatch. Each rule is responsible
/// for identifying a specific category of potentially LLM-gener... | Aaronontheweb/dotnet-slopwatch | 60 | Catch naughty LLM reward-hacking and bad behavior for .NET coding | C# | Aaronontheweb | Aaron Stannard | Petabridge, LLC |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.