SiLeBAT/FSK-Lab

View on GitHub

Showing 6,856 of 14,752 total issues

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;

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

        @Override
        public void savePortObject(final FskPortObject portObject, final PortObjectZipOutputStream out,
                final ExecutionMonitor exec) throws IOException, CanceledExecutionException {
            // model entry (file with model script)
            out.putNextEntry(new ZipEntry(MODEL));

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

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

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

    @Override
    public void actionPerformed(ActionEvent e) {

      if (m_directoryEnvironmentButton.isSelected()) {

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

  public static void createAllPossibleSimulations(
      FskPortObject firstFskObj,
      FskPortObject secondFskObj, 
      CombinedFskPortObject outObj ) {
    

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

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

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

    static Reference retrieveReference(String[][] values, int row) {

      final String isReferenceDescriptionString = values[row][RakipColumn.K.ordinal()];
      final String doi = values[row][RakipColumn.O.ordinal()];

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

  public static void addModificationDate(Model modelMetadata) {
    Date dateJavaFormat = new Date();
    LocalDate dateThreeTenFormat = Instant.ofEpochMilli(dateJavaFormat.getTime()).atZone(ZoneId.systemDefault()).toLocalDate();
    String modelType = modelMetadata.getModelType();
      if(modelType.equalsIgnoreCase( "genericModel")) {

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

  @Override
  public void saveOutputParameters(FskPortObject fskObj, Path workingDirectory)
      throws VariableNotGlobalException, IOException {
    StringBuilder script = new StringBuilder();

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

    public static LiteratureItem getLiteratureItem(Connection conn, Integer id, String dbuuid) {
        String author = (String) DBKernel.getValue(conn, "Literatur", "ID", id
                + "", "Erstautor");
        String title = (String) DBKernel.getValue(conn, "Literatur", "ID", id
                + "", "Titel");

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

  private Optional<Path> copyFilesToEnvironment(Optional<Path> environment){
    
    List<Path> filePaths = new ArrayList<>();
    try {
      for (String filePath : files) {

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

  @Override
  public Optional<Path> getEnvironment() {

    if (archivePath == null || archivePath.isEmpty())
      return Optional.empty();

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

    private void performPaste() {
        int startRow = getSelectedRows()[0];
        int startCol = getSelectedColumns()[0];
        Clipboard system = Toolkit.getDefaultToolkit().getSystemClipboard();
        String trstring = null;

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

  @Override
  public Collection<FlowVariable> importFlowVariables(String variableName) throws RException {

    checkInitialized();
    final List<FlowVariable> flowVars = new ArrayList<>();
Severity
Category
Status
Source
Language