Does it substitute variables correctly? E.g. if I define max(a,b) or max(x,y) does it complete the definition with the right variable names?
def fetch_tweets_from_user(user_name):
# deleted some lines here...
# fetch tweets
tweets = api.user_timeline(screen_name=user, count=200,
include_rts=False)
screen_name=user there isn't right.It's a nit, but it is interesting how many of the hand-picked examples on that page aren't right. Since they were hand-picked, presumably to show the product off.
Which is odd considering they could run this as beam search with the checking part of a compiler in the loop.
The real difficulty is getting good checking on partial source code, some languages have better tooling for that than others.