GitHub has previewed a new artificial intelligence tool that can give suggestions to people while coding and help them write better code with less work. “It helps you quickly discover alternative ways to solve problems, write tests, and explore new APIs without having to tediously tailor a search for answers on the internet,” GitHub CEO Nat Friedman said in a …