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
src/Termina/Routing/RouteParser.cs
C#
using System.Text.RegularExpressions; namespace Termina.Routing; /// <summary> /// Parses route template strings into <see cref="RouteTemplate"/> objects. /// </summary> public static partial class RouteParser { // Matches parameter segments like {id} or {id:int} [GeneratedRegex(@"^\{([a-zA-Z_][a-zA-Z0-9_]*)(...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/RouteSegment.cs
C#
namespace Termina.Routing; /// <summary> /// Represents a segment of a route template. /// </summary> /// <remarks> /// A segment can be either: /// <list type="bullet"> /// <item>A literal segment (e.g., "tasks" in "/tasks/123")</item> /// <item>A parameter segment with optional type constraint (e.g., "{id:int}")...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Routing/RouteTemplate.cs
C#
namespace Termina.Routing; /// <summary> /// A parsed route template consisting of segments. /// </summary> /// <remarks> /// Examples: /// <list type="bullet"> /// <item>"/tasks" → one literal segment</item> /// <item>"/tasks/{id}" → two segments: literal "tasks", parameter "id"</item> /// <item>"/tasks/{id:int...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/TerminaApplication.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using System.Reactive.Subjects; using System.Threading.Channels; using Microsoft.Extensions.DependencyInjection; using Termina....
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/AnsiCodes.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// ANSI escape code constants for terminal control. /// </summary> public static class AnsiCodes { /// <summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/AnsiTerminal.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Text; using Termina.Diagnostics; namespace Termina.Terminal; /// <summary> /// Real terminal implementation using ANSI escape sequences. /// Writes...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/Color.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// Represents a color for terminal rendering. /// Supports default, 256-color, and true color (24-bit RGB) modes. /// ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/DiffingTerminal.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Text; namespace Termina.Terminal; /// <summary> /// Terminal wrapper that provides diff-based rendering to eliminate flickering. /// Uses double-bu...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/FrameBuffer.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// A 2D buffer of terminal cells for double-buffering and diff-based rendering. /// </summary> /// <remarks> /// The f...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/IAnsiTerminal.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// Abstraction over terminal output for ANSI escape sequence rendering. /// Implementations can target real consoles o...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/TerminalCell.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// Represents a single cell in the terminal buffer. /// Each cell contains a character and its associated styling (col...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/TextDecoration.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// Text decoration flags that can be combined for rich text styling. /// </summary> /// <remarks> /// These dec...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/TextStyle.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. namespace Termina.Terminal; /// <summary> /// Immutable style specification for text rendering, combining foreground color, /// background color, and text...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Terminal/VirtualTerminal.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System.Text; namespace Termina.Terminal; /// <summary> /// Virtual terminal implementation for testing. /// Captures all output to an in-memory buffer tha...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/Termina/Usings.cs
C#
// Global usings for Termina framework // (Will be populated as framework develops)
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Analyzers/LayoutNodeInViewModelAnalyzerTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Microsoft.CodeAnalysis; using Termina.Generators; using Termina.Tests.Utility; namespace Termina.Tests.Analyzers; using Verify = TerminaVerifier<La...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/BlockSegmentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Terminal; using Xunit; namespace Termina.Tests.Components.Streaming; public...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/CompositeTextSegmentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Terminal; namespace Termina.Tests.Components.Streamin...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/PersistedStreamBufferStyledTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Terminal; namespace Termina.Tests.Components.Streaming; /// <summary> /// Tests for styled text functionality ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/StyledLineTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Terminal; namespace Termina.Tests.Components.Streaming; /// <summary> /// Tests for the StyledLine class. /// ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/StyledSegmentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Terminal; namespace Termina.Tests.Components.Streaming; /// <summary> /// Tests for the StyledSegment struct. ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Components/Streaming/StyledWordWrapperTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Terminal; namespace Termina.Tests.Components.Streaming; /// <summary> /// Tests for the StyledWordWrapper clas...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Input/FocusManagerTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Input; using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Input; //...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Input/PageInputHandlerTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Disposables; using Termina.Input; using Termina.Layout; using Termina.Reactive; using Termina.Rendering; using Termina.Terminal; nam...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Input/PageKeyBindingsTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using Termina.Input; namespace Termina.Tests.Input; /// <summary> /// Tests for the PageKeyBindings class. /// </summary> public class PageKeyBindingsTes...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/GridNodeTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Layout; /// <summary> /// Test...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/LayoutNodeLifecycleTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Layout; namespace Termina.Tests.Layout; /// <summary> //...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/ModalNodeTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Layout; ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/ReactiveLayoutNodeInvalidationTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Layout; using Termina.Rendering; namespace Termina.Tests.Layout; /// <summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/ScreenBoundsTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Layout; namespace Termina.Tests.Layout; /// <summary> /// Tests for ScreenBounds. /// </summary> public class ScreenBoundsTests { [Fact] p...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/SelectionItemContentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Layout; using Termina.Terminal; using Streaming = Term...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/SelectionListNodeTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Layout; using Termina.Rendering; using Termina.Termina...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/StreamingTextNodeBlockSegmentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Layout; using Termina.Terminal; namespace Termina.Tests.Layout; /// <summar...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/StreamingTextNodeStyledTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Components.Streaming; using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Layout; /// <summary> /// Tes...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/StreamingTextNodeTrackedSegmentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using Termina.Components.Streaming; using Termina.Layout; using Termina.Terminal; using SpinnerStyle = T...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/TextInputNodeTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Layout; namespace Termina.Tests.Layout; /// <summary> /// Tests for the TextInputNode layout component. /// </summary> public class TextInputNodeT...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/TextNodeIntegrationTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Layout; /// <summary> /// Integration tests for TextNode wrapping...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Layout/TextNodeTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Layout; using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Layout; /// <summary> /// Tests for the TextNode layout component...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Reactive/ReactivePageLifecycleTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Reactive; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Input; using Termina.Layout; using Termina.Pages; using Te...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/ReactiveViewModelTests.cs
C#
using System.Reactive.Disposables; using System.Reactive.Linq; using System.Reactive.Subjects; using Termina.Input; using Termina.Reactive; namespace Termina.Tests; /// <summary> /// Tests for the reactive ViewModel infrastructure. /// </summary> public class ReactiveViewModelTests { [Fact] public void Reacti...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Rendering/PanelTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Rendering; /// <summary> /// Tests for the Panel component (v2). /// </summary> public ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Rendering/RegionRenderContextTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Rendering; /// <summary> /// Tests for RegionRenderContext - coordinate translation and...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Rendering/ScrollableContentTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Rendering; /// <summary> /// Tests for the ScrollableContent component. /// </summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Rendering/TextInputTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Rendering; /// <summary> /// Tests for the TextInput component (v2). /// </summary> pub...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Rendering/TextTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Rendering; using Termina.Terminal; namespace Termina.Tests.Rendering; /// <summary> /// Tests for the Text component. /// </summary> public class ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Routing/RouteConstraintTests.cs
C#
using Termina.Routing; namespace Termina.Tests.Routing; /// <summary> /// Tests for route constraint validation and parsing. /// </summary> public class RouteConstraintTests { [Theory] [InlineData("42", 42)] [InlineData("0", 0)] [InlineData("-1", -1)] [InlineData("2147483647", int.MaxValue)] p...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Routing/RouteMatcherTests.cs
C#
using Termina.Routing; namespace Termina.Tests.Routing; /// <summary> /// Tests for route matching logic. /// </summary> public class RouteMatcherTests { [Fact] public void TryMatch_ExactLiteralPath_Matches() { var matcher = new RouteMatcher(); matcher.AddRoute(RouteParser.Parse("/tasks"),...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Routing/RouteParserTests.cs
C#
using Termina.Routing; namespace Termina.Tests.Routing; /// <summary> /// Tests for route template parsing. /// </summary> public class RouteParserTests { [Fact] public void Parse_SimpleRoute_ReturnsTemplate() { var template = RouteParser.Parse("/"); Assert.Equal("/", template.Template); ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/AnsiCodesTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for ANSI escape code generation. /// </summary> public class AnsiCodesTests { ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/ColorTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for the Color struct. /// </summary> public class ColorTests { [Fact] ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/DiffingTerminalTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for DiffingTerminal - the double-buffered terminal wrapper that eliminates fli...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/FrameBufferTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for FrameBuffer - the 2D buffer used for diff-based rendering. /// </summary> ...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/TextDecorationTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for the TextDecoration flags enum. /// </summary> public class TextDecorationT...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/TextStyleTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for the TextStyle struct. /// </summary> public class TextStyleTests { [Fa...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Terminal/VirtualTerminalTests.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Termina.Terminal; namespace Termina.Tests.Terminal; /// <summary> /// Tests for VirtualTerminal - the in-memory terminal implementation for testing. /// <...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/Termina.Tests/Utility/TerminaVerifier.cs
C#
// Copyright (c) Petabridge, LLC. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. using System.Diagnostics.CodeAnalysis; using System.Globalization; using Microsoft.CodeAnalysis.CSharp.Testing; using Microsoft.CodeAnalysis.Diagnostics; u...
Aaronontheweb/termina
28
Reactive, AOT-compatible Terminal UI (TUI)
C#
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install-desktop-app.sh
Shell
#!/bin/bash set -e echo "🚀 Installing Elgato VirtualCam Desktop Application..." # Check for existing installation if [[ -f "$HOME/.config/autostart/elgato-virtualcam.desktop" ]] || pgrep -f "python3 virtualcam_app.py" > /dev/null; then echo "⚠️ Existing installation detected!" read -p "❓ Reinstall? This wil...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install.sh
Shell
#!/usr/bin/env bash set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SRC_DIR="$SCRIPT_DIR/src" SERVICE_NAME="elgato-virtualcam.service" INSTALL_DIR="$HOME/.config/systemd/user" TARGET_SERVICE="$INSTALL_DIR/$SERVICE_NAME" TARGET_SCRIPT="$HOME/.local/bin/elgato-virtualcam.sh" REQUIRED_PKGS=...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/elgato-virtualcam.sh
Shell
#!/usr/bin/env bash set -euo pipefail # Accept input device or try to auto-detect Elgato Facecam INPUT_DEVICE="${1:-}" if [[ -z "$INPUT_DEVICE" ]]; then echo "🔍 Auto-detecting Elgato Facecam..." INPUT_DEVICE=$(v4l2-ctl --list-devices 2>/dev/null | awk '/Elgato Facecam/{getline; print $1}' | head -n 1) if [[ ...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
test-desktop-app.sh
Shell
#!/bin/bash set -e echo "🧪 Testing Elgato VirtualCam Desktop Application..." # Function to check command availability check_command() { if command -v "$1" >/dev/null 2>&1; then echo "✅ $1 is available" return 0 else echo "❌ $1 is not available" return 1 fi } # Function to...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
test_basic.py
Python
#!/usr/bin/env python3 """ Basic unit tests for Elgato VirtualCam application. Tests that don't require hardware or GUI components. """ import unittest import tempfile import shutil import json from pathlib import Path from unittest.mock import patch, MagicMock # Import components to test from virtualcam_app import C...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tray-controller/virtualcam-tray.py
Python
#!/usr/bin/env python3 """ Elgato VirtualCam Tray Icon Controller A system tray utility for controlling the elgato-virtualcam.service with theme-aware icons and service status monitoring. """ import sys import os import subprocess from PyQt5.QtWidgets import QApplication, QSystemTrayIcon, QMenu, QMessageBox, QAction ...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
uninstall-desktop-app.sh
Shell
#!/bin/bash set -e echo "🛑 Uninstalling Elgato VirtualCam Desktop Application..." # Stop running application echo "🔄 Stopping running application..." pkill -f "python3 virtualcam_app.py" || echo " No running application found" # Remove autostart entry echo "🗑️ Removing autostart entry..." AUTOSTART_FILE="$HOME...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
uninstall.sh
Shell
#!/usr/bin/env bash set -euo pipefail # Check if running as root/sudo and warn user if [[ $EUID -eq 0 ]]; then echo "⚠️ Warning: This script is running as root/sudo." echo " The uninstall script should typically be run as a regular user." echo " However, we'll attempt to proceed with the current user...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
virtualcam_app.py
Python
#!/usr/bin/env python3 """ Elgato VirtualCam Desktop Application A unified desktop application for managing Elgato Facecam virtual camera streaming. Replaces the systemd service approach with a single Python application. Based on the Witticism project model for robust desktop application architecture. """ import jso...
Aaronontheweb/ubuntu-elgato-facecam
11
A Linux tray application aimed at making it easy to work with Elgato Facecam.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
__main__.py
Python
#!/usr/bin/env python3 """ Entry point for running witticism as a module or with uvx. """ import sys from pathlib import Path # Add src to path sys.path.insert(0, str(Path(__file__).parent / "src")) from witticism.main import main if __name__ == "__main__": main()
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
dev-scripts/test_app.py
Python
#!/usr/bin/env python3 """ Test script to verify the application structure without WhisperX dependencies """ import sys import logging from pathlib import Path # Add src to path sys.path.insert(0, str(Path(__file__).parent / "src")) # Test imports try: print("Testing imports...") # These should work wit...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
dev-scripts/test_minimal.py
Python
#!/usr/bin/env python3 """ Minimal test to verify core functionality with mock components. """ import sys from pathlib import Path # Add src to path sys.path.insert(0, str(Path(__file__).parent / "src")) # Test the mock WhisperX print("Testing mock WhisperX implementation...") from witticism.core.mock_whisperx impo...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
dev-scripts/test_progress_loading.py
Python
#!/usr/bin/env python3 """ Test script to demonstrate the new progress indicator and timeout functionality. This is a simple test to verify the model loading progress tracking works. """ import sys import time from pathlib import Path # Add src to path so we can import our modules src_path = Path(__file__).parent / "...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
dev-scripts/test_toggle_mode.py
Python
#!/usr/bin/env python3 """ Test script to verify toggle mode functionality. Tests both push-to-talk and toggle dictation modes. """ import sys from pathlib import Path import time # Add src to path sys.path.insert(0, str(Path(__file__).parent / "src")) print("Testing Witticism with Toggle Mode Support") print("=" * ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
dev-scripts/test_voice.py
Python
#!/usr/bin/env python3 """ Simple test script to verify WhisperX voice transcription works. Hold ENTER to record, release to transcribe. """ import sys from pathlib import Path import time # Add src to path sys.path.insert(0, str(Path(__file__).parent / "src")) print("Testing WhisperX voice transcription...") # Imp...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install.ps1
PowerShell
# Windows PowerShell installer for Witticism # Handles Python version management, dependencies, GPU detection, and auto-start setup # Works around Python 3.13 compatibility issues by using Python 3.12 automatically param( [switch]$SkipAutoStart, [switch]$CPUOnly, [switch]$Help, [switch]$ForceReinstall,...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
install.sh
Shell
#!/bin/bash # One-command installer for Witticism # Handles everything: GPU detection, dependencies, auto-start set -e # Parse command line arguments VERSION="" FORCE_REINSTALL=false HELP=false while [[ $# -gt 0 ]]; do case $1 in --version) VERSION="$2" shift 2 ;; ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/fix-nvidia-suspend.sh
Shell
#!/bin/bash # Systemd sleep hook to fix nvidia_uvm after suspend/resume # Install to: /usr/lib/systemd/system-sleep/fix-nvidia-suspend case "$1" in pre) # Before suspend - nothing needed with our config ;; post) # After resume - reload nvidia_uvm module echo "$(date): Reloading ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/generate_icon.py
Python
#!/usr/bin/env python3 """Generate Witticism icon as PNG file.""" import sys from pathlib import Path # Add parent directory to path sys.path.insert(0, str(Path(__file__).parent.parent / "src")) from PyQt5.QtWidgets import QApplication from witticism.ui.icon_utils import create_witticism_icon def main(): app = ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/install_desktop_entry.sh
Shell
#!/bin/bash # Install desktop entry and icon for Witticism set -e # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color echo -e "${GREEN}Installing Witticism desktop entry...${NC}" # Get the directory where this script is located SCRIPT_DIR="$( cd "$( dirname "${BASH_SO...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
scripts/uninstall_desktop_entry.sh
Shell
#!/bin/bash # Uninstall desktop entry and icon for Witticism set -e # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' # No Color echo -e "${GREEN}Uninstalling Witticism desktop entry...${NC}" # Remove desktop entry desktop_file="$HOME/.local/share/applications/witticism.desktop" if [ -f "$desktop...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/__init__.py
Python
try: from ._version import version as __version__ except ImportError: __version__ = "0.0.0+unknown"
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/audio_capture.py
Python
import logging import pyaudio import numpy as np import webrtcvad from queue import Queue from threading import Thread, Event, Lock from typing import Optional, Callable, List import time logger = logging.getLogger(__name__) # PortAudio error codes that indicate recoverable vs fatal errors RECOVERABLE_ERRORS = { ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/continuous_transcriber.py
Python
import logging import numpy as np from threading import Thread, Event from queue import Queue import time from typing import Callable logger = logging.getLogger(__name__) class ContinuousTranscriber: """Handles continuous transcription with proper threading""" def __init__(self, engine, output_callback: Cal...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/dependency_validator.py
Python
""" Dependency validation system for Witticism. This module provides comprehensive validation of system and Python dependencies to prevent silent failures during initialization. """ from dataclasses import dataclass from typing import List, Optional, Dict, Any from enum import Enum import logging import os import pla...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/hotkey_manager.py
Python
import logging import threading from pynput import keyboard from typing import Optional, Callable logger = logging.getLogger(__name__) # Default debounce delay in seconds (30ms as suggested in #95) DEFAULT_PTT_DEBOUNCE_MS = 30 class HotkeyManager: def __init__(self, config_manager=None): self.listener =...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/mock_whisperx.py
Python
""" Mock WhisperX module for testing without the actual WhisperX library. This allows us to test the application structure and UI without GPU dependencies. """ import logging import time import numpy as np from typing import Dict, Any, Tuple logger = logging.getLogger(__name__) class MockWhisperXModel: def __in...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/transcription_pipeline.py
Python
import logging import numpy as np from typing import Optional, Callable from queue import Queue from threading import Thread, Event import time logger = logging.getLogger(__name__) class TranscriptionPipeline: def __init__( self, whisperx_engine, min_audio_length: float = 0.5, max...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/core/whisperx_engine.py
Python
import logging from typing import Optional, Dict, Any, Tuple, Callable import numpy as np import threading import time # Try to import WhisperX, fall back to mock if not available try: import torch import whisperx WHISPERX_AVAILABLE = True logger = logging.getLogger(__name__) logger.info("[WHISPERX...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/main.py
Python
#!/usr/bin/env python3 import sys import signal import logging import argparse import os import platform from pathlib import Path def _preload_cudnn_libraries(): """ Preload PyTorch's bundled cuDNN libraries before torch imports them. PyTorch bundles cuDNN but doesn't automatically make it discoverable b...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/platform/__init__.py
Python
# Platform-specific functionality
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/platform/sleep_monitor.py
Python
import logging import os import platform import subprocess from abc import ABC, abstractmethod from typing import Callable logger = logging.getLogger(__name__) class SleepMonitor(ABC): """Abstract interface for system sleep/resume monitoring""" def __init__(self, on_suspend: Callable[[], None], on_resume: C...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/about_dialog.py
Python
import sys from pathlib import Path from PyQt5.QtWidgets import (QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPushButton, QTextBrowser, QTabWidget, QWidget) from PyQt5.QtGui import QFont import importlib.metadata from witticism.ui.icon_utils import create_witticism_icon class AboutDialog(QD...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/cuda_health_dialog.py
Python
from PyQt5.QtWidgets import (QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPushButton, QTextEdit, QFrame) from PyQt5.QtCore import Qt, QThread, pyqtSignal from PyQt5.QtGui import QFont, QIcon from typing import Optional, Dict, Any import logging logger = logging.getLogger(__name__) class He...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/hotkey_input_widget.py
Python
from PyQt5.QtWidgets import (QWidget, QHBoxLayout, QPushButton, QKeySequenceEdit, QLabel) from PyQt5.QtCore import pyqtSignal from PyQt5.QtGui import QKeySequence class HotkeyInputWidget(QWidget): keySequenceChanged = pyqtSignal(str) def __init__(self, default_key="", parent=None)...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/icon_utils.py
Python
from PyQt5.QtGui import QIcon, QPixmap, QPainter, QFont, QColor from PyQt5.QtCore import Qt def create_witticism_icon(size: int = 64, color: str = "green") -> QIcon: """Create the Witticism icon programmatically. Args: size: Icon size in pixels color: Icon color ("green", "red", "yellow", "gr...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/settings_dialog.py
Python
from PyQt5.QtWidgets import (QDialog, QVBoxLayout, QHBoxLayout, QLabel, QComboBox, QSlider, QGroupBox, QFormLayout, QDialogButtonBox, QDoubleSpinBox) from PyQt5.QtCore import Qt, pyqtSignal from PyQt5.QtGui import QKeySequence from witticism.ui.icon_utils import...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/ui/system_tray.py
Python
import logging from pathlib import Path from concurrent.futures import ThreadPoolExecutor, TimeoutError as FuturesTimeoutError from PyQt5.QtWidgets import QApplication, QSystemTrayIcon, QMenu, QAction, QMessageBox from PyQt5.QtCore import pyqtSignal, QThread, Qt, QTimer from PyQt5.QtGui import QIcon, QPixmap from typin...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/utils/config_manager.py
Python
import copy import json import logging from pathlib import Path from typing import Dict, Any import platformdirs logger = logging.getLogger(__name__) class ConfigManager: def __init__(self, app_name: str = "witticism"): self.app_name = app_name # Get platform-specific config directory se...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/utils/logging_config.py
Python
import logging import sys from pathlib import Path from logging.handlers import RotatingFileHandler from typing import Optional def setup_logging( level: str = "INFO", log_file: Optional[Path] = None, console: bool = True ) -> None: log_level = getattr(logging, level.upper(), logging.INFO) # Root...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
src/witticism/utils/output_manager.py
Python
import logging import time from pynput.keyboard import Controller import pyperclip logger = logging.getLogger(__name__) class OutputManager: def __init__(self, output_mode: str = "type"): self.output_mode = output_mode self.keyboard = Controller() logger.info(f"OutputManager initialized ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
test-ci-local.sh
Shell
#!/bin/bash # Test CI checks locally before pushing echo "🧪 Testing CI checks locally..." echo # 1. Syntax check echo "1️⃣ Checking Python syntax..." find src -name "*.py" -type f | xargs python3 -m py_compile 2>&1 if [ $? -eq 0 ]; then echo "✅ Syntax check passed" else echo "❌ Syntax errors found" exit ...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/test_config_manager.py
Python
#!/usr/bin/env python3 """ Unit tests for ConfigManager - can run in CI without GPU dependencies """ import json import tempfile import unittest from pathlib import Path import sys # Add src to path for import sys.path.insert(0, str(Path(__file__).parent.parent / "src")) from witticism.utils.config_manager import Co...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC
tests/test_sleep_monitoring.py
Python
import unittest import os from unittest.mock import Mock, patch from src.witticism.platform.sleep_monitor import ( MockSleepMonitor, create_sleep_monitor, _is_test_environment ) class TestSleepMonitoring(unittest.TestCase): """Test sleep monitoring functionality""" def test_mock_sleep_monitor...
Aaronontheweb/witticism
24
WhisperX-powered voice transcription tool that types text directly at your cursor position. Hold F9 to record, release to transcribe.
Python
Aaronontheweb
Aaron Stannard
Petabridge, LLC