comment_sentence_id
int64
1
5.52k
class
stringlengths
9
50
comment_sentence
stringlengths
1
1.32k
partition
int64
0
1
instance_type
int64
0
1
category
stringclasses
1 value
label
int64
0
1
combo
stringlengths
15
1.35k
__index_level_0__
int64
7.6k
16.5k
3,649
SmoothRateLimiter.java
how this works is best explained with an example
0
0
Pointer
0
how this works is best explained with an example | SmoothRateLimiter.java
8,698
3,650
SmoothRateLimiter.java
for a ratelimiter that produces 1 token per second, every second that goes by with the
0
0
Pointer
0
for a ratelimiter that produces 1 token per second, every second that goes by with the | SmoothRateLimiter.java
8,699
3,651
SmoothRateLimiter.java
ratelimiter being unused, we increase storedpermits by 1.
0
0
Pointer
0
ratelimiter being unused, we increase storedpermits by 1. | SmoothRateLimiter.java
8,700
3,652
SmoothRateLimiter.java
say we leave the ratelimiter unused
0
0
Pointer
0
say we leave the ratelimiter unused | SmoothRateLimiter.java
8,701
3,653
SmoothRateLimiter.java
for 10 seconds ie, we expected a request at time x, but we are at time x 10 seconds before
0
0
Pointer
0
for 10 seconds ie, we expected a request at time x, but we are at time x 10 seconds before | SmoothRateLimiter.java
8,702
2,630
AbstractCollectionTester.java
base class for collection testers.
0
0
Pointer
0
base class for collection testers. | AbstractCollectionTester.java
8,703
3,654
SmoothRateLimiter.java
a request actually arrives this is also related to the point made in the last paragraph , thus
0
0
Pointer
0
a request actually arrives this is also related to the point made in the last paragraph , thus | SmoothRateLimiter.java
8,704
2,631
AbstractCollectionTester.java
@param e the element type of the collection to be tested.
0
0
Pointer
0
@param e the element type of the collection to be tested. | AbstractCollectionTester.java
8,705
3,655
SmoothRateLimiter.java
storedpermits becomes 100 assuming maxstoredpermits 100 .
0
0
Pointer
0
storedpermits becomes 100 assuming maxstoredpermits 100 . | SmoothRateLimiter.java
8,706
2,632
AbstractCollectionTester.java
@author kevin bourrillion
0
0
Pointer
0
@author kevin bourrillion | AbstractCollectionTester.java
8,707
3,656
SmoothRateLimiter.java
at that point, a request of
0
0
Pointer
0
at that point, a request of | SmoothRateLimiter.java
8,708
3,657
SmoothRateLimiter.java
acquire 3 arrives.
0
0
Pointer
0
acquire 3 arrives. | SmoothRateLimiter.java
8,709
3,658
SmoothRateLimiter.java
we serve this request out of storedpermits, and reduce that to 70 how
0
0
Pointer
0
we serve this request out of storedpermits, and reduce that to 70 how | SmoothRateLimiter.java
8,710
3,659
SmoothRateLimiter.java
this is translated to throttling time is discussed later .
0
0
Pointer
0
this is translated to throttling time is discussed later . | SmoothRateLimiter.java
8,711
2,636
AbstractListeningExecutorService.java
abstract @link listeningexecutorservice implementation that creates @link listenablefuture
0
0
Pointer
0
abstract @link listeningexecutorservice implementation that creates @link listenablefuture | AbstractListeningExecutorService.java
8,712
3,660
SmoothRateLimiter.java
immediately after, assume that an
0
0
Pointer
0
immediately after, assume that an | SmoothRateLimiter.java
8,713
2,637
AbstractListeningExecutorService.java
instances for each @link runnable and @link callable submitted to it.
0
0
Pointer
0
instances for each @link runnable and @link callable submitted to it. | AbstractListeningExecutorService.java
8,714
3,661
SmoothRateLimiter.java
acquire 10 request arriving.
0
0
Pointer
0
acquire 10 request arriving. | SmoothRateLimiter.java
8,715
2,638
AbstractListeningExecutorService.java
these tasks are run
0
0
Pointer
0
these tasks are run | AbstractListeningExecutorService.java
8,716
3,662
SmoothRateLimiter.java
we serve the request partly from storedpermits, using all the
0
0
Pointer
0
we serve the request partly from storedpermits, using all the | SmoothRateLimiter.java
8,717
2,639
AbstractListeningExecutorService.java
with the abstract @link #execute execute runnable method.
0
0
Pointer
0
with the abstract @link #execute execute runnable method. | AbstractListeningExecutorService.java
8,718
3,663
SmoothRateLimiter.java
remaining 70 permits, and the remaining 30, we serve them by fresh permits produced by the
0
0
Pointer
0
remaining 70 permits, and the remaining 30, we serve them by fresh permits produced by the | SmoothRateLimiter.java
8,719
2,640
AbstractListeningExecutorService.java
p in addition to @link #execute , subclasses must implement all methods related to shutdown and
0
0
Pointer
0
p in addition to @link #execute , subclasses must implement all methods related to shutdown and | AbstractListeningExecutorService.java
8,720
3,664
SmoothRateLimiter.java
rate limiter.
0
0
Pointer
0
rate limiter. | SmoothRateLimiter.java
8,721
2,641
AbstractListeningExecutorService.java
termination.
0
0
Pointer
0
termination. | AbstractListeningExecutorService.java
8,722
3,665
SmoothRateLimiter.java
we already know how much time it takes to serve 3 fresh permits if the rate is
0
0
Pointer
0
we already know how much time it takes to serve 3 fresh permits if the rate is | SmoothRateLimiter.java
8,723
2,642
AbstractListeningExecutorService.java
@author chris povirk
0
0
Pointer
0
@author chris povirk | AbstractListeningExecutorService.java
8,724
3,666
SmoothRateLimiter.java
1 token per second , then this will take 3 seconds.
0
0
Pointer
0
1 token per second , then this will take 3 seconds. | SmoothRateLimiter.java
8,725
2,643
AbstractListeningExecutorService.java
@since 140
0
0
Pointer
0
@since 140 | AbstractListeningExecutorService.java
8,726
3,667
SmoothRateLimiter.java
but what does it mean to serve 7 stored
0
0
Pointer
0
but what does it mean to serve 7 stored | SmoothRateLimiter.java
8,727
3,668
SmoothRateLimiter.java
permits?
0
0
Pointer
0
permits? | SmoothRateLimiter.java
8,728
3,669
SmoothRateLimiter.java
as explained above, there is no unique answer.
0
0
Pointer
0
as explained above, there is no unique answer. | SmoothRateLimiter.java
8,729
3,670
SmoothRateLimiter.java
if we are primarily interested to deal
0
0
Pointer
0
if we are primarily interested to deal | SmoothRateLimiter.java
8,730
3,671
SmoothRateLimiter.java
with underutilization, then we want stored permits to be given out faster than fresh ones,
0
0
Pointer
0
with underutilization, then we want stored permits to be given out faster than fresh ones, | SmoothRateLimiter.java
8,731
3,672
SmoothRateLimiter.java
because underutilization free resources for the taking.
0
0
Pointer
0
because underutilization free resources for the taking. | SmoothRateLimiter.java
8,732
3,673
SmoothRateLimiter.java
if we are primarily interested to
0
0
Pointer
0
if we are primarily interested to | SmoothRateLimiter.java
8,733
3,674
SmoothRateLimiter.java
deal with overflow, then stored permits could be given out slower than fresh ones.
0
0
Pointer
0
deal with overflow, then stored permits could be given out slower than fresh ones. | SmoothRateLimiter.java
8,734
3,675
SmoothRateLimiter.java
thus, we
0
0
Pointer
0
thus, we | SmoothRateLimiter.java
8,735
2,652
AbstractLoadingCache.java
this class provides a skeletal implementation of the @code cache interface to minimize the
0
0
Pointer
0
this class provides a skeletal implementation of the @code cache interface to minimize the | AbstractLoadingCache.java
8,736
3,676
SmoothRateLimiter.java
require a different in each case function that translates storedpermits to throttling time.
0
0
Pointer
0
require a different in each case function that translates storedpermits to throttling time. | SmoothRateLimiter.java
8,737
2,653
AbstractLoadingCache.java
effort required to implement this interface.
0
0
Pointer
0
effort required to implement this interface. | AbstractLoadingCache.java
8,738
3,677
SmoothRateLimiter.java
this role is played by storedpermitstowaittime double storedpermits, double permitstotake .
0
0
Pointer
0
this role is played by storedpermitstowaittime double storedpermits, double permitstotake . | SmoothRateLimiter.java
8,739
2,654
AbstractLoadingCache.java
p to implement a cache, the programmer needs only to extend this class and provide an
0
0
Pointer
0
p to implement a cache, the programmer needs only to extend this class and provide an | AbstractLoadingCache.java
8,740
3,678
SmoothRateLimiter.java
the
0
0
Pointer
0
the | SmoothRateLimiter.java
8,741
3,679
SmoothRateLimiter.java
underlying model is a continuous function mapping storedpermits from 00 to maxstoredpermits
0
0
Pointer
0
underlying model is a continuous function mapping storedpermits from 00 to maxstoredpermits | SmoothRateLimiter.java
8,742
2,656
AbstractLoadingCache.java
@link
0
0
Pointer
0
@link | AbstractLoadingCache.java
8,743
3,681
SmoothRateLimiter.java
storedpermits
0
0
Pointer
0
storedpermits | SmoothRateLimiter.java
8,744
3,682
SmoothRateLimiter.java
essentially measure unused time we spend unused time buying storing permits.
0
0
Pointer
0
essentially measure unused time we spend unused time buying storing permits. | SmoothRateLimiter.java
8,745
3,683
SmoothRateLimiter.java
rate is
0
0
Pointer
0
rate is | SmoothRateLimiter.java
8,746
3,684
SmoothRateLimiter.java
permits time , thus 1 rate time permits .
0
0
Pointer
0
permits time , thus 1 rate time permits . | SmoothRateLimiter.java
8,747
3,685
SmoothRateLimiter.java
thus, 1 rate time permits times
0
0
Pointer
0
thus, 1 rate time permits times | SmoothRateLimiter.java
8,748
2,662
AbstractLoadingCache.java
all other methods throw
0
0
Pointer
0
all other methods throw | AbstractLoadingCache.java
8,749
2,664
AbstractLoadingCache.java
@author charles fry
0
0
Pointer
0
@author charles fry | AbstractLoadingCache.java
8,750
3,688
SmoothRateLimiter.java
of requested permits.
0
0
Pointer
0
of requested permits. | SmoothRateLimiter.java
8,751
2,665
AbstractLoadingCache.java
@since 110
0
0
Pointer
0
@since 110 | AbstractLoadingCache.java
8,752
3,697
SmoothRateLimiter.java
this guarantees that we handle
0
0
Pointer
0
this guarantees that we handle | SmoothRateLimiter.java
8,753
3,701
SmoothRateLimiter.java
integrals .
0
0
Pointer
0
integrals . | SmoothRateLimiter.java
8,754
3,704
SmoothRateLimiter.java
cost as fresh ones 1 qps is the cost for each .
0
0
Pointer
0
cost as fresh ones 1 qps is the cost for each . | SmoothRateLimiter.java
8,755
2,681
AbstractMultimap.java
a skeleton @code multimap implementation, not necessarily in terms of a @code map .
0
0
Pointer
0
a skeleton @code multimap implementation, not necessarily in terms of a @code map . | AbstractMultimap.java
8,756
2,682
AbstractMultimap.java
@author louis wasserman
0
0
Pointer
0
@author louis wasserman | AbstractMultimap.java
8,757
2,685
AbstractMultimapTester.java
superclass for all @code multimap testers.
0
0
Pointer
0
superclass for all @code multimap testers. | AbstractMultimapTester.java
8,758
3,709
SmoothRateLimiter.java
underutilization.
0
0
Pointer
0
underutilization. | SmoothRateLimiter.java
8,759
2,686
AbstractMultimapTester.java
@author louis wasserman
0
0
Pointer
0
@author louis wasserman | AbstractMultimapTester.java
8,760
2,689
AbstractSortedKeySortedSetMultimap.java
basic implementation of a @link sortedsetmultimap with a sorted key set.
0
0
Pointer
0
basic implementation of a @link sortedsetmultimap with a sorted key set. | AbstractSortedKeySortedSetMultimap.java
8,761
3,713
SmoothRateLimiter.java
last, but not least consider a ratelimiter with rate of 1 permit per second, currently
0
0
Pointer
0
last, but not least consider a ratelimiter with rate of 1 permit per second, currently | SmoothRateLimiter.java
8,762
2,690
AbstractSortedKeySortedSetMultimap.java
p this superclass allows @code treemultimap to override methods to return navigable set and
0
0
Pointer
0
p this superclass allows @code treemultimap to override methods to return navigable set and | AbstractSortedKeySortedSetMultimap.java
8,763
3,714
SmoothRateLimiter.java
completely unused, and an expensive acquire 100 request comes.
0
0
Pointer
0
completely unused, and an expensive acquire 100 request comes. | SmoothRateLimiter.java
8,764
2,691
AbstractSortedKeySortedSetMultimap.java
map types in non gwt only, while gwt code will inherit the sortedmap sortedset overrides.
0
0
Pointer
0
map types in non gwt only, while gwt code will inherit the sortedmap sortedset overrides. | AbstractSortedKeySortedSetMultimap.java
8,765
3,715
SmoothRateLimiter.java
it would be nonsensical to just
0
0
Pointer
0
it would be nonsensical to just | SmoothRateLimiter.java
8,766
2,692
AbstractSortedKeySortedSetMultimap.java
@author louis wasserman
0
0
Pointer
0
@author louis wasserman | AbstractSortedKeySortedSetMultimap.java
8,767
3,717
SmoothRateLimiter.java
why wait without doing anything?
0
0
Pointer
0
why wait without doing anything? | SmoothRateLimiter.java
8,768
3,718
SmoothRateLimiter.java
a much
0
0
Pointer
0
a much | SmoothRateLimiter.java
8,769
3,720
SmoothRateLimiter.java
instead , and postpone subsequent requests as needed.
0
0
Pointer
0
instead , and postpone subsequent requests as needed. | SmoothRateLimiter.java
8,770
2,697
ArbitraryInstances.java
supplies an arbitrary default instance for a wide range of types, often useful in testing
0
0
Pointer
0
supplies an arbitrary default instance for a wide range of types, often useful in testing | ArbitraryInstances.java
8,771
2,698
ArbitraryInstances.java
utilities.
0
0
Pointer
0
utilities. | ArbitraryInstances.java
8,772
3,722
SmoothRateLimiter.java
task immediately, and postpone by 100 seconds future requests, thus we allow for work to get
0
0
Pointer
0
task immediately, and postpone by 100 seconds future requests, thus we allow for work to get | SmoothRateLimiter.java
8,773
2,699
ArbitraryInstances.java
p covers arrays, enums and common types defined in @code java^lang , @code java^lang.reflect ,
0
0
Pointer
0
p covers arrays, enums and common types defined in @code java^lang , @code java^lang.reflect , | ArbitraryInstances.java
8,774
2,700
ArbitraryInstances.java
@code java^io , @code java^nio , @code java^math , @code java^util , @code
0
0
Pointer
0
@code java^io , @code java^nio , @code java^math , @code java^util , @code | ArbitraryInstances.java
8,775
3,724
SmoothRateLimiter.java
this has important consequences it means that the ratelimiter doesn t remember the time of the
0
0
Pointer
0
this has important consequences it means that the ratelimiter doesn t remember the time of the | SmoothRateLimiter.java
8,776
2,701
ArbitraryInstances.java
java^util.concurrent , @code java^util.regex , @code com^google.common^base , @code
0
0
Pointer
0
java^util.concurrent , @code java^util.regex , @code com^google.common^base , @code | ArbitraryInstances.java
8,777
3,725
SmoothRateLimiter.java
last request, but it remembers the expected time of the next request.
0
0
Pointer
0
last request, but it remembers the expected time of the next request. | SmoothRateLimiter.java
8,778
2,702
ArbitraryInstances.java
com^google.common^collect and @code com^google.common^primitives .
0
0
Pointer
0
com^google.common^collect and @code com^google.common^primitives . | ArbitraryInstances.java
8,779
3,726
SmoothRateLimiter.java
this also enables
0
0
Pointer
0
this also enables | SmoothRateLimiter.java
8,780
2,703
ArbitraryInstances.java
in addition, if the type
0
0
Pointer
0
in addition, if the type | ArbitraryInstances.java
8,781
3,727
SmoothRateLimiter.java
us to tell immediately see tryacquire timeout whether a particular timeout is enough to get
0
0
Pointer
0
us to tell immediately see tryacquire timeout whether a particular timeout is enough to get | SmoothRateLimiter.java
8,782
2,704
ArbitraryInstances.java
exposes at least one public static final constant of the same type, one of the constants will be
0
0
Pointer
0
exposes at least one public static final constant of the same type, one of the constants will be | ArbitraryInstances.java
8,783
3,728
SmoothRateLimiter.java
us to the point of the next scheduling time, since we always maintain that.
0
0
Pointer
0
us to the point of the next scheduling time, since we always maintain that. | SmoothRateLimiter.java
8,784
2,705
ArbitraryInstances.java
used or if the class exposes a public parameter less constructor then it will be new d and
0
0
Pointer
0
used or if the class exposes a public parameter less constructor then it will be new d and | ArbitraryInstances.java
8,785
3,729
SmoothRateLimiter.java
and what we mean by
0
0
Pointer
0
and what we mean by | SmoothRateLimiter.java
8,786
2,706
ArbitraryInstances.java
returned.
0
0
Pointer
0
returned. | ArbitraryInstances.java
8,787
3,730
SmoothRateLimiter.java
an unused ratelimiter is also defined by that notion when we observe that the
0
0
Pointer
0
an unused ratelimiter is also defined by that notion when we observe that the | SmoothRateLimiter.java
8,788
3,731
SmoothRateLimiter.java
expected arrival time of the next request is actually in the past, then the difference now
0
0
Pointer
0
expected arrival time of the next request is actually in the past, then the difference now | SmoothRateLimiter.java
8,789
2,708
ArbitraryInstances.java
clients won t get type
0
0
Pointer
0
clients won t get type | ArbitraryInstances.java
8,790
3,732
SmoothRateLimiter.java
past is the amount of time that the ratelimiter was formally unused, and it is that amount of
0
0
Pointer
0
past is the amount of time that the ratelimiter was formally unused, and it is that amount of | SmoothRateLimiter.java
8,791
2,709
ArbitraryInstances.java
errors for using @code get comparator^class as a @code comparator foo , for example.
0
0
Pointer
0
errors for using @code get comparator^class as a @code comparator foo , for example. | ArbitraryInstances.java
8,792
3,733
SmoothRateLimiter.java
time which we translate to storedpermits.
0
0
Pointer
0
time which we translate to storedpermits. | SmoothRateLimiter.java
8,793
2,710
ArbitraryInstances.java
immutable empty instances are returned for collection types @code for string @code 0 for
0
0
Pointer
0
immutable empty instances are returned for collection types @code for string @code 0 for | ArbitraryInstances.java
8,794
3,734
SmoothRateLimiter.java
we increase storedpermits with the amount of permits
0
0
Pointer
0
we increase storedpermits with the amount of permits | SmoothRateLimiter.java
8,795
2,711
ArbitraryInstances.java
number types reasonable default instance for other stateless types.
0
0
Pointer
0
number types reasonable default instance for other stateless types. | ArbitraryInstances.java
8,796
3,735
SmoothRateLimiter.java
that would have been produced in that idle time .
0
0
Pointer
0
that would have been produced in that idle time . | SmoothRateLimiter.java
8,797