Calcite is a neat project that uses existing projects to suggest code snippets. https://edelstein.pebbles.cs.cmu.edu/calcite/ (hasn't hit the industry AFAIK)