コード例 #1
0
ファイル: middleInfo.py プロジェクト: Trixter9994/lazero
import random
import networkx as nx
from getFromPickleR import returnWTF, returnFuckMe
from does_it_have_string import checkEval, eat
import copy
import re
# platform for that thing to execute the code.
# it is not cool. It is tool.
# how do you code?

r2048 = returnWTF()
f2048 = [x for y in returnFuckMe() for x in y]


def functionWrapper(a, b):
    return a + "(" + b + ")"


def encloser(a, b, c):
    # c is indicator
    assert type(c)==str
    x = ["()", "{}", "[]"]
    for y in x:
        if c[0] in y:
            return a + y[0] + b + y[1]
    raise Exception("None of those f*****g encloser has been found.")

def classExtender(a, b):
    return ".".join([a, b])
    # is it valid thing?
コード例 #2
0
ファイル: sourceShredder.py プロジェクト: Trixter9994/lazero

# def getParsed(a):
#     with open(a, "r") as f:
#         f0 = f.read().split("\n")
#         x0 = []
#         for x in f0:
#             if checkFront("class", x):
#                 g = getFinal("class", x)
#                 x0.append(g)
#             elif checkFront("def", x):
#                 g = getFinal("def", x)
#                 x0.append(g)
#             else:
#                 pass
#         return x0

# def mindBlocks(a):
#     with open("layer_"+str(a)+".log","r") as f:
#         return list(filter(lambda x: len(x)>1,f.read().split("\n")))

# fx=lambda x: [z for y in x for z in y]
# m0=[mindBlocks(x) for x in range(9)]
# m0 = fx(m0)
m0=returnWTF()
m1={}
for x in m0.keys():
    m1.update({x: getSet(openfinder(x))})

storeXList(m1, "shredded_keywords_pypi")
# all we need is the search.
コード例 #3
0
from getFromPickleR import returnWTF
from simpleStorageR import storeAList
import uniprop
def fuckYou(a):
  try:
    e=eval(a)
    return e,type(e)
  except:
    return None
r,r0,r1,r2= returnWTF(),"a",{},{}
for x in r:
  r1.update({x: fuckYou("uniprop." + x + "('" + r0 + "')")})
  r2.update({x: eval("type(uniprop." + x + ")")})
storeAList([r1,r2]) # two f*****g distinct dicks
# print(r1)
# print("________________________________________________________________")
# # one hot encoder?
# print(r2)
# what a loopy function.
# how to deal with other shits?
# I mean get the girth of text.
# how about rake?
# how about use unsupervised learning?
# without marker?
コード例 #4
0
from getFromPickleR import returnFuckMe, returnWTF
from simpleStorageR import storeFuckYou
import random
r, r1 = returnFuckMe(), returnWTF()


def halfOut(a, b, c):
    x, y = len(a), len(b)
    a0, a1 = [int(a[z] in c)
              for z in range(x)], [int(b[z] in c) for z in range(y)]
    return sum(a0) * sum(a1) >= (1 / 8)


# shall we do it again?
# how the f**k can we group these things?
# man this is crazy.
def crazy(r, r1):
    rx, rz = [], []
    for x in range(100):
        r0 = random.choice(r)
        # print(r0)
        # rz=[]
        for y in range(100):
            rk = random.choice(r1)
            if halfOut(*r0, random.choice(rk)):
                # print(rk)
                rz.append(rk)
        if rz != []:
            rx.append(rz)
            rz = []
    return rx
コード例 #5
0
from getFromPickleR import returnWTF
r=returnWTF()
while True:
    i=input("query package name: __END__ to end.\n")
    if i =="__END__":
        break
    try:
        print(r[i])
    except:
        print("not found!")