-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathcode.py
More file actions
48 lines (35 loc) · 1017 Bytes
/
Copy pathcode.py
File metadata and controls
48 lines (35 loc) · 1017 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import random
import pdb
import sys
class BaseNumberGenerator:
def __init__(self):
self.limits = (1,10)
def get_number(self, min_max):
raise NotImplemented
class RandomNumberGenerator:
def limits(self):
return self.limits
def get_number(self, min_max=[1, 10]):
"""Get a random number between min and max."""
assert all([isinstance(i, int) for i in min_max])
return random.randint(*min_max)
def main(options: dict = {}) -> str:
pdb.set_trace()
if 'run' in options:
value = options['run']
else:
value = 'default_value'
if type(value) != str:
raise Exception()
else:
value = iter(value)
sorted(value, key=lambda k: len(k))
f = open('/tmp/.deepsource.toml', 'r')
f.write("config file.")
f.close()
if __name__ == '__main__':
args = ['--disable', 'all']
for i in range(len(args)):
has_truthy = True if args[i] else False
if has_truthy:
break