XML 66 R51.htm IDEA: XBRL DOCUMENT
v3.10.0.1

FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details) - USD ($) $ in Thousands | Jul. 31, 2018 | Jul. 31, 2017
--- | --- | ---
Financial Assets: |  |
Short-term investments: | $ 628,328 | $ 210,694
Recurring |  |
Financial Assets: |  |
Total measured at fair value | 752,894 | 268,519
Cash | 181,409 | 80,534
Total cash, cash equivalents and short-term investments | 934,303 | 349,053
Recurring | Warrant |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability | 1,872 | 4,295
Recurring | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 448,458 | 160,634
Recurring | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 120,772 | 36,084
Recurring | US Government Debt Securities |  |
Financial Assets: |  |
Cash equivalents: | 4,985 |
Short-term investments: | 59,098 | 13,976
Recurring | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 41,763 | 34,784
Recurring | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 77,818 | 23,041
Recurring | Level I |  |
Financial Assets: |  |
Total measured at fair value | 41,763 | 34,784
Recurring | Level I | Warrant |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability | 0 | 0
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 | US Government Debt Securities |  |
Financial Assets: |  |
Short-term investments: | 0 | 0
Recurring | Level I | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 41,763 | 34,784
Recurring | Level I | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 0 | 0
Recurring | Level II |  |
Financial Assets: |  |
Total measured at fair value | 711,131 | 233,735
Recurring | Level II | Warrant |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability | 0 | 0
Recurring | Level II | Corporate bonds |  |
Financial Assets: |  |
Short-term investments: | 448,458 | 160,634
Recurring | Level II | Commercial paper |  |
Financial Assets: |  |
Short-term investments: | 120,772 | 36,084
Recurring | Level II | US Government Debt Securities |  |
Financial Assets: |  |
Cash equivalents: | 4,985 |
Short-term investments: | 59,098 | 13,976
Recurring | Level II | Money market funds |  |
Financial Assets: |  |
Cash equivalents: | 0 | 0
Recurring | Level II | Commercial paper |  |
Financial Assets: |  |
Cash equivalents: | 77,818 | 23,041
Recurring | Level III |  |
Financial Assets: |  |
Total measured at fair value | 0 | 0
Recurring | Level III | Warrant |  |
Financial Liabilities: |  |
Convertible preferred stock warrant liability | 1,872 | 4,295
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 | US Government Debt 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

X
- References No definition available. + Details
Name: | us-gaap_AssetsFairValueDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale), classified as current. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109979856&loc=d3e26626-111562 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecuritiesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Excludes cash and cash equivalents within disposal group and discontinued operation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_Cash
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. + References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cash includes currency on hand as well as demand deposits with banks or financial institutions. It also includes other kinds of accounts that have the general characteristics of demand deposits in that the customer may deposit additional funds at any time and effectively may withdraw funds at any time without prior notice or penalty. Cash equivalents, excluding items classified as marketable securities, include short-term, highly liquid Investments that are both readily convertible to known amounts of cash, and so near their maturity that they present minimal risk of changes in value because of changes in interest rates. Generally, only investments with original maturities of three months or less qualify under that definition. Original maturity means original maturity to the entity holding the investment. For example, both a three-month US Treasury bill and a three-year Treasury note purchased three months from maturity qualify as cash equivalents. However, a Treasury note purchased three years ago does not become a cash equivalent when its remaining maturity is three months. Short-term investments, exclusive of cash equivalents, generally consist of marketable securities intended to be sold within one year (or the normal operating cycle if longer) and may include trading securities, available-for-sale securities, or held-to-maturity securities (if maturing within one year), as applicable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.1) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CashCashEquivalentsAndShortTermInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312 + Details
Name: | us-gaap_DerivativeLiabilitiesNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_FinancialLiabilitiesFairValueDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=99377789&loc=d3e19207-110258 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByLiabilityClassAxis=us-gaap_WarrantMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_MoneyMarketFundsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CashAndCashEquivalentsAxis=us-gaap_CommercialPaperMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |