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,760
SmoothRateLimiter.java
after granting a request,
0
after granting a request, | SmoothRateLimiter.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,761
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,762
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,765
SmoothRateLimiter.java
the maximum number of permits that can be saved when the ratelimiter is unused is defined in
0
the maximum number of permits that can be saved when the ratelimiter is unused is defined in | SmoothRateLimiter.java
[ 0, 0, 0, 1, 0, 0, 1 ]
1,767
SmoothRateLimiter.java
seconds, we can save up to 2 10 20 permits.
0
seconds, we can save up to 2 10 20 permits. | SmoothRateLimiter.java
[ 0, 0, 0, 0, 0, 0, 1 ]
1,769
SortedSetNavigationTester.java
can t be invoked directly please see
0
can t be invoked directly please see | SortedSetNavigationTester.java
[ 0, 0, 0, 1, 1, 0, 0 ]
1,774
SubscriberTest.java
@author cliff biffle
0
@author cliff biffle | SubscriberTest.java
[ 0, 1, 0, 0, 0, 0, 0 ]
1,776
TesterRequirements.java
encapsulates the constraints that a class under test must satisfy in order for a tester method to
0
encapsulates the constraints that a class under test must satisfy in order for a tester method to | TesterRequirements.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,779
TestStringListGenerator.java
@author kevin bourrillion
0
@author kevin bourrillion | TestStringListGenerator.java
[ 0, 1, 0, 0, 0, 0, 0 ]
1,781
WrappingScheduledExecutorService.java
#wraptask callable wrap tasks before they are submitted to the underlying executor.
0
#wraptask callable wrap tasks before they are submitted to the underlying executor. | WrappingScheduledExecutorService.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,783
WrappingScheduledExecutorService.java
@author luke sandberg
0
@author luke sandberg | WrappingScheduledExecutorService.java
[ 0, 1, 0, 0, 0, 0, 0 ]
1,784
AbstractModule.java
a support class for @link module s which reduces repetition and results in a more readable
0
a support class for @link module s which reduces repetition and results in a more readable | AbstractModule.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,785
AbstractModule.java
configuration.
0
configuration. | AbstractModule.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,786
AbstractModule.java
simply extend this class, implement @link #configure , and call the inherited
0
simply extend this class, implement @link #configure , and call the inherited | AbstractModule.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,790
AbstractModule.java
public class mymodule extends abstractmodule
0
public class mymodule extends abstractmodule | AbstractModule.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,792
AbstractModule.java
bind service^class ^to serviceimpl^class ^in singleton^class
0
bind service^class ^to serviceimpl^class ^in singleton^class | AbstractModule.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,794
AbstractModule.java
bind paymentservice^class ^to creditcardpaymentservice^class
0
bind paymentservice^class ^to creditcardpaymentservice^class | AbstractModule.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,799
Binder.java
@link injector .
0
@link injector . | Binder.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,801
Binder.java
they may each contribute their own bindings and other registrations.
0
they may each contribute their own bindings and other registrations. | Binder.java
[ 1, 0, 0, 0, 0, 0, 0 ]
1,802
Binder.java
h3 the guice binding edsl h3
0
h3 the guice binding edsl h3 | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,804
Binder.java
simply and readably.
0
simply and readably. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,806
Binder.java
instead, you should consult the series of examples below.
0
instead, you should consult the series of examples below. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,808
Binder.java
examples omit the opening @code binder , just as you will if your module extends @link
0
examples omit the opening @code binder , just as you will if your module extends @link | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,812
Binder.java
@link module class to serve as an explicit i manifest i for the services it provides.
0
@link module class to serve as an explicit i manifest i for the services it provides. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,814
Binder.java
given explicitly.
0
given explicitly. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,816
Binder.java
specifies that a request for a @code service instance with no binding annotations should be
0
specifies that a request for a @code service instance with no binding annotations should be | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,818
Binder.java
this i overrides i the
0
this i overrides i the | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,820
Binder.java
annotations found on @code service , since guice will have already moved on to @code
0
annotations found on @code service , since guice will have already moved on to @code | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,824
Binder.java
this
0
this | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,826
Binder.java
by first resolving an instance of @code serviceprovider in the regular way, then calling @link
0
by first resolving an instance of @code serviceprovider in the regular way, then calling @link | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,828
Binder.java
p the @link provider you use here does not have to be a factory that is, a provider which
0
p the @link provider you use here does not have to be a factory that is, a provider which | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,834
Binder.java
@code @red .
0
@code @red . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,836
Binder.java
of @code @red that have no exact match in the bindings.
0
of @code @red that have no exact match in the bindings. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,838
Binder.java
bind serviceimpl^class ^in singleton^class
0
bind serviceimpl^class ^in singleton^class | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,839
Binder.java
or, alternatively
0
or, alternatively | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,840
Binder.java
either of these statements places the @code serviceimpl class into singleton scope.
0
either of these statements places the @code serviceimpl class into singleton scope. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,841
Binder.java
guice will
0
guice will | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,842
Binder.java
create only one instance of @code serviceimpl and will reuse it for all injection requests of
0
create only one instance of @code serviceimpl and will reuse it for all injection requests of | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,843
Binder.java
note that it is still possible to bind another instance of @code serviceimpl if the
0
note that it is still possible to bind another instance of @code serviceimpl if the | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,844
Binder.java
guice is not overly
0
guice is not overly | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,845
Binder.java
with i enabling i your application to share only one instance if that s all you tell guice you
0
with i enabling i your application to share only one instance if that s all you tell guice you | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,846
Binder.java
need.
0
need. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,847
Binder.java
an annotation on the @code serviceimpl class.
0
an annotation on the @code serviceimpl class. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,848
Binder.java
p besides @link singleton @link scopes#singleton , there are servlet specific scopes
0
p besides @link singleton @link scopes#singleton , there are servlet specific scopes | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,849
Binder.java
available in @code com^google.inject^servlet.servletscopes , and your modules can contribute
0
available in @code com^google.inject^servlet.servletscopes , and your modules can contribute | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,850
Binder.java
their own custom scopes for use here as well.
0
their own custom scopes for use here as well. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,852
Binder.java
bind new typeliteral&lt paymentservice&lt creditcard
0
bind new typeliteral&lt paymentservice&lt creditcard | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,853
Binder.java
it tells guice how to
0
it tells guice how to | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,854
Binder.java
honor an injection request for an element of type @code paymentservice creditcard .
0
honor an injection request for an element of type @code paymentservice creditcard . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,855
Binder.java
the class
0
the class | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,856
Binder.java
@code creditcardpaymentservice must implement the @code paymentservice creditcard interface.
0
@code creditcardpaymentservice must implement the @code paymentservice creditcard interface. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,857
Binder.java
guice cannot currently bind or inject a generic type, such as @code set e all type parameters
0
guice cannot currently bind or inject a generic type, such as @code set e all type parameters | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,858
Binder.java
must be fully specified.
0
must be fully specified. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,860
Binder.java
bind service^class ^toinstance new serviceimpl
0
bind service^class ^toinstance new serviceimpl | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,861
Binder.java
or, alternatively
0
or, alternatively | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,862
Binder.java
@code service injection requests.
0
@code service injection requests. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,863
Binder.java
when the @link injector is created, it will automatically
0
when the @link injector is created, it will automatically | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,864
Binder.java
serviceimpl is simply ignored.
0
serviceimpl is simply ignored. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,865
Binder.java
that you can t control.
0
that you can t control. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,867
Binder.java
sets up a constant binding.
0
sets up a constant binding. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,868
Binder.java
constant injections must always be annotated.
0
constant injections must always be annotated. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,869
Binder.java
when a constant
0
when a constant | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,870
Binder.java
binding s value is a string, it is eligible for conversion to all primitive types, to @link
0
binding s value is a string, it is eligible for conversion to all primitive types, to @link | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,871
Binder.java
enum#valueof class, string all enums , and to @link class#forname class literals .
0
enum#valueof class, string all enums , and to @link class#forname class literals . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,872
Binder.java
conversions
0
conversions | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,873
Binder.java
for other types can be configured using @link #converttotypes matcher, typeconverter
0
for other types can be configured using @link #converttotypes matcher, typeconverter | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,874
Binder.java
converttotypes .
0
converttotypes . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,876
Binder.java
@literal @ color red color red a member variable field
0
@literal @ color red color red a member variable field | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,877
Binder.java
red mymodule^class.getdeclaredfield red ^getannotation color^class
0
red mymodule^class.getdeclaredfield red ^getannotation color^class | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,878
Binder.java
if your binding annotation has parameters you can apply different bindings to different specific
0
if your binding annotation has parameters you can apply different bindings to different specific | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,879
Binder.java
values of your annotation.
0
values of your annotation. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,880
Binder.java
getting your hands on the right instance of the annotation is a bit of
0
getting your hands on the right instance of the annotation is a bit of | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,881
Binder.java
a pain one approach, shown above, is to apply a prototype annotation to a field in your module
0
a pain one approach, shown above, is to apply a prototype annotation to a field in your module | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,883
Binder.java
bind service^class
0
bind service^class | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,884
Binder.java
annotatedwith names^named blue
0
annotatedwith names^named blue | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,885
Binder.java
differentiating by names is a common enough use case that we provided a standard annotation,
0
differentiating by names is a common enough use case that we provided a standard annotation, | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,886
Binder.java
@link com^google.inject^name.named @named .
0
@link com^google.inject^name.named @named . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,887
Binder.java
because of guice s library support, binding by name
0
because of guice s library support, binding by name | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,888
Binder.java
is quite easier than in the arbitrary binding annotation case we just saw.
0
is quite easier than in the arbitrary binding annotation case we just saw. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,889
Binder.java
however, remember that
0
however, remember that | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,890
Binder.java
these names will live in a single flat namespace with all the other names used in your
0
these names will live in a single flat namespace with all the other names used in your | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,891
Binder.java
application.
0
application. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,893
Binder.java
constructor t lonector getlonectorfromserviceimplviareflection
0
constructor t lonector getlonectorfromserviceimplviareflection | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,894
Binder.java
bind serviceimpl^class
0
bind serviceimpl^class | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,895
Binder.java
implementation.
0
implementation. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,896
Binder.java
it means that we do not need to place @literal @ inject on any of the
0
it means that we do not need to place @literal @ inject on any of the | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,897
Binder.java
constructors and that guice treats the provided constructor as though it were annotated so.
0
constructors and that guice treats the provided constructor as though it were annotated so. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,898
Binder.java
it is
0
it is | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,899
Binder.java
useful for cases where you cannot modify existing classes and is a bit simpler than using a
0
useful for cases where you cannot modify existing classes and is a bit simpler than using a | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,900
Binder.java
@link provider .
0
@link provider . | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,901
Binder.java
p the above list of examples is far from exhaustive.
0
p the above list of examples is far from exhaustive. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,902
Binder.java
if you can think of how the concepts of one
0
if you can think of how the concepts of one | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,903
Binder.java
example might coexist with the concepts from another, you can most likely weave the two together.
0
example might coexist with the concepts from another, you can most likely weave the two together. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,904
Binder.java
if the two concepts make no sense with each other, you most likely won t be able to do it.
0
if the two concepts make no sense with each other, you most likely won t be able to do it. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,905
Binder.java
in a
0
in a | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,906
Binder.java
runtime, as soon as you try to create your injector.
0
runtime, as soon as you try to create your injector. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,907
Binder.java
p the other methods of binder such as @link #bindscope , @link #bindinterceptor , @link
0
p the other methods of binder such as @link #bindscope , @link #bindinterceptor , @link | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,908
Binder.java
#install , @link #requeststaticinjection , @link #adderror and @link #currentstage are not
0
#install , @link #requeststaticinjection , @link #adderror and @link #currentstage are not | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,909
Binder.java
part of the binding edsl you can learn how to use these in the usual way, from the method
0
part of the binding edsl you can learn how to use these in the usual way, from the method | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]
1,910
Binder.java
documentation.
0
documentation. | Binder.java
[ 0, 0, 0, 1, 0, 0, 0 ]