コード例 #1
0
# how about check it in directed graph?
# or regraph the whole thing?
# what the f**k are you thinking?
def getNext(a, b):
    x = random.choice(a)
    return x, list(b.neighbors(x))


# def recursiveGet(a, b, c,d):
#   if
"""
s=nx.read_sparse6("randomFuck.s6")"""
s = nx.read_gpickle("randomFuck.gpickle")
# print(s.nodes())
# print(s.edges())
p, p1 = list(s.nodes()), []
# print(type(p))
# this is node.
# the total nodes.
# p1=random.choice()
# man what the f**k is this?
# get edges?
for p0 in p:
    p2 = list(s.neighbors(p0))
    p1.append([p0, p2])
p1 = list(sorted(p1, key=(lambda x: -len(x[1]))))
storeAList(p1)
# for x in p1:
#   print("________________________________________________________________")
#   print(x)
#   # randomly select successors.
コード例 #2
0
ファイル: brief_report.py プロジェクト: Trixter9994/lazero
    with open("piplist.log") as f:
        g = f.read()
        h = g.split("\n")[2:]
        j = {}
        i = []
        for x in h:
            try:
                y = re.findall(r"^[a-zA-Z0-9\._\-]+", x)[0]
                #            print(y)
                i.append(y)
            except:
                pass
#        print(i,len(i))
        l = []
        for x in i:
            if len(x) > 1:
                l.append("pip3 show " + x)
        l = wex(l, 10)
    freeze_support()
    for msg in l:
        print("\n".join(msg))
        x0 = parallel(len(msg), getOutput, msg)
        x0 = [(msg[x], x0[x]) for x in range(len(msg))]
        for x, x1 in x0:
            ms = re.findall(r"[a-zA-Z0-9\._\-]+$", x)[0]
            j.update({ms: x1.decode()})
            print("processed: {}".format(x))
            print(x1.decode())
    storeAList(j)
    print("brief stored.")
コード例 #3
0
            return False
    return True


def latin(a):
    b0, b1 = len(a), 0
    for b in a:
        if "LATIN" in b and "FULLWIDTH" not in b:
            b1 += 1
    return 0.7 < (b1 / b0 + 0.1)


u0 = lambda y: [unicode_charnames.charname(x) for x in y]
drx = {"control": [], "stopword": []}
for gf in range(len(fg)):
    u = getShit(fg[gf])
    for u1 in u:
        ux = u0(u1)
        if probe(ux) or latin(ux):
            # drx["stopword"].append(u1)
            drx["stopword"].append(u1)
        else:
            for y in u1:
                drx["control"].append(y)
drx["stopword"] = hash(drx["stopword"])
drx["control"] = hash(drx["control"] + drm)
storeAList(drx)
print(drx)
# all blank chars to space?
# print(u1)
# just how the f**k can we do this?
コード例 #4
0
ファイル: util.py プロジェクト: Trixter9994/lazero
# oh shit!
# randomly select the core?
# alert! max workload is fixed and therefore not negotiable.
# must select most notified shits for all.
s = readLikeHuman.Meta(0)
s0 = s.Meta0()
s0v2 = s.Meta0v2().tolist()
# notice that this is the matrix.
# first let's analyze this sequence.
m = metaStack.Meta([4, 2])
# generalize is a wrong choice.
# we shall take half of all matricies.
s1 = len(s0)
#s0m=Linkage(list(s0v2))
#print(Linkage(s0v2))

#f=generalize(s0v2,0)
# the first column is definitely meaningless for identical matricies.

#print(f)

f = list(map((lambda x: wrapperII(x.tolist(), 5)), generalize(s0v2, 0)))

storeAList(f)

# the meaning of the matrix?
#print(f)

# the f*****g scale?
# function needed
コード例 #5
0
from simpleStorageR import storeAList
def cockShock(f****e):
    with open(f****e,"r") as s:
        rk=s.read().replace('\n',' ')
#    print(rk)
        so=re.findall(r"'''CREATE TABLE[^']+",rk,re.MULTILINE)[0][3+6+7:]
#        print(so)
        sd=re.match(r'^\w+',so).group(0)
#        print(sd)
        rn=so.replace(sd,'')
#        print(rn)
        sv=re.findall(r'^.+CONSTRAINT',rn)[0].replace("CONSTRAINT","")
#        print(sv)
        svd=list(filter((lambda x : x!=""),sv.split(',')))
        lamb=(lambda x: re.findall(r"\w+",x)[0])
        lambs=(lambda x: re.findall(r"\w+",x) !=[])
#        print(svd)
        svg=list(map((lambda x: lamb(x)),list(filter((lambda x:lambs(x)),svd))))
#        print(svg)
    return [sd,svg]
    # sample of metacoding
    # I need transformation now!
dickHead=['make0.py','make1.py','make2.py']
a=cockShock(dickHead[0])
b=cockShock(dickHead[1])
c=cockShock(dickHead[2])
'''print(a)
print("--spliter--")
print(b)'''
storeAList([b,c,a])
コード例 #6
0
#find_code_3 = graph.match_one(  label="Person",  property_key="name", # property_value="test_node_2")

"""如果已经确定了一个节点或者关系,想找到和它相关的关系和节点,
就可以使用match和match_one"""
#
# find_relationship = graph.match_one(start_node=find_code_1,end_node=find_code_3,bidirectional=False)
# print(find_relationship)

def matchNeighbor():
    k0=[]
    match_relation =graph.run("""MATCH (a:directory) WHERE NOT ()-->(a) WITH a MATCH p=(a)-[*]->(b) WHERE b.id=1 RETURN p""")
            #graph.run("""MATCH (n:key{name:'"""+k+"""'})<--(r) RETURN r;""")]
