Showing 6,856 of 14,752 total issues
Method saveSettings
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void saveSettings(NodeSettingsWO settings) {
settings.addString(CFG_SELECTEDID, selectedID);
settings.addString(CFG_CURRENTPARAMX, currentParamX);
settings.addString(CFG_PARAMXVALUES,
XmlConverter.objectToXml(paramXValues));
- Create a ticketCreate a ticket
Method doSecondaryEstimation
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private BufferedDataTable doSecondaryEstimation(BufferedDataTable table,
ExecutionContext exec) throws CanceledExecutionException,
InterruptedException {
BufferedDataContainer container = exec.createDataContainer(outSchema
.createSpec());
- Create a ticketCreate a ticket
Method replaceCelsiusAndFahrenheit
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void replaceCelsiusAndFahrenheit(KnimeTuple tuple) {
final String CELSIUS = "°C";
final String FAHRENHEIT = "°F";
final String KELVIN = "K";
- Create a ticketCreate a ticket
Method manageString
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private String manageString(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell, LinkedHashMap<Object, String> hashBL) throws SQLException {
String result = null;
if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
if (ps != null) ps.setNull(lfdCol, java.sql.Types.VARCHAR);
if (psUpdate != null) psUpdate.setNull(lfdCol, java.sql.Types.VARCHAR);
- Create a ticketCreate a ticket
Method doIt
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void doIt(Document doc) throws SAXException, IOException, ParserConfigurationException {
int carverXMLIndex;
NodeList nodeLst = doc.getElementsByTagName("ProcessElementNode");
processNames = new String[nodeLst.getLength()];
- Create a ticketCreate a ticket
Method getInternalKNIMEDB_LoadGui
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static Connection getInternalKNIMEDB_LoadGui(boolean autoUpdate) {
Connection result = null;
//try {
String internalPath = DBKernel.prefs.get("PMM_LAB_SETTINGS_DB_PATH", getInternalDefaultDBPath());
CRC32 crc32 = new CRC32();
- Create a ticketCreate a ticket
Method closeDBConnections
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public boolean closeDBConnections(final boolean kompakt) {
boolean result = true;
try {
if (conn != null && !conn.isClosed()) {
if (!isServerConnection) {
- Create a ticketCreate a ticket
Method createUI
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void createUI() {
FPanel simulationPanel = new FPanel();
simulationPanel.setLayout(new BorderLayout());
JScrollPane parametersPane = new JScrollPane(
- Create a ticketCreate a ticket
Method actionPerformed
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void actionPerformed(ActionEvent e) {
// if environment type is switched, clear added Files
addedFiles.clear();
- Create a ticketCreate a ticket
Method isPlotable
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private boolean isPlotable(String paramX, String paramY) {
boolean dataSetPlotable = false;
boolean functionPlotable = false;
List<Double> xs = valueLists.get(paramX);
List<Double> ys = valueLists.get(paramY);
- Create a ticketCreate a ticket
Method getColor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Color getColor(String param, Color lastBG, String lastParam) {
Color bg = Color.WHITE;
@SuppressWarnings("unused")
Color fg = Color.BLACK;
if (JCheckboxWithObject.isTemperature(param)) {
- Create a ticketCreate a ticket
Method evalWithSingularityCheck
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private double evalWithSingularityCheck(int index, double[] argValues,
double[] paramValues) throws ParseException {
for (int i = 0; i < parameters.length; i++) {
parser.setVarValue(parameters[i], paramValues[i]);
}
- Create a ticketCreate a ticket
Method testFullNames
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testFullNames() {
assertEquals("Model name", FskMetaDataFields.name.fullname);
assertEquals("Model id", FskMetaDataFields.id.fullname);
- Create a ticketCreate a ticket
Method testConvertHazard
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testConvertHazard() {
Hazard hazard;
{
- Create a ticketCreate a ticket
Method getMiscUnits
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Map<String, String> getMiscUnits(List<KnimeTuple> tuples) {
Map<String, Map<String, Integer>> occurences = new LinkedHashMap<>();
Map<String, String> map = new LinkedHashMap<>();
for (KnimeTuple tuple : tuples) {
- Create a ticketCreate a ticket
Method testStudySample
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testStudySample() throws Exception {
// Test study sample from row 97
final StudySample studySample97 = importer.retrieveStudySample(sheet.getRow(96));
- Create a ticketCreate a ticket
Function copyState
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
copyState: function(s) {
return {
f: s.f,
prevLine: s.prevLine,
- Create a ticketCreate a ticket
Function token
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function(stream, state) {
var ctx = state.context;
if (stream.sol()) {
if (ctx.align == null) ctx.align = false;
state.indented = stream.indentation();
- Create a ticketCreate a ticket
Function dispatch
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dispatch(stream, state) {
var isPHP = state.curMode == phpMode;
if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null;
if (!isPHP) {
if (stream.match(/^<\?\w*/)) {
- Create a ticketCreate a ticket
Function nodeAndOffsetInLineMap
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function nodeAndOffsetInLineMap(map$$1, ch, bias) {
var node, start, end, collapse, mStart, mEnd;
// First, search the line map for the text node corresponding to,
// or closest to, the target character.
for (var i = 0; i < map$$1.length; i += 3) {
- Create a ticketCreate a ticket