Skip to content

PR to issue #4 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions autocoder-artifact/supermath/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SuperMath

A simple package for basic mathematical calculations.
1 change: 1 addition & 0 deletions autocoder-artifact/supermath/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions autocoder-artifact/supermath/setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
url='https://github.com/yourusername/supermath',
)
13 changes: 13 additions & 0 deletions autocoder-artifact/supermath/src/my_package/__init__.py
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions autocoder-artifact/supermath/src/my_package/main.py
Original file line number Diff line number Diff line change
@@ -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))
2 changes: 2 additions & 0 deletions autocoder-bot/supermath/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
__pycache__/
3 changes: 3 additions & 0 deletions autocoder-bot/supermath/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SuperMath

A simple package for basic mathematical calculations.
1 change: 1 addition & 0 deletions autocoder-bot/supermath/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

11 changes: 11 additions & 0 deletions autocoder-bot/supermath/setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
url='https://github.com/yourusername/supermath',
)
13 changes: 13 additions & 0 deletions autocoder-bot/supermath/src/my_package/__init__.py
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions autocoder-bot/supermath/src/my_package/main.py
Original file line number Diff line number Diff line change
@@ -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))