Skip to content

Commit

Permalink
fix: move 623 test constant def
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed May 11, 2024
1 parent 656eef7 commit af013f6
Show file tree
Hide file tree
Showing 8 changed files with 1,075 additions and 1,074 deletions.
7 changes: 3 additions & 4 deletions data/clean/f_623_xiaoheng.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import csv
from collections import Counter

# Constants
BASE_PATH = 'f_623_data_xiaoheng'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')

def f_623(file_path):
"""
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
Expand Down Expand Up @@ -49,6 +45,9 @@ def f_623(file_path):
return most_common_word, frequency

import unittest
# Constants
BASE_PATH = 'f_623_data_xiaoheng'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')

def run_tests():
suite = unittest.TestSuite()
Expand Down
3 changes: 2 additions & 1 deletion data/clean/f_882_chien.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def f_882(client_socket):
import socket
import threading


SERVER_ADDRESS = "localhost"
BUFFER_SIZE = 1024
class TestCases(unittest.TestCase):
"""Test cases for f_882."""

Expand Down
2 changes: 2 additions & 0 deletions data/processed/1038_wo_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def task_func(client_socket):
import unittest
import socket
import threading
SERVER_ADDRESS = "localhost"
BUFFER_SIZE = 1024
class TestCases(unittest.TestCase):
"""Test cases for task_func."""
def setUp(self):
Expand Down
7 changes: 3 additions & 4 deletions data/processed/721_wo_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import csv
from collections import Counter

# Constants
BASE_PATH = 'task_func_data'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')

def task_func(file_path):
"""
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
Expand Down Expand Up @@ -45,6 +41,9 @@ def task_func(file_path):
return most_common_word, frequency

import unittest
# Constants
BASE_PATH = 'task_func_data'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')
class TestCases(unittest.TestCase):
def setUp(self):
"""Create the directory for test files."""
Expand Down
7 changes: 3 additions & 4 deletions data/raw/f_623_xiaoheng.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
import csv
from collections import Counter

# Constants
BASE_PATH = 'f_623_data_xiaoheng'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')

def f_623(file_path):
"""
This function reads the specified CSV file, counts the frequency of each word, and returns the most common word
Expand Down Expand Up @@ -49,6 +45,9 @@ def f_623(file_path):
return most_common_word, frequency

import unittest
# Constants
BASE_PATH = 'f_623_data_xiaoheng'
FILE_NAME = os.path.join(BASE_PATH, 'Output.txt')

def run_tests():
suite = unittest.TestSuite()
Expand Down
3 changes: 2 additions & 1 deletion data/raw/f_882_chien.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def f_882(client_socket):
import socket
import threading


SERVER_ADDRESS = "localhost"
BUFFER_SIZE = 1024
class TestCases(unittest.TestCase):
"""Test cases for f_882."""

Expand Down
2,120 changes: 1,060 additions & 1,060 deletions data/wild-code-bench.jsonl

Large diffs are not rendered by default.

Binary file modified data/wild-code-bench.jsonl.gz
Binary file not shown.

0 comments on commit af013f6

Please sign in to comment.