@@ -57,22 +57,22 @@ def comment_code_ratio_stats(
5757 console .print (f"\n [bold cyan]{ get_translation ('comment_code_ratio_analysis_for' )} [green]{ file_path } [/green]:[/bold cyan]" )
5858 summary = results .get ("summary_stats" , {})
5959
60- table_summary = Table (title = get_translation ( 'summary_statistics' ) )
61- table_summary .add_column (get_translation ( 'metric' ) , style = "dim" )
62- table_summary .add_column (get_translation ( 'value' ) , justify = "right" )
63- table_summary .add_row (get_translation ( 'total_lines' ) , str (summary .get ("total_lines_in_file" , 0 )))
64- table_summary .add_row (get_translation ( 'code_lines' ) , str (summary .get ("code_lines" , 0 )))
65- table_summary .add_row (get_translation ( 'comment_lines' ) , str (summary .get ("comment_only_lines" , 0 )))
66- table_summary .add_row (get_translation ( 'empty_lines' ) , str (summary .get ("empty_or_whitespace_lines" , 0 )))
67- table_summary .add_row (get_translation ( 'comment_code_ratio' ) , f"{ summary .get ('comment_to_code_plus_comment_ratio' , 0 ):.2%} " )
60+ table_summary = Table (title = "Summary Statistics" )
61+ table_summary .add_column ("Metric" , style = "dim" )
62+ table_summary .add_column ("Value" , justify = "right" )
63+ table_summary .add_row ("Total Lines" , str (summary .get ("total_lines_in_file" , 0 )))
64+ table_summary .add_row ("Code Lines" , str (summary .get ("code_lines" , 0 )))
65+ table_summary .add_row ("Comment Lines" , str (summary .get ("comment_only_lines" , 0 )))
66+ table_summary .add_row ("Empty Lines" , str (summary .get ("empty_or_whitespace_lines" , 0 )))
67+ table_summary .add_row ("Comment/Code Ratio" , f"{ summary .get ('comment_to_code_plus_comment_ratio' , 0 ):.2%} " )
6868 console .print (table_summary )
6969
7070 line_details = results .get ("line_by_line_analysis" , [])
7171 if line_details :
72- table_details = Table (title = get_translation ( 'line_by_line_classification' ) )
73- table_details .add_column (get_translation ( 'line_num' ) , style = "dim" , width = 6 )
74- table_details .add_column (get_translation ( 'line_type' ) , style = "dim" )
75- table_details .add_column (get_translation ( 'content_col' ) )
72+ table_details = Table (title = "Line-by-Line Classification" )
73+ table_details .add_column ("Line No." , style = "dim" , width = 6 )
74+ table_details .add_column ("Line Type" , style = "dim" )
75+ table_details .add_column ("Content" )
7676 for line_data in line_details :
7777 if isinstance (line_data , dict ):
7878 content = line_data .get ("line_content" , "" )
0 commit comments