diff --git a/autocoder-artifact/supermath/README.md b/autocoder-artifact/supermath/README.md new file mode 100644 index 0000000..ce51ae8 --- /dev/null +++ b/autocoder-artifact/supermath/README.md @@ -0,0 +1,3 @@ +# SuperMath + +A simple package for basic mathematical calculations. diff --git a/autocoder-artifact/supermath/requirements.txt b/autocoder-artifact/supermath/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/autocoder-artifact/supermath/requirements.txt @@ -0,0 +1 @@ + diff --git a/autocoder-artifact/supermath/setup.py b/autocoder-artifact/supermath/setup.py new file mode 100644 index 0000000..aa65f04 --- /dev/null +++ b/autocoder-artifact/supermath/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup, find_packages + +setup( + name='supermath', + version='0.1', + packages=find_packages(include=['my_package', 'my_package.*']), + description='A simple package for basic mathematical calculations', + author='Your Name', + author_email='your.email@example.com', + url='https://github.com/yourusername/supermath', +) diff --git a/autocoder-artifact/supermath/src/my_package/__init__.py b/autocoder-artifact/supermath/src/my_package/__init__.py new file mode 100644 index 0000000..aa474c8 --- /dev/null +++ b/autocoder-artifact/supermath/src/my_package/__init__.py @@ -0,0 +1,13 @@ +def add(a, b): + return a + b + +def subtract(a, b): + return a - b + +def multiply(a, b): + return a * b + +def divide(a, b): + if b == 0: + raise ValueError('Cannot divide by zero') + return a / b diff --git a/autocoder-artifact/supermath/src/my_package/main.py b/autocoder-artifact/supermath/src/my_package/main.py new file mode 100644 index 0000000..f4e51f5 --- /dev/null +++ b/autocoder-artifact/supermath/src/my_package/main.py @@ -0,0 +1,9 @@ +if __name__ == '__main__': + import sys + from . import add, subtract, multiply, divide + + a, b = map(float, sys.argv[1:3]) + print('Add:', add(a, b)) + print('Subtract:', subtract(a, b)) + print('Multiply:', multiply(a, b)) + print('Divide:', divide(a, b)) diff --git a/autocoder-bot/supermath/.gitignore b/autocoder-bot/supermath/.gitignore new file mode 100644 index 0000000..d646835 --- /dev/null +++ b/autocoder-bot/supermath/.gitignore @@ -0,0 +1,2 @@ +*.pyc +__pycache__/ diff --git a/autocoder-bot/supermath/README.md b/autocoder-bot/supermath/README.md new file mode 100644 index 0000000..ce51ae8 --- /dev/null +++ b/autocoder-bot/supermath/README.md @@ -0,0 +1,3 @@ +# SuperMath + +A simple package for basic mathematical calculations. diff --git a/autocoder-bot/supermath/requirements.txt b/autocoder-bot/supermath/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/autocoder-bot/supermath/requirements.txt @@ -0,0 +1 @@ + diff --git a/autocoder-bot/supermath/setup.py b/autocoder-bot/supermath/setup.py new file mode 100644 index 0000000..aa65f04 --- /dev/null +++ b/autocoder-bot/supermath/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup, find_packages + +setup( + name='supermath', + version='0.1', + packages=find_packages(include=['my_package', 'my_package.*']), + description='A simple package for basic mathematical calculations', + author='Your Name', + author_email='your.email@example.com', + url='https://github.com/yourusername/supermath', +) diff --git a/autocoder-bot/supermath/src/my_package/__init__.py b/autocoder-bot/supermath/src/my_package/__init__.py new file mode 100644 index 0000000..aa474c8 --- /dev/null +++ b/autocoder-bot/supermath/src/my_package/__init__.py @@ -0,0 +1,13 @@ +def add(a, b): + return a + b + +def subtract(a, b): + return a - b + +def multiply(a, b): + return a * b + +def divide(a, b): + if b == 0: + raise ValueError('Cannot divide by zero') + return a / b diff --git a/autocoder-bot/supermath/src/my_package/main.py b/autocoder-bot/supermath/src/my_package/main.py new file mode 100644 index 0000000..f4e51f5 --- /dev/null +++ b/autocoder-bot/supermath/src/my_package/main.py @@ -0,0 +1,9 @@ +if __name__ == '__main__': + import sys + from . import add, subtract, multiply, divide + + a, b = map(float, sys.argv[1:3]) + print('Add:', add(a, b)) + print('Subtract:', subtract(a, b)) + print('Multiply:', multiply(a, b)) + print('Divide:', divide(a, b))