User:Ryuki4716/NoQuote

QfreeDubKap
is much simpler than Quote-manipulating versions. QfreeDubKap calls gWafers to create a SKELETON and W2, and populate WaferDict. Then it traverses the SKELETON list, calling Insetter to propose an Extension for each L/Rpair in SKELETON. Detoke pretty-prints the SynTex, the Autopsy checks for Plages.

def QfreeDubKap(n): global SynTexList HitsList=[]       #holds raw THOTs before splcing onto SynTexList SynTexList=[]        #THOTs properly spliced onto TOT cctr=0            #iteration counter for printing gWafers(n)    #is a wrapper for bookWafers which compiles #WaferDicts per Quote specs #print("SKELETON: ", SKELETON) for q in range(0,len(SKELETON)-1): cctr +=1 extension=Insetter(Heads(SKELETON[q]),Heads(SKELETON[q+1])) print("extension: ", extension) HitsList.append(extension) #print("HitsList: ", HitsList) for q in HitsList: SynTexList=SynTexList+q[:-1] #print("SynTexList: ",SynTexList) print(QuoteDetoke(SynTexList))

Insetter
returns an Extension randomly chosen from WaferD. def Insetter(L,R):   #Feb6** #print("InsetterL: ", L,"InsetterR: ",R) ret=[] ret.extend(WaferD[(L,R,8)]) ret.extend(WaferD[(L,R,7)]) if len(ret)>0: q=random.randint(0,len(ret)-1) return ret[q] return 0,["*","*","* Linsetter failed"]        #else announce failure

bookWafers
populates WaferD with Candidates from SliceDict of certain lengths. def bookWafers(Left,Right): sdctr=0                               #Feb6* for W in SliceDict: sdctr +=1 for q in range(6,9): if (W[0]==Left)and (W[q]==Right): WaferD[(Left, Right,q+1)].append(list(W[:q+1]))

gWafers
calls gLRpairlist to generate a SKELETON, then return a list of unique heads-only pairs. Then gWafers calls bookWafers to populate WafersD for each pair. def gWafers(n):       #Feb7* global SKELETON, W2            W2=gLRpairlist(n)       #generate a SKELETON, then a unique set of L/R pairs print("gWafers W2: ", W2) WaferD.clear   #clear Wafer Dicts for x in range(len(W2)):  #book Wafers into Dicts Front,Back=W2[x] bookWafers(Front, Back)