Annual report pursuant to Section 13 and 15(d)

Quarterly Results of Operations-Unaudited - Quarterly Results of Operations (Detail)

v3.8.0.1
Quarterly Results of Operations-Unaudited - Quarterly Results of Operations (Detail) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Jan. 31, 2018
Oct. 31, 2017
Jul. 31, 2017
Apr. 30, 2017
Jan. 31, 2017
Oct. 31, 2016
Jul. 31, 2016
Apr. 30, 2016
Jan. 31, 2018
Jan. 31, 2017
Jan. 31, 2016
Quarterly Financial Information Disclosure [Abstract]                      
Revenue $ 22,945 $ 23,430 $ 17,225 $ 16,667 $ 23,812 $ 19,961 $ 18,452 $ 21,570      
Gross profit 16,287 16,364 11,416 9,877 16,242 10,378 8,023 9,662 $ 53,944 $ 44,305 $ 46,839
Operating expenses 15,066 15,444 13,499 15,345 40,710 18,813 19,691 19,237 59,354 98,451 95,038
Net (loss) income $ 20,618 $ (220) $ (1,529) $ (5,371) $ (27,376) $ (8,082) $ (26,884) $ (8,907) $ 13,498 $ (71,249) $ (47,697)
(Loss) income per share                      
Basic $ 0.58 $ 0.00 $ (0.05) $ (0.15) $ (0.78) $ (0.23) $ (0.77) $ (0.26) $ 0.38 $ (2.04) $ (1.42)
Diluted $ 0.58 $ 0.00 $ (0.05) $ (0.15) $ (0.78) $ (0.23) $ (0.77) $ (0.26) $ 0.38 $ (2.04) $ (1.42)