prompt
stringlengths
14
2.1k
completion
stringlengths
0
10.3k
concept
stringclasses
200 values
<?code large_number = 123456789.987654321?><?code precision = 5?>
<?print floor(large_number, precision)?>
floor
<?code negative_float = -3.14?>
<?print floor(negative_float)?>
floor
<?code a = 12.987?><?code b = 3?>
<?print floor(a, b)?>
floor
<?code pi = 3.14159?><?code e = 2.71828?>
<?print floor(pi) + floor(e)?>
floor
<?code x = 12.34?><?code digits = 0?>
<?print ceil(x, digits)?>
ceil
<?code x = 1.234?><?code digits = 2?>
<?print ceil(x, digits)?>
ceil
<?code pi = 3.14159?><?code digits = 2?>
<?print ceil(pi, digits)?>
ceil
<?code x = -2.17?><?code digits = 1?>
<?print ceil(x, digits)?>
ceil
<?code x = 2.71828?>
<?print ceil(x)?>
ceil
<?code x = 1234.567?><?code digits = -2?>
<?print ceil(x, digits)?>
ceil
<?code x = 314.159?><?code digits = -1?>
<?print ceil(x, digits)?>
ceil
<?code x = -3.14?>
<?print ceil(x)?>
ceil
<?code x = 2.1?><?code digits = 1?>
<?print ceil(x, digits)?>
ceil
<?code x = 42.42?><?code digits = 2?>
<?print ceil(x, digits)?>
ceil
<?code a = 1?><?code b = 2?><?code c = 3?>
<?print min(a, b, c)?>
min
<?code a = 'apple'?><?code b = 'banana'?><?code c = 'apricot'?>
<?print min(a, b, c)?>
min
<?code s1 = 'apple'?><?code s2 = 'banana'?><?code s3 = 'apricot'?><?code s4 = 'Avocado'?>
<?print min(s1, s2, s3, s4)?>
min
<?code list_of_strings = ['banana', 'apple', 'apricot']?>
<?print min(list_of_strings)?>
min
<?code str1 = 'apple'?><?code str2 = 'apricot'?><?code str3 = 'avocado'?><?code str4 = 'Apple'?>
<?print min(str1, str2, str3, str4)?>
min
<?code empty_list = []?><?code default_value = 'default'?>
<?print min(empty_list, default=default_value)?>
min
<?code list1 = ['apple', 'banana', 'cherry']?><?code list2 = ['date', 'elderberry', 'fig']?>
<?print min(min(list1), min(list2))?>
min
<?code str1 = 'apple'?><?code str2 = 'banana'?><?code str3 = 'cherry'?><?code list_of_strings = [str1, str2, str3]?>
<?print min(list_of_strings)?>
min
<?code s1 = 'apple'?><?code s2 = 'banana'?><?code s3 = 'cherry'?>
<?print min(s1, s2, s3)?>
min
<?code list1 = ['apple', 'banana', 'cherry']?><?code list2 = ['date', 'elderberry', 'fig']?><?code min1 = min(list1)?><?code min2 = min(list2)?>
<?print min(min1, min2)?>
min
<?code list_of_strings = ['apple', 'banana', 'cherry', 'date', 'elderberry']?>
<?print min(list_of_strings)?>
min_single_arg
<?code string1 = 'hello'?><?code string2 = 'world'?><?code string3 = '!'?><?code combined = string1 + string2 + string3?>
<?print min(combined)?>
min_single_arg
<?code s = 'HelloWorld'?>
<?print min(s)?>
min_single_arg
<?code mixed_case = 'hELLoWoRlD'?>
<?print min(mixed_case)?>
min_single_arg
<?code unicode_string = 'αβγδεζηθικλμνξοπρστυφχψω'?>
<?print min(unicode_string)?>
min_single_arg
<?code empty_string = ''?>
<?print min(empty_string)?>
min_single_arg
<?code string_with_numbers = '1234567890'?>
<?print min(string_with_numbers)?>
min_single_arg
<?code mixed_string = 'aBcDeFgHiJkLmNoPqRsTuVwXyZ'?>
<?print min(mixed_string)?>
min_single_arg
<?code unicode_string = 'ÜöäßÄÖÜ'?>
<?print min(unicode_string)?>
min_single_arg
<?code empty_list = []?><?code default_value = 42?>
<?print min(empty_list, default=default_value)?>
min_single_arg
<?code list_of_ints = [1, 2, 3, 4, 5]?>
<?print max(list_of_ints)?>
max
<?code list_of_strings = ['apple', 'banana', 'cherry'] ?>
<?print max(list_of_strings) ?>
max
<?code a = 1?><?code b = 2?><?code c = 3?>
<?print max(a, b, c)?>
max
<?code x = 'apple'?><?code y = 'banana'?>
<?print max(x, y)?>
max
<?code a = 'abc'?><?code b = 'xyz'?><?code c = 'def'?>
<?print max(a, b, c)?>
max
<?code a = 'hello'?><?code b = 'world'?><?code c = 'there'?>
<?print max(a, b, c)?>
max
<?code s1 = 'grape'?><?code s2 = 'orange'?><?code s3 = 'kiwi'?>
<?print max(s1, s2, s3)?>
max
<?code str1 = 'apple'?><?code str2 = 'banana'?><?code str3 = 'avocado'?><?code str4 = 'apricot'?>
<?print max(str1, str2, str3, str4)?>
max
<?code s1 = 'Hello'?><?code s2 = 'World'?><?code s3 = ''?><?code s4 = '!'?>
<?print max(s1, s2, s3, s4)?>
max
<?code a = 'apple'?><?code b = 'apricot'?><?code c = 'avocado'?><?code d = 'banana'?><?code e = 'blueberry'?>
<?print max(a, b, c, d, e)?>
max
<?code fruit1 = 'apple'?><?code fruit2 = 'banana'?><?code fruit3 = 'cherry'?>
<?print max(fruit1, fruit2, fruit3)?>
max_single_arg
<?code str1 = 'apple'?><?code str2 = 'banana'?><?code str3 = 'cherry'?><?code str4 = 'date'?><?code str5 = 'elderberry'?>
<?print max([str1, str2, str3, str4, str5])?>
max_single_arg
<?code s1 = 'grape'?><?code s2 = 'orange'?><?code s3 = 'watermelon'?><?code s4 = 'pineapple'?><?code s5 = 'kiwi'?><?code s6 = 'mango'?>
<?print max([s1, s2, s3, s4, s5, s6])?>
max_single_arg
<?code w1 = 'apricot'?><?code w2 = 'blueberry'?><?code w3 = 'cranberry'?><?code w4 = 'dragonfruit'?>
<?print max(w1, w2, w3, w4)?>
max_single_arg
<?code fruit1 = 'apple'?><?code fruit2 = 'banana'?><?code fruit3 = 'avocado'?>
<?print max(fruit1, fruit2, fruit3)?>
max_single_arg
<?code str1 = 'Hello'?><?code str2 = 'World'?><?code str3 = '!'?>
<?print max(str1, str2, str3)?>
max_single_arg
<?code s1 = 'apple'?><?code s2 = 'apricot'?><?code s3 = 'avocado'?><?code s4 = 'banana'?><?code s5 = 'blueberry'?>
<?print max(s1, s2, s3, s4, s5)?>
max_single_arg
<?code w1 = 'winter'?><?code w2 = 'wonderful'?><?code w3 = 'world'?><?code w4 = 'warm'?>
<?print max([w1, w2, w3, w4])?>
max_single_arg
<?code colors = ['red', 'green', 'blue', 'yellow', 'orange']?>
<?print max(colors)?>
max_single_arg
<?code nums = [1, 2, 3, 4, 5]?>
<?print sum(nums, 10)?>
sum
<?code nums = [1, 2, 3, 4, 5]?><?code start = 10?>
<?print sum(nums, start)?>
sum
<?code nums = [1.1, 2.2, 3.3]?>
<?print sum(nums)?>
sum
<?code nums = [1, 2, 3]?><?code start = 0?>
<?print sum(nums, start)?>
sum
<?code nums = [True, False, True]?>
<?print sum(nums)?>
sum
<?code nums = [1, 2, 3, 4, 5]?><?code start = 10?>
<?print sum(nums, start)?>
sum
<?code nums = [1.5, 2.5, 3]?><?code start = 0?>
<?print sum(nums, start)?>
sum
<?code nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]?><?code start = 0?>
<?print sum(nums, start)?>
sum
<?code nums = [1, -2, 3, -4, 5]?><?code start = 0?>
<?print sum(nums, start)?>
sum
<?code start = 5?><?code stop = 15?>
<?print randrange(start, stop)?>
randrange
<?code stop = 20?>
<?print randrange(stop)?>
randrange
<?code stop = 10?><?code step = 3?>
<?print randrange(0, stop, step)?>
randrange
<?code start = 1?><?code stop = 11?><?code step = 2?>
<?print randrange(start, stop, step)?>
randrange
<?code start = 5?><?code stop = 15?><?code step = 2?><?code result = []?><?for i in range(5)?><?code result.append(randrange(start, stop, step))?><?end for?>
<?print result?>
randrange
<?code stop = 5?>
<?print randrange(stop)?>
randrange
<?code start = -10?><?code stop = 10?><?code step = 3?>
<?print randrange(start, stop, step)?>
randrange
<?code start = 10?><?code stop = 50?><?code step = 5?><?code result = randrange(start, stop, step)?>
<?print result?>
randrange
<?code stop = 100?>
<?print randrange(stop)?>
randrange
<?code my_list = ["apple", "banana", "cherry"]?>
<?print randchoice(my_list)?>
randchoice
<?code options = ["North", "South", "East", "West"]?><?code direction = randchoice(options)?>
<?print direction?>
randchoice
<?code nested_list = [["a", "b"], [1, 2], [True, False]]?>
<?print randchoice(randchoice(nested_list))?>
randchoice
<?code colors = {"red": "#FF0000", "green": "#00FF00", "blue": "#0000FF"}?><?code color_names = list(colors.keys())?>
<?print colors[randchoice(color_names)]?>
randchoice
<?code empty_list = []?><?code my_string = "abcdefg"?><?code char_list = [c for c in my_string]?>
<?print randchoice(char_list)?>
randchoice
<?code my_list = ["apple", "banana", "cherry", "date", "elderberry"]?>
<?print randchoice(my_list)?>
randchoice
<?code nested_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]?>
<?print randchoice(randchoice(nested_list))?>
randchoice
<?code my_string = "abcdefg"?>
<?print randchoice(my_string)?>
randchoice
<?code choices = {1: "rock", 2: "paper", 3: "scissors"}?><?code choice_key = randchoice(list(choices.keys()))?>
<?print choices[choice_key]?>
randchoice
<?code my_string = "Hello, world!"?>
<?print len(my_string)?>
len
<?code my_list = [1, 2, 3, 4, 5]?>
<?print len(my_list)?>
len
<?code my_dictionary = {"apple": 1, "banana": 2, "cherry": 3}?>
<?print len(my_dictionary)?>
len
<?code my_string = "Hello, world!"?>
<?print len(my_string)?>
len
<?code my_list = ["apple", "banana", "cherry"]?><?code my_string = "HelloWorld"?>
<?print len(my_list) + len(my_string)?>
len
<?code my_dict = {"a": 1, "b": 2, "c": 3} ?>
<?print len(my_dict)?>
len
<?code fruits = ["apple", "banana", "cherry", "date"]?><?code word = "grapefruit"?>
<?print len(fruits[len(fruits)//2:]) + len(word[len(word)//3:len(word) * 2 // 3])?>
len
<?code colors = ['red', 'green', 'blue']?>
<?print len(colors)?>
len
<?code names = ["Alice", "Bob", "Charlie", "David"]?>
<?print sorted(names)?>
sorted
<?code list1 = [5, 2, 8, 1, 9, 4]?>
<?print sorted(list1, reverse=True)?>
sorted
<?code a = ["apple", "banana", "cherry"]?>
<?print sorted(a, key=len)?>
sorted
<?code colors = ["#FF0000", "#00FF00", "#0000FF", "#FFFF00"]?>
<?print sorted(colors)?>
sorted
<?code nums = [3, 1, 4, 1, 5, 9, 2, 6]?>
<?print sorted(nums, reverse=True)?>
sorted
<?code colors = ['#FF0000', '#00FF00', '#0000FF'] ?>
<?print sorted(colors)?>
sorted
<?code fruits = ['apple', 'banana', 'cherry', 'date'] ?>
<?print sorted(fruits, key=len)?>
sorted
<?code nums = [3, 1, 4, 1, 5, 9, 2, 6]?>
<?print sorted(nums, reverse=True)?>
sorted
<?code my_list = ['apple', 'banana', 'cherry'] ?>
<?for (index, item) in enumerate(my_list)?><?print index?>: <?print item?> <?end for?>
enumerate
<?code my_string = "UL4 is cool"?>
<?for (index, char) in enumerate(my_string)?><?print index?>:<?print char?><?end for?>
enumerate
<?code my_list = ["apple", "banana", "cherry"]?>
<?for (i, fruit) in enumerate(my_list, start=1)?>Item <?print i?> is <?print fruit?>.<?end for?>
enumerate
<?code fruits = ["apple", "banana", "cherry", "date", "elderberry"]?>
<?for (i, fruit) in enumerate(fruits)?><?if i % 2 == 0?><?print fruit?>, <?end if?><?end for?>
enumerate