rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
for karg in build_sh_spec['kargs'][0]: build_sh_options += ' -k "%s"'%karg
if len(build_sh_spec['kargs']) > 0: for karg in build_sh_spec['kargs'][0]: build_sh_options += ' -k "%s"'%karg
def build_command(self, node_type, build_sh_spec, node_image, type, floppy_file, log_file):
465b8a21950bdfc9cb670656cbab951f353d85a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/465b8a21950bdfc9cb670656cbab951f353d85a9/GetBootMedium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 3076, 12, 2890, 16, 756, 67, 723, 16, 1361, 67, 674, 67, 2793, 16, 756, 67, 2730, 16, 618, 16, 284, 16884, 2074, 67, 768, 16, 613, 67, 768, 4672, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 3076, 12, 2890, 16, 756, 67, 723, 16, 1361, 67, 674, 67, 2793, 16, 756, 67, 2730, 16, 618, 16, 284, 16884, 2074, 67, 768, 16, 613, 67, 768, 4672, 2, -100, -100, -100, -10...
def runDashlet(self, script): if not isinstance(self._job.get("dashlet", False), types.DictType): return return
def runDashlet(self, script):
37ff735a15d950e877ac68861405f1893d4ff769 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/37ff735a15d950e877ac68861405f1893d4ff769/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 21893, 1810, 12, 2890, 16, 2728, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 21893, 1810, 12, 2890, 16, 2728, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if v.has_key(key):
if key in v:
def measure(self, v, rf, off=False): """Create/convert a measure using the frame state set on the measures server instance. `v` The measure to convert
d38898ee7af73aa5b71e4eeaaf5344b8a4c61bb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/d38898ee7af73aa5b71e4eeaaf5344b8a4c61bb2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6649, 12, 2890, 16, 331, 16, 9075, 16, 3397, 33, 8381, 4672, 3536, 1684, 19, 6283, 279, 6649, 1450, 326, 2623, 919, 444, 603, 326, 22692, 1438, 791, 18, 225, 1375, 90, 68, 1021, 6649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6649, 12, 2890, 16, 331, 16, 9075, 16, 3397, 33, 8381, 4672, 3536, 1684, 19, 6283, 279, 6649, 1450, 326, 2623, 919, 444, 603, 326, 22692, 1438, 791, 18, 225, 1375, 90, 68, 1021, 6649, ...
print >> sys.stderr, 'size mismatch %d != %d' % (total_size, expected_size)
print >> sys.stderr, 'size mismatch %d != %d' % (total_size, expected_size)
def main(): try: opts, args = getopt.getopt(sys.argv[1:], 'hfgstGSd:p:o:a:A:k:') except getopt.error, msg: usage(2, msg) # build the default socket filename from environment variables filename = os.path.expanduser('~/.sbbnsock-'+socket.gethostname()) action_options = [] server_options = [] for opt, arg in opts: if op...
84fbeb4e80b2c67753ed4a88cdc07298da5ae23f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/84fbeb4e80b2c67753ed4a88cdc07298da5ae23f/sb_bnfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 2137, 334, 16113, 72, 30, 84, 30, 83, 30, 69, 30, 37, 30, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 76, 2137, 334, 16113, 72, 30, 84, 30, 83, 30, 69, 30, 37, 30, 79, ...
return {'policy': None, 'javaClass': 'com.untangle.uvm.security.Tid', 'id': tid, 'nodeName': None, 'name': "%d" % ( tid ) }
return {'javaClass': 'com.untangle.uvm.security.Tid', 'id': tid, 'name': "%d" % ( tid ) }
def buildTid(self,tid): tid = int( tid ) return {'policy': None, 'javaClass': 'com.untangle.uvm.security.Tid', 'id': tid, 'nodeName': None, 'name': "%d" % ( tid ) }
5ba0ca8e893c9efe082c8fe71b9e22c1698db581 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/5ba0ca8e893c9efe082c8fe71b9e22c1698db581/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 56, 350, 12, 2890, 16, 18081, 4672, 11594, 273, 509, 12, 11594, 262, 327, 13666, 5086, 4278, 599, 16, 296, 6290, 797, 4278, 296, 832, 18, 10032, 4341, 18, 89, 3489, 18, 7462, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 56, 350, 12, 2890, 16, 18081, 4672, 11594, 273, 509, 12, 11594, 262, 327, 13666, 5086, 4278, 599, 16, 296, 6290, 797, 4278, 296, 832, 18, 10032, 4341, 18, 89, 3489, 18, 7462, 18,...
if len(dbuf) > 0: output += self.dice(dbuf)
if len(dbuf) > 0: roll=self.dice(dbuf) if roll: color.append(ansi(COLOR['gray'])) output += color[-1] + '[' + roll[0] + ': ' color.append(ansi(COLOR['green'])) output += color[-1] + roll[1] color.pop() output += color[-1] + ']' color.pop() output += color[-1] else: output += dbuf
def wrap(self,data): ''' Miten ois v2 mika lukee koko paskan kirjain kirjaimelta -> varien sailytys onnistuis ''' # First talking quote = False offtopic = False dice = False cmode = False output = '' dbuf = '' cbuf = '' color = [ansi(COLOR['white'])] print data ''' for tok in data.split(' '): if len(tok) == 0: print "...
0c2660358aa59fdccd838709058972b485f435cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13227/0c2660358aa59fdccd838709058972b485f435cd/ropeserve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2890, 16, 892, 4672, 9163, 490, 305, 275, 320, 291, 331, 22, 312, 21256, 328, 19445, 1340, 417, 601, 83, 293, 835, 304, 417, 481, 78, 530, 417, 481, 78, 4581, 8967, 317, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 2890, 16, 892, 4672, 9163, 490, 305, 275, 320, 291, 331, 22, 312, 21256, 328, 19445, 1340, 417, 601, 83, 293, 835, 304, 417, 481, 78, 530, 417, 481, 78, 4581, 8967, 317, 13...
We compute with the L-series of $E_{16}$:
We compute with the L-series of $E_{16}$ and then $E_{20}$:
def eisenstein_series_Lseries(weight, prec=53, max_imaginary_part=0, max_asymp_coeffs=40): r""" Return the L-series of the weight $2k$ Eisenstein series on $\SL_2(\Z)$. This actually returns an interface to Tim Dokchitser's program for computing with the L-series of the Eisenstein series INPUT: weight -- even integer...
0047302c06dcb788aebf2d93e9df325067845409 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0047302c06dcb788aebf2d93e9df325067845409/eis_series.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 291, 275, 334, 13685, 67, 10222, 67, 48, 10222, 12, 4865, 16, 13382, 33, 8643, 16, 943, 67, 15374, 2101, 67, 2680, 33, 20, 16, 943, 67, 15762, 1291, 67, 30463, 33, 7132, 4672, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 291, 275, 334, 13685, 67, 10222, 67, 48, 10222, 12, 4865, 16, 13382, 33, 8643, 16, 943, 67, 15374, 2101, 67, 2680, 33, 20, 16, 943, 67, 15762, 1291, 67, 30463, 33, 7132, 4672, 4...
time.sleep(240)
time.sleep(300)
def main(argv=None): if argv is None: argv = sys.argv usage = "-w" parser = OptionParser(usage) parser.add_option("-v", "--variation_test", dest="vary_mc_smt", default=False, action="store_true", help="Vary sched_mc & sched_smt. \ -c and -t inputs are initial value of sched_mc & sched_smt") parser.add_option("-c", "--...
4abd883d0e112ea2f9001ec4dae55fcf8dbbea8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11457/4abd883d0e112ea2f9001ec4dae55fcf8dbbea8c/cpu_consolidation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 225, 4084, 273, 3701, 91, 6, 2082, 273, 18862, 12, 9167, 13, 2082, 18, 1289, 67, 3482, 2932, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 33, 7036, 4672, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 225, 4084, 273, 3701, 91, 6, 2082, 273, 18862, 12, 9167, 13, 2082, 18, 1289, 67, 3482, 2932, 17, ...
ReplaceLineInFile( "./nautilussvn/DEBIAN/postinst", 'ln -s /usr/lib/nautilus', 'ln -s /usr/lib/nautilus/extensions-1.0/python/%s/NautilusSvn.py /usr/lib/nautilus/extensions-1.0/python/NautilusSvn.py\n'%VERSION )
patterns = { 'include': [ '.*py$', '.*xrc$', 'svn.ico' ], 'exclude': [ 'setup.py' ] }
def ReplaceLineInFile(filename, target, subst): """ Replaces lines in *filename* containing *target* with *subst* """ st = open(filename, "r").readlines() out = [] for line in st: if target in line: line = subst out.append(line) f = open(filename, "w") for s in out: f.write(s)
9d1ebf45598c95f5da9ed897f331bdc0639b07db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5119/9d1ebf45598c95f5da9ed897f331bdc0639b07db/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6910, 1670, 382, 812, 12, 3459, 16, 1018, 16, 27750, 4672, 3536, 868, 11350, 2362, 316, 380, 3459, 14, 4191, 380, 3299, 14, 598, 380, 1717, 334, 14, 3536, 384, 273, 1696, 12, 3459, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6910, 1670, 382, 812, 12, 3459, 16, 1018, 16, 27750, 4672, 3536, 868, 11350, 2362, 316, 380, 3459, 14, 4191, 380, 3299, 14, 598, 380, 1717, 334, 14, 3536, 384, 273, 1696, 12, 3459, 16,...
cont = filecontents.FromFile(gzip.GzipFile(None, "r", fileobj = f))
cont = filecontents.FromFile(gzip.GzipFile(None, 'r', fileobj = f))
def __init__(self, fileName, skipValidate = 1): if type(fileName) is str: f = open(fileName, "r") csf = filecontainer.FileContainer(f) else: csf = filecontainer.FileContainer(fileName)
5e116c568dc7a66c94d65f172a930733bbb3f886 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/5e116c568dc7a66c94d65f172a930733bbb3f886/changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3968, 16, 2488, 4270, 273, 404, 4672, 309, 618, 12, 17812, 13, 353, 609, 30, 284, 273, 1696, 12, 17812, 16, 315, 86, 7923, 2873, 74, 273, 585, 3782, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3968, 16, 2488, 4270, 273, 404, 4672, 309, 618, 12, 17812, 13, 353, 609, 30, 284, 273, 1696, 12, 17812, 16, 315, 86, 7923, 2873, 74, 273, 585, 3782, 18...
def visibleChildren(self, level): ls = []
def intersects(self, r): if self.y2 < r.y1: return False if self.y1 > r.y2: return False if self.x2 < r.x1: return False if self.x1 > r.x2: return False return True
def visibleChildren(self, level): ls = []
e331d79c32a1c48a63843972e627a7a7f53d919c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5063/e331d79c32a1c48a63843972e627a7a7f53d919c/comics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6021, 4212, 12, 2890, 16, 1801, 4672, 7180, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6021, 4212, 12, 2890, 16, 1801, 4672, 7180, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.event.clicked_object = None
def _helper_glyph_button_up(self, event_name): ex, ey = self.event.disp_pos ret = self._pick_glyph(ex,ey) if ret: pc, psp = ret self.event.name = event_name pc.notify(event_name) else: self.event.clicked_object = None self.event.name = event_name self.notify(event_name)
45c54a8cf3bb4d9c412053bee57429cdc5d3b11a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4494/45c54a8cf3bb4d9c412053bee57429cdc5d3b11a/devide_canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4759, 67, 19426, 67, 5391, 67, 416, 12, 2890, 16, 871, 67, 529, 4672, 431, 16, 12739, 273, 365, 18, 2575, 18, 25453, 67, 917, 325, 273, 365, 6315, 11503, 67, 19426, 12, 338, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4759, 67, 19426, 67, 5391, 67, 416, 12, 2890, 16, 871, 67, 529, 4672, 431, 16, 12739, 273, 365, 18, 2575, 18, 25453, 67, 917, 325, 273, 365, 6315, 11503, 67, 19426, 12, 338, 16,...
print "reading cache" print cache
def getMetadata(self, troveList, label, cacheFile = None, cacheOnly = False, saveOnly = False): metadata = {} if cacheFile and not saveOnly: try: print "opening cache" cacheFp = open(cacheFile, "r") cache = pickle.load(cacheFp) cacheFp.close() except IOError, EOFError: print "got an error, returning" if cacheOnly: retu...
08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a/conaryclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
matches = (['class', name], ['class', name + ':'])
pat = re.compile(r'^\s*class\s*' + name + r'\b')
def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r...
704c314f4179203a24c494f2a40dd915600f9c28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/704c314f4179203a24c494f2a40dd915600f9c28/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3168, 12, 1612, 4672, 3536, 990, 326, 7278, 1084, 585, 471, 5023, 980, 1300, 364, 392, 733, 18, 225, 1021, 1237, 2026, 506, 279, 1605, 16, 667, 16, 707, 16, 445, 16, 10820, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3168, 12, 1612, 4672, 3536, 990, 326, 7278, 1084, 585, 471, 5023, 980, 1300, 364, 392, 733, 18, 225, 1021, 1237, 2026, 506, 279, 1605, 16, 667, 16, 707, 16, 445, 16, 10820, 16, ...
print searchResults[0]
def findAdditionalProblems(self): # In every tupla there's a setting configuration for tupla in self.settingsData: name = tupla[1] find_tipe = tupla[2] find = tupla[3] find_list = self.load(find) imagechanges = tupla[4] if imagechanges.lower() == 'false': imagestatus = False elif imagechanges.lower() == 'true': imagest...
2fcfc5fa0be0174064492f34e277ecfb916c8e02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/2fcfc5fa0be0174064492f34e277ecfb916c8e02/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 10552, 626, 19122, 12, 2890, 4672, 468, 657, 3614, 28325, 412, 69, 1915, 1807, 279, 3637, 1664, 364, 28325, 412, 69, 316, 365, 18, 4272, 751, 30, 508, 273, 28325, 412, 69, 63, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 10552, 626, 19122, 12, 2890, 4672, 468, 657, 3614, 28325, 412, 69, 1915, 1807, 279, 3637, 1664, 364, 28325, 412, 69, 316, 365, 18, 4272, 751, 30, 508, 273, 28325, 412, 69, 63, 21...
return None if self.__current_realm is None: self.__current_realm = realm else: self.__current_realm = realm
def get_authorization(self, req, chal): try: realm = chal['realm'] nonce = chal['nonce'] algorithm = chal.get('algorithm', 'MD5') # mod_digest doesn't send an opaque, even though it isn't # supposed to be optional opaque = chal.get('opaque', None) except KeyError: return None
4a061261db60e3d9ba7e8ee962b4db15349be0f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4a061261db60e3d9ba7e8ee962b4db15349be0f3/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12218, 12, 2890, 16, 1111, 16, 462, 287, 4672, 775, 30, 11319, 273, 462, 287, 3292, 24056, 3546, 7448, 273, 462, 287, 3292, 12824, 3546, 4886, 273, 462, 287, 18, 588, 2668, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12218, 12, 2890, 16, 1111, 16, 462, 287, 4672, 775, 30, 11319, 273, 462, 287, 3292, 24056, 3546, 7448, 273, 462, 287, 3292, 12824, 3546, 4886, 273, 462, 287, 18, 588, 2668, 12...
cmd += ['--restore=%s' % os.path.join(options.profileDir,
cmd += ['--restore=%s' % os.path.join(options.profileDir,
def runScriptPerfTests(options, testlist, largeData=False, repeat=1, logger=log): """ Run script performance tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runScriptPerfTests(options, ['foobar']) /.../release/RunChandler --catch=tests --profileD...
64e3ec7e167097dc0b4afb4eadc40bc6adec660f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/64e3ec7e167097dc0b4afb4eadc40bc6adec660f/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 16, 7666, 33, 21, 16, 1194, 33, 1330, 4672, 3536, 1939, 2728, 9239, 7434, 18, 225, 4080, 702, 273, 1109, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3651, 22016, 14650, 12, 2116, 16, 1842, 1098, 16, 7876, 751, 33, 8381, 16, 7666, 33, 21, 16, 1194, 33, 1330, 4672, 3536, 1939, 2728, 9239, 7434, 18, 225, 4080, 702, 273, 1109, 13...
try: if not os.path.isdir(p):
if not os.path.isdir(p): try:
def create_build_dir(): for p in [BuildPkg.blddir, BuildPkg.logdir, BuildPkg.libdir, BuildPkg.bindir, ]: try: if not os.path.isdir(p): os.makedirs(p) except: fatal("error creating directory " + p)
89b15e98275333525e3bccdd4be6b1cae64e3221 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5963/89b15e98275333525e3bccdd4be6b1cae64e3221/build_packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3510, 67, 1214, 13332, 364, 293, 316, 306, 3116, 11264, 18, 3083, 449, 481, 16, 3998, 11264, 18, 1330, 1214, 16, 3998, 11264, 18, 2941, 1214, 16, 3998, 11264, 18, 4376, 481, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 3510, 67, 1214, 13332, 364, 293, 316, 306, 3116, 11264, 18, 3083, 449, 481, 16, 3998, 11264, 18, 1330, 1214, 16, 3998, 11264, 18, 2941, 1214, 16, 3998, 11264, 18, 4376, 481, 1...
if not self.env.config.has_key('auth'):
if not self.env.config.has_key('boto_web'):
def get_auth_config(self, path): """ Get the auth config for this path """ log.info("Get Auth Config: %s" % (path)) match = None if not self.env.config.has_key('auth'): return None for rule in self.env.config['auth']: if rule.has_key("url"): if not re.match(rule['url'], path): continue if rule.has_key("method"): if rul...
168dd0abe620c6594fb332c7cc5f44eff6f12253 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10599/168dd0abe620c6594fb332c7cc5f44eff6f12253/auth_layer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1944, 67, 1425, 12, 2890, 16, 589, 4672, 3536, 968, 326, 1357, 642, 364, 333, 589, 3536, 613, 18, 1376, 2932, 967, 3123, 1903, 30, 738, 87, 6, 738, 261, 803, 3719, 845, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1944, 67, 1425, 12, 2890, 16, 589, 4672, 3536, 968, 326, 1357, 642, 364, 333, 589, 3536, 613, 18, 1376, 2932, 967, 3123, 1903, 30, 738, 87, 6, 738, 261, 803, 3719, 845, 273,...
self.widget=menu.AppendCheckItem(self.id, self.name, self.tooltip)
self.widget=menu.AppendCheckItem(self.id, self.name, self.getTooltip())
def insertIntoMenu(self,menu): self.id=wx.NewId() self.widget=menu.AppendCheckItem(self.id, self.name, self.tooltip) self.frame.Connect(self.id,-1,wx.wxEVT_COMMAND_MENU_SELECTED, self.OnMenuSelected) self.frame.Connect(self.id,-1,wx.wxEVT_UPDATE_UI, self.OnUpdateUI) self.Check()
d797d4f7b5a36cb545c715bb09c1aac93fa5c250 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/d797d4f7b5a36cb545c715bb09c1aac93fa5c250/menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 5952, 4599, 12, 2890, 16, 5414, 4672, 365, 18, 350, 33, 27226, 18, 1908, 548, 1435, 365, 18, 6587, 33, 5414, 18, 5736, 1564, 1180, 12, 2890, 18, 350, 16, 365, 18, 529, 16, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 5952, 4599, 12, 2890, 16, 5414, 4672, 365, 18, 350, 33, 27226, 18, 1908, 548, 1435, 365, 18, 6587, 33, 5414, 18, 5736, 1564, 1180, 12, 2890, 18, 350, 16, 365, 18, 529, 16, 365,...
self.assertRaises(TypeError, list, ifilter(isEven, N(s)))
self.assertRaises(TypeError, ifilter, isEven, N(s))
def test_ifilter(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s))) self.assertRaises(TypeError, ifilter, isEven, X(s)) self.assertRaises(TypeError, list, ifilter(isEven, N(s))) self.assertRai...
5cb6bfcb86589e7d483f1ae2db98f69a231d8a0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5cb6bfcb86589e7d483f1ae2db98f69a231d8a0b/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 430, 1088, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 18088, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 17172, 16, 3787, 713, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 430, 1088, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 18088, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 17172, 16, 3787, 713, 16, ...
src=open(DV.tmp_path+i,'rb') dst=open(self.outdir+self.filename,'wb')
src=DamnOpenFile(DV.tmp_path+i,'rb') dst=DamnOpenFile(self.outdir+self.filename,'wb')
def run(self): self.uris=self.getURI(self.sourceuri) self.abort=False if not self.abort: if True: Damnlog('Conversion routine starting, URI is',self.uris[0]) self.uri=self.uris[0] self.update(0) self.parent.thisvideo.append(self.parent.videos[self.parent.converting]) self.filename=unicodedata.normalize('NFKD',DamnUnico...
eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 23510, 33, 2890, 18, 588, 3098, 12, 2890, 18, 3168, 1650, 13, 365, 18, 18623, 33, 8381, 309, 486, 365, 18, 18623, 30, 309, 1053, 30, 463, 301, 82, 1330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 23510, 33, 2890, 18, 588, 3098, 12, 2890, 18, 3168, 1650, 13, 365, 18, 18623, 33, 8381, 309, 486, 365, 18, 18623, 30, 309, 1053, 30, 463, 301, 82, 1330...
ignorePrimaryPins = False)[0]
ignorePrimaryPins = False)
# def _resolveDependencies() begins here
ee4de86bc27832efbeef6e6900e90a53ec4212b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ee4de86bc27832efbeef6e6900e90a53ec4212b4/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 389, 10828, 8053, 1435, 17874, 2674, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 1652, 389, 10828, 8053, 1435, 17874, 2674, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if __debug__: class Foo: version = 1 class Foo: version = 2 class Foo: version = 3 def execfunc(x): exec x in y
def get_namespace(self): """Returns the single namespace bound to this name.
6e33e13d7addf2321a96d34004ac062d482b5cbc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6e33e13d7addf2321a96d34004ac062d482b5cbc/symtable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4937, 12, 2890, 4672, 3536, 1356, 326, 2202, 1981, 2489, 358, 333, 508, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4937, 12, 2890, 4672, 3536, 1356, 326, 2202, 1981, 2489, 358, 333, 508, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
name = encodinglib.get_descriptive_name(config.file.encoding) self._encodings.insert(0, (config.file.encoding, name))
try: encoding = config.file.encoding name = encodinglib.get_descriptive_name(encoding) self._encodings.insert(0, (encoding, name)) except ValueError: pass
def _init_encodings(self): """Initialize encodings."""
bcde01d42b6f1ada4a089d0435d8eeea8d068f3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/bcde01d42b6f1ada4a089d0435d8eeea8d068f3e/filechooser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 1331, 369, 899, 12, 2890, 4672, 3536, 7520, 24118, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 1331, 369, 899, 12, 2890, 4672, 3536, 7520, 24118, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self._process = external_program_thread(command=self.command, program_id=self.program_id, log=self.log)
self._process = external_program_thread( command=self.command, program_id=self.program_id, log=self.log, intercept_output=self.intercept_output)
def initialize_server (self) : if self._process is None and self._server is None : valid_ports = [] for (start, end) in self.port_ranges : valid_ports.extend([ n for n in range(start, end) ]) i = int(random.random() * (len(valid_ports) - 1)) self._port = valid_ports[i] prog_port_env = "CCTBX_%s_PORT" % string.upper(sel...
7fa4f9c53b20fc1fc9f0a2b2509c49a9f9056261 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/7fa4f9c53b20fc1fc9f0a2b2509c49a9f9056261/xmlrpc_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 3567, 261, 2890, 13, 294, 309, 365, 6315, 2567, 353, 599, 471, 365, 6315, 3567, 353, 599, 294, 923, 67, 4363, 273, 5378, 364, 261, 1937, 16, 679, 13, 316, 365, 18, 655, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 67, 3567, 261, 2890, 13, 294, 309, 365, 6315, 2567, 353, 599, 471, 365, 6315, 3567, 353, 599, 294, 923, 67, 4363, 273, 5378, 364, 261, 1937, 16, 679, 13, 316, 365, 18, 655, 67,...
checkout = True if checkout:
branch = True if branch:
def obtain(self, dest): url, rev = self.get_url_rev() if rev: rev_options = ['-r', rev] rev_display = ' (to revision %s)' % rev else: rev_options = [] rev_display = '' checkout = True if os.path.exists(os.path.join(dest, '.bzr')): existing_url = self.get_url(dest) checkout = False if existing_url == url: logger.info('C...
22a9aa0c1ba89d1fe5c4749dbb26f02277d162f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/22a9aa0c1ba89d1fe5c4749dbb26f02277d162f1/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7161, 12, 2890, 16, 1570, 4672, 880, 16, 5588, 273, 365, 18, 588, 67, 718, 67, 9083, 1435, 309, 5588, 30, 5588, 67, 2116, 273, 10228, 17, 86, 2187, 5588, 65, 5588, 67, 5417, 273, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7161, 12, 2890, 16, 1570, 4672, 880, 16, 5588, 273, 365, 18, 588, 67, 718, 67, 9083, 1435, 309, 5588, 30, 5588, 67, 2116, 273, 10228, 17, 86, 2187, 5588, 65, 5588, 67, 5417, 273, 296...
m1 = SparseMatrixConstructor((ind2-ind1, ind1)) m2 = Eye(ind2-ind1) m3 = SparseMatrixConstructor((ind2-ind1, x.size - ind2)) r = Hstack((m1, m2, m3))
r = Eye(ind2-ind1) if ind1 != 0: m1 = SparseMatrixConstructor((ind2-ind1, ind1)) r = Hstack((SparseMatrixConstructor((ind2-ind1, ind1)), r)) if ind2 != x.size: r = Hstack((r, SparseMatrixConstructor((ind2-ind1, x.size - ind2))))
def d(x): condBigMatrix = Len(x) > 100 #and (ind2-ind1) > 0.25*x.size if condBigMatrix and not scipyInstalled: self.pWarn(scipyAbsentMsg) if condBigMatrix and scipyInstalled: m1 = SparseMatrixConstructor((ind2-ind1, ind1)) m2 = Eye(ind2-ind1) m3 = SparseMatrixConstructor((ind2-ind1, x.size - ind2)) r = Hstack((m1, m2, ...
46ddd3fab39c4ba0664d368497c7633e8b7283d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/46ddd3fab39c4ba0664d368497c7633e8b7283d4/ooFun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 12, 92, 4672, 6941, 9901, 4635, 273, 6698, 12, 92, 13, 405, 2130, 468, 464, 261, 728, 22, 17, 728, 21, 13, 405, 374, 18, 2947, 14, 92, 18, 1467, 309, 6941, 9901, 4635, 471, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 12, 92, 4672, 6941, 9901, 4635, 273, 6698, 12, 92, 13, 405, 2130, 468, 464, 261, 728, 22, 17, 728, 21, 13, 405, 374, 18, 2947, 14, 92, 18, 1467, 309, 6941, 9901, 4635, 471, 48...
doc.AddItem(Bold(_('No such list <em>%s</em>') % listname))
doc.AddItem(Bold(_('No such list <em>%(listname)s</em>')))
def main(): doc = Document() parts = Utils.GetPathPieces() if not parts or len(parts) < 2: doc.AddItem(Header(2, _("Error"))) doc.AddItem(Bold(_("Invalid options to CGI script."))) print doc.Format(bgcolor="#ffffff") return listname = string.lower(parts[0]) user = parts[1] try: mlist = MailList.MailList(listname) exc...
271131e22a67ced7cee6dcb6fb6840ce57b4190b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/271131e22a67ced7cee6dcb6fb6840ce57b4190b/handle_opts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 4319, 1435, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 578, 562, 12, 6019, 13, 411, 576, 30, 997, 18, 986, 1180, 12, 1864, 12, 22, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 997, 273, 4319, 1435, 2140, 273, 6091, 18, 967, 743, 16539, 8610, 1435, 309, 486, 2140, 578, 562, 12, 6019, 13, 411, 576, 30, 997, 18, 986, 1180, 12, 1864, 12, 22, 16, 3...
else: if verbose: output(u"BUGWARNING: %s already done!" % pl.aslink())
elif verbose: output(u"BUGWARNING: %s already done!" % pl.aslink())
def __init__(self, site, pages, throttle, force): """First argument is Site object. Second argument is list (should have .append and be iterable)""" self.site = site self.pages = [] self.throttle = throttle for pl in pages: if ((not hasattr(pl,'_contents') and not hasattr(pl,'_getexception')) or force): self.pages.appe...
1772b9bbdda7283edd40efeb6d36e9202357e6ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/1772b9bbdda7283edd40efeb6d36e9202357e6ac/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 4689, 16, 18304, 16, 2944, 4672, 3536, 3759, 1237, 353, 9063, 733, 18, 7631, 1237, 353, 666, 261, 13139, 1240, 263, 6923, 471, 506, 6087, 15574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 4689, 16, 18304, 16, 2944, 4672, 3536, 3759, 1237, 353, 9063, 733, 18, 7631, 1237, 353, 666, 261, 13139, 1240, 263, 6923, 471, 506, 6087, 15574, ...
research_children = [
research_children = [
def createFolderStructure(portal): """Define which objects we want to create in the site. """ importance_children = [ { 'id': 'statistics', 'title': 'Statistics', 'description': '', 'type': 'Folder', 'layout': 'folder_listing', }, { 'id': 'nutritional-facts', 'title': 'Nutritional facts', 'description': '', 'type':...
b78dc1b4326a8c5ae2e7bd27bfac3b47d1ae3d8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6717/b78dc1b4326a8c5ae2e7bd27bfac3b47d1ae3d8b/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3899, 6999, 12, 24386, 4672, 3536, 11644, 1492, 2184, 732, 2545, 358, 752, 316, 326, 2834, 18, 3536, 1930, 1359, 67, 5906, 273, 306, 288, 282, 296, 350, 4278, 296, 14438, 2187, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3899, 6999, 12, 24386, 4672, 3536, 11644, 1492, 2184, 732, 2545, 358, 752, 316, 326, 2834, 18, 3536, 1930, 1359, 67, 5906, 273, 306, 288, 282, 296, 350, 4278, 296, 14438, 2187, 296,...
uom_index[move.uom.id] = move.uom
def assign_try(self, cursor, user, id, context=None): location_obj = self.pool.get('stock.location') move_obj = self.pool.get('stock.move') product_obj = self.pool.get('product.product') uom_obj = self.pool.get('product.uom') packing = self.browse(cursor, user, id, context=context) parent_to_locations = {} inventory_mo...
0a6c1eb47be3cd6843851373cc84f2f735d55b53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/0a6c1eb47be3cd6843851373cc84f2f735d55b53/packing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2683, 67, 698, 12, 2890, 16, 3347, 16, 729, 16, 612, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 3635, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2683, 67, 698, 12, 2890, 16, 3347, 16, 729, 16, 612, 16, 819, 33, 7036, 4672, 2117, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 6134, 3635, 67, 2603, 273, 365, 18, ...
self.job_post(webbrowser.open_new, (UPDATES_URL, ))
self.job_post(open_new, (UPDATES_URL, ))
def do_updates(self, event): self.job_post(webbrowser.open_new, (UPDATES_URL, ))
10ca0d8a9841497794134a4525061e8e56c6cafb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1662/10ca0d8a9841497794134a4525061e8e56c6cafb/winpdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 14703, 12, 2890, 16, 871, 4672, 365, 18, 4688, 67, 2767, 12, 4875, 11213, 18, 3190, 67, 2704, 16, 261, 8217, 55, 67, 1785, 16, 8623, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 14703, 12, 2890, 16, 871, 4672, 365, 18, 4688, 67, 2767, 12, 4875, 11213, 18, 3190, 67, 2704, 16, 261, 8217, 55, 67, 1785, 16, 8623, 2, -100, -100, -100, -100, -100, -100, -...
else
else:
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 882) else quickfix.DoubleField.__init__(self, 882, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 11149, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 11149, 13, 469, 30, 9549, 904, 18, 5265, 974, 16186, 2...
if self.parser.openElements[-1].name != "select":
node = self.parser.openElements.pop() while node.name != "select":
def endTagSelect(self, name): if self.parser.elementInScope(name, True): if self.parser.openElements[-1].name != "select": node = self.parser.openElements.pop() while node.name != "select": node = self.parser.openElements.pop() self.parser.resetInsertionMode() else: # innerHTML case self.parser.parseError()
c6087fd9d4eccf5145e72815e0d2a685eaabbc74 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/c6087fd9d4eccf5145e72815e0d2a685eaabbc74/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3391, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 16, 1053, 4672, 756, 273, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 1323, 756, 18, 529, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 3391, 12, 2890, 16, 508, 4672, 309, 365, 18, 4288, 18, 2956, 382, 3876, 12, 529, 16, 1053, 4672, 756, 273, 365, 18, 4288, 18, 3190, 3471, 18, 5120, 1435, 1323, 756, 18, 529, 4...
return TRACE
logger.info("Trace shape : %s:%s:%s" % (TRACE.shape[0], TRACE.shape[1], TRACE.shape[2])) return TRACE
def CalculateTrace0(lda): eps = finfo(float).eps # Calulate FA #TRACE = return TRACE
5854844cc8ac07021ebe79ca0011ee121da3289e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12580/5854844cc8ac07021ebe79ca0011ee121da3289e/TensorEval.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9029, 3448, 20, 12, 1236, 69, 4672, 225, 7785, 273, 15190, 12, 5659, 2934, 13058, 225, 468, 3596, 6243, 15064, 468, 23827, 273, 225, 1194, 18, 1376, 2932, 3448, 2179, 294, 738, 87, 5319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9029, 3448, 20, 12, 1236, 69, 4672, 225, 7785, 273, 15190, 12, 5659, 2934, 13058, 225, 468, 3596, 6243, 15064, 468, 23827, 273, 225, 1194, 18, 1376, 2932, 3448, 2179, 294, 738, 87, 5319,...
if pathname[-1] == '/':
if pathname and pathname[-1] == '/':
def convert_path (pathname): """Return 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local conventio...
0b5c11252da09a244cb39de47909ed07f4fa82cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0b5c11252da09a244cb39de47909ed07f4fa82cf/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 803, 261, 28336, 4672, 3536, 990, 296, 28336, 11, 487, 279, 508, 716, 903, 1440, 603, 326, 6448, 6496, 16, 277, 18, 73, 18, 1416, 518, 603, 2023, 471, 1378, 518, 1473, 9475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 803, 261, 28336, 4672, 3536, 990, 296, 28336, 11, 487, 279, 508, 716, 903, 1440, 603, 326, 6448, 6496, 16, 277, 18, 73, 18, 1416, 518, 603, 2023, 471, 1378, 518, 1473, 9475, ...
self.client.voidresp()
self.assertEqual(self.client.voidresp(), "226 transfer complete")
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.client.voidresp()
73b3632747ecfa87480afc8a00af27a4a7839ce6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/73b3632747ecfa87480afc8a00af27a4a7839ce6/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
self.assertTrue(rec.id, ids)
self.assertTrue(rec.id in ids)
def check_dict_methods(self, rec_dict, keys, ids): self.assertEqual(set(keys), set(rec_dict.keys())) #This is redundant, I just want to make sure len works: self.assertEqual(len(keys), len(rec_dict)) #Make sure boolean evaluation works self.assertEqual(bool(keys), bool(rec_dict)) for key,id in zip(keys, ids): self.asse...
9f0c3be183e05bbe261e4dc6543b24d162f66bf9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/9f0c3be183e05bbe261e4dc6543b24d162f66bf9/test_SeqIO_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1576, 67, 5163, 12, 2890, 16, 1950, 67, 1576, 16, 1311, 16, 3258, 4672, 365, 18, 11231, 5812, 12, 542, 12, 2452, 3631, 444, 12, 3927, 67, 1576, 18, 2452, 1435, 3719, 468, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1576, 67, 5163, 12, 2890, 16, 1950, 67, 1576, 16, 1311, 16, 3258, 4672, 365, 18, 11231, 5812, 12, 542, 12, 2452, 3631, 444, 12, 3927, 67, 1576, 18, 2452, 1435, 3719, 468, 25...
format = self._job.get("compile-dist/format", False)
format = compConf.get("code/format", False)
def runCompiled(self, parts, packages, boot, variants): if not self._job.get("compile-dist/file"): return
2830c647c93dff2c883a2b63993fd15ce9de2f71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/2830c647c93dff2c883a2b63993fd15ce9de2f71/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 20733, 12, 2890, 16, 2140, 16, 5907, 16, 4835, 16, 12935, 4672, 309, 486, 365, 6315, 4688, 18, 588, 2932, 11100, 17, 4413, 19, 768, 6, 4672, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 20733, 12, 2890, 16, 2140, 16, 5907, 16, 4835, 16, 12935, 4672, 309, 486, 365, 6315, 4688, 18, 588, 2932, 11100, 17, 4413, 19, 768, 6, 4672, 327, 2, -100, -100, -100, -100, -100,...
tsolver = pyre.inventory.facility("tsolver", factory=Advection_diffusion.temperature_diffadv) vsolver = pyre.inventory.facility("vsolver", factory=Stokes_solver.incompressibleNewtonian) bc = pyre.inventory.facility("bc", factory=BC) const = pyre.inventory.facility("const", factory=Const) ic = pyre.inventory.facility("...
tsolver = inv.facility("tsolver", factory=Advection_diffusion.temperature_diffadv) vsolver = inv.facility("vsolver", factory=Stokes_solver.incompressibleNewtonian) bc = inv.facility("bc", factory=BC) const = inv.facility("const", factory=Const) ic = inv.facility("ic", factory=IC) param = inv.facility("param", factory=...
def finalize(self): from CitcomSLib import output_finalize output_finalize(self.all_variables) return
ef5a5b2712d56359e97337d46a5d542f0ad4d7b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8488/ef5a5b2712d56359e97337d46a5d542f0ad4d7b9/Solver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 628, 385, 305, 832, 4559, 495, 1930, 876, 67, 30343, 876, 67, 30343, 12, 2890, 18, 454, 67, 7528, 13, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 4672, 628, 385, 305, 832, 4559, 495, 1930, 876, 67, 30343, 876, 67, 30343, 12, 2890, 18, 454, 67, 7528, 13, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
options['marker'] = sys.argv[-1] for run in range(1, 101):
options['prefix'] = sys.argv[1] if len(sys.argv) > 2: options['marker'] = sys.argv[2] for run in range(1, 1001):
def delete_entry(key): for name, bucket in settings.S3_BUCKETS.iteritems(): print aws.delete(bucket, key).http_response.status,
3a8310db3a3a5d31dea967777cb70caae7cdc681 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3111/3a8310db3a3a5d31dea967777cb70caae7cdc681/shotserver04_delete_old_s3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 4099, 12, 856, 4672, 364, 508, 16, 2783, 316, 1947, 18, 55, 23, 67, 28888, 55, 18, 2165, 3319, 13332, 1172, 2287, 18, 3733, 12, 7242, 16, 498, 2934, 2505, 67, 2740, 18, 232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 4099, 12, 856, 4672, 364, 508, 16, 2783, 316, 1947, 18, 55, 23, 67, 28888, 55, 18, 2165, 3319, 13332, 1172, 2287, 18, 3733, 12, 7242, 16, 498, 2934, 2505, 67, 2740, 18, 232...
arguments_info += ("import getopt; opts = getopt.getopt(" "sys.argv[1:], 'S:B:W1')[0];\nstorage = " "opts and opts[0][1] or '1'\nblob_dir = " "opts and opts[1][1] or blob_dir")
arguments_info += ("import getopt; opts = " "getopt.getopt(sys.argv[1:], 'S:B:W1')[0];\n" "opts = dict(opts)\n" "storage = opts.has_key('-S') and " "opts['-S'] or '1'\n" "blob_dir = opts.has_key('-B') and " "opts['-B'] or blob_dir")
def install_scripts(self): options = self.options location = options['location']
6e2248a5bf7f92bb4bc4fa0f272ab6698aa0a47c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12226/6e2248a5bf7f92bb4bc4fa0f272ab6698aa0a47c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 12827, 12, 2890, 4672, 702, 273, 365, 18, 2116, 2117, 273, 702, 3292, 3562, 3546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 12827, 12, 2890, 4672, 702, 273, 365, 18, 2116, 2117, 273, 702, 3292, 3562, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
standalone_cmd = "rsync -avx --no-p --no-g --chmod=ugo-wx,u+rw,go+r %s::\"%s\" $HOME/Desktop/%s" %( server, rsync_filenames_client.strip(), _("Teacher") )
standalone_cmd = "rsync -avx --timeout=30 --ignore-existing --no-p --no-g --chmod=ugo-wx,u+rw,go+r %s::\"%s\" $HOME/Desktop/%s" %( server, rsync_filenames_client.strip(), _("Teacher") )
def menu_event_all(self, action): start1=time() # don't make actions in clients not selected if self.main.config.GetVar("selectedhosts") == 1: allclients=[] model=self.main.tabla.get_model() rows = [] model.foreach(lambda model, path, iter: rows.append(path)) for host in rows: iter=model.get_iter(host) if model.get_va...
02aa26e9decb17b7531b02e8a9add63d01cedfb3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/02aa26e9decb17b7531b02e8a9add63d01cedfb3/TcosActions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 454, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 225, 468, 2727, 1404, 1221, 4209, 316, 7712, 486, 3170, 309, 365, 18, 5254, 18, 1425, 18, 967, 1537, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 67, 2575, 67, 454, 12, 2890, 16, 1301, 4672, 787, 21, 33, 957, 1435, 225, 468, 2727, 1404, 1221, 4209, 316, 7712, 486, 3170, 309, 365, 18, 5254, 18, 1425, 18, 967, 1537, 2932, ...
if self.spawn: self.http = http.HTTPServer(self.handle) else: self.http = MainLoopServer(self.handle) s = self.http.start((self.address, 0)) self.port = s.getsockname()[1]
self.server = http.HTTPServer(self.address, self.handle) self.server.start()
def setUp(self): if self.spawn: self.http = http.HTTPServer(self.handle) else: self.http = MainLoopServer(self.handle) s = self.http.start((self.address, 0)) self.port = s.getsockname()[1]
b9d930ec135c6f617f8874d9ec2c540d777d4b53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/b9d930ec135c6f617f8874d9ec2c540d777d4b53/test__http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 309, 365, 18, 1752, 9533, 30, 365, 18, 2505, 273, 1062, 18, 3693, 2081, 12, 2890, 18, 4110, 13, 469, 30, 365, 18, 2505, 273, 12740, 6452, 2081, 12, 2890, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 309, 365, 18, 1752, 9533, 30, 365, 18, 2505, 273, 1062, 18, 3693, 2081, 12, 2890, 18, 4110, 13, 469, 30, 365, 18, 2505, 273, 12740, 6452, 2081, 12, 2890, 18, 4...
import sys, getopt, time, string, regex, regsub
import sys, getopt, time, string, re
def main(): import sys, getopt, time, string, regex, regsub try: opts, args = getopt.getopt(sys.argv[1:], "C:d:Hi:l:Mptr:v:", ["CVS_command", "date", "indent", "length", "Merge", "patches", #### not yet supported "text", "rlog_options", #### not yet supported "version" ]) except getopt.error, msg: sys.stdout = sys...
92f58f6b8b028bc901c1c5f2bd420c92e105f2c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/92f58f6b8b028bc901c1c5f2bd420c92e105f2c9/cvs2hist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 283, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 39, 30, 72, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 2589, 16, 336, 3838, 16, 813, 16, 533, 16, 283, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 39, 30, 72, 30...
self.assertTrue(isinstance(x, int) or isinstance(x, long))
self.assertTrue(isinstance(x, int) or isinstance(x, int))
def test_used_phymem(self): x = psutil.used_phymem() self.assertTrue(isinstance(x, int) or isinstance(x, long)) self.assertTrue(x > 0)
7c397a9e03927d8b5085e42fb287dbdde6e056f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/7c397a9e03927d8b5085e42fb287dbdde6e056f2/test_psutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3668, 67, 844, 2942, 351, 12, 2890, 4672, 619, 273, 27024, 18, 3668, 67, 844, 2942, 351, 1435, 365, 18, 11231, 5510, 12, 291, 1336, 12, 92, 16, 509, 13, 578, 1549, 12, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3668, 67, 844, 2942, 351, 12, 2890, 4672, 619, 273, 27024, 18, 3668, 67, 844, 2942, 351, 1435, 365, 18, 11231, 5510, 12, 291, 1336, 12, 92, 16, 509, 13, 578, 1549, 12, 92, ...
extra_place = stack_pos(olddepth - 1)
def patch_jump(self, old_pos, new_pos, oldlocs, newlocs, olddepth, newdepth): if len(oldlocs) != len(newlocs): # virtualizable mess return if not we_are_translated(): assert str(oldlocs) == str(newlocs) if newdepth != olddepth: mc2 = self.mcstack.next_mc() pos = mc2.tell() diff = olddepth - newdepth for loc in newlocs:...
0c112a5e27c83146c589bb8b50e4bee486aaf59a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/0c112a5e27c83146c589bb8b50e4bee486aaf59a/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 67, 24574, 12, 2890, 16, 1592, 67, 917, 16, 394, 67, 917, 16, 1592, 24323, 16, 394, 24323, 16, 1592, 5979, 16, 394, 5979, 4672, 309, 562, 12, 1673, 24323, 13, 480, 562, 12, 270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 67, 24574, 12, 2890, 16, 1592, 67, 917, 16, 394, 67, 917, 16, 1592, 24323, 16, 394, 24323, 16, 1592, 5979, 16, 394, 5979, 4672, 309, 562, 12, 1673, 24323, 13, 480, 562, 12, 270...
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...
bfe53262b49df104a793fc4b6f38a07aceca420b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2600/bfe53262b49df104a793fc4b6f38a07aceca420b/cpmorphology.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5224, 67, 1331, 10910, 67, 18970, 12, 5336, 16, 5596, 273, 599, 16, 22474, 67, 464, 67, 1153, 67, 1883, 273, 599, 4672, 3536, 3125, 326, 2117, 434, 326, 5224, 16307, 12470, 471, 2097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5224, 67, 1331, 10910, 67, 18970, 12, 5336, 16, 5596, 273, 599, 16, 22474, 67, 464, 67, 1153, 67, 1883, 273, 599, 4672, 3536, 3125, 326, 2117, 434, 326, 5224, 16307, 12470, 471, 2097, ...
iFT = [sum([S[i]*zeta^(-i*j) for i in J]) for j in J]
iFT = [sum([S[i]*zeta**(-i*j) for i in J]) for j in J] if not(J[0] in ZZ) or F.base_ring().fraction_field()!=QQ: raise NotImplementedError, "Sorry this type of idft is not implemented yet."
def idft(self): """ Implements a discrete Fourier transform
9c13afcbe9dba10ea8450a988631f90a3447d7ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/9c13afcbe9dba10ea8450a988631f90a3447d7ef/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 1222, 12, 2890, 4672, 3536, 29704, 279, 20035, 478, 24775, 2510, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 612, 1222, 12, 2890, 4672, 3536, 29704, 279, 20035, 478, 24775, 2510, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
try: self.__is_trivial except AttributeError: pass self.__is_trivial = True R = self.base_ring() z = self.element() == 0 self.__is_trivial = z return z
return (self.element() == 0)
def is_trivial(self): r""" Returns ``True`` if this is the trivial character, i.e., has order 1. EXAMPLES:: sage: G.<a,b> = DirichletGroup(20) sage: a.is_trivial() False sage: (a^2).is_trivial() True """ try: self.__is_trivial except AttributeError: pass self.__is_trivial = True R = self.base_ring() z = self.element(...
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 313, 20109, 12, 2890, 4672, 436, 8395, 2860, 12176, 5510, 10335, 309, 333, 353, 326, 433, 20109, 3351, 16, 277, 18, 73, 12990, 711, 1353, 404, 18, 225, 5675, 8900, 11386, 2866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 313, 20109, 12, 2890, 4672, 436, 8395, 2860, 12176, 5510, 10335, 309, 333, 353, 326, 433, 20109, 3351, 16, 277, 18, 73, 12990, 711, 1353, 404, 18, 225, 5675, 8900, 11386, 2866, ...
if len(token_list) > 4: tid = self.input_thread(token_list[4]) pid = debug.system.get_thread(tid).get_pid() else: pid = self.lastEvent.get_pid() tid = self.lastEvent.get_tid()
thread = self.get_thread_from_prefix() tid = thread.get_tid() pid = thread.get_pid()
def do_ba(self, arg): """ ba <a|w|e> <1|2|4|8> <address> [thread] - set hardware breakpoint """ if not self.lastEvent: raise CmdError, "no process is being debugged" debug = self.lastEvent.debug token_list = self.split_tokens(arg, 3, 4) access = token_list[0].lower() size = token_list[1] address = token_list[2] if ...
95edb553305e95a1ded0ce46aa595556f55c8dbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/95edb553305e95a1ded0ce46aa595556f55c8dbe/pdebug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 12124, 12, 2890, 16, 1501, 4672, 3536, 9846, 411, 69, 96, 91, 96, 73, 34, 411, 21, 96, 22, 96, 24, 96, 28, 34, 411, 2867, 34, 306, 5930, 65, 300, 444, 16251, 18820, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 12124, 12, 2890, 16, 1501, 4672, 3536, 9846, 411, 69, 96, 91, 96, 73, 34, 411, 21, 96, 22, 96, 24, 96, 28, 34, 411, 2867, 34, 306, 5930, 65, 300, 444, 16251, 18820, 3536, ...
self.tk.call(self._w, 'update')
self.tk.call(self._w, 'update')
def update(self):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return struct.unpack('>q', self.read(8))[0] def _read_string(self): count = struct.unpack('>i', self.read(4))[0] s = self.read(count) if s.endswith('\x00'): s = s[:-1] padding = self.read((4 - (count % 4)) % 4)
return int(fromstring(self.fp.read(8), '>q')[0]) def _pack_string(self, s): count = len(s) self._pack_int(count) self.fp.write(s) self.fp.write('0' * (-count % 4)) def _unpack_string(self): count = self._unpack_int() s = self.fp.read(count).rstrip('\x00') self.fp.read(-count % 4)
def _unpack_int64(self): return struct.unpack('>q', self.read(8))[0]
c5eeb7a30fccf949fe4b4d016a566826aaaf111c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/c5eeb7a30fccf949fe4b4d016a566826aaaf111c/pupynere.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17309, 67, 474, 1105, 12, 2890, 4672, 327, 1958, 18, 17309, 2668, 34, 85, 2187, 365, 18, 896, 12, 28, 3719, 63, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17309, 67, 474, 1105, 12, 2890, 4672, 327, 1958, 18, 17309, 2668, 34, 85, 2187, 365, 18, 896, 12, 28, 3719, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if linelen + len(c) >= MAXLINESIZE: if prevline is not None: write(prevline) prevline = EMPTYSTRING.join(outline) linelen = 0 outline = []
def write(s, output=output, lineEnd='\n'): # RFC 1521 requires that the line ending in a space or tab must have # that trailing character encoded. if s and s[-1:] in ' \t': output.write(s[:-1] + quote(s[-1]) + lineEnd) else: output.write(s + lineEnd)
dac67ac8bf994b336748283fa25602639c6a9bf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dac67ac8bf994b336748283fa25602639c6a9bf4/quopri.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 87, 16, 876, 33, 2844, 16, 980, 1638, 2218, 64, 82, 11, 4672, 468, 8372, 4711, 5340, 4991, 716, 326, 980, 11463, 316, 279, 3476, 578, 3246, 1297, 1240, 468, 716, 7341, 3351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 87, 16, 876, 33, 2844, 16, 980, 1638, 2218, 64, 82, 11, 4672, 468, 8372, 4711, 5340, 4991, 716, 326, 980, 11463, 316, 279, 3476, 578, 3246, 1297, 1240, 468, 716, 7341, 3351, ...
return self.klass.getSchema().signature()
return self.klass('test').Schema().signature()
def signature(self): return self.klass.getSchema().signature()
9ae385822c63ef8db124c1b1f2a32f095de387c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/9ae385822c63ef8db124c1b1f2a32f095de387c1/Registry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3372, 12, 2890, 4672, 327, 365, 18, 22626, 18, 588, 3078, 7675, 8195, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3372, 12, 2890, 4672, 327, 365, 18, 22626, 18, 588, 3078, 7675, 8195, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif db in ('sqlite', 'mysql', 'firebird', 'sybase', 'maxdb', 'mssql'):
elif db in ('sqlite', 'firebird', 'sybase', 'maxdb', 'mssql'):
def StringLikeConverter(value, db): if isinstance(value, array_type): try: value = value.tounicode() except ValueError: value = value.tostring() elif isinstance(value, buffer_type): value = str(value) if db == 'postgres': for orig, repl in sqlStringReplace: value = value.replace(orig, repl) elif db in ('sqlite', 'mysq...
067a9d26ee04effbac86d17ae41dd8b99852ef5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6718/067a9d26ee04effbac86d17ae41dd8b99852ef5f/converters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 514, 8804, 5072, 12, 1132, 16, 1319, 4672, 309, 1549, 12, 1132, 16, 526, 67, 723, 4672, 775, 30, 460, 273, 460, 18, 88, 465, 3487, 1435, 1335, 2068, 30, 460, 273, 460, 18, 14627, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 514, 8804, 5072, 12, 1132, 16, 1319, 4672, 309, 1549, 12, 1132, 16, 526, 67, 723, 4672, 775, 30, 460, 273, 460, 18, 88, 465, 3487, 1435, 1335, 2068, 30, 460, 273, 460, 18, 14627, 371...
result = diracAdmin.addSiteInMask(site,comment,printOutput=True)
result = diracAdmin.addSiteInMask( site, comment, printOutput = True )
def usage(): print 'Usage: %s <DIRAC site name> <COMMENT>' %(Script.scriptName) print 'Note: emails should only be disabled for bulk operations.' DIRAC.exit(2)
43bc1428e2c48300c638de896bbd95b498bb1274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/43bc1428e2c48300c638de896bbd95b498bb1274/dirac-admin-allow-site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 1870, 8975, 3651, 18, 4263, 461, 13, 1172, 296, 8067, 30, 14255, 1410, 1338, 506, 5673, 364, 8280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 1870, 8975, 3651, 18, 4263, 461, 13, 1172, 296, 8067, 30, 14255, 1410, 1338, 506, 5673, 364, 8280, ...
allow_public = BoolOption('allow_public', 'Allow random qutoes in public', True)
public_browse = BoolOption('public_browse', 'Allow random quotes in public', True)
def za(self, event, za): try: f = urlopen(self.za_url) except Exception, e: event.addresponse(u'Something went wrong getting to the Lotto site') return s = "".join(f) f.close() balls = self.za_re.findall(s) if len(balls) != 14: event.addresponse(u'I expected to get %(expected)s balls, but found %(found)s. They were:...
c65f3d04c87eb7759428b069709c115dafa11f3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/c65f3d04c87eb7759428b069709c115dafa11f3e/lookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25001, 12, 2890, 16, 871, 16, 25001, 4672, 775, 30, 284, 273, 19613, 12, 2890, 18, 11939, 67, 718, 13, 1335, 1185, 16, 425, 30, 871, 18, 1289, 2740, 12, 89, 11, 24332, 16343, 7194, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25001, 12, 2890, 16, 871, 16, 25001, 4672, 775, 30, 284, 273, 19613, 12, 2890, 18, 11939, 67, 718, 13, 1335, 1185, 16, 425, 30, 871, 18, 1289, 2740, 12, 89, 11, 24332, 16343, 7194, 8...
req.write("</b>\n") lines = traceback.format_tb(exc[2]) lines.reverse() for line in lines: if html: req.write(html_encode(line)) req.error(line)
req.write("<p><strong>%s</strong>: %s" % (_tb_encode(etype), _tb_encode(evalue))) req.error("%s: %s\n" % (etype, evalue)) if type(evalue) is types.InstanceType: for name in dir(evalue): if html: req.write("\n<br /><tt>&nbsp;&nbsp;&nbsp;&nbsp;</tt>%s&nbsp;= %s" % (_tb_encode(name), _tb_encode(repr(getattr(evalue, name))...
def traceback(req, html=0): import traceback exc = sys.exc_info() if html: try: req.clear_headers() req.clear_output() req.set_header("Content-Type", "text/html; charset=iso-8859-1") except SequencingError: pass req.write("<html><head><title>jonpy traceback</title></head><body>" "<h1>jonpy traceback</h1><pre><b>") for ...
87df7558c1b2e0b72fc536db3e1ff72612d20be2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/506/87df7558c1b2e0b72fc536db3e1ff72612d20be2/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10820, 12, 3658, 16, 1729, 33, 20, 4672, 1930, 10820, 3533, 273, 2589, 18, 10075, 67, 1376, 1435, 309, 1729, 30, 775, 30, 1111, 18, 8507, 67, 2485, 1435, 1111, 18, 8507, 67, 2844, 1435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10820, 12, 3658, 16, 1729, 33, 20, 4672, 1930, 10820, 3533, 273, 2589, 18, 10075, 67, 1376, 1435, 309, 1729, 30, 775, 30, 1111, 18, 8507, 67, 2485, 1435, 1111, 18, 8507, 67, 2844, 1435...
if node._attrs.has_key(name): return 1 for item in node._attrsNS.keys(): if item[1] == name: return 1 return 0 return node._attrsNS.has_key((nsuri, name))
if node.hasAttribute(name): return True return False return node.hasAttributeNS(nsuri, name)
def hasAttr(self, node, name, nsuri=None): """Return true if element has attribute with the given name and optional nsuri. If nsuri is not specified, returns true if an attribute exists with the given name with any namespace.""" if nsuri is None: if node._attrs.has_key(name): return 1 for item in node._attrsNS.keys(): ...
6b88ff72148b053e6c01eb2b51c3b7e22e41fca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/6b88ff72148b053e6c01eb2b51c3b7e22e41fca3/Utility.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 3843, 12, 2890, 16, 756, 16, 508, 16, 3153, 1650, 33, 7036, 4672, 3536, 990, 638, 309, 930, 711, 1566, 598, 326, 864, 508, 471, 3129, 3153, 1650, 18, 971, 3153, 1650, 353, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 3843, 12, 2890, 16, 756, 16, 508, 16, 3153, 1650, 33, 7036, 4672, 3536, 990, 638, 309, 930, 711, 1566, 598, 326, 864, 508, 471, 3129, 3153, 1650, 18, 971, 3153, 1650, 353, 486, ...
if sys.platform == "darwin": supports_unicode_filenames = True else: supports_unicode_filenames = False
supports_unicode_filenames = False
def realpath(filename): """Return the canonical path of the specified filename, eliminating any
2d4e988c35e5da0bf4bd35ca3eb6851e83970764 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2d4e988c35e5da0bf4bd35ca3eb6851e83970764/posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9098, 12, 3459, 4672, 3536, 990, 326, 7378, 589, 434, 326, 1269, 1544, 16, 19229, 267, 1776, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9098, 12, 3459, 4672, 3536, 990, 326, 7378, 589, 434, 326, 1269, 1544, 16, 19229, 267, 1776, 1281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
metavar="<log file>", help="input git log to convert to standard event xml")
metavar="<log file>", help="input git log to convert to standard event xml") p.add_option("-v", "--vss-log", dest="vss_log", metavar="<log file>", help="input vss report to convert to standard event xml")
def parse_args(argv): """ Parses command line arguments and returns an options object along with any extra arguments. """ p = OptionParser() p.add_option("-s", "--svn-log", dest="svn_log", metavar="<log file>", help="input svn log to convert to standard event xml") p.add_option("-c", "--cvs-log", dest="cvs_log", meta...
8a09873aa569b587f86a7b1b18c47ad032cba913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5288/8a09873aa569b587f86a7b1b18c47ad032cba913/convert_logs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1968, 12, 19485, 4672, 3536, 2280, 2420, 1296, 980, 1775, 471, 1135, 392, 702, 733, 7563, 598, 1281, 2870, 1775, 18, 3536, 293, 273, 18862, 1435, 225, 293, 18, 1289, 67, 3482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1968, 12, 19485, 4672, 3536, 2280, 2420, 1296, 980, 1775, 471, 1135, 392, 702, 733, 7563, 598, 1281, 2870, 1775, 18, 3536, 293, 273, 18862, 1435, 225, 293, 18, 1289, 67, 3482, ...
if self.eolmode != 'strict' and eol != '\n':
if self.eolmode != 'strict' and eol and eol != '\n':
def writelines(self, fname, lines): # Ensure supplied data ends in fname, being a regular file or # a symlink. updatedir() will -too magically- take care of # setting it to the proper type afterwards. islink = os.path.islink(fname) if islink: fp = cStringIO.StringIO() else: fp = self.opener(fname, 'w') try: if self.eol...
70e75580f201a5657647fec96b40a9a4279aa27e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/70e75580f201a5657647fec96b40a9a4279aa27e/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6004, 1465, 12, 2890, 16, 5299, 16, 2362, 4672, 468, 7693, 4580, 501, 3930, 316, 5299, 16, 3832, 279, 6736, 585, 578, 468, 279, 10563, 18, 3526, 481, 1435, 903, 300, 16431, 4447, 6478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6004, 1465, 12, 2890, 16, 5299, 16, 2362, 4672, 468, 7693, 4580, 501, 3930, 316, 5299, 16, 3832, 279, 6736, 585, 578, 468, 279, 10563, 18, 3526, 481, 1435, 903, 300, 16431, 4447, 6478, ...
if start == end: raise IndexError ("not in range (empty)")
def line_index_from_super (self, li):
9f861d2f394f3af1067b299d5e87f62ebb289a8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/9f861d2f394f3af1067b299d5e87f62ebb289a8e/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 67, 1615, 67, 2080, 67, 9565, 261, 2890, 16, 4501, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 67, 1615, 67, 2080, 67, 9565, 261, 2890, 16, 4501, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
''' Enter DNA Origami mode''' msg1 = greenmsg("DNA Origami: ") msg2 = " Not implemented yet" final_msg = msg1 + msg2 env.history.message(final_msg)
''' Enter DNA Origami mode''' msg1 = greenmsg("DNA Origami: ") msg2 = " Not implemented yet" final_msg = msg1 + msg2 env.history.message(final_msg)
def buildDnaOrigami(self):
c25263540add024396d4bcf7631292f1fd2d50bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c25263540add024396d4bcf7631292f1fd2d50bb/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 40, 6582, 4741, 26223, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 40, 6582, 4741, 26223, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
ldate.after(200,update)
timer1=ldate.after(200,update)
def update(): global root_geom,isec0,im,pim,ndbm0,nsec0,a,ftx0,nin0,nout0, \ receiving,transmitting,newdat,nscroll,newspec,scale0,offset0, \ modpixmap0,tw,s0,c0,fmid,fmid0,loopall,ntr0,txmsg,iband0, \ bandmap,bm,t0,nreject,gain,phdeg,ierr tsec=time.time() utc=time.gmtime(tsec) nsec=int(tsec) nsec0=nsec ns120=nsec % 12...
f1689aca5e95bcd440044ecc67287fa41f60c29b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2394/f1689aca5e95bcd440044ecc67287fa41f60c29b/wspr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 381, 16, 84, 381, 16, 82, 1966, 81, 20, 16, 82, 3321, 20, 16, 69, 16, 74, 978, 20, 16, 82, 267, 20, 16, 82, 659, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 13332, 2552, 1365, 67, 10049, 16, 291, 557, 20, 16, 381, 16, 84, 381, 16, 82, 1966, 81, 20, 16, 82, 3321, 20, 16, 69, 16, 74, 978, 20, 16, 82, 267, 20, 16, 82, 659, 20, 1...
{'stokes':'CGS unit defined to be 1/10000 of meter^2/second.'},
{'stokes':'CGS unit defined to be 1/10000 of meter^2/second.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
Probablity and Statistics Tables and Formulae. Chapman & Hall: New
Probability and Statistics Tables and Formulae. Chapman & Hall: New
def spearmanr(a, b=None, axis=0): """ Calculates a Spearman rank-order correlation coefficient and the p-value to test for non-correlation. The Spearman correlation is a nonparametric measure of the linear relationship between two datasets. Unlike the Pearson correlation, the Spearman correlation does not assume that ...
d03be56073480c044df36c5a42d3e8f24c1327c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12971/d03be56073480c044df36c5a42d3e8f24c1327c4/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17785, 4610, 304, 86, 12, 69, 16, 324, 33, 7036, 16, 2654, 33, 20, 4672, 3536, 26128, 279, 348, 347, 4610, 304, 6171, 17, 1019, 12603, 16554, 471, 326, 293, 17, 1132, 358, 1842, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17785, 4610, 304, 86, 12, 69, 16, 324, 33, 7036, 16, 2654, 33, 20, 4672, 3536, 26128, 279, 348, 347, 4610, 304, 6171, 17, 1019, 12603, 16554, 471, 326, 293, 17, 1132, 358, 1842, 364, ...
self._notxn = notxn
def open(self, verbose=False, create=False, notxn=False):
793acc675ad871332cdc05c1e4b5c2a9ce5c6a4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/793acc675ad871332cdc05c1e4b5c2a9ce5c6a4a/XMLRepository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 3988, 33, 8381, 16, 752, 33, 8381, 16, 486, 22695, 33, 8381, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 12, 2890, 16, 3988, 33, 8381, 16, 752, 33, 8381, 16, 486, 22695, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
value = ' '.join(value)
value = u' '.join(value)
def index_document(self, document): self.set_changed() # Create the document to index doc_number = self.documents.n_documents catalog_document = Document(doc_number)
c4f713fbc2432c906108675261272c0dc3930068 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/c4f713fbc2432c906108675261272c0dc3930068/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 5457, 12, 2890, 16, 1668, 4672, 365, 18, 542, 67, 6703, 1435, 468, 1788, 326, 1668, 358, 770, 997, 67, 2696, 273, 365, 18, 24795, 18, 82, 67, 24795, 6222, 67, 5457, 273, 431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 67, 5457, 12, 2890, 16, 1668, 4672, 365, 18, 542, 67, 6703, 1435, 468, 1788, 326, 1668, 358, 770, 997, 67, 2696, 273, 365, 18, 24795, 18, 82, 67, 24795, 6222, 67, 5457, 273, 431...
if path.isdir('pics'): self.iconpath = 'pics' elif path.isdir('../share/casnet/pics'): self.iconpath = '../share/casnet/pics' elif path.isdir('/usr/share/casnet/pics'): self.iconpath = '/usr/share/casnet/pics' else: self.pop_dialog('Error', 'Can not find casnet icons.')
self.iconpath = path.join(file_dir, 'pics') if not path.isdir(self.iconpath): self.pop_dialog('Error', 'Can not find casnet icons.')
def __init__(self): # Find casnet icons path. if sys.platform == 'win32': file_dir = path.dirname(sys.argv[0]); self.iconpath = path.join(file_dir.decode('gbk').encode('utf8'), 'pics') else: if path.isdir('pics'): self.iconpath = 'pics' elif path.isdir('../share/casnet/pics'): self.iconpath = '../share/casnet/pics' eli...
f69d61397ba29e75c91c85aefaaf2fee6511d5f3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4851/f69d61397ba29e75c91c85aefaaf2fee6511d5f3/casnet-gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 4163, 8697, 2758, 17455, 589, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 585, 67, 1214, 273, 589, 18, 12287, 12, 9499, 18, 19485, 63, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 4163, 8697, 2758, 17455, 589, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 585, 67, 1214, 273, 589, 18, 12287, 12, 9499, 18, 19485, 63, 20...
init_plugins=not opts.noplugins,
init_plugins=not opts.noplugins, plugin_types=(plugins.TYPE_CORE,plugins.TYPE_INTERFACE,),
def repo_optcb(optobj, opt, value, parser): '''Callback for the enablerepo and disablerepo option. Combines the values given for these options while preserving order from command line. ''' dest = eval('parser.values.%s' % optobj.dest) dest.append((opt, value))
535ef412c0e911f8f6f129fd723215fb5e3f705d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/535ef412c0e911f8f6f129fd723215fb5e3f705d/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3538, 67, 3838, 7358, 12, 3838, 2603, 16, 2153, 16, 460, 16, 2082, 4672, 9163, 2428, 364, 326, 570, 27371, 881, 83, 471, 1015, 27371, 881, 83, 1456, 18, 225, 15645, 1465, 326, 924, 864...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3538, 67, 3838, 7358, 12, 3838, 2603, 16, 2153, 16, 460, 16, 2082, 4672, 9163, 2428, 364, 326, 570, 27371, 881, 83, 471, 1015, 27371, 881, 83, 1456, 18, 225, 15645, 1465, 326, 924, 864...
if verbose: print "compiling string with syntax error"
def test_complex_args(self):
exec 'def f(a, a): pass'
75f85542b2bfe397d3317ab4cac8ce6b3bf8469a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/75f85542b2bfe397d3317ab4cac8ce6b3bf8469a/test_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1196, 296, 536, 284, 12, 69, 16, 279, 4672, 1342, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1196, 296, 536, 284, 12, 69, 16, 279, 4672, 1342, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
filename = self.get_param('name', missing, 'content-disposition')
filename = self.get_param('name', missing, 'content-type')
def get_filename(self, failobj=None): """Return the filename associated with the payload if present.
5d43434df6214f0f717c3237f48055f5b4a81290 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/5d43434df6214f0f717c3237f48055f5b4a81290/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3459, 12, 2890, 16, 2321, 2603, 33, 7036, 4672, 3536, 990, 326, 1544, 3627, 598, 326, 2385, 309, 3430, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3459, 12, 2890, 16, 2321, 2603, 33, 7036, 4672, 3536, 990, 326, 1544, 3627, 598, 326, 2385, 309, 3430, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not swig_sources:
for source in sources: (base, ext) = os.path.splitext(source) if ext == ".i": new_sources.append(base + target_ext) swig_sources.append(source) swig_targets[source] = new_sources[-1] else: new_sources.append(source) if not swig_sources: return new_sources swig = self.find_swig() swig_cmd = [swig, "-python", "-ISWIG"]...
def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # X...
a3445be2469ebc765311af9285429177182b14f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/a3445be2469ebc765311af9285429177182b14f6/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 3536, 9463, 326, 666, 434, 1084, 1390, 316, 296, 10141, 2187, 7849, 364, 16392, 3047, 1560, 261, 18, 77, 13, 1390, 18, 225, 1939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 3536, 9463, 326, 666, 434, 1084, 1390, 316, 296, 10141, 2187, 7849, 364, 16392, 3047, 1560, 261, 18, 77, 13, 1390, 18, 225, 1939, ...
if (re.match("^[a-z0-9][-+.a-z0-9]*:",val_unescaped) or
if (re.match("^[a-z0-9][-+.a-z0-9]*:",val_unescaped) and
def sanitize_token(self, token): if token["type"] in (tokenTypes["StartTag"], tokenTypes["EndTag"], tokenTypes["EmptyTag"]): if token["name"] in self.allowed_elements: if token.has_key("data"): attrs = dict([(name,val) for name,val in token["data"][::-1] if name in self.allowed_attributes]) for attr in self.attr_val_is...
71c2701963a95992cb3e3033f4c6fa8c252bbee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/71c2701963a95992cb3e3033f4c6fa8c252bbee9/sanitizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8881, 67, 2316, 12, 2890, 16, 1147, 4672, 309, 1147, 9614, 723, 11929, 316, 261, 2316, 2016, 9614, 30512, 6, 6487, 1147, 2016, 9614, 25633, 6, 6487, 1147, 2016, 9614, 1921, 1805, 11929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8881, 67, 2316, 12, 2890, 16, 1147, 4672, 309, 1147, 9614, 723, 11929, 316, 261, 2316, 2016, 9614, 30512, 6, 6487, 1147, 2016, 9614, 25633, 6, 6487, 1147, 2016, 9614, 1921, 1805, 11929, ...
[(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, None), (2, 3, None), (2, 6, None), (3, 19, None), (3, 4, None), (4, 17, None), (4, 5, None), (5, 6, None), (5, 15, None), (6, 7, None), (7, 8, None), (7, 14, None), (8, 9, None), (9, 10, None), (9, 13, None), (10, 11, None), (11, 12, None), (11, 18, None...
[(0, 1, None), (0, 10, None), (0, 19, None), (1, 2, None), (1, 8, None), (2, 3, None), (2, 6, None), (3, 4, None), (3, 19, None), (4, 5, None), (4, 17, None), (5, 6, None), (5, 15, None), (6, 7, None), (7, 8, None), (7, 14, None), (8, 9, None), (9, 10, None), (9, 13, None), (10, 11, None), (11, 12, None), (11, 18, None...
def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- (bool; default: True) if False, each edge is a tuple (u,v) of vertices. sort -- (bool; default: True) if True, ensure that the list of edges is sorted.
38a9e93ecb64b46222d35eb9bfaec1190282da29 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/38a9e93ecb64b46222d35eb9bfaec1190282da29/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5231, 12, 2890, 16, 3249, 33, 5510, 16, 1524, 33, 5510, 4672, 3536, 2000, 279, 666, 434, 5231, 18, 8315, 3591, 353, 279, 14543, 261, 89, 16, 90, 16, 80, 13, 1625, 582, 471, 331, 854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5231, 12, 2890, 16, 3249, 33, 5510, 16, 1524, 33, 5510, 4672, 3536, 2000, 279, 666, 434, 5231, 18, 8315, 3591, 353, 279, 14543, 261, 89, 16, 90, 16, 80, 13, 1625, 582, 471, 331, 854,...
def bessel_J(nu,z,alg="pari",prec=53):
def bessel_J(nu,z,algorithm="pari",prec=53):
def bessel_J(nu,z,alg="pari",prec=53): r""" Return value of the "J-Bessel function", or "Bessel function, 1st kind", with index (or "order") nu and argument z. \begin{verbatim} Defn: Maxima: inf ==== - nu - 2 k nu + 2 k \ (-1)^k 2 z > ------------------------- / k! Gamma(nu + k + 1) =...
6634f9ab85d7944da6788aaab93ffaa3f22ce5ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6634f9ab85d7944da6788aaab93ffaa3f22ce5ac/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 12743, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 46, 12, 13053, 16, 94, 16, 12743, 1546, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 2000, 460, 434, 326, 315, 46, 17, 38, 403, 292, 445, 3113, 578, 315, 38, ...
""" return a unique transaction ID that is mapped internally to a deferred .. also store arbitrary data if it is needed """
""" return a unique transaction ID that is mapped internally to a deferred .. also store arbitrary data if it is needed """
def _createIDMapping(self, data=None): """ return a unique transaction ID that is mapped internally to a deferred .. also store arbitrary data if it is needed """ id = self._nextTransactionID() d = Deferred() self.ids[id] = (d, data) return (id, d)
9b2b7163e441396d9e5e7f46775cd7809b4655be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9b2b7163e441396d9e5e7f46775cd7809b4655be/msn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 734, 3233, 12, 2890, 16, 501, 33, 7036, 4672, 3536, 327, 279, 3089, 2492, 1599, 716, 353, 5525, 12963, 358, 279, 7045, 6116, 2546, 1707, 11078, 501, 309, 518, 353, 3577, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 734, 3233, 12, 2890, 16, 501, 33, 7036, 4672, 3536, 327, 279, 3089, 2492, 1599, 716, 353, 5525, 12963, 358, 279, 7045, 6116, 2546, 1707, 11078, 501, 309, 518, 353, 3577, 3536,...
val = "ShAttrib<1, SH_CONST, T>(s" + str(i) + ")" common.inprint("(*this)[" + str(i) + "] = " + val + ";")
common.inprint("(*this)[" + str(i) + "] = s" + str(i) + ";")
def scalarcons(self, args, size, extraTplArg=[]): common.inprint(self.tpl(size)) if len(extraTplArg) > 0: common.inprint("template<" + ", ".join(extraTplArg) + ">") common.inprint("inline") common.inprint(self.tplcls(size) + "::" + self.name + "(" + ', '.join([' '.join(x) for x in args]) + ")") common.inprint(" : ShGe...
0e974eb2498c9e12a495b5f48c710de74441fea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1804/0e974eb2498c9e12a495b5f48c710de74441fea8/ShAttribImpl.hpp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4981, 8559, 12, 2890, 16, 833, 16, 963, 16, 2870, 20588, 4117, 33, 8526, 4672, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 12, 1467, 3719, 309, 562, 12, 7763, 20588, 4117, 13, 405, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4981, 8559, 12, 2890, 16, 833, 16, 963, 16, 2870, 20588, 4117, 33, 8526, 4672, 2975, 18, 267, 1188, 12, 2890, 18, 10933, 12, 1467, 3719, 309, 562, 12, 7763, 20588, 4117, 13, 405, 374, ...
while ret == E_CALL_MULTI_PERFORM:
while ret == E_CALL_MULTI_PERFORM and timeout > 0:
def perform(self): if not self.cont: return r = -1 while r == -1: r = self.multi.select(100.0) ret = E_CALL_MULTI_PERFORM while ret == E_CALL_MULTI_PERFORM: ret, num_handles = self.multi.perform() self.cont = num_handles
2f79c69879b4b5f565eb8023d680f91d6b787641 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/2f79c69879b4b5f565eb8023d680f91d6b787641/comm_curl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 4672, 309, 486, 365, 18, 1213, 30, 327, 436, 273, 300, 21, 1323, 436, 422, 300, 21, 30, 436, 273, 365, 18, 7027, 18, 4025, 12, 6625, 18, 20, 13, 325, 273, 512, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 4672, 309, 486, 365, 18, 1213, 30, 327, 436, 273, 300, 21, 1323, 436, 422, 300, 21, 30, 436, 273, 365, 18, 7027, 18, 4025, 12, 6625, 18, 20, 13, 325, 273, 512, 67, ...
self.name = codec_info.id
self.name = codec_info.codec_id
def __init__(self, codec_info, codec_param): self.name = codec_info.id self.priority = codec_info.priority self.clock_rate = codec_param.info.clock_rate self.channel_count = codec_param.info.channel_count self.avg_bps = codec_param.info.avg_bps self.frm_ptime = codec_param.info.frm_ptime self.ptime = codec_param.info.f...
11903e0fff398b4202a356ea16874a469d0cec21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8531/11903e0fff398b4202a356ea16874a469d0cec21/pjsua.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9196, 67, 1376, 16, 9196, 67, 891, 4672, 365, 18, 529, 273, 9196, 67, 1376, 18, 21059, 67, 350, 365, 18, 8457, 273, 9196, 67, 1376, 18, 8457, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9196, 67, 1376, 16, 9196, 67, 891, 4672, 365, 18, 529, 273, 9196, 67, 1376, 18, 21059, 67, 350, 365, 18, 8457, 273, 9196, 67, 1376, 18, 8457, 365, 18, ...
print mod.__name__, dir(mod)
def parseargs(): global DEBUGSTREAM try: opts, args = getopt.getopt( sys.argv[1:], 'nVhc:d', ['class=', 'nosetuid', 'version', 'help', 'debug']) except getopt.error, e: usage(1, e) options = Options() for opt, arg in opts: if opt in ('-h', '--help'): usage(0) elif opt in ('-V', '--version'): print >> sys.stderr, __ver...
611d42adcdb6125ed60c06841f1980c39fa9f212 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/611d42adcdb6125ed60c06841f1980c39fa9f212/smtpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1968, 13332, 2552, 6369, 13693, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 82, 58, 28353, 30, 72, 2187, 10228, 1106, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1968, 13332, 2552, 6369, 13693, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 2589, 18, 19485, 63, 21, 30, 6487, 296, 82, 58, 28353, 30, 72, 2187, 10228, 1106, 33, ...
self.response.out.write(simplejson.dumps(respo));
self.response.out.write(respo);
def get(self): people_query = Connection.all(); respo = []; for connection in people_query: respo.append(connection.person.nickname()); self.response.out.write(simplejson.dumps(respo));
aa9214f26c95d5e9400316ba56c88944fbf2090f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13529/aa9214f26c95d5e9400316ba56c88944fbf2090f/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 16951, 67, 2271, 273, 4050, 18, 454, 5621, 400, 1631, 273, 5378, 31, 364, 1459, 316, 16951, 67, 2271, 30, 400, 1631, 18, 6923, 12, 4071, 18, 12479, 18, 17091, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 16951, 67, 2271, 273, 4050, 18, 454, 5621, 400, 1631, 273, 5378, 31, 364, 1459, 316, 16951, 67, 2271, 30, 400, 1631, 18, 6923, 12, 4071, 18, 12479, 18, 17091, 529,...
self.fileSave()
win.fileSave()
def savePrompt(self, closing=False): """Ask for save if doc modified, return false on cancel""" win = globalref.mainWin if not self.duplicateWindows(): if win.doc.modified and (closing or not globalref.options. boolData('OpenNewWindow')): text = win.fileImported and _('Save changes?') or \ _('Save changes to "%s"?') % ...
cf6958908f872f88d5fc403897f114013b879ca1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3087/cf6958908f872f88d5fc403897f114013b879ca1/treecontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 15967, 12, 2890, 16, 7647, 33, 8381, 4672, 3536, 23663, 364, 1923, 309, 997, 4358, 16, 327, 629, 603, 3755, 8395, 5657, 273, 2552, 1734, 18, 5254, 18049, 309, 486, 365, 18, 17342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 15967, 12, 2890, 16, 7647, 33, 8381, 4672, 3536, 23663, 364, 1923, 309, 997, 4358, 16, 327, 629, 603, 3755, 8395, 5657, 273, 2552, 1734, 18, 5254, 18049, 309, 486, 365, 18, 17342, ...
typecodes = "cubBhHiIlLfd"
typecodes = "ubBhHiIlLfd"
def __init__(self, typecode, newarg=None): array.array.__init__(typecode)
10d1df1f083a5ed0aef519012af1724d0009a6cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/10d1df1f083a5ed0aef519012af1724d0009a6cd/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 710, 16, 394, 3175, 33, 7036, 4672, 526, 18, 1126, 16186, 2738, 972, 12, 723, 710, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 710, 16, 394, 3175, 33, 7036, 4672, 526, 18, 1126, 16186, 2738, 972, 12, 723, 710, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'no_of_helpers')
'no_of_helpers', 'modified_on')
def getAllFriendshipStatistics(self, permid, last_update_time = None, range = None, sort = None, reverse = False): """ db keys: 'source_permid', 'target_permid', 'isForwarder', 'request_time', 'response_time', 'no_of_attempts', 'no_of_helpers' @in: get_online: boolean: if true, give peers a key 'online' if there is a...
548d2fadf816992e0aadb0535f4d4a11217f7db0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/548d2fadf816992e0aadb0535f4d4a11217f7db0/SqliteFriendshipStatsCacheDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 42, 7522, 3261, 8569, 12, 2890, 16, 4641, 350, 16, 1142, 67, 2725, 67, 957, 273, 599, 16, 1048, 273, 599, 16, 1524, 273, 599, 16, 4219, 273, 1083, 4672, 225, 3536, 1319, 1311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5514, 42, 7522, 3261, 8569, 12, 2890, 16, 4641, 350, 16, 1142, 67, 2725, 67, 957, 273, 599, 16, 1048, 273, 599, 16, 1524, 273, 599, 16, 4219, 273, 1083, 4672, 225, 3536, 1319, 1311, ...
if sh.cell_value(rowx=row, colx=0) == 'Holidays':
if self.getCellValue(sh, row, 0, '') == 'Holidays':
def process(self): sh = self.sheet
6cfa26769ed11a8bcef867983ca669c4705d8007 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7127/6cfa26769ed11a8bcef867983ca669c4705d8007/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 699, 273, 365, 18, 8118, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 699, 273, 365, 18, 8118, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.selected_rows and self.task_ts.iter_is_valid(self.selected_rows): tid = self.task_ts.get_value(self.selected_rows, self.TASK_MODEL_OBJ)
if (self.selected_rows and self.task_ts.iter_is_valid(self.selected_rows)): tid = self.task_ts.get_value( self.selected_rows, self.TASK_MODEL_OBJ)
def task_cursor_changed(self, selection=None): #We unselect all in the closed task view #Only if something is selected in the active task list self.donebutton.set_icon_name("gtg-task-done") self.dismissbutton.set_icon_name("gtg-task-dismiss") if selection.count_selected_rows() > 0: self.taskdone_tview.get_selection().u...
451ea29e3924785bc6c6b8648aa6459b292a0db4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/451ea29e3924785bc6c6b8648aa6459b292a0db4/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 9216, 67, 6703, 12, 2890, 16, 4421, 33, 7036, 4672, 468, 3218, 640, 4025, 777, 316, 326, 4375, 1562, 1476, 468, 3386, 309, 5943, 353, 3170, 316, 326, 2695, 1562, 666, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 9216, 67, 6703, 12, 2890, 16, 4421, 33, 7036, 4672, 468, 3218, 640, 4025, 777, 316, 326, 4375, 1562, 1476, 468, 3386, 309, 5943, 353, 3170, 316, 326, 2695, 1562, 666, 365, 18...
return Verification.CHECK_FAILED, "%s verification MAIL failed: %s" % (param, retmsg)
if code >= 500: return Verification.CHECK_FAILED, "%s verification HELO failed with code %s: %s" % (param, code, retmsg) else: return Verification.CHECK_UNKNOWN, "%s verification HELO failed with code %s: %s" % (param, code, retmsg)
def checkMailhost(self, mailhost, domain, user): """Check if something listening for incomming SMTP connection for mailhost. For details about status that can occur during communication see RFC 2821, section 4.3.2"""
06e00232225fa0e912e5723f5fbb6a8e6ff5f116 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5428/06e00232225fa0e912e5723f5fbb6a8e6ff5f116/Verification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6759, 2564, 12, 2890, 16, 4791, 2564, 16, 2461, 16, 729, 4672, 3536, 1564, 309, 5943, 13895, 364, 316, 5702, 310, 18102, 1459, 364, 4791, 2564, 18, 2457, 3189, 2973, 1267, 716, 848,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6759, 2564, 12, 2890, 16, 4791, 2564, 16, 2461, 16, 729, 4672, 3536, 1564, 309, 5943, 13895, 364, 316, 5702, 310, 18102, 1459, 364, 4791, 2564, 18, 2457, 3189, 2973, 1267, 716, 848,...
vals['parent_id'] = self.pool.get('account.analytic.account').search(cr,uid,[('id','=',proposition_id.analytic_account_id.id)])[0] return super(dm_campaign_proposition_segment,self).write(cr, uid, ids, vals, context) def create(self,cr,uid,vals,context={}):
vals['parent_id'] = self.pool.get('account.analytic.account').search(cr, uid, [('id', '=', proposition_id.analytic_account_id.id)])[0] return super(dm_campaign_proposition_segment, self).write(cr, uid, ids, vals, context) def create(self, cr, uid, vals, context={}):
def write(self, cr, uid, ids, vals, context=None): if 'proposition_id' in vals and vals['proposition_id']: proposition_id = self.pool.get('dm.campaign.proposition').browse(cr, uid, vals['proposition_id']) vals['parent_id'] = self.pool.get('account.analytic.account').search(cr,uid,[('id','=',proposition_id.analytic_acco...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 309, 296, 685, 3276, 67, 350, 11, 316, 5773, 471, 5773, 3292, 685, 3276, 67, 350, 3546, 30, 450, 3276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 309, 296, 685, 3276, 67, 350, 11, 316, 5773, 471, 5773, 3292, 685, 3276, 67, 350, 3546, 30, 450, 3276...
if (self.drone.getDistance(self.player)>=500):
if (self.drone.getDistance(self.player)>=1100):
def orbitMe (self): #self.player.SetTarget(self.drone) # if the drone is more than 500m away it will set if (self.drone.getDistance(self.player)>=500): # orientate the nose of the drone towards the player ship vec = Vector.Sub(self.player.Position(),self.drone.Position()) self.drone.SetOrientation((1,0,0),vec) # set ve...
861b2caa755798430035f1444afb9bbbe7242a92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/861b2caa755798430035f1444afb9bbbe7242a92/quest_tutorial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17656, 4667, 261, 2890, 4672, 468, 2890, 18, 14872, 18, 694, 2326, 12, 2890, 18, 3069, 476, 13, 468, 309, 326, 5081, 476, 353, 1898, 2353, 6604, 81, 10804, 518, 903, 444, 309, 261, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17656, 4667, 261, 2890, 4672, 468, 2890, 18, 14872, 18, 694, 2326, 12, 2890, 18, 3069, 476, 13, 468, 309, 326, 5081, 476, 353, 1898, 2353, 6604, 81, 10804, 518, 903, 444, 309, 261, 289...
- zero for `m_1+m_2+m_3\neq 0`
- zero for `m_1 + m_2 + m_3 \neq 0`
def wigner_3j(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculate the Wigner 3j symbol `Wigner3j(j_1,j_2,j_3,m_1,m_2,m_3)`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculat...
c6a90d820f57455b2ff6063db98cb5e6f7a11f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c6a90d820f57455b2ff6063db98cb5e6f7a11f83/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 724, 264, 67, 23, 78, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 9029, 326,...
f_type = ('float8', 'DOUBLE PRECISION')
f_type = ('float8', 'DOUBLE PRECISION', None)
def get_pg_type(f): ''' returns a tuple (type returned by postgres when the column was created, type expression to create the column) ''' type_dict = { fields.boolean: 'bool', fields.integer: 'int4', fields.integer_big: 'int8', fields.text: 'text', fields.date: 'date', fields.time: 'time', fields.datetime: 'timestamp'...
1273b880acb46f1ed80608d5835a5c72c0e54036 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/1273b880acb46f1ed80608d5835a5c72c0e54036/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8365, 67, 723, 12, 74, 4672, 9163, 1135, 279, 3193, 261, 723, 2106, 635, 1603, 14107, 1347, 326, 1057, 1703, 2522, 16, 618, 2652, 358, 752, 326, 1057, 13, 9163, 225, 618, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8365, 67, 723, 12, 74, 4672, 9163, 1135, 279, 3193, 261, 723, 2106, 635, 1603, 14107, 1347, 326, 1057, 1703, 2522, 16, 618, 2652, 358, 752, 326, 1057, 13, 9163, 225, 618, 67, ...
self._books_toolbar._enable_button(False)
self._books_toolbar.enable_button(False)
def get_book(self): self._books_toolbar._enable_button(False) self.progressbar.show() format = self._books_toolbar.format_combo.props.value gobject.idle_add(self.download_book, self.download_url + format)
7bb6f394a9bdcd5ba073696113049a86645fb5a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5566/7bb6f394a9bdcd5ba073696113049a86645fb5a2/GetIABooksActivity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3618, 12, 2890, 4672, 365, 6315, 12567, 67, 18849, 18, 7589, 67, 5391, 12, 8381, 13, 365, 18, 8298, 3215, 18, 4500, 1435, 740, 273, 365, 6315, 12567, 67, 18849, 18, 2139, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3618, 12, 2890, 4672, 365, 6315, 12567, 67, 18849, 18, 7589, 67, 5391, 12, 8381, 13, 365, 18, 8298, 3215, 18, 4500, 1435, 740, 273, 365, 6315, 12567, 67, 18849, 18, 2139, 67, ...
def fl_get_object_bw(ob, bw): """ fl_get_object_bw(ob, bw) """ _fl_get_object_bw(ob, bw)
def fl_get_object_bw(pObject, bw): """ fl_get_object_bw(pObject, bw) """ _fl_get_object_bw(pObject, bw)
def fl_get_object_bw(ob, bw): """ fl_get_object_bw(ob, bw) """ _fl_get_object_bw(ob, bw)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 1612, 67, 70, 91, 12, 84, 921, 16, 12986, 4672, 3536, 1183, 67, 588, 67, 1612, 67, 70, 91, 12, 84, 921, 16, 12986, 13, 3536, 225, 389, 2242, 67, 588, 67, 1612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 1612, 67, 70, 91, 12, 84, 921, 16, 12986, 4672, 3536, 1183, 67, 588, 67, 1612, 67, 70, 91, 12, 84, 921, 16, 12986, 13, 3536, 225, 389, 2242, 67, 588, 67, 1612, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 831) else quickfix.StringField.__init__(self, 831, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6938, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 6938, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
print 'refile', todo, tofolder
def refile_message(): global lastrefile, tofolder itop = scanbox.nearest(0) sel = scanbox.curselection() if not sel: dialog(root, "No Message To Refile", "Please select a message to refile", "", 0, "OK") return foldersel = folderbox.curselection() if len(foldersel) != 1: if not foldersel: msg = "Please select a folder ...
78b0c82535af09fde940d1b040f9da72c20f7c70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78b0c82535af09fde940d1b040f9da72c20f7c70/mbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 768, 67, 2150, 13332, 2552, 1142, 266, 768, 16, 358, 5609, 518, 556, 273, 4135, 2147, 18, 25785, 12, 20, 13, 357, 273, 4135, 2147, 18, 1397, 10705, 1435, 309, 486, 357, 30, 6176, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 283, 768, 67, 2150, 13332, 2552, 1142, 266, 768, 16, 358, 5609, 518, 556, 273, 4135, 2147, 18, 25785, 12, 20, 13, 357, 273, 4135, 2147, 18, 1397, 10705, 1435, 309, 486, 357, 30, 6176, ...
file.Write(" uint32 data_size = n * sizeof(GLuint);\n")
code = """ uint32 data_size; if (!SafeMultiplyUint32(n, sizeof(GLuint), &data_size)) { return error::kOutOfBounds; } """ file.Write(code)
def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" file.Write(" uint32 data_size = n * sizeof(GLuint);\n")
a6eb5232d2608cd0773bbe559757bd52c7f53670 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a6eb5232d2608cd0773bbe559757bd52c7f53670/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 290, 380, 13726, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 290, 380, 13726, 12, ...