shibanovp commited on
Commit
e436366
1 Parent(s): b1191e1

feat: new version

Browse files
Files changed (3) hide show
  1. 2023-05-12_2023_q1_goog_mdna.txt +1115 -0
  2. app.py +120 -28
  3. requirements.txt +0 -3
2023-05-12_2023_q1_goog_mdna.txt ADDED
@@ -0,0 +1,1115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Please read the following discussion and analysis of our financial condition and results of operations together with "Note About Forward-Looking Statements" and our consolidated financial statements and related notes included under Item 1 of this Quarterly Report on Form 10-Q as well as our Annual Report on Form 10-K for the fiscal year ended December 31, 2022, including Part I, Item 1A "Risk Factors."
2
+
3
+ Understanding Alphabet’s Financial Results
4
+
5
+ Alphabet is a collection of businesses — the largest of which is Google. We report Google in two segments, Google Services and Google Cloud; we also report all non-Google businesses collectively as Other Bets. For further details on our segments, see Note 14 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
6
+
7
+ Revenues and Monetization Metrics
8
+
9
+ We generate revenues by delivering relevant, cost-effective online advertising; cloud-based solutions that provide enterprise customers of all sizes with infrastructure and platform services as well as communication and collaboration tools; sales of other products and services, such as apps and in-app purchases, and hardware; and fees received for subscription-based products. For details on how we recognize revenue, see Note 1 of the Notes to Consolidated Financial Statements included in Part II, Item 8 in our Annual Report on Form 10-K for the fiscal year ended December 31, 2022.
10
+
11
+ In addition to the long-term trends and their financial effect on our business noted in "Trends in Our Business and Financial Effect" in Part II, Item 7 of our Annual Report on Form 10-K for the fiscal year ended December 31, 2022, fluctuations in our revenues have been and may continue to be affected by a combination of factors, including:
12
+
13
+ changes in foreign currency exchange rates;
14
+
15
+ changes in pricing, such as those resulting from changes in fee structures, discounts, and customer incentives;
16
+
17
+ general economic conditions and various external dynamics, including geopolitical events, regulations, and other measures and their effect on advertiser, consumer, and enterprise spending;
18
+
19
+ new product and service launches; and
20
+
21
+ seasonality.
22
+
23
+ Additionally, fluctuations in our revenues generated from advertising ("Google advertising"), revenues from other sources ("Google other revenues"), Google Cloud, and Other Bets revenues have been and may continue to be affected by other factors unique to each set of revenues, as described below.
24
+
25
+ Google Services
26
+
27
+ Google Services revenues consist of Google advertising as well as Google other revenues.
28
+
29
+ Google Advertising
30
+
31
+ Google advertising revenues are comprised of the following:
32
+
33
+ Google Search other, which includes revenues generated on Google search properties (including revenues from traffic generated by search distribution partners who use Google.com as their default search in browsers, toolbars, etc.), and other Google owned and operated properties like Gmail, Google Maps, and Google Play;
34
+
35
+ YouTube ads, which includes revenues generated on YouTube properties; and
36
+
37
+ Google Network, which includes revenues generated on Google Network properties participating in AdMob, AdSense, and Google Ad Manager.
38
+
39
+ We use certain metrics to track how well traffic across various properties is monetized as it relates to our advertising revenues: paid clicks and cost-per-click pertain to traffic on Google Search other properties, while impressions and cost-per-impression pertain to traffic on our Google Network properties.
40
+
41
+ Paid clicks represent engagement by users and include clicks on advertisements by end-users on Google search properties and other Google owned and operated properties including Gmail, Google Maps, and Google
42
+
43
+ 30
44
+
45
+ Table of Contents
46
+
47
+ Alphabet Inc.
48
+
49
+ Play. Cost-per-click is defined as click-driven revenues divided by our total number of paid clicks and represents the average amount we charge advertisers for each engagement by users.
50
+
51
+ Impressions include impressions displayed to users on Google Network properties participating primarily in AdMob, AdSense, and Google Ad Manager. Cost-per-impression is defined as impression-based and click-based revenues divided by our total number of impressions, and represents the average amount we charge advertisers for each impression displayed to users.
52
+
53
+ As our business evolves, we periodically review, refine, and update our methodologies for monitoring, gathering, and counting the number of paid clicks and the number of impressions, and for identifying the revenues generated by the corresponding click and impression activity.
54
+
55
+ Fluctuations in our advertising revenues, as well as the change in paid clicks and cost-per-click on Google Search other properties and the change in impressions and cost-per-impression on Google Network properties and the correlation between these items have been and may continue to be affected by additional factors, such as:
56
+
57
+ advertiser competition for keywords;
58
+
59
+ changes in advertising quality, formats, delivery or policy;
60
+
61
+ changes in device mix;
62
+
63
+ seasonal fluctuations in internet usage, advertising expenditures, and underlying business trends, such as traditional retail seasonality; and
64
+
65
+ traffic growth in emerging markets compared to more mature markets and across various verticals and channels.
66
+
67
+ Google Other
68
+
69
+ Google other revenues are comprised of the following:
70
+
71
+ Google Play, which includes sales of apps and in-app purchases;
72
+
73
+ hardware, which includes sales of Fitbit wearable devices, Google Nest home products, and Pixel devices;
74
+
75
+ YouTube non-advertising, which includes subscription revenues from services such as YouTube Premium and YouTube TV; and
76
+
77
+ other products and services.
78
+
79
+ Fluctuations in our Google other revenues have been and may continue to be affected by additional factors, such as changes in customer usage and demand, number of subscribers, and fluctuations in the timing of product launches.
80
+
81
+ Google Cloud
82
+
83
+ Google Cloud revenues are comprised of the following:
84
+
85
+ Google Cloud Platform, which includes fees for infrastructure, platform, and other services;
86
+
87
+ Google Workspace, which includes fees for cloud-based communication and collaboration tools for enterprises, such as Gmail, Docs, Drive, Calendar and Meet; and
88
+
89
+ other enterprise services.
90
+
91
+ Fluctuations in our Google Cloud revenues have been and may continue to be affected by additional factors, such as customer usage.
92
+
93
+ Other Bets
94
+
95
+ Revenues from Other Bets are generated primarily from the sale of health technology and internet services.
96
+
97
+ Costs and Expenses
98
+
99
+ Our cost structure has two components: cost of revenues and operating expenses. Our operating expenses include costs related to RD, sales and marketing, and general and administrative functions. Certain of our costs and expenses, including those associated with the operation of our technical infrastructure as well as components of our operating expenses, are generally less variable in nature and may not correlate to changes in revenue.
100
+
101
+ 31
102
+
103
+ Table of Contents
104
+
105
+ Alphabet Inc.
106
+
107
+ Cost of Revenues
108
+
109
+ Cost of revenues is comprised of TAC and other costs of revenues.
110
+
111
+ TAC includes:
112
+
113
+ Amounts paid to our distribution partners who make available our search access points and services. Our distribution partners include browser providers, mobile carriers, original equipment manufacturers, and software developers.
114
+
115
+ Amounts paid to Google Network partners primarily for ads displayed on their properties.
116
+
117
+ Other cost of revenues includes:
118
+
119
+ Content acquisition costs, which are payments to content providers from whom we license video and other content for distribution on YouTube and Google Play (we pay fees to these content providers based on revenues generated or a flat fee).
120
+
121
+ Expenses associated with our data centers (including bandwidth, compensation expenses, depreciation, energy, and other equipment costs) as well as other operations costs (such as content review as well as customer and product support costs).
122
+
123
+ Inventory and other costs related to the hardware we sell.
124
+
125
+ TAC as a percentage of revenues generated from ads placed on Google Network properties are significantly higher than TAC as a percentage of revenues generated from ads placed on Google Search other properties, because most of the advertiser revenues from ads served on Google Network properties are paid as TAC to our Google Network partners.
126
+
127
+ Operating Expenses
128
+
129
+ Operating expenses are generally incurred during our normal course of business, which we categorize as either RD, sales and marketing, or general and administrative.
130
+
131
+ The main components of our RD expenses are:
132
+
133
+ compensation expenses for engineering and technical employees responsible for RD related to our existing and new products and services;
134
+
135
+ depreciation; and
136
+
137
+ third-party services fees primarily relating to consulting and outsourced services in support of our engineering and product development efforts.
138
+
139
+ The main components of our sales and marketing expenses are:
140
+
141
+ compensation expenses for employees engaged in sales and marketing, sales support, and certain customer service functions; and
142
+
143
+ spending relating to our advertising and promotional activities in support of our products and services.
144
+
145
+ The main components of our general and administrative expenses are:
146
+
147
+ compensation expenses for employees in finance, human resources, information technology, legal, and other administrative support functions;
148
+
149
+ expenses relating to legal matters, including fines and settlements; and
150
+
151
+ third-party services fees, including audit, consulting, outside legal, and other outsourced administrative services.
152
+
153
+ Other Income (Expense), Net
154
+
155
+ Other income (expense), net primarily consists of interest income (expense), the effect of foreign currency exchange gains (losses), net gains (losses) and impairment on our marketable and non-marketable securities, performance fees, and income (loss) and impairment from our equity method investments.
156
+
157
+ For additional details, including how we account for our investments and factors that can drive fluctuations in the value of our investments, see Note 1 of the Notes to Consolidated Financial Statements included in Part II, Item 8 and Item 7A, “Quantitative and Qualitative Disclosur
158
+
159
+ es About Market Risk” in our An
160
+
161
+ nual Report on Form 10-K for
162
+
163
+ 32
164
+
165
+ Table of Contents
166
+
167
+ Alphabet Inc.
168
+
169
+ the fiscal year ended December 31, 2022 as well as Note 3 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
170
+
171
+ Provision for Income Taxes
172
+
173
+ Provision for income taxes represents the estimated amount of federal, state, and foreign income taxes incurred in the U.S. and the many jurisdictions in which we operate. The provision includes the effect of reserve provisions and changes to reserves that are considered appropriate as well as the related net interest and penalties.
174
+
175
+ For additional details, see Note 1 of the Notes to Consolidated Financial Statements included in Part II, Item 8
176
+
177
+ in our An
178
+
179
+ nual Report on Form 10-K for the fiscal year ended December 31, 2022 as well as Note 13 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
180
+
181
+ Executive Overview
182
+
183
+ The following table summarizes our consolidated financial results (in millions, except per share information and percentages):
184
+
185
+ Three Months Ended
186
+
187
+ March 31,
188
+
189
+ 2022
190
+
191
+ 2023
192
+
193
+ $ Change
194
+
195
+ % Change
196
+
197
+ Consolidated revenues
198
+
199
+ 68,011
200
+
201
+ 69,787
202
+
203
+ 1,776
204
+
205
+ Change in consolidated constant currency revenues
206
+
207
+ (1)
208
+
209
+ Cost of revenues
210
+
211
+ 29,599
212
+
213
+ 30,612
214
+
215
+ 1,013
216
+
217
+ Operating expenses
218
+
219
+ 18,318
220
+
221
+ 21,760
222
+
223
+ 3,442
224
+
225
+ 19
226
+
227
+ Operating income
228
+
229
+ 20,094
230
+
231
+ 17,415
232
+
233
+ (2,679)
234
+
235
+ (13)
236
+
237
+ Operating margin
238
+
239
+ 30
240
+
241
+ 25
242
+
243
+ (5)
244
+
245
+ Other income (expense), net
246
+
247
+ (1,160)
248
+
249
+ 790
250
+
251
+ 1,950
252
+
253
+ NM
254
+
255
+ Net Income
256
+
257
+ 16,436
258
+
259
+ 15,051
260
+
261
+ (1,385)
262
+
263
+ (8)
264
+
265
+ Diluted EPS
266
+
267
+ 1.23
268
+
269
+ 1.17
270
+
271
+ (0.06)
272
+
273
+ (5)
274
+
275
+ NM = Not Meaningful
276
+
277
+ (1)
278
+
279
+ See "Use of Non-GAAP Constant Currency Measures" below for details relating to our use of constant currency information.
280
+
281
+ Revenues were $69.8 billion, an increase of 3% year over year, primarily driven by an increase in Google Cloud revenues of $1.6 billion, or 28%.
282
+
283
+ Total constant currency revenues, which exclude the effect of hedging, increased 6% year over year.
284
+
285
+ Cost of revenues was $30.6 billion, an increase of 3% year over year, affected by compensation costs related to employee severance charges associated with the reduction in our workforce, charges related to our office space optimization efforts, and a reduction in depreciation expense due to the change in estimated useful life of our servers and certain network equipment.
286
+
287
+ Operating expenses were $21.8 billion, an increase of 19% year over year, affected by compensation costs related to employee severance charges associated with the reduction in our workforce as well as the effect of a shift in timing of our annual employee stock-based compensation awards.
288
+
289
+ Other Information
290
+
291
+ In January 2023, we announced a reduction of our workforce, and as a result in the first quarter of 2023 we recorded employee severance and related charges of $2.0 billion, representing the majority of expected costs associated with this action. In addition, we are taking actions to optimize our global office space, and as a result we recorded charges related to office space reductions of $564 million in the first quarter of 2023.
292
+
293
+ We may incur additional charges in the future as we further evaluate our real estate needs. For
294
+
295
+ 33
296
+
297
+ Table of Contents
298
+
299
+ Alphabet Inc.
300
+
301
+ additional information, see Note 7 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
302
+
303
+ In January 2023, we completed an assessment of the useful lives of our servers and network equipment, resulting in a change in the estimated useful life of our servers and certain network equipment to six years. The effect of this change was a reduction in depreciation expense
304
+
305
+ of $988 million fo
306
+
307
+ r the first quarter of 2023, recognized primarily in cost of revenues and RD expenses. For additional information, see Note 1 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
308
+
309
+ Beginning in the first quarter of 2023, our segment reporting reflects two changes: (i) DeepMind, previously reported within Other Bets, is reported as part of Alphabet's unallocated corporate costs, and (ii) we updated and simplified our cost allocation methodologies to provide our business leaders with increased transparency for decision-making. Prior periods have been recast to conform to the current presentation. For additional information, see Note 14 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
310
+
311
+ Beginning in 2023, the timing of our annual employee stock-based compensation awards shifted from January to March. W
312
+
313
+ hile the shift in timing itself will not affect the amount of stock-based compensation expense over the full fiscal year 2023, it results in relatively less expense recognized in the first quarter compared to the remaining quarters of the year.
314
+
315
+ epurchases of Class A and Class C shares were $15.1 billion for the three months ended March 31, 2023. See Note 10 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q for additional information.
316
+
317
+ Operating cash flow was $23.5 billion for the three months ended March 31, 2023.
318
+
319
+ Capital expenditures, which primarily reflected investments in technical infrastructure, were $6.3 billion for the three months ended March 31, 2023.
320
+
321
+ As of March 31, 2023, we had 190,711 employees, which includes almost all of the employees affected by the reduction of our workforce. We expect most of those affected will no longer be reflected in our headcount by the end of the second quarter of 2023, subject to local law and consultation requirements.
322
+
323
+ 34
324
+
325
+ Table of Contents
326
+
327
+ Alphabet Inc.
328
+
329
+ Financial Results
330
+
331
+ Revenues
332
+
333
+ The following table presents revenues by type (in millions):
334
+
335
+ Three Months Ended
336
+
337
+ March 31,
338
+
339
+ 2022
340
+
341
+ 2023
342
+
343
+ Google Search other
344
+
345
+ 39,618
346
+
347
+ 40,359
348
+
349
+ YouTube ads
350
+
351
+ 6,869
352
+
353
+ 6,693
354
+
355
+ Google Network
356
+
357
+ 8,174
358
+
359
+ 7,496
360
+
361
+ Google advertising
362
+
363
+ 54,661
364
+
365
+ 54,548
366
+
367
+ Google other
368
+
369
+ 6,811
370
+
371
+ 7,413
372
+
373
+ Google Services total
374
+
375
+ 61,472
376
+
377
+ 61,961
378
+
379
+ Google Cloud
380
+
381
+ 5,821
382
+
383
+ 7,454
384
+
385
+ Other Bets
386
+
387
+ 440
388
+
389
+ 288
390
+
391
+ Hedging gains (losses)
392
+
393
+ 278
394
+
395
+ 84
396
+
397
+ Total revenues
398
+
399
+ 68,011
400
+
401
+ 69,787
402
+
403
+ Google Services
404
+
405
+ Google advertising revenues
406
+
407
+ Google Search other
408
+
409
+ Google Search other revenues increased $741 million from the three months ended March 31, 2022 to the three months ended March 31, 2023. The overall growth was driven by interrelated factors including increases in search queries resulting from growth in user adoption and usage on mobile devices; growth in advertiser spending; and improvements we have made in ad formats and delivery. Growth was adversely affected by changes in foreign currency exchange rates.
410
+
411
+ YouTube ads
412
+
413
+ YouTube ads revenues decreased $176 million from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily driven by the adverse effect of changes in foreign currency exchange rates.
414
+
415
+ Google Network
416
+
417
+ Google Network revenues decreased $678 million from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily driven by a decrease in AdMob and Google Ad Manager revenues as well as the adverse effect of changes in foreign currency exchange rates.
418
+
419
+ Monetization Metrics
420
+
421
+ Paid clicks and cost-per-click
422
+
423
+ The following table presents changes in paid clicks and cost-per-click (expressed as a percentage) from the three months ended March 31, 2022 to the three months ended March 31, 2023:
424
+
425
+ Paid clicks change
426
+
427
+ 8%
428
+
429
+ Cost-per-click change
430
+
431
+ (7)%
432
+
433
+ Paid clicks increased from the three months ended March 31, 2022 to the three months ended March 31, 2023 driven by a number of interrelated factors, including an increase in search queries resulting from growth in user adoption and usage on mobile devices; growth in advertiser spending; and ongoing product and policy changes.
434
+
435
+ Cost-per-click decreased from the three months ended March 31, 2022 to the three months ended March 31, 2023 driven by a number of interrelated factors including changes in device mix, geographic mix, advertiser spending, ongoing product and policy changes, and property mix, as well as the adverse effect of changes in foreign currency exchange rates.
436
+
437
+ 35
438
+
439
+ Table of Contents
440
+
441
+ Alphabet Inc.
442
+
443
+ Impressions and cost-per-impression
444
+
445
+ The following table presents changes in impressions and cost-per-impression (expressed as a percentage) from the three months ended March 31, 2022 to the three months ended March 31, 2023:
446
+
447
+ Impressions change
448
+
449
+ (5)%
450
+
451
+ Cost-per-impression change
452
+
453
+ (5)%
454
+
455
+ Impressions decreased from the three months ended March 31, 2022 to the three months ended March 31, 2023 driven by Google Ad Manager and AdSense. The decrease in cost-per-impression from the three months ended March 31, 2022 to the three months ended March 31, 2023 was driven by a number of interrelated factors including ongoing product and policy changes, changes in device mix, geographic mix, product mix, and property mix, as well as the adverse effect of changes in foreign currency exchange rates.
456
+
457
+ Google other revenues
458
+
459
+ Google other revenues increased $602 million from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily driven by growth in YouTube non-advertising, largely due to an increase in paid subscribers. Growth was adversely affected by changes in foreign currency exchange rates.
460
+
461
+ Google Cloud
462
+
463
+ Google Cloud revenues increased $1.6 billion from the three months ended March 31, 2022 to the three months ended March 31, 2023. Growth was primarily driven by Google Cloud Platform followed by Google Workspace offerings. Google Cloud's infrastructure and platform services were the largest drivers of growth in Google Cloud Platform.
464
+
465
+ Revenues by Geography
466
+
467
+ The following table presents revenues by geography as a percentage of revenues, determined based on the addresses of our customers:
468
+
469
+ Three Months Ended
470
+
471
+ March 31,
472
+
473
+ 2022
474
+
475
+ 2023
476
+
477
+ United States
478
+
479
+ 47
480
+
481
+ 47
482
+
483
+ EMEA
484
+
485
+ 30
486
+
487
+ 30
488
+
489
+ APAC
490
+
491
+ 17
492
+
493
+ 17
494
+
495
+ Other Americas
496
+
497
+ For further details on revenues by geography, see Note 2 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
498
+
499
+ Use of Non-GAAP Constant Currency Information
500
+
501
+ International revenues, which represent a significant portion of our revenues, are generally transacted in multiple currencies and therefore are affected by fluctuations in foreign currency exchange rates.
502
+
503
+ The effect of currency exchange rates on our business is an important factor in understanding period-to-period comparisons. We use non-GAAP constant currency revenues ("constant currency revenues") and non-GAAP percentage change in constant currency revenues ("percentage change in constant currency revenues") for financial and operational decision-making and as a means to evaluate period-to-period comparisons. We believe the presentation of results on a constant currency basis in addition to U.S. Generally Accepted Accounting Principles (GAAP) results helps improve the ability to understand our performance, because it excludes the effects of foreign currency volatility that are not indicative of our core operating results.
504
+
505
+ Constant currency information compares results between periods as if exchange rates had remained constant period over period. We define constant currency revenues as revenues excluding the effect of foreign exchange rate movements ("FX Effect") as well as hedging activities, which are recognized at the consolidated level. We use constant currency revenues to determine the constant currency revenue percentage change on a year-on-year basis. Constant currency revenues are calculated by translating current period revenues using prior year comparable period exchange rates, as well as excluding any hedging effects realized in the current period.
506
+
507
+ Constant currency revenue percentage change is calculated by determining the change in current period revenues over prior year comparable period revenues where current period foreign currency revenues are
508
+
509
+ 36
510
+
511
+ Table of Contents
512
+
513
+ Alphabet Inc.
514
+
515
+ translated using prior year comparable period exchange rates and hedging effects are excluded from revenues of both periods.
516
+
517
+ These results should be considered in addition to, not as a substitute for, results reported in accordance with GAAP. Results on a constant currency basis, as we present them, may not be comparable to similarly titled measures used by other companies and are not a measure of performance presented in accordance with GAAP.
518
+
519
+ Th
520
+
521
+ e following table presents the foreign exchange effect on international revenues and total revenues (in millions, except percentages):
522
+
523
+ Three Months Ended March 31, 2023
524
+
525
+ % Change from Prior Period
526
+
527
+ Three Months Ended March 31,
528
+
529
+ Less FX Effect
530
+
531
+ Constant Currency Revenues
532
+
533
+ As Reported
534
+
535
+ Less Hedging Effect
536
+
537
+ Less FX Effect
538
+
539
+ Constant Currency Revenues
540
+
541
+ 2022
542
+
543
+ 2023
544
+
545
+ United States
546
+
547
+ 31,733
548
+
549
+ 32,864
550
+
551
+ 32,864
552
+
553
+ EMEA
554
+
555
+ 20,317
556
+
557
+ 21,078
558
+
559
+ (1,173)
560
+
561
+ 22,251
562
+
563
+ (6)
564
+
565
+ 10
566
+
567
+ APAC
568
+
569
+ 11,841
570
+
571
+ 11,681
572
+
573
+ (834)
574
+
575
+ 12,515
576
+
577
+ (1)
578
+
579
+ (7)
580
+
581
+ Other Americas
582
+
583
+ 3,842
584
+
585
+ 4,080
586
+
587
+ (167)
588
+
589
+ 4,247
590
+
591
+ (5)
592
+
593
+ 11
594
+
595
+ Revenues, excluding hedging effect
596
+
597
+ 67,733
598
+
599
+ 69,703
600
+
601
+ (2,174)
602
+
603
+ 71,877
604
+
605
+ (3)
606
+
607
+ Hedging gains (losses)
608
+
609
+ 278
610
+
611
+ 84
612
+
613
+ Total revenues
614
+
615
+ (1)
616
+
617
+ 68,011
618
+
619
+ 69,787
620
+
621
+ 71,877
622
+
623
+ (3)
624
+
625
+ (1)
626
+
627
+ Total constant currency revenues of $71.9 billion for the three months ended March 31, 2023 increased $4.1 billion compared to $67.7 billion in revenues, excluding hedging effect, for the three months ended March 31, 2022.
628
+
629
+ EMEA revenue growth was unfavorably affected by changes in foreign currency exchange rates, primarily due to the U.S. dollar strengthening relative to the Euro and the British pound.
630
+
631
+ APAC revenue growth was unfavorably affected by changes in foreign currency exchange rates, primarily due to the U.S. dollar strengthening relative to the Japanese yen.
632
+
633
+ Other Americas revenue growth was unfavorably affected by changes in foreign currency exchange rates, primarily due to the U.S. dollar strengthening relative to the Argentine peso.
634
+
635
+ Costs and Expenses
636
+
637
+ Cost of Revenues
638
+
639
+ The following table presents cost of revenues, including TAC (in millions, except percentages):
640
+
641
+ Three Months Ended
642
+
643
+ March 31,
644
+
645
+ 2022
646
+
647
+ 2023
648
+
649
+ TAC
650
+
651
+ 11,990
652
+
653
+ 11,721
654
+
655
+ Other cost of revenues
656
+
657
+ 17,609
658
+
659
+ 18,891
660
+
661
+ Total cost of revenues
662
+
663
+ 29,599
664
+
665
+ 30,612
666
+
667
+ Total cost of revenues as a percentage of revenues
668
+
669
+ 44
670
+
671
+ 44
672
+
673
+ Cost of revenues increased $1.0 billion from the three months ended March 31, 2022 to the three months ended March 31, 2023 due to an increase in other cost of revenues of $1.3 billion, partially offset by a decrease in TAC of $269 million.
674
+
675
+ The decrease in TAC from the three months ended March 31, 2022 to the three months ended March 31, 2023 was largely due to a decrease in TAC paid to Google Network partners, primarily driven by a decrease in revenues subject to TAC. The TAC rate decreased from 21.9% to 21.5% from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily due to a revenue mix shift from Google Network properties to Google Search other properties. The TAC rate on Google Search other revenues and the TAC rate on Google Network revenues were both substantially consistent from three months ended March 31, 2022 to the three months ended March 31, 2023.
676
+
677
+ 37
678
+
679
+ Table of Contents
680
+
681
+ Alphabet Inc.
682
+
683
+ The increase in other cost of revenues from the three months ended March 31, 2022 to the three months ended March 31, 2023
684
+
685
+ was primarily due to increases in data center and other operations costs which includes $681 million o
686
+
687
+ f charges related to employee severance associated with the reduction of our workforce and our office space optimization efforts,
688
+
689
+ partially offset by a reduction in depreciation expense due to the change in the estimated useful life of our servers and certain network equipment.
690
+
691
+ Research and Development
692
+
693
+ The following table presents RD expenses (in millions, except percentages):
694
+
695
+ Three Months Ended
696
+
697
+ March 31,
698
+
699
+ 2022
700
+
701
+ 2023
702
+
703
+ Research and development expenses
704
+
705
+ 9,119
706
+
707
+ 11,468
708
+
709
+ Research and development expenses as a percentage of revenues
710
+
711
+ 13
712
+
713
+ 16
714
+
715
+ RD expenses increased $2.3 billion from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily driven by an increase in compensation expenses of $1.7 billion and an increase in facilities costs due to the
716
+
717
+ $247 million
718
+
719
+ in charges related to our office space optimization efforts. The $1.7 billion increase in compensation expenses was largely the result of a 14%
720
+
721
+ increase in average headcount, after adjusting for roles affected by the reduction in workforce for the quarter ended March 31, 2023, and
722
+
723
+ $835 million
724
+
725
+ in employee severance charges
726
+
727
+ associated with the reduction of our workforce
728
+
729
+ , partially offset by the effect of the shift in timing of our annual employee stock-based compensation awards. Additionally, an increase in depreciation of $126 million includes the effect of the change in the estimated useful lives of our servers and network equipment.
730
+
731
+ Sales and Marketing
732
+
733
+ The following table presents sales and marketing expenses (in millions, except percentages):
734
+
735
+ Three Months Ended
736
+
737
+ March 31,
738
+
739
+ 2022
740
+
741
+ 2023
742
+
743
+ Sales and marketing expenses
744
+
745
+ 5,825
746
+
747
+ 6,533
748
+
749
+ Sales and marketing expenses as a percentage of revenues
750
+
751
+ Sales and marketing expenses increased $708 million from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily driven by an increase in compensation expenses of $734 million,
752
+
753
+ largely resulting from $445 million in employee severance charges
754
+
755
+ associated with the reduction in our workforce
756
+
757
+ and a
758
+
759
+ 7% increase
760
+
761
+ in average headcount, after adjusting for roles affected by the reduction in workforce for the quarter ended March 31, 2023, partially offset by the effect of the shift in timing of our annual employee stock-based compensation awards.
762
+
763
+ General and Administrative
764
+
765
+ The following table presents general and administrative expenses (in millions, except percentages):
766
+
767
+ Three Months Ended
768
+
769
+ March 31,
770
+
771
+ 2022
772
+
773
+ 2023
774
+
775
+ General and administrative expenses
776
+
777
+ 3,374
778
+
779
+ 3,759
780
+
781
+ General and administrative expenses as a percentage of revenues
782
+
783
+ General and administrative expenses increased $385 million from the three months ended March 31, 2022 to the three months ended March 31, 2023, primarily driven by an increase in compensation expenses of $293 million,
784
+
785
+ largely resulting from $253 million in employee severance charges
786
+
787
+ associated with the reduction in our workforce
788
+
789
+ and an
790
+
791
+ 6% increase
792
+
793
+ in average headcount, after adjusting for roles affected by the reduction in workforce for the quarter ended March 31, 2023, partially offset by the effect of the shift in timing of our annual employee stock-based compensation awards.
794
+
795
+ 38
796
+
797
+ Table of Contents
798
+
799
+ Alphabet Inc.
800
+
801
+ Segment Profitability
802
+
803
+ The following table presents segment operating income (loss) (in millions).
804
+
805
+ Three Months Ended
806
+
807
+ March 31,
808
+
809
+ 2022
810
+
811
+ 2023
812
+
813
+ Operating income (loss):
814
+
815
+ Google Services
816
+
817
+ 21,973
818
+
819
+ 21,737
820
+
821
+ Google Cloud
822
+
823
+ (706)
824
+
825
+ 191
826
+
827
+ Other Bets
828
+
829
+ (835)
830
+
831
+ (1,225)
832
+
833
+ Corporate costs, unallocated
834
+
835
+ (1)
836
+
837
+ (338)
838
+
839
+ (3,288)
840
+
841
+ Total income from operations
842
+
843
+ 20,094
844
+
845
+ 17,415
846
+
847
+ (1)
848
+
849
+ Hedging gains (losses) related to revenue included in unallocated corporate costs were
850
+
851
+ $278 million and $84 million for the three months ended March 31, 2022 and 2023, respectively. For the three months ended March 31, 2023, unallocated corporate costs inc
852
+
853
+ lude charges related to the reductions in our workforce and office space totaling $2.5 billion
854
+
855
+ Google Services
856
+
857
+ Google Services operating income decreased $236 million from the three months ended March 31, 2022 to the three months ended March 31, 2023. The decrease in operating income was primarily driven by an increase in compensation expenses, partially offset by the effect of the shift in timing of our annual employee stock-based compensation awards, a reduction in costs driven by the change in the estimated useful life of our servers and certain network equipment, and growth in revenues.
858
+
859
+ Google Cloud
860
+
861
+ Google Cloud operating income of $191 million for the three months ended March 31, 2023 compared to an operating loss of $706 million for the three months ended March 31, 2022 represents an increase of $897 million.
862
+
863
+ The increase was primarily driven by revenue growth, partially offset by an increase in compensation expenses. Additionally, operating income benefited from a reduction in costs driven by the change in the estimated useful life of our servers and certain network equipment and the effect of the shift in timing of our annual employee stock-based compensation awards.
864
+
865
+ Other Bets
866
+
867
+ Other Bets operating loss increased $390 million from the three months ended March 31, 2022 to the three months ended March 31, 2023 due to a combination of factors none of which were individually significant.
868
+
869
+ Other Income (Expense), Net
870
+
871
+ The following table presents other income (expense), net (in millions):
872
+
873
+ Three Months Ended
874
+
875
+ March 31,
876
+
877
+ 2022
878
+
879
+ 2023
880
+
881
+ Other income (expense), net
882
+
883
+ (1,160)
884
+
885
+ 790
886
+
887
+ Other income (expense), net, increased $2.0 billion from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily due to unrealized gains and losses on equity securities and changes in interest income. In the three months ended March 31, 2023, $797 million of interest income was recognized and $221 million and $51 million of net unrealized gains were recognized on non-marketable and marketable equity securities, respectively. In the three months ended March 31, 2022, $1.5 billion of net unrealized losses were recognized on marketable equity securities, partially offset by $460 million of net unrealized gains on non-marketable equity securities and $414 million of interest income.
888
+
889
+ See Note 6 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q for further information.
890
+
891
+ 39
892
+
893
+ Table of Contents
894
+
895
+ Alphabet Inc.
896
+
897
+ Provision for Income Taxes
898
+
899
+ The following table presents provision for income taxes (in millions, except effective tax rate):
900
+
901
+ Three Months Ended
902
+
903
+ March 31,
904
+
905
+ 2022
906
+
907
+ 2023
908
+
909
+ Income before provision for income taxes
910
+
911
+ 18,934
912
+
913
+ 18,205
914
+
915
+ Provision for income taxes
916
+
917
+ 2,498
918
+
919
+ 3,154
920
+
921
+ Effective tax rate
922
+
923
+ 13.2
924
+
925
+ 17.3
926
+
927
+ The effective tax rate increased from the three months ended March 31, 2022 to the three months ended March 31, 2023, primarily driven by a decrease in the stock-based compensation-related tax benefit and proportionally less pre-tax earnings generated in countries that have lower statutory tax rates.
928
+
929
+ Financial Condition
930
+
931
+ Cash, Cash Equivalents, and Marketable Securities
932
+
933
+ As of March 31, 2023, we had
934
+
935
+ $115.1 billion
936
+
937
+ in cash, cash equivalents, and short-term marketable securities. Cash equivalents and marketable securities are comprised of time deposits, money market funds, highly liquid government bonds, corporate debt securities, mortgage-backed and asset-backed securities, and marketable equity securities.
938
+
939
+ Sources, Uses of Cash and Related Trends
940
+
941
+ Our principal sources of liquidity are cash, cash equivalents, and marketable securities, as well as the cash flow that we generate from operations. The primary use of capital continues to be to invest for the long-term growth of the business. We regularly evaluate our cash and capital structure, including the size, pace, and form of capital return to stockholders.
942
+
943
+ The following table presents our cash flows (in millions):
944
+
945
+ Three Months Ended
946
+
947
+ March 31,
948
+
949
+ 2022
950
+
951
+ 2023
952
+
953
+ Net cash provided by operating activities
954
+
955
+ 25,106
956
+
957
+ 23,509
958
+
959
+ Net cash used in investing activities
960
+
961
+ (9,051)
962
+
963
+ (2,946)
964
+
965
+ Net cash used in financing activities
966
+
967
+ (16,214)
968
+
969
+ (16,568)
970
+
971
+ Cash Provided by Operating Activities
972
+
973
+ Our largest source of cash provided by operations are advertising revenues generated by Google Search other properties, Google Network properties, and YouTube properties. Additionally, we generate cash through sales of apps and in-app purchases, and hardware; and licensing and service fees, including fees received for Google Cloud offerings and subscription-based products.
974
+
975
+ Our primary uses of cash from operating activities include payments to distribution and Google Network partners, to employees for compensation, and to content providers. Other uses of cash from operating activities include payments to suppliers for hardware, to tax authorities for income taxes, and other general corporate expenditures.
976
+
977
+ Net cash provided by operating activities decreased from the three months ended March 31, 2022 to the three months ended March 31, 2023
978
+
979
+ due to increased cash payments for costs and expenses, partially offset by an increase in cash received from revenues.
980
+
981
+ Cash Used in Investing Activities
982
+
983
+ Cash provided by investing activities consists primarily of maturities and sales of investments in marketable and non-marketable securities. Cash used in investing activities consists primarily of purchases of marketable and non-marketable securities, purchases of property and equipment, and payments for acquisitions.
984
+
985
+ Net cash used in investing activities decreased from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily due to a decrease in purchases of property and equipment and a decrease in net purchases of and maturities and sales of marketable securities.
986
+
987
+ 40
988
+
989
+ Table of Contents
990
+
991
+ Alphabet Inc.
992
+
993
+ Cash Used in Financing Activities
994
+
995
+ Cash provided by financing activities consists primarily of proceeds from issuance of debt and proceeds from the sale of interest in consolidated entities. Cash used in financing activities consists primarily of repurchases of stock, net payments related to stock-based award activities, and repayments of debt.
996
+
997
+ Net cash used in financing activities increased from the three months ended March 31, 2022 to the three months ended March 31, 2023 primarily due to an increase in repurchases of stock partially offset by a decrease in net payments related to stock-based award activities.
998
+
999
+ Liquidity and Material Cash Requirements
1000
+
1001
+ We expect existing cash, cash equivalents, short-term marketable securities, cash flows from operations and financing activities to continue to be sufficient to fund our operating activities and cash commitments for investing and financing activities for at least the next 12 months and thereafter for the foreseeable future.
1002
+
1003
+ Capital Expenditures and Leases
1004
+
1005
+ We make investments in land and buildings for data centers and offices and information technology assets through purchases of property and equipment and lease arrangements to provide capacity for the growth of our services and products.
1006
+
1007
+ Capital Expenditures
1008
+
1009
+ Our capital investments in property and equipment consist primarily of the following major categories:
1010
+
1011
+ technical infrastructure, which consists of our investments in servers and network equipment for computing, storage, and networking requirements for ongoing business activities, including AI, (collectively referred to as our information technology assets) and data center land and building construction; and
1012
+
1013
+ office facilities, ground-up development projects, and building improvements (also referred to as "fit-outs").
1014
+
1015
+ Construction in progress consists primarily of technical infrastructure and office facilities which have not yet been placed in service. The time frame from date of purchase to placement in service of these assets may extend from months to years. For example, our data center construction projects are generally multi-year projects with multiple phases, where we acquire qualified land and buildings, construct buildings, and secure and install information technology assets.
1016
+
1017
+ During the three months ended March 31, 2022 and 2023, we spent $9.8 billion and $6.3 billion on capital expenditures, respectively. Depreciation of our property and equipment commences when the deployment of such assets are completed and are ready for our intended use. Land is not depreciated. For the three months ended March 31, 2022 and 2023, our depreciation and impairment expenses on property and equipment were $3.6 billion and $3.1 billion, respectively.
1018
+
1019
+ Leases
1020
+
1021
+ For the three months ended March 31, 2022 and 2023, we recognized total operating lease assets of $915 million and $1.1 billion, respectively. As of March 31, 2023, the amount of total future l
1022
+
1023
+ ease payments under operating leases, which had a weighted average remaining lease term of 8.4 years, was $18.0 billion.
1024
+
1025
+ As of March 31, 2023, we have entered into leases that have not yet commenced with future lease payments of $3.0 billion, that are not yet recorded on our Consolidated Balance Sheets. These leases will commence between 2023 and 2026 with non-cancelable lease terms of 1 to 25 years. As of March 31, 2023 our actions to optimize our office space did not affect our operating lease obligations.
1026
+
1027
+ For the three months ended March 31, 2022 and 2023, our operating lease expenses (including variable lease costs) were $880 million and $1.1 billion, respectively.
1028
+
1029
+ Finance lease costs were not material for the three months ended March 31, 2022 and 2023.
1030
+
1031
+ Financing
1032
+
1033
+ We have a short-term debt financing program of up to $10.0 billion through the issuance of commercial paper. Net proceeds from this program are used for general corporate purposes. As of March 31, 2023, we had
1034
+
1035
+ no
1036
+
1037
+ commercial paper outstanding.
1038
+
1039
+ As of March 31, 2023, we had $10.0 billion of revolving credit facilities, $4.0 billion expiring in April 2023 and $6.0 billion expiring in April 2026. In April 2023, we entered into a new $4.0 billion revolving credit facility expiring in April 2024 and we also terminated the existing $6.0 billion revolving credit facility expiring in April 2026 and entered into a new $6.0 billion revolving credit facility expiring in April 2028
1040
+
1041
+ . The interest rates for all credit facilities are
1042
+
1043
+ 41
1044
+
1045
+ Table of Contents
1046
+
1047
+ Alphabet Inc.
1048
+
1049
+ determined based on a formula using certain market rates, as well as our progress toward the achievement of certain sustainability goals. No amounts have been borrowed under the credit facilities.
1050
+
1051
+ As of March 31, 2023, we had senior unsecured notes outstanding with a total carrying value of $12.9 billion. See Note 5 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q for further information on our debt.
1052
+
1053
+ We primarily utilize contract manufacturers for the assembly of our servers used in our technical infrastructure and hardware products we sell. We have agreements where we may purchase components directly from suppliers and then supply these components to contract manufacturers for use in the assembly of the servers and hardware products. Certain of these arrangements result in a portion of the cash received from and paid to the contract manufacturers to be presented as financing activities in the Consolidated Statements of Cash Flows included in
1054
+
1055
+ Item 1 of this Quarterly Report on Form 10-Q
1056
+
1057
+ Share Repurchase Program
1058
+
1059
+ In April 2022, the Board of Directors of Alphabet authorized the company to repurchase up to $70.0 billion of its Class A and Class C shares. As of March 31, 2023, $13.1 billion remains available for Class A and Class C share repurchases. During the three months ended March 31, 2023, we repurchased and subsequently retired 157 million shares for $15.1 billion. Of the aggregate amount repurchased and subsequently retired, 21 million shares were Class A stock for $2.0 billion and 136 million shares were Class C stock for $13.1 billion.
1060
+
1061
+ In April 2023, the Board of Directors of Alphabet authorized the company to repurchase up to an additional $70.0 billion of its Class A and Class C shares. See Note 10 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
1062
+
1063
+ The U.S. Inflation Reduction Act of 2022 was enacted on August 16, 2022 and requires a one percent excise tax on certain share repurchases in excess of shares issued for employee compensation made after December 31, 2022. We do not expect this provision to have a material effect on our consolidated financial statements.
1064
+
1065
+ European Commission Fines
1066
+
1067
+ In 2017, 2018 and 2019, the EC announced decisions that certain actions taken by Google infringed European competition law and imposed fines of €2.4 billion ($2.7 billion as of June 27, 2017), €4.3 billion ($5.1 billion as of June 30, 2018), and €1.5 billion ($1.7 billion as of March 20, 2019), respectively. On September 14, 2022, the General Court reduced the 2018 fine from €4.3 billion to €4.1 billion. We subsequently filed an appeal to the European Court of Justice.
1068
+
1069
+ While each EC decision is under appeal, we included the fines in accrued expenses and other current liabilities on our Consolidated Balance Sheets as we provided bank guarantees (in lieu of a cash payment) for the fines. For further details, see Note 9 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
1070
+
1071
+ Taxes
1072
+
1073
+ As of March 31, 2023, we had short-term and long-term income taxes payable of $1.6 billion and $4.2 billion related to a one-time transition tax payable incurred as a result of the U.S. Tax Cuts and Jobs Act ("Tax Act").
1074
+
1075
+ As permitted by the Tax Act, we will pay the transition tax in annual interest-free installments through 2025. We also have taxes payable of $5.5 billion primarily related to uncertain tax positions as of March 31, 2023. Additionally, we are currently evaluating the timing of our 2023 federal tax payments due to payment deferral relief made available by the Internal Revenue Service to taxpayers headquartered in designated counties affected by flooding in California.
1076
+
1077
+ Other
1078
+
1079
+ We expect the substantial majority of the $1.2 billion liability related to our January 2023 workforce reduction to be settled in fiscal year 2023, subject to local law and consultation requirements. See Note 7 of the Notes to Consolidated Financial Statements included in Item 1 of this Quarterly Report on Form 10-Q.
1080
+
1081
+ Critical Accounting Estimates
1082
+
1083
+ See Part II, Item 7, "Critical Accounting Estimates" in our Annual Report on Form 10-K for the year ended December 31, 2022.
1084
+
1085
+ 42
1086
+
1087
+ Table of Contents
1088
+
1089
+ Alphabet Inc.
1090
+
1091
+ Available Information
1092
+
1093
+ Our website is located at
1094
+
1095
+ www.abc.xyz
1096
+
1097
+ , and our investor relations website is located at
1098
+
1099
+ www.abc.xyz/investor
1100
+
1101
+ . Access to our Annual Reports on Form 10-K, Quarterly Reports on Form 10-Q, Current Reports on Form 8-K, and our Proxy Statements,
1102
+
1103
+ and any amendments to these reports, is available via a link through our investor relations website, free of charge, after we file or furnish them with the SEC and they are available on the SEC's website at
1104
+
1105
+ www.sec.gov
1106
+
1107
+ We webcast via our investor relations website our earnings calls and certain events we participate in or host with members of the investment community. Our investor relations website also provides notifications of news or announcements regarding our financial performance and other items of interest to our investors, including SEC filings, investor events, press and earnings releases, and blogs. We also share Google news and product updates on Google’s Keyword blog at
1108
+
1109
+ https://www.blog.google/
1110
+
1111
+ , which may be of interest or material to our investors. Further, corporate governance information, including our certificate of incorporation, bylaws, governance guidelines, board committee charters, and code of conduct, is also available on our investor relations website under the heading "Other." The content of our websites are not incorporated by reference into this Quarterly Report on Form 10-Q or in any other report or document we file with the SEC, and any references to our websites are intended to be inactive textual references only.
1112
+
1113
+ QUANTITATIVE AND QUALITATIVE DISCLOSURES ABOUT MARKET RISK
1114
+
1115
+ ITEM 3.
app.py CHANGED
@@ -1,30 +1,122 @@
 
 
 
1
  import gradio as gr
 
 
 
 
 
 
 
 
2
 
3
- summary = gr.Interface(
4
- lambda email: "summay",
5
- [
6
- gr.Text(label="email"),
7
- ],
8
- gr.TextArea(),
9
- allow_flagging='never',
10
- )
11
-
12
- def ask(a, chat_history=[]):
13
- chat_history.append((question, '42'))
14
- return
15
-
16
-
17
- qa = gr.Interface(
18
- ask,
19
- [
20
- gr.Text(label="question"),
21
- 'state'
22
- ],
23
- [gr.Chatbot(), gr.Text(label="question"), 'state'],
24
- title="Alphabet's Q1 2023 10-Q MD&A",
25
- allow_flagging='never',
26
- )
27
-
28
- gr.TabbedInterface(
29
- [qa, summary], ["QA", "Summary"]
30
- ).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from functools import cache
2
+ import os
3
+ import time
4
  import gradio as gr
5
+ from langchain.llms import OpenAI
6
+ from langchain.chains.summarize import load_summarize_chain
7
+ from langchain.document_loaders import TextLoader
8
+ from langchain.text_splitter import RecursiveCharacterTextSplitter
9
+ from langchain.vectorstores import Chroma
10
+ from langchain.embeddings.openai import OpenAIEmbeddings
11
+ from langchain.chains.question_answering import load_qa_chain
12
+ import tiktoken
13
 
