Skip to content

Commit 7ce2053

Browse files
committed
update wenhao data
1 parent 8d026f3 commit 7ce2053

Some content is hidden

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

43 files changed

+385
-388
lines changed

data/clean/f_761_wenhao.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ def f_761(df, column):
2525
2626
Example:
2727
>>> df = pd.DataFrame({'Category': ['A', 'B', 'B', 'C', 'A', 'D', 'E', 'E', 'D']})
28-
>>> ax = f_761(df, 'Category')
29-
# This generates and displays a bar chart showing the distribution of each category within the 'Category' column.
30-
28+
>>> ax = f_761(df, 'Category')
3129
>>> df = pd.DataFrame({'Type': ['A', 'A', 'C', 'E', 'D', 'E', 'D']})
3230
>>> ax = f_761(df, 'Type')
3331
"""

data/clean/f_772_wenhao.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ def f_772(word):
1212
list: A list of random pairs of adjacent letters from the word. If the word has fewer than 2 letters, returns a list of empty strings based on POSSIBLE_LETTERS length.
1313
1414
Examples:
15-
>>> random.seed(0); f_772('abcdef')
16-
['ab', 'bc', 'cd']
17-
>>> random.seed(0); f_772('xyz')
18-
['xy', 'xy', 'yz']
15+
>>> random.seed(0)
16+
>>> f_772('abcdef')
17+
['de', 'de', 'ab']
18+
>>> f_772('xyz')
19+
['yz', 'yz', 'yz']
1920
"""
2021
if not all(char in string.ascii_letters for char in word):
2122
raise ValueError("Input must only contain letters.")

data/clean/f_832_wenhao.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def f_832(length: int, predicates: list, seed: int = None):
3232
- random
3333
3434
Example:
35-
>>> f_832(10, ['has_uppercase', 'has_numbers'], seed=42)
36-
('8czu("@iNc', {'has_uppercase': True, 'has_numbers': True})
35+
>>> f_832(10, ['has_uppercase', 'has_numbers'], seed=42)[0]
36+
'8czu("@iNc'
3737
>>> f_832(5, ['has_lowercase'], seed=123)
3838
('eiMk[', {'has_lowercase': True})
3939
"""

data/open-eval.jsonl

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

data/processed/f_331_jenny_w_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def f_331(data, column="c"):
1414
- column (str): Name of column to remove. Defaults to "c".
1515
1616
Returns:
17-
- matplotlib.axes._subplots.Axes or None: The Axes object of the heatmap
17+
- matplotlib.axes._axes.Axes or None: The Axes object of the heatmap
1818
or None if the heatmap is not generated.
1919
2020
Requirements:

data/processed/f_367_jenny_wo_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def f_367(file_path="data.csv", columns=["A", "B", "C"]):
2929
0 1.0 2.0 3.0
3030
1 4.0 5.0 6.0
3131
>>> ax
32-
<matplotlib.axes._subplots.Axes object at 0x7f24b00f4a90>
32+
<matplotlib.axes._axes.Axes object at 0x7f24b00f4a90>
3333
>>> croot
3434
0 1.0
3535
"""

data/processed/f_407_jenny_wo_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def f_407(data):
1414
are not the expected type, this function raises TypeError.
1515
1616
Returns:
17-
- matplotlib.axes._subplots.Axes: The generated plot's Axes object.
17+
- matplotlib.axes._axes.Axes: The generated plot's Axes object.
1818
1919
Requirements:
2020
- pandas

data/processed/f_411_jenny_w_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def f_411(data):
1010
data (list): A list of dictionaries. The keys are labels and the values are data points.
1111
1212
Returns:
13-
matplotlib.axes._subplots.Axes or None: Axes object of the plot showing 'Data over Time',
13+
matplotlib.axes._axes.Axes or None: Axes object of the plot showing 'Data over Time',
1414
with 'Time' on the x-axis and 'Data Points' on the y-axis.
1515
If data is empty, return None.
1616

data/processed/f_413_jenny_wo_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def f_413(input_file):
1616
Returns:
1717
- result (dict): each key corresponds to those in the input dictionaries, and the corresponding
1818
value is another dict with keys 'mean' and 'median', representing the calculated statistics.
19-
- plots (list[matplotlib.axes._subplots.Axes]): A list of bar charts, one for
19+
- plots (list[matplotlib.axes._axes.Axes]): A list of bar charts, one for
2020
each key in the dictionaries, visualizing the mean and median values.
2121
2222
Requirements:
@@ -28,7 +28,7 @@ def f_413(input_file):
2828
Example:
2929
>>> results, plots = f_413("sample_data.json")
3030
>>> type(plots[0])
31-
<class 'matplotlib.axes._subplots.Axes'>
31+
<class 'matplotlib.axes._axes.Axes'>
3232
>>> results
3333
{'a': {'mean': 3.0, 'median': 3.0}, 'b': {'mean': 6.0, 'median': 6.0}}
3434
"""

data/processed/f_423_jenny_wo_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def f_423(db_name="test.db", table_name="People"):
1313
table_name (str, optional): The name of the table to plot from. Defaults to 'People'.
1414
1515
Returns:
16-
matplotlib.axes._subplots.Axes: Axes object representing the age distribution plot,
16+
matplotlib.axes._axes.Axes: Axes object representing the age distribution plot,
1717
with x-axis showing age and a default of bins=30, kde=True.
1818
1919
Requirements:

0 commit comments

Comments
 (0)