Skip to content

Commit

Permalink
update: add used imports
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Apr 21, 2024
1 parent 8218461 commit 601eeea
Show file tree
Hide file tree
Showing 9 changed files with 450 additions and 448 deletions.
2 changes: 1 addition & 1 deletion data/clean/f_219_wending_chien_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def f_219(df):

import matplotlib
import unittest

import pandas as pd

def run_tests():
"""
Expand Down
4 changes: 2 additions & 2 deletions data/clean/f_431_ming.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def f_431(password: str, salt_length: int = 8) -> str:

def run_tests():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(PasswordEncryptionTests))
suite.addTest(unittest.makeSuite(TestCases))
runner = unittest.TextTestRunner()
runner.run(suite)

class PasswordEncryptionTests(unittest.TestCase):
class TestCases(unittest.TestCase):

def test_valid_encryption_format(self):
encrypted = f_431("test_password")
Expand Down
2 changes: 1 addition & 1 deletion data/clean/f_560_niklas.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def f_560(df):
return labels

import unittest

import numpy as np
def run_tests():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestCases))
Expand Down
880 changes: 440 additions & 440 deletions data/open-eval.jsonl

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions data/processed/f_219_wending_chien_edit_w_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def f_219(df):
# Integrating the test_cases function into the TestCases class methods and running the tests
import matplotlib
import unittest
import pandas as pd
class TestCases(unittest.TestCase):
def test_case_1(self):
data_1 = pd.DataFrame({
Expand Down
1 change: 1 addition & 0 deletions data/processed/f_560_niklas_w_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def f_560(df):
return labels

import unittest
import numpy as np
class TestCases(unittest.TestCase):
def test_case_1(self):
df = pd.DataFrame(np.random.rand(500, 2) * 100, columns=['A', 'B'])
Expand Down
2 changes: 1 addition & 1 deletion data/raw/f_219_wending_chien_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def f_219(df):

import matplotlib
import unittest

import pandas as pd

def run_tests():
"""
Expand Down
4 changes: 2 additions & 2 deletions data/raw/f_431_ming.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def f_431(password: str, salt_length: int = 8) -> str:

def run_tests():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(PasswordEncryptionTests))
suite.addTest(unittest.makeSuite(TestCases))
runner = unittest.TextTestRunner()
runner.run(suite)

class PasswordEncryptionTests(unittest.TestCase):
class TestCases(unittest.TestCase):

def test_valid_encryption_format(self):
encrypted = f_431("test_password")
Expand Down
2 changes: 1 addition & 1 deletion data/raw/f_560_niklas.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def f_560(df):
return labels

import unittest

import numpy as np
def run_tests():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestCases))
Expand Down

0 comments on commit 601eeea

Please sign in to comment.