rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
mysql_settings["password"]) while True: try: c.start() except Exception, x: print x | mysql_settings["password"] ) c.start() | def main(): mysql_settings = config.config("mysql_config.txt") irc_settings = config.config("irc_config.txt") c = Logger( irc_settings["server"], int(irc_settings["port"]), irc_settings["channel"], irc_settings["nick"], mysql_settings["server"], int(mysql_settings["port"]), mysql_settings["database"], mysql_settings[... |
main() | irc_settings = config.config("irc_config.txt") reconnect_interval = irc_settings["reconnect"] while True: try: main() except irclib.ServerNotConnectedError: print "Server Not Connected! Let's try again!" time.sleep(float(reconnect_interval)) | def main(): mysql_settings = config.config("mysql_config.txt") irc_settings = config.config("irc_config.txt") c = Logger( irc_settings["server"], int(irc_settings["port"]), irc_settings["channel"], irc_settings["nick"], mysql_settings["server"], int(mysql_settings["port"]), mysql_settings["database"], mysql_settings[... |
try: self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor() except MySQLdb.Error, e: print "Error %d: %s" % (e.args[0], e.args[1]) exit(1) | self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor() | def __init__(self, server, port, database, user, password): try: self.conn = MySQLdb.connect ( host = server, port = port, user = user, passwd = password, db = database ) self.cursor = self.conn.cursor() except MySQLdb.Error, e: print "Error %d: %s" % (e.args[0], e.args[1]) exit(1) |
self.conn.close() | try: self.conn.close() except: return | def __del__(self): self.conn.close() |
print "Run crashed! Sorry...", e1, e2 | print "Run crashed! Sorry..." | def run(self, lib, state, tfinal=0.2): |
problem = RMHDShockTube1(L={'Pre':100.0}, Nx=256, CFL=0.8) driver = TestProblemDriver(problem) | problem = RMHDShockTube1(L={'Pre':10.0}) driver = TestProblemDriver(problem, Nx=256, CFL=0.8) | def compare_libs_1_and_2(): from pylab import show import rmhd problem = RMHDShockTube1(L={'Pre':100.0}, Nx=256, CFL=0.8) driver = TestProblemDriver(problem) state1 = rmhd.LibraryState() state2 = rmhd.LibraryState(mode_reconstruct=0) P1 = driver.run(rmhd._lib1, state1) P2 = driver.run(rmhd._lib2, state2) rmhd.vi... |
state2 = rmhd.LibraryState(mode_reconstruct=0) | state2 = rmhd.LibraryState(mode_reconstruct=1) | def compare_libs_1_and_2(): from pylab import show import rmhd problem = RMHDShockTube1(L={'Pre':100.0}, Nx=256, CFL=0.8) driver = TestProblemDriver(problem) state1 = rmhd.LibraryState() state2 = rmhd.LibraryState(mode_reconstruct=0) P1 = driver.run(rmhd._lib1, state1) P2 = driver.run(rmhd._lib2, state2) rmhd.vi... |
sr_shocktube() | compare_libs_1_and_2() | def compare_libs_1_and_2(): from pylab import show import rmhd problem = RMHDShockTube1(L={'Pre':100.0}, Nx=256, CFL=0.8) driver = TestProblemDriver(problem) state1 = rmhd.LibraryState() state2 = rmhd.LibraryState(mode_reconstruct=0) P1 = driver.run(rmhd._lib1, state1) P2 = driver.run(rmhd._lib2, state2) rmhd.vi... |
sunrise and sunset. This is useful if lead and lag timea are needed | sunrise and sunset. This is useful if lead and lag times are needed | def isNight(self, collar=0): """ Check if it is day or night. If the 'collar' keyword argument is changed it will skew the results to either before or after the real sunrise and sunset. This is useful if lead and lag timea are needed around the actual sunrise and sunset. |
ts = round((1000 * fn * int(fps[1])) / int(fps[0])) | ts = int(round((1000 * fn * int(fps[1])) / int(fps[0]))) | def Ts(fn,tc): """Returns timestamps (in ms) from a frame number and timecodes file.""" # CFR if tc[1] == 1: fps = rat.search(tc[0]).groups() if rat.search(tc[0]) else [re.search('(\d+)',tc[0]).group(0),'1'] ts = round((1000 * fn * int(fps[1])) / int(fps[0])) return [ts,] # VFR elif tc[1] >= 2: ts = linecache.getline(t... |
if o.input: audio.append(formatTime(fn1ts)) if len(fn2tsaud) == 1: audio.append(formatTime(fn2tsaud[0])) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... | |
if Trims2ts[0][0] == 0: | if Trims[0][0] == 0: | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
options.output = '%s.cut.mka' % options.input[-3:] | options.output = '%s.cut.mka' % re.search("(.*)\.\w*$",options.input).group(1) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', prog='vfr.py', version='VFR Chapter Creator 0.6.4', usage='%prog [options] infile.avs') p.add_option('--label', '-l', action="store", help="Look for a trim() state... |
o.output = '%s.cut.mka' % re.search("(.*)\.\w*$",o.input).group(1) | ret = re.search("(.*)\.\w*$",o.input) o.output = '%s.cut.mka' % ret.group(1) if ret else o.input | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
status += "Chapters file: %s%s\n" % o.chapters if o.chapters else "" | status += "Chapters file: %s%s\n" % (o.chapters," (%s)" % chapType if chapType else "") if o.chapters else "" | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
fn1 = int(Trims[i][0]) fn1ts = Ts(fn1,tc,tcType)[0] fn2 = int(Trims[i][1]) fn2ts = Ts(fn2,tc,tcType)[0] fn2tsaud = Ts(fn2+1,tc,tcType) | fn1 = int(Trims[i][0]) fn1ts = Ts(fn1,tc,tcType)[0] fn2 = int(Trims[i][1]) fn2ts = Ts(fn2,tc,tcType)[0] if o.input: fn2tsaud = Ts(fn2+1,tc,tcType) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
last = int(Trims[i-1][1])+1 lastts = Ts(last,tc,tcType)[0] | last = Trims2[i-1][1]+1 lastts = Trims2ts[i-1][1] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
offsetts += fn1ts-lastts | offsetts += fn1ts-lastts if offset else 0 | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
audio.append(formatTime(fn1ts,tcType)) if len(fn2tsaud) == 1: audio.append(formatTime(fn2tsaud[0],tcType)) | if o.input: audio.append(formatTime(fn1ts)) if len(fn2tsaud) == 1: audio.append(formatTime(fn2tsaud[0])) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
if o.verbose: print('Out timecodes: %s\n' % ', '.join(['(%s,%s)' % (formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType)) for i in range(len(Trims2ts))])) | if o.verbose: print('Out timecodes: %s\n' % ', '.join(['(%s,%s)' % (formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1])) for i in range(len(Trims2ts))])) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
if audio[0] == "00:00:00.000": | if Trims2ts[0][0] == 0: | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
EditionUID = random.randint(100000,1000000) | EditionUID = random.randint(10**5,10**6) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
[output.write(generateChap(formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType),i+1,chapType)) for i in range(len(Trims2ts))] | [output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapType)) for i in range(len(Trims2ts))] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
[output.write(generateChap(formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType),i+1,chapType)) for i in range(len(Trims2ts))] | [output.write(generateChap(formatTime(Trims2ts[i][0],1), formatTime(Trims2ts[i][1],1),i+1,chapType)) for i in range(len(Trims2ts))] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
def formatTime(ts,tcType): """Converts timestamps to timecodes""" s = ts // 1000 if tcType == 1 else ts // 1000000000 ms = ts % 1000 if tcType == 1 else ts % 1000000000 | def formatTime(ts,msp=None): """Converts ns timestamps to timecodes.""" s = ts / 10**9 | def formatTime(ts,tcType): """Converts timestamps to timecodes""" s = ts // 1000 if tcType == 1 else ts // 1000000000 ms = ts % 1000 if tcType == 1 else ts % 1000000000 m = s // 60 s = s % 60 h = m // 60 m = m % 60 return '{0:02d}:{1:02d}:{2:02d}.{3:03d}'.format(h, m, s, ms) |
return '{0:02d}:{1:02d}:{2:02d}.{3:03d}'.format(h, m, s, ms) | if msp: return '{:02.0f}:{:02.0f}:{:06.3f}'.format(h, m, s) else: return '{:02.0f}:{:02.0f}:{:012.9f}'.format(h, m, s) | def formatTime(ts,tcType): """Converts timestamps to timecodes""" s = ts // 1000 if tcType == 1 else ts // 1000000000 ms = ts % 1000 if tcType == 1 else ts % 1000000000 m = s // 60 s = s % 60 h = m // 60 m = m % 60 return '{0:02d}:{1:02d}:{2:02d}.{3:03d}'.format(h, m, s, ms) |
ts = int(round((1000 * fn * float(fps[1])) / int(fps[0]))) return [ts,] | ts = int(round((10**5 * fn * float(fps[1])) / int(fps[0])))*10**4 return [vTrunc(ts),] | def Ts(fn,tc,tcType=1): """Returns timestamps (in ms) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((1000 * fn * float(fps[1])) / int(fps[0]))) return [ts,] # VFR elif tcType >= 2: ts = linecache.... |
average += (int(float(linecache.getline(tc,lines-i))*1000000) - int(float(linecache.getline(tc,lines-i-1))*1000000)) | average += (int(float(linecache.getline(tc,lines-i))*10**6) - int(float(linecache.getline(tc,lines-i-1))*10**6)) | def Ts(fn,tc,tcType=1): """Returns timestamps (in ms) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((1000 * fn * float(fps[1])) / int(fps[0]))) return [ts,] # VFR elif tcType >= 2: ts = linecache.... |
lastTs = int(float(linecache.getline(tc,lines))*1000000) secdTs = int(float(linecache.getline(tc,lines-1))*1000000) | lastTs = int(float(linecache.getline(tc,lines))*10**6) secdTs = int(float(linecache.getline(tc,lines-1))*10**6) | def Ts(fn,tc,tcType=1): """Returns timestamps (in ms) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((1000 * fn * float(fps[1])) / int(fps[0]))) return [ts,] # VFR elif tcType >= 2: ts = linecache.... |
return [int(float(ts)*1000000),] | return [int(float(ts)*10**6),] | def Ts(fn,tc,tcType=1): """Returns timestamps (in ms) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((1000 * fn * float(fps[1])) / int(fps[0]))) return [ts,] # VFR elif tcType >= 2: ts = linecache.... |
options.output = '%s.%s.mka' % (options.input, args[0][:-4]) | options.output = '%s.cut.mka' % options.input | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', prog='vfr.py', version='VFR Chapter Creator 0.6.4', usage='%prog [options] infile.avs') p.add_option('--label', '-l', action="store", help="Look for a trim() state... |
for r in overrides: if i in r[0]: fps = r[1] | if overrides: for r in overrides: if i in r[0]: fps = r[1] | def parseTc(tcfile,tmp,last): tc = open(tcfile) ts = 0 ret = re.search('# timecode format (v\d)',tc.readline()) version = ret.group(1) if ret else sys.exit('file is not in a supported format') tmp = open(tmp,'w') if version == 'v1': tclines = tc.readlines() tc.close() ret = re.search('Assume (\d+(?:\.\d+)?)(?i)',tcline... |
if o.input: fn2tsaud = Ts(fn2+1,tc,tcType) | fn2tsaud = Ts(fn2+1,tc,tcType) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
lastts = Trims2ts[i-1][1] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... | |
elif tcType = 3: | elif tcType == 3: | def Ts(fn,tc,tcType=1): """Returns timestamps (in ns) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((10**5 * fn * float(fps[1])) / int(fps[0])))*10**4 return [vTrunc(ts),] # VFR elif tcType = 3: t... |
print("tc needs a list with timecode file and format determined by determineFormat()") | sys.exit("Ts() needs a list with timecode file and format determined by determineFormat()") | def Ts(fn,tc,tcType=1): """Returns timestamps (in ns) from a frame number and timecodes file.""" # CFR if tcType == 1: fps = rat.search(tc).groups() if rat.search(tc) else [re.search('(\d+)',tc).group(0),'1'] ts = int(round((10**5 * fn * float(fps[1])) / int(fps[0])))*10**4 return [vTrunc(ts),] # VFR elif tcType = 3: t... |
last = Trims2[i-1][1]+1 | last = int(Trims[i-1][1]) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
offset += fn1-last offsetts += fn1ts-lastts if offset else 0 | offset += fn1-(last+1) offsetts += fn1ts-lastts if fn1-(last+1) != 0 else 0 | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
[output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapType)) for i in range(len(Trims2ts))] | [output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapNames[i],chapType)) for i in range(len(Trims2ts))] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
[output.write(generateChap(formatTime(Trims2ts[i][0],1), formatTime(Trims2ts[i][1],1),i+1,chapType)) for i in range(len(Trims2ts))] | [output.write(generateChap(formatTime(Trims2ts[i][0],1), formatTime(Trims2ts[i][1],1),i+1,chapNames[i],chapType)) for i in range(len(Trims2ts))] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
def generateChap(start, end, chapter, type): | def generateChap(start, end, chapter, chaptername, type): | def generateChap(start, end, chapter, type): """Generates chapters""" # Matroska if type == 'MKV': return """ <ChapterAtom> <ChapterTimeStart>{}</ChapterTimeStart> <ChapterTimeEnd>{}</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Chapter {:02d}</ChapterString> <ChapterLanguage>{}</ChapterLanguage> </ChapterDisplay> <... |
<ChapterString>Chapter {:02d}</ChapterString> | <ChapterString>{}</ChapterString> | def generateChap(start, end, chapter, type): """Generates chapters""" # Matroska if type == 'MKV': return """ <ChapterAtom> <ChapterTimeStart>{}</ChapterTimeStart> <ChapterTimeEnd>{}</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Chapter {:02d}</ChapterString> <ChapterLanguage>{}</ChapterLanguage> </ChapterDisplay> <... |
"""[1:].format(start,end,chapter,"eng") | """[1:].format(start,end,chaptername,"eng") | def generateChap(start, end, chapter, type): """Generates chapters""" # Matroska if type == 'MKV': return """ <ChapterAtom> <ChapterTimeStart>{}</ChapterTimeStart> <ChapterTimeEnd>{}</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Chapter {:02d}</ChapterString> <ChapterLanguage>{}</ChapterLanguage> </ChapterDisplay> <... |
return 'CHAPTER{0:02d}={1}\nCHAPTER{0:02d}NAME=Chapter {0:02d}\n'.format(chapter,start) | return 'CHAPTER{0:02d}={1}\nCHAPTER{0:02d}NAME={2}\n'.format(chapter,start,chaptername) | def generateChap(start, end, chapter, type): """Generates chapters""" # Matroska if type == 'MKV': return """ <ChapterAtom> <ChapterTimeStart>{}</ChapterTimeStart> <ChapterTimeEnd>{}</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Chapter {:02d}</ChapterString> <ChapterLanguage>{}</ChapterLanguage> </ChapterDisplay> <... |
return '{0} Chapter {1:02d}\n'.format(start,chapter) | return '{0} {1}\n'.format(start,chaptername) | def generateChap(start, end, chapter, type): """Generates chapters""" # Matroska if type == 'MKV': return """ <ChapterAtom> <ChapterTimeStart>{}</ChapterTimeStart> <ChapterTimeEnd>{}</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Chapter {:02d}</ChapterString> <ChapterLanguage>{}</ChapterLanguage> </ChapterDisplay> <... |
ofps, max2 = parse_tc(o.ofps, int(Trims[-1][1])) | ofps = parse_tc(o.ofps)[0] | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.3', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if writeAvisynth else "")) p.add_option('--label', '-l', action="... |
def parse_tc(tcfile,last): | def parse_tc(tcfile,last=0): | def parse_tc(tcfile,last): """Parses a timecodes file or cfr fps. tcfile = timecodes file or cfr fps to parse last = number of frames to be created in v1 parsing """ ret = cfr_re.search(tcfile) if ret and not os.path.isfile(tcfile): type = 'cfr' num = Fraction(ret.group(1)) den = Fraction(ret.group(2)) if ret.group(... |
else: sys.exit("Couldn't get timestamps") | def get_ts(fn,tc,scale=0): """Returns timestamps from a frame number and timecodes file or cfr fps fn = frame number tc = (timecodes list or Fraction(fps),tc_type) scale default: 0 (ns) examples: 3 (µs); 6 (ms); 9 (s) """ scale = 9-scale tc, tc_type = tc if tc_type == 'cfr': ts = round(10**scale * fn * Fraction(tc.d... | |
old=get_ts(fn,old) | oldts=get_ts(fn,old) | def convert_fps(fn,old,new): """Returns a frame number from fps and ofps (ConvertFPS) fn = frame number old = original fps ('30000/1001', '25') new = output fps ('24000/1001', etc.) """ old=get_ts(fn,old) ofps=new[0] new=old/10**3/(ofps.denominator/ofps.numerator) new=new if math.floor(new) == math.floor(abs(new-0.2)... |
new=old/10**3/(ofps.denominator/ofps.numerator) | new=oldts/10**9/(ofps.denominator/ofps.numerator) | def convert_fps(fn,old,new): """Returns a frame number from fps and ofps (ConvertFPS) fn = frame number old = original fps ('30000/1001', '25') new = output fps ('24000/1001', etc.) """ old=get_ts(fn,old) ofps=new[0] new=old/10**3/(ofps.denominator/ofps.numerator) new=new if math.floor(new) == math.floor(abs(new-0.2)... |
fn1ts = vTrunc(Ts(fn1,tc,tcType)[0]) | fn1tsaud = vTrunc(Ts(fn1,tc,tcType)[0]) fn1ts = vTrunc(fn1tsaud) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
offsetts += fn1ts-lastts if fn1-(last+1) != 0 else 0 | offsetts += 0 if adjacent else fn1ts-lastts | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
audio.append(formatTime(fn1ts)) | if adjacent: del audio[-1] else: audio.append(formatTime(fn1tsaud)) | def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.2', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action... |
visibilities = {0:"public", 2:"private", 1:"protected"} | visibilities = {0:"public", 1:"private", 2:"protected"} | def end_render(self) : f = open(self.filename, "w") visibilities = {0:"public", 2:"private", 1:"protected"} |
send_receive(audit_packet) | send_receive(audit_packet % generate_tid()) | def generate_tid(): import random return random.randint(0, 65123) |
print "Send all messages... check wireshark for the last response" | print "Sent all messages... check wireshark for the last response" | def send_and_receive(packet): socket.sendto(packet, ("127.0.0.1", port)) try: data, addr = socket.recvfrom(4096) except socket.error, e: print "ERROR", e import sys sys.exit(0) return data |
hfg = np.histogram(log_fg, 256, new=True)[0] hbg = np.histogram(log_bg, 256, new=True)[0] | hfg = np.histogram(log_fg, 256, range=(lower,upper), new=True)[0] hbg = np.histogram(log_bg, 256, range=(lower,upper), new=True)[0] | def sum_of_entropies(image, mask, threshold): """Bin the foreground and background pixels and compute the entropy of the distribution of points among the bins """ mask=mask.copy() mask[np.isnan(image)] = False if not np.any(mask): return 0 # # Clamp the dynamic range of the foreground # minval = np.max(image[mask])/256... |
output_image = smoothed_image / bleed_over | output_image = smoothed_image / (bleed_over + np.finfo(float).eps) | def smooth_with_function_and_mask(image, function, mask): """Smooth an image with a linear function, ignoring the contribution of masked pixels image - image to smooth function - a function that takes an image and returns a smoothed image mask - mask with 1's for significant pixels, 0 for masked pixels This function... |
scind.mean(i, labels_per_point, indexes)) | scind.mean(i.astype(float), labels_per_point, indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
scind.mean(j, labels_per_point, indexes)) | scind.mean(j.astype(float), labels_per_point, indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
score[:,i] = score_zernike(zf, radii, labels, indexes)[0] | one_score = score_zernike(zf, radii, labels, indexes) score[:,i] = one_score[:,0] | def zernike(zernike_indexes,labels,indexes): """Compute the Zernike features for the labels with the label #s in indexes returns the score per labels and an array of one image per zernike feature """ # # "Reverse_indexes" is -1 if a label # is not to be processed. Otherwise # reverse_index[label] gives you the index i... |
r = scind.minimum(input, labels, index) if len(index) == 1: r = [r] return np.array(r) | return fix(scind.minimum(input, labels, index)) | def minimum(input, labels, index): r = scind.minimum(input, labels, index) if len(index) == 1: r = [r] return np.array(r) |
r = scind.maximum(input, labels, index) if len(index) == 1: r = [r] return np.array(r) | return fix(scind.maximum(input, labels, index)) | def maximum(input, labels, index): r = scind.maximum(input, labels, index) if len(index) == 1: r = [r] return np.array(r) |
rows_to_keep=np.argwhere(keep_me[a[:,0].astype(int)]).flatten() | rows_to_keep = np.argwhere(keep_me[a[:,0].astype(int)]) rows_to_keep = rows_to_keep.flatten().astype(int) | def convex_hull(labels, indexes=None): """Given a labeled image, return a list of points per object ordered by angle from an interior point, representing the convex hull. labels - the label matrix indexes - an array of label #s to be processed, defaults to all non-zero labels Returns a matrix and a vector. The matrix... |
v_indexes=np.argwhere(keep_me_vertices).flatten() | v_indexes=np.argwhere(keep_me_vertices).flatten().astype(int) | def minimum_enclosing_circle(labels, indexes = None, hull_and_point_count = None): """Find the location of the minimum enclosing circle and its radius labels - a labels matrix indexes - an array giving the label indexes to be processed hull_and_point_count - convex_hull output if already done. None = calculate return... |
scind.mean(i.astype(float), labels_per_point, indexes)) | scind.mean(i.astype(float), labels_per_point.astype(int), indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
scind.mean(j.astype(float), labels_per_point, indexes)) | scind.mean(j.astype(float), labels_per_point.astype(int), indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
labels_per_point = pixel_labels[:,2] | labels_per_point = np.zeros(len(pixel_labels), int) labels_per_point[:] = pixel_labels[:,2] | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
scind.mean(i.astype(float), labels_per_point.astype(int), indexes)) | scind.mean(i.astype(float), labels_per_point, indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
scind.mean(j.astype(float), labels_per_point.astype(int), indexes)) | scind.mean(j.astype(float), labels_per_point, indexes)) | def convex_hull_ijv(pixel_labels, indexes): '''Return the convex hull for each label using an ijv labeling pixel_labels: the labeling of the pixels in i,j,v form where i & j are the coordinates of a pixel and v is the pixel's label number indexes: the indexes at which to measure the convex hull Returns a matrix and a... |
print "Usage: python bootstrap-users.py file.json [--username=username] [--password=username] [--url=username] [--users=user1[,user2,...]] [--skip-users=user1[,user2,...]] [--no-dashboards] [--no-preferences] [--no-update-profile] [--no-avatars] [-d]" | print "Usage: python bootstrap-users.py file.json [--username=username] [--password=username] [--url=username] [--users=user1[,user2,...]] [--skip-users=user1[,user2,...]] [--no-dashboards] [--no-preferences] [--no-update-profile] [--no-avatars] [--create-only] [-d]" | def usage(): print "Usage: python bootstrap-users.py file.json [--username=username] [--password=username] [--url=username] [--users=user1[,user2,...]] [--skip-users=user1[,user2,...]] [--no-dashboards] [--no-preferences] [--no-update-profile] [--no-avatars] [-d]" |
opts, args = getopt.getopt(argv[1:], "hdu:p:U:", ["help", "username=", "password=", "url=", "users=", "skip-users=", "no-dashboards", "no-preferences", "no-update-profile", "no-avatars"]) | opts, args = getopt.getopt(argv[1:], "hdu:p:U:", ["help", "username=", "password=", "url=", "users=", "skip-users=", "no-dashboards", "no-preferences", "no-update-profile", "no-avatars", "create-only"]) | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
elif opt == 'no-dashboards': | elif opt == '--no-dashboards': | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
elif opt == 'no-preferences': | elif opt == '--no-preferences': | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
elif opt == 'no-update-profile': | elif opt == '--no-update-profile': | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
elif opt == 'no-avatars': | elif opt == '--no-avatars': set_avatars = False elif opt == '--create-only': set_dashboards = False set_prefs = False update_profile = False | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
if include_users is not None and u['userName'] not in include_users: users.remove(u) elif u['userName'] in skip_users: users.remove(u) | if (include_users is None or str(u['userName']) in include_users) and u['userName'] not in skip_users: create_users.append(u) for u in create_users: | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
print "Create %s user(s)" % (len(users)) sc.createUsers(users, skip_users=skip_users) | print "Create %s user(s)" % (len(create_users)) sc.createUsers(create_users, skip_users=skip_users) | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
for u in users: | for u in create_users: | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
for u in users: print "Log in (%s)" % (u['userName']) sc.doLogin(u['userName'], u['password']) try: if set_avatars: print "Setting profile image for user '%s'" % (u['userName']) if 'avatar' in u: try: sc.setProfileImage(u['userName'], thisdir + os.sep + str(u['avatar'])) except IOError, e: if e.errno == 2: pass else:... | for u in create_users: if set_avatars or update_profile or set_dashboards: print "Log in (%s)" % (u['userName']) sc.doLogin(u['userName'], u['password']) try: if set_avatars: print "Setting profile image for user '%s'" % (u['userName']) if 'avatar' in u: try: sc.setProfileImage(u['userName'], thisdir + os.sep + str(u[... | def main(argv): username = "admin" password = "admin" url = "http://localhost:8080/share" include_users = None skip_users = [ 'System' ] set_dashboards = True set_prefs = True update_profile = True set_avatars = True _debug = 0 if len(argv) > 0: # File name to load users from, or '-' for stdin filename = argv[0] # TO... |
return execute('jsr308_www_online=%s make -f %s checklinks' % (site_url, os.path.join(JSR308_LANGTOOLS, 'doc', 'Makefile')), | os.putenv('jsr308_www_online', site_url) return execute('make -f %s checklinks' % os.path.join(JSR308_LANGTOOLS, 'doc', 'Makefile'), | def checklinks(site_url=None): return execute('jsr308_www_online=%s make -f %s checklinks' % (site_url, os.path.join(JSR308_LANGTOOLS, 'doc', 'Makefile')), halt_if_fail=False) |
make_release(next_version, argv, real=True) | make_release(next_version, ant_args, real=True) | def main(argv): append_to_PATH() print("Making a new release of the Checker Framework!") # Infer version curr_version = current_distribution() print("Current release is %s" % curr_version) suggested_version = increment_version(curr_version) next_version = raw_input("Suggested next release: (%s): " % suggested_version)... |
import doctest import unittest for test in _find_test_files(): test_suite = doctest.DocFileSuite(test) test_runner.run(test_suite) | doctest.testmod() test_suite = doctest.DocFileSuite(*_find_test_files()) test_runner.run(test_suite) | def _test(test_runner): import doctest import unittest for test in _find_test_files(): test_suite = doctest.DocFileSuite(test) test_runner.run(test_suite) |
test_runner = unittest.TextTestRunner() | test_runner = unittest.TextTestRunner(verbosity=2) | def _test(test_runner): import doctest import unittest for test in _find_test_files(): test_suite = doctest.DocFileSuite(test) test_runner.run(test_suite) |
test_suite = doctest.DocFileSuite(_find_test_files()[0]) test_runner.run(test_suite) | for test in _find_test_files(): test_suite = doctest.DocFileSuite(test) test_runner.run(test_suite) | def _test(test_runner): import doctest import unittest test_suite = doctest.DocFileSuite(_find_test_files()[0]) test_runner.run(test_suite) # doctest.NORMALIZE_WHITESPACE # doctest.testmod() # Or put tests into an external text file and use # doctest.DocFileSuite() # See: http://en.wikipedia.org/wiki/Doctest # and: ht... |
write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete ) | write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete, startSuffix = 1000000 ) | def test_sso_deployment(): system_tests_common.test_failed = False write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete ) write_thr1 = create_and_start_thread ( write_loop ) non_retrying_write_loop = lambda: iterat... |
non_retrying_write_loop = lambda: iterate_n_times( 10000, set_get_and_delete ) | non_retrying_write_loop = lambda: iterate_n_times( 10000, set_get_and_delete, startSuffix = 2000000 ) | def test_sso_deployment(): system_tests_common.test_failed = False write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete ) write_thr1 = create_and_start_thread ( write_loop ) non_retrying_write_loop = lambda: iterat... |
p.qpackage.addDependency( 'pylabs.org', dep, [q.enumerators.PlatformType.LINUX64], minversion=new_version, maxversion=new_version ) | p.qpackage.addDependency( 'pylabs.org', dep, [q.enumerators.PlatformType.LINUX64], minversion=new_version, maxversion=new_version, dependencytype=q.enumerators.DependencyType4.RUNTIME) p.qpackage.addDependency( 'qpackages.org', 'testrunner', [q.enumerators.PlatformType.LINUX64], dependencytype=q.enumerators.DependencyT... | def createNewPackage( package_name, package_description, old_version, new_version) : pkg = q.qp.createNewQPackage( 'pylabs.org', package_name, new_version, package_description , ['linux64'] ) pkg_meta_dir = pkg.getPathMetadata() prev_pkg = i.qp.find( package_name, version=old_version ).qpackage prev_pkg_meta_dir = pre... |
write_loop = lambda: iterate_n_times( 100000, retrying_set_get_and_delete, failure_max=2*restart_iter_cnt, valid_exceptions=[ArakoonSockNotReadable] ) | write_loop = lambda: iterate_n_times( 100000, retrying_set_get_and_delete, failure_max=2*restart_iter_cnt, valid_exceptions=[ArakoonSockNotReadable,ArakoonNotFound] ) | def test_restart_master_long (): restart_iter_cnt = 10 write_loop = lambda: iterate_n_times( 100000, retrying_set_get_and_delete, failure_max=2*restart_iter_cnt, valid_exceptions=[ArakoonSockNotReadable] ) restart_loop = lambda: delayed_master_restart_loop( restart_iter_cnt , 1.5*lease_duration ) create_and_wait_for_th... |
write_thr2 = create_and_wait_for_thread_list ( large_write_loop ) | write_thr2 = create_and_wait_for_thread_list ( [ large_write_loop ] ) | def test_sso_deployment(): system_tests_common.test_failed = False write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete ) write_thr1 = create_and_start_thread ( write_loop ) non_retrying_write_loop = lambda: iterat... |
create_and_wait_for_thread_list ( large_write_loop ) | create_and_wait_for_thread_list ( [ large_write_loop ] ) | def test_sso_deployment(): system_tests_common.test_failed = False write_loop = lambda: iterate_n_times( 10000, retrying_set_get_and_delete ) large_write_loop = lambda: iterate_n_times( 280000, retrying_set_get_and_delete, startSuffix = 1000000 ) write_thr1 = create_and_start_thread ( write_loop ) non_retrying_write_... |
if configDragon.conf is None: | if configDragon.config is None: | def handler(req): "Process XML_RPC" if configDragon.conf is None: doSetup(req) # Log the request if req.headers_in.has_key('User-Agent'): userAgent = req.headers_in['User-Agent'] else: userAgent = "None" log.info("%s - %s - %s" % (req.get_remote_host(apache.REMOTE_NOLOOKUP), userAgent, req.the_request)) if not req.... |
if not type(method_ret) is TupleType: method_ret = (method_ret, ) | method_ret = (method_ret, ) | def handler(req): "Process XML_RPC" if configDragon.conf is None: doSetup(req) # Log the request if req.headers_in.has_key('User-Agent'): userAgent = req.headers_in['User-Agent'] else: userAgent = "None" log.info("%s - %s - %s" % (req.get_remote_host(apache.REMOTE_NOLOOKUP), userAgent, req.the_request)) if not req.... |
logging.FileHandler.__init__(self, filename, mode, encoding) | logging.FileHandler.__init__(self, filename) | def __init__(self, filename, mode='a', encoding=None): # XXX: The delay option removed to work with python < 2.6 logging.FileHandler.__init__(self, filename, mode, encoding) if not os.path.exists(self.baseFilename): self.dev, self.ino = -1, -1 else: stat = os.stat(self.baseFilename) self.dev, self.ino = stat[ST_DEV], s... |
print "d: %s" % d print "bits: %s" % field | def getAccess(self, userid, dept_id): """Return the bitfield representing this users access level. This does some looping to calculate Permissions based on inhairited permissions.""" | |
ip = cherrypy.request.remote.ip | try: ip = cherrypy.request.remote.ip except AttributeError: ip = cherrypy.request.remote_addr | def getAddress(apiVersion): """Return the ip/fqdn address pair of the calling client. This is the address as viewed from the RLMTools server.""" if apache is not None: ip = req.get_remote_host(apache.REMOTE_NOLOOKUP) else: # Part of cherrypy test harness ip = cherrypy.request.remote.ip try: addr = socket.gethostbyad... |
s = server.Server(apiVersion, fqdn) | if apiVersion > 0: s = server.Server(apiVersion, fqdn, uuid="foobarbaz") else: s = server.Server(apiVersion, fqdn) | def initHost(apiVersion, secret, fqdn): """API call for Web-Kickstart to initialize a host in the database. Protected by the knowing of a secret.""" s = server.Server(apiVersion, fqdn) if not s.verifySecret(secret): log.warning("initHost() called with bad secret") return 1 s.initHost(fqdn, support=1) # returns host_... |
installDate = self.cursor.fetchone()[0] | installDate = result['installdate'] | def register(self, publicKey, dept, version, rhnid, sid): """Workstation requests registration. Check DB and register host as appropiate. On success 0 is returned, otherwise a non-zero error code is returned.""" # ok..we have no data for the client lets make sure our DB looks ok if self.isRegistered() != None: # Wha... |
return hostid, sid | return hostid, sess.sid | def initHost(self, fqdn, support, blessing=False): """Logs a newly installing host. To work with Web-Kickstart. FQDN is the FQDN of the host we are installing. A secret is used to auth web-kickstart or an admin.""" |
if (self._glowColor is not None or self.isOrphan()) and self._shape is not None and (not isinstance(self._shape, UnitShape) or w > 0.0 or h > 0.0 or d > 0.0): | if (self._glowColor is not None or self.isOrphan()) and self._shape is not None and (not isinstance(self._shape, UnitShape) and w > 0.0 and h > 0.0 and d > 0.0): | def _updateGlow(self): # Remove any previous glow. if self._glowNode is not None: self.sgNode.removeChild(self._glowNode) self._glowNode = None self._glowNodeMaterial = None self._glowShape = None # Add a new glow if we have a glow color and a non-empty shape. w, h, d = self.size() if (self._glowColor is not None or s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.