-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomplex_broken_script.py
More file actions
34 lines (29 loc) · 1010 Bytes
/
complex_broken_script.py
File metadata and controls
34 lines (29 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# import os # Unused import
# import sys # Unused import
# import datetime # Unused import
def bad_style_function( x,y ):
"""TODO: Add documentation."""
z=x+y
return z
class DataProcessor:
"""TODO: Add documentation."""
def __init__(self):
"""TODO: Add documentation."""
self.cache = {}
def process_data(self, key, value):
"""TODO: Add documentation."""
try:
self.cache[key] = value
return True
except Exception:
pass
def get_info(self):
"""TODO: Add documentation."""
msg = ("This is a very long line of code that serves absolutely no p"
"urpose other than to trigger the long line detection algorit"
"hm which usually looks for lines longer than one hundred cha"
"racters or so in length to keep things readable")
return msg
def broken_string(self):
"""TODO: Add documentation."""
return "This string is not closed"