14
+
15
+ @cache
16
+ def tiktoken_len_builder(model_name):
17
+ tokenizer = tiktoken.encoding_for_model(model_name)
18
+
19
+ def token_len(text):
20
+ tokens = tokenizer.encode(text, disallowed_special=())
21
+ return len(tokens)
22
+
23
+ return token_len
24
+
25
+
26
+ def split_documents(docs, length_function, chunk_size=400):
27
+ text_splitter = RecursiveCharacterTextSplitter(
28
+ chunk_size=chunk_size,
29
+ chunk_overlap=20,
30
+ length_function=length_function,
31
+ )
32
+ return text_splitter.split_documents(docs)
33
+
34
+
35
+ def summarize_docs(llm, docs):
36
+ llm = OpenAI(temperature=temperature, openai_api_key=openai_api_key, model_name=model_name)
37
+ chain = load_summarize_chain(llm, chain_type="map_reduce")
38
+ return chain.run(docs)
39
+
40
+ class MdnaQA:
41
+ def __init__(self, llm, docs):
42
+ self.docs = docs
43
+ self.chain = load_qa_chain(llm, chain_type="stuff")
44
+ embeddings = OpenAIEmbeddings()
45
+ self.docsearch = Chroma.from_documents(docs, embeddings)
46
+
47
+ def ask(self, question):
48
+ input_documents = self.docsearch.similarity_search(question)
49
+ return self.chain.run(input_documents=input_documents, question=question)
50
+
51
+
52
+ filename = '2023-05-12_2023_q1_goog_mdna.txt'
53
+ loader = TextLoader(filename)
54
+ documents = loader.load()
55
+ model_name = "text-davinci-003"
56
+ tiktoken_len = tiktoken_len_builder(model_name)
57
+ docs = split_documents(documents, tiktoken_len)
58
+ tokens_sum = sum(tiktoken_len(d.page_content) for d in docs)
59
+
60
+ title = "Alphabet's Q1 2023 10-Q MD&A"
61
+
62
+ with gr.Blocks(title=title) as demo:
63
+ gr.Markdown(f'# {title}')
64
+ gr.Markdown('Video tutorial ')
65
+ gr.Markdown('Link to a blog post the video tutorial')
66
+ gr.Markdown("You can an API key [from OpenAI](https://platform.openai.com/account/api-keys)")
67
+ openai_api_key = gr.Text(
68
+ value=os.getenv("OPENAI_API_KEY"),
69
+ type="password",
70
+ label="OpenAI API key",
71
+ )
72
+ temperature = gr.Slider(0, 2, value=0, step=0.1, label="Temperature", info="adjusts a model's output from predictable to random")
73
+ mdna = gr.State(docs)
74
+ tokens_total = gr.Textbox(label="Total input tokens", value=tokens_sum, info='how many tokens will be spent on input / embeddings')
75
+ with gr.Tabs(visible=True) as tabs:
76
+ with gr.TabItem("Summary"):
77
+
78
+ summarize = gr.Button("Summarize MD&A", variant='primary', info='On click you spent tokens on input, instructions and output')
79
+ summary = gr.TextArea(label='Summary')
80
+
81
+ def summarize_mdna(docs, api_key, temp):
82
+ llm = OpenAI(temperature=temp, openai_api_key=api_key)
83
+ # mdna_summary = summarize_docs(llm, docs)
84
+ return 'HaHa'
85
+
86
+ summarize.click(summarize_mdna, inputs=[mdna, openai_api_key, temperature], outputs=[summary])
87
+ with gr.TabItem("QA with MD&A"):
88
+ start_qa = gr.Button("Start QA with MD&A", variant='primary')
89
+ chatbot = gr.Chatbot(label="QA with MD&A", visible=False)
90
+ question = gr.Textbox(
91
+ label="Your question", interactive=True, visible=False
92
+ )
93
+ qa_chat = gr.State()
94
+ send = gr.Button("Ask question", variant='primary', visible=False)
95
+
96
+ def start_chat(docs, openai_api_key):
97
+ # qa_chat = MdnaQA(docs, openai_api_key)
98
+ qa_chat = MDNAQAMock()
99
+ return (
100
+ qa_chat,
101
+ gr.Textbox.update(visible=True),
102
+ gr.Textbox.update(visible=True),
103
+ gr.Button.update(visible=True)
104
+ )
105
+
106
+ start_qa.click(
107
+ start_chat, [openai_api_key], [qa_chat, chatbot, question, send]
108
+ )
109
+
110
+ def respond(qa_chat, question, chat_history):
111
+ answer = qa_chat.ask(question)
112
+ chat_history.append((question, answer))
113
+ time.sleep(3)
114
+ return "", chat_history
115
+
116
+ send.click(respond, [qa_chat, question, chatbot], [question, chatbot])
117
+ question.submit(
118
+ respond, [qa_chat, question, chatbot], [question, chatbot]
119
+ )
120
+
121
+
122
+ demo.launch()
requirements.txt CHANGED
@@ -1,9 +1,6 @@
1
  httpx
2
  pandas
3
- beautifulsoup4
4
  langchain
5
  openai
6
  tiktoken
7
  chromadb
8
- unstructured
9
- python-dotenv
 
1
  httpx
2
  pandas
 
3
  langchain
4
  openai
5
  tiktoken
6
  chromadb