Skip to content

Commit

Permalink
Fixing sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov committed Oct 5, 2023
1 parent c9ec935 commit afe343a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 33 deletions.
37 changes: 15 additions & 22 deletions samples/inputs/sample_001.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ def cachorro() -> int:
a = 1
a = 1 + 1
if (
"a"
or "b"
or "c"
or "sdnajdjsadadsajdas" in "dsadnsadsadsaudauda"
or (True and False)
and 1 > 0
"a"
or "b"
or "c"
or "sdnajdjsadadsajdas" in "dsadnsadsadsaudauda"
or (True and False)
and 1 > 0
):
print("yell")
print("au au",)
Expand All @@ -23,18 +23,16 @@ def cachorro() -> int:
for k in range(100):
print(x)
x += 1

def inner_function():
return "b"

return 2 if lru_cache else 1


class Super(object):
def itsbanana(self):
a = (
"dsadusdhiuahdb abshdu huidahsu aks shabdh ada"
+ "adbjab bsdab khdsb kbas bkasd a"
"dsadusdhiuahdb abshdu huidahsu aks shabdh ada"
+ "adbjab bsdab khdsb kbas bkasd a"
)
calculate(1, 2, "dsadsadsadsa", 56, "094329843432", [None] * 100)
return 1 + 0
Expand All @@ -52,7 +50,6 @@ def ifsandbuts(input_data):
return 2
return b


def forsandstuff(aaa):
i = 0
while i < aaa:
Expand All @@ -69,32 +66,28 @@ def forsandstuff(aaa):
aaa += i
return


def single_line(): return 1


def comma_at_end(v,):
print(v)


@lru_cache
def decorated_function(simple: str):
return 3


# pokemon


def unusual_function(
a: int,
commit: str,
smt: Optional[int],
should_ha: Super,
*,
upload: int,
a: int,
commit: str,
smt: Optional[int],
should_ha: Super,
*,
upload: int,
):
return a + 1


print("here")
cachorro()
cachorro()
6 changes: 1 addition & 5 deletions samples/inputs/sample_002.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ def simple_function(a, b, c, d, e, f, g, h, i, j, k):
# assert a == b
pass


def some_more_if_stuff(val):
if val >= 100:
val = val + 1
Expand All @@ -15,11 +14,9 @@ def some_more_if_stuff(val):
val = val - 1
return val ** 2


def single_line_minecraft(bb):
k = 3;bb.matrix_blocks.render(); import minecraft; minecraft.run()


a = 3
print("It's me mario")
try:
Expand All @@ -31,9 +28,8 @@ def single_line_minecraft(bb):
while c < 1:
print("b")


def nested_conditionals(val):
if val > 10:
if val > 100:
if val > 1000:
return 'large value'
return 'large value'
8 changes: 2 additions & 6 deletions samples/inputs/sample_005.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
y = 'some string'
w = """some string"""


def well_documented_function(a, b):
""" Returns the value of a + b, a - b and a * b
As a tuple, in that order
Expand All @@ -20,20 +19,17 @@ def well_documented_function(a, b):
times = a * b
return (plus, minus, times)


def less_documented_function(a, b):
""" Returns tuple(a + b, a - b, a * b)"""
return (a + b, a - b, a * b)


def commented_function(a, b):
# Returns tuple(a + b, a - b, a * b)
return (a + b, a - b, a * b)


class MyClass:
"""This is my class, not yours u.u
""" This is my class, not yours u.u
"""

def __init__(self) -> None:
self.owner = 'me'
self.owner = 'me'

0 comments on commit afe343a

Please sign in to comment.