Repository Analysis

frappe/hrms

Open Source HR and Payroll Software

10.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of frappe/hrms, a Python project with 8,208 GitHub stars. SynthScan v2.0 examined 137,257 lines of code across 1428 source files, recording 1357 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 10.1 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.1
Adjusted Score
10.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
8.2K
Stars
Python
Language
137.3K
Lines of Code
1.4K
Files
1.4K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 7MEDIUM 40LOW 1310

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1357 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1111 hits · 1049 pts
SeverityFileLineSnippetContext
LOWhrms/subscription_utils.py86def update_erpnext_workspaces(disable: bool = True):CODE
LOWhrms/setup.py533def create_default_role_profiles():CODE
LOWhrms/setup.py587def create_salary_slip_loan_fields():CODE
LOWhrms/setup.py592def add_lending_docperms_to_ess():CODE
LOWhrms/setup.py602def remove_lending_docperms_from_ess():CODE
LOWhrms/setup.py616def add_non_standard_user_types():CODE
LOWhrms/setup.py667def get_lending_docperms_for_ess():CODE
LOWhrms/setup.py707def append_docperms_to_user_type(docperms, doc):CODE
LOWhrms/setup.py721def update_select_perm_after_install():CODE
LOWhrms/setup.py761def get_salary_slip_loan_fields():CODE
LOWhrms/setup.py859def add_default_hr_permissions():CODE
LOWhrms/overrides/dashboard_overrides.py7def get_dashboard_for_employee(data):CODE
LOWhrms/overrides/dashboard_overrides.py71def get_dashboard_for_holiday_list(data):CODE
LOWhrms/overrides/dashboard_overrides.py79def get_dashboard_for_timesheet(data):CODE
LOWhrms/overrides/dashboard_overrides.py85def get_dashboard_for_project(data):CODE
LOWhrms/overrides/dashboard_overrides.py93def get_dashboard_for_bank_account(data):CODE
LOWhrms/overrides/company.py119def validate_default_accounts(doc, method=None):CODE
LOWhrms/overrides/company.py142def delete_docs_with_company_field(doc, method=None):CODE
LOWhrms/overrides/company.py153def clear_company_field_for_single_doctypes(doc):CODE
LOWhrms/overrides/company.py168def get_single_doctypes_with_company_field():CODE
LOWhrms/overrides/employee_payment_entry.py21 def get_valid_reference_doctypes(self):CODE
LOWhrms/overrides/employee_payment_entry.py76def get_payment_entry_for_employee(CODE
LOWhrms/overrides/employee_payment_entry.py166def get_grand_total_and_outstanding_amount(doc, party_amount, party_account_currency):CODE
LOWhrms/overrides/employee_payment_entry.py201def get_paid_amount_and_received_amount(CODE
LOWhrms/overrides/employee_payment_entry.py232def get_payment_reference_details(CODE
LOWhrms/overrides/employee_payment_entry.py249def get_reference_details_for_employee(CODE
LOWhrms/overrides/employee_payment_entry.py289def get_total_amount_and_exchange_rate(ref_doc, party_account_currency, company_currency):CODE
LOWhrms/overrides/employee_payment_entry.py325def set_exchange_rate_in_advance(doc: Document, method: None = None):CODE
LOWhrms/overrides/employee_master.py29def validate_onboarding_process(doc, method=None):CODE
LOWhrms/overrides/employee_master.py54def update_job_applicant_and_offer(doc, method=None):CODE
LOWhrms/overrides/employee_master.py101def update_approver_user_roles(doc, method=None):CODE
LOWhrms/patches/v16_0/create_holiday_list_assignments.py19def create_holiday_list_assignment(entity_details):CODE
LOWhrms/patches/v16_0/create_holiday_list_assignments.py27def get_employee_holiday_details():CODE
LOWhrms/patches/v16_0/create_holiday_list_assignments.py49def get_company_holiday_details():CODE
LOW…_0/call_set_total_advance_paid_on_advance_documents.py17def call_set_total_advance_paid(doctype) -> list:CODE
LOW…ches/post_install/update_performance_module_changes.py68def update_kra_evaluation_method():CODE
LOWhrms/tests/test_utils.py71def get_first_day_for_prev_month():CODE
LOWhrms/tests/test_roster.py9 def test_get_shifts_returns_shift_type_details(self):CODE
LOWhrms/tests/utils.py128 def make_holiday_list_assignment(self):CODE
LOWhrms/tests/utils.py331 def update_email_account_settings(self):CODE
LOWhrms/utils/holiday_list.py8def get_holiday_dates_between(CODE
LOWhrms/utils/holiday_list.py35def get_holiday_dates_between_range(CODE
LOWhrms/utils/holiday_list.py96def get_holiday_list_for_employee(CODE
LOWhrms/utils/holiday_list.py119def get_assigned_holiday_list(assigned_to: str, as_on=None, as_dict: bool = False) -> str:CODE
LOWhrms/utils/holiday_list.py142def get_assigned_holiday_lists_to_employee_and_company(CODE
LOWhrms/utils/holiday_list.py207def build_effective_date_ranges_for_holiday_assignments(CODE
LOWhrms/utils/holiday_list.py245def fill_employee_holiday_list_date_gaps_with_company_holiday_list(CODE
LOWhrms/www/jobs/index.py112def get_filters_txt_sort_offset(page_len=20):CODE
LOWhrms/hr/utils.py395def get_upcoming_earned_leave_from_schedule(allocation_name, today):CODE
LOWhrms/hr/utils.py403def get_annual_allocation_from_policy(allocation, e_leave_type):CODE
LOWhrms/hr/utils.py411def calculate_upcoming_earned_leave(allocation, e_leave_type, date_of_joining):CODE
LOWhrms/hr/utils.py747def calculate_annual_eligible_hra_exemption(doc):CODE
LOWhrms/hr/utils.py754def calculate_hra_exemption_for_period(doc):CODE
LOWhrms/hr/utils.py761def calculate_tax_with_marginal_relief(tax_slab, tax_amount, annual_taxable_earning):CODE
LOWhrms/hr/utils.py767def get_previous_claimed_amount(employee, payroll_period, non_pro_rata=False, component=False):CODE
LOWhrms/hr/utils.py61def update_employee_work_history(employee, details, date=None, cancel=False):CODE
LOWhrms/hr/utils.py129def delete_employee_work_history(details, employee, date):CODE
LOWhrms/hr/utils.py149def update_to_date_in_work_history(employee, cancel):CODE
LOWhrms/hr/utils.py166def get_employee_field_property(employee: str, fieldname: str):CODE
LOWhrms/hr/utils.py259def validate_duplicate_exemption_for_payroll_period(doctype, docname, payroll_period, employee):CODE
1051 more matches not shown…
Decorative Section Separators24 hits · 84 pts
SeverityFileLineSnippetContext
MEDIUMhrms/hooks.py78# ----------COMMENT
MEDIUMhrms/hooks.py88# ----------COMMENT
MEDIUMhrms/hooks.py98# ------------COMMENT
MEDIUMhrms/hooks.py107# ------------COMMENT
MEDIUMhrms/hooks.py113# ------------------COMMENT
MEDIUMhrms/hooks.py121# -------------------COMMENT
MEDIUMhrms/hooks.py129# ------------------COMMENT
MEDIUMhrms/hooks.py135# -----------COMMENT
MEDIUMhrms/hooks.py24# ------------------COMMENT
MEDIUMhrms/hooks.py65# ----------COMMENT
MEDIUMhrms/hooks.py149# ---------------COMMENT
MEDIUMhrms/hooks.py160# ---------------COMMENT
MEDIUMhrms/hooks.py222# ---------------COMMENT
MEDIUMhrms/hooks.py275# -----------------------------COMMENT
MEDIUMhrms/hooks.py326# --------------------COMMENT
MEDIUMhrms/hooks.py350# --------------------------------COMMENT
MEDIUMhrms/hooks.py357# --------------------------------COMMENT
MEDIUMhrms/payroll/doctype/salary_slip/test_salary_slip.py1227 # ------------------------------------COMMENT
MEDIUMhrms/controllers/employee_reminders.py13# -----------------COMMENT
MEDIUMhrms/controllers/employee_reminders.py15# -----------------COMMENT
MEDIUMhrms/controllers/employee_reminders.py84# ------------------COMMENT
MEDIUMhrms/controllers/employee_reminders.py86# ------------------COMMENT
MEDIUMhrms/controllers/employee_reminders.py204# --------------------------STRING
MEDIUMhrms/controllers/employee_reminders.py206# --------------------------STRING
Excessive Try-Catch Wrapping60 hits · 71 pts
SeverityFileLineSnippetContext
LOWhrms/subscription_utils.py107 except Exception:CODE
LOWhrms/subscription_utils.py119 except Exception:CODE
LOWhrms/uninstall.py11 except Exception as e:CODE
MEDIUMhrms/uninstall.py6def before_uninstall():CODE
LOWhrms/install.py13 except Exception as e:CODE
MEDIUMhrms/install.py6def after_install():CODE
LOWhrms/overrides/company.py34 except Exception as e:CODE
LOWhrms/overrides/company.py47 except Exception as e:CODE
LOWhrms/overrides/company.py61 except Exception:CODE
LOWhrms/overrides/company.py86 except Exception as e:CODE
MEDIUMhrms/overrides/company.py41def run_regional_setup(country):CODE
MEDIUMhrms/overrides/company.py54def get_error_message(error) -> str:CODE
LOWhrms/patches/v16_0/create_holiday_list_assignments.py15 except Exception as e:CODE
LOW…hes/v15_0/rename_and_update_leave_encashment_fields.py9 except Exception as e:CODE
MEDIUM…hes/v15_0/rename_and_update_leave_encashment_fields.py5def execute():CODE
LOW…_0/call_set_total_advance_paid_on_advance_documents.py35 except Exception as e:CODE
LOW…laim_date_to_payroll_date_in_employee_benefit_claim.py10 except Exception as e:CODE
MEDIUM…laim_date_to_payroll_date_in_employee_benefit_claim.py5def execute():CODE
LOW…_0/rename_enable_late_entry_early_exit_grace_period.py9 except Exception as e:CODE
MEDIUM…_0/rename_enable_late_entry_early_exit_grace_period.py4def execute():CODE
LOWhrms/patches/v15_0/migrate_loan_type_to_loan_product.py8 except Exception as e:CODE
MEDIUMhrms/patches/v15_0/migrate_loan_type_to_loan_product.py4def execute():CODE
LOW…ve_tax_slabs_from_payroll_period_to_income_tax_slab.py111 except Exception:STRING
LOW…ve_tax_slabs_from_payroll_period_to_income_tax_slab.py139 except Exception:STRING
LOW…ches/post_install/update_performance_module_changes.py63 except Exception as e:CODE
MEDIUM…ches/post_install/update_performance_module_changes.py58def rename_fields():CODE
LOW…post_install/rename_stop_to_send_birthday_reminders.py17 except Exception as e:CODE
LOWhrms/utils/__init__.py27 except Exception:CODE
LOWhrms/hr/utils.py388 except Exception as e:CODE
LOW…shift_schedule_assignment/shift_schedule_assignment.py158 except Exception as e:CODE
LOWhrms/hr/doctype/shift_type/shift_type.py163 except Exception as e:CODE
LOW…ms/hr/doctype/daily_work_summary/daily_work_summary.py98 except Exception:CODE
LOWhrms/hr/doctype/pwa_notification/pwa_notification.py49 except Exception:CODE
MEDIUMhrms/hr/doctype/pwa_notification/pwa_notification.py33def send_push_notification(self):CODE
LOW…/hr/doctype/leave_control_panel/leave_control_panel.py85 except Exception:CODE
LOW…/hr/doctype/leave_control_panel/leave_control_panel.py126 except Exception:CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py477 except Exception as e:CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py510 except Exception as e:CODE
LOWhrms/hr/doctype/interview/interview.py144 except Exception:CODE
LOWhrms/hr/doctype/interview/interview.py238 except Exception:CODE
LOW…doctype/shift_assignment_tool/shift_assignment_tool.py262 except Exception:CODE
LOW…doctype/shift_assignment_tool/shift_assignment_tool.py314 except Exception:CODE
LOW…ype/leave_policy_assignment/leave_policy_assignment.py482 except Exception:CODE
LOWhrms/hr/doctype/upload_attendance/upload_attendance.py49 except Exception as e:CODE
LOWhrms/hr/doctype/upload_attendance/upload_attendance.py223 except Exception as e:CODE
MEDIUMhrms/api/__init__.py131def are_push_notifications_enabled() -> bool:CODE
LOWhrms/api/__init__.py812 except Exception as e:CODE
LOW…eport/income_tax_computation/income_tax_computation.py173 except Exception:CODE
LOWhrms/payroll/doctype/income_tax_slab/income_tax_slab.py127 except Exception as e:CODE
LOW…ctype/employee_benefit_claim/employee_benefit_claim.py229 except Exception as e:CODE
LOW…ry_structure_assignment/salary_structure_assignment.py398 except Exception as exc:CODE
MEDIUMhrms/payroll/doctype/salary_slip/salary_slip.py1377def eval_condition_and_formula(self, struct_row, data):CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py1404 except Exception as exc:CODE
LOW…s/payroll/doctype/salary_structure/salary_structure.py293 except Exception:CODE
LOW…ructure_assignment/bulk_salary_structure_assignment.py118 except Exception:CODE
MEDIUMhrms/payroll/doctype/payroll_entry/payroll_entry.py1683def submit_salary_slips_for_employees(payroll_entry, salary_slips, publish_progrCODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py718 except Exception as e:CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py1589 except Exception:CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py1629 except Exception as e:CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py1714 except Exception as e:CODE
Unused Imports54 hits · 46 pts
SeverityFileLineSnippetContext
LOW…ng_on_a_holiday/test_employees_working_on_a_holiday.py1CODE
LOWhrms/hr/report/leave_ledger/test_leave_ledger.py2CODE
LOWhrms/hr/report/leave_ledger/test_leave_ledger.py9CODE
LOW…r/report/employee_analytics/test_employee_analytics.py2CODE
LOW…t/monthly_attendance_sheet/monthly_attendance_sheet.py16CODE
LOW…t/monthly_attendance_sheet/monthly_attendance_sheet.py16CODE
LOWhrms/hr/doctype/attendance/test_attendance.py7CODE
LOWhrms/hr/doctype/attendance/test_attendance.py7CODE
LOWhrms/hr/doctype/job_applicant/test_job_applicant.py5CODE
LOWhrms/hr/doctype/leave_period/test_leave_period.py6CODE
LOWhrms/hr/doctype/leave_period/test_leave_period.py8CODE
LOWhrms/hr/doctype/shift_type/test_shift_type.py6CODE
LOWhrms/hr/doctype/employment_type/test_employment_type.py4CODE
LOW…/doctype/attendance_request/test_attendance_request.py13CODE
LOW…octype/employee_onboarding/test_employee_onboarding.py13CODE
LOWhrms/hr/doctype/overtime_type/test_overtime_type.py8CODE
LOW…s/hr/doctype/employee_checkin/test_employee_checkin.py7CODE
LOW…s/hr/doctype/employee_checkin/test_employee_checkin.py7CODE
LOW…s/hr/doctype/employee_checkin/test_employee_checkin.py19CODE
LOW…s/hr/doctype/employee_checkin/test_employee_checkin.py29CODE
LOW…doctype/leave_allocation/test_earned_leave_schedule.py5CODE
LOWhrms/hr/doctype/interview_type/interview_type.py5CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py5CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py6CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py10CODE
LOWhrms/hr/doctype/overtime_slip/overtime_slip.py13CODE
LOW…ms/hr/doctype/appraisal_template/appraisal_template.py5CODE
LOW…ms/hr/doctype/appraisal_template/appraisal_template.py6CODE
LOW…ms/hr/doctype/appraisal_template/appraisal_template.py8CODE
LOW…final_statement/full_and_final_statement_loan_utils.py7CODE
LOW…final_statement/full_and_final_statement_loan_utils.py12CODE
LOW…s/hr/doctype/leave_adjustment/test_leave_adjustment.py7CODE
LOWhrms/hr/doctype/leave_encashment/leave_encashment.py7CODE
LOWhrms/hr/doctype/leave_application/leave_application.py27CODE
LOW…hr/doctype/leave_application/test_leave_application.py38CODE
LOWhrms/hr/doctype/goal/goal.py4CODE
LOWhrms/hr/doctype/goal/test_goal.py9CODE
LOW…hr/doctype/upload_attendance/test_upload_attendance.py7CODE
LOWhrms/api/oauth.py6CODE
LOW…ort/accrued_earnings_report/accrued_earnings_report.py7CODE
LOW…ort/employee_ctc_break_up/test_employee_ctc_breakup.py6CODE
LOW…declaration/test_employee_tax_exemption_declaration.py7CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py11CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py11CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py11CODE
LOW…/payroll/doctype/salary_slip/salary_slip_loan_utils.py10CODE
LOW…roll/doctype/salary_structure/test_salary_structure.py5CODE
LOW…roll/doctype/salary_structure/test_salary_structure.py8CODE
LOW…ll/doctype/additional_salary/test_additional_salary.py7CODE
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py4CODE
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py9CODE
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py10CODE
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py30CODE
LOWhrms/payroll/doctype/payroll_period/payroll_period.py8CODE
Deep Nesting52 hits · 42 pts
SeverityFileLineSnippetContext
LOWhrms/setup.py514CODE
LOWhrms/overrides/employee_payment_entry.py166CODE
LOWhrms/overrides/employee_payment_entry.py201CODE
LOWhrms/overrides/employee_payment_entry.py249CODE
LOWhrms/overrides/employee_payment_entry.py289CODE
LOWhrms/overrides/employee_payment_entry.py21CODE
LOWhrms/overrides/employee_payment_entry.py31CODE
LOWhrms/overrides/employee_master.py13CODE
LOWhrms/utils/holiday_list.py245CODE
LOWhrms/www/jobs/index.py112CODE
LOWhrms/hr/utils.py101CODE
LOWhrms/hr/utils.py190CODE
LOW…t/monthly_attendance_sheet/monthly_attendance_sheet.py273CODE
LOW…t/monthly_attendance_sheet/monthly_attendance_sheet.py670CODE
LOW…t/monthly_attendance_sheet/monthly_attendance_sheet.py758CODE
LOWhrms/hr/report/shift_attendance/shift_attendance.py245CODE
LOWhrms/hr/doctype/attendance/attendance.py407CODE
LOWhrms/hr/doctype/expense_claim/expense_claim.py122CODE
LOWhrms/hr/doctype/expense_claim/expense_claim.py405CODE
LOW…ms/hr/doctype/daily_work_summary/daily_work_summary.py59CODE
LOW…ms/hr/doctype/attendance_request/attendance_request.py312CODE
LOW…/hr/doctype/employee_onboarding/employee_onboarding.py69CODE
LOWhrms/hr/doctype/employee_checkin/employee_checkin.py399CODE
LOWhrms/hr/doctype/shift_assignment/shift_assignment.py487CODE
LOW…final_statement/full_and_final_statement_loan_utils.py16CODE
LOWhrms/hr/doctype/leave_application/leave_application.py1262CODE
LOWhrms/hr/doctype/leave_application/leave_application.py185CODE
LOWhrms/hr/doctype/leave_application/leave_application.py300CODE
LOWhrms/hr/doctype/vehicle_log/vehicle_log.py49CODE
LOWhrms/hr/doctype/employee_advance/employee_advance.py137CODE
LOWhrms/hr/doctype/upload_attendance/upload_attendance.py78CODE
LOWhrms/api/__init__.py256CODE
LOWhrms/regional/india/utils.py11CODE
LOWhrms/regional/india/utils.py144CODE
LOW…yroll/doctype/salary_withholding/salary_withholding.py216CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py361CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py837CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py1177CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py1624CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py2051CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py2142CODE
LOWhrms/payroll/doctype/salary_slip/test_salary_slip.py2277CODE
LOWhrms/payroll/doctype/salary_slip/test_salary_slip.py820CODE
LOWhrms/payroll/doctype/salary_slip/test_salary_slip.py923CODE
LOWhrms/payroll/doctype/arrear/arrear.py251CODE
LOW…s/payroll/doctype/salary_structure/salary_structure.py90CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py1462CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py1683CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py440CODE
LOWhrms/payroll/doctype/payroll_entry/payroll_entry.py956CODE
LOWhrms/payroll/doctype/gratuity/gratuity.py234CODE
LOW.github/helper/documentation.py11CODE
Cross-Language Confusion7 hits · 30 pts
SeverityFileLineSnippetContext
HIGHhrms/hr/utils.py213 # hack! if name is null, it could cause problems with !=STRING
HIGHhrms/hr/utils.py213 # hack! if name is null, it could cause problems with !=STRING
HIGHhrms/hr/doctype/leave_application/leave_application.py487 # hack! if name is null, it could cause problems with !=COMMENT
HIGHhrms/hr/doctype/leave_application/leave_application.py487 # hack! if name is null, it could cause problems with !=COMMENT
HIGHhrms/regional/india/setup.py240 "depends_on": "eval:doc.tax_relief_limit > 0 && doc.currency == 'INR'",CODE
HIGHhrms/payroll/doctype/payroll_period/payroll_period.py49 # hack! if name is null, it could cause problems with !=STRING
HIGHhrms/payroll/doctype/payroll_period/payroll_period.py49 # hack! if name is null, it could cause problems with !=STRING
AI Structural Patterns17 hits · 16 pts
SeverityFileLineSnippetContext
LOWhrms/utils/holiday_list.py204CODE
LOW…oard_chart_source/employees_by_age/employees_by_age.py15CODE
LOW…hiring_vs_attrition_count/hiring_vs_attrition_count.py15CODE
LOW…hiring_vs_attrition_count/hiring_vs_attrition_count.py78CODE
LOWhrms/hr/report/employee_exits/employee_exits.py125CODE
LOWhrms/hr/report/leave_ledger/leave_ledger.py166CODE
LOW…/report/project_profitability/project_profitability.py19CODE
LOWhrms/hr/report/shift_attendance/shift_attendance.py242CODE
LOWhrms/hr/report/shift_attendance/shift_attendance.py297CODE
LOW…e/employee_attendance_tool/employee_attendance_tool.py63CODE
LOW…e/employee_attendance_tool/employee_attendance_tool.py170CODE
LOWhrms/hr/doctype/leave_allocation/test_earned_leaves.py1198CODE
LOWhrms/payroll/doctype/salary_slip/test_salary_slip.py2539CODE
LOW…roll/doctype/salary_structure/test_salary_structure.py135CODE
LOW…roll/doctype/salary_structure/test_salary_structure.py227CODE
LOW…s/payroll/doctype/salary_structure/salary_structure.py393CODE
LOW…s/payroll/doctype/salary_structure/salary_structure.py206CODE
Redundant / Tautological Comments10 hits · 16 pts
SeverityFileLineSnippetContext
LOW…/doctype/attendance_request/test_attendance_request.py147 include_holidays=1, # Set include_holidays to TrueCODE
LOW…/doctype/attendance_request/test_attendance_request.py150 # Check if the attendance record is created on the holidayCOMMENT
LOW…ms/hr/doctype/attendance_request/attendance_request.py224 # Check if attendance_date is a holidayCOMMENT
LOW…ms/hr/doctype/attendance_request/attendance_request.py233 # Check if employee is on leaveCOMMENT
LOWhrms/payroll/doctype/salary_slip/salary_slip.py2492 # Check if Employee Benefit Application existsCOMMENT
LOWhrms/payroll/doctype/salary_slip/test_salary_slip.py1843 # Check if zero value component is included in salary slip based on component settingsCOMMENT
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py1050 # Check if employee benefits have been fetched to accrued benefits tableCOMMENT
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py1065 # Check if employee benefit ledger entries have been created for each componentCOMMENT
LOW…ms/payroll/doctype/payroll_entry/test_payroll_entry.py1079 # Check if Employee Benefit Ledger exists for Accrued Earnings ComponentCOMMENT
LOW.github/workflows/run-individual-tests.yml35 # Loop through array and create JSON objectsCOMMENT
Self-Referential Comments3 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…/doctype/attendance_request/test_attendance_request.py138 # Create a holiday on today's dateCOMMENT
MEDIUM…/doctype/attendance_request/test_attendance_request.py142 # Create an Attendance Request with include_holidays checkedCOMMENT
MEDIUMhrms/controllers/tests/test_employee_reminders.py24 # Create a test holiday listCOMMENT
Modern Structural Boilerplate10 hits · 9 pts
SeverityFileLineSnippetContext
LOWhrms/hr/doctype/leave_block_list/leave_block_list.py42 def set_weekly_off_dates(self, start_date: str, end_date: str, days: list, reason: str) -> None:CODE
LOWhrms/hr/doctype/goal/goal.py229def update_progress(progress: float, goal: str) -> None:CODE
LOWhrms/hr/doctype/goal/goal.py239def update_status(status: str, goals: str | list) -> None:CODE
LOW…ry_structure_assignment/salary_structure_assignment.py186 def set_payroll_cost_centers(self) -> None:CODE
LOW…ee_benefit_application/employee_benefit_application.py88 def set_benefit_components_and_currency(self) -> None:CODE
LOW…yroll/doctype/salary_withholding/salary_withholding.py91 def set_withholding_cycles_and_to_date(self) -> None:CODE
LOW…yroll/doctype/salary_withholding/salary_withholding.py192def _update_payment_status_in_payroll(withholdings: list[dict], cancel: bool = False) -> None:CODE
LOW…yroll/doctype/salary_withholding/salary_withholding.py216def _update_salary_withholdings(withholdings: list[dict], cancel: bool = False) -> None:CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py1258 def _set_evaluated_components(self) -> None:CODE
LOWhrms/payroll/doctype/salary_slip/salary_slip.py2328 def set_totals(self) -> None:CODE
Over-Commented Block9 hits · 8 pts
SeverityFileLineSnippetContext
LOWhrms/hooks.py61# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}COMMENT
LOWhrms/hooks.py121# -------------------COMMENT
LOWhrms/hooks.py321# auto_cancel_exempted_doctypes = ["Auto Repeat"]COMMENT
LOWhrms/hooks.py341# "doctype": "{doctype_3}",COMMENT
LOW…ployee_feedback_criteria/employee_feedback_criteria.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributorsCOMMENT
LOW…shift_schedule_assignment/shift_schedule_assignment.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributorsCOMMENT
LOWhrms/hr/doctype/overtime_type/overtime_type.js1// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributorsCOMMENT
LOWhrms/hr/doctype/pwa_notification/pwa_notification.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributorsCOMMENT
LOW…ype/job_offer_term_template/job_offer_term_template.js1// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributorsCOMMENT