index
int64 0
10.7k
| class
stringclasses 867
values | comment_sentence
stringlengths 1
1.78k
| partition
int64 0
0
| combo
stringlengths 17
1.81k
| labels
listlengths 7
7
|
|---|---|---|---|---|---|
1,463
|
Preconditions.java
|
number of occurrences of @code %s in the format string, @code preconditions will still
| 0
|
number of occurrences of @code %s in the format string, @code preconditions will still | Preconditions.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,465
|
Preconditions.java
|
will simply not be formatted exactly as intended.
| 0
|
will simply not be formatted exactly as intended. | Preconditions.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,466
|
Preconditions.java
|
h3 more information h3
| 0
|
h3 more information h3 | Preconditions.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
1,467
|
Preconditions.java
|
p see the guava user guide on a
| 0
|
p see the guava user guide on a | Preconditions.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
1,470
|
Preconditions.java
|
preconditions a .
| 0
|
preconditions a . | Preconditions.java
|
[
0,
0,
1,
1,
1,
0,
0
] |
1,471
|
Preconditions.java
|
@author kevin bourrillion
| 0
|
@author kevin bourrillion | Preconditions.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
1,472
|
Preconditions.java
|
@since 20
| 0
|
@since 20 | Preconditions.java
|
[
0,
0,
0,
0,
0,
1,
0
] |
1,473
|
RegularImmutableList_CustomFieldSerializer.java
|
this class implements the gwt serialization of @link regularimmutablelist .
| 0
|
this class implements the gwt serialization of @link regularimmutablelist . | RegularImmutableList_CustomFieldSerializer.java
|
[
1,
0,
0,
0,
1,
0,
0
] |
1,475
|
ReserializingTestCollectionGenerator.java
|
reserializes the sets created by another test set generator.
| 0
|
reserializes the sets created by another test set generator. | ReserializingTestCollectionGenerator.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
1,477
|
Resources.java
|
provides utility methods for working with resources in the classpath.
| 0
|
provides utility methods for working with resources in the classpath. | Resources.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
1,484
|
SmoothRateLimiter.java
|
how is the ratelimiter designed, and why?
| 0
|
how is the ratelimiter designed, and why? | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,491
|
SmoothRateLimiter.java
|
wait as much.
| 0
|
wait as much. | SmoothRateLimiter.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
1,495
|
SmoothRateLimiter.java
|
for example, for a rate of
| 0
|
for example, for a rate of | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,496
|
SmoothRateLimiter.java
|
qps 5 5 tokens per second , if we ensure that a request isn t granted earlier than 200ms after
| 0
|
qps 5 5 tokens per second , if we ensure that a request isn t granted earlier than 200ms after | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,498
|
SmoothRateLimiter.java
|
if a request comes and the last request was
| 0
|
if a request comes and the last request was | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,500
|
SmoothRateLimiter.java
|
at this rate, serving 15 fresh permits
| 0
|
at this rate, serving 15 fresh permits | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,502
|
SmoothRateLimiter.java
|
it is important to realize that such a ratelimiter has a very superficial memory of the past
| 0
|
it is important to realize that such a ratelimiter has a very superficial memory of the past | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
1
] |
1,505
|
SmoothRateLimiter.java
|
what if the ratelimiter was unused for a long period of
| 0
|
what if the ratelimiter was unused for a long period of | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
1
] |
1,508
|
SmoothRateLimiter.java
|
this ratelimiter would immediately
| 0
|
this ratelimiter would immediately | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
1
] |
1,513
|
SmoothRateLimiter.java
|
overflow, depending on the real world consequences of not using the expected rate.
| 0
|
overflow, depending on the real world consequences of not using the expected rate. | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
1
] |
1,523
|
SmoothRateLimiter.java
|
translates to almost empty buffers , which can be filled immediately.
| 0
|
translates to almost empty buffers , which can be filled immediately. | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,525
|
SmoothRateLimiter.java
|
the request has become less ready for future requests , ie its caches become stale, and
| 0
|
the request has become less ready for future requests , ie its caches become stale, and | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,527
|
SmoothRateLimiter.java
|
example is when a server has just booted, and it is mostly busy with getting itself up to
| 0
|
example is when a server has just booted, and it is mostly busy with getting itself up to | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,529
|
SmoothRateLimiter.java
|
to deal with such scenarios, we add an extra dimension, that of past underutilization ,
| 0
|
to deal with such scenarios, we add an extra dimension, that of past underutilization , | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,531
|
SmoothRateLimiter.java
|
this variable is zero when there is no underutilization,
| 0
|
this variable is zero when there is no underutilization, | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,538
|
SmoothRateLimiter.java
|
how this works is best explained with an example
| 0
|
how this works is best explained with an example | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,540
|
SmoothRateLimiter.java
|
ratelimiter being unused, we increase storedpermits by 1.
| 0
|
ratelimiter being unused, we increase storedpermits by 1. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,542
|
SmoothRateLimiter.java
|
for 10 seconds ie, we expected a request at time x, but we are at time x 10 seconds before
| 0
|
for 10 seconds ie, we expected a request at time x, but we are at time x 10 seconds before | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,545
|
SmoothRateLimiter.java
|
at that point, a request of
| 0
|
at that point, a request of | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,547
|
SmoothRateLimiter.java
|
we serve this request out of storedpermits, and reduce that to 70 how
| 0
|
we serve this request out of storedpermits, and reduce that to 70 how | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,548
|
SmoothRateLimiter.java
|
this is translated to throttling time is discussed later .
| 0
|
this is translated to throttling time is discussed later . | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,549
|
SmoothRateLimiter.java
|
immediately after, assume that an
| 0
|
immediately after, assume that an | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,550
|
SmoothRateLimiter.java
|
acquire 10 request arriving.
| 0
|
acquire 10 request arriving. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,551
|
SmoothRateLimiter.java
|
we serve the request partly from storedpermits, using all the
| 0
|
we serve the request partly from storedpermits, using all the | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,552
|
SmoothRateLimiter.java
|
remaining 70 permits, and the remaining 30, we serve them by fresh permits produced by the
| 0
|
remaining 70 permits, and the remaining 30, we serve them by fresh permits produced by the | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,553
|
SmoothRateLimiter.java
|
rate limiter.
| 0
|
rate limiter. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,554
|
SmoothRateLimiter.java
|
we already know how much time it takes to serve 3 fresh permits if the rate is
| 0
|
we already know how much time it takes to serve 3 fresh permits if the rate is | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,555
|
SmoothRateLimiter.java
|
1 token per second , then this will take 3 seconds.
| 0
|
1 token per second , then this will take 3 seconds. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,556
|
SmoothRateLimiter.java
|
but what does it mean to serve 7 stored
| 0
|
but what does it mean to serve 7 stored | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,557
|
SmoothRateLimiter.java
|
permits?
| 0
|
permits? | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,558
|
SmoothRateLimiter.java
|
as explained above, there is no unique answer.
| 0
|
as explained above, there is no unique answer. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,559
|
SmoothRateLimiter.java
|
if we are primarily interested to deal
| 0
|
if we are primarily interested to deal | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,560
|
SmoothRateLimiter.java
|
with underutilization, then we want stored permits to be given out faster than fresh ones,
| 0
|
with underutilization, then we want stored permits to be given out faster than fresh ones, | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,561
|
SmoothRateLimiter.java
|
because underutilization free resources for the taking.
| 0
|
because underutilization free resources for the taking. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,562
|
SmoothRateLimiter.java
|
if we are primarily interested to
| 0
|
if we are primarily interested to | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,563
|
SmoothRateLimiter.java
|
deal with overflow, then stored permits could be given out slower than fresh ones.
| 0
|
deal with overflow, then stored permits could be given out slower than fresh ones. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,564
|
SmoothRateLimiter.java
|
thus, we
| 0
|
thus, we | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,565
|
SmoothRateLimiter.java
|
require a different in each case function that translates storedpermits to throttling time.
| 0
|
require a different in each case function that translates storedpermits to throttling time. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,567
|
SmoothRateLimiter.java
|
the
| 0
|
the | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,568
|
SmoothRateLimiter.java
|
underlying model is a continuous function mapping storedpermits from 00 to maxstoredpermits
| 0
|
underlying model is a continuous function mapping storedpermits from 00 to maxstoredpermits | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,569
|
SmoothRateLimiter.java
|
storedpermits
| 0
|
storedpermits | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,570
|
SmoothRateLimiter.java
|
essentially measure unused time we spend unused time buying storing permits.
| 0
|
essentially measure unused time we spend unused time buying storing permits. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,571
|
SmoothRateLimiter.java
|
rate is
| 0
|
rate is | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,572
|
SmoothRateLimiter.java
|
permits time , thus 1 rate time permits .
| 0
|
permits time , thus 1 rate time permits . | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,573
|
SmoothRateLimiter.java
|
thus, 1 rate time permits times
| 0
|
thus, 1 rate time permits times | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,574
|
SmoothRateLimiter.java
|
of requested permits.
| 0
|
of requested permits. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,575
|
SmoothRateLimiter.java
|
this guarantees that we handle
| 0
|
this guarantees that we handle | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,576
|
SmoothRateLimiter.java
|
integrals .
| 0
|
integrals . | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,577
|
SmoothRateLimiter.java
|
cost as fresh ones 1 qps is the cost for each .
| 0
|
cost as fresh ones 1 qps is the cost for each . | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,578
|
SmoothRateLimiter.java
|
underutilization.
| 0
|
underutilization. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,579
|
SmoothRateLimiter.java
|
last, but not least consider a ratelimiter with rate of 1 permit per second, currently
| 0
|
last, but not least consider a ratelimiter with rate of 1 permit per second, currently | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,580
|
SmoothRateLimiter.java
|
completely unused, and an expensive acquire 100 request comes.
| 0
|
completely unused, and an expensive acquire 100 request comes. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,581
|
SmoothRateLimiter.java
|
it would be nonsensical to just
| 0
|
it would be nonsensical to just | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,582
|
SmoothRateLimiter.java
|
why wait without doing anything?
| 0
|
why wait without doing anything? | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,583
|
SmoothRateLimiter.java
|
a much
| 0
|
a much | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,584
|
SmoothRateLimiter.java
|
instead , and postpone subsequent requests as needed.
| 0
|
instead , and postpone subsequent requests as needed. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,585
|
SmoothRateLimiter.java
|
task immediately, and postpone by 100 seconds future requests, thus we allow for work to get
| 0
|
task immediately, and postpone by 100 seconds future requests, thus we allow for work to get | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,586
|
SmoothRateLimiter.java
|
this has important consequences it means that the ratelimiter doesn t remember the time of the
| 0
|
this has important consequences it means that the ratelimiter doesn t remember the time of the | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,587
|
SmoothRateLimiter.java
|
last request, but it remembers the expected time of the next request.
| 0
|
last request, but it remembers the expected time of the next request. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,588
|
SmoothRateLimiter.java
|
this also enables
| 0
|
this also enables | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,589
|
SmoothRateLimiter.java
|
us to tell immediately see tryacquire timeout whether a particular timeout is enough to get
| 0
|
us to tell immediately see tryacquire timeout whether a particular timeout is enough to get | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,590
|
SmoothRateLimiter.java
|
us to the point of the next scheduling time, since we always maintain that.
| 0
|
us to the point of the next scheduling time, since we always maintain that. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,591
|
SmoothRateLimiter.java
|
and what we mean by
| 0
|
and what we mean by | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,592
|
SmoothRateLimiter.java
|
an unused ratelimiter is also defined by that notion when we observe that the
| 0
|
an unused ratelimiter is also defined by that notion when we observe that the | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,593
|
SmoothRateLimiter.java
|
expected arrival time of the next request is actually in the past, then the difference now
| 0
|
expected arrival time of the next request is actually in the past, then the difference now | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,594
|
SmoothRateLimiter.java
|
past is the amount of time that the ratelimiter was formally unused, and it is that amount of
| 0
|
past is the amount of time that the ratelimiter was formally unused, and it is that amount of | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,595
|
SmoothRateLimiter.java
|
time which we translate to storedpermits.
| 0
|
time which we translate to storedpermits. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,596
|
SmoothRateLimiter.java
|
we increase storedpermits with the amount of permits
| 0
|
we increase storedpermits with the amount of permits | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,597
|
SmoothRateLimiter.java
|
that would have been produced in that idle time .
| 0
|
that would have been produced in that idle time . | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,598
|
SmoothRateLimiter.java
|
so, if rate 1 permit per second, and
| 0
|
so, if rate 1 permit per second, and | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,600
|
SmoothRateLimiter.java
|
we would only increase it for arrivals later than the expected one second.
| 0
|
we would only increase it for arrivals later than the expected one second. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,601
|
SmoothRateLimiter.java
|
the time when the next request no matter its size will be granted.
| 0
|
the time when the next request no matter its size will be granted. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,602
|
SmoothRateLimiter.java
|
after granting a request,
| 0
|
after granting a request, | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,603
|
SmoothRateLimiter.java
|
this is pushed further in the future.
| 0
|
this is pushed further in the future. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,604
|
SmoothRateLimiter.java
|
large requests push this further than small requests.
| 0
|
large requests push this further than small requests. | SmoothRateLimiter.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
1,605
|
SmoothRateLimiter.java
|
this implements the following function where coldinterval coldfactor stableinterval.
| 0
|
this implements the following function where coldinterval coldfactor stableinterval. | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,607
|
SmoothRateLimiter.java
|
^ throttling
| 0
|
^ throttling | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,608
|
SmoothRateLimiter.java
|
cold
| 0
|
cold | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,609
|
SmoothRateLimiter.java
|
interval .
| 0
|
interval . | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,610
|
SmoothRateLimiter.java
|
warmup period is the area of the trapezoid between
| 0
|
warmup period is the area of the trapezoid between | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,611
|
SmoothRateLimiter.java
|
thresholdpermits and maxpermits
| 0
|
thresholdpermits and maxpermits | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,612
|
SmoothRateLimiter.java
|
stable warm .
| 0
|
stable warm . | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,613
|
SmoothRateLimiter.java
|
interval .
| 0
|
interval . | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,614
|
SmoothRateLimiter.java
|
up .
| 0
|
up . | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,615
|
SmoothRateLimiter.java
|
period.
| 0
|
period. | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,616
|
SmoothRateLimiter.java
|
0 storedpermits
| 0
|
0 storedpermits | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,617
|
SmoothRateLimiter.java
|
0 thresholdpermits maxpermits
| 0
|
0 thresholdpermits maxpermits | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,619
|
SmoothRateLimiter.java
|
before going into the details of this particular function, let s keep in mind the basics
| 0
|
before going into the details of this particular function, let s keep in mind the basics | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
1,621
|
SmoothRateLimiter.java
|
li the state of the ratelimiter storedpermits is a vertical line in this figure.
| 0
|
li the state of the ratelimiter storedpermits is a vertical line in this figure. | SmoothRateLimiter.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
1,622
|
SmoothRateLimiter.java
|
li when the ratelimiter is not used, this goes right up to maxpermits
| 0
|
li when the ratelimiter is not used, this goes right up to maxpermits | SmoothRateLimiter.java
|
[
0,
0,
1,
1,
0,
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.