Skip to content

Commit 54c9f96

Browse files
committed
fix: add trailing newlines to prompts
1 parent b9fd3a5 commit 54c9f96

File tree

1,142 files changed

+2280
-1140
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

+2280
-1140
lines changed

data/processed/0_w_doc.py

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

data/processed/1000_wo_doc.py

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

data/processed/1001_wo_doc.py

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

data/processed/1002_w_doc.py

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

data/processed/1003_wo_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ 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+
4243
try:
4344
with urllib.request.urlopen(url) as response:
4445
xml_data = response.read()

data/processed/1004_wo_doc.py

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

data/processed/1005_wo_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def task_func(
3939
4040
4141
"""
42+
4243
try:
4344
if os.path.exists(save_path):
4445
os.remove(save_path)

data/processed/1006_wo_doc.py

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

data/processed/1007_wo_doc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ 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+
4041
try:
4142
response = requests.get(url, timeout=5)
4243
response.raise_for_status() # Raises an HTTPError if the HTTP request returned an unsuccessful status code

data/processed/1008_wo_doc.py

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

0 commit comments

Comments
 (0)