COMMITMENTS AND CONTINGENCIES (Tables)
6 Months Ended
Jan. 31, 2017
Commitments and Contingencies Disclosure [Abstract]  
Schedule of Future Minimum Payments Due Under Operating Leases
Future minimum payments due under operating leases as of January 31, 2017 are as follows:
Year Ending July 31:
(In thousands)
2017 (remaining six months)
$
6,086

2018
10,847

2019
10,820

2020
10,402

2021
7,556

Thereafter
2,929

Total
$
48,640