SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Method doBuf has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void doBuf(KnimeTuple tupleM1, PmmTimeSeries tstuple, List<KnimeTuple> rowSec, BufferedDataContainer buf, KnimeSchema ks) {
        if (tupleM1 != null) {
            // Set primary variable names to TimeSeriesSchema.TIME and TimeSeriesSchema.LOGC
            PmmXmlDoc modelXml = tupleM1.getPmmXml(Model1Schema.ATT_MODELCATALOG);
            String formula = ((CatalogModelXml) modelXml.get(0)).formula;

Method createMainComponent has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private ChartAllPanel createMainComponent() {
        if (set.isStandardVisibleColumns()) {
            set.setVisibleColumns(reader.getStandardVisibleColumns());
        }

Method readModelTable has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void readModelTable() {
        Set<Integer> ids = new LinkedHashSet<>();
        Set<Integer> estIDs = new LinkedHashSet<>();
        KnimeRelationReader reader = new KnimeRelationReader(
                SchemaFactory.createM1Schema(), modelTable);

Method configure has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected DataTableSpec[] configure(final DataTableSpec[] inSpecs)
            throws InvalidSettingsException {
        KnimeSchema outSchema = null;
        boolean conformsPrimary = SchemaFactory.conformsM1Schema(inSpecs[0])

Method itemStateChanged has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void itemStateChanged(ItemEvent e) {
        if (e.getSource() == rmseBox) {
            rmse = (String) rmseBox.getSelectedItem();
        } else if (e.getSource() == r2Box) {

Method merging has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void merging() {
        int oldID = this.getSelectedID();
        String msg = "Bitte die ID des Datensatzes eingeben, der ID '" + oldID + "' ersetzen soll (" + oldID + " -> ?):";
        String titel = "ID '" + oldID + "' ersetzen durch andere ID!";
        if (DBKernel.getLanguage().equalsIgnoreCase("en")) {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/MyDBTable.java - About 1 hr to fix

Method getCopyOfInternalDB has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static File getCopyOfInternalDB() {
        File temp = null;
        try {
            Bundle bundle = null;
            try {
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/DBKernel.java - About 1 hr to fix

Method writeFSKObject has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static void writeFSKObject(FskPortObject fskObj, CombineArchive archive, String filePrefix,
      Map<String, URI> URIS) throws Exception {

    addVersion(archive);
   

Method setValue has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void setValue(final int i, final Object obj) throws PmmException {
        if (obj == null)
            cell[i] = CellIO.createMissingCell();
        else
            switch (schema.getType(i)) {

Method testProduct has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void testProduct() throws IOException, EncryptedDocumentException, InvalidFormatException {

        final Workbook workbook = WorkbookFactory.create(new File("files/QMRA_Listeria.xlsx"));
        final Sheet sheet0 = workbook.getSheetAt(0);
        final String[][] values = readSpreadsheetToMatrix(sheet0);

Function statement has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function statement(type, value) {
    if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
    if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
    if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
    if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);

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

  function tokenBase(stream, state) {
    var ch = stream.next();
    if (hooks[ch]) {
      var result = hooks[ch](stream, state);
      if (result !== false) return result;
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/d/d.js - About 1 hr to fix

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

  function tokenBase(stream, state) {
    var ch = stream.next();
    curPunc = null;
    if (ch == "<" && !stream.match(/^[\s\u00a0=]/, false)) {
      stream.match(/^[^\s\u00a0>]*>?/);
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/turtle/turtle.js - About 1 hr to fix

Function makeChangeSingleDocInEditor has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function makeChangeSingleDocInEditor(cm, change, spans) {
    var doc = cm.doc, display = cm.display, from = change.from, to = change.to;

    var recomputeMaxLength = false, checkWidthStart = from.line;
    if (!cm.options.lineWrapping) {
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function fromTextArea has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function fromTextArea(textarea, options) {
    options = options ? copyObj(options) : {};
    options.value = textarea.value;
    if (!options.tabindex && textarea.tabIndex)
      { options.tabindex = textarea.tabIndex; }
Severity: Minor
Found in de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/lib/codemirror.js - About 1 hr to fix

Function _createComplexPanel has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _createComplexPanel(menu, modelHandler) {
        let O = this;
        _log('MODAL DETAILS / _createComplexPanel: ' + menu.id);

        // tab-pane
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.mt.details.js - About 1 hr to fix

Function _create has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async _create () {
        let O = this;
        _log( 'TABLE MAIN / _create', 'primary' );
        
        O._facets = {}; // column facets
Severity: Minor
Found in de.bund.bfr.knime.js/src/js/app/app.table.mt.js - About 1 hr to fix

Function query has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  AjaxAdapter.prototype.query = function (params, callback) {
    var matches = [];
    var self = this;

    if (this._request != null) {

Function _registerDomEvents has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  Select2.prototype._registerDomEvents = function () {
    var self = this;

    this.$element.on('change.select2', function () {
      self.dataAdapter.current(function (data) {

Function resample has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function resample(stream) {
      var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
      var resample = {
        point: point,
        lineStart: lineStart,
Severity
Category
Status
Source
Language