7 Repos
Identifies variable-length sequences of items within an input that match a segment variable.
Distinct from Pattern Matching: Specializes in matching sequences of arbitrary length, unlike generic structural pattern matching
Explore 7 awesome GitHub repositories matching part of an awesome list · Variable-Length Segment Matching. Refine with filters or upvote what's useful.
30 Seconds of Python is a curated collection of short, reusable Python code snippets designed for quick reference and immediate reuse. It provides an interactive browser that lets you explore snippets organized by tags, search across names and descriptions, and copy code to your clipboard with a single click. The collection covers a broad range of common programming tasks, including list and dictionary operations, string formatting and manipulation, date and time calculations, and color format conversion. It also includes utilities for data transformation, such as converting between case styl
Provides functions to locate list elements matching a test condition, returning first, last, or all matches.
Penrose is a compiler that transforms structured mathematical notation into optimized SVG diagrams. It uses a three-stage pipeline of separate domain, substance, and style files to define mathematical objects, relationships, and visual presentation, then solves continuous optimization problems with user-defined spatial constraints and objectives to automatically arrange diagram elements. The system separates diagram content from visual style using distinct declarative languages, and provides a typed domain language with subtype hierarchies for mathematical objects. It supports embedding compi
Groups multiple Substance objects into named collections for aggregate operations across diagram elements.
This project is a comprehensive Lisp AI implementation library that provides reference implementations for various artificial intelligence paradigms and symbolic algorithms. It functions as a multi-purpose toolkit containing a logic programming engine, a natural language processing suite, and a symbolic mathematics toolkit. The library is distinguished by its diverse architectural frameworks, including a Prolog-style execution engine that uses unification and goal-driven backtracking, and a system for simulating human decision-making through expert system shells and certainty factors. It also
Identifies sequences of items in an input that match a segment variable for variable-length matching.
Supports matching lists with exact element counts using constructor syntax.
This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a match expression that allows developers to inspect and branch on data structures using patterns with destructuring, guards, and logical combinators. The proposal defines a custom matcher protocol via a well-known symbol, enabling objects to implement user-defined matching logic with arbitrary extraction and decomposition. The proposal supports matching against literal primitives using SameValue equality with special handling for signed zero and NaN, as well as relational comparison
Matches iterable values against nested element patterns with optional variable binding.
Dieses Projekt ist ein jQuery-Input-Mask-Plugin und eine Bibliothek zur Durchsetzung spezifischer Formate in Formularfeldern und HTML-Elementen. Es fungiert als Tool zur Maskierung und Bereinigung von Formulareingaben, das die Zeicheneingabe einschränkt und automatisch Trennzeichen für Muster wie Datumsangaben und Telefonnummern einfügt. Die Bibliothek unterstützt flexible Maskierung durch optionale und rekursive Muster, die sich je nach Datenmenge erweitern oder zusammenziehen. Sie bietet dynamisches Maskenmanagement, wodurch Formatierungsregeln auf bestehenden Elementen geändert oder entfernt werden können, ohne die Seite neu zu laden. Das Tool enthält Funktionen für benutzerdefinierte Maskenlogik und Musterdefinition, um zu steuern, welche alphanumerischen Eingaben zulässig sind. Es bietet zudem eine Bereinigung der Eingabedaten, um Nicht-Masken-Zeichen vor der Serverübermittlung zu entfernen, sowie ein Fallback-System, um ungültige Zeichen durch vordefinierte Ziffern zu ersetzen.
Manages flexible input patterns to handle data with varying lengths like IP addresses and currency amounts.
more-itertools ist eine Erweiterungsbibliothek für das Python-Modul itertools. Sie dient als Toolkit zur Manipulation von Iterables und bietet eine breite Palette an Routinen für Datentransformation, kombinatorische Generierung und Iterator-Zustandsverwaltung. Die Bibliothek zeichnet sich durch fortgeschrittene Zustandsverwaltung und komplexe Sequenzgenerierung aus. Sie bietet Funktionen zum Einsehen zukünftiger Elemente, zum Suchen innerhalb von Sequenzen und zum Erzeugen einzigartiger Permutationen, Kombinationen und Mengenpartitionen aus Sammlungen, die doppelte Elemente enthalten können. Der Funktionsumfang deckt Datenverarbeitungsaufgaben wie rekursives Flattening, Gruppierung, Padding und Umformung von Datenströmen ab. Sie enthält zudem Dienstprogramme für Stream-Merging, Windowing für lokale Nachbarschaftsanalysen und thread-sichere Iterationssynchronisation. Das Projekt bietet zudem spezialisierte Routinen für die Verarbeitung numerischer Sequenzen, einschließlich Matrixmultiplikation, diskreter linearer Faltung und Fourier-Transformationen.
Implements a mechanism to substitute items or subsequences that match a predicate with elements from another collection.