SiLeBAT/FSK-Lab

View on GitHub

Showing 14,752 of 14,752 total issues

Method execute has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  @Override
  protected PortObject[] execute(PortObject[] inData, ExecutionContext exec) throws Exception {

    this.setInternalPortObjects(inData);
    

Method createFieldPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      private JPanel createFieldPanel(JTextField field, String value) {
        field.setColumns(30);
        field.setBackground(UIUtils.WHITE);
        field.setText(value);
        field.setHorizontalAlignment(JTextField.RIGHT);

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

  @Override
  protected PortObject[] performExecute(PortObject[] inObjects, ExecutionContext exec)
      throws IOException, CanceledExecutionException, InvalidSettingsException {

    final String nameWithID = NodeContext.getContext().getNodeContainer().getNameWithID();

Method readSimulationSettings has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private static SimulationSettings readSimulationSettings(ArchiveEntry simulationsEntry)
      throws IOException, XMLException {

    // Create temporary file for extracting SEDML and read it.
    File tempFile = File.createTempFile("simulations", ".sedml");

Method createFieldPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            private JPanel createFieldPanel(JTextField field, String value) {
                field.setColumns(30);
                field.setBackground(UIUtils.WHITE);
                field.setText(value);
                field.setHorizontalAlignment(JTextField.RIGHT);

Method subModelParametersToJson has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private void subModelParametersToJson(FskPortObject topLevel, FskPortObject fskObj,
      ParameterJson combinedJson, String suffix) throws Exception {


    if (fskObj instanceof CombinedFskPortObject) {

Method createScriptPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private JPanel createScriptPanel() {

    DefaultMutableTreeNode modelNode = new DefaultMutableTreeNode("Model scripts");
    buildNode(modelNode, this, 0);

Method createFieldPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      private JPanel createFieldPanel(JTextField field, String value) {
        field.setColumns(30);
        field.setBackground(UIUtils.WHITE);
        field.setText(value);
        field.setHorizontalAlignment(JTextField.RIGHT);

Method findSuffix has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public static String findSuffix(List<String> listOfParameter) {
    List<String> trailingNums = extractNumber(listOfParameter);
    int longestStringIndex = 0;
    int longestString = 0;
    for(int x = 0; x < trailingNums.size(); x++) {

Method isPlotable has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public boolean isPlotable() {
        if (type == FUNCTION || type == FUNCTION_SAMPLE) {
            for (String param : functionParameters.keySet()) {
                if (functionParameters.get(param) == null) {
                    return false;

Method getAllChoices has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public List<Map<String, Integer>> getAllChoices() {
        List<Map<String, Integer>> choices = new ArrayList<>();
        List<String> argList = new ArrayList<>(functionArguments.keySet());
        List<Integer> choice = new ArrayList<>(Collections.nCopies(
                argList.size(), 0));

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

    @Override
    public void actionPerformed(ActionEvent e) {
        if (e.getSource() == selectAllButton) {
            for (int i = 0; i < selectTable.getRowCount(); i++) {
                selectTable.setValueAt(true, i, 1);

Method test has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void test() {
        // Test default values
        FskMetaData metadata = new FskMetaData();
        assertNull(metadata.modelName);

Method testModelMath has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testModelMath() {

        final GenericModelModelMath math = importer.retrieveModelMath(sheet);

Method testIndependentSetters has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testIndependentSetters() {
        final ParametricModel model = new ParametricModel();
        model.addIndepVar("indep");

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

    @Override
    protected PortObjectSpec[] configure(final PortObjectSpec[] inSpecs)
            throws InvalidSettingsException {
        DataTableSpec inSpec = (DataTableSpec)inSpecs[0];
        if (settings.getColumn() == null) {

Method append has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static void append(final PCMLDocument doc, 
            final PCMLDocument toAppend) {
        Map<String, XmlObject> newNodes = PCMLUtil.append(doc, toAppend, 
                "ProcessNode");
        // TODO: this might be automated by getting the parent of ProcessNode.

Method testConstructor2 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Test
    public void testConstructor2() {

        final DepXml dep = new DepXml("dep");

Method monitor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private REXP monitor(final Callable<REXP> task)
        throws InterruptedException, RException, CanceledExecutionException {
      final FutureTask<REXP> runningTask = new FutureTask<>(task);
      final Thread t =
          (m_useNodeContext) ? ThreadUtils.threadWithContext(runningTask, "R-Evaluation")

Method keyPressed has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public void keyPressed(KeyEvent event) {

      JTextField textField = (JTextField) event.getComponent();
      String query = textField.getText();
Severity
Category
Status
Source
Language