Repository navigation
refactor: convert single-use 1-3 line helper functions to inline expr… - #28
Closed
ekrama040-byte wants to merge 1 commit into
Closed
ekrama040-byte wants to merge 1 commit into
ekrama040-byte wants to merge 1 commit into
Conversation
Nahom32
requested changes
Sep 7, 2026
Nahom32
left a comment
Member
There was a problem hiding this comment.
@ekrama040-byte I told you to use this format: https://github.com/trueagi-io/PeTTa/blob/ae66fa8e41dcd5539d614706bd4e5cfb34f9608d/examples/forall.metta#L64 . I didn't want you to write lambda expressions for the python implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Streamlined the codebase by identifying small, single-use utility functions (1-3 lines long) across the repository and refactoring them directly inline to optimize structural overhead.
Key Changes
is_metta_testandoutput_tailinscripts/run-tests.py.evaluateBaselineinevaluate_trading.py._clamp11incontext_parser.py.execution_instructiondirectly inside the behavioral prompt f-string block insidellm/conversation.py.Verification
Verified that all files successfully pass python syntax compilation checks via
py_compile.