code stringlengths 408 185k | target stringclasses 5
values |
|---|---|
Given the following question and candidate answers, choose the correct answer.
[code]public class QualifiedName
{
/**
* The keyspace name as stored internally.
*/
private String keyspace;
private String name;
public QualifiedName()
{
}
public QualifiedName(String keyspace, String... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] @Override
public ListenableFuture<Void> recover(QueueManagingVirtualHost<?> virtualHost)
{
EventLogger eventLogger = virtualHost.getEventLogger();
MessageStore store = virtualHost.getMessageStore();
... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] class PushCommand extends KeyCommand {
private List<ByteBuffer> values;
private boolean upsert;
private Direction direction;
private PushCommand(@Nullable ByteBuffer key, List<ByteBuffer> values, Direction direction, boolean... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] void migrateGlobal(int counts[], long segCounts[], int subIndex, OrdinalMap map) {
final LongValues ordMap = map.getGlobalOrds(subIndex);
// missing count
counts[0] += (int) (segCounts[0]>>32);
// migrate ac... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] private static byte[] decodeUrl( byte[] bytes ) throws UrlDecoderException
{
if ( bytes == null )
{
return Strings.EMPTY_BYTES;
}
ByteArrayOutputStream buffer = new ByteArrayOutputSt... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public class BulkSetSerializer extends SimpleTypeSerializer<BulkSet> {
public BulkSetSerializer() {
super(DataType.BULKSET);
}
@Override
protected BulkSet readValue(final ByteBuf buffer, final GraphBinaryReader... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] private void buildNode80()
throws Exception {
UaVariableNode node = new PropertyNode(this.context, NodeId.parse("ns=0;i=12664"), new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Loc... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] @Override
public void recordAllocBytes(long bytesUsed, long bytesAllocated) {
incrCounter(LlapIOCounters.ALLOCATED_USED_BYTES, bytesUsed);
incrCounter(LlapIOCounters.ALLOCATED_BYTES, bytesAllocated);
}
Question: what's th... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public class PartitionCollapsingSchemas implements Serializable
{
private static String DATED_INTERMEDIATE_VALUE_SCHEMA_NAME = "DatedMapValue";
private static String KEY_SCHEMA = "key.schema";
private static String INTERMEDIATE... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
TokenStream input = (TokenStream)_input;
int _s = s;
switch ( s ) {
case 0 :
... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] @Override
public final Element getDocumentElement()
{
int dochandle=dtm.getDocument();
int elementhandle=DTM.NULL;
for(int kidhandle=dtm.getFirstChild(dochandle);
... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public class ReportType implements DeltaVConstants, XmlSerializable {
private static Logger log = LoggerFactory.getLogger(ReportType.class);
private static final HashMap<String, ReportType> types = new HashMap<String, ReportT... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code] public String getPassword() {
final UsernamePassword userPass = getUserPass();
final String pw = userPass.getPasswordAsString();
userPass.resetPassword();
return pw;
}
Question: what's the type of the code smell in the code s... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public class FilenetConnector extends org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
{
public static final String _rcsid = "@(#)$Id: FilenetConnector.java 996524 2010-09-13 13:38:01Z kwright $";
// Parameters
p... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public class DynamicBloomFilter extends Filter {
/**
* Threshold for the maximum number of key to record in a dynamic Bloom filter row.
*/
private int nr;
/**
* The number of keys recorded in the current standard active... | NoSmell |
Given the following question and candidate answers, choose the correct answer.
[code]public final class JUnitHelper {
public static final String JUNIT_PARAMETERS = "org.apache.chemistry.opencmis.tck.junit.parameters";
private JUnitHelper() {
}
public static void run(CmisTest test) throws Exception {
... | NoSmell |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 8