SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

Function createAtomic has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

  function createAtomic(x, y, width, height, modelName, inputs, outputs, modelIndex,simulations) {

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

    public OtherModelDataBackground retrieveBackground(Sheet sheet) {

        OtherModelDataBackground background = new OtherModelDataBackground();

        try {

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

        @Override
        public GenericModelModelMath deserialize(JsonParser parser, DeserializationContext context)
                throws IOException, JsonProcessingException {

            JsonNode node = parser.readValueAsTree();

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

    public Model convertModel(JsonNode originalMetadata, ModelClass targetClass) throws JsonProcessingException {

        String originalClass = originalMetadata.get("modelType").textValue();
        Map<String, Object> originalModelClass = ModelClass.valueOf(originalClass).swaggerDefinition;
        Map<String, Object> targetModelClass = targetClass.swaggerDefinition;

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

        @Override
        public GenericModelScope deserialize(JsonParser parser, DeserializationContext context)
                throws IOException, JsonProcessingException {

            JsonNode node = parser.readValueAsTree();

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 loadSettings has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public void loadSettings( final Config config ) throws InvalidSettingsException {        
        int i;
        Config c;
        
        processName = config.getString(PARAM_PROCESSNAME);

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
Severity
Category
Status
Source
Language