Count lines of code in a block's content. Returns the total number of lines (including empty lines and comments).
(content)
| 233 | |
| 234 | |
| 235 | def count_lines_of_code(content): |
| 236 | """ |
| 237 | Count lines of code in a block's content. |
| 238 | Returns the total number of lines (including empty lines and comments). |
| 239 | """ |
| 240 | if not content: |
| 241 | return 0 |
| 242 | return len(content.split("\n")) |
| 243 | |
| 244 | |
| 245 | def analyze_blocks(blocks): |