SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method retrieveBackground has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public PredictiveModelDataBackground retrieveBackground(Sheet sheet) {
        PredictiveModelDataBackground background = new PredictiveModelDataBackground();
        try {
            Study study = retrieveStudy(sheet);
            background.setStudy(study);

Method retrieveBackground has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public PredictiveModelDataBackground retrieveBackground(Sheet sheet) {

            PredictiveModelDataBackground background = new PredictiveModelDataBackground();
            try {
                Study study = retrieveStudy(sheet);

Method retrieveBackground has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public PredictiveModelDataBackground retrieveBackground(Sheet sheet) {
        PredictiveModelDataBackground background = new PredictiveModelDataBackground();
        try {
            Study study = retrieveStudy(sheet);
            background.setStudy(study);

Method retrieveBackground has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public PredictiveModelDataBackground retrieveBackground(Sheet sheet) {

        PredictiveModelDataBackground background = new PredictiveModelDataBackground();
        try {
            Study study = retrieveStudy(sheet);

Method convert has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Deprecated
    public static de.bund.bfr.metadata.swagger.GenericModelModelMath convert(metadata.ModelMath emfMM) {

        de.bund.bfr.metadata.swagger.GenericModelModelMath swaggerMM = new de.bund.bfr.metadata.swagger.GenericModelModelMath();
        swaggerMM.setFittingProcedure(emfMM.getFittingProcedure());

Method saveSettings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void saveSettings(NodeSettingsWO settings) {
        settings.addString(CFG_SELECTEDIDS,
                XmlConverter.objectToXml(selectedIDs));
        settings.addString(CFG_COLORS, XmlConverter.colorMapToXml(colors));
        settings.addString(CFG_SHAPES, XmlConverter.shapeMapToXml(shapes));

Method loadFromNodeSettings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void loadFromNodeSettings(NodeSettingsRO settings)
            throws InvalidSettingsException {
        setChartTitle(settings.getString(ModelPlotterViewConfig.CHART_TITLE));
        setY0(settings.getDouble(ModelPlotterViewConfig.Y0));

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

    @Override
    protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec) throws Exception {
        final BufferedDataTable table = (BufferedDataTable) inObjects[0];
        final List<KnimeTuple> tuples = PmmUtilities.getTuples(table, SchemaFactory.createM1DataSchema());

Method toParam has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static Param toParam(ParamXml paramXml) {
        Param param = new Param();
        param.name = paramXml.name;
        param.origName = paramXml.origName;
        param.isStart = paramXml.isStartParam;

Method setInputData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void setInputData(Collection<ParametricModel> m1s, HashMap<ParametricModel, HashMap<String, ParametricModel>> m_secondaryModels, HashMap<Integer, PmmTimeSeries> tss) {
        this.tss = tss;
        this.m_secondaryModels = m_secondaryModels;
        if (m1s.size() == 0) {
            scrollPane3.setVisible(false);

Method fillTS has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private void fillTS() {
        // @Todo: dbuuid muss evtl. noch angepasst werden!!!! in MatrixXml, AgentXml
        if (theTS == null) theTS = new PmmTimeSeries();
        
            int agentID = MathUtilities.getRandomNegativeInt();

Method loadSettingsFrom has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected void loadSettingsFrom( NodeSettingsRO settings, PortObjectSpec[] specs )  {
        try {
            try {
                updateModelName();
            } catch (Exception e) {}

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

    private static KnimeTuple parse(PrimaryModelWData pm) {
      // Add cells to the row
      KnimeTuple row = new KnimeTuple(SchemaFactory.createM1DataSchema());

      // time series cells

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

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

            final String modelExtension = isPMFX ? ".pmf" : ".sbml";
            KnimeTuple firstTuple = tuples.get(0);

Method saveSettingsTo has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    protected void saveSettingsTo(NodeSettingsWO settings)
            throws InvalidSettingsException {
        if (!nParamSpaceField.isValueValid() || !nLevenbergField.isValueValid()
                || minimumFields == null || maximumFields == null) {

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

    private static KnimeTuple parse(PrimaryModelWOData pm) {
      // Add cells to the row
      KnimeTuple row = new KnimeTuple(SchemaFactory.createM1DataSchema());

      // time series cells

Method createDataset has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private XYDataset createDataset() {
        
        series2.clear();
        Datenpunkte = "";
        for (int i=0;i<table1.getModel().getRowCount();i++) {

Method main has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void main(final String[] args) { // Servervariante
        isServer = true;
        if (args.length > 1) {
            if (args[1] != null) {
                dbFolder = args[1] + "/data/";
Severity: Minor
Found in org.hsh.bfr.db/src/org/hsh/bfr/db/MainKernel.java - About 1 hr to fix

Method mergeIDs has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void mergeIDs() {
        System.err.println("Merging...");
        try {
            //FileInputStream is = new FileInputStream("C:\\Users\\Armin\\Desktop\\AllKrisen\\EFSA\\mergeList.xls");
            FileInputStream is = new FileInputStream(DBKernel.HSHDB_PATH + "mergeList.xls");

Method insertDouble has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private int insertDouble(final Double value, final Double stdDev, final Integer numValues) {
        if (value == null || Double.isNaN(value) || Double.isInfinite(value)) return -1;
        PreparedStatement psInsertDouble;
        ResultSet result;
Severity
Category
Status
Source
Language