-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an extra div with GPT explanation of each rule #522
Conversation
|
||
.custom-container { | ||
max-width: 80%; /* Adjust this value to your liking */ | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
@@ -100,7 +100,7 @@ def replace_with_tags(self, replace_str: str) -> str: | |||
continue | |||
text_repr = NodeUtils.convert_to_source(node) | |||
if text_repr in replace_str: | |||
self.simplify_query(capture_group) | |||
# self.simplify_query(capture_group) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# self.simplify_query(capture_group) |
@attr.s(eq=False) | ||
class RawFilter: | ||
id = attr.ib(type=str, default="0") | ||
enclosing_node = attr.ib(type=str, default=None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah this is because the actual objects cannot be pickled :| So I had to create these
contains=self.contains, | ||
at_least=self.at_least, | ||
at_most=self.at_most, | ||
# child_count=self.child_count, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My version of piranha didn;t support this
No description provided.