XML 54 R34.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details) - USD ($)
$ in Thousands
Jan. 31, 2020
Jul. 31, 2019
Financial Assets:    
Short-term investments: $ 607,307 $ 512,156
Recurring    
Financial Assets:    
Total measured at fair value 646,317 778,270
Cash 172,683 130,564
Total cash, cash equivalents and short-term investments 819,000 908,834
Recurring | Corporate bonds    
Financial Assets:    
Short-term investments: 395,673 354,549
Recurring | Commercial paper    
Financial Assets:    
Short-term investments: 115,762 92,851
Recurring | U.S. government securities    
Financial Assets:    
Short-term investments: 95,872 64,756
Recurring | Money market funds    
Financial Assets:    
Cash equivalents: 29,792 33,156
Recurring | Commercial paper    
Financial Assets:    
Cash equivalents: 3,498 103,029
Recurring | U.S. government securities    
Financial Assets:    
Cash equivalents: 3,670 119,933
Recurring | Corporate bonds    
Financial Assets:    
Cash equivalents: 2,050 9,996
Recurring | Level I    
Financial Assets:    
Total measured at fair value 29,792 33,156
Recurring | Level I | Corporate bonds    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | Commercial paper    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | U.S. government securities    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | Money market funds    
Financial Assets:    
Cash equivalents: 29,792 33,156
Recurring | Level I | Commercial paper    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level I | U.S. government securities    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level I | Corporate bonds    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level II    
Financial Assets:    
Total measured at fair value 616,525 745,114
Recurring | Level II | Corporate bonds    
Financial Assets:    
Short-term investments: 395,673 354,549
Recurring | Level II | Commercial paper    
Financial Assets:    
Short-term investments: 115,762 92,851
Recurring | Level II | U.S. government securities    
Financial Assets:    
Short-term investments: 95,872 64,756
Recurring | Level II | Money market funds    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level II | Commercial paper    
Financial Assets:    
Cash equivalents: 3,498 103,029
Recurring | Level II | U.S. government securities    
Financial Assets:    
Cash equivalents: 3,670 119,933
Recurring | Level II | Corporate bonds    
Financial Assets:    
Cash equivalents: 2,050 9,996
Recurring | Level III    
Financial Assets:    
Total measured at fair value 0 0
Recurring | Level III | Corporate bonds    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level III | Commercial paper    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level III | U.S. government securities    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level III | Money market funds    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level III | Commercial paper    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level III | U.S. government securities    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level III | Corporate bonds    
Financial Assets:    
Cash equivalents: $ 0 $ 0