SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method parse has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        private static TwoStepTertiaryModel parse(List<List<KnimeTuple>> tupleList, boolean isPMFX, int modelNum,
                String mdName, Metadata metadata, String notes) {

            final String modelExtension = isPMFX ? "pmf" : "sbml";

Method createSbmlDocument has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static SBMLDocument createSbmlDocument(final FskMetaData template) {

    // Creates SBMLDocument for the primary model
    final SBMLDocument sbmlDocument = new SBMLDocument(TableReader.LEVEL, TableReader.VERSION);

Method performExecute has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
      throws Exception {

    MAPPER.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);

SettingsHelper has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

public class SettingsHelper {

    private static final String CFGKEY_FILENAME = "FileName";
    private static final String CFGKEY_SHEETNAME = "SheetName";
    private static final String CFG_PRESERVE_IDS = "PreserveIds";

ChartSelectionPanel has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

public class ChartSelectionPanel extends JPanel implements ActionListener,
        CellEditorListener, ListSelectionListener {

    private static final String ID = "ID";
    private static final String SELECTED = "Selected";

KnimeTuple has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

public class KnimeTuple implements DataRow {

    private KnimeSchema schema;
    private DataCell[] cell;

Method loadSettings has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void loadSettings(NodeSettingsRO settings) {
        try {
            selectedIDs = XmlConverter.xmlToObject(
                    settings.getString(CFG_SELECTEDIDS),
                    new ArrayList<String>());

Method deleteFMID has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int deleteFMID(Connection conn, int level, Object rowEstMID) {
        int numDBSuccesses = 0;
        Integer firstCLID = DBKernel.getMaxID("ChangeLog");
        if (firstCLID == null)
            firstCLID = 0;

Method plotFunctionSample has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void plotFunctionSample(XYPlot plot, Plotable plotable, String id,
            Color defaultColor, Shape defaultShape, double minX, double maxX,
            List<String> warnings) throws ConvertException {
        double[][] functionPoints = plotable.getFunctionPoints(paramX, paramY,
                unitX, unitY, transformX, transformY, minX, maxX,

Function tokenBase has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenBase(stream, state) {
    var ch = stream.next(),
        mightBeFunction = false,
        isEQName = isEQNameAhead(stream);

Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/xquery/xquery.js - About 3 hrs to fix

File FittedParameterViewNodeDialog.java has 318 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*******************************************************************************
 * Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by

File FSKEditorJSNodeDialog.java has 318 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 ***************************************************************************************************
 * Copyright (c) 2017 Federal Institute for Risk Assessment (BfR), Germany
 *
 * This program is free software: you can redistribute it and/or modify it under the terms of the

Method loadSettings has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void loadSettings(NodeSettingsRO settings) {
        try {
            addedConditions = XmlConverter.xmlToObject(
                    settings.getString(CFGKEY_ADDEDCONDITIONS),
                    new LinkedHashMap<Integer, MiscXml>());

Method mouseClicked has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void mouseClicked(MouseEvent e) {
        if (e.getButton() == MouseEvent.BUTTON3 && e.getSource() == table.getTableHeader()) {
            int index = table.convertColumnIndexToModel(table.columnAtPoint(e.getPoint()));
            String column = table.getModel().getColumnName(index);

Method doLieferkettenTabellen has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @SuppressWarnings("unchecked")
    private void doLieferkettenTabellen(final MyTable agenzien, final MyTable matrix, final LinkedHashMap<Object, String> h4) {
        LinkedHashMap<Boolean, String> hYNB = new LinkedHashMap<>();
        if (DBKernel.getLanguage().equalsIgnoreCase("en")) {hYNB.put(new Boolean(true), "yes");    hYNB.put(new Boolean(false), "no");}
        else {hYNB.put(new Boolean(true), "ja");    hYNB.put(new Boolean(false), "nein");}
Severity: Major
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MyDBTablesNew.java - About 3 hrs to fix

Method setDateAndMode has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setDateAndMode(final Date date, final Mode mode) {

        GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
        cal.setTime(date);

Function tokenBase has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function tokenBase(stream, state) {
    if (stream.sol() && stream.match("=begin") && stream.eol()) {
      state.tokenize.push(readBlockComment);
      return "comment";
    }
Severity: Major
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/ruby/ruby.js - About 3 hrs to fix

Function bind has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Search.prototype.bind = function (decorated, container, $container) {
    var self = this;

    var resultsId = container.id + '-results';
    var selectionId = container.id + '-container';
Severity: Major
Found in de.bund.bfr.knime.js/src/js/lib/select2.full.js - About 3 hrs to fix

Function insert_formula has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function insert_formula(modelNumber) {

        function load_category_combo(selected_category) {
            var MODEL_CLASSES = ["unknown", "growth", "inactivation", "survival",
                "growth/inactivation", "inactivation/survival", "growth/survival",

Function VariableRow has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        function VariableRow(variable, is_dependent) {
            VariableRowBase.call(this);

            // HTML elements
            this.isDependentInput = new Input('checkbox');
Severity
Category
Status
Source
Language