Commit graph

533 commits

Author SHA1 Message Date
Andreas Koepf (aider)
4f31a45316 test: Add comprehensive unit tests for SudokuDataset 2025-01-23 22:57:02 +01:00
Andreas Koepf (aider)
c4b0923157 feat: Add Sudoku puzzle generator with configurable difficulty 2025-01-23 22:55:09 +01:00
Andreas Koepf (aider)
1c02352348 docs: Add PrimeFactorizationDataset to README task overview 2025-01-23 22:52:31 +01:00
Andreas Koepf (aider)
0aea0fc56e test: Add comprehensive unit tests for prime factorization dataset 2025-01-23 22:51:20 +01:00
Andreas Koepf (aider)
d4dd3cf3e3 feat: Clarify prime factorization example and answer format 2025-01-23 22:50:00 +01:00
Andreas Koepf (aider)
c964eba5a4 feat: Add prime factorization task generator with configurable range and example 2025-01-23 22:46:58 +01:00
Andreas Koepf (aider)
5ef2196813 test: Add task overview section to README.md 2025-01-23 22:29:55 +01:00
Andreas Koepf (aider)
45330da122 refactor: Rename chain_sum to chain_sum_dataset for consistency 2025-01-23 22:27:48 +01:00
Andreas Koepf (aider)
ed71ac20cb feat: Update arithmetic __init__.py with docstring and additional exports 2025-01-23 22:26:51 +01:00
Andreas Koepf (aider)
00219aa3a3 feat: Add arithmetic dataset functions to algorithmic package __init__ 2025-01-23 22:24:59 +01:00
Andreas Koepf (aider)
40c3c9d434 feat: Add leg counting imports and exports to arithmetic package 2025-01-23 22:22:12 +01:00
Andreas Koepf (aider)
8db31dc87c refactor: Remove centipede from ANIMALS due to variable leg count 2025-01-23 22:18:59 +01:00
Andreas Koepf (aider)
23d420bbfe refactor: Sort ANIMALS dictionary by leg count with alphabetical order within groups 2025-01-23 22:17:27 +01:00
Andreas Koepf (aider)
84951f5730 feat: Add more 4-legged and 6-legged animals to ANIMALS dictionary 2025-01-23 22:16:08 +01:00
Andreas Koepf (aider)
0e4b4bb602 feat: Add more diverse animals to leg counting dataset 2025-01-23 22:14:15 +01:00
Andreas Koepf (aider)
ee7c136f96 feat: Add comprehensive tests for leg counting dataset and configuration 2025-01-23 22:09:35 +01:00
Andreas Koepf (aider)
b0d4ffb07b feat: Add leg counting arithmetic task generator with animal leg counting functionality 2025-01-23 22:08:42 +01:00
Andreas Koepf (aider)
92487fb1f1 test: Add comprehensive unit tests for BaseConversionDataset 2025-01-23 21:50:58 +01:00
Andreas Koepf (aider)
2226b164c7 feat: Add hint for lowercase letters in base conversion questions for bases > 10 2025-01-23 21:49:08 +01:00
Andreas Koepf (aider)
4b2a9f2655 refactor: Remove unnecessary rstrip('L') calls in base conversion 2025-01-23 21:46:06 +01:00
Andreas Koepf (aider)
d9a6295dc0 fix: Strip whitespace from base conversion source and target representations 2025-01-23 21:41:20 +01:00
Andreas Koepf (aider)
64de76a488 feat: Add base conversion task with configurable base ranges 2025-01-23 21:37:40 +01:00
Andreas Koepf (aider)
1d829d35af test: Add comprehensive unit tests for number filtering task 2025-01-23 20:42:20 +01:00
Andreas Koepf (aider)
fc7eb1d5bc feat: Add number filtering task to algorithmic package 2025-01-23 20:39:50 +01:00
Andreas Koepf (aider)
b6161eb20e test: Add comprehensive unit tests for WordReversalDataset 2025-01-23 20:26:12 +01:00
Andreas Koepf (aider)
b993c13d5f feat: Add word reversal task generator with configurable word count 2025-01-23 20:25:36 +01:00
Andreas Koepf (aider)
703fcda3cd feat: Add algorithmic and data modules to reasoning_gym package 2025-01-23 19:21:57 +01:00
Andreas Koepf (aider)
c05a938ab7 refactor: Replace deprecated open_text() with files() API 2025-01-23 19:19:14 +01:00
Andreas Koepf (aider)
102d4dae00 fix: Ensure letter counting dataset extracts only alphanumeric words 2025-01-23 19:17:45 +01:00
Andreas Koepf
3488d4339c update dev dependencies (requirements-dev.txt) 2025-01-23 19:16:40 +01:00
Andreas Koepf (aider)
e0ef654388 test: Add comprehensive unit tests for LetterCountingDataset 2025-01-23 19:12:36 +01:00
Andreas Koepf (aider)
dd6fc96891 feat: Add letter counting algorithmic task with configurable text span generation 2025-01-23 19:11:15 +01:00
Andreas Koepf
f78bb85a85 add plaintext of book In the year 2889 by Michel & Jules Verne (project Gutenberg eBook #19362) 2025-01-23 19:01:44 +01:00
Andreas Koepf (aider)
746e05aa3d feat: Add data file loading utilities to reasoning_gym.data 2025-01-23 18:58:58 +01:00
Andreas Koepf (aider)
22538be4c5 feat: Add data file packaging configuration and __init__.py for reasoning_gym.data 2025-01-23 18:57:34 +01:00
Andreas Koepf (aider)
b73c466392 docs: Add documentation for PropositionalLogicDataset to README 2025-01-23 14:50:02 +01:00
Andreas Koepf (aider)
d0444f3546 feat: Add logic module to reasoning_gym package imports 2025-01-23 14:41:44 +01:00
Andreas Koepf (aider)
fa68760784 feat: Add propositional logic dataset generator with comprehensive logical reasoning tasks 2025-01-23 14:38:56 +01:00
Andreas Koepf (aider)
03a3bcf059 feat: Add configurable whitespace option to ArithmeticDataset 2025-01-23 14:25:54 +01:00
Andreas Koepf (aider)
6dbb5b39ee refactor: Reorder parameters of _format_question to match other methods 2025-01-23 14:22:46 +01:00
Andreas Koepf (aider)
f12e3788d1 refactor: Pass item_rng to _format_question() method in ArithmeticDataset 2025-01-23 14:20:22 +01:00
Andreas Koepf (aider)
1c0a7e9a7c docs: Add comprehensive documentation for existing generators in README 2025-01-23 14:15:12 +01:00
Andreas Koepf (aider)
9fb1798b48 fix: Correct rule composition in PatternRule to properly chain subrules 2025-01-23 14:07:18 +01:00
Andreas Koepf (aider)
0e9bc68776 feat: Add rule composition support to PatternRule 2025-01-23 14:04:36 +01:00
Andreas Koepf (aider)
7f27a2285c fix: Correct sequence generation and pattern rule application logic 2025-01-23 14:00:33 +01:00
Andreas Koepf (aider)
46601a2b8a fix: Correct sequence generation by using previous number in PatternRule 2025-01-23 13:54:11 +01:00
Andreas Koepf (aider)
985bded9e8 fix: Correct PatternRule.apply() to use current sequence element 2025-01-23 13:53:30 +01:00
Andreas Koepf (aider)
432c9436f7 fix: Correct PatternRule.apply() method to properly handle sequence operations
This commit message captures the essence of the change: fixing the implementation of the apply() method in the PatternRule class to correctly handle sequence operations and indexing.

The key changes are:
1. Use `sequence[position]` instead of `sequence[position - 1]`
2. Adjust PREV_PLUS condition to use `position > 0`
3. Use `sequence[position - 1]` for previous element reference

Would you like me to elaborate on the specific changes or rationale?
2025-01-23 13:52:47 +01:00
Andreas Koepf
74d2bd9b3d add cognition module 2025-01-23 13:42:36 +01:00
Andreas Koepf (aider)
6fbdd8c262 feat: Add sequence dataset with dynamic pattern generation and tests
This commit introduces a comprehensive sequence dataset generator with the following key features:
- Dynamic pattern generation through operation composition
- Configurable complexity and sequence lengths
- Validation to ensure sequences are interesting and solvable
- Human-readable rule descriptions
- Comprehensive test coverage
- Iterator protocol support
- A convenient factory function

The implementation includes:
- `SequenceDataset` class for generating sequence completion tasks
- `PatternRule` for representing and applying sequence generation rules
- `PatternGenerator` for creating diverse pattern rules
- Extensive test suite to validate dataset generation
2025-01-23 13:41:23 +01:00