mohayonao/SCScript

View on GitHub
src/sc/lang/bytecode_test.js

Summary

Maintainability
F
1 wk
Test Coverage

File bytecode_test.js has 700 lines of code (exceeds 250 allowed). Consider refactoring.
Open

describe("sc.lang.bytecode", function() {
  "use strict";

  var $$ = sc.test.object;
  var $  = sc.lang.$;
Severity: Major
Found in src/sc/lang/bytecode_test.js - About 1 day to fix

    Function r has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          var r = SCRoutine.new($.Function(function(_) {
            return [
              function() {
                return _.push(), $.Func(function() {
                  return $$(10);
    Severity: Major
    Found in src/sc/lang/bytecode_test.js - About 2 hrs to fix

      Function f has 43 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            var f = $.Function(function(_) {
              return [
                function() {
                  return _.push(), $.Func(function() {
                    return $$(10);
      Severity: Minor
      Found in src/sc/lang/bytecode_test.js - About 1 hr to fix

        Function r has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              var r = SCRoutine.new($.Function(function() {
                return [
                  SHOULD_BE_IGNORED,
                  function() {
                    return $$(10).yield();
        Severity: Minor
        Found in src/sc/lang/bytecode_test.js - About 1 hr to fix

          Function r has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                var r = SCRoutine.new($.Function(function(_) {
                  return [
                    function() {
                      return $$(10).yield();
                    },
          Severity: Minor
          Found in src/sc/lang/bytecode_test.js - About 1 hr to fix

            Function r has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  var r = SCRoutine.new($.Function(function(_) {
                    return [
                      function() {
                        return $$(10).yield();
                      },
            Severity: Minor
            Found in src/sc/lang/bytecode_test.js - About 1 hr to fix

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

                    var r = SCRoutine.new($.Function(function(_) {
                      return [
                        function() {
                          return $$(10).yield();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 7 hrs to fix
              src/sc/lang/bytecode_test.js on lines 526..553

              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 194.

              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

                    var r = SCRoutine.new($.Function(function(_) {
                      return [
                        function() {
                          return $$(10).yield();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 7 hrs to fix
              src/sc/lang/bytecode_test.js on lines 593..620

              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 194.

              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 3 locations. Consider refactoring.
              Open

                describe("current", function() {
                  var current;
              
                  before(function() {
                    current = sc.lang.bytecode.getCurrent();
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 2 other locations - About 6 hrs to fix
              src/sc/lang/main_test.js on lines 7..24
              src/sc/lang/main_test.js on lines 26..43

              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 156.

              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

                        function() {
                          return _.push(), $.Function(function(_) {
                            return [
                              function() {
                                return _.shift().yield();
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 2 hrs to fix
              src/sc/lang/bytecode_test.js on lines 705..717

              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 94.

              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

                        function() {
                          return _.push(), $.Function(function(_) {
                            return [
                              function() {
                                return _.shift().yield();
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 2 hrs to fix
              src/sc/lang/bytecode_test.js on lines 678..690

              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 94.

              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

                        function() {
                          return _.push(), $.Function(function(_) {
                            return [ function() {
                              assert(_.shift(), 10);
                              return assert(_.shift(), 20);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 2 hrs to fix
              src/sc/lang/bytecode_test.js on lines 200..207

              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 82.

              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

                        function() {
                          return _.push(), $.Function(function(_) {
                            return [ function() {
                              assert(_.shift(), 30);
                              return assert(_.shift(), 40);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 2 hrs to fix
              src/sc/lang/bytecode_test.js on lines 181..188

              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 82.

              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

                    $$(function() {
                      return $$(i < 3);
                    }).while($$(spy = sinon.spy(function() {
                      i = i + 1;
                    }))).value();
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 1 hr to fix
              src/sc/lang/bytecode_test.js on lines 831..835

              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 61.

              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

                      return $$(function() {
                        return $$(i < 3);
                      }).while($$(spy = sinon.spy(function() {
                        i = i + 1;
                      })));
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 1 hr to fix
              src/sc/lang/bytecode_test.js on lines 230..234

              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 61.

              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

                    expect(f.value(), 0).to.be.a("SCArray").that.deep.equals([ -10, -20, -30 ]);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 1 hr to fix
              src/sc/lang/bytecode_test.js on lines 125..125

              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 57.

              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

                    expect(f.value(), 1).to.be.a("SCArray").that.deep.equals([ -10, -20, -30 ]);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 1 hr to fix
              src/sc/lang/bytecode_test.js on lines 124..124

              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 57.

              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 3 locations. Consider refactoring.
              Open

                    expect(f.value(), 0).to.be.a("SCArray").that.deep.equals([ 1, 10, 100 ]);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 2 other locations - About 50 mins to fix
              src/sc/lang/bytecode_test.js on lines 877..877
              src/sc/lang/bytecode_test.js on lines 878..878

              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 51.

              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 3 locations. Consider refactoring.
              Open

                    expect(f.value(), 2).to.be.a("SCArray").that.deep.equals([ 3, 30, 300 ]);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 2 other locations - About 50 mins to fix
              src/sc/lang/bytecode_test.js on lines 876..876
              src/sc/lang/bytecode_test.js on lines 877..877

              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 51.

              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 3 locations. Consider refactoring.
              Open

                    expect(f.value(), 1).to.be.a("SCArray").that.deep.equals([ 2, 20, 200 ]);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 2 other locations - About 50 mins to fix
              src/sc/lang/bytecode_test.js on lines 876..876
              src/sc/lang/bytecode_test.js on lines 878..878

              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 51.

              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

                    var f = $$(function() {
                      return $$([ 10, 20, 30 ]).collect($$(function($_) {
                        return $_.neg();
                      }));
                    });
              Severity: Minor
              Found in src/sc/lang/bytecode_test.js and 1 other location - About 40 mins to fix
              src/sc/classlib/Core/Object_test.js on lines 707..711

              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 49.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),16).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),12).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 8).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),14).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 8).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),12).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),13).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),23).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),10).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),14).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 4).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),20).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),12).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),17).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),20).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 0).to.be.a("SCInteger").that.equals(sc.STATE_INIT);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 8).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 2).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 6).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(), 8).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),12).to.be.a("SCInteger").that.equals(sc.STATE_DONE);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 637..637
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 78 locations. Consider refactoring.
              Open

                    expect(r.state(),15).to.be.a("SCInteger").that.equals(sc.STATE_SUSPENDED);
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 77 other locations - About 35 mins to fix
              src/sc/classlib/Core/Thread_test.js on lines 255..255
              src/sc/classlib/Core/Thread_test.js on lines 257..257
              src/sc/classlib/Core/Thread_test.js on lines 259..259
              src/sc/classlib/Core/Thread_test.js on lines 261..261
              src/sc/classlib/Core/Thread_test.js on lines 263..263
              src/sc/classlib/Core/Thread_test.js on lines 265..265
              src/sc/classlib/Core/Thread_test.js on lines 267..267
              src/sc/classlib/Core/Thread_test.js on lines 269..269
              src/sc/classlib/Core/Thread_test.js on lines 272..272
              src/sc/lang/bytecode_test.js on lines 261..261
              src/sc/lang/bytecode_test.js on lines 263..263
              src/sc/lang/bytecode_test.js on lines 276..276
              src/sc/lang/bytecode_test.js on lines 278..278
              src/sc/lang/bytecode_test.js on lines 291..291
              src/sc/lang/bytecode_test.js on lines 293..293
              src/sc/lang/bytecode_test.js on lines 295..295
              src/sc/lang/bytecode_test.js on lines 328..328
              src/sc/lang/bytecode_test.js on lines 330..330
              src/sc/lang/bytecode_test.js on lines 334..334
              src/sc/lang/bytecode_test.js on lines 371..371
              src/sc/lang/bytecode_test.js on lines 373..373
              src/sc/lang/bytecode_test.js on lines 375..375
              src/sc/lang/bytecode_test.js on lines 377..377
              src/sc/lang/bytecode_test.js on lines 379..379
              src/sc/lang/bytecode_test.js on lines 383..383
              src/sc/lang/bytecode_test.js on lines 430..430
              src/sc/lang/bytecode_test.js on lines 432..432
              src/sc/lang/bytecode_test.js on lines 434..434
              src/sc/lang/bytecode_test.js on lines 436..436
              src/sc/lang/bytecode_test.js on lines 438..438
              src/sc/lang/bytecode_test.js on lines 442..442
              src/sc/lang/bytecode_test.js on lines 456..456
              src/sc/lang/bytecode_test.js on lines 458..458
              src/sc/lang/bytecode_test.js on lines 460..460
              src/sc/lang/bytecode_test.js on lines 462..462
              src/sc/lang/bytecode_test.js on lines 464..464
              src/sc/lang/bytecode_test.js on lines 466..466
              src/sc/lang/bytecode_test.js on lines 496..496
              src/sc/lang/bytecode_test.js on lines 498..498
              src/sc/lang/bytecode_test.js on lines 500..500
              src/sc/lang/bytecode_test.js on lines 502..502
              src/sc/lang/bytecode_test.js on lines 506..506
              src/sc/lang/bytecode_test.js on lines 508..508
              src/sc/lang/bytecode_test.js on lines 555..555
              src/sc/lang/bytecode_test.js on lines 557..557
              src/sc/lang/bytecode_test.js on lines 559..559
              src/sc/lang/bytecode_test.js on lines 565..565
              src/sc/lang/bytecode_test.js on lines 567..567
              src/sc/lang/bytecode_test.js on lines 569..569
              src/sc/lang/bytecode_test.js on lines 575..575
              src/sc/lang/bytecode_test.js on lines 622..622
              src/sc/lang/bytecode_test.js on lines 624..624
              src/sc/lang/bytecode_test.js on lines 626..626
              src/sc/lang/bytecode_test.js on lines 632..632
              src/sc/lang/bytecode_test.js on lines 635..635
              src/sc/lang/bytecode_test.js on lines 639..639
              src/sc/lang/bytecode_test.js on lines 645..645
              src/sc/lang/bytecode_test.js on lines 725..725
              src/sc/lang/bytecode_test.js on lines 727..727
              src/sc/lang/bytecode_test.js on lines 731..731
              src/sc/lang/bytecode_test.js on lines 733..733
              src/sc/lang/bytecode_test.js on lines 735..735
              src/sc/lang/bytecode_test.js on lines 739..739
              src/sc/lang/bytecode_test.js on lines 741..741
              src/sc/lang/bytecode_test.js on lines 745..745
              src/sc/lang/bytecode_test.js on lines 768..768
              src/sc/lang/bytecode_test.js on lines 770..770
              src/sc/lang/bytecode_test.js on lines 774..774
              src/sc/lang/bytecode_test.js on lines 808..808
              src/sc/lang/bytecode_test.js on lines 810..810
              src/sc/lang/bytecode_test.js on lines 814..814
              src/sc/lang/bytecode_test.js on lines 818..818
              src/sc/lang/bytecode_test.js on lines 838..838
              src/sc/lang/bytecode_test.js on lines 840..840
              src/sc/lang/bytecode_test.js on lines 891..891
              src/sc/lang/bytecode_test.js on lines 893..893
              src/sc/lang/bytecode_test.js on lines 895..895

              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 47.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(30);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(20);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 695..699
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(40);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 695..699

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(20);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 695..699
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(10);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 695..699
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(40);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 668..672
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 695..699
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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 7 locations. Consider refactoring.
              Open

                        function() {
                          return _.push(), $.Func(function() {
                            return $$(10);
                          }).value();
                        },
              Severity: Major
              Found in src/sc/lang/bytecode_test.js and 6 other locations - About 35 mins to fix
              src/sc/lang/bytecode_test.js on lines 171..175
              src/sc/lang/bytecode_test.js on lines 176..180
              src/sc/lang/bytecode_test.js on lines 195..199
              src/sc/lang/bytecode_test.js on lines 673..677
              src/sc/lang/bytecode_test.js on lines 695..699
              src/sc/lang/bytecode_test.js on lines 700..704

              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 46.

              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

              There are no issues that match your filters.

              Category
              Status