#    for m in match_relation:
    for i in list(match_relation):
#         print(i)
#     print(dir(i))
#     print(type(i))
        k0.append(list(map((lambda x: x["name"]),i[0].nodes)))
    return k0
#     i['count']+=1
#     graph.push(i)

storeAList(matchNeighbor())
# print("1111111111111111")
# # print(graph)
# print(test_node_1)
# print(test_node_2)
# print(node_2_call_node_1)
# print(node_1_call_node_2)
コード例 #7
0
        #    print(rk)
        so = re.findall(r"'''CREATE TABLE[^']+", rk,
                        re.MULTILINE)[0][3 + 6 + 7:]
        #        print(so)
        sd = re.match(r'^\w+', so).group(0)
        #        print(sd)
        rn = so.replace(sd, '')
        #        print(rn)
        sv = re.findall(r'^.+CONSTRAINT', rn)[0].replace("CONSTRAINT", "")
        #        print(sv)
        svd = list(filter((lambda x: x != ""), sv.split(',')))
        lamb = (lambda x: re.findall(r"\w+", x)[0])
        lambs = (lambda x: re.findall(r"\w+", x) != [])
        #        print(svd)
        svg = list(
            map((lambda x: lamb(x)), list(filter((lambda x: lambs(x)), svd))))


#        print(svg)
    return [sd, svg]
    # sample of metacoding
    # I need transformation now!
dickHead = ["makeDatabase.py", "makeGroupingDatabase.py", "makeAnother.py"]
a = cockShock(dickHead[0])
b = cockShock(dickHead[1])
c = cockShock(dickHead[2])
'''print(a)
print("--spliter--")
print(b)'''
storeAList([a, b, c])
コード例 #8
0
        so = re.findall(r"'''CREATE TABLE[^']+", rk,
                        re.MULTILINE)[0][3 + 6 + 7:]
        #        print(so)
        sd = re.match(r'^\w+', so).group(0)
        #        print(sd)
        rn = so.replace(sd, '')
        #        print(rn)
        sv = re.findall(r'^.+CONSTRAINT', rn)[0].replace("CONSTRAINT", "")
        #        print(sv)
        svd = list(filter((lambda x: x != ""), sv.split(',')))
        lamb = (lambda x: re.findall(r"\w+", x)[0])
        lambs = (lambda x: re.findall(r"\w+", x) != [])
        #        print(svd)
        svg = list(
            map((lambda x: lamb(x)), list(filter((lambda x: lambs(x)), svd))))


#        print(svg)
    return [sd, svg]
    # sample of metacoding
    # I need transformation now!
dickHead = ['makeDB0.py']
a = cockShock(dickHead[0])
'''b=cockShock(dickHead[1])
c=cockShock(dickHead[2])
d=cockShock(dickHead[3])'''
'''print(a)
print("--spliter--")
print(b)'''
storeAList([a])
コード例 #9
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?
コード例 #10
0
        so = re.findall(r"'''CREATE TABLE[^']+", rk,
                        re.MULTILINE)[0][3 + 6 + 7:]
        #        print(so)
        sd = re.match(r'^\w+', so).group(0)
        #        print(sd)
        rn = so.replace(sd, '')
        #        print(rn)
        sv = re.findall(r'^.+CONSTRAINT', rn)[0].replace("CONSTRAINT", "")
        #        print(sv)
        svd = list(filter((lambda x: x != ""), sv.split(',')))
        lamb = (lambda x: re.findall(r"\w+", x)[0])
        lambs = (lambda x: re.findall(r"\w+", x) != [])
        #        print(svd)
        svg = list(
            map((lambda x: lamb(x)), list(filter((lambda x: lambs(x)), svd))))


#        print(svg)
    return [sd, svg]
    # sample of metacoding
    # I need transformation now!
dickHead = ['makeDB0.py', 'makeDB1.py', 'makeDB2.py', 'makeDB3.py']
a = cockShock(dickHead[0])
b = cockShock(dickHead[1])
c = cockShock(dickHead[2])
d = cockShock(dickHead[3])
'''print(a)
print("--spliter--")
print(b)'''
storeAList([b, c, a, d])
コード例 #11
0
from simpleStorageR import storeAList
def cockShock(f****e):
    with open(f****e,"r") as s:
        rk=s.read().replace('\n',' ')
#    print(rk)
        so=re.findall(r"'''CREATE TABLE[^']+",rk,re.MULTILINE)[0][3+6+7:]
#        print(so)
        sd=re.match(r'^\w+',so).group(0)
#        print(sd)
        rn=so.replace(sd,'')
#        print(rn)
        sv=re.findall(r'^.+CONSTRAINT',rn)[0].replace("CONSTRAINT","")
#        print(sv)
        svd=list(filter((lambda x : x!=""),sv.split(',')))
        lamb=(lambda x: re.findall(r"\w+",x)[0])
        lambs=(lambda x: re.findall(r"\w+",x) !=[])
#        print(svd)
        svg=list(map((lambda x: lamb(x)),list(filter((lambda x:lambs(x)),svd))))
#        print(svg)
    return [sd,svg]
    # sample of metacoding
    # I need transformation now!
dickHead=["makeGroupingDatabase.py","makeAnother.py"]
a=cockShock(dickHead[0])
b=cockShock(dickHead[1])
#c=cockShock(dickHead[2])
'''print(a)
print("--spliter--")
print(b)'''
storeAList([a,b])