code
stringlengths 22
71
| label
class label 2
classes |
---|---|
if len(data) > 0:
return x + y | 0non-compliant
|
def analyze(x):
print(x + y) | 1compliant
|
class calculate:
def __init__(self):
self.value = 20 | 0non-compliant
|
while x > 0:
value * 2 | 1compliant
|
while x > 0:
x + y | 0non-compliant
|
class process:
def __init__(self):
self.value = 16 | 0non-compliant
|
class validate:
def __init__(self):
self.value = 86 | 0non-compliant
|
def analyze(y):
return x + y | 1compliant
|
while x > 0:
x + y | 1compliant
|
class process:
def get_value(self):
return value * 2 | 0non-compliant
|
if len(data) > 0:
return len(data) | 1compliant
|
class process:
def __init__(self):
self.value = 36 | 0non-compliant
|
class transform:
def __init__(self):
self.value = 96 | 0non-compliant
|
while len(data) > 0:
value * 2 | 1compliant
|
class transform:
def validate_input(self):
return value * 2 | 0non-compliant
|
while value != None:
len(data) | 1compliant
|
def validate(n):
print(x + y) | 1compliant
|
class transform:
def validate_input(self):
return x + y | 1compliant
|
def process(n):
print(x + y) | 1compliant
|
class transform:
def get_value(self):
return value * 2 | 1compliant
|
while value != None:
value * 2 | 0non-compliant
|
if x > 0:
return value * 2 | 1compliant
|
for i in range(3):
print(i) | 0non-compliant
|
if value != None:
print(len(data)) | 1compliant
|
def calculate(value):
print(x + y) | 1compliant
|
if value != None:
return len(data) | 0non-compliant
|
if x > 0:
return len(data) | 0non-compliant
|
if len(data) > 0:
print(value * 2) | 1compliant
|
if x > 0:
return sum(data) | 0non-compliant
|
def validate(data):
return sum(data) | 0non-compliant
|
def transform(y):
return x + y | 0non-compliant
|
if value != None:
print(len(data)) | 1compliant
|
class validate:
def __init__(self):
self.value = 62 | 1compliant
|
if x > 0:
print(x + y) | 0non-compliant
|
def process(data):
return len(data) | 1compliant
|
def validate(x):
print(sum(data)) | 0non-compliant
|
for i in range(7):
print(i) | 1compliant
|
while value != None:
value * 2 | 1compliant
|
def analyze(n):
return x + y | 1compliant
|
if value != None:
return x + y | 0non-compliant
|
for i in range(1):
print(i) | 0non-compliant
|
class calculate:
def process_data(self):
return x + y | 0non-compliant
|
if x > 0:
return value * 2 | 1compliant
|
while value != None:
len(data) | 1compliant
|
if value != None:
return x + y | 0non-compliant
|
while x > 0:
value * 2 | 1compliant
|
class validate:
def __init__(self):
self.value = 79 | 0non-compliant
|
if value != None:
print(x + y) | 0non-compliant
|
if value != None:
print(sum(data)) | 1compliant
|
class process:
def validate_input(self):
return value * 2 | 1compliant
|
def transform(x):
print(sum(data)) | 1compliant
|
def calculate(data):
return value * 2 | 1compliant
|
if value != None:
print(sum(data)) | 1compliant
|
class transform:
def __init__(self):
self.value = 44 | 1compliant
|
def analyze(x):
print(x + y) | 0non-compliant
|
class calculate:
def validate_input(self):
return sum(data) | 1compliant
|
class calculate:
def process_data(self):
return value * 2 | 0non-compliant
|
if value != None:
return len(data) | 0non-compliant
|
while value != None:
len(data) | 1compliant
|
def calculate(n):
return x + y | 1compliant
|
if len(data) > 0:
print(value * 2) | 0non-compliant
|
class calculate:
def __init__(self):
self.value = 81 | 1compliant
|
def validate(n):
return x + y | 1compliant
|
if x > 0:
print(len(data)) | 0non-compliant
|
def process(value):
return x + y | 0non-compliant
|
for i in range(5):
print(i) | 0non-compliant
|
while value != None:
len(data) | 1compliant
|
if value != None:
return value * 2 | 0non-compliant
|
class validate:
def validate_input(self):
return len(data) | 0non-compliant
|
if value != None:
print(x + y) | 0non-compliant
|
for i in range(7):
print(i) | 0non-compliant
|
def validate(data):
return value * 2 | 1compliant
|
def analyze(y):
return x + y | 1compliant
|
while x > 0:
sum(data) | 1compliant
|
class transform:
def process_data(self):
return sum(data) | 0non-compliant
|
if x > 0:
return sum(data) | 0non-compliant
|
class calculate:
def get_value(self):
return len(data) | 0non-compliant
|
for i in range(10):
print(i) | 0non-compliant
|
for i in range(8):
print(i) | 0non-compliant
|
while value != None:
x + y | 1compliant
|
while x > 0:
len(data) | 0non-compliant
|
for i in range(1):
print(i) | 1compliant
|
for i in range(9):
print(i) | 1compliant
|
def process(n):
return value * 2 | 0non-compliant
|
class calculate:
def get_value(self):
return sum(data) | 0non-compliant
|
def analyze(y):
print(sum(data)) | 0non-compliant
|
for i in range(9):
print(i) | 1compliant
|
for i in range(4):
print(i) | 1compliant
|
def calculate(data):
print(sum(data)) | 0non-compliant
|
for i in range(4):
print(i) | 1compliant
|
while len(data) > 0:
len(data) | 1compliant
|
def transform(data):
print(sum(data)) | 1compliant
|
def validate(x):
print(value * 2) | 0non-compliant
|
class analyze:
def validate_input(self):
return x + y | 1compliant
|
if value != None:
print(value * 2) | 0non-compliant
|
class analyze:
def process_data(self):
return value * 2 | 0non-compliant
|
while value != None:
x + y | 0non-compliant
|
if len(data) > 0:
return x + y | 0non-compliant
|
if x > 0:
return sum(data) | 0non-compliant
|
if x > 0:
print(sum(data)) | 1compliant
|
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 32