java code to generate data for tsne visualizations.