feat: integrate hospital management module with advanced UI styling and analytics components
This commit is contained in:
22
scratch/tag_counter.py
Normal file
22
scratch/tag_counter.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import sys
|
||||
|
||||
def count_tags(file_path):
|
||||
with open(file_path, 'r') as f:
|
||||
content = f.read()
|
||||
|
||||
div_open = content.count('<div')
|
||||
div_close = content.count('</div>')
|
||||
motion_div_open = content.count('<motion.div')
|
||||
motion_div_close = content.count('</motion.div>')
|
||||
paren_open = content.count('(')
|
||||
paren_close = content.count(')')
|
||||
brace_open = content.count('{')
|
||||
brace_close = content.count('}')
|
||||
|
||||
print(f"div: open={div_open}, close={div_close}, diff={div_open - div_close}")
|
||||
print(f"motion.div: open={motion_div_open}, close={motion_div_close}, diff={motion_div_open - motion_div_close}")
|
||||
print(f"parentheses: open={paren_open}, close={paren_close}, diff={paren_open - paren_close}")
|
||||
print(f"braces: open={brace_open}, close={brace_close}, diff={brace_open - brace_close}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
count_tags(sys.argv[1])
|
||||
Reference in New Issue
Block a user