index
int64 1
10.7k
| class
stringclasses 782
values | comment_sentence
stringlengths 1
1.78k
| partition
int64 0
0
| combo
stringlengths 17
1.81k
| labels
listlengths 7
7
|
|---|---|---|---|---|---|
8,622
|
ZlibCompressor.java
|
/**
* Creates a new compressor with the default compression level.
* Compressed data will be generated in ZLIB format.
*/
| 0
|
/**
* Creates a new compressor with the default compression level.
* Compressed data will be generated in ZLIB format.
*/ | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,623
|
ZlibCompressor.java
|
/**
* Creates a new compressor, taking settings from the configuration.
*/
| 0
|
/**
* Creates a new compressor, taking settings from the configuration.
*/ | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,626
|
ZlibCompressor.java
|
// Reinitialize zlib's output direct buffer
| 0
|
// Reinitialize zlib's output direct buffer | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,627
|
ZlibCompressor.java
|
//copy enough data from userBuf to uncompressedDirectBuf
| 0
|
//copy enough data from userBuf to uncompressedDirectBuf | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,629
|
ZlibCompressor.java
|
// Check if zlib has consumed all input
// compress should be invoked if keepUncompressedBuf true
| 0
|
// Check if zlib has consumed all input
// compress should be invoked if keepUncompressedBuf true | ZlibCompressor.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,630
|
ZlibCompressor.java
|
// Check if we have consumed all user-input
| 0
|
// Check if we have consumed all user-input | ZlibCompressor.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,631
|
ZlibCompressor.java
|
/ Check if 'zlib' says its 'finished' and
// all compressed data has been consumed
| 0
|
/ Check if 'zlib' says its 'finished' and
// all compressed data has been consumed | ZlibCompressor.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,634
|
ZlibCompressor.java
|
* Returns the total number of uncompressed bytes input so far.</p>
| 0
|
* Returns the total number of uncompressed bytes input so far.</p> | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,635
|
ZlibCompressor.java
|
* Returns the total number of compressed bytes output so far.
| 0
|
* Returns the total number of compressed bytes output so far. | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,636
|
ZlibCompressor.java
|
// Get atmost 'len' bytes
| 0
|
// Get atmost 'len' bytes | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,637
|
ZlibCompressor.java
|
// zlib did not consume all input buffer
| 0
|
// zlib did not consume all input buffer | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,639
|
ZlibCompressor.java
|
// Compress data
| 0
|
// Compress data | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,640
|
ZlibCompressor.java
|
// Re-initialize the zlib's output direct buffer
| 0
|
// Re-initialize the zlib's output direct buffer | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,641
|
ZlibCompressor.java
|
// copy enough data from userBuf to uncompressedDirectBuf
| 0
|
// copy enough data from userBuf to uncompressedDirectBuf | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,642
|
ZlibCompressor.java
|
// uncompressedDirectBuf is not full
| 0
|
// uncompressedDirectBuf is not full | ZlibCompressor.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,644
|
PDOMTaggable.java
|
Contributors:
* Andrew Eidsness - Initial implementation
| 0
|
Contributors:
* Andrew Eidsness - Initial implementation | PDOMTaggable.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,646
|
ConnectorResource.java
|
@version @VERSION@
| 0
|
@version @VERSION@ | ConnectorResource.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,648
|
ConnectorResource.java
|
* @return A download stream which produces the resource content
| 0
|
* @return A download stream which produces the resource content | ConnectorResource.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,649
|
ConnectorResource.java
|
* @return the file name associated to this resource.
| 0
|
* @return the file name associated to this resource. | ConnectorResource.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,651
|
ConnectorResource.java
|
* @author Vaadin Ltd
| 0
|
* @author Vaadin Ltd | ConnectorResource.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,652
|
ConnectorResource.java
|
/**
* A resource that is served through the Connector that is using the resource.
*
* @see AbstractClientConnector#setResource(String, Resource)
*
* @author Vaadin Ltd
* @version @VERSION@
* @since 7.0.0
*/
| 0
|
/**
* A resource that is served through the Connector that is using the resource.
*
* @see AbstractClientConnector#setResource(String, Resource)
*
* @author Vaadin Ltd
* @version @VERSION@
* @since 7.0.0
*/ | ConnectorResource.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,653
|
ConnectorResource.java
|
/**
* Gets resource as stream.
* <p>
* Note that this method is called while the session is locked to prevent
* race conditions but the methods in the returned {@link DownloadStream}
* are assumed to be unrelated to the VaadinSession and are called without
* holding session locks (to prevent locking the session during long file
* downloads).
* </p>
*
* @return A download stream which produces the resource content
*/
| 0
|
/**
* Gets resource as stream.
* <p>
* Note that this method is called while the session is locked to prevent
* race conditions but the methods in the returned {@link DownloadStream}
* are assumed to be unrelated to the VaadinSession and are called without
* holding session locks (to prevent locking the session during long file
* downloads).
* </p>
*
* @return A download stream which produces the resource content
*/ | ConnectorResource.java
|
[
0,
0,
1,
0,
0,
0,
0
] |
8,654
|
ConnectorResource.java
|
/**
* Gets the virtual filename for this resource.
*
* @return the file name associated to this resource.
*/
| 0
|
/**
* Gets the virtual filename for this resource.
*
* @return the file name associated to this resource.
*/ | ConnectorResource.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,657
|
BuildMacroException.java
|
* Returns an array of the IBuildMacroStatus statuses this exception holds
| 0
|
* Returns an array of the IBuildMacroStatus statuses this exception holds | BuildMacroException.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,662
|
BuildMacroException.java
|
/**
* This exception is thrown in the case of some build macros-related operation failure
* The exception typically contains one or more IBuildMacroStatus statuses
*
* @since 3.0
* @noextend This class is not intended to be subclassed by clients.
*/
| 0
|
/**
* This exception is thrown in the case of some build macros-related operation failure
* The exception typically contains one or more IBuildMacroStatus statuses
*
* @since 3.0
* @noextend This class is not intended to be subclassed by clients.
*/ | BuildMacroException.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,663
|
BuildMacroException.java
|
/**
* All serializable objects should have a stable serialVersionUID
*/
| 0
|
/**
* All serializable objects should have a stable serialVersionUID
*/ | BuildMacroException.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,664
|
BuildMacroException.java
|
private static final long serialVersionUID = 3976741380246681395L;
| 0
|
private static final long serialVersionUID = 3976741380246681395L; | BuildMacroException.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,666
|
MultisetTestSuiteBuilder.java
|
@code Multiset
| 0
|
@code Multiset | MultisetTestSuiteBuilder.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,667
|
MultisetTestSuiteBuilder.java
|
* @author Jared Levy
| 0
|
* @author Jared Levy | MultisetTestSuiteBuilder.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,668
|
MultisetTestSuiteBuilder.java
|
* @author Louis Wasserman
| 0
|
* @author Louis Wasserman | MultisetTestSuiteBuilder.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,669
|
MultisetTestSuiteBuilder.java
|
/**
* Creates, based on your criteria, a JUnit test suite that exhaustively tests
* a {@code Multiset} implementation.
*
* @author Jared Levy
* @author Louis Wasserman
*/
| 0
|
/**
* Creates, based on your criteria, a JUnit test suite that exhaustively tests
* a {@code Multiset} implementation.
*
* @author Jared Levy
* @author Louis Wasserman
*/ | MultisetTestSuiteBuilder.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,670
|
LlvmProjectNature.java
|
Contributors:
* Nokia Siemens Networks - initial implementation
* Petri Tuononen - Initial implementation
| 0
|
Contributors:
* Nokia Siemens Networks - initial implementation
* Petri Tuononen - Initial implementation | LlvmProjectNature.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,672
|
LlvmProjectNature.java
|
* Configure the project which have this project nature.
| 0
|
* Configure the project which have this project nature. | LlvmProjectNature.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,674
|
LlvmProjectNature.java
|
* Return the project.
| 0
|
* Return the project. | LlvmProjectNature.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,675
|
LlvmProjectNature.java
|
* Set the project.
| 0
|
* Set the project. | LlvmProjectNature.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,677
|
LlvmProjectNature.java
|
@param proj IProject
| 0
|
@param proj IProject | LlvmProjectNature.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,680
|
CPPTemplateTemplateParameterSpecialization.java
|
//not going to happen
| 0
|
//not going to happen | CPPTemplateTemplateParameterSpecialization.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,681
|
TestKMSAudit.java
|
// Not aggregated !!
| 0
|
// Not aggregated !! | TestKMSAudit.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,682
|
TestKMSAudit.java
|
// Aggregated
| 0
|
// Aggregated | TestKMSAudit.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,684
|
ColorManager.java
|
* @since Jul 23, 2002
| 0
|
* @since Jul 23, 2002 | ColorManager.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,685
|
ColorManager.java
|
/**
* Color manager for C/C++ Debug UI.
*
* @since Jul 23, 2002
*/
| 0
|
/**
* Color manager for C/C++ Debug UI.
*
* @since Jul 23, 2002
*/ | ColorManager.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,688
|
ToStringHelperBenchmark.java
|
@link Objects.ToStringHelper
| 0
|
@link Objects.ToStringHelper | ToStringHelperBenchmark.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,690
|
Annotations.java
|
@code javax.inject.Named
| 0
|
@code javax.inject.Named | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,691
|
Annotations.java
|
@code javax.inject.Named
| 0
|
@code javax.inject.Named | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,692
|
Annotations.java
|
@code member
| 0
|
@code member | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,693
|
Annotations.java
|
@code type
| 0
|
@code type | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,694
|
Annotations.java
|
@code type
| 0
|
@code type | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,695
|
Annotations.java
|
@link Annotation#hashCode
| 0
|
@link Annotation#hashCode | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,696
|
Annotations.java
|
@link Annotation#equals
| 0
|
@link Annotation#equals | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,698
|
Annotations.java
|
@author crazybob@google.com (Bob Lee)
| 0
|
@author crazybob@google.com (Bob Lee) | Annotations.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,700
|
Annotations.java
|
* Returns {@code true} if the given annotation type has no attributes.
| 0
|
* Returns {@code true} if the given annotation type has no attributes. | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,701
|
Annotations.java
|
Generates an Annotation for the annotation class. Requires that the annotation is all
* optionals.
| 0
|
Generates an Annotation for the annotation class. Requires that the annotation is all
* optionals. | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,702
|
Annotations.java
|
/** Implements {@link Annotation#equals}. */
| 0
|
/** Implements {@link Annotation#equals}. */ | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,704
|
Annotations.java
|
// cut off brackets
| 0
|
// cut off brackets | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,705
|
Annotations.java
|
@link Annotation#toString
| 0
|
@link Annotation#toString | Annotations.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,706
|
Annotations.java
|
/** Implements {@link Annotation#toString}. */
| 0
|
/** Implements {@link Annotation#toString}. */ | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,707
|
Annotations.java
|
* Returns true if the given annotation is retained at runtime.
| 0
|
* Returns true if the given annotation is retained at runtime. | Annotations.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,708
|
Annotations.java
|
/** Returns the scoping annotation, or null if there isn't one. */
| 0
|
/** Returns the scoping annotation, or null if there isn't one. */ | Annotations.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,709
|
Annotations.java
|
/** Returns the scope annotation on {@code type}, or null if none is specified. */
| 0
|
/** Returns the scope annotation on {@code type}, or null if none is specified. */ | Annotations.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,710
|
Annotations.java
|
* Checks for the presence of annotations. Caches results because Android doesn't.
| 0
|
* Checks for the presence of annotations. Caches results because Android doesn't. | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,711
|
Annotations.java
|
/** Returns true if the given class has one of the desired annotations. */
| 0
|
/** Returns true if the given class has one of the desired annotations. */ | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,712
|
Annotations.java
|
* Constructs a new checker that looks for annotations of the given types.
| 0
|
* Constructs a new checker that looks for annotations of the given types. | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,715
|
Annotations.java
|
// We let Dagger Components through to aid migrations.
| 0
|
// We let Dagger Components through to aid migrations. | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,716
|
Annotations.java
|
/** Gets a key for the given type, member and annotations. */
| 0
|
/** Gets a key for the given type, member and annotations. */ | Annotations.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,719
|
Annotations.java
|
If the annotation is an instance of {@code javax.inject.Named}, canonicalizes to
* com.google.guice.name.Named. Returns the given annotation otherwise.
| 0
|
If the annotation is an instance of {@code javax.inject.Named}, canonicalizes to
* com.google.guice.name.Named. Returns the given annotation otherwise. | Annotations.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,720
|
Annotations.java
|
If the annotation is the class {@code javax.inject.Named}, canonicalizes to
* com.google.guice.name.Named. Returns the given annotation class otherwise.
| 0
|
If the annotation is the class {@code javax.inject.Named}, canonicalizes to
* com.google.guice.name.Named. Returns the given annotation class otherwise. | Annotations.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,721
|
ITestSuite.java
|
Contributors:
* Anton Gorenkov - initial API and implementation
| 0
|
Contributors:
* Anton Gorenkov - initial API and implementation | ITestSuite.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,722
|
ITestSuite.java
|
* @noextend This interface is not intended to be extended by clients.
| 0
|
* @noextend This interface is not intended to be extended by clients. | ITestSuite.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,724
|
ITestSuite.java
|
/**
* Interface to the test suite of the tests hierarchy.
* Test suites group the test cases and the other test suites.
* They also provides group operations (e.g. status or execution time access).
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
| 0
|
/**
* Interface to the test suite of the tests hierarchy.
* Test suites group the test cases and the other test suites.
* They also provides group operations (e.g. status or execution time access).
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/ | ITestSuite.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,726
|
CombineSequenceFileInputFormat.java
|
* @see CombineFileInputFormat
| 0
|
* @see CombineFileInputFormat | CombineSequenceFileInputFormat.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,727
|
CombineSequenceFileInputFormat.java
|
* @see SequenceFileInputFormat
| 0
|
* @see SequenceFileInputFormat | CombineSequenceFileInputFormat.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,728
|
CombineSequenceFileInputFormat.java
|
* @see CombineFileInputFormat
| 0
|
* @see CombineFileInputFormat | CombineSequenceFileInputFormat.java
|
[
0,
0,
0,
0,
1,
0,
0
] |
8,730
|
CombineSequenceFileInputFormat.java
|
/**
* A record reader that may be passed to <code>CombineFileRecordReader</code>
* so that it can be used in a <code>CombineFileInputFormat</code>-equivalent
* for <code>SequenceFileInputFormat</code>.
*
* @see CombineFileRecordReader
* @see CombineFileInputFormat
* @see SequenceFileInputFormat
*/
| 0
|
/**
* A record reader that may be passed to <code>CombineFileRecordReader</code>
* so that it can be used in a <code>CombineFileInputFormat</code>-equivalent
* for <code>SequenceFileInputFormat</code>.
*
* @see CombineFileRecordReader
* @see CombineFileInputFormat
* @see SequenceFileInputFormat
*/ | CombineSequenceFileInputFormat.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,731
|
CombineSequenceFileInputFormat.java
|
// this constructor signature is required by CombineFileRecordReader
| 0
|
// this constructor signature is required by CombineFileRecordReader | CombineSequenceFileInputFormat.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,733
|
CViewRenameAction.java
|
* @param shell Shell
| 0
|
* @param shell Shell | CViewRenameAction.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,735
|
CViewRenameAction.java
|
* @param shellProvider a provider for a shell
| 0
|
* @param shellProvider a provider for a shell | CViewRenameAction.java
|
[
0,
0,
0,
1,
0,
0,
0
] |
8,738
|
CViewRenameAction.java
|
* Handle the key release
| 0
|
* Handle the key release | CViewRenameAction.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,739
|
CViewRenameAction.java
|
Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer
* for editing.
| 0
|
Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer
* for editing. | CViewRenameAction.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,740
|
CViewRenameAction.java
|
Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer
* for editing.
| 0
|
Create a ResourceNavigatorRenameAction and use the tree of the supplied viewer
* for editing. | CViewRenameAction.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,742
|
CViewRenameAction.java
|
Contributors:
* IBM Corporation - initial API and implementation
* Markus Schorn (Wind River Systems)
| 0
|
Contributors:
* IBM Corporation - initial API and implementation
* Markus Schorn (Wind River Systems) | CViewRenameAction.java
|
[
0,
1,
0,
0,
0,
0,
0
] |
8,743
|
CViewRenameAction.java
|
@deprecated
| 0
|
@deprecated | CViewRenameAction.java
|
[
0,
0,
0,
0,
0,
1,
0
] |
8,744
|
BigIntegerMathTest.java
|
// String.format
| 0
|
// String.format | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,745
|
BigIntegerMathTest.java
|
// NullPointerTester
| 0
|
// NullPointerTester | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,746
|
BigIntegerMathTest.java
|
// Depends on the correctness of BigIntegerMath.factorial
| 0
|
// Depends on the correctness of BigIntegerMath.factorial | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,747
|
BigIntegerMathTest.java
|
// too slow
| 0
|
// too slow | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,748
|
BigIntegerMathTest.java
|
// slow
| 0
|
// slow | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,749
|
BigIntegerMathTest.java
|
// slow
| 0
|
// slow | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,751
|
BigIntegerMathTest.java
|
// Relies on the correctness of sqrt(BigInteger, {HALF_UP,HALF_DOWN}).
| 0
|
// Relies on the correctness of sqrt(BigInteger, {HALF_UP,HALF_DOWN}). | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,752
|
BigIntegerMathTest.java
|
// sqrt(x) > result - 0.5, so 4 * x > (result - 0.5)^2 * 4
// (result - 0.5)^2 * 4 = (result^2 - result)*4 + 1
| 0
|
// sqrt(x) > result - 0.5, so 4 * x > (result - 0.5)^2 * 4
// (result - 0.5)^2 * 4 = (result^2 - result)*4 + 1 | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,753
|
BigIntegerMathTest.java
|
// sqrt(x) <= result + 0.5, so 4 * x <= (result + 0.5)^2 * 4
// (result + 0.5)^2 * 4 = (result^2 + result)*4 + 1
| 0
|
// sqrt(x) <= result + 0.5, so 4 * x <= (result + 0.5)^2 * 4
// (result + 0.5)^2 * 4 = (result^2 + result)*4 + 1 | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,756
|
BigIntegerMathTest.java
|
// We only expect an exception if x was not a perfect square.
| 0
|
// We only expect an exception if x was not a perfect square. | BigIntegerMathTest.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,758
|
BigIntegerMathTest.java
|
// Now figure out what rounding mode we should behave like (it depends if FLOOR was
// odd/even).
| 0
|
// Now figure out what rounding mode we should behave like (it depends if FLOOR was
// odd/even). | BigIntegerMathTest.java
|
[
0,
0,
0,
0,
0,
0,
1
] |
8,759
|
BigIntegerMathTest.java
|
// Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}).
| 0
|
// Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}). | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,760
|
BigIntegerMathTest.java
|
// x^2 > 10^(2 * result - 1), or else we would have rounded down
| 0
|
// x^2 > 10^(2 * result - 1), or else we would have rounded down | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,761
|
BigIntegerMathTest.java
|
// x^2 <= 10^(2 * result + 1), or else we would have rounded up
| 0
|
// x^2 <= 10^(2 * result + 1), or else we would have rounded up | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,762
|
BigIntegerMathTest.java
|
// x^2 >= 10^(2 * result - 1), or else we would have rounded down
| 0
|
// x^2 >= 10^(2 * result - 1), or else we would have rounded down | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,763
|
BigIntegerMathTest.java
|
// x^2 < 10^(2 * result + 1), or else we would have rounded up
| 0
|
// x^2 < 10^(2 * result + 1), or else we would have rounded up | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,764
|
BigIntegerMathTest.java
|
// Relies on the correctness of log10(BigInteger, FLOOR).
| 0
|
// Relies on the correctness of log10(BigInteger, FLOOR). | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,767
|
BigIntegerMathTest.java
|
// x^2 <= 2^(2 * result + 1), or else we would have rounded up
| 0
|
// x^2 <= 2^(2 * result + 1), or else we would have rounded up | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
8,769
|
BigIntegerMathTest.java
|
// x^2 < 2^(2 * result + 1), or else we would have rounded up
| 0
|
// x^2 < 2^(2 * result + 1), or else we would have rounded up | BigIntegerMathTest.java
|
[
1,
0,
0,
0,
0,
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.