00100 - Statement - Condensed Consolidated Balance Sheets link:presentationLink link:calculationLink link:definitionLink 00200 - Statement - Condensed Consolidated Statements of Operations link:presentationLink link:calculationLink link:definitionLink 00300 - Statement - Condensed Consolidated Statements of Comprehensive Income (Loss) link:presentationLink link:calculationLink link:definitionLink 00500 - Statement - Condensed Consolidated Statements of Cash Flows link:presentationLink link:calculationLink link:definitionLink 40401 - Disclosure - Cash and cash equivalents and marketable securities (Details) link:presentationLink link:calculationLink link:definitionLink 40601 - Disclosure - Property and equipment (Details) link:presentationLink link:calculationLink link:definitionLink 40701 - Disclosure - Accrued expenses and other liabilities (Details) link:presentationLink link:calculationLink link:definitionLink 40802 - Disclosure - Convertible Notes - Carrying and fair value (Details) link:presentationLink link:calculationLink link:definitionLink 40803 - Disclosure - Convertible Notes - Debt issuance costs and interest expense (Details) link:presentationLink link:calculationLink link:definitionLink 40804 - Disclosure - Convertible Notes - Amortization expense, debt discount and debt issuance costs (Details) link:presentationLink link:calculationLink link:definitionLink 40901 - Disclosure - Credit Facility (Details) link:presentationLink link:calculationLink link:definitionLink 41001 - Disclosure - Leases (Details) link:presentationLink link:calculationLink link:definitionLink 41002 - Disclosure - Leases - Schedule of Maturities of Lease Liabilities (Details) link:presentationLink link:calculationLink link:definitionLink 41101 - Disclosure - Notes payable (Details) link:presentationLink link:calculationLink link:definitionLink 41101 - Disclosure - Notes payable (Details) (Cal 2) link:presentationLink link:calculationLink link:definitionLink 41201 - Disclosure - Fair value measurement (Details) link:presentationLink link:calculationLink link:definitionLink 41302 - Disclosure - Leases - Schedule of Maturities of Lease Liabilities (Details) - Calc2 link:presentationLink link:calculationLink link:definitionLink 41302 - Disclosure - Leases - Schedule of Maturities of Lease Liabilities (Details) (Cal 3) link:presentationLink link:calculationLink link:definitionLink 00090 - Document - Document and Entity Information link:presentationLink link:calculationLink link:definitionLink 00105 - Statement - Condensed Consolidated Balance Sheets (Parenthetical) link:presentationLink link:calculationLink link:definitionLink 00400 - Statement - Condensed Consolidated Statements of Stockholders' Equity link:presentationLink link:calculationLink link:definitionLink 10101 - Disclosure - The business link:presentationLink link:calculationLink link:definitionLink 10201 - Disclosure - Summary of significant accounting policies link:presentationLink link:calculationLink link:definitionLink 10401 - Disclosure - Cash and cash equivalents and marketable securities link:presentationLink link:calculationLink link:definitionLink 10601 - Disclosure - Property and equipment link:presentationLink link:calculationLink link:definitionLink 10701 - Disclosure - Accrued expenses and other liabilities link:presentationLink link:calculationLink link:definitionLink 10901 - Disclosure - Credit Facility link:presentationLink link:calculationLink link:definitionLink 11101 - Disclosure - Notes payable link:presentationLink link:calculationLink link:definitionLink 11201 - Disclosure - Fair value measurement link:presentationLink link:calculationLink link:definitionLink 11301 - Disclosure - Income taxes link:presentationLink link:calculationLink link:definitionLink 11401 - Disclosure - Commitments and contingencies link:presentationLink link:calculationLink link:definitionLink 11501 - Disclosure - Stock incentive plans link:presentationLink link:calculationLink link:definitionLink 11601 - Disclosure - Net (loss) income per share attributable to common stockholders link:presentationLink link:calculationLink link:definitionLink 20202 - Disclosure - Summary of significant accounting policies (Policies)_10Q link:presentationLink link:calculationLink link:definitionLink 30203 - Disclosure - Summary of significant accounting policies (Tables) link:presentationLink link:calculationLink link:definitionLink 30403 - Disclosure - Cash and cash equivalents and marketable securities (Tables) link:presentationLink link:calculationLink link:definitionLink 30503 - Disclosure - Contract assets and contract liabilities (Tables) link:presentationLink link:calculationLink link:definitionLink 30603 - Disclosure - Property and equipment (Tables) link:presentationLink link:calculationLink link:definitionLink 30703 - Disclosure - Accrued expenses and other liabilities (Tables) link:presentationLink link:calculationLink link:definitionLink 30803 - Disclosure - Convertible Notes (Tables) link:presentationLink link:calculationLink link:definitionLink 30903 - Disclosure - Credit Facility (Tables) link:presentationLink link:calculationLink link:definitionLink 31003 - Disclosure - Leases (Tables) link:presentationLink link:calculationLink link:definitionLink 31103 - Disclosure - Notes payable (Tables) link:presentationLink link:calculationLink link:definitionLink 31203 - Disclosure - Fair value measurement (Tables) link:presentationLink link:calculationLink link:definitionLink 31503 - Disclosure - Stock incentive plans (Tables) link:presentationLink link:calculationLink link:definitionLink 31603 - Disclosure - Net (loss) income per share attributable to common stockholders (Tables) link:presentationLink link:calculationLink link:definitionLink 40101 - Disclosure - The business (Details) link:presentationLink link:calculationLink link:definitionLink 40201 - Disclosure - Summary of significant accounting policies - Principles of consolidation (Details) link:presentationLink link:calculationLink link:definitionLink 40203 - Disclosure - Summary of significant accounting policies - Segment and geographic information (Details) link:presentationLink link:calculationLink link:definitionLink 40204 - Disclosure - Summary of significant accounting policies - Revenue recognition - Practical expedient (Details) link:presentationLink link:calculationLink link:definitionLink 40205 - Disclosure - Summary of significant accounting policies - Revenue recognition - Terms of contracts (Details) link:presentationLink link:calculationLink link:definitionLink 40206 - Disclosure - Summary of significant accounting policies - Foreign currency translation (Details) link:presentationLink link:calculationLink link:definitionLink 40301 - Disclosure - Restructuring - Restructuring activity (Details) link:presentationLink link:calculationLink link:definitionLink 40501 - Disclosure - Contract assets and contract liabilities (Details) link:presentationLink link:calculationLink link:definitionLink 40501 - Disclosure - Contract assets and contract liabilities Default (Details) link:presentationLink link:calculationLink link:definitionLink 40801 - Disclosure - Convertible Notes (Details) link:presentationLink link:calculationLink link:definitionLink 41301 - Disclosure - Income taxes (Details) link:presentationLink link:calculationLink link:definitionLink 41401 - Disclosure - Commitments and contingencies - Letters of credit (Details) link:presentationLink link:calculationLink link:definitionLink 41402 - Disclosure - Commitments and contingencies - Legal proceedings (Details) link:presentationLink link:calculationLink link:definitionLink 41403 - Disclosure - Commitments and contingencies - Others matters (Details) link:presentationLink link:calculationLink link:definitionLink 41501 - Disclosure - Stock incentive plans - Plans (Details) link:presentationLink link:calculationLink link:definitionLink 41502 - Disclosure - Stock incentive plans - Compensation expense (Details) link:presentationLink link:calculationLink link:definitionLink 41503 - Disclosure - Stock incentive plans - Stock option awards (Details) link:presentationLink link:calculationLink link:definitionLink 41504 - Disclosure - Stock incentive plans - Restricted stock unit awards (Details) link:presentationLink link:calculationLink link:definitionLink 41601 - Disclosure - Net (loss) income per share attributable to common stockholders (Details) link:presentationLink link:calculationLink link:definitionLink 10301 - Disclosure - Restructuring link:presentationLink link:calculationLink link:definitionLink 10501 - Disclosure - Contract assets and contract liabilities link:presentationLink link:calculationLink link:definitionLink 10801 - Disclosure - Convertible Notes link:presentationLink link:calculationLink link:definitionLink 11001 - Disclosure - Leases link:presentationLink link:calculationLink link:definitionLink 30303 - Disclosure - Restructuring (Tables) link:presentationLink link:calculationLink link:definitionLink 40202 - Disclosure - Summary of significant accounting policies - Marketable securities (Details) link:presentationLink link:calculationLink link:definitionLink