Skip to main content

Table 1 Intent and snippet examples from CoNaLa dataset

From: MarianCG: a code generation transformer model inspired by machine translation

Examples

Intent (natural language)

Snippet (code)

Example 1

Convert a list to a dictionary in python

b = dict(zip(a[0::2], a[1::2]))

Example 2

Sort a list of nested lists

l.sort(key=sumnested)

Example 3

How to get the size of a string in python?

print(len(’string’))