inasafe/inasafe

View on GitHub
safe/definitions/concepts.py

Summary

Maintainability
F
1 wk
Test Coverage

File concepts.py has 736 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# coding=utf-8
"""Concepts used in various places in InaSAFE.

Where possible please supply citations. Concepts are used in reporting display
and in other places like the wizard to ensure that the user will have adequate
Severity: Major
Found in safe/definitions/concepts.py - About 1 day to fix

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

    concepts['disabled'] = {
        'group': tr('Vulnerability'),
        'key': 'disabled',
        'description': tr(
            'A person having a physical or mental condition that limits their '
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 2 hrs to fix
    safe/definitions/concepts.py on lines 354..369
    safe/definitions/concepts.py on lines 373..389

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

    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

    concepts['infant'] = {
        'group': tr('Demographics'),
        'key': 'infant',
        'description': tr(
            'A very young child or baby aged between 0 and 4 years.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 2 hrs to fix
    safe/definitions/concepts.py on lines 373..389
    safe/definitions/concepts.py on lines 435..451

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

    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

    concepts['child'] = {
        'group': tr('Demographics'),
        'key': 'child',
        'description': tr(
            'A young person aged between 5 and 14 years, usually below the '
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 2 hrs to fix
    safe/definitions/concepts.py on lines 354..369
    safe/definitions/concepts.py on lines 435..451

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

    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

    concepts['affected_people'] = {
        'group': tr('Basic concepts'),
        'key': 'affected_people',
        'name': tr('Affected People'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 3 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 114..128
    safe/definitions/concepts.py on lines 133..145
    safe/definitions/concepts.py on lines 209..223

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

    concepts['affected'] = {
        'group': tr('Basic concepts'),
        'key': 'affected',
        'name': tr('Affected'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 3 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 133..145
    safe/definitions/concepts.py on lines 149..165
    safe/definitions/concepts.py on lines 209..223

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

    concepts['exposed_people'] = {
        'group': tr('Basic concepts'),
        'key': 'exposed_people',
        'name': tr('Exposed People'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 3 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 114..128
    safe/definitions/concepts.py on lines 149..165
    safe/definitions/concepts.py on lines 209..223

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

    concepts['displaced_people'] = {
        'group': tr('Basic concepts'),
        'key': 'displaced_people',
        'name': tr('Displaced People'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 3 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 114..128
    safe/definitions/concepts.py on lines 133..145
    safe/definitions/concepts.py on lines 149..165

    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

    concepts['productivity_rate'] = {
        'group': tr('Productivity'),
        'key': 'productivity_rate',
        'name': tr('Productivity Rate'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 717..727
    safe/definitions/concepts.py on lines 731..741

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

    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

    concepts['production_cost'] = {
        'group': tr('Productivity'),
        'key': 'production_cost',
        'name': tr('Production Cost'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 717..727
    safe/definitions/concepts.py on lines 731..741

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

    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

    concepts['displacement_rate'] = {
        'group': tr('Basic concepts'),
        'key': 'displacement_rate',
        'name': tr('Displacement rate'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 717..727
    safe/definitions/concepts.py on lines 731..741

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

    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

    concepts['production_value_rate'] = {
        'group': tr('Productivity'),
        'key': 'production_value_rate',
        'name': tr('Production Value Rate'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 731..741

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

    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

    concepts['production_value'] = {
        'group': tr('Productivity'),
        'key': 'production_value',
        'name': tr('Production Value'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 717..727

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

    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

    concepts['productivity'] = {
        'group': tr('Productivity'),
        'key': 'productivity',
        'name': tr('Productivity'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 688..699
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 717..727
    safe/definitions/concepts.py on lines 731..741

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

    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

    concepts['production_cost_rate'] = {
        'group': tr('Productivity'),
        'key': 'production_cost_rate',
        'name': tr('Production Cost Rate'),
        'description': tr(
    Severity: Major
    Found in safe/definitions/concepts.py and 6 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 228..237
    safe/definitions/concepts.py on lines 660..670
    safe/definitions/concepts.py on lines 674..684
    safe/definitions/concepts.py on lines 703..713
    safe/definitions/concepts.py on lines 717..727
    safe/definitions/concepts.py on lines 731..741

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

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

    concepts['exposure'] = {
        'group': tr('Basic concepts'),
        'key': 'exposure',
        'description': tr(
            '<b>Exposure</b> represents people, property, systems, or '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['evacuated_people'] = {
        'group': tr('Basic concepts'),
        'key': 'evacuated_people',
        'description': tr(
            'Evacuated people are people who, for different reasons and '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['female'] = {
        'group': tr('Gender'),
        'key': 'female',
        'description': tr(
            'Relating to the characteristics of women.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['child_bearing_age'] = {
        'group': tr('Vulnerability'),
        'key': 'child_bearing_age',
        'description': tr(
            'The span of ages (usually 15-49) at which individuals are capable '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['directly_affected_people'] = {
        'group': tr('Basic concepts'),
        'key': 'directly_affected_people',
        'description': tr(
            'People who have suffered injury, illness or other health effects '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['killed_people'] = {
        'group': tr('Basic concepts'),
        'key': 'killed_people',
        'description': tr(
            'People who lost their lives as a consequence of a hazardous '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['drinking_water'] = {
        'group': tr('Minimum needs'),
        'key': 'drinking_water',
        'description': tr(
            'Water pure enough for drinking.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['family_kit'] = {
        'group': tr('Minimum needs'),
        'key': 'family_kit',
        'description': tr(
            'Relief supplies such as clothing to support families.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['people'] = {
        'group': tr('Demographics'),
        'key': 'people',
        'description': tr(
            'Human beings in general or considered collectively.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['under_5'] = {
        'group': tr('Vulnerability'),
        'key': 'under_5',
        'description': tr(
            'Persons aged under 5 years'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['hazard'] = {
        'group': tr('Basic concepts'),
        'key': 'hazard',
        'description': tr(
            'A <b>hazard</b> represents a natural process or phenomenon '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['relocated_people'] = {
        'group': tr('Basic concepts'),
        'key': 'relocated_people',
        'description': tr(
            'Relocated people are people who, for different reasons or '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['lactating'] = {
        'group': tr('Vulnerability'),
        'key': 'lactating',
        'description': tr(
            'A female producing milk to feed a baby.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['male'] = {
        'group': tr('Gender'),
        'key': 'male',
        'description': tr(
            'Relating to the characteristics of men.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['analysis'] = {
        'group': tr('Basic concepts'),
        'key': 'analysis',
        'description': tr(
            '<p>An <b>analysis</b> from the point of view of using InaSAFE is '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['hygiene_pack'] = {
        'group': tr('Minimum needs'),
        'key': 'hygiene_pack',
        'description': tr(
            'Relief supplies to promote practices conducive to maintaining '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['generic_hazard'] = {
        'group': tr('Basic concepts'),
        'key': 'generic_hazard',
        'description': tr(
            'A generic hazard is any dataset where the areas within the '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['adult'] = {
        'group': tr('Demographics'),
        'key': 'adult',
        'description': tr(
            'Person aged between 15 and 64 years, usually of working age.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['rice'] = {
        'group': tr('Minimum needs'),
        'key': 'rice',
        'description': tr(
            'Grains of rice used as food.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['clean_water'] = {
        'group': tr('Minimum needs'),
        'key': 'clean_water',
        'description': tr(
            'Water suitable for washing and other purposes but not suitable '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['toilet'] = {
        'group': tr('Minimum needs'),
        'key': 'toilet',
        'description': tr(
            'A room, building or cubicle with facilities to collect and '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591

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

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

    concepts['pregnant'] = {
        'group': tr('Vulnerability'),
        'key': 'pregnant',
        'description': tr(
            'A female having a child developing in the uterus.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['youth'] = {
        'group': tr('Demographics'),
        'key': 'youth',
        'description': tr(
            'A person aged between 0 and 14 years.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['over_60'] = {
        'group': tr('Vulnerability'),
        'key': 'over_60',
        'description': tr(
            'Persons aged 60 years and over'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['indirectly_affected_people'] = {
        'group': tr('Basic concepts'),
        'key': 'indirectly_affected_people',
        'description': tr(
            'People who have suffered consequences, other than or in addition '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['injured_people'] = {
        'group': tr('Basic concepts'),
        'key': 'injured_people',
        'description': tr(
            'People suffering from a new or exacerbated physical or '
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 421..431
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

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

    concepts['elderly'] = {
        'group': tr('Demographics'),
        'key': 'elderly',
        'description': tr(
            'Persons aged 65 years and over.'),
    Severity: Major
    Found in safe/definitions/concepts.py and 26 other locations - About 1 hr to fix
    safe/definitions/concepts.py on lines 19..59
    safe/definitions/concepts.py on lines 63..77
    safe/definitions/concepts.py on lines 81..94
    safe/definitions/concepts.py on lines 98..110
    safe/definitions/concepts.py on lines 170..184
    safe/definitions/concepts.py on lines 189..204
    safe/definitions/concepts.py on lines 241..259
    safe/definitions/concepts.py on lines 264..276
    safe/definitions/concepts.py on lines 281..293
    safe/definitions/concepts.py on lines 298..309
    safe/definitions/concepts.py on lines 315..324
    safe/definitions/concepts.py on lines 328..337
    safe/definitions/concepts.py on lines 341..350
    safe/definitions/concepts.py on lines 393..403
    safe/definitions/concepts.py on lines 407..417
    safe/definitions/concepts.py on lines 456..466
    safe/definitions/concepts.py on lines 470..478
    safe/definitions/concepts.py on lines 483..493
    safe/definitions/concepts.py on lines 498..507
    safe/definitions/concepts.py on lines 512..521
    safe/definitions/concepts.py on lines 527..536
    safe/definitions/concepts.py on lines 540..549
    safe/definitions/concepts.py on lines 554..564
    safe/definitions/concepts.py on lines 568..577
    safe/definitions/concepts.py on lines 581..591
    safe/definitions/concepts.py on lines 595..605

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

    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

    concepts['thresholds'] = {
        'group': tr('Data representation'),
        'key': 'thresholds',
        'description': tr(
            'A range defined with a minimum and maximum value. In InaSAFE '
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 55 mins to fix
    safe/definitions/concepts.py on lines 625..640
    safe/definitions/concepts.py on lines 644..656

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

    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

    concepts['value_maps'] = {
        'group': tr('Data representation'),
        'key': 'value_maps',
        'description': tr(
            'A conceptual mapping between one set of unique values and '
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 55 mins to fix
    safe/definitions/concepts.py on lines 610..621
    safe/definitions/concepts.py on lines 644..656

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

    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

    concepts['rounding_methodology'] = {
        'group': tr('Data representation'),
        'key': 'rounding_methodology',
        'description': tr(
            'Note that report rows containing totals are calculated from the '
    Severity: Major
    Found in safe/definitions/concepts.py and 2 other locations - About 55 mins to fix
    safe/definitions/concepts.py on lines 610..621
    safe/definitions/concepts.py on lines 625..640

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

    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