code
stringlengths
20
13.2k
label
stringlengths
21
6.26k
1 import datetime 2 na_rm: str = i.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(log_breaks): 6 7 @_x 8 def get_something(self): 9 pass 10 msg = timedelta_breaks() 11 import datetime 12 incomparables: str = skip.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 incomparables: str = skip.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(data): 6 7 @limits 8 def get_something(self): 9 pass 10 log2_trans = MSG() 11 import datetime 12 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 attr: str = minor_breaks.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(doc): 6 7 @pd 8 def get_something(self): 9 pass 10 msg = log_trans() 11 import datetime 12 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(d): 6 7 @i 8 def get_something(self): 9 pass 10 y = reduce() 11 import datetime 12 obj: str = d.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 obj: str = d.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(self): 6 7 @_format 8 def get_something(self): 9 pass 10 timedelta_format = i() 11 import datetime 12 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 probability_trans: str = obj.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(value): 6 7 @chain 8 def get_something(self): 9 pass 10 start = OrderedDict() 11 import datetime 12 v2: str = args.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 v2: str = args.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(probit_trans): 6 7 @var 8 def get_something(self): 9 pass 10 timedelta_breaks = log2_trans() 11 import datetime 12 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(v2): 6 7 @d 8 def get_something(self): 9 pass 10 num2date = MethodType() 11 import datetime 12 na_rm: str = doc.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 na_rm: str = doc.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(__all__): 6 7 @c 8 def get_something(self): 9 pass 10 myint = SECONDS() 11 import datetime 12 v1: str = log_format.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 v1: str = log_format.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(mpl_format): 6 7 @span 8 def get_something(self): 9 pass 10 start = defaultdict() 11 import datetime 12 v2: str = c.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 v2: str = c.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(msg): 6 7 @SECONDS 8 def get_something(self): 9 pass 10 breaks = _trans() 11 import datetime 12 func: str = v1.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 func: str = v1.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(date_breaks): 6 7 @_x 8 def get_something(self): 9 pass 10 skip = _trans() 11 import datetime 12 v: str = contents.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 v: str = contents.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(log_trans): 6 7 @sys 8 def get_something(self): 9 pass 10 extended_breaks = pd() 11 import datetime 12 c: str = transform.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
1 import datetime 2 c: str = transform.date.today().strftime('%y-%m-%d') 3 from abc import ABC, abstractmethod 4 5 class BaseClass(reduce): 6 7 @msg 8 def get_something(self): 9 pass 10 nearest_int = kwargs() 11 import datetime 12 reduce: str = BaseClass.date.today().strftime('%y-%m-%d')
12 - error: Abstract-class-initiated
def foo(): return True print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 def foo(): 2 return True 3 print('Inside a function.')
3 - warning: unreachable-code
1 import datetime 2 3 current_date: str = datetime.date.today().strftime("%y-%m-%d") 4 def foo(): 5 return True 6 print('Inside a function.') 7 import datetime 8 na_rm: str = i.date.today().strftime('%y-%m-%d')
6 - warning: unreachable-code
1 import datetime 2 na_rm: str = i.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 incomparables: str = skip.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 incomparables: str = skip.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 attr: str = minor_breaks.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 obj: str = d.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 obj: str = d.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 probability_trans: str = obj.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 v2: str = args.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 v2: str = args.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 na_rm: str = doc.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 na_rm: str = doc.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 v1: str = log_format.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 v1: str = log_format.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 v2: str = c.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 v2: str = c.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 func: str = v1.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 func: str = v1.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 v: str = contents.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 v: str = contents.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 c: str = transform.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
1 import datetime 2 c: str = transform.date.today().strftime('%y-%m-%d') 3 def foo(): 4 return True 5 print('Inside a function.') 6 import datetime 7 reduce: str = BaseClass.date.today().strftime('%y-%m-%d')
5 - warning: unreachable-code
def foo(): # McCabe rating is 11 here (by default 10) myint = 2 if myint == 5: return myint elif myint == 6: return myint elif myint == 7: return myint elif myint == 8: return myint elif myint == 9: return myint elif myint == 10: if myint == 8: while True: return True elif myint == 8: with myint: return 8 else: if myint == 2: return myint return myint return myint
1 - warning: function too complex
1 def foo(): 2 accuracy = 2 3 if accuracy == 5: 4 return accuracy 5 elif accuracy == 6: 6 return accuracy 7 elif accuracy == 7: 8 return accuracy 9 elif accuracy == 8: 10 return accuracy 11 elif accuracy == 9: 12 return accuracy 13 elif accuracy == 10: 14 if accuracy == 8: 15 while True: 16 return True 17 elif accuracy == 8: 18 with accuracy: 19 return 8 20 else: 21 if accuracy == 2: 22 return accuracy 23 return accuracy 24 return accuracy
1 - warning: function too complex
1 def foo(): 2 c = 2 3 if c == 5: 4 return c 5 elif c == 6: 6 return c 7 elif c == 7: 8 return c 9 elif c == 8: 10 return c 11 elif c == 9: 12 return c 13 elif c == 10: 14 if c == 8: 15 while True: 16 return True 17 elif c == 8: 18 with c: 19 return 8 20 else: 21 if c == 2: 22 return c 23 return c 24 return c
1 - warning: function too complex
1 def foo(): 2 val = 2 3 if val == 5: 4 return val 5 elif val == 6: 6 return val 7 elif val == 7: 8 return val 9 elif val == 8: 10 return val 11 elif val == 9: 12 return val 13 elif val == 10: 14 if val == 8: 15 while True: 16 return True 17 elif val == 8: 18 with val: 19 return 8 20 else: 21 if val == 2: 22 return val 23 return val 24 return val
1 - warning: function too complex
1 def foo(): 2 fh = 2 3 if fh == 5: 4 return fh 5 elif fh == 6: 6 return fh 7 elif fh == 7: 8 return fh 9 elif fh == 8: 10 return fh 11 elif fh == 9: 12 return fh 13 elif fh == 10: 14 if fh == 8: 15 while True: 16 return True 17 elif fh == 8: 18 with fh: 19 return 8 20 else: 21 if fh == 2: 22 return fh 23 return fh 24 return fh
1 - warning: function too complex
1 def foo(): 2 log_trans = 2 3 if log_trans == 5: 4 return log_trans 5 elif log_trans == 6: 6 return log_trans 7 elif log_trans == 7: 8 return log_trans 9 elif log_trans == 8: 10 return log_trans 11 elif log_trans == 9: 12 return log_trans 13 elif log_trans == 10: 14 if log_trans == 8: 15 while True: 16 return True 17 elif log_trans == 8: 18 with log_trans: 19 return 8 20 else: 21 if log_trans == 2: 22 return log_trans 23 return log_trans 24 return log_trans
1 - warning: function too complex
1 def foo(): 2 zero_range = 2 3 if zero_range == 5: 4 return zero_range 5 elif zero_range == 6: 6 return zero_range 7 elif zero_range == 7: 8 return zero_range 9 elif zero_range == 8: 10 return zero_range 11 elif zero_range == 9: 12 return zero_range 13 elif zero_range == 10: 14 if zero_range == 8: 15 while True: 16 return True 17 elif zero_range == 8: 18 with zero_range: 19 return 8 20 else: 21 if zero_range == 2: 22 return zero_range 23 return zero_range 24 return zero_range
1 - warning: function too complex
1 def foo(): 2 np = 2 3 if np == 5: 4 return np 5 elif np == 6: 6 return np 7 elif np == 7: 8 return np 9 elif np == 8: 10 return np 11 elif np == 9: 12 return np 13 elif np == 10: 14 if np == 8: 15 while True: 16 return True 17 elif np == 8: 18 with np: 19 return 8 20 else: 21 if np == 2: 22 return np 23 return np 24 return np
1 - warning: function too complex
1 def foo(): 2 user_input = 2 3 if user_input == 5: 4 return user_input 5 elif user_input == 6: 6 return user_input 7 elif user_input == 7: 8 return user_input 9 elif user_input == 8: 10 return user_input 11 elif user_input == 9: 12 return user_input 13 elif user_input == 10: 14 if user_input == 8: 15 while True: 16 return True 17 elif user_input == 8: 18 with user_input: 19 return 8 20 else: 21 if user_input == 2: 22 return user_input 23 return user_input 24 return user_input
1 - warning: function too complex
1 def foo(): 2 b = 2 3 if b == 5: 4 return b 5 elif b == 6: 6 return b 7 elif b == 7: 8 return b 9 elif b == 8: 10 return b 11 elif b == 9: 12 return b 13 elif b == 10: 14 if b == 8: 15 while True: 16 return True 17 elif b == 8: 18 with b: 19 return 8 20 else: 21 if b == 2: 22 return b 23 return b 24 return b
1 - warning: function too complex
1 def foo(): 2 doc = 2 3 if doc == 5: 4 return doc 5 elif doc == 6: 6 return doc 7 elif doc == 7: 8 return doc 9 elif doc == 8: 10 return doc 11 elif doc == 9: 12 return doc 13 elif doc == 10: 14 if doc == 8: 15 while True: 16 return True 17 elif doc == 8: 18 with doc: 19 return 8 20 else: 21 if doc == 2: 22 return doc 23 return doc 24 return doc
1 - warning: function too complex
1 def foo(): 2 func = 2 3 if func == 5: 4 return func 5 elif func == 6: 6 return func 7 elif func == 7: 8 return func 9 elif func == 8: 10 return func 11 elif func == 9: 12 return func 13 elif func == 10: 14 if func == 8: 15 while True: 16 return True 17 elif func == 8: 18 with func: 19 return 8 20 else: 21 if func == 2: 22 return func 23 return func 24 return func
1 - warning: function too complex
1 def foo(): 2 ABC = 2 3 if ABC == 5: 4 return ABC 5 elif ABC == 6: 6 return ABC 7 elif ABC == 7: 8 return ABC 9 elif ABC == 8: 10 return ABC 11 elif ABC == 9: 12 return ABC 13 elif ABC == 10: 14 if ABC == 8: 15 while True: 16 return True 17 elif ABC == 8: 18 with ABC: 19 return 8 20 else: 21 if ABC == 2: 22 return ABC 23 return ABC 24 return ABC
1 - warning: function too complex
1 def foo(): 2 trans_minor_breaks = 2 3 if trans_minor_breaks == 5: 4 return trans_minor_breaks 5 elif trans_minor_breaks == 6: 6 return trans_minor_breaks 7 elif trans_minor_breaks == 7: 8 return trans_minor_breaks 9 elif trans_minor_breaks == 8: 10 return trans_minor_breaks 11 elif trans_minor_breaks == 9: 12 return trans_minor_breaks 13 elif trans_minor_breaks == 10: 14 if trans_minor_breaks == 8: 15 while True: 16 return True 17 elif trans_minor_breaks == 8: 18 with trans_minor_breaks: 19 return 8 20 else: 21 if trans_minor_breaks == 2: 22 return trans_minor_breaks 23 return trans_minor_breaks 24 return trans_minor_breaks
1 - warning: function too complex
1 def foo(): 2 ABC = 2 3 if ABC == 5: 4 return ABC 5 elif ABC == 6: 6 return ABC 7 elif ABC == 7: 8 return ABC 9 elif ABC == 8: 10 return ABC 11 elif ABC == 9: 12 return ABC 13 elif ABC == 10: 14 if ABC == 8: 15 while True: 16 return True 17 elif ABC == 8: 18 with ABC: 19 return 8 20 else: 21 if ABC == 2: 22 return ABC 23 return ABC 24 return ABC
1 - warning: function too complex
1 def foo(): 2 attr = 2 3 if attr == 5: 4 return attr 5 elif attr == 6: 6 return attr 7 elif attr == 7: 8 return attr 9 elif attr == 8: 10 return attr 11 elif attr == 9: 12 return attr 13 elif attr == 10: 14 if attr == 8: 15 while True: 16 return True 17 elif attr == 8: 18 with attr: 19 return 8 20 else: 21 if attr == 2: 22 return attr 23 return attr 24 return attr
1 - warning: function too complex
1 def foo(): 2 v = 2 3 if v == 5: 4 return v 5 elif v == 6: 6 return v 7 elif v == 7: 8 return v 9 elif v == 8: 10 return v 11 elif v == 9: 12 return v 13 elif v == 10: 14 if v == 8: 15 while True: 16 return True 17 elif v == 8: 18 with v: 19 return 8 20 else: 21 if v == 2: 22 return v 23 return v 24 return v
1 - warning: function too complex
1 def foo(): 2 _x = 2 3 if _x == 5: 4 return _x 5 elif _x == 6: 6 return _x 7 elif _x == 7: 8 return _x 9 elif _x == 8: 10 return _x 11 elif _x == 9: 12 return _x 13 elif _x == 10: 14 if _x == 8: 15 while True: 16 return True 17 elif _x == 8: 18 with _x: 19 return 8 20 else: 21 if _x == 2: 22 return _x 23 return _x 24 return _x
1 - warning: function too complex
1 def foo(): 2 timedelta_breaks = 2 3 if timedelta_breaks == 5: 4 return timedelta_breaks 5 elif timedelta_breaks == 6: 6 return timedelta_breaks 7 elif timedelta_breaks == 7: 8 return timedelta_breaks 9 elif timedelta_breaks == 8: 10 return timedelta_breaks 11 elif timedelta_breaks == 9: 12 return timedelta_breaks 13 elif timedelta_breaks == 10: 14 if timedelta_breaks == 8: 15 while True: 16 return True 17 elif timedelta_breaks == 8: 18 with timedelta_breaks: 19 return 8 20 else: 21 if timedelta_breaks == 2: 22 return timedelta_breaks 23 return timedelta_breaks 24 return timedelta_breaks
1 - warning: function too complex
1 def foo(): 2 log2_trans = 2 3 if log2_trans == 5: 4 return log2_trans 5 elif log2_trans == 6: 6 return log2_trans 7 elif log2_trans == 7: 8 return log2_trans 9 elif log2_trans == 8: 10 return log2_trans 11 elif log2_trans == 9: 12 return log2_trans 13 elif log2_trans == 10: 14 if log2_trans == 8: 15 while True: 16 return True 17 elif log2_trans == 8: 18 with log2_trans: 19 return 8 20 else: 21 if log2_trans == 2: 22 return log2_trans 23 return log2_trans 24 return log2_trans
1 - warning: function too complex
1 def foo(): 2 bar = 2 3 if bar == 5: 4 return bar 5 elif bar == 6: 6 return bar 7 elif bar == 7: 8 return bar 9 elif bar == 8: 10 return bar 11 elif bar == 9: 12 return bar 13 elif bar == 10: 14 if bar == 8: 15 while True: 16 return True 17 elif bar == 8: 18 with bar: 19 return 8 20 else: 21 if bar == 2: 22 return bar 23 return bar 24 return bar
1 - warning: function too complex
1 def foo(): 2 log10_trans = 2 3 if log10_trans == 5: 4 return log10_trans 5 elif log10_trans == 6: 6 return log10_trans 7 elif log10_trans == 7: 8 return log10_trans 9 elif log10_trans == 8: 10 return log10_trans 11 elif log10_trans == 9: 12 return log10_trans 13 elif log10_trans == 10: 14 if log10_trans == 8: 15 while True: 16 return True 17 elif log10_trans == 8: 18 with log10_trans: 19 return 8 20 else: 21 if log10_trans == 2: 22 return log10_trans 23 return log10_trans 24 return log10_trans
1 - warning: function too complex
1 def foo(): 2 breaks = 2 3 if breaks == 5: 4 return breaks 5 elif breaks == 6: 6 return breaks 7 elif breaks == 7: 8 return breaks 9 elif breaks == 8: 10 return breaks 11 elif breaks == 9: 12 return breaks 13 elif breaks == 10: 14 if breaks == 8: 15 while True: 16 return True 17 elif breaks == 8: 18 with breaks: 19 return 8 20 else: 21 if breaks == 2: 22 return breaks 23 return breaks 24 return breaks
1 - warning: function too complex
1 def foo(): 2 Foo = 2 3 if Foo == 5: 4 return Foo 5 elif Foo == 6: 6 return Foo 7 elif Foo == 7: 8 return Foo 9 elif Foo == 8: 10 return Foo 11 elif Foo == 9: 12 return Foo 13 elif Foo == 10: 14 if Foo == 8: 15 while True: 16 return True 17 elif Foo == 8: 18 with Foo: 19 return 8 20 else: 21 if Foo == 2: 22 return Foo 23 return Foo 24 return Foo
1 - warning: function too complex
1 def foo(): 2 v = 2 3 if v == 5: 4 return v 5 elif v == 6: 6 return v 7 elif v == 7: 8 return v 9 elif v == 8: 10 return v 11 elif v == 9: 12 return v 13 elif v == 10: 14 if v == 8: 15 while True: 16 return True 17 elif v == 8: 18 with v: 19 return 8 20 else: 21 if v == 2: 22 return v 23 return v 24 return v
1 - warning: function too complex
1 def foo(): 2 obj = 2 3 if obj == 5: 4 return obj 5 elif obj == 6: 6 return obj 7 elif obj == 7: 8 return obj 9 elif obj == 8: 10 return obj 11 elif obj == 9: 12 return obj 13 elif obj == 10: 14 if obj == 8: 15 while True: 16 return True 17 elif obj == 8: 18 with obj: 19 return 8 20 else: 21 if obj == 2: 22 return obj 23 return obj 24 return obj
1 - warning: function too complex
1 def foo(): 2 base = 2 3 if base == 5: 4 return base 5 elif base == 6: 6 return base 7 elif base == 7: 8 return base 9 elif base == 8: 10 return base 11 elif base == 9: 12 return base 13 elif base == 10: 14 if base == 8: 15 while True: 16 return True 17 elif base == 8: 18 with base: 19 return 8 20 else: 21 if base == 2: 22 return base 23 return base 24 return base
1 - warning: function too complex
1 def foo(): 2 sys = 2 3 if sys == 5: 4 return sys 5 elif sys == 6: 6 return sys 7 elif sys == 7: 8 return sys 9 elif sys == 8: 10 return sys 11 elif sys == 9: 12 return sys 13 elif sys == 10: 14 if sys == 8: 15 while True: 16 return True 17 elif sys == 8: 18 with sys: 19 return 8 20 else: 21 if sys == 2: 22 return sys 23 return sys 24 return sys
1 - warning: function too complex
1 def foo(): 2 zero_range = 2 3 if zero_range == 5: 4 return zero_range 5 elif zero_range == 6: 6 return zero_range 7 elif zero_range == 7: 8 return zero_range 9 elif zero_range == 8: 10 return zero_range 11 elif zero_range == 9: 12 return zero_range 13 elif zero_range == 10: 14 if zero_range == 8: 15 while True: 16 return True 17 elif zero_range == 8: 18 with zero_range: 19 return 8 20 else: 21 if zero_range == 2: 22 return zero_range 23 return zero_range 24 return zero_range
1 - warning: function too complex
1 def foo(): 2 types = 2 3 if types == 5: 4 return types 5 elif types == 6: 6 return types 7 elif types == 7: 8 return types 9 elif types == 8: 10 return types 11 elif types == 9: 12 return types 13 elif types == 10: 14 if types == 8: 15 while True: 16 return True 17 elif types == 8: 18 with types: 19 return 8 20 else: 21 if types == 2: 22 return types 23 return types 24 return types
1 - warning: function too complex
1 def foo(): 2 vmax = 2 3 if vmax == 5: 4 return vmax 5 elif vmax == 6: 6 return vmax 7 elif vmax == 7: 8 return vmax 9 elif vmax == 8: 10 return vmax 11 elif vmax == 9: 12 return vmax 13 elif vmax == 10: 14 if vmax == 8: 15 while True: 16 return True 17 elif vmax == 8: 18 with vmax: 19 return 8 20 else: 21 if vmax == 2: 22 return vmax 23 return vmax 24 return vmax
1 - warning: function too complex
1 import datetime 2 3 current_date: str = datetime.date.today().strftime("%y-%m-%d") 4 def foo(): 5 na_rm = 2 6 if na_rm == 5: 7 return na_rm 8 elif na_rm == 6: 9 return na_rm 10 elif na_rm == 7: 11 return na_rm 12 elif na_rm == 8: 13 return na_rm 14 elif na_rm == 9: 15 return na_rm 16 elif na_rm == 10: 17 if na_rm == 8: 18 while True: 19 return True 20 elif na_rm == 8: 21 with na_rm: 22 return 8 23 else: 24 if na_rm == 2: 25 return na_rm 26 return na_rm 27 return na_rm 28 import datetime 29 na_rm: str = i.date.today().strftime('%y-%m-%d')
4 - warning: function too complex
1 import datetime 2 na_rm: str = i.date.today().strftime('%y-%m-%d') 3 def foo(): 4 BaseClass = 2 5 if BaseClass == 5: 6 return BaseClass 7 elif BaseClass == 6: 8 return BaseClass 9 elif BaseClass == 7: 10 return BaseClass 11 elif BaseClass == 8: 12 return BaseClass 13 elif BaseClass == 9: 14 return BaseClass 15 elif BaseClass == 10: 16 if BaseClass == 8: 17 while True: 18 return True 19 elif BaseClass == 8: 20 with BaseClass: 21 return 8 22 else: 23 if BaseClass == 2: 24 return BaseClass 25 return BaseClass 26 return BaseClass 27 import datetime 28 incomparables: str = skip.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 incomparables: str = skip.date.today().strftime('%y-%m-%d') 3 def foo(): 4 func = 2 5 if func == 5: 6 return func 7 elif func == 6: 8 return func 9 elif func == 7: 10 return func 11 elif func == 8: 12 return func 13 elif func == 9: 14 return func 15 elif func == 10: 16 if func == 8: 17 while True: 18 return True 19 elif func == 8: 20 with func: 21 return 8 22 else: 23 if func == 2: 24 return func 25 return func 26 return func 27 import datetime 28 attr: str = minor_breaks.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 attr: str = minor_breaks.date.today().strftime('%y-%m-%d') 3 def foo(): 4 fh = 2 5 if fh == 5: 6 return fh 7 elif fh == 6: 8 return fh 9 elif fh == 7: 10 return fh 11 elif fh == 8: 12 return fh 13 elif fh == 9: 14 return fh 15 elif fh == 10: 16 if fh == 8: 17 while True: 18 return True 19 elif fh == 8: 20 with fh: 21 return 8 22 else: 23 if fh == 2: 24 return fh 25 return fh 26 return fh 27 import datetime 28 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 inverse: str = OrderedDict.date.today().strftime('%y-%m-%d') 3 def foo(): 4 d = 2 5 if d == 5: 6 return d 7 elif d == 6: 8 return d 9 elif d == 7: 10 return d 11 elif d == 8: 12 return d 13 elif d == 9: 14 return d 15 elif d == 10: 16 if d == 8: 17 while True: 18 return True 19 elif d == 8: 20 with d: 21 return 8 22 else: 23 if d == 2: 24 return d 25 return d 26 return d 27 import datetime 28 obj: str = d.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 obj: str = d.date.today().strftime('%y-%m-%d') 3 def foo(): 4 y = 2 5 if y == 5: 6 return y 7 elif y == 6: 8 return y 9 elif y == 7: 10 return y 11 elif y == 8: 12 return y 13 elif y == 9: 14 return y 15 elif y == 10: 16 if y == 8: 17 while True: 18 return True 19 elif y == 8: 20 with y: 21 return 8 22 else: 23 if y == 2: 24 return y 25 return y 26 return y 27 import datetime 28 probability_trans: str = obj.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 probability_trans: str = obj.date.today().strftime('%y-%m-%d') 3 def foo(): 4 extended_breaks = 2 5 if extended_breaks == 5: 6 return extended_breaks 7 elif extended_breaks == 6: 8 return extended_breaks 9 elif extended_breaks == 7: 10 return extended_breaks 11 elif extended_breaks == 8: 12 return extended_breaks 13 elif extended_breaks == 9: 14 return extended_breaks 15 elif extended_breaks == 10: 16 if extended_breaks == 8: 17 while True: 18 return True 19 elif extended_breaks == 8: 20 with extended_breaks: 21 return 8 22 else: 23 if extended_breaks == 2: 24 return extended_breaks 25 return extended_breaks 26 return extended_breaks 27 import datetime 28 v2: str = args.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 v2: str = args.date.today().strftime('%y-%m-%d') 3 def foo(): 4 obj = 2 5 if obj == 5: 6 return obj 7 elif obj == 6: 8 return obj 9 elif obj == 7: 10 return obj 11 elif obj == 8: 12 return obj 13 elif obj == 9: 14 return obj 15 elif obj == 10: 16 if obj == 8: 17 while True: 18 return True 19 elif obj == 8: 20 with obj: 21 return 8 22 else: 23 if obj == 2: 24 return obj 25 return obj 26 return obj 27 import datetime 28 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d')
3 - warning: function too complex
1 import datetime 2 log10_trans: str = incomparables.date.today().strftime('%y-%m-%d') 3 def foo(): 4 MSG = 2 5 if MSG == 5: 6 return MSG 7 elif MSG == 6: 8 return MSG 9 elif MSG == 7: 10 return MSG 11 elif MSG == 8: 12 return MSG 13 elif MSG == 9: 14 return MSG 15 elif MSG == 10: 16 if MSG == 8: 17 while True: 18 return True 19 elif MSG == 8: 20 with MSG: 21 return 8 22 else: 23 if MSG == 2: 24 return MSG 25 return MSG 26 return MSG 27 import datetime 28 na_rm: str = doc.date.today().strftime('%y-%m-%d')
3 - warning: function too complex