Md-Ashraful-Pramanik / MapCoder

MapCoder: Multi-Agent Code Generation for Competitive Problem Solving
MIT License
62 stars 12 forks source link

A possible typographical error #4

Closed Qlalq closed 3 months ago

Qlalq commented 3 months ago

I noticed the following code snippet on line 227 of MapCoder.py :

       response = self.trim_text(
            response, "# Planning to solve this problem:")

I believe the final colon should be changed to a period, thus modifying the code snippet to the following.

       response = self.trim_text(
            response, "# Planning to solve this problem.")

Due to the content within the tag:

<planning>
    Planning to solve this problem.
</planning>
Md-Ashraful-Pramanik commented 3 months ago

Thank you for pointing that out. You can actually keep both lines to cover both cases.

On Thu, Jul 25, 2024 at 7:23 PM Qlalq @.***> wrote:

I noticed the following code snippet on line 227 of MapCoder.py : response = self.trim_text( response, "# Planning to solve this problem:") I believe the final colon should be changed to a period, thus modifying the code snippet to the following.

response = self.trim_text( response, "# Planning to solve this problem.")

Due to the content within the tag:

Planning to solve this problem.

— Reply to this email directly, view it on GitHub https://github.com/Md-Ashraful-Pramanik/MapCoder/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANO3RTUDOV7X4SBQWL43BMTZOD34PAVCNFSM6AAAAABLORXAP6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDSOJWGMZDQNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>