MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / list_increment

Function list_increment

NLP/Text2SQL-BASELINE/text2sql/utils/utils.py:108–121  ·  view source on GitHub ↗

increment each element in list Args: lst (list): NULL base (int): NULL Returns: TODO Raises: NULL

(lst: list, base: int)

Source from the content-addressed store, hash-verified

106
107
108def list_increment(lst: list, base: int):
109 """increment each element in list
110
111 Args:
112 lst (list): NULL
113 base (int): NULL
114
115 Returns: TODO
116
117 Raises: NULL
118 """
119 for i in range(len(lst)):
120 lst[i] += base
121 return lst
122
123
124def count_file_lines(filename):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected