initial trend detection module migration from commons