Skip to content

Commit af013f6

Browse files
committed
fix: move 623 test constant def
1 parent 656eef7 commit af013f6

File tree

8 files changed

+1075
-1074
lines changed

8 files changed

+1075
-1074
lines changed

data/clean/f_623_xiaoheng.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
import csv
33
from collections import Counter
44

5-
# Constants
6-
BASE_PATH = 'f_623_data_xiaoheng'
7-
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
8-
95
def f_623(file_path):
106
"""
117
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
@@ -49,6 +45,9 @@ def f_623(file_path):
4945
return most_common_word, frequency
5046

5147
import unittest
48+
# Constants
49+
BASE_PATH = 'f_623_data_xiaoheng'
50+
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
5251

5352
def run_tests():
5453
suite = unittest.TestSuite()

data/clean/f_882_chien.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def f_882(client_socket):
4242
import socket
4343
import threading
4444

45-
45+
SERVER_ADDRESS = "localhost"
46+
BUFFER_SIZE = 1024
4647
class TestCases(unittest.TestCase):
4748
"""Test cases for f_882."""
4849

data/processed/1038_wo_doc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def task_func(client_socket):
4040
import unittest
4141
import socket
4242
import threading
43+
SERVER_ADDRESS = "localhost"
44+
BUFFER_SIZE = 1024
4345
class TestCases(unittest.TestCase):
4446
"""Test cases for task_func."""
4547
def setUp(self):

data/processed/721_wo_doc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
import csv
33
from collections import Counter
44

5-
# Constants
6-
BASE_PATH = 'task_func_data'
7-
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
8-
95
def task_func(file_path):
106
"""
117
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
@@ -45,6 +41,9 @@ def task_func(file_path):
4541
return most_common_word, frequency
4642

4743
import unittest
44+
# Constants
45+
BASE_PATH = 'task_func_data'
46+
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
4847
class TestCases(unittest.TestCase):
4948
def setUp(self):
5049
"""Create the directory for test files."""

data/raw/f_623_xiaoheng.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
import csv
33
from collections import Counter
44

5-
# Constants
6-
BASE_PATH = 'f_623_data_xiaoheng'
7-
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
8-
95
def f_623(file_path):
106
"""
117
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
@@ -49,6 +45,9 @@ def f_623(file_path):
4945
return most_common_word, frequency
5046

5147
import unittest
48+
# Constants
49+
BASE_PATH = 'f_623_data_xiaoheng'
50+
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
5251

5352
def run_tests():
5453
suite = unittest.TestSuite()

data/raw/f_882_chien.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def f_882(client_socket):
4242
import socket
4343
import threading
4444

45-
45+
SERVER_ADDRESS = "localhost"
46+
BUFFER_SIZE = 1024
4647
class TestCases(unittest.TestCase):
4748
"""Test cases for f_882."""
4849

data/wild-code-bench.jsonl

Lines changed: 1060 additions & 1060 deletions
Large diffs are not rendered by default.

data/wild-code-bench.jsonl.gz

262 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)