diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..bd3120b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "targets/python-benchmarks"] + path = targets/python-benchmarks + url = https://github.com/tochilinak/python-benchmarks.git diff --git a/targets/python-benchmarks b/targets/python-benchmarks new file mode 160000 index 0000000..d6d4ab2 --- /dev/null +++ b/targets/python-benchmarks @@ -0,0 +1 @@ +Subproject commit d6d4ab2c7afec909e6ba1ede6e9ee64998559753 diff --git a/targets/sum_array.py b/targets/sum_array.py deleted file mode 100644 index 1ad89d8..0000000 --- a/targets/sum_array.py +++ /dev/null @@ -1,6 +0,0 @@ -def sum_(a_and_n): - (a, n) = a_and_n - result = 0 - for i in range(n): - result += a[i] - return result diff --git a/targets/unsafe.py b/targets/unsafe.py deleted file mode 100644 index 5155b52..0000000 --- a/targets/unsafe.py +++ /dev/null @@ -1,12 +0,0 @@ -class RawCommand: - def __init__(self, cmd): - self.cmd = cmd - - def run(self): - eval(self.cmd) - - -def run(commands): - for cmd in commands: - cmd.run() - return "Success"