Dataset Viewer
Auto-converted to Parquet Duplicate
Diff
stringlengths
10
2k
Message
stringlengths
28
159
import java.io.FileNotFoundException; delete(child.getPath()); private boolean delete(Path p) throws IOException { try { return trash.moveToTrash(p) || fs.delete(p, true); } catch (FileNotFoundException ex) { return false; } } if (now - child.getModificationTime() > maxA...
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
if (readValue) top_value = new Value(); if (readValue) valid = reader.next(top_key, top_value); else valid = reader.next(top_key);
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.util.format.DefaultFormatter; import org.apache.accumulo.core.util.interpret.DefaultScanInterpreter; TABLE_FORMATTER_CLASS("table.formatter", DefaultFormatter.class.getName(), PropertyType.STRING, "The Formatter class to apply on results in the shell"), TABLE_INTERPRETER_CLASS(...
Return empty string instead.
log.debug("completing bulk import transaction " + tid); ZooArbitrator.cleanup(Constants.BULK_ARBITRATOR_TYPE, tid);
Either log or rethrow this exception.
import java.io.UnsupportedEncodingException; private Option scanOptAuths, scanOptRow, scanOptColumns, disablePaginationOpt, showFewOpt, formatterOpt; String tableName = OptUtil.getTableOpt(cl, shellState); protected void fetchColumns(CommandLine cl, ScannerBase scanner) throws UnsupportedEncodingException { ...
Either log or rethrow this exception.
if (rand.nextBoolean()) changeSystemPermission(conn, rand, userName); else changeTablePermission(conn, rand, userName, tableName); if (conn.securityOperations().hasTablePermission(userName, tableName, p)) perms.add(p); if (conn.securityOperations().hasSystemPermission(use...
Remove this call to "exit" or ensure it is really required.
import org.apache.accumulo.core.data.ByteSequence; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.PartialKey; import org.apache.accumulo.core.data.Range; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.iterators.IteratorEnvironment; import org.apache.accumulo....
Complete the task associated to this TODO comment.
@Deprecated
Remove this unused method parameter "ex".
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.zookeeper.IZooReaderWriter; IZooReaderWriter zoo = ZooReaderWriter.getInstance();
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* A set of authorization labels that will be checked against the column visibility of each key in order to filter data. The authorizations passed in * must be a subset of the accumulo user's set of authorizations. If the accumulo user has authorizations (A1, A2) and authorizations (A2, A3) are ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.cli.ClientOpts; Text row = new Text(String.format("%s%s%020d%s", MetadataTable.DELETED_RANGE.getStartKey().getRow().toString(), "/", i,
Reduce this switch case number of lines from 12 to at most 5, for example by extracting code into methods.
import org.apache.accumulo.core.client.security.SecurityErrorCode;
Do not forget to remove this deprecated code someday.
if (!shellState.getConnector().tableOperations().testClassLoad(tableName, constraint, Constraint.class.getName())) {
Either log or rethrow this exception.
package org.apache.accumulo.core.util;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.cli.BatchWriterOpts; BatchWriterOpts bwOpts = new BatchWriterOpts(); opts.parseArgs(FileDataIngest.class.getName(), args, bwOpts); BatchWriter bw = conn.createBatchWriter(opts.tableName, bwOpts.getBatchWriterConfig());
Remove this unused method parameter "opts".
import org.apache.accumulo.server.security.SecurityUtil; SecurityUtil.serverLogin();
Move this variable to comply with Java Code Conventions.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public class BloomFilterIT extends ConfigurableMacIT {
Use "Integer.toString" instead.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Replace this if-then-else statement by a single return statement.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
org.apache.thrift.protocol.TList _list31 = iprot.readListBegin(); this.mutations = new ArrayList<org.apache.accumulo.core.data.thrift.TMutation>(_list31.size); for (int _i32 = 0; _i32 < _list31.size; ++_i32) org.apache.accumulo.core.data.thrift.TMutation _elem33...
Use "Long.toString" instead.
import org.apache.accumulo.core.cli.BatchWriterOpts; BatchWriterOpts bwOpts = new BatchWriterOpts(); opts.parseArgs(SequentialBatchWriter.class.getName(), args, bwOpts); BatchWriter bw = connector.createBatchWriter(opts.tableName, bwOpts.getBatchWriterConfig());
Remove this unused method parameter "opts".
import org.apache.accumulo.core.security.thrift.TCredentials; private TCredentials credentials; public ConnectorImpl(Instance instance, TCredentials cred) throws AccumuloException, AccumuloSecurityException { if (!iface.authenticate(Tracer.traceInfo(), credentials))
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Remove this unused private "appendProp" method.
shellState.getReader().println(StringUtils.join(set, ','));
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
PasswordToken newPass = new PasswordToken(newPassw); conn.securityOperations().changeLocalUserPassword(target, newPass);
Remove the redundant '!unknownSymbol!' thrown exception declaration(s).
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws AccumuloException, AccumuloSecurityException, TableNotFoundException,
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
for (String key : IteratorUtil.generateInitialTableProperties().keySet())
Remove this unused private "match" method.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
package org.apache.accumulo.test.randomwalk.multitable; import org.apache.accumulo.test.randomwalk.State; import org.apache.accumulo.test.randomwalk.Test;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
private final ZooCache zooCache; private final String zooKeepers; private final int zooKeepersSessionTimeOut; @Deprecated /** * To be moved to server code. Only lives here to support certain client side utilities to minimize command-line options. */
Extract the assignment out of this expression.
import java.util.Set;
2 duplicated blocks of code must be removed.
private Runnable runnable; private Logger log; public LoggingRunnable(Logger log, Runnable r) { this.runnable = r; this.log = log; } public void run() { try { runnable.run(); } catch (Throwable t) { try { log.error("Thread \"" + Thread.currentThread().getName() + "\" ...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
final SortedMap<Long,byte[]> locks = new TreeMap<Long,byte[]>(); final Lock readLock = locker.readLock(); final Lock writeLock = locker.writeLock(); final Lock wl = locker.writeLock(); final Lock rl = locker.readLock();
Move this variable to comply with Java Code Conventions.
package org.apache.accumulo.server.test.randomwalk.concurrent; import java.util.List; import java.util.Properties; import java.util.Random; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.TableNotFoundException; import org.apache.accumulo.core.util.UtilWaitThread; import org.a...
Return empty string instead.
import java.nio.charset.Charset; AccumuloInputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8"))); AccumuloInputFormat.setInputTableName(job, args[2]); AccumuloOutputFormat.setConnectorInfo(job, args[0], args[1].getBytes(Charset.forName("UTF-8"))); AccumuloOutputFormat.setC...
Either log or rethrow this exception.
import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
1 duplicated blocks of code must be removed.
import org.apache.accumulo.core.security.thrift.Credentials; private Credentials credentials; ScannerIterator(Instance instance, Credentials credentials, Text table, Authorizations authorizations, Range range, int size, int timeOut,
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public void initialize(String instanceId, boolean initialize);
Remove this call to "exit" or ensure it is really required.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Immediately return this expression instead of assigning it to the temporary variable "r".
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
import org.apache.accumulo.core.util.ContextFactory; JobContext job = ContextFactory.createJobContext();
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/** * @deprecated since 1.4 * @use org.apache.accumulo.core.iterators.user.MinCombiner with MinCombiner.Type.STRING */
1 duplicated blocks of code must be removed.
import java.text.ParseException; try { initDateParser().parse(start); } catch (ParseException e) { throw new IllegalArgumentException(e); } try { initDateParser().parse(end); } catch (ParseException e) { throw new IllegalArgumentException(e); } setStart(is, initDatePa...
Either log or rethrow this exception.
exec("classpath", true, "Level 2: Accumulo Start Classloader (Loads the classloader) URL classpath items are", true);
1 duplicated blocks of code must be removed.
package org.apache.accumulo.test.continuous; import org.apache.accumulo.test.continuous.ContinuousIngest.BaseOpts;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
import org.apache.accumulo.core.security.Authorizations; Scanner scanner = getConnector().createScanner("rdel1", Authorizations.EMPTY); scanner = getConnector().createScanner("rdel1", Authorizations.EMPTY); scanner = getConnector().createScanner("rdel1", Authorizations.EMPTY);
Remove this unused method parameter "range".
Collection<Text> splits = getConnector().tableOperations().listSplits(table);
Either log or rethrow this exception.
import java.nio.charset.Charset; private static final Charset utf8 = Charset.forName("UTF8"); byte[] nid = zoo.mutate(ntp, "0".getBytes(utf8), ZooUtil.PUBLIC, new Mutator() { return nextId.toString(Character.MAX_RADIX).getBytes(utf8); String resvPath = ZooUtil.getRoot(instance) + Constants.ZHDFS_...
Move this variable to comply with Java Code Conventions.
private static final long serialVersionUID = 1L; private String tableId; public TableDeletedException(String tableId) { this.tableId = tableId; } public String getTableId() { return tableId; }
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Collections; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; private static String authsFile = null; } else ...
Remove this unused method parameter "r".
public void init(Map<String,String> options); public boolean accept(Key k, Value v);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
boolean tabExists = SecurityHelper.getTableExists(state); target = SecurityHelper.getTabUserName(state); target = SecurityHelper.getSysUserName(state); boolean exists = SecurityHelper.getTabUserExists(state); boolean tableExists = SecurityHelper.getTableExists(state); boolean hasPerm = ...
Either log or rethrow this exception.
System.out.printf("Mutation add rate : %,6.2f mutations/sec%n", mutationsAdded / ((System.currentTimeMillis() - startTime) / 1000.0));
Use isEmpty() to check whether the collection is empty or not.
private final MockAccumulo acc; private final String tableName; private final Authorizations authorizations; /** * Create a {@link BatchDeleter} for the specified instance on the specified table where the writer uses the specified {@link Authorizations}. * * @param acc * @param tableName *...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.security.tokens.AccumuloToken; import org.apache.accumulo.core.security.tokens.InstanceTokenWrapper; @SuppressWarnings("deprecation") * @deprecated @since 1.5, use {@link #getConnector(AccumuloToken)} * @param token * An AccumuloToken implementing object. * @return t...
Immediately return this expression instead of assigning it to the temporary variable "ret".
package org.apache.accumulo.server.master.state; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Set; public enum TabletServerState { // not a valid state, reserved for internal use only RESERVED((byte)(-1)), // the following are normally functioning states NEW...
Return empty string instead.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
296 duplicated blocks of code must be removed.
import org.apache.accumulo.server.cli.ClientOpts; import org.apache.accumulo.core.cli.BatchWriterOpts; import org.apache.accumulo.core.cli.ScannerOpts; private static TreeSet<RowColumn> scanAll(ClientOpts opts, ScannerOpts scanOpts, Text t) throws Exception { Connector conn = opts.getConnector(); scanner.setB...
Remove this unused private "appendProp" method.
import java.util.Collections; import java.util.Map.Entry; import org.junit.Rule; public static File testDir; File baseDir = new File(System.getProperty("user.dir") + "/target/mini-tests"); baseDir.mkdirs(); testDir = new File(baseDir, MiniAccumuloClusterTest.class.getName()); FileUtils.deleteQuietly(t...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
CompactionPlan plan = getCompactionPlan(request); return plan != null && !plan.inputFiles.isEmpty();
This block of commented-out lines of code should be removed.
import org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader; clazz = AccumuloVFSClassLoader.loadClass(className, OptionDescriber.class);
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.core.cli.Help; import com.beust.jcommander.Parameter; public class RestoreZookeeper { byte[] data = value.getBytes(); data = Base64.decodeBase64(value.getBytes()); static class Opts extends Help { @Parameter(names={"-z", "--keepers"}) String keepers = "localhost:2181";...
Remove this unused private "appendProp" method.
if (b.length < offset + 8) throw new IOException("trying to convert to long, but byte array isn't long enough, wanted " + (offset + 8) + " found " + b.length);
Remove this call to "exit" or ensure it is really required.
super.seek(range, columnFamilies, inclusive);
At most one statement is allowed per line, but 2 statements were found on this line.
import org.apache.accumulo.fate.Repo; import org.apache.accumulo.fate.zookeeper.ZooUtil.NodeExistsPolicy;
Remove this call to "exit" or ensure it is really required.
@SuppressWarnings("all") public enum _Fields implements org.apache.thrift.TFieldIdEnum {
300 duplicated blocks of code must be removed.
import org.apache.accumulo.core.iterators.user.GrepIterator;
Remove this unused private "match" method.
@Test(timeout = 2 * 60 * 1000)
Either log or rethrow this exception.
shellState.getReader().printString(String.format("%-15s => %10s%n", tableName, tableIds.get(tableName)));
Use isEmpty() to check whether the collection is empty or not.
import org.apache.accumulo.core.util.AddressUtil; transport = ThriftUtil.createTransport(AddressUtil.parseAddress(tserver), instance.getConfiguration());
Immediately return this expression instead of assigning it to the temporary variable "client".
Constants.METADATA_DIRECTORY_COLUMN.put(m, new Value(FastFormat.toZeroPaddedString(dirCount++, 8, 16, "/c-".getBytes()))); Constants.METADATA_DIRECTORY_COLUMN.put(m, new Value(FastFormat.toZeroPaddedString(dirCount++, 8, 16, "/c-".getBytes())));
Remove this unused method parameter "ex".
/** * */ package org.apache.accumulo.core.util; import java.io.Serializable; import java.util.Comparator; public class ByteArrayComparator implements Comparator<byte[]>, Serializable { private static final long serialVersionUID = 1L; @Override public int compare(byte[] o1, byte[] o2) { int minLen = ...
Return empty string instead.
@Override public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> tableNames = (List<String>) state.get("tables"); String tableName = tableNames.g...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
import org.apache.accumulo.server.security.SecurityOperationImpl; SecurityOperationImpl.getInstance().grantTablePermission(SecurityConstants.getSystemCredentials(), cloneInfo.user, cloneInfo.tableId, permission); SecurityOperationImpl.getInstance().deleteTable(SecurityConstants.getSystemCredentials(), clone...
Either log or rethrow this exception.
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not u...
Replace all tab characters in this file by sequences of white-spaces.
TimestampFilter copy = (TimestampFilter) super.deepCopy(env); copy.hasStart = hasStart; copy.start = start; copy.startInclusive = startInclusive; copy.hasEnd = hasEnd; copy.end = end; copy.endInclusive = endInclusive; return copy;
Define and throw a dedicated exception instead of using a generic one.
@Deprecated
Return empty string instead.
import org.apache.accumulo.cloudtrace.instrument.Span; import org.apache.accumulo.cloudtrace.instrument.Trace;
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
String path = Constants.ZROOT + "/" + iid + Constants.ZTRACERS; zapDirectory(zoo, path); private static void zapDirectory(IZooReaderWriter zoo, String path) { List<String> children = zoo.getChildren(path); message("Deleting " + path + "/" + child + " from zookeeper"); zoo.recursiveDe...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
setSource(iterator); setSource(iterator);
Remove this unused method parameter "hasStart".
package org.apache.accumulo.cloudtrace.instrument.impl; import org.apache.accumulo.cloudtrace.instrument.Span; import org.apache.accumulo.cloudtrace.instrument.Tracer; }
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
public class ConcurrencyIT extends ConfigurableMacIT {
Use "Integer.toString" instead.
if (!migrations.isEmpty()) return 100; KeyExtent ke = new KeyExtent(ts.extent); migrationsOut.add(new TabletMigration(ke, e.getKey(), dest)); // We can get some craziness with only 1 tserver, so lets make sure there's always an option! if (underCap...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.test.functional;
Move the "org.apache.accumulo.test.randomwalk.unit.CreateTable" string literal on the left side of this string comparison.
public static boolean setTableProperty(String tableId, String property, String value) throws KeeperException, InterruptedException { if (!isPropertyValid(property, value)) return false; // create the zk node for per-table properties for this table if it doesn't already exist String zkTablePath = getTableP...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
package org.apache.accumulo.server.test.continuous; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class PrintScanTimeHistogram { public static void main(String[] args) throws Exception { Histogra...
Return empty string instead.
import org.apache.accumulo.core.security.tokens.NullToken; import org.apache.accumulo.core.security.tokens.AuthenticationToken;
1 duplicated blocks of code must be removed.
throws ThriftSecurityException, TException { MetaDataTableScanner s = new MetaDataTableScanner(zki, SystemCredentials.get(), tableRange);
Immediately return this expression instead of assigning it to the temporary variable "onlineTabletsForTable".
shellState.updateUser(user, new PasswordToken(pass));
Immediately return this expression instead of assigning it to the temporary variable "connector".
String[] theList; static class Watcher implements LoggerWatcher { public ArrayList<String> added = new ArrayList<String>(); public ArrayList<String> deleted = new ArrayList<String>(); @Override public void newLogger(String address) { added.add(address); } @Override public voi...
Rename this local variable to match the regular expression '^[a-z][a-zA-Z0-9]*$'.
Set<Range> ranges = opts.getConnector().tableOperations().splitRangeByTablets(opts.getTableName(), new Range(), opts.maxMaps);
Reorder the modifiers to comply with the Java Language Specification.
package org.apache.accumulo.examples.mapreduce.bulk; import java.util.TreeSet; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.Connector; import org.apache.accumulo.core.client.TableExistsException; impo...
Return empty string instead.
End of preview. Expand in Data Studio

Dataset Card for "techdebt_label"

This dataset was generated from The Technical Debt Dataset created by Lenarduzzi, et al. and the citation is down below.

Dataset Details and Structure

The labels for the dataset were provided by the SonarQube software cited by the paper and matched to the diff in the commit where the message was raised. This diff was then cleaned to only include the lines of code added.

Bias, Risks, and Limitations

Beware of the limited sample size and label variety in the dataset. Also, the queries used to extract this data are still being checked over to ensure correctness.

Recommendations

Changes are constantly being made to this dataset to make it better. Please be aware when you use it.

References

Valentina Lenarduzzi, Nyyti Saarimäki, Davide Taibi. The Technical Debt Dataset. Proceedings for the 15th Conference on Predictive Models and Data Analytics in Software Engineering. Brazil. 2019.

Downloads last month
11