From 4bbcddb0bd7ad9628d575491d2036c454829bd7f Mon Sep 17 00:00:00 2001 From: "open-swe-dev-marco[bot]" Date: Mon, 10 Nov 2025 19:26:50 +0000 Subject: [PATCH 1/7] Apply patch [skip ci] --- add_numbers.py | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 add_numbers.py diff --git a/add_numbers.py b/add_numbers.py new file mode 100644 index 0000000..aaf71dc --- /dev/null +++ b/add_numbers.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python3 +""" +Simple Python script to add two numbers together. +""" + +def add_numbers(num1, num2): + """ + Add two numbers together and return the result. + + Args: + num1 (float): First number + num2 (float): Second number + + Returns: + float: Sum of the two numbers + """ + return num1 + num2 + +def get_number_input(prompt): + """ + Get a number from user input with error handling. + + Args: + prompt (str): Prompt message to display to user + + Returns: + float: The number entered by the user + """ + while True: + try: + return float(input(prompt)) + except ValueError: + print("Please enter a valid number.") + +def main(): + """ + Main function that demonstrates the usage of add_numbers function. + Prompts user for two numbers, adds them, and displays the result. + """ + print("Welcome to the Number Addition Calculator!") + print("-" * 40) + + # Get input from user + first_number = get_number_input("Enter the first number: ") + second_number = get_number_input("Enter the second number: ") + + # Perform addition + result = add_numbers(first_number, second_number) + + # Display result + print(f"\nResult: {first_number} + {second_number} = {result}") + +if __name__ == "__main__": + main() From 392d19c212e8548bbb4d3aaf4627ffcea9b54715 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-marco[bot]" Date: Mon, 10 Nov 2025 19:27:27 +0000 Subject: [PATCH 2/7] Apply patch [skip ci] --- test_add_numbers.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test_add_numbers.py diff --git a/test_add_numbers.py b/test_add_numbers.py new file mode 100644 index 0000000..b580519 --- /dev/null +++ b/test_add_numbers.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 +""" +Test script to verify add_numbers.py works correctly. +""" + +from add_numbers import add_numbers + +def test_add_numbers(): + """Test the add_numbers function with various inputs.""" + print("Testing add_numbers function:") + print("-" * 30) + + # Test cases + test_cases = [ + (5, 3), + (10.5, 2.7), + (-4, 9), + (0, 0), + (-5, -3) + ] + + for num1, num2 in test_cases: + result = add_numbers(num1, num2) + print(f"{num1} + {num2} = {result}") + + print("\nAll tests completed successfully!") + +if __name__ == "__main__": + test_add_numbers() From f020c77f2163e2b4400d074662666152113edb55 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-marco[bot]" Date: Mon, 10 Nov 2025 19:27:35 +0000 Subject: [PATCH 3/7] Apply patch [skip ci] --- __pycache__/add_numbers.cpython-313.pyc | Bin 0 -> 1744 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 __pycache__/add_numbers.cpython-313.pyc diff --git a/__pycache__/add_numbers.cpython-313.pyc b/__pycache__/add_numbers.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7567a309df27afeef5817f9cb7f4e2d669b9ba9f GIT binary patch literal 1744 zcma)6-ESL35TEm%9p_>vp-I~$Ds&5m#6WGDDg~Lg5Yna+B5A}Ch?Gj!^=@sSbRX8< zx>YPBBJrW{)|ZG1c&Ok7UJ#G{Gb|a9IOUChAdUNgcw%<%E-?~FthM9WnVZ?!`OVCr zSkwX6&ec=SjV!<);*hRP!VIn;vkwL^FqAo9ijhH@F;t}L9nH{cTL5Mr;Ewt{EG0$+ zn%QQyoa3xuVDfT} ztU4^@NhGOy@kDJ0NUT@1x@2#Mya zt-zyI+uY%SZ&ocvO-^qy$F5>p>Pbo}?VV_B=*&jYIEOndAlZe(Gfr+QbruV-QncE!&`(h7BJF6kX*-a{sWdaevjp` z5ORjFY{VyzhN0P{qG)U$Yy37F6UBf90mFEX!i?!&2)Uy==c_Qa1ij8$%#$9 zz(=gH_;CP8fCSLkNJC|RY*W$Wf(YY^YG4r!_1de#Mtbp(#db|CXz7ysw#&fFA*CLK10W=V~7XHPWY@EAeWC{7YF zn2=S;D}r1j>t&S{G1IbmWW$%$s33hN#T6A}Kj|?SKP?nJje{*NM$N-yvuPB)fIHko zvI|dj$m%`)$}igM2ioY~!e_Ui=3u(iD_!qTy|w$^0kSW?-Jf3GT|@c!?89^Y;?nLa z@>zZF-3K2(@E@)GP<-^s&(`CY9?$gjcYf7Ym?*#~U$2Y%>h<+%HH-}ERdM5NL%jx~SP3+#?dud^9ch>i*?NU#SK<%yP2w4?l(a`tF$Tv Date: Mon, 10 Nov 2025 19:28:57 +0000 Subject: [PATCH 4/7] Apply patch [skip ci] --- test_add_numbers.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 test_add_numbers.py diff --git a/test_add_numbers.py b/test_add_numbers.py deleted file mode 100644 index b580519..0000000 --- a/test_add_numbers.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python3 -""" -Test script to verify add_numbers.py works correctly. -""" - -from add_numbers import add_numbers - -def test_add_numbers(): - """Test the add_numbers function with various inputs.""" - print("Testing add_numbers function:") - print("-" * 30) - - # Test cases - test_cases = [ - (5, 3), - (10.5, 2.7), - (-4, 9), - (0, 0), - (-5, -3) - ] - - for num1, num2 in test_cases: - result = add_numbers(num1, num2) - print(f"{num1} + {num2} = {result}") - - print("\nAll tests completed successfully!") - -if __name__ == "__main__": - test_add_numbers() From ddcec568ae9171242541c8f515b9e0588b79d684 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-marco[bot]" Date: Mon, 10 Nov 2025 19:29:28 +0000 Subject: [PATCH 5/7] Apply patch [skip ci] --- __pycache__/add_numbers.cpython-313.pyc | Bin 1744 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 __pycache__/add_numbers.cpython-313.pyc diff --git a/__pycache__/add_numbers.cpython-313.pyc b/__pycache__/add_numbers.cpython-313.pyc deleted file mode 100644 index 7567a309df27afeef5817f9cb7f4e2d669b9ba9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1744 zcma)6-ESL35TEm%9p_>vp-I~$Ds&5m#6WGDDg~Lg5Yna+B5A}Ch?Gj!^=@sSbRX8< zx>YPBBJrW{)|ZG1c&Ok7UJ#G{Gb|a9IOUChAdUNgcw%<%E-?~FthM9WnVZ?!`OVCr zSkwX6&ec=SjV!<);*hRP!VIn;vkwL^FqAo9ijhH@F;t}L9nH{cTL5Mr;Ewt{EG0$+ zn%QQyoa3xuVDfT} ztU4^@NhGOy@kDJ0NUT@1x@2#Mya zt-zyI+uY%SZ&ocvO-^qy$F5>p>Pbo}?VV_B=*&jYIEOndAlZe(Gfr+QbruV-QncE!&`(h7BJF6kX*-a{sWdaevjp` z5ORjFY{VyzhN0P{qG)U$Yy37F6UBf90mFEX!i?!&2)Uy==c_Qa1ij8$%#$9 zz(=gH_;CP8fCSLkNJC|RY*W$Wf(YY^YG4r!_1de#Mtbp(#db|CXz7ysw#&fFA*CLK10W=V~7XHPWY@EAeWC{7YF zn2=S;D}r1j>t&S{G1IbmWW$%$s33hN#T6A}Kj|?SKP?nJje{*NM$N-yvuPB)fIHko zvI|dj$m%`)$}igM2ioY~!e_Ui=3u(iD_!qTy|w$^0kSW?-Jf3GT|@c!?89^Y;?nLa z@>zZF-3K2(@E@)GP<-^s&(`CY9?$gjcYf7Ym?*#~U$2Y%>h<+%HH-}ERdM5NL%jx~SP3+#?dud^9ch>i*?NU#SK<%yP2w4?l(a`tF$Tv Date: Mon, 10 Nov 2025 19:30:01 +0000 Subject: [PATCH 6/7] Apply patch [skip ci] --- .gitignore | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6435913 --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +# Python bytecode files +__pycache__/ +*.py[cod] +*$py.class + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Virtual environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# IDE files +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db From c2da1dbbd08e7107d4245ee8e95eef4cb26d8634 Mon Sep 17 00:00:00 2001 From: "open-swe-dev-marco[bot]" Date: Mon, 10 Nov 2025 19:31:29 +0000 Subject: [PATCH 7/7] Empty commit to trigger CI