kuasha/cosmos

View on GitHub

Showing 2,966 of 7,770 total issues

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

define("ace/theme/tomorrow_night_eighties",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-tomorrow-night-eighties";
exports.cssText = ".ace-tomorrow-night-eighties .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/dreamweaver",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-dreamweaver";
exports.cssText = ".ace-dreamweaver .ace_gutter {\
background: #e8e8e8;\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/crimson_editor",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = false;
exports.cssText = ".ace-crimson-editor .ace_gutter {\
background: #ebebeb;\
color: #333;\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/chrome",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = false;
exports.cssClass = "ace-chrome";
exports.cssText = ".ace-chrome .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/monokai",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-monokai";
exports.cssText = ".ace-monokai .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/kuroir",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = false;
exports.cssClass = "ace-kuroir";
exports.cssText = "\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/tomorrow_night_blue",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-tomorrow-night-blue";
exports.cssText = ".ace-tomorrow-night-blue .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-pastel_on_dark.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

define("ace/theme/pastel_on_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {

exports.isDark = true;
exports.cssClass = "ace-pastel-on-dark";
exports.cssText = ".ace-pastel-on-dark .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/src/theme-chaos.js on lines 1..156
samples/adminpanel/app/bower_components/ace-builds/src/theme-chrome.js on lines 1..128
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-clouds_midnight.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-cobalt.js on lines 1..113
samples/adminpanel/app/bower_components/ace-builds/src/theme-crimson_editor.js on lines 1..118
samples/adminpanel/app/bower_components/ace-builds/src/theme-dawn.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-dreamweaver.js on lines 1..141
samples/adminpanel/app/bower_components/ace-builds/src/theme-github.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-idle_fingers.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-katzenmilch.js on lines 1..119
samples/adminpanel/app/bower_components/ace-builds/src/theme-kr.js on lines 1..105
samples/adminpanel/app/bower_components/ace-builds/src/theme-kuroir.js on lines 1..59
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore.js on lines 1..96
samples/adminpanel/app/bower_components/ace-builds/src/theme-merbivore_soft.js on lines 1..97
samples/adminpanel/app/bower_components/ace-builds/src/theme-mono_industrial.js on lines 1..108
samples/adminpanel/app/bower_components/ace-builds/src/theme-monokai.js on lines 1..106
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_dark.js on lines 1..89
samples/adminpanel/app/bower_components/ace-builds/src/theme-solarized_light.js on lines 1..92
samples/adminpanel/app/bower_components/ace-builds/src/theme-terminal.js on lines 1..115
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_blue.js on lines 1..107
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_bright.js on lines 1..122
samples/adminpanel/app/bower_components/ace-builds/src/theme-tomorrow_night_eighties.js on lines 1..109
samples/adminpanel/app/bower_components/ace-builds/src/theme-twilight.js on lines 1..110
samples/adminpanel/app/bower_components/ace-builds/src/theme-vibrant_ink.js on lines 1..95
samples/adminpanel/app/bower_components/ace-builds/src/theme-xcode.js on lines 1..89

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

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

        $scope.getFiles = function () {
            CosmosService.get('/gridfs/' + $scope.fileObjectName + '/', function (data) {
                    $scope.uploaded_files = data;
                },
                function (data, status) {
samples/adminpanel/app/lib/cosmos/js/directives/directives.js on lines 495..503

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

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

    $scope.getFiles = function () {
        CosmosService.get('/gridfs/' + $scope.fileObjectName + '/', function (data) {
                $scope.uploaded_files = data;
            },
            function (data, status) {
samples/adminpanel/app/lib/cosmos/js/controllers/FileUploadCtrl.js on lines 80..88

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

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

  _.random = function(min, max) {
    if (max == null) {
      max = min;
      min = 0;
    }
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 2145..2151

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

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

jQuery.ajaxSetup({
    jsonp: "callback",
    jsonpCallback: function() {
        var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
        this[ callback ] = true;
samples/adminpanel/app/bower_components/jquery/src/ajax/jsonp.js on lines 12..19

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

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

  _.random = function(min, max) {
    if (max == null) {
      max = min;
      min = 0;
    }
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 2145..2151

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

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

jQuery.ajaxSetup({
    jsonp: "callback",
    jsonpCallback: function() {
        var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
        this[ callback ] = true;
samples/adminpanel/app/bower_components/jquery/dist/jquery.js on lines 8709..8716

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

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

define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssClass = "ace-tm";
samples/adminpanel/app/bower_components/ace-builds/demo/kitchen-sink/demo.js on lines 392..521
samples/adminpanel/app/bower_components/ace-builds/src/ext-textarea.js on lines 1..130
samples/adminpanel/app/bower_components/ace-builds/src/theme-eclipse.js on lines 1..98

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

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

define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssClass = "ace-tm";
samples/adminpanel/app/bower_components/ace-builds/demo/kitchen-sink/demo.js on lines 392..521
samples/adminpanel/app/bower_components/ace-builds/src/theme-eclipse.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-textmate.js on lines 1..130

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

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

  _.matches = function(attrs) {
    return function(obj) {
      if (obj === attrs) return true; //avoid comparing an object to itself.
      for (var key in attrs) {
        if (attrs[key] !== obj[key])
samples/adminpanel/app/bower_components/ace-builds/src-noconflict/worker-javascript.js on lines 2130..2139

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

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

define("ace/theme/eclipse",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssText = ".ace-eclipse .ace_gutter {\
samples/adminpanel/app/bower_components/ace-builds/demo/kitchen-sink/demo.js on lines 392..521
samples/adminpanel/app/bower_components/ace-builds/src/ext-textarea.js on lines 1..130
samples/adminpanel/app/bower_components/ace-builds/src/theme-textmate.js on lines 1..130

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

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

  _.matches = function(attrs) {
    return function(obj) {
      if (obj === attrs) return true; //avoid comparing an object to itself.
      for (var key in attrs) {
        if (attrs[key] !== obj[key])
samples/adminpanel/app/bower_components/ace-builds/src/worker-javascript.js on lines 2130..2139

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

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

define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
"use strict";

exports.isDark = false;
exports.cssClass = "ace-tm";
samples/adminpanel/app/bower_components/ace-builds/src/ext-textarea.js on lines 1..130
samples/adminpanel/app/bower_components/ace-builds/src/theme-eclipse.js on lines 1..98
samples/adminpanel/app/bower_components/ace-builds/src/theme-textmate.js on lines 1..130

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

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language