public static void init(Context context){
  if (sInstance == null) {
    final ExecutorService service=Executors.newSingleThreadExecutor();
    sTrainingTaskFuture=service.submit(new TrainingTask(context));
  }
 else {
    throw new IllegalStateException("Attempt to train code classifier twice.\n" + "It should be initialized once at start to make train asynchronously.");
  }
}

public static void init ( Context context ) { if ( sInstance == null ) { final ExecutorService service = Executors . newSingleThreadExecutor ( ) ; sTrainingTaskFuture = service . submit ( new TrainingTask ( context ) ) ; } else { throw new IllegalStateException ( "Attempt to train code classifier twice.\n" + "It should be initialized once at start to make train asynchronously." ) ; } }
start point for apps that use code classifying . called ones at app start . it creates training task for code classifier .
