LearnPAd/learnpad

View on GitHub

Showing 1,823 of 4,261 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    maxItems: function (report, schema, json) {
        // http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.3.2.2
        if (!Array.isArray(json)) {
            return;
        }
lp-simulation-environment/simulator/src/main/resources/static/deps/opt/ZSchema-browser.js on lines 402..410

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        if (subBoundaries.minItems !== -1) {
          if (boundaries.minItems !== -1) {
            boundaries.minItems = Math.max(
              boundaries.minItems,
              subBoundaries.minItems
lp-simulation-environment/simulator/src/main/resources/static/lib/jsonform.js on lines 3548..3558

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Override
    public Vector<Float> getMaxSessionScores(String learnerID, String idBPMN) {
        
        String query = "SELECT max(session_score)"
                + " FROM glimpse.path_learner"
lp-simulation-environment/monitoring/src/main/java/eu/learnpad/simulator/mon/storage/MySqlController.java on lines 625..649

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    @Override
    public Vector<Float> getMaxSessionScores(String learnerID, String idBPMN) {
        
        String query = "SELECT max(session_score)"
                + " FROM glimpse.path_learner"
lp-simulation-environment/monitoring/src/main/java/eu/learnpad/simulator/mon/storage/H2Controller.java on lines 602..626

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 147.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static String escapeXPathField(String field) {
        Matcher matcher = Pattern.compile("['\"]").matcher(field);
        StringBuilder buffer = new StringBuilder("concat(");
        int start = 0;
        while (matcher.find()) {
lp-model-verification/lp-verification-component/src/main/java/eu/learnpad/verificationComponent/utils/XMLUtils.java on lines 121..133

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 146.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

     if(typedAnnotations.size() > 0) {
          Annotation annotationToPrint = typedAnnotations.get(0);
          if(this.annsToInsert[i][1] != null) {
            this.outputStream.print(annotationToPrint.getFeatures().get(
                this.annsToInsert[i][1]));
lp-ontology-recommender/src/main/resources/gate/plugins/Tools/src/gate/configurableexporter/ConfigurableExporter.java on lines 298..316

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 146.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    public static String escapeXPathField(String field) {
        Matcher matcher = Pattern.compile("['\"]").matcher(field);
        StringBuilder buffer = new StringBuilder("concat(");
        int start = 0;
        while (matcher.find()) {
lp-model-verification/verification-component-deadlock-plugin/src/main/java/eu/learnpad/verification/plugin/utils/XMLUtils.java on lines 121..133

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 146.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

          if(typedAnnotations.size() > 0) {
            Annotation annotationToPrint = typedAnnotations.get(0);
            if(this.annsToInsert[i][1] != null) {
              this.outputStream.print(annotationToPrint.getFeatures().get(
                  this.annsToInsert[i][1]));
lp-ontology-recommender/src/main/resources/gate/plugins/Tools/src/gate/configurableexporter/ConfigurableExporter.java on lines 255..273

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 146.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    setMaxValue : function(dt){
        this.maxValue = (Ext.isString(dt) ? this.parseDate(dt) : dt);
        if(this.menu){
            this.menu.picker.setMaxDate(this.maxValue);
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 2217..2222

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    onEnable : function(){
        Ext.FormPanel.superclass.onEnable.call(this);
        if(this.form){
            this.form.items.each(function(){
                 this.enable();
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 6325..6332

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    setMinValue : function(dt){
        this.minValue = (Ext.isString(dt) ? this.parseDate(dt) : dt);
        if(this.menu){
            this.menu.picker.setMinDate(this.minValue);
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 2228..2233

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        if(this.enableFormat){
            btns.bold.toggle(doc.queryCommandState('bold'));
            btns.italic.toggle(doc.queryCommandState('italic'));
            btns.underline.toggle(doc.queryCommandState('underline'));
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 7547..7551

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    onDisable : function(){
        Ext.FormPanel.superclass.onDisable.call(this);
        if(this.form){
            this.form.items.each(function(){
                 this.disable();
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 6335..6342

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        if(this.enableAlignments){
            btns.justifyleft.toggle(doc.queryCommandState('justifyleft'));
            btns.justifycenter.toggle(doc.queryCommandState('justifycenter'));
            btns.justifyright.toggle(doc.queryCommandState('justifyright'));
        }
lp-dashboard-kpi/lp-dash-adoxx-cockpit/src/main/webapp/ext-3.4.0/pkgs/pkg-forms-debug.js on lines 7542..7546

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setATTRIBUTEPROFILES(ATTRIBUTEPROFILESType newATTRIBUTEPROFILES) {
        if (newATTRIBUTEPROFILES != aTTRIBUTEPROFILES) {
            NotificationChain msgs = null;
            if (aTTRIBUTEPROFILES != null)
                msgs = ((InternalEObject)aTTRIBUTEPROFILES).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AdoPackage.ADOXML_TYPE__ATTRIBUTEPROFILES, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setATTRPROFDIR(ATTRPROFDIRType newATTRPROFDIR) {
        if (newATTRPROFDIR != aTTRPROFDIR) {
            NotificationChain msgs = null;
            if (aTTRPROFDIR != null)
                msgs = ((InternalEObject)aTTRPROFDIR).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AdoPackage.ATTRIBUTEPROFILES_TYPE__ATTRPROFDIR, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setTranslations(Translations newTranslations) {
        if (newTranslations != translations) {
            NotificationChain msgs = null;
            if (translations != null)
                msgs = ((InternalEObject)translations).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XwikiPackage.PAGE_SUMMARY__TRANSLATIONS, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setSyntaxes(Syntaxes newSyntaxes) {
        if (newSyntaxes != syntaxes) {
            NotificationChain msgs = null;
            if (syntaxes != null)
                msgs = ((InternalEObject)syntaxes).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - XwikiPackage.XWIKI__SYNTAXES, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setFROM(FROMType newFROM) {
        if (newFROM != fROM) {
            NotificationChain msgs = null;
            if (fROM != null)
                msgs = ((InternalEObject)fROM).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AdoPackage.CONNECTOR_TYPE__FROM, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/MODELTypeImpl.java on lines 247..259
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 12 locations. Consider refactoring.
Open

    public void setMODELATTRIBUTES(MODELATTRIBUTESType newMODELATTRIBUTES) {
        if (newMODELATTRIBUTES != mODELATTRIBUTES) {
            NotificationChain msgs = null;
            if (mODELATTRIBUTES != null)
                msgs = ((InternalEObject)mODELATTRIBUTES).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AdoPackage.MODEL_TYPE__MODELATTRIBUTES, null, msgs);
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 252..264
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 295..307
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 338..350
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ADOXMLTypeImpl.java on lines 381..393
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 102..114
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/ATTRIBUTEPROFILESTypeImpl.java on lines 145..157
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 169..181
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/ado/impl/CONNECTORTypeImpl.java on lines 212..224
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/PageSummaryImpl.java on lines 654..666
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/SearchResultImpl.java on lines 828..840
lp-model-transformer/src/main/java/eu/learnpad/transformations/metamodel_corpus/xwiki/impl/XWikiImpl.java on lines 129..141

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 144.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language