Hoyant-Su commited on
Commit ·
ac9f14b
1
Parent(s): afcfd4d
Update ShellOps dataset
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- shellops/assets/ShellOps_03d2764794/gold/src/auth/roles.py +0 -1
- shellops/assets/ShellOps_03d2764794/gold/tests/unit/test_access.py +2 -1
- shellops/assets/ShellOps_03d2764794/gold/tests/unit/test_authentication.py +2 -1
- shellops/assets/ShellOps_03d2764794/gold/tests/unit/utils/test_helpers.py +1 -1
- shellops/assets/ShellOps_03d2764794/init/src/auth/roles.py +0 -1
- shellops/assets/ShellOps_03d2764794/init/tests/unit/test_access.py +2 -1
- shellops/assets/ShellOps_03d2764794/init/tests/unit/test_authentication.py +2 -1
- shellops/assets/ShellOps_03d2764794/init/tests/unit/utils/test_helpers.py +1 -1
- shellops/assets/ShellOps_070812d0ef/gold/tests/conftest.py +2 -1
- shellops/assets/ShellOps_070812d0ef/gold/tests/test_incidents.py +4 -4
- shellops/assets/ShellOps_070812d0ef/init/tests/conftest.py +2 -1
- shellops/assets/ShellOps_070812d0ef/init/tests/test_incidents.py +4 -4
- shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/legacy/old_intersection.py +1 -2
- shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/pedestrian_crossing.py +0 -2
- shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/traffic_light_controller.py +8 -4
- shellops/assets/ShellOps_0a1b9a6c48/init/sensors/legacy/old_intersection.py +1 -2
- shellops/assets/ShellOps_0a1b9a6c48/init/sensors/pedestrian_crossing.py +0 -2
- shellops/assets/ShellOps_0a1b9a6c48/init/sensors/traffic_light_controller.py +8 -4
- shellops/assets/ShellOps_2198546279/gold/workflows/export.sh +0 -2
- shellops/assets/ShellOps_2198546279/gold/workflows/ingest.sh +0 -2
- shellops/assets/ShellOps_2198546279/gold/workflows/transform.sh +0 -2
- shellops/assets/ShellOps_2198546279/gold/workflows/validate.sh +0 -1
- shellops/assets/ShellOps_2198546279/init/workflows/export.sh +0 -2
- shellops/assets/ShellOps_2198546279/init/workflows/ingest.sh +0 -2
- shellops/assets/ShellOps_2198546279/init/workflows/transform.sh +0 -2
- shellops/assets/ShellOps_2198546279/init/workflows/validate.sh +0 -1
- shellops/assets/ShellOps_3132c488bf/gold/snippets/example1.py +1 -1
- shellops/assets/ShellOps_3132c488bf/gold/snippets/example2.py +1 -2
- shellops/assets/ShellOps_3132c488bf/gold/snippets/example3.py +2 -1
- shellops/assets/ShellOps_3132c488bf/gold/snippets/helper.py +2 -1
- shellops/assets/ShellOps_3132c488bf/init/snippets/example1.py +1 -1
- shellops/assets/ShellOps_3132c488bf/init/snippets/example2.py +1 -2
- shellops/assets/ShellOps_3132c488bf/init/snippets/example3.py +2 -1
- shellops/assets/ShellOps_3132c488bf/init/snippets/helper.py +2 -1
- shellops/assets/ShellOps_3d720def44/gold/scripts/deploy/serviceB.sh +0 -1
- shellops/assets/ShellOps_3d720def44/init/scripts/deploy/serviceB.sh +0 -1
- shellops/assets/ShellOps_4a4290331e/gold/test/test_analysis.py +1 -1
- shellops/assets/ShellOps_4a4290331e/gold/test/test_metrics.py +1 -1
- shellops/assets/ShellOps_4a4290331e/init/test/test_analysis.py +1 -1
- shellops/assets/ShellOps_4a4290331e/init/test/test_metrics.py +1 -1
- shellops/assets/ShellOps_57c2afba87/gold/tests/unit/test_legacy.py +0 -1
- shellops/assets/ShellOps_57c2afba87/init/tests/unit/test_legacy.py +0 -1
- shellops/assets/ShellOps_5c8cc35969/gold/src/core/__init__.py +0 -1
- shellops/assets/ShellOps_5c8cc35969/gold/src/core/processor.py +0 -2
- shellops/assets/ShellOps_5c8cc35969/gold/src/main.py +1 -1
- shellops/assets/ShellOps_5c8cc35969/gold/src/tests/test_helpers.py +1 -1
- shellops/assets/ShellOps_5c8cc35969/gold/src/utils/helpers.py +0 -2
- shellops/assets/ShellOps_5c8cc35969/init/src/core/__init__.py +0 -1
- shellops/assets/ShellOps_5c8cc35969/init/src/core/processor.py +0 -2
- shellops/assets/ShellOps_5c8cc35969/init/src/main.py +1 -1
shellops/assets/ShellOps_03d2764794/gold/src/auth/roles.py
CHANGED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Moved security module
|
|
|
|
|
|
shellops/assets/ShellOps_03d2764794/gold/tests/unit/test_access.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from src.auth.roles import AdminRole
|
|
|
|
| 2 |
class TestAccess:
|
| 3 |
-
pass
|
|
|
|
| 1 |
from src.auth.roles import AdminRole
|
| 2 |
+
|
| 3 |
class TestAccess:
|
| 4 |
+
pass
|
shellops/assets/ShellOps_03d2764794/gold/tests/unit/test_authentication.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from src.auth.tokens import TokenValidator
|
|
|
|
| 2 |
class TestAuth:
|
| 3 |
-
pass
|
|
|
|
| 1 |
from src.auth.tokens import TokenValidator
|
| 2 |
+
|
| 3 |
class TestAuth:
|
| 4 |
+
pass
|
shellops/assets/ShellOps_03d2764794/gold/tests/unit/utils/test_helpers.py
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
from src.auth.utils import hash_password
|
|
|
|
| 1 |
+
from src.auth.utils import hash_password
|
shellops/assets/ShellOps_03d2764794/init/src/auth/roles.py
CHANGED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Moved security module
|
|
|
|
|
|
shellops/assets/ShellOps_03d2764794/init/tests/unit/test_access.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from security.roles import AdminRole
|
|
|
|
| 2 |
class TestAccess:
|
| 3 |
-
pass
|
|
|
|
| 1 |
from security.roles import AdminRole
|
| 2 |
+
|
| 3 |
class TestAccess:
|
| 4 |
+
pass
|
shellops/assets/ShellOps_03d2764794/init/tests/unit/test_authentication.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from security.tokens import TokenValidator
|
|
|
|
| 2 |
class TestAuth:
|
| 3 |
-
pass
|
|
|
|
| 1 |
from security.tokens import TokenValidator
|
| 2 |
+
|
| 3 |
class TestAuth:
|
| 4 |
+
pass
|
shellops/assets/ShellOps_03d2764794/init/tests/unit/utils/test_helpers.py
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
from security.utils import hash_password
|
|
|
|
| 1 |
+
from security.utils import hash_password
|
shellops/assets/ShellOps_070812d0ef/gold/tests/conftest.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import pytest
|
|
|
|
| 2 |
@pytest.fixture
|
| 3 |
def sample_incident_id():
|
| 4 |
-
return
|
|
|
|
| 1 |
import pytest
|
| 2 |
+
|
| 3 |
@pytest.fixture
|
| 4 |
def sample_incident_id():
|
| 5 |
+
return "T999"
|
shellops/assets/ShellOps_070812d0ef/gold/tests/test_incidents.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
def test_incident_creation():
|
| 2 |
-
inc = Incident(incident_id=
|
| 3 |
-
assert inc.incident_id ==
|
| 4 |
|
| 5 |
def test_incident_id_presence():
|
| 6 |
-
inc = Incident(incident_id=
|
| 7 |
-
assert hasattr(inc,
|
|
|
|
| 1 |
def test_incident_creation():
|
| 2 |
+
inc = Incident(incident_id="T123", description="test")
|
| 3 |
+
assert inc.incident_id == "T123"
|
| 4 |
|
| 5 |
def test_incident_id_presence():
|
| 6 |
+
inc = Incident(incident_id="T456", description="another")
|
| 7 |
+
assert hasattr(inc, "incident_id")
|
shellops/assets/ShellOps_070812d0ef/init/tests/conftest.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import pytest
|
|
|
|
| 2 |
@pytest.fixture
|
| 3 |
def sample_ticket_id():
|
| 4 |
-
return
|
|
|
|
| 1 |
import pytest
|
| 2 |
+
|
| 3 |
@pytest.fixture
|
| 4 |
def sample_ticket_id():
|
| 5 |
+
return "T999"
|
shellops/assets/ShellOps_070812d0ef/init/tests/test_incidents.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
def test_incident_creation():
|
| 2 |
-
inc = Incident(ticket_id=
|
| 3 |
-
assert inc.ticket_id ==
|
| 4 |
|
| 5 |
def test_ticket_id_presence():
|
| 6 |
-
inc = Incident(ticket_id=
|
| 7 |
-
assert hasattr(inc,
|
|
|
|
| 1 |
def test_incident_creation():
|
| 2 |
+
inc = Incident(ticket_id="T123", description="test")
|
| 3 |
+
assert inc.ticket_id == "T123"
|
| 4 |
|
| 5 |
def test_ticket_id_presence():
|
| 6 |
+
inc = Incident(ticket_id="T456", description="another")
|
| 7 |
+
assert hasattr(inc, "ticket_id")
|
shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/legacy/old_intersection.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
MCAST_GROUP =
|
| 2 |
TIMEOUT = 30
|
| 3 |
-
# This system uses deprecated multicast address
|
| 4 |
RED_LED_PIN = 12
|
|
|
|
| 1 |
+
MCAST_GROUP = "239.255.10.1"
|
| 2 |
TIMEOUT = 30
|
|
|
|
| 3 |
RED_LED_PIN = 12
|
shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/pedestrian_crossing.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
-
# Multicast configuration
|
| 2 |
MCAST_GROUP = '230.13.14.15'
|
| 3 |
GRP_PORT = 7600
|
| 4 |
-
|
| 5 |
try:
|
| 6 |
mcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 7 |
mcast_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
|
|
|
|
|
|
|
| 1 |
MCAST_GROUP = '230.13.14.15'
|
| 2 |
GRP_PORT = 7600
|
|
|
|
| 3 |
try:
|
| 4 |
mcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 5 |
mcast_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
|
shellops/assets/ShellOps_0a1b9a6c48/gold/sensors/traffic_light_controller.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
-
MCAST_GROUP =
|
| 2 |
-
LOCAL_IP =
|
|
|
|
| 3 |
def init_socket():
|
| 4 |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 5 |
sock.bind((LOCAL_IP, 5000))
|
| 6 |
-
sock.setsockopt(
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MCAST_GROUP = "239.255.10.1"
|
| 2 |
+
LOCAL_IP = "192.168.1.100"
|
| 3 |
+
|
| 4 |
def init_socket():
|
| 5 |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 6 |
sock.bind((LOCAL_IP, 5000))
|
| 7 |
+
sock.setsockopt(
|
| 8 |
+
socket.IPPROTO_IP,
|
| 9 |
+
socket.IP_ADD_MEMBERSHIP,
|
| 10 |
+
socket.inet_aton(MCAST_GROUP) + socket.inet_aton(LOCAL_IP),
|
| 11 |
+
)
|
shellops/assets/ShellOps_0a1b9a6c48/init/sensors/legacy/old_intersection.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
MCAST_GROUP =
|
| 2 |
TIMEOUT = 30
|
| 3 |
-
# This system uses deprecated multicast address
|
| 4 |
RED_LED_PIN = 12
|
|
|
|
| 1 |
+
MCAST_GROUP = "239.255.10.1"
|
| 2 |
TIMEOUT = 30
|
|
|
|
| 3 |
RED_LED_PIN = 12
|
shellops/assets/ShellOps_0a1b9a6c48/init/sensors/pedestrian_crossing.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
-
# Multicast configuration
|
| 2 |
MCAST_GROUP = '230.13.14.15'
|
| 3 |
GRP_PORT = 7600
|
| 4 |
-
|
| 5 |
try:
|
| 6 |
mcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 7 |
mcast_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
|
|
|
|
|
|
|
| 1 |
MCAST_GROUP = '230.13.14.15'
|
| 2 |
GRP_PORT = 7600
|
|
|
|
| 3 |
try:
|
| 4 |
mcast_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 5 |
mcast_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP,
|
shellops/assets/ShellOps_0a1b9a6c48/init/sensors/traffic_light_controller.py
CHANGED
|
@@ -1,7 +1,11 @@
|
|
| 1 |
-
MCAST_GROUP =
|
| 2 |
-
LOCAL_IP =
|
|
|
|
| 3 |
def init_socket():
|
| 4 |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 5 |
sock.bind((LOCAL_IP, 5000))
|
| 6 |
-
sock.setsockopt(
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MCAST_GROUP = "239.255.10.1"
|
| 2 |
+
LOCAL_IP = "192.168.1.100"
|
| 3 |
+
|
| 4 |
def init_socket():
|
| 5 |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 6 |
sock.bind((LOCAL_IP, 5000))
|
| 7 |
+
sock.setsockopt(
|
| 8 |
+
socket.IPPROTO_IP,
|
| 9 |
+
socket.IP_ADD_MEMBERSHIP,
|
| 10 |
+
socket.inet_aton(MCAST_GROUP) + socket.inet_aton(LOCAL_IP),
|
| 11 |
+
)
|
shellops/assets/ShellOps_2198546279/gold/workflows/export.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Export pipeline
|
| 3 |
export POOL=pool_gamma
|
| 4 |
worker run --pool ${POOL}
|
| 5 |
-
# temp override
|
| 6 |
export ALT_POOL=pool_delta
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_gamma
|
| 3 |
worker run --pool ${POOL}
|
|
|
|
| 4 |
export ALT_POOL=pool_delta
|
shellops/assets/ShellOps_2198546279/gold/workflows/ingest.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Ingest pipeline
|
| 3 |
export POOL=pool_alpha
|
| 4 |
worker run --pool ${POOL} --steps 5
|
| 5 |
-
# fallback pool
|
| 6 |
export FALLBACK=pool_beta
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_alpha
|
| 3 |
worker run --pool ${POOL} --steps 5
|
|
|
|
| 4 |
export FALLBACK=pool_beta
|
shellops/assets/ShellOps_2198546279/gold/workflows/transform.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Transform pipeline
|
| 3 |
export POOL=pool_gamma
|
| 4 |
worker run --pool ${POOL}
|
| 5 |
-
# debug pool
|
| 6 |
export DEBUG_POOL=pool_alpha
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_gamma
|
| 3 |
worker run --pool ${POOL}
|
|
|
|
| 4 |
export DEBUG_POOL=pool_alpha
|
shellops/assets/ShellOps_2198546279/gold/workflows/validate.sh
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Validate pipeline
|
| 3 |
export POOL=pool_beta
|
| 4 |
worker run --pool ${POOL}
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_beta
|
| 3 |
worker run --pool ${POOL}
|
shellops/assets/ShellOps_2198546279/init/workflows/export.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Export pipeline
|
| 3 |
export POOL=pool_gamma
|
| 4 |
worker run --pool ${POOL}
|
| 5 |
-
# temp override
|
| 6 |
export ALT_POOL=pool_delta
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_gamma
|
| 3 |
worker run --pool ${POOL}
|
|
|
|
| 4 |
export ALT_POOL=pool_delta
|
shellops/assets/ShellOps_2198546279/init/workflows/ingest.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Ingest pipeline
|
| 3 |
export POOL=pool_alpha
|
| 4 |
worker run --pool ${POOL} --steps 5
|
| 5 |
-
# fallback pool
|
| 6 |
export FALLBACK=pool_beta
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_alpha
|
| 3 |
worker run --pool ${POOL} --steps 5
|
|
|
|
| 4 |
export FALLBACK=pool_beta
|
shellops/assets/ShellOps_2198546279/init/workflows/transform.sh
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Transform pipeline
|
| 3 |
export POOL=pool_gamma
|
| 4 |
worker run --pool ${POOL}
|
| 5 |
-
# debug pool
|
| 6 |
export DEBUG_POOL=pool_alpha
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_gamma
|
| 3 |
worker run --pool ${POOL}
|
|
|
|
| 4 |
export DEBUG_POOL=pool_alpha
|
shellops/assets/ShellOps_2198546279/init/workflows/validate.sh
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Validate pipeline
|
| 3 |
export POOL=pool_beta
|
| 4 |
worker run --pool ${POOL}
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
| 2 |
export POOL=pool_beta
|
| 3 |
worker run --pool ${POOL}
|
shellops/assets/ShellOps_3132c488bf/gold/snippets/example1.py
CHANGED
|
@@ -3,4 +3,4 @@ from newpkg.helpers import fetch
|
|
| 3 |
|
| 4 |
def main():
|
| 5 |
data = newpkg.utils.load()
|
| 6 |
-
return data
|
|
|
|
| 3 |
|
| 4 |
def main():
|
| 5 |
data = newpkg.utils.load()
|
| 6 |
+
return data
|
shellops/assets/ShellOps_3132c488bf/gold/snippets/example2.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
# This snippet shows how to initialize the client
|
| 2 |
import sys
|
| 3 |
import newpkg
|
| 4 |
|
| 5 |
-
client = newpkg.Client()
|
|
|
|
|
|
|
| 1 |
import sys
|
| 2 |
import newpkg
|
| 3 |
|
| 4 |
+
client = newpkg.Client()
|
shellops/assets/ShellOps_3132c488bf/gold/snippets/example3.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from newpkg.core import Processor
|
|
|
|
| 2 |
proc = Processor()
|
| 3 |
-
proc.run()
|
|
|
|
| 1 |
from newpkg.core import Processor
|
| 2 |
+
|
| 3 |
proc = Processor()
|
| 4 |
+
proc.run()
|
shellops/assets/ShellOps_3132c488bf/gold/snippets/helper.py
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
import os
|
| 2 |
-
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
+
|
| 3 |
+
print("hello")
|
shellops/assets/ShellOps_3132c488bf/init/snippets/example1.py
CHANGED
|
@@ -3,4 +3,4 @@ from oldpkg.helpers import fetch
|
|
| 3 |
|
| 4 |
def main():
|
| 5 |
data = oldpkg.utils.load()
|
| 6 |
-
return data
|
|
|
|
| 3 |
|
| 4 |
def main():
|
| 5 |
data = oldpkg.utils.load()
|
| 6 |
+
return data
|
shellops/assets/ShellOps_3132c488bf/init/snippets/example2.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
# This snippet shows how to initialize the client
|
| 2 |
import sys
|
| 3 |
import oldpkg
|
| 4 |
|
| 5 |
-
client = oldpkg.Client()
|
|
|
|
|
|
|
| 1 |
import sys
|
| 2 |
import oldpkg
|
| 3 |
|
| 4 |
+
client = oldpkg.Client()
|
shellops/assets/ShellOps_3132c488bf/init/snippets/example3.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
from oldpkg.core import Processor
|
|
|
|
| 2 |
proc = Processor()
|
| 3 |
-
proc.run()
|
|
|
|
| 1 |
from oldpkg.core import Processor
|
| 2 |
+
|
| 3 |
proc = Processor()
|
| 4 |
+
proc.run()
|
shellops/assets/ShellOps_3132c488bf/init/snippets/helper.py
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
import os
|
| 2 |
-
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
+
|
| 3 |
+
print("hello")
|
shellops/assets/ShellOps_3d720def44/gold/scripts/deploy/serviceB.sh
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
-
#IMAGE_TAG=unused
|
|
|
|
| 1 |
#!/bin/sh
|
|
|
shellops/assets/ShellOps_3d720def44/init/scripts/deploy/serviceB.sh
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
-
#IMAGE_TAG=unused
|
|
|
|
| 1 |
#!/bin/sh
|
|
|
shellops/assets/ShellOps_4a4290331e/gold/test/test_analysis.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
from stats import utils
|
| 2 |
|
| 3 |
-
assert utils.average([5, 5]) == 5
|
|
|
|
| 1 |
from stats import utils
|
| 2 |
|
| 3 |
+
assert utils.average([5, 5]) == 5
|
shellops/assets/ShellOps_4a4290331e/gold/test/test_metrics.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
from stats import calculate
|
| 2 |
|
| 3 |
-
assert calculate.sum([1, 2]) == 3
|
|
|
|
| 1 |
from stats import calculate
|
| 2 |
|
| 3 |
+
assert calculate.sum([1, 2]) == 3
|
shellops/assets/ShellOps_4a4290331e/init/test/test_analysis.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
from analytics import utils
|
| 2 |
|
| 3 |
-
assert utils.average([5, 5]) == 5
|
|
|
|
| 1 |
from analytics import utils
|
| 2 |
|
| 3 |
+
assert utils.average([5, 5]) == 5
|
shellops/assets/ShellOps_4a4290331e/init/test/test_metrics.py
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
from analytics import calculate
|
| 2 |
|
| 3 |
-
assert calculate.sum([1, 2]) == 3
|
|
|
|
| 1 |
from analytics import calculate
|
| 2 |
|
| 3 |
+
assert calculate.sum([1, 2]) == 3
|
shellops/assets/ShellOps_57c2afba87/gold/tests/unit/test_legacy.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# This file intentionally uses a different utils module
|
| 2 |
from external.utils import helper
|
| 3 |
|
| 4 |
def test_external():
|
|
|
|
|
|
|
| 1 |
from external.utils import helper
|
| 2 |
|
| 3 |
def test_external():
|
shellops/assets/ShellOps_57c2afba87/init/tests/unit/test_legacy.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
# This file intentionally uses a different utils module
|
| 2 |
from external.utils import helper
|
| 3 |
|
| 4 |
def test_external():
|
|
|
|
|
|
|
| 1 |
from external.utils import helper
|
| 2 |
|
| 3 |
def test_external():
|
shellops/assets/ShellOps_5c8cc35969/gold/src/core/__init__.py
CHANGED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Empty init file
|
|
|
|
|
|
shellops/assets/ShellOps_5c8cc35969/gold/src/core/processor.py
CHANGED
|
@@ -3,6 +3,4 @@ class Processor:
|
|
| 3 |
self.state = {}
|
| 4 |
|
| 5 |
def run(self):
|
| 6 |
-
# TODO: implement error handling
|
| 7 |
-
# TODO: add logging
|
| 8 |
pass
|
|
|
|
| 3 |
self.state = {}
|
| 4 |
|
| 5 |
def run(self):
|
|
|
|
|
|
|
| 6 |
pass
|
shellops/assets/ShellOps_5c8cc35969/gold/src/main.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import sys
|
| 2 |
from core.processor import Processor
|
| 3 |
|
| 4 |
-
if __name__ ==
|
| 5 |
p = Processor()
|
| 6 |
p.run()
|
|
|
|
| 1 |
import sys
|
| 2 |
from core.processor import Processor
|
| 3 |
|
| 4 |
+
if __name__ == "__main__":
|
| 5 |
p = Processor()
|
| 6 |
p.run()
|
shellops/assets/ShellOps_5c8cc35969/gold/src/tests/test_helpers.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
import unittest
|
| 2 |
-
|
| 3 |
class TestHelpers(unittest.TestCase):
|
| 4 |
pass
|
|
|
|
| 1 |
import unittest
|
| 2 |
+
|
| 3 |
class TestHelpers(unittest.TestCase):
|
| 4 |
pass
|
shellops/assets/ShellOps_5c8cc35969/gold/src/utils/helpers.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
def parse_config(cfg):
|
| 2 |
-
# TODO: add validation for cfg keys
|
| 3 |
return cfg
|
| 4 |
|
| 5 |
def format_output(obj):
|
| 6 |
-
# Format the object for display
|
| 7 |
return str(obj)
|
|
|
|
| 1 |
def parse_config(cfg):
|
|
|
|
| 2 |
return cfg
|
| 3 |
|
| 4 |
def format_output(obj):
|
|
|
|
| 5 |
return str(obj)
|
shellops/assets/ShellOps_5c8cc35969/init/src/core/__init__.py
CHANGED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
# Empty init file
|
|
|
|
|
|
shellops/assets/ShellOps_5c8cc35969/init/src/core/processor.py
CHANGED
|
@@ -3,6 +3,4 @@ class Processor:
|
|
| 3 |
self.state = {}
|
| 4 |
|
| 5 |
def run(self):
|
| 6 |
-
# TODO: implement error handling
|
| 7 |
-
# TODO: add logging
|
| 8 |
pass
|
|
|
|
| 3 |
self.state = {}
|
| 4 |
|
| 5 |
def run(self):
|
|
|
|
|
|
|
| 6 |
pass
|
shellops/assets/ShellOps_5c8cc35969/init/src/main.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import sys
|
| 2 |
from core.processor import Processor
|
| 3 |
|
| 4 |
-
if __name__ ==
|
| 5 |
p = Processor()
|
| 6 |
p.run()
|
|
|
|
| 1 |
import sys
|
| 2 |
from core.processor import Processor
|
| 3 |
|
| 4 |
+
if __name__ == "__main__":
|
| 5 |
p = Processor()
|
| 6 |
p.run()
|