Skip to content

Conversation

@codewithbear
Copy link

This PR contains the following modifications:

  • AI (anthropic/claude-sonnet-4-20250514):
Fix spelling mistakes in documentation and python comments. 
** Do not correct the style **
** Do not fix spelling in variable names **
** Do not modify python code **
** Do not fix upper-lower case issues **
** Do not fix redundant/incorrect dash (-) issues **
** Do not fix correct regional variations such as British English.**
Example NOT TO FIX because those are correct: 
authorization, visualizing, behavior, normalize, carbon-emission, _to_kwh


(Slicing enabled: Yes)

Generated by Morph

@google-cla
Copy link

google-cla bot commented Jul 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@codewithbear codewithbear force-pushed the fix-issue-53-spellcheck branch 2 times, most recently from 5bb9880 to dedc15c Compare July 9, 2025 09:55
Comment on lines -85 to -90
# Here we wish to specifically set exterior space as indistinguishable
# from exterior walls, as we wish to perform connectedComponents only on
# connected groups of interior space. Thus, we set exterior space to a generic
# space value, i.e. 0.
GENERIC_SPACE_VALUE_IN_CONNECTION_INPUT = 0

Copy link
Author

Choose a reason for hiding this comment

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

removed a duplicated block

Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: verify duplicate block exists

@codewithbear
Copy link
Author

@s2t2 I have reapplied my change and manually went through the changes to discard irrelevant/incorrect ones.

Copy link
Collaborator

@s2t2 s2t2 left a comment

Choose a reason for hiding this comment

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

@codewithbear thanks for the update! I just did a first pass review and made some comments for myself to double check. I may pull down your branch and make some updates if that's alright.

Args:
fahrenheit: Temperature in Kelvin, where 273K = 32°F.
fahrenheit: Temperature in Fahrenheit, where 32°F = 273K.
Copy link
Collaborator

Choose a reason for hiding this comment

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

we would want to revert this change in units


if not single_observation_response.observation_valid:
logging.warn(
logging.warning(
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the maximum difference in the grid is less than some small constant,
conversion_threshold, then quit. Otherwise, return to step 2.
convergence_threshold, then quit. Otherwise, return to step 2.
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: double check this

Raises:
AttributeError: If requested field was not declared action or does
AttributeError: If requested field was not declared as action or does
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: check this

A ValueError if the input value <= absolute 0, −459.67°F.
"""
if fahrenheit <= -495.67:
if fahrenheit <= -459.67:
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: determine whether the docstring needs to change or the code needs to change

Raises:
ValueError if neither design_hp or break_hp are provided.
ValueError if neither design_hp or brake_hp are provided.
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: double check


class BaseReader(metaclass=abc.ABCMeta):
"""Abstract base class for writing the building and reward protos."""
"""Abstract base class for reading the building and reward protos."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: verify

Comment on lines -85 to -90
# Here we wish to specifically set exterior space as indistinguishable
# from exterior walls, as we wish to perform connectedComponents only on
# connected groups of interior space. Thus, we set exterior space to a generic
# space value, i.e. 0.
GENERIC_SPACE_VALUE_IN_CONNECTION_INPUT = 0

Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: verify duplicate block exists

):
p1 = energy_utils.get_water_pump_power(
pump_duty_cycle=pump_duty_cycle,
pump_speed_percentage=pump_speed_percantage,
Copy link
Collaborator

Choose a reason for hiding this comment

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

MJR TODO: verify we have changed all instances of pump_speed_percantage

@s2t2

This comment was marked as resolved.

@codewithbear
Copy link
Author

@s2t2 thanks for reviewing! Sorry for a wide-spread change. I'm evaluating whether LLMs make good use case for spell checking (apparently they get too eager sometimes) and trying to make a useful contribution along the way. I verified and corrected the changes manually to my best judgement. Let me know if I can help addressing issues or tidying the pull request further.

@s2t2
Copy link
Collaborator

s2t2 commented Jul 10, 2025

@codewithbear all good! It is fun to see what the agents are capable of and how they operate. If you would like to fix those "line too long" errors, that would be helpful - just let me know. Otherwise no worries and I can get to them.

@codewithbear codewithbear force-pushed the fix-issue-53-spellcheck branch from b3703d7 to aa881a1 Compare July 11, 2025 08:43
@codewithbear
Copy link
Author

@s2t2 I fixed the long lines

@s2t2
Copy link
Collaborator

s2t2 commented Jul 14, 2025

Nice, thank you! 🙌

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