Annual report pursuant to Section 13 and 15(d)

Net Income (Loss) Per Share - Computation of Basic and Diluted Net Income (Loss) per Share (Details)

v3.8.0.1
Net Income (Loss) Per Share - Computation of Basic and Diluted Net Income (Loss) per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Numerator:      
Net income (loss) attributable to common stockholders $ 124,525 $ 91,687 $ (28,246)
Less: Deemed dividend to convertible preferred stockholders 0 0 (24,890)
Net income (loss) available to common stockholders $ 124,525 $ 91,687 $ (53,136)
Denominator:      
Weighted average shares used to compute net income (loss) per share attributable to common stockholders, basic (in shares) 105,432 102,367 55,091
Weighted average effect of potentially dilutive shares to purchase common stock 2,774 2,597 0
Weighted average shares used to compute net income (loss) per share attributable to common stockholders, diluted (in shares) 108,206 104,964 55,091
Net income (loss) per share attributable to common stockholders      
Net income (loss) per share available to common shareholders, Basic (in shares) $ 1.18 $ 0.90 $ (0.96)
Net income (loss) per share available to common shareholders, Diluted (in shares) $ 1.15 $ 0.87 $ (0.96)