code
stringlengths
33
110
docstring
stringclasses
738 values
def sum_list_5300(a): total = 0 for x in a: total += x return total
Returns the sum of elements in the list a
def add_5301(x, e): return x + e
Returns the sum of x and e
def reverse_5302(q): return q[::-1]
Reverses the string q
def is_palindrome_5303(t): t = t.lower().replace(' ', '') return t == t[::-1]
Checks whether the string t is a palindrome
def is_palindrome_5304(c): t = c.lower().replace(' ', '') return t == t[::-1]
Checks whether the string c is a palindrome
def add_5305(j, g): return j + g
Returns the sum of j and g
def sum_list_5306(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def is_palindrome_5307(p): t = p.lower().replace(' ', '') return t == t[::-1]
Checks whether the string p is a palindrome
def contains_digit_5308(g): for ch in g: if ch.isdigit(): return True return False
Checks if the string g contains any digit
def sum_list_5309(k): total = 0 for x in k: total += x return total
Returns the sum of elements in the list k
def sum_list_5310(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def add_5311(o, s): return o + s
Returns the sum of o and s
def contains_digit_5312(i): for ch in i: if ch.isdigit(): return True return False
Checks if the string i contains any digit
def is_palindrome_5313(x): t = x.lower().replace(' ', '') return t == t[::-1]
Checks whether the string x is a palindrome
def contains_digit_5314(s): for ch in s: if ch.isdigit(): return True return False
Checks if the string s contains any digit
def sum_list_5315(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def is_palindrome_5316(v): t = v.lower().replace(' ', '') return t == t[::-1]
Checks whether the string v is a palindrome
def reverse_5317(p): return p[::-1]
Reverses the string p
def add_5318(o, u): return o + u
Returns the sum of o and u
def reverse_5319(a): return a[::-1]
Reverses the string a
def is_palindrome_5320(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def add_5321(y, l): return y + l
Returns the sum of y and l
def reverse_5322(j): return j[::-1]
Reverses the string j
def add_5323(e, e): return e + e
Returns the sum of e and e
def is_palindrome_5324(w): t = w.lower().replace(' ', '') return t == t[::-1]
Checks whether the string w is a palindrome
def is_palindrome_5325(j): t = j.lower().replace(' ', '') return t == t[::-1]
Checks whether the string j is a palindrome
def sum_list_5326(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def reverse_5327(x): return x[::-1]
Reverses the string x
def sum_list_5328(y): total = 0 for x in y: total += x return total
Returns the sum of elements in the list y
def add_5329(z, t): return z + t
Returns the sum of z and t
def sum_list_5330(m): total = 0 for x in m: total += x return total
Returns the sum of elements in the list m
def is_palindrome_5331(e): t = e.lower().replace(' ', '') return t == t[::-1]
Checks whether the string e is a palindrome
def add_5332(v, v): return v + v
Returns the sum of v and v
def add_5333(u, s): return u + s
Returns the sum of u and s
def reverse_5334(y): return y[::-1]
Reverses the string y
def contains_digit_5335(v): for ch in v: if ch.isdigit(): return True return False
Checks if the string v contains any digit
def is_palindrome_5336(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def is_palindrome_5337(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def is_palindrome_5338(o): t = o.lower().replace(' ', '') return t == t[::-1]
Checks whether the string o is a palindrome
def reverse_5339(c): return c[::-1]
Reverses the string c
def add_5340(u, j): return u + j
Returns the sum of u and j
def reverse_5341(y): return y[::-1]
Reverses the string y
def contains_digit_5342(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def contains_digit_5343(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def add_5344(p, a): return p + a
Returns the sum of p and a
def contains_digit_5345(l): for ch in l: if ch.isdigit(): return True return False
Checks if the string l contains any digit
def contains_digit_5346(u): for ch in u: if ch.isdigit(): return True return False
Checks if the string u contains any digit
def reverse_5347(o): return o[::-1]
Reverses the string o
def contains_digit_5348(o): for ch in o: if ch.isdigit(): return True return False
Checks if the string o contains any digit
def sum_list_5349(t): total = 0 for x in t: total += x return total
Returns the sum of elements in the list t
def reverse_5350(c): return c[::-1]
Reverses the string c
def sum_list_5351(v): total = 0 for x in v: total += x return total
Returns the sum of elements in the list v
def sum_list_5352(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def contains_digit_5353(f): for ch in f: if ch.isdigit(): return True return False
Checks if the string f contains any digit
def sum_list_5354(e): total = 0 for x in e: total += x return total
Returns the sum of elements in the list e
def reverse_5355(z): return z[::-1]
Reverses the string z
def sum_list_5356(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def contains_digit_5357(h): for ch in h: if ch.isdigit(): return True return False
Checks if the string h contains any digit
def sum_list_5358(c): total = 0 for x in c: total += x return total
Returns the sum of elements in the list c
def add_5359(s, l): return s + l
Returns the sum of s and l
def contains_digit_5360(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def contains_digit_5361(r): for ch in r: if ch.isdigit(): return True return False
Checks if the string r contains any digit
def sum_list_5362(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def is_palindrome_5363(q): t = q.lower().replace(' ', '') return t == t[::-1]
Checks whether the string q is a palindrome
def sum_list_5364(z): total = 0 for x in z: total += x return total
Returns the sum of elements in the list z
def add_5365(a, b): return a + b
Returns the sum of a and b
def reverse_5366(s): return s[::-1]
Reverses the string s
def is_palindrome_5367(y): t = y.lower().replace(' ', '') return t == t[::-1]
Checks whether the string y is a palindrome
def is_palindrome_5368(d): t = d.lower().replace(' ', '') return t == t[::-1]
Checks whether the string d is a palindrome
def sum_list_5369(f): total = 0 for x in f: total += x return total
Returns the sum of elements in the list f
def contains_digit_5370(w): for ch in w: if ch.isdigit(): return True return False
Checks if the string w contains any digit
def add_5371(j, s): return j + s
Returns the sum of j and s
def reverse_5372(i): return i[::-1]
Reverses the string i
def sum_list_5373(d): total = 0 for x in d: total += x return total
Returns the sum of elements in the list d
def contains_digit_5374(p): for ch in p: if ch.isdigit(): return True return False
Checks if the string p contains any digit
def sum_list_5375(u): total = 0 for x in u: total += x return total
Returns the sum of elements in the list u
def sum_list_5376(w): total = 0 for x in w: total += x return total
Returns the sum of elements in the list w
def add_5377(k, z): return k + z
Returns the sum of k and z
def sum_list_5378(i): total = 0 for x in i: total += x return total
Returns the sum of elements in the list i
def is_palindrome_5379(g): t = g.lower().replace(' ', '') return t == t[::-1]
Checks whether the string g is a palindrome
def sum_list_5380(x): total = 0 for x in x: total += x return total
Returns the sum of elements in the list x
def sum_list_5381(p): total = 0 for x in p: total += x return total
Returns the sum of elements in the list p
def is_palindrome_5382(k): t = k.lower().replace(' ', '') return t == t[::-1]
Checks whether the string k is a palindrome
def add_5383(m, g): return m + g
Returns the sum of m and g
def reverse_5384(v): return v[::-1]
Reverses the string v
def add_5385(h, h): return h + h
Returns the sum of h and h
def is_palindrome_5386(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def sum_list_5387(o): total = 0 for x in o: total += x return total
Returns the sum of elements in the list o
def add_5388(k, i): return k + i
Returns the sum of k and i
def is_palindrome_5389(m): t = m.lower().replace(' ', '') return t == t[::-1]
Checks whether the string m is a palindrome
def sum_list_5390(h): total = 0 for x in h: total += x return total
Returns the sum of elements in the list h
def is_palindrome_5391(s): t = s.lower().replace(' ', '') return t == t[::-1]
Checks whether the string s is a palindrome
def sum_list_5392(g): total = 0 for x in g: total += x return total
Returns the sum of elements in the list g
def add_5393(w, o): return w + o
Returns the sum of w and o
def reverse_5394(i): return i[::-1]
Reverses the string i
def is_palindrome_5395(h): t = h.lower().replace(' ', '') return t == t[::-1]
Checks whether the string h is a palindrome
def add_5396(l, t): return l + t
Returns the sum of l and t
def is_palindrome_5397(l): t = l.lower().replace(' ', '') return t == t[::-1]
Checks whether the string l is a palindrome
def reverse_5398(h): return h[::-1]
Reverses the string h
def reverse_5399(z): return z[::-1]
Reverses the string z