Skip to content

Commit b1967f6

Browse files
committed
fix: minor data update
1 parent 71595c0 commit b1967f6

File tree

1,142 files changed

+1140
-2280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,142 files changed

+1140
-2280
lines changed

data/processed/0_w_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def task_func(numbers=list(range(1, 3))):
2121
>>> isinstance(result, float)
2222
True
2323
"""
24-
2524
permutations = list(itertools.permutations(numbers))
2625
sum_diffs = 0
2726
for perm in permutations:

data/processed/1000_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def task_func(url):
3131
0 Alice 25 New York
3232
1 Bob 30 San Francisco
3333
"""
34-
3534
urllib.request.urlretrieve(url, TARGET_JSON_FILE)
3635
with open(TARGET_JSON_FILE, "r") as f:
3736
data = json.load(f)

data/processed/1001_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def task_func(csv_file_path: str):
2727
>>> ax.get_title()
2828
" Plot Title : Normalized Column 1"
2929
"""
30-
3130
df = pd.read_csv(csv_file_path)
3231
mean = df["column1"].mean()
3332
std = df["column1"].std()

data/processed/1002_w_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def task_func(data, column_name="target_column"):
3333
0 1 10
3434
1 2 15
3535
"""
36-
3736
df = pd.DataFrame(data)
3837
if column_name not in df.columns:
3938
raise ValueError(f"Column '{column_name}' not found in the DataFrame.")

data/processed/1003_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def task_func(url):
3939
>>> df = task_func('http://example.com/invalid_structure.xml')
4040
ValueError: XML structure does not match expected format.
4141
"""
42-
4342
try:
4443
with urllib.request.urlopen(url) as response:
4544
xml_data = response.read()

data/processed/1004_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def task_func(url):
3535
- matplotlib
3636
3737
"""
38-
3938
with urllib.request.urlopen(url) as response:
4039
text = response.read().decode()
4140
words = re.findall(r"\b\w+\b", text)

data/processed/1005_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def task_func(
3939
4040
4141
"""
42-
4342
try:
4443
if os.path.exists(save_path):
4544
os.remove(save_path)

data/processed/1006_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def task_func(url, download_path="mnt/data/downloads/"):
3838
>>> task_func('https://example.com/file.zip')
3939
'mnt/data/downloads/file'
4040
"""
41-
4241
if not os.path.exists(download_path):
4342
os.makedirs(download_path)
4443
try:

data/processed/1007_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def task_func(url: str) -> pd.DataFrame:
3737
- It checks the HTTP response status and raises an HTTPError for unsuccessful status codes.
3838
- Directly converts the HTTP response to JSON and then to a DataFrame, without intermediate processing.
3939
"""
40-
4140
try:
4241
response = requests.get(url, timeout=5)
4342
response.raise_for_status() # Raises an HTTPError if the HTTP request returned an unsuccessful status code

data/processed/1008_wo_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def task_func(url, table_id):
5656
Columns: []
5757
Index: []
5858
"""
59-
6059
try:
6160
response = requests.get(url, timeout=5)
6261
response.raise_for_status() # Raises an HTTPError if the HTTP request returned an unsuccessful status code

0 commit comments

Comments
 (0)