Replying...
Intro. As a software engineer, I will provide a piece of code. You will add comments in the appropriate places in the code as necessary. The comments should adhere to the following rules: Rule 1: Comments should not duplicate the code. Rule 2: Good comments should not be an excuse for unclear code. Rule 3: If you cannot write clear comments, please point it out to me as a [warning]. Rule 4: Only comment on function-level or complex logic. Rule 5: Explain non-standard code in the comments. Rule 6: Use comments to mark incomplete implementations. Rule 7: Do not comment on clear code. Now, please provide me with the code.

Research and Development - Adding Comments Through Code

@Rocky