Skip to content

Commit

Permalink
fix: fix 1031 doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed May 11, 2024
1 parent a4498d9 commit a642dba
Show file tree
Hide file tree
Showing 5 changed files with 1,096 additions and 1,096 deletions.
2 changes: 1 addition & 1 deletion data/clean/f_1031_zhihan_refined.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def f_1031(list_of_pairs):
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
>>> product_array = f_1031(list_of_pairs)
>>> print(product_array)
360
[360]
"""
second_values = [pair[1] for pair in list_of_pairs]
product = reduce(np.multiply, second_values)
Expand Down
2 changes: 1 addition & 1 deletion data/processed/33_w_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def task_func(list_of_pairs):
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
>>> product_array = task_func(list_of_pairs)
>>> print(product_array)
360
[360]
"""
second_values = [pair[1] for pair in list_of_pairs]
product = reduce(np.multiply, second_values)
Expand Down
2 changes: 1 addition & 1 deletion data/raw/f_1031_zhihan_refined.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def f_1031(list_of_pairs):
>>> list_of_pairs = [('Fruits', 5), ('Vegetables', 9), ('Dairy', -1), ('Bakery', -2), ('Meat', 4)]
>>> product_array = f_1031(list_of_pairs)
>>> print(product_array)
360
[360]
"""
second_values = [pair[1] for pair in list_of_pairs]
product = reduce(np.multiply, second_values)
Expand Down
Loading

0 comments on commit a642dba

Please sign in to comment.