Skip to content
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

Merged
merged 23 commits into from
Jun 30, 2023
Merged

Conversation

danieltrt
Copy link
Collaborator

No description provided.


.custom-container {
max-width: 80%; /* Adjust this value to your liking */
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

@@ -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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# 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)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this do?

Copy link
Collaborator Author

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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@danieltrt danieltrt merged commit 2de1bde into master Jun 30, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants