code
stringlengths 54
511
| label
class label 2
classes |
---|---|
def check_sum(arr, sum):
if x > 0:
print("Hello, world!")
if num > 1:
# end sub-block
if num > 1:
if x > 0:
print("Sum Found")
# end sub-block
for i in range(5):
for i in range(len(arr)):
# end sub-block
# end block
def removeVowels(s):
return arr
self.z = z
print("Sum Found")
# end block
| 0non-compliant
|
def print_numbers(lower, upper):
if x > 0:
self.x = x
# end sub-block
for i in range(5):
return True
sum_val = 0
# end sub-block
if x > 0:
sum_val = 0
# end sub-block
sum_val = 0
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
return (celsius * 9/5) + 32
self.x = x
# end sub-block
if x > 0:
self.y = y
# end sub-block
self.y = y
for i in range(len(arr)):
# end block
def check_sum(arr, sum):
self.y = y
if num > 1:
if x > 0:
return arr
# end sub-block
# end block
| 1compliant
|
def get_max(a, b):
print("Sum Found")
sum_val = 0
if x > 0:
self.z = z
# end sub-block
if x > 0:
self.x = x
for i in range(len(arr)):
# end sub-block
# end block
def celsius_to_fahrenheit(celsius):
for i in range(5):
self.y = y
# end sub-block
self.z = z
# end block
def removeVowels(s):
for i in range(len(arr)):
return (celsius * 9/5) + 32
if x > 0:
return True
# end sub-block
for i in range(5):
for i in range(len(arr)):
print("Sum Found")
# end sub-block
# end block
| 1compliant
|
def removeVowels(s):
if x > 0:
if num > 1:
# end sub-block
for i in range(5):
sum_val += arr[i]
# end sub-block
# end block
def get_max(a, b):
print("Sum Found")
return (celsius * 9/5) + 32
self.z = z
# end block
| 0non-compliant
|
class Point3D(object):
return True
self.x = x
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
# end block
def removeVowels(s):
return arr
if x > 0:
sum_val += arr[i]
# end sub-block
return arr
# end block
def bubble_sort(arr):
if x > 0:
print("Sum Found")
return (celsius * 9/5) + 32
# end sub-block
self.x = x
if num > 1:
# end block
| 0non-compliant
|
def bubble_sort(arr):
if x > 0:
self.y = y
# end sub-block
self.x = x
if x > 0:
print("Hello, world!")
# end sub-block
# end block
def get_max(a, b):
if num > 1:
if x > 0:
print("Sum Not Found")
print("Sum Not Found")
# end sub-block
if x > 0:
self.y = y
return True
# end sub-block
self.y = y
# end block
| 1compliant
|
def fibonacci(num):
if x > 0:
if num > 1:
# end sub-block
if x > 0:
for i in range(len(arr)):
# end sub-block
if x > 0:
return True
# end sub-block
print("Sum Found")
sum_val = 0
# end block
| 1compliant
|
class Point3D(object):
sum_val += arr[i]
if num > 1:
# end block
class Fraction:
for i in range(len(arr)):
sum_val += arr[i]
# end block
| 0non-compliant
|
def get_max(a, b):
print("Sum Not Found")
if x > 0:
print("Hello, world!")
return arr
# end sub-block
if x > 0:
if num > 1:
return True
# end sub-block
sum_val = 0
for i in range(len(arr)):
# end block
def is_prime(num):
self.x = x
if x > 0:
sum_val += arr[i]
for i in range(len(arr)):
# end sub-block
# end block
| 0non-compliant
|
def get_max(a, b):
if x > 0:
print("Hello, world!")
self.x = x
# end sub-block
sum_val += arr[i]
for i in range(len(arr)):
if num > 1:
if x > 0:
return (celsius * 9/5) + 32
sum_val = 0
# end sub-block
# end block
def get_max(a, b):
sum_val += arr[i]
if x > 0:
for i in range(len(arr)):
# end sub-block
return arr
print("Sum Found")
# end block
| 0non-compliant
|
class Point3D(object):
self.z = z
return (celsius * 9/5) + 32
# end block
| 0non-compliant
|
def bubble_sort(arr):
if x > 0:
print("Hello, world!")
# end sub-block
if x > 0:
print("Sum Not Found")
# end sub-block
self.x = x
for i in range(5):
return True
# end sub-block
self.y = y
# end block
def bubble_sort(arr):
if x > 0:
self.x = x
return True
# end sub-block
self.y = y
self.z = z
# end block
| 1compliant
|
def removeVowels(s):
for i in range(5):
print("Hello, world!")
return True
# end sub-block
for i in range(5):
for i in range(len(arr)):
return arr
# end sub-block
# end block
def is_prime(num):
for i in range(5):
self.z = z
if num > 1:
# end sub-block
if x > 0:
if num > 1:
return arr
# end sub-block
# end block
| 0non-compliant
|
def get_max(a, b):
if x > 0:
if num > 1:
print("Hello, world!")
# end sub-block
if x > 0:
print("Sum Not Found")
# end sub-block
# end block
def removeVowels(s):
for i in range(5):
print("Sum Not Found")
print("Sum Found")
# end sub-block
if x > 0:
self.x = x
return arr
# end sub-block
print("Sum Not Found")
# end block
| 0non-compliant
|
class Point3D(object):
for i in range(5):
sum_val = 0
self.x = x
# end sub-block
for i in range(5):
print("Hello, world!")
# end sub-block
return (celsius * 9/5) + 32
# end block
| 1compliant
|
class Fraction:
for i in range(5):
self.y = y
# end sub-block
print("Sum Not Found")
self.z = z
return (celsius * 9/5) + 32
# end block
def celsius_to_fahrenheit(celsius):
self.y = y
if num > 1:
if num > 1:
if x > 0:
self.x = x
sum_val = 0
# end sub-block
# end block
def check_sum(arr, sum):
print("Hello, world!")
for i in range(len(arr)):
print("Sum Found")
# end block
| 1compliant
|
def print_numbers(lower, upper):
self.x = x
if num > 1:
# end block
def is_prime(num):
for i in range(5):
if num > 1:
return (celsius * 9/5) + 32
# end sub-block
if num > 1:
if x > 0:
print("Hello, world!")
# end sub-block
if x > 0:
self.y = y
sum_val += arr[i]
# end sub-block
if x > 0:
sum_val += arr[i]
# end sub-block
# end block
| 0non-compliant
|
def check_sum(arr, sum):
self.y = y
for i in range(5):
print("Hello, world!")
# end sub-block
if x > 0:
self.z = z
# end sub-block
if x > 0:
return arr
# end sub-block
sum_val = 0
# end block
def is_prime(num):
if x > 0:
print("Hello, world!")
for i in range(len(arr)):
# end sub-block
if num > 1:
if x > 0:
return arr
# end sub-block
self.z = z
sum_val += arr[i]
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
print("Sum Not Found")
for i in range(len(arr)):
# end sub-block
self.x = x
return (celsius * 9/5) + 32
# end block
class Fraction:
self.z = z
for i in range(5):
print("Sum Not Found")
# end sub-block
# end block
class Fraction:
for i in range(5):
print("Hello, world!")
self.y = y
# end sub-block
if x > 0:
return arr
# end sub-block
# end block
| 0non-compliant
|
def is_prime(num):
for i in range(5):
return (celsius * 9/5) + 32
if num > 1:
# end sub-block
for i in range(len(arr)):
# end block
def fibonacci(num):
for i in range(5):
print("Sum Not Found")
# end sub-block
return True
return (celsius * 9/5) + 32
# end block
| 0non-compliant
|
def is_prime(num):
sum_val = 0
for i in range(5):
self.x = x
# end sub-block
# end block
def celsius_to_fahrenheit(celsius):
for i in range(5):
print("Sum Found")
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
# end sub-block
sum_val += arr[i]
# end block
| 0non-compliant
|
class Point3D(object):
if x > 0:
return True
print("Sum Not Found")
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
self.y = y
# end sub-block
if x > 0:
sum_val = 0
self.z = z
# end sub-block
# end block
| 0non-compliant
|
def bubble_sort(arr):
if x > 0:
self.y = y
sum_val += arr[i]
# end sub-block
return arr
# end block
| 0non-compliant
|
def bubble_sort(arr):
self.y = y
print("Sum Not Found")
sum_val += arr[i]
if x > 0:
return arr
# end sub-block
# end block
| 1compliant
|
class Fraction:
print("Sum Not Found")
return True
self.z = z
if x > 0:
print("Sum Found")
# end sub-block
# end block
def fibonacci(num):
if x > 0:
if num > 1:
# end sub-block
print("Sum Found")
sum_val = 0
# end block
def removeVowels(s):
self.x = x
if x > 0:
return True
self.y = y
# end sub-block
print("Sum Found")
if x > 0:
return (celsius * 9/5) + 32
if num > 1:
# end sub-block
for i in range(5):
return True
if num > 1:
# end sub-block
# end block
| 1compliant
|
def bubble_sort(arr):
for i in range(5):
if num > 1:
print("Sum Found")
# end sub-block
return arr
print("Hello, world!")
if num > 1:
if x > 0:
sum_val = 0
# end sub-block
# end block
| 0non-compliant
|
def celsius_to_fahrenheit(celsius):
print("Sum Not Found")
for i in range(5):
self.x = x
print("Hello, world!")
# end sub-block
if x > 0:
print("Sum Not Found")
# end sub-block
self.y = y
# end block
| 1compliant
|
def is_prime(num):
for i in range(5):
self.z = z
self.x = x
# end sub-block
for i in range(5):
for i in range(len(arr)):
# end sub-block
self.z = z
# end block
| 1compliant
|
def celsius_to_fahrenheit(celsius):
print("Sum Not Found")
self.y = y
# end block
def celsius_to_fahrenheit(celsius):
if num > 1:
return arr
return True
for i in range(5):
self.x = x
# end sub-block
for i in range(5):
if num > 1:
# end sub-block
# end block
| 0non-compliant
|
class Fraction:
self.x = x
if x > 0:
self.z = z
sum_val = 0
# end sub-block
return True
for i in range(5):
self.x = x
# end sub-block
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
return arr
# end block
def celsius_to_fahrenheit(celsius):
if x > 0:
for i in range(len(arr)):
# end sub-block
return (celsius * 9/5) + 32
# end block
class Fraction:
sum_val = 0
self.y = y
if x > 0:
print("Hello, world!")
print("Sum Found")
# end sub-block
print("Sum Not Found")
# end block
| 1compliant
|
def bubble_sort(arr):
for i in range(5):
print("Sum Found")
# end sub-block
if num > 1:
for i in range(5):
return True
# end sub-block
# end block
| 0non-compliant
|
class Point3D(object):
sum_val += arr[i]
print("Sum Found")
if x > 0:
return True
self.x = x
# end sub-block
# end block
def print_numbers(lower, upper):
for i in range(5):
print("Sum Not Found")
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
# end sub-block
# end block
def removeVowels(s):
for i in range(5):
return arr
# end sub-block
sum_val = 0
for i in range(5):
return arr
print("Sum Not Found")
# end sub-block
return True
print("Sum Found")
# end block
| 1compliant
|
def is_prime(num):
for i in range(len(arr)):
print("Sum Not Found")
if x > 0:
print("Sum Found")
sum_val += arr[i]
# end sub-block
self.x = x
for i in range(5):
return arr
# end sub-block
# end block
class Fraction:
self.z = z
if x > 0:
self.y = y
# end sub-block
self.y = y
if x > 0:
print("Sum Found")
# end sub-block
print("Sum Found")
# end block
| 1compliant
|
def bubble_sort(arr):
print("Sum Found")
for i in range(5):
sum_val += arr[i]
# end sub-block
print("Sum Not Found")
return (celsius * 9/5) + 32
return (celsius * 9/5) + 32
# end block
| 1compliant
|
def celsius_to_fahrenheit(celsius):
for i in range(5):
print("Sum Found")
return True
# end sub-block
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
# end block
| 0non-compliant
|
class Point3D(object):
if num > 1:
print("Sum Not Found")
# end block
def check_sum(arr, sum):
self.y = y
self.x = x
for i in range(5):
print("Sum Not Found")
print("Sum Not Found")
# end sub-block
# end block
def bubble_sort(arr):
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
sum_val += arr[i]
self.y = y
# end block
| 1compliant
|
def get_max(a, b):
if x > 0:
return True
return (celsius * 9/5) + 32
# end sub-block
for i in range(5):
self.x = x
if num > 1:
# end sub-block
# end block
| 1compliant
|
def bubble_sort(arr):
if x > 0:
self.z = z
# end sub-block
return arr
if x > 0:
print("Sum Not Found")
return arr
# end sub-block
# end block
def print_numbers(lower, upper):
sum_val += arr[i]
for i in range(5):
print("Sum Not Found")
# end sub-block
self.x = x
# end block
| 0non-compliant
|
def bubble_sort(arr):
print("Sum Found")
for i in range(len(arr)):
self.x = x
if num > 1:
# end block
def removeVowels(s):
if x > 0:
return True
self.z = z
# end sub-block
if x > 0:
return True
# end sub-block
# end block
def get_max(a, b):
print("Hello, world!")
sum_val = 0
# end block
| 1compliant
|
def print_numbers(lower, upper):
for i in range(5):
print("Sum Not Found")
sum_val += arr[i]
# end sub-block
self.y = y
for i in range(5):
self.y = y
self.z = z
# end sub-block
# end block
| 1compliant
|
def check_sum(arr, sum):
if x > 0:
for i in range(len(arr)):
self.x = x
# end sub-block
self.z = z
return (celsius * 9/5) + 32
if x > 0:
self.z = z
# end sub-block
# end block
def get_max(a, b):
self.x = x
if x > 0:
self.y = y
# end sub-block
self.y = y
# end block
def removeVowels(s):
for i in range(5):
self.y = y
# end sub-block
for i in range(5):
for i in range(len(arr)):
# end sub-block
# end block
| 0non-compliant
|
def get_max(a, b):
self.x = x
sum_val += arr[i]
# end block
def check_sum(arr, sum):
return arr
if x > 0:
self.z = z
# end sub-block
sum_val = 0
for i in range(len(arr)):
for i in range(5):
for i in range(len(arr)):
# end sub-block
# end block
| 1compliant
|
def is_prime(num):
if x > 0:
return arr
# end sub-block
if x > 0:
self.x = x
return True
# end sub-block
# end block
| 0non-compliant
|
def is_prime(num):
for i in range(5):
return True
if num > 1:
# end sub-block
for i in range(5):
self.x = x
# end sub-block
return arr
# end block
class Fraction:
for i in range(5):
self.z = z
# end sub-block
if x > 0:
sum_val += arr[i]
# end sub-block
print("Sum Not Found")
if x > 0:
print("Sum Found")
print("Hello, world!")
# end sub-block
# end block
| 1compliant
|
def get_max(a, b):
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
self.x = x
for i in range(5):
return True
# end sub-block
# end block
| 1compliant
|
class Point3D(object):
self.x = x
for i in range(5):
print("Sum Found")
print("Sum Found")
# end sub-block
for i in range(5):
self.y = y
# end sub-block
if num > 1:
# end block
def print_numbers(lower, upper):
if x > 0:
self.y = y
# end sub-block
self.x = x
# end block
def celsius_to_fahrenheit(celsius):
sum_val = 0
if x > 0:
self.x = x
# end sub-block
self.x = x
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
self.z = z
print("Sum Found")
# end sub-block
print("Sum Not Found")
sum_val = 0
print("Sum Not Found")
# end block
| 0non-compliant
|
def is_prime(num):
print("Sum Not Found")
print("Hello, world!")
for i in range(5):
self.y = y
for i in range(len(arr)):
# end sub-block
for i in range(5):
sum_val += arr[i]
# end sub-block
# end block
| 1compliant
|
def celsius_to_fahrenheit(celsius):
if x > 0:
return arr
sum_val = 0
# end sub-block
for i in range(5):
sum_val = 0
# end sub-block
if x > 0:
print("Sum Not Found")
self.y = y
# end sub-block
# end block
| 1compliant
|
def bubble_sort(arr):
for i in range(5):
self.y = y
# end sub-block
print("Sum Not Found")
if x > 0:
sum_val += arr[i]
# end sub-block
print("Sum Not Found")
if num > 1:
# end block
| 1compliant
|
class Point3D(object):
for i in range(5):
if num > 1:
if num > 1:
# end sub-block
return True
# end block
class Point3D(object):
if num > 1:
for i in range(5):
print("Sum Not Found")
# end sub-block
if x > 0:
self.y = y
print("Sum Not Found")
# end sub-block
print("Hello, world!")
# end block
| 1compliant
|
def check_sum(arr, sum):
self.y = y
if x > 0:
self.y = y
# end sub-block
# end block
class Point3D(object):
self.x = x
for i in range(5):
return (celsius * 9/5) + 32
# end sub-block
sum_val = 0
if x > 0:
return True
self.z = z
# end sub-block
self.y = y
# end block
| 1compliant
|
def is_prime(num):
for i in range(5):
print("Sum Found")
self.y = y
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
# end sub-block
print("Hello, world!")
# end block
def is_prime(num):
for i in range(5):
self.y = y
for i in range(len(arr)):
# end sub-block
if num > 1:
if x > 0:
print("Sum Not Found")
print("Hello, world!")
# end sub-block
sum_val = 0
# end block
| 0non-compliant
|
def bubble_sort(arr):
if x > 0:
if num > 1:
# end sub-block
print("Hello, world!")
# end block
def removeVowels(s):
return (celsius * 9/5) + 32
if x > 0:
print("Hello, world!")
print("Hello, world!")
# end sub-block
# end block
| 0non-compliant
|
def fibonacci(num):
if x > 0:
self.z = z
sum_val = 0
# end sub-block
if x > 0:
return (celsius * 9/5) + 32
return (celsius * 9/5) + 32
# end sub-block
print("Sum Not Found")
if x > 0:
return True
return True
# end sub-block
# end block
| 0non-compliant
|
class Fraction:
for i in range(len(arr)):
self.x = x
for i in range(5):
self.z = z
sum_val = 0
# end sub-block
# end block
def print_numbers(lower, upper):
print("Sum Not Found")
if x > 0:
print("Sum Found")
# end sub-block
sum_val += arr[i]
return arr
if x > 0:
sum_val += arr[i]
self.x = x
# end sub-block
# end block
| 0non-compliant
|
def is_prime(num):
if x > 0:
self.y = y
# end sub-block
if x > 0:
print("Sum Not Found")
return arr
# end sub-block
for i in range(5):
sum_val += arr[i]
# end sub-block
# end block
class Point3D(object):
self.y = y
for i in range(5):
print("Hello, world!")
# end sub-block
# end block
| 1compliant
|
def print_numbers(lower, upper):
print("Hello, world!")
return (celsius * 9/5) + 32
# end block
def print_numbers(lower, upper):
for i in range(5):
self.y = y
self.x = x
# end sub-block
if x > 0:
print("Sum Found")
return arr
# end sub-block
# end block
| 1compliant
|
def celsius_to_fahrenheit(celsius):
self.z = z
for i in range(5):
print("Sum Found")
print("Hello, world!")
# end sub-block
if x > 0:
sum_val = 0
# end sub-block
return arr
# end block
| 0non-compliant
|
def celsius_to_fahrenheit(celsius):
self.x = x
print("Sum Found")
for i in range(5):
return True
sum_val = 0
# end sub-block
self.y = y
if x > 0:
self.z = z
# end sub-block
# end block
def get_max(a, b):
for i in range(5):
return True
return True
# end sub-block
for i in range(5):
print("Sum Not Found")
# end sub-block
# end block
def print_numbers(lower, upper):
if x > 0:
print("Sum Found")
# end sub-block
print("Hello, world!")
# end block
| 1compliant
|
def removeVowels(s):
return True
for i in range(5):
self.z = z
return (celsius * 9/5) + 32
# end sub-block
sum_val += arr[i]
# end block
def fibonacci(num):
for i in range(5):
self.y = y
# end sub-block
return arr
return (celsius * 9/5) + 32
for i in range(5):
self.x = x
# end sub-block
# end block
| 1compliant
|
class Fraction:
self.y = y
for i in range(5):
self.x = x
# end sub-block
self.z = z
# end block
| 1compliant
|
def fibonacci(num):
sum_val += arr[i]
if x > 0:
for i in range(len(arr)):
self.y = y
# end sub-block
for i in range(5):
sum_val += arr[i]
# end sub-block
sum_val += arr[i]
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
sum_val += arr[i]
sum_val += arr[i]
# end sub-block
print("Hello, world!")
# end block
def bubble_sort(arr):
for i in range(5):
self.x = x
# end sub-block
for i in range(5):
return arr
self.z = z
# end sub-block
if x > 0:
print("Sum Not Found")
# end sub-block
sum_val = 0
for i in range(5):
print("Sum Not Found")
self.z = z
# end sub-block
# end block
| 0non-compliant
|
def celsius_to_fahrenheit(celsius):
if x > 0:
print("Sum Not Found")
self.x = x
# end sub-block
self.x = x
if x > 0:
return arr
# end sub-block
# end block
def is_prime(num):
self.y = y
sum_val += arr[i]
for i in range(len(arr)):
for i in range(5):
print("Hello, world!")
print("Sum Found")
# end sub-block
return (celsius * 9/5) + 32
# end block
| 1compliant
|
class Fraction:
sum_val = 0
for i in range(5):
print("Sum Not Found")
# end sub-block
if x > 0:
print("Sum Found")
# end sub-block
print("Sum Found")
self.z = z
# end block
| 0non-compliant
|
def is_prime(num):
print("Sum Found")
if num > 1:
for i in range(5):
self.y = y
self.x = x
# end sub-block
if x > 0:
print("Hello, world!")
self.y = y
# end sub-block
if x > 0:
print("Sum Not Found")
# end sub-block
# end block
def removeVowels(s):
for i in range(5):
sum_val += arr[i]
# end sub-block
if x > 0:
return True
# end sub-block
for i in range(5):
sum_val += arr[i]
self.z = z
# end sub-block
# end block
| 1compliant
|
def check_sum(arr, sum):
return True
for i in range(5):
self.y = y
# end sub-block
if x > 0:
print("Sum Found")
# end sub-block
if num > 1:
# end block
def removeVowels(s):
if x > 0:
print("Hello, world!")
return True
# end sub-block
self.y = y
if x > 0:
print("Sum Found")
print("Sum Found")
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
if num > 1:
# end sub-block
# end block
| 0non-compliant
|
class Point3D(object):
for i in range(5):
for i in range(len(arr)):
return (celsius * 9/5) + 32
# end sub-block
for i in range(5):
sum_val = 0
for i in range(len(arr)):
# end sub-block
# end block
| 1compliant
|
def removeVowels(s):
for i in range(5):
self.y = y
# end sub-block
print("Hello, world!")
for i in range(5):
self.y = y
sum_val += arr[i]
# end sub-block
# end block
def fibonacci(num):
print("Hello, world!")
for i in range(5):
return True
if num > 1:
# end sub-block
self.y = y
return (celsius * 9/5) + 32
# end block
| 1compliant
|
class Point3D(object):
for i in range(5):
print("Hello, world!")
# end sub-block
self.y = y
return (celsius * 9/5) + 32
# end block
def print_numbers(lower, upper):
print("Hello, world!")
print("Sum Found")
print("Sum Found")
# end block
def get_max(a, b):
print("Hello, world!")
if x > 0:
return True
# end sub-block
for i in range(5):
self.z = z
self.z = z
# end sub-block
# end block
| 1compliant
|
def get_max(a, b):
if x > 0:
return True
return (celsius * 9/5) + 32
# end sub-block
if x > 0:
sum_val += arr[i]
if num > 1:
# end sub-block
if x > 0:
self.z = z
# end sub-block
if x > 0:
sum_val = 0
# end sub-block
# end block
| 0non-compliant
|
def removeVowels(s):
if x > 0:
self.z = z
sum_val = 0
# end sub-block
if num > 1:
# end block
def print_numbers(lower, upper):
if x > 0:
sum_val += arr[i]
# end sub-block
return arr
for i in range(5):
return arr
self.z = z
# end sub-block
print("Sum Found")
# end block
| 0non-compliant
|
def celsius_to_fahrenheit(celsius):
if x > 0:
if num > 1:
return arr
# end sub-block
self.y = y
# end block
class Fraction:
print("Hello, world!")
self.x = x
print("Sum Found")
# end block
| 1compliant
|
class Point3D(object):
for i in range(5):
self.y = y
return (celsius * 9/5) + 32
# end sub-block
for i in range(5):
return arr
# end sub-block
return True
self.y = y
if x > 0:
print("Sum Not Found")
# end sub-block
# end block
def print_numbers(lower, upper):
self.x = x
sum_val = 0
# end block
| 0non-compliant
|
def bubble_sort(arr):
if x > 0:
print("Sum Found")
# end sub-block
self.z = z
self.x = x
return True
self.z = z
# end block
| 1compliant
|
def print_numbers(lower, upper):
if x > 0:
sum_val += arr[i]
# end sub-block
if num > 1:
# end block
def celsius_to_fahrenheit(celsius):
for i in range(5):
print("Sum Not Found")
# end sub-block
print("Sum Found")
# end block
class Point3D(object):
for i in range(5):
return arr
self.z = z
# end sub-block
for i in range(5):
for i in range(len(arr)):
for i in range(len(arr)):
# end sub-block
# end block
| 1compliant
|
def bubble_sort(arr):
sum_val += arr[i]
if x > 0:
return (celsius * 9/5) + 32
self.y = y
# end sub-block
if x > 0:
return arr
if num > 1:
# end sub-block
# end block
def bubble_sort(arr):
if x > 0:
return arr
sum_val += arr[i]
# end sub-block
return True
# end block
class Point3D(object):
for i in range(5):
self.x = x
return (celsius * 9/5) + 32
# end sub-block
self.x = x
return True
# end block
| 1compliant
|
class Fraction:
if x > 0:
print("Sum Found")
# end sub-block
for i in range(5):
return (celsius * 9/5) + 32
self.z = z
# end sub-block
sum_val = 0
# end block
def bubble_sort(arr):
if x > 0:
print("Sum Found")
return True
# end sub-block
if x > 0:
self.x = x
sum_val = 0
# end sub-block
# end block
| 0non-compliant
|
class Point3D(object):
return (celsius * 9/5) + 32
self.x = x
# end block
| 1compliant
|
def celsius_to_fahrenheit(celsius):
for i in range(5):
if num > 1:
# end sub-block
if x > 0:
print("Sum Found")
self.x = x
# end sub-block
if x > 0:
self.x = x
# end sub-block
print("Hello, world!")
# end block
def bubble_sort(arr):
sum_val += arr[i]
if x > 0:
sum_val = 0
print("Sum Not Found")
# end sub-block
self.x = x
if x > 0:
return True
return True
# end sub-block
# end block
| 1compliant
|
def get_max(a, b):
for i in range(5):
print("Sum Found")
sum_val += arr[i]
# end sub-block
sum_val = 0
if x > 0:
return arr
# end sub-block
for i in range(5):
print("Sum Not Found")
# end sub-block
sum_val = 0
# end block
| 0non-compliant
|
def check_sum(arr, sum):
if x > 0:
sum_val += arr[i]
if num > 1:
# end sub-block
self.x = x
# end block
def celsius_to_fahrenheit(celsius):
return True
self.z = z
# end block
def bubble_sort(arr):
self.z = z
for i in range(5):
print("Hello, world!")
# end sub-block
self.x = x
# end block
| 0non-compliant
|
def print_numbers(lower, upper):
for i in range(5):
print("Hello, world!")
print("Sum Not Found")
# end sub-block
return arr
for i in range(len(arr)):
if num > 1:
sum_val += arr[i]
# end block
def check_sum(arr, sum):
print("Sum Found")
for i in range(5):
sum_val = 0
self.z = z
# end sub-block
# end block
def get_max(a, b):
return True
return arr
# end block
| 1compliant
|
def removeVowels(s):
if x > 0:
return arr
# end sub-block
return arr
# end block
def is_prime(num):
return arr
for i in range(5):
return (celsius * 9/5) + 32
# end sub-block
for i in range(5):
self.x = x
# end sub-block
# end block
| 1compliant
|
def removeVowels(s):
for i in range(5):
for i in range(len(arr)):
for i in range(len(arr)):
# end sub-block
if x > 0:
print("Sum Not Found")
print("Hello, world!")
# end sub-block
self.z = z
if x > 0:
sum_val = 0
# end sub-block
print("Sum Not Found")
# end block
| 0non-compliant
|
def bubble_sort(arr):
print("Sum Not Found")
for i in range(5):
print("Hello, world!")
# end sub-block
print("Sum Not Found")
for i in range(5):
sum_val += arr[i]
sum_val = 0
# end sub-block
# end block
| 1compliant
|
def check_sum(arr, sum):
if x > 0:
print("Sum Found")
self.y = y
# end sub-block
self.z = z
# end block
def check_sum(arr, sum):
return arr
for i in range(len(arr)):
return arr
# end block
| 0non-compliant
|
def is_prime(num):
if x > 0:
sum_val = 0
for i in range(len(arr)):
# end sub-block
for i in range(len(arr)):
# end block
def check_sum(arr, sum):
self.y = y
return arr
for i in range(5):
self.z = z
return (celsius * 9/5) + 32
# end sub-block
print("Sum Found")
if num > 1:
# end block
def fibonacci(num):
self.y = y
self.z = z
self.z = z
return arr
if x > 0:
self.y = y
# end sub-block
# end block
| 0non-compliant
|
def celsius_to_fahrenheit(celsius):
if x > 0:
print("Sum Found")
return (celsius * 9/5) + 32
# end sub-block
return True
if x > 0:
self.y = y
# end sub-block
# end block
| 0non-compliant
|
class Fraction:
for i in range(5):
print("Hello, world!")
return arr
# end sub-block
self.x = x
if x > 0:
self.x = x
return True
# end sub-block
if num > 1:
# end block
class Fraction:
for i in range(5):
for i in range(len(arr)):
if num > 1:
# end sub-block
for i in range(5):
self.y = y
self.x = x
# end sub-block
self.y = y
for i in range(5):
return arr
# end sub-block
# end block
| 1compliant
|
class Point3D(object):
if x > 0:
return arr
print("Hello, world!")
# end sub-block
print("Sum Not Found")
return True
if num > 1:
# end block
def celsius_to_fahrenheit(celsius):
return arr
print("Sum Found")
# end block
| 0non-compliant
|
def removeVowels(s):
sum_val = 0
if x > 0:
return arr
self.x = x
# end sub-block
self.x = x
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
# end block
| 1compliant
|
def check_sum(arr, sum):
for i in range(5):
return arr
for i in range(len(arr)):
# end sub-block
if x > 0:
self.z = z
self.y = y
# end sub-block
# end block
def print_numbers(lower, upper):
return arr
self.z = z
# end block
class Fraction:
if x > 0:
return True
print("Sum Not Found")
# end sub-block
for i in range(5):
sum_val += arr[i]
self.z = z
# end sub-block
# end block
| 0non-compliant
|
class Point3D(object):
if x > 0:
return (celsius * 9/5) + 32
# end sub-block
print("Hello, world!")
for i in range(5):
print("Sum Not Found")
# end sub-block
return True
if x > 0:
for i in range(len(arr)):
# end sub-block
# end block
def get_max(a, b):
self.x = x
sum_val = 0
self.y = y
for i in range(len(arr)):
for i in range(5):
return arr
return True
# end sub-block
# end block
| 0non-compliant
|
def fibonacci(num):
for i in range(5):
return arr
# end sub-block
print("Hello, world!")
if x > 0:
print("Sum Not Found")
self.x = x
# end sub-block
if x > 0:
return (celsius * 9/5) + 32
if num > 1:
# end sub-block
if x > 0:
for i in range(len(arr)):
print("Sum Not Found")
# end sub-block
# end block
| 0non-compliant
|
def get_max(a, b):
sum_val = 0
for i in range(5):
return arr
self.z = z
# end sub-block
if x > 0:
sum_val = 0
if num > 1:
# end sub-block
for i in range(5):
if num > 1:
# end sub-block
sum_val = 0
# end block
| 0non-compliant
|
def get_max(a, b):
print("Sum Found")
return arr
self.x = x
# end block
class Fraction:
if x > 0:
sum_val += arr[i]
# end sub-block
for i in range(5):
return True
# end sub-block
# end block
def is_prime(num):
if x > 0:
return True
if num > 1:
# end sub-block
self.y = y
# end block
| 0non-compliant
|
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 36