masschallenge/django-accelerator

View on GitHub

Showing 127 of 161 total issues

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

Severity: Major
Found in accelerator/models/reference.py and 4 other locations - About 1 hr to fix
accelerator/models/application_question.py on lines 0..12
accelerator/models/application_type.py on lines 0..12
accelerator/models/partner_label.py on lines 0..12
accelerator/models/startup_label.py on lines 0..12

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

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

Severity: Major
Found in accelerator/models/application_type.py and 4 other locations - About 1 hr to fix
accelerator/models/application_question.py on lines 0..12
accelerator/models/partner_label.py on lines 0..12
accelerator/models/reference.py on lines 0..12
accelerator/models/startup_label.py on lines 0..12

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

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

    startup = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label, "Startup"),
        blank=True,
        null=True,
        related_name='startup_officehours',
Severity: Major
Found in accelerator_abstract/models/base_mentor_program_office_hour.py and 5 other locations - About 55 mins to fix
accelerator_abstract/models/base_clearance.py on lines 96..101
accelerator_abstract/models/base_program_cycle.py on lines 30..36
accelerator_abstract/models/base_program_override.py on lines 12..18
accelerator_abstract/models/base_program_role.py on lines 27..32
accelerator_abstract/models/base_startup.py on lines 52..54

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

    privacy_profile = models.CharField(
        max_length=64,
        verbose_name="Privacy - Profile",
        choices=PRIVACY_CHOICES,
        blank=True,
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 3 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 270..275
accelerator_abstract/models/base_core_profile.py on lines 276..281
accelerator_abstract/models/base_core_profile.py on lines 282..287

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

    home_community = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label, 'Community'),
        verbose_name='home community', blank=True, null=True,
        on_delete=models.SET_NULL)
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 4 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 288..294
accelerator_abstract/models/base_user_role_menu.py on lines 13..19
accelerator_abstract/models/base_user_role_menu.py on lines 20..25
accelerator_abstract/models/base_user_role_menu.py on lines 26..31

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

    privacy_email = models.CharField(
        max_length=64,
        verbose_name="Privacy - Email",
        choices=PRIVACY_CHOICES,
        blank=True,
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 3 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 276..281
accelerator_abstract/models/base_core_profile.py on lines 282..287
accelerator_abstract/models/base_core_profile.py on lines 406..411

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

    privacy_web = models.CharField(
        max_length=64,
        verbose_name="Privacy - Web",
        choices=PRIVACY_CHOICES,
        blank=True,
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 3 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 270..275
accelerator_abstract/models/base_core_profile.py on lines 276..281
accelerator_abstract/models/base_core_profile.py on lines 406..411

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

    privacy_phone = models.CharField(
        max_length=64,
        verbose_name="Privacy - Phone",
        choices=PRIVACY_CHOICES,
        blank=True,
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 3 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 270..275
accelerator_abstract/models/base_core_profile.py on lines 282..287
accelerator_abstract/models/base_core_profile.py on lines 406..411

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

    home_program_family = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               "ProgramFamily"),
        verbose_name="Home Program Family",
        blank=True,
Severity: Major
Found in accelerator_abstract/models/base_core_profile.py and 4 other locations - About 55 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 175..178
accelerator_abstract/models/base_user_role_menu.py on lines 13..19
accelerator_abstract/models/base_user_role_menu.py on lines 20..25
accelerator_abstract/models/base_user_role_menu.py on lines 26..31

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

Severity: Major
Found in accelerator/models/startup_override_grant.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/judging_form.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/startup_mentor_tracking_record.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/newsletter_receipt.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/site_program_authorization.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/program_startup_attribute.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/partner.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/expert_interest.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/program_role_grant.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/named_group.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

Severity: Major
Found in accelerator/models/judge_panel_assignment.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language