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
result = unit * 0.04 * (dpi/72.)
result = unit * 0.04 * (dpi)
def unit_convert(self, val, pts=False, base_length='10pt'): ''' Tries to convert html units in C{val} to pixels. @param pts: If True return 10*pts instead of pixels. @return: The number of pixels (an int) if successful. Otherwise, returns None. ''' dpi = self.profile.dpi result = None try: result = int(val) except Valu...
86a2034279c0907fc3aef721303682455b31fe3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/86a2034279c0907fc3aef721303682455b31fe3b/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 6283, 12, 2890, 16, 1244, 16, 13397, 33, 8381, 16, 1026, 67, 2469, 2218, 2163, 337, 11, 4672, 9163, 10000, 281, 358, 1765, 1729, 4971, 316, 385, 95, 1125, 97, 358, 8948, 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, 2836, 67, 6283, 12, 2890, 16, 1244, 16, 13397, 33, 8381, 16, 1026, 67, 2469, 2218, 2163, 337, 11, 4672, 9163, 10000, 281, 358, 1765, 1729, 4971, 316, 385, 95, 1125, 97, 358, 8948, 18, ...
op = cpu.execute_operations(loop, valueboxes)
for i, v in enumerate(valueboxes): cpu.set_future_value_int(i, v.value) op = cpu.execute_operations(loop)
def check_random_function(r): block_length = demo_conftest.option.block_length vars = [BoxInt(r.random_integer()) for i in range(demo_conftest.option.n_vars)] valueboxes = [BoxInt(box.value) for box in vars] cpu = get_cpu() loop = TreeLoop('test_random_function') loop.inputargs = vars[:] loop.operations = [] builder ...
021fe482511837347f8395699b3fc80cc55a9f9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/021fe482511837347f8395699b3fc80cc55a9f9b/test_random.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 9188, 67, 915, 12, 86, 4672, 1203, 67, 2469, 273, 21477, 67, 591, 1222, 395, 18, 3482, 18, 2629, 67, 2469, 4153, 273, 306, 3514, 1702, 12, 86, 18, 9188, 67, 7745, 10756, 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, 866, 67, 9188, 67, 915, 12, 86, 4672, 1203, 67, 2469, 273, 21477, 67, 591, 1222, 395, 18, 3482, 18, 2629, 67, 2469, 4153, 273, 306, 3514, 1702, 12, 86, 18, 9188, 67, 7745, 10756, 364...
raise DistutilsFileError, "%s: %s" % (head, errstr)
raise DistutilsFileError, "'%s': %s" % (head, errstr)
def mkpath (name, mode=0777, verbose=0, dry_run=0): """Create a directory and any missing ancestor directories. If the directory already exists, return silently. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' i...
031994d923a677aa78f425f5289409ea94321872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/031994d923a677aa78f425f5289409ea94321872/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 803, 261, 529, 16, 1965, 33, 20, 14509, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 4672, 3536, 1684, 279, 1867, 471, 1281, 3315, 9731, 6402, 18, 225, 971, 326, 1867, 1818, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5028, 803, 261, 529, 16, 1965, 33, 20, 14509, 16, 3988, 33, 20, 16, 10299, 67, 2681, 33, 20, 4672, 3536, 1684, 279, 1867, 471, 1281, 3315, 9731, 6402, 18, 225, 971, 326, 1867, 1818, ...
reference = obj_inv.reference or number or ''
reference = obj_inv.reference or ''
def action_number(self, cr, uid, ids, *args): #TODO: not correct fix but required a frech values before reading it. self.write(cr, uid, ids, {})
8add10403c5d9277ae93b84db9928f7a04035f35 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/8add10403c5d9277ae93b84db9928f7a04035f35/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 2696, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 468, 6241, 30, 486, 3434, 2917, 1496, 1931, 279, 22010, 343, 924, 1865, 6453, 518, 18, 365, 18, 2626, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 2696, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 468, 6241, 30, 486, 3434, 2917, 1496, 1931, 279, 22010, 343, 924, 1865, 6453, 518, 18, 365, 18, 2626, 12, ...
self.tree.apply2all( func_selatoms)
self.topnode.apply2all( func_selatoms)
def func_selatoms(nn): "run this exactly once on all molecules (or other nodes) in this part (in any order)" if isinstance(nn, molecule): for atm in nn.atoms.itervalues(): if atm.picked: res[atm.key] = atm return # from func_selatoms only
0abde4f5ce347d2e9de87cb0501caffd0127e8c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0abde4f5ce347d2e9de87cb0501caffd0127e8c2/part.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 1786, 14937, 12, 9074, 4672, 315, 2681, 333, 8950, 3647, 603, 777, 312, 29466, 261, 280, 1308, 2199, 13, 316, 333, 1087, 261, 267, 1281, 1353, 2225, 309, 1549, 12, 9074, 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, 1326, 67, 1786, 14937, 12, 9074, 4672, 315, 2681, 333, 8950, 3647, 603, 777, 312, 29466, 261, 280, 1308, 2199, 13, 316, 333, 1087, 261, 267, 1281, 1353, 2225, 309, 1549, 12, 9074, 16, ...
n = re.search(code_regex % name, resp)
n = re.search(code_regex % (name,), resp)
def update_languages(self): '''Naively try to determine if new languages are available by scraping http://translate.google.com''' resp = urllib2.urlopen(urllib2.Request('http://translate.google.com', None, {'User-Agent':'Traduisons/%s' % msg_VERSION})).read() # namelist_regex should match Capitalized list of languages ...
882d67c8fe0f86c4b7052562c51b41df492db552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/882d67c8fe0f86c4b7052562c51b41df492db552/traduisons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 14045, 12, 2890, 4672, 9163, 24101, 4492, 775, 358, 4199, 309, 394, 8191, 854, 2319, 635, 888, 1266, 310, 1062, 2207, 13929, 18, 9536, 18, 832, 26418, 1718, 273, 11527, 22, 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, 1089, 67, 14045, 12, 2890, 4672, 9163, 24101, 4492, 775, 358, 4199, 309, 394, 8191, 854, 2319, 635, 888, 1266, 310, 1062, 2207, 13929, 18, 9536, 18, 832, 26418, 1718, 273, 11527, 22, 18,...
if key != IHREAL:
if key != "IHREAL":
def wait(): "Wait on events." game.ididit = False while True: key = scanner.next() if key != IHEOL: break proutn(_("How long? ")) scanner.chew() if key != IHREAL: huh() return origTime = delay = scanner.real if delay <= 0.0: return if delay >= game.state.remtime or len(game.enemies) != 0: proutn(_("Are you sure? ")) i...
af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 13332, 315, 5480, 603, 2641, 1199, 7920, 18, 350, 350, 305, 273, 1083, 1323, 1053, 30, 498, 273, 7683, 18, 4285, 1435, 309, 498, 225, 480, 467, 3900, 1741, 30, 898, 450, 322, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2529, 13332, 315, 5480, 603, 2641, 1199, 7920, 18, 350, 350, 305, 273, 1083, 1323, 1053, 30, 498, 273, 7683, 18, 4285, 1435, 309, 498, 225, 480, 467, 3900, 1741, 30, 898, 450, 322, 82,...
file.Write(" SetGLError(GL_INVALID_VALUE);\n")
file.Write(" SetGLError(GL_INVALID_VALUE, \"gl%s: %s < 0\");\n" % (func.original_name, self.name))
def WriteValidationCode(self, file): """overridden from Argument.""" file.Write(" if (%s < 0) {\n" % self.name) file.Write(" SetGLError(GL_INVALID_VALUE);\n") file.Write(" return error::kNoError;\n") file.Write(" }\n")
8eee29c0bad478d5a9e5daefc3882e11f7f26738 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/8eee29c0bad478d5a9e5daefc3882e11f7f26738/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 585, 18, 3067, 2932, 225, 309, 6142, 87, 411, 374, 13, 18890, 82, 6, 738, 365, 18, 529, 13, 585, 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, 2598, 4354, 1085, 12, 2890, 16, 585, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 585, 18, 3067, 2932, 225, 309, 6142, 87, 411, 374, 13, 18890, 82, 6, 738, 365, 18, 529, 13, 585, 18...
if options.xml: appendXMLChild(node) elif options.csv: CSVtable(node) else: showInfo(node)
node.play() VideoList.append(node.href) if len(node.href) > nameLength: nameLength = len(node.href)
def CSVtable(node): global CSV_video node.play() if CSV_video == '': #CSV_head = " \t \t \tVideoStream\t \t \t \tAudio stream\n" CSV_head = ("File\tDuration\tBitrate\tVideoCodec\t" + \ "VideoSize\tPixel format\tFPS\tAudioCodec\t" + \ "Audio Sample rate\t Audio channels"+"\n") CSV_video = CSV_head CSV_video ...
f39acf9c95aaac330d5f54ed4f4ca03f16a4469f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/f39acf9c95aaac330d5f54ed4f4ca03f16a4469f/avg_videoinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10381, 2121, 12, 2159, 4672, 2552, 10381, 67, 9115, 225, 756, 18, 1601, 1435, 309, 10381, 67, 9115, 422, 875, 30, 468, 16570, 67, 1978, 273, 315, 225, 521, 88, 225, 521, 88, 225, 521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10381, 2121, 12, 2159, 4672, 2552, 10381, 67, 9115, 225, 756, 18, 1601, 1435, 309, 10381, 67, 9115, 422, 875, 30, 468, 16570, 67, 1978, 273, 315, 225, 521, 88, 225, 521, 88, 225, 521, ...
if type(fontsize) is StringType:
if type(fontsize) in (StringType, UnicodeType):
def fitLine(self, program, totalLength): "fit words (and other things) onto a line" # assuming word lengths and spaces have not been yet added # fit words onto a line up to maxlength, adding spaces and respecting extra space from types import StringType, TupleType, InstanceType, FloatType from reportlab.pdfbase.pdfmetr...
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 1670, 12, 2890, 16, 5402, 16, 2078, 1782, 4672, 315, 7216, 4511, 261, 464, 1308, 9198, 13, 10170, 279, 980, 6, 468, 15144, 2076, 10917, 471, 7292, 1240, 486, 2118, 4671, 3096, 468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4845, 1670, 12, 2890, 16, 5402, 16, 2078, 1782, 4672, 315, 7216, 4511, 261, 464, 1308, 9198, 13, 10170, 279, 980, 6, 468, 15144, 2076, 10917, 471, 7292, 1240, 486, 2118, 4671, 3096, 468,...
def deleter(self):
@w1.deleter def w1(self):
def deleter(self): pass
535b7e1861c68fd23437d9f9c08267f2373f4818 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/535b7e1861c68fd23437d9f9c08267f2373f4818/Decorated.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 632, 91, 21, 18, 19003, 264, 1652, 341, 21, 12, 2890, 4672, 1342, 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, 632, 91, 21, 18, 19003, 264, 1652, 341, 21, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
BE_DOUBLE_INF = '\x7f\xf0\x00\x00\x00\x00\x00\x00' LE_DOUBLE_INF = ''.join(reversed(BE_DOUBLE_INF)) BE_DOUBLE_NAN = '\x7f\xf8\x00\x00\x00\x00\x00\x00' LE_DOUBLE_NAN = ''.join(reversed(BE_DOUBLE_NAN))
BE_DOUBLE_INF = b'\x7f\xf0\x00\x00\x00\x00\x00\x00' LE_DOUBLE_INF = bytes(reversed(BE_DOUBLE_INF)) BE_DOUBLE_NAN = b'\x7f\xf8\x00\x00\x00\x00\x00\x00' LE_DOUBLE_NAN = bytes(reversed(BE_DOUBLE_NAN))
def test_setformat(self): for t in 'double', 'float': float.__setformat__(t, 'unknown') if self.save_formats[t] == 'IEEE, big-endian': self.assertRaises(ValueError, float.__setformat__, t, 'IEEE, little-endian') elif self.save_formats[t] == 'IEEE, little-endian': self.assertRaises(ValueError, float.__setformat__, t, 'I...
51cdc6205b5b7ab6e2434d3dead4df16943d56e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/51cdc6205b5b7ab6e2434d3dead4df16943d56e3/test_float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 2139, 12, 2890, 4672, 364, 268, 316, 296, 9056, 2187, 296, 5659, 4278, 1431, 16186, 542, 2139, 972, 12, 88, 16, 296, 8172, 6134, 309, 365, 18, 5688, 67, 11962, 63, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 2139, 12, 2890, 4672, 364, 268, 316, 296, 9056, 2187, 296, 5659, 4278, 1431, 16186, 542, 2139, 972, 12, 88, 16, 296, 8172, 6134, 309, 365, 18, 5688, 67, 11962, 63, 88, ...
source + ' to ' + mdir + '\nError was:'
source + ' to ' + final_path + '\nError was:'
def add(self, base, quiet = False): '''Add overlay.'''
d7425a8bfc7d18a7f5b7e682f65cb8f8d7db4abe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7305/d7425a8bfc7d18a7f5b7e682f65cb8f8d7db4abe/tar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 1026, 16, 10902, 273, 1083, 4672, 9163, 986, 9218, 1093, 6309, 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, ...
[ 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 1026, 16, 10902, 273, 1083, 4672, 9163, 986, 9218, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not self._is_acl_accessible(host_id, queue_entry): print 'no acl access' if not self._check_job_dependencies(job_dependencies, host_labels): print 'didnt meet deps' if not self._check_only_if_needed_labels(job_dependencies, host_labels, queue_entry): print 'didnt request oin label' return (self._is_acl_accessible(ho...
acl = self._is_acl_accessible(host_id, queue_entry) deps = self._check_job_dependencies(job_dependencies, host_labels) only_if = self._check_only_if_needed_labels(job_dependencies, host_labels, queue_entry) return acl and deps and only_if
def _is_host_eligible_for_job(self, host_id, queue_entry): job_dependencies = self._job_dependencies.get(queue_entry.job_id, set()) host_labels = self._host_labels.get(host_id, set()) if not self._is_acl_accessible(host_id, queue_entry): print 'no acl access' if not self._check_job_dependencies(job_dependencies, host_l...
1cffc263a48c799887e17bd28fca7329a4a266f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/1cffc263a48c799887e17bd28fca7329a4a266f2/monitor_db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 67, 2564, 67, 292, 16057, 67, 1884, 67, 4688, 12, 2890, 16, 1479, 67, 350, 16, 2389, 67, 4099, 4672, 1719, 67, 11037, 273, 365, 6315, 4688, 67, 11037, 18, 588, 12, 4000, 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, 389, 291, 67, 2564, 67, 292, 16057, 67, 1884, 67, 4688, 12, 2890, 16, 1479, 67, 350, 16, 2389, 67, 4099, 4672, 1719, 67, 11037, 273, 365, 6315, 4688, 67, 11037, 18, 588, 12, 4000, 67...
cr.execute("SELECT 1 FROM %s WHERE %s" % (self._table, " OR ".join([check_clause]*(len(ids_to_check)/2))), tuple(ids_to_check)) if cr.fetchone(): raise except_orm('ConcurrencyException', _('Records were modified in the meanwhile'))
cr.execute("SELECT id FROM %s WHERE %s" % (self._table, " OR ".join([check_clause]*(len(ids_to_check)/2))), tuple(ids_to_check)) res = cr.fetchone() if res: raise except_orm('ConcurrencyException', _('A document was modified since you last viewed it (%s:%d)') % (self._description, res[0]))
def _check_concurrency(self, cr, ids, context): if not context: return if not (context.get(self.CONCURRENCY_CHECK_FIELD) and self._log_access): return check_clause = "(id = %s AND %s < COALESCE(write_date, create_date, now())::timestamp)" for sub_ids in cr.split_for_in_conditions(ids): ids_to_check = [] for id in sub_i...
ea26bded7aa4f8427bbf8f9a3760ec93dc84a586 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ea26bded7aa4f8427bbf8f9a3760ec93dc84a586/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 591, 7095, 12, 2890, 16, 4422, 16, 3258, 16, 819, 4672, 309, 486, 819, 30, 327, 309, 486, 261, 2472, 18, 588, 12, 2890, 18, 2248, 7509, 25231, 67, 10687, 67, 6776, 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, 389, 1893, 67, 591, 7095, 12, 2890, 16, 4422, 16, 3258, 16, 819, 4672, 309, 486, 819, 30, 327, 309, 486, 261, 2472, 18, 588, 12, 2890, 18, 2248, 7509, 25231, 67, 10687, 67, 6776, 13,...
notifications = self.GetActiveNotifications() self.assertEquals(self.NO_SUCH_URL, notifications[0]['content_url']) self.assertEquals(self.NO_SUCH_URL3, notifications[1]['content_url'])
new_notifications = self.GetActiveNotifications() self.assertEquals(old_notifications[0], new_notifications[0]) self.assertEquals(old_notifications[2], new_notifications[1])
def testNotificationOrderAfterClosingOne(self): """Tests that closing a notification leaves the rest of the notifications in the correct order. """ self._AllowAllOrigins() self.NavigateToURL(self.TEST_PAGE_URL) self._CreateHTMLNotification(self.NO_SUCH_URL) self._CreateHTMLNotification(self.NO_SUCH_URL2) self._CreateHT...
4c0d7a02c51b35ffe1d14898aac4fd4e0c87b43b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/4c0d7a02c51b35ffe1d14898aac4fd4e0c87b43b/notifications.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4386, 2448, 4436, 15745, 3335, 12, 2890, 4672, 3536, 14650, 716, 7647, 279, 3851, 15559, 326, 3127, 434, 326, 9208, 316, 326, 3434, 1353, 18, 3536, 365, 6315, 7009, 1595, 4741, 2679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4386, 2448, 4436, 15745, 3335, 12, 2890, 4672, 3536, 14650, 716, 7647, 279, 3851, 15559, 326, 3127, 434, 326, 9208, 316, 326, 3434, 1353, 18, 3536, 365, 6315, 7009, 1595, 4741, 2679,...
label.setAttribute("style", "fill:black;stroke:none;text-anchor:left;font-size:30pt;")
label.setAttribute("style", "fill:black;stroke:none;text-anchor:left;font-size:26pt;")
def visitShelfElement(self, element): """ @param element the element to render """ # e is our shelf element e = self._image.createElement("g") title = self._image.createElement("title") title.appendChild(self._image.createTextNode("shelf element")) e.appendChild(title)
864e40830e50f320c5491647f8febfe0c8a58ee7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5639/864e40830e50f320c5491647f8febfe0c8a58ee7/rackview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 1555, 19079, 1046, 12, 2890, 16, 930, 4672, 3536, 632, 891, 930, 326, 930, 358, 1743, 3536, 468, 425, 353, 3134, 699, 19079, 930, 425, 273, 365, 6315, 2730, 18, 2640, 1046, 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, 3757, 1555, 19079, 1046, 12, 2890, 16, 930, 4672, 3536, 632, 891, 930, 326, 930, 358, 1743, 3536, 468, 425, 353, 3134, 699, 19079, 930, 425, 273, 365, 6315, 2730, 18, 2640, 1046, 2932, ...
self.clocked_scope = scopesink.scope_sink_f(self, panel, sample_rate=gsm_symb_rate,v_scale=1)
self.clocked_scope = scopesink.scope_sink_f(self, self.panel, sample_rate=self.gsm_symb_rate,v_scale=1)
def __init__(self, frame, panel, vbox, argv): stdgui.gui_flow_graph.__init__(self)
b5a766ad3cf7ace8184a93912fcda3cbfb5c1279 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10611/b5a766ad3cf7ace8184a93912fcda3cbfb5c1279/gsm_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2623, 16, 6594, 16, 331, 2147, 16, 5261, 4672, 2044, 20292, 18, 20292, 67, 2426, 67, 4660, 16186, 2738, 972, 12, 2890, 13, 2, 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, 1001, 2738, 972, 12, 2890, 16, 2623, 16, 6594, 16, 331, 2147, 16, 5261, 4672, 2044, 20292, 18, 20292, 67, 2426, 67, 4660, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -10...
try: _testMethodName = getattr(self,"_testMethodName") except: _testMethodName = getattr(self,"_TestCase__testMethodName")
def run(self, result=None): """Test runner."""
cffb9714779adc0156c36bb55d0a1e8a29589408 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/cffb9714779adc0156c36bb55d0a1e8a29589408/parametric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 3536, 4709, 8419, 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, 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, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 3536, 4709, 8419, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
print "\nvoid"
if chatty_flag: progress( "\nvoid")
def yaccProduction(yacc, lhs, tokenRegexps): if lhs is BNF.void: print "\nvoid" return if lhs is BNF.eof: print "\nEOF" return if isinstance(lhs, Literal): literalTerminals[lhs.value()] = 1
a069dbeddd5ec63ef002105ed0c2481a29043eff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a069dbeddd5ec63ef002105ed0c2481a29043eff/predictiveParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 677, 8981, 31590, 12, 93, 8981, 16, 8499, 16, 225, 1147, 6628, 1121, 4672, 309, 8499, 353, 605, 26473, 18, 6459, 30, 309, 7916, 4098, 67, 6420, 30, 4007, 12, 1548, 82, 6459, 7923, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 677, 8981, 31590, 12, 93, 8981, 16, 8499, 16, 225, 1147, 6628, 1121, 4672, 309, 8499, 353, 605, 26473, 18, 6459, 30, 309, 7916, 4098, 67, 6420, 30, 4007, 12, 1548, 82, 6459, 7923, 327,...
self.endTagBody(impliedTagToken("body")) if not self.parser.innerHTML:
if self.tree.elementInScope("body"): self.endTagBody(impliedTagToken("body"))
def endTagHtml(self, token): self.endTagBody(impliedTagToken("body")) if not self.parser.innerHTML: self.parser.phase.processEndTag(token)
80c2b4cef19c386549c030673270ccb8f3df59f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/80c2b4cef19c386549c030673270ccb8f3df59f9/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 4353, 12, 2890, 16, 1147, 4672, 225, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 409, 1805, 2250, 12, 381, 3110, 1805, 1345, 2932, 3432, 6, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 4353, 12, 2890, 16, 1147, 4672, 225, 309, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 409, 1805, 2250, 12, 381, 3110, 1805, 1345, 2932, 3432, 6, 3719, 365,...
print 'Warning: %s appears more than one in sqlobject.txt' % name
print 'Warning: %s appears more than once in sqlobject.txt' % name
def config_from_egg(self, egg_spec, warn_no_sqlobject=True): import pkg_resources pkg_resources.require(egg_spec) dist = pkg_resources.working_set.find(pkg_resources.Requirement(egg_spec)) if not dist.has_metadata('sqlobject.txt'): if warn_no_sqlobject: print 'No sqlobject.txt in %s egg info' % egg_spec return {} resul...
405b4a01d16d3072edfa7c8f5831c7bcd139f4b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/405b4a01d16d3072edfa7c8f5831c7bcd139f4b8/command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 642, 67, 2080, 67, 23171, 12, 2890, 16, 25144, 67, 2793, 16, 1894, 67, 2135, 67, 11410, 383, 489, 33, 5510, 4672, 1930, 3475, 67, 4683, 3475, 67, 4683, 18, 6528, 12, 23171, 67, 2793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 642, 67, 2080, 67, 23171, 12, 2890, 16, 25144, 67, 2793, 16, 1894, 67, 2135, 67, 11410, 383, 489, 33, 5510, 4672, 1930, 3475, 67, 4683, 3475, 67, 4683, 18, 6528, 12, 23171, 67, 2793, ...
if err.errno != err.ESRCH:
if err.errno != errno.ESRCH:
def stopBuild(results, pid, inF, csFile): log.info('killing %s' % pid) try: os.kill(-pid, signal.SIGTERM) except OSError, err: if err.errno != errno.ENOENT: raise else: log.warning('cooking pid %s did not exit' % pid) timeSlept = 0 while timeSlept < 10: gotResult, status = os.waitpid(pid, os.WNOHANG) if gotResult: bre...
77acbc9ab36a76a701c56880641d224635b7b25c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8749/77acbc9ab36a76a701c56880641d224635b7b25c/cook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 3116, 12, 4717, 16, 4231, 16, 316, 42, 16, 2873, 812, 4672, 613, 18, 1376, 2668, 79, 5789, 738, 87, 11, 738, 4231, 13, 775, 30, 1140, 18, 16418, 19236, 6610, 16, 4277, 18, 1851...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2132, 3116, 12, 4717, 16, 4231, 16, 316, 42, 16, 2873, 812, 4672, 613, 18, 1376, 2668, 79, 5789, 738, 87, 11, 738, 4231, 13, 775, 30, 1140, 18, 16418, 19236, 6610, 16, 4277, 18, 1851...
[Group(()), Group([ (2,3) ]), Group([ (1,2,3) ]), Group([ (1,3,2), (1,2) ])]
[Permutation Group with generators [()], Permutation Group with generators [(2,3)], Permutation Group with generators [(1,2,3)], Permutation Group with generators [(1,3,2), (1,2)]]
def conjugacy_classes_subgroups(self): """ Returns a complete list of representatives of conjugacy classes of subgroups in a permutation group G. The ordering is that given by GAP.
a24fa15d96a0883c03c8f3d8187556835776e54e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a24fa15d96a0883c03c8f3d8187556835776e54e/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10550, 637, 3505, 67, 4701, 67, 1717, 4650, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 434, 720, 4650, 316, 279, 17440, 1041, 611, 18, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10550, 637, 3505, 67, 4701, 67, 1717, 4650, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 434, 720, 4650, 316, 279, 17440, 1041, 611, 18, 1021...
security according to the given contextFactory, or which fails
secured according to the given contextFactory, or which fails
def startTLS(self, contextFactory=None): """ Initiates a 'STARTTLS' request and negotiates the TLS / SSL Handshake.
66f0d92e0ba2edffa7906b1cbecccda7f1f988a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/66f0d92e0ba2edffa7906b1cbecccda7f1f988a7/imap4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 9905, 12, 2890, 16, 819, 1733, 33, 7036, 4672, 3536, 4378, 16020, 279, 296, 20943, 1470, 3045, 11, 590, 471, 17257, 16020, 326, 8098, 342, 7419, 23998, 18, 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, 0, 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, 787, 9905, 12, 2890, 16, 819, 1733, 33, 7036, 4672, 3536, 4378, 16020, 279, 296, 20943, 1470, 3045, 11, 590, 471, 17257, 16020, 326, 8098, 342, 7419, 23998, 18, 2, -100, -100, -100, -100...
r = typ.__repr__
r = getattr(typ, "__repr__", None)
def _safe_repr(object, context, maxlevels, level): typ = _type(object) if typ is str: if 'locale' not in _sys.modules: return repr(object), True, False if "'" in object and '"' not in object: closure = '"' quotes = {'"': '\\"'} else: closure = "'" quotes = {"'": "\\'"} qget = quotes.get sio = _StringIO() write = sio.wr...
08b0c0fbbd3de860b00eba399d90410866be3497 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/08b0c0fbbd3de860b00eba399d90410866be3497/pprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4626, 67, 12715, 12, 1612, 16, 819, 16, 943, 12095, 16, 1801, 4672, 3815, 273, 389, 723, 12, 1612, 13, 309, 3815, 353, 609, 30, 309, 296, 6339, 11, 486, 316, 389, 9499, 18, 6400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4626, 67, 12715, 12, 1612, 16, 819, 16, 943, 12095, 16, 1801, 4672, 3815, 273, 389, 723, 12, 1612, 13, 309, 3815, 353, 609, 30, 309, 296, 6339, 11, 486, 316, 389, 9499, 18, 6400...
sfile.close();
sfile.close()
def CxxGetIncludes(path): date = filedate(path) if (CxxIncludeCache.has_key(path)): cached = CxxIncludeCache[path] if (cached[0]==date): return cached[1] try: sfile = open(path, 'rb') except: sys.exit("Cannot open source file \""+path+"\" for reading."); include = [] for line in sfile: match = CxxIncludeRegex.match(lin...
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 385, 5279, 967, 16815, 12, 803, 4672, 1509, 273, 585, 712, 12, 803, 13, 309, 261, 39, 5279, 8752, 1649, 18, 5332, 67, 856, 12, 803, 3719, 30, 3472, 273, 385, 5279, 8752, 1649, 63, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 385, 5279, 967, 16815, 12, 803, 4672, 1509, 273, 585, 712, 12, 803, 13, 309, 261, 39, 5279, 8752, 1649, 18, 5332, 67, 856, 12, 803, 3719, 30, 3472, 273, 385, 5279, 8752, 1649, 63, 80...
print "%s saving data " % str(datetime.datetime.now())
print "%s saving data: %d parties, %d members, %d memberships, %d votes " % (str(datetime.datetime.now()), len(parties), len(members), len(memberships), len(votes) )
def update_db_from_files(self): print "Update DB From Files"
0a0fa6735a34622421f1f704f96dc354387e7dad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1866/0a0fa6735a34622421f1f704f96dc354387e7dad/syncdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1966, 67, 2080, 67, 2354, 12, 2890, 4672, 1172, 315, 1891, 2383, 6338, 6471, 6, 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, 1089, 67, 1966, 67, 2080, 67, 2354, 12, 2890, 4672, 1172, 315, 1891, 2383, 6338, 6471, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.add_option("-i", "--index", dest="index",
self.add_option("-i", "--index", type="int", dest="index",
def __init__(self, *args, **kwargs): SubOptionParser.__init__(self, *args, **kwargs) self.add_option("--string", help="String", dest="stringfile") self.add_option("-i", "--index", dest="index", help="get string at INDEX") self.add_option("-t", "--type", dest="type", help="get mission string of specific type, either 'ad...
bb808c5bcf977a338042449f4038838c65aca68d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6099/bb808c5bcf977a338042449f4038838c65aca68d/eastwood.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 2592, 1895, 2678, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1289, 67, 3482, 2932, 413, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 4333, 4672, 2592, 1895, 2678, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 1289, 67, 3482, 2932, 413, 108...
self.error(3, row + 1, ERROR_END_OVERLAP)
self.error(row, 3, ERROR_END_OVERLAP)
def process(self): sh = self.sheet for row in range(1, sh.nrows): num_errors = len(self.errors) data = {} data['__name__'] = self.getRequiredTextFromCell(sh, row, 0) data['title'] = self.getRequiredTextFromCell(sh, row, 1) data['first'] = self.getDateFromCell(sh, row, 2) data['last'] = self.getDateFromCell(sh, row, 3) ...
57d3328c0c1a99c8d6574f10fa1d32e8fe0d442c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7127/57d3328c0c1a99c8d6574f10fa1d32e8fe0d442c/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 699, 273, 365, 18, 8118, 364, 1027, 316, 1048, 12, 21, 16, 699, 18, 82, 3870, 4672, 818, 67, 4324, 273, 562, 12, 2890, 18, 4324, 13, 501, 273, 2618, 501, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1207, 12, 2890, 4672, 699, 273, 365, 18, 8118, 364, 1027, 316, 1048, 12, 21, 16, 699, 18, 82, 3870, 4672, 818, 67, 4324, 273, 562, 12, 2890, 18, 4324, 13, 501, 273, 2618, 501, 3292, ...
if (self.path.find("/cache/no-store/max-age") != 0):
if not self._ShouldHandleRequest("/cache/no-store/max-age"):
def CacheNoStoreMaxAgeHandler(self): """This request handler yields a page with the title set to the current system time, and does not allow the page to be stored even though max-age of 60 seconds is specified."""
fd57e3fda1b173b113442291fc77ddf1659615e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/fd57e3fda1b173b113442291fc77ddf1659615e2/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4379, 2279, 2257, 2747, 9692, 1503, 12, 2890, 4672, 3536, 2503, 590, 1838, 16932, 279, 1363, 598, 326, 2077, 444, 358, 326, 783, 2619, 813, 16, 471, 1552, 486, 1699, 326, 1363, 358, 506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4379, 2279, 2257, 2747, 9692, 1503, 12, 2890, 4672, 3536, 2503, 590, 1838, 16932, 279, 1363, 598, 326, 2077, 444, 358, 326, 783, 2619, 813, 16, 471, 1552, 486, 1699, 326, 1363, 358, 506,...
PyErr_SetString(PyExc_RuntimeError, \"Unable to load gameracore.\");
PyErr_SetString(PyExc_RuntimeError, \"Unable to load gameracore.\\n\");
[[def switch(layer, args)]] switch(get_image_combination([[images[layer].name]], cc_type)) { [[for type in images[layer].pixel_types]] [[exec current = '*((' + type + '*)((RectObject*)' + images[layer].name + ')->m_x)']] case [[type.upper()]]: [[if layer == len(images) - 1]] [[if function.return_type != None]] return_v...
d0955d089e22590fe4cf90052f62d885bd031828 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9927/d0955d089e22590fe4cf90052f62d885bd031828/generate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 12167, 536, 1620, 12, 6363, 16, 833, 13, 13563, 1620, 12, 588, 67, 2730, 67, 9301, 1735, 3816, 63, 7369, 63, 6363, 8009, 529, 65, 6487, 4946, 67, 723, 3719, 288, 12167, 1884, 618, 316, 4602,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12167, 536, 1620, 12, 6363, 16, 833, 13, 13563, 1620, 12, 588, 67, 2730, 67, 9301, 1735, 3816, 63, 7369, 63, 6363, 8009, 529, 65, 6487, 4946, 67, 723, 3719, 288, 12167, 1884, 618, 316, 4602,...
if self._cmd(output, self._db.preferences.downloadDir,
if _cmd(output, self._db.preferences.downloadDir,
def downloadPackageOnly(self, output=None): """Download a single package, if needed. An MD5 signature is used to determine whether download is needed, and to test that we actually downloaded what we expected. If output is given it is a file-like object that will receive a log of what happens. If anything unforeseen h...
febcb863ca7d0946923a410edd2f9082b0ce60b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/febcb863ca7d0946923a410edd2f9082b0ce60b8/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 7109, 279, 2202, 2181, 16, 309, 3577, 18, 225, 1922, 10852, 25, 3372, 353, 1399, 358, 4199, 2856, 4224, 353, 3577, 16, 471, 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, 4224, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 7109, 279, 2202, 2181, 16, 309, 3577, 18, 225, 1922, 10852, 25, 3372, 353, 1399, 358, 4199, 2856, 4224, 353, 3577, 16, 471, 3...
do_elflink_test("xB." + cmd, combine("HUGETLB_MINIMAL_COPY=no", pre)) do_elflink_test("xBDT." + cmd, combine("HUGETLB_MINIMAL_COPY=no", pre))
do_elflink_test("xB." + cmd, HUGETLB_MINIMAL_COPY="no", **env) do_elflink_test("xBDT." + cmd, HUGETLB_MINIMAL_COPY="no", **env)
def elflink_test(cmd, pre=""): """ Run an elflink test case with different configuration combinations. Test various combinations of: preloading libhugetlbfs, B vs. BDT link modes, minimal copying on or off, and disabling segment remapping. """ do_test(cmd, pre) # Test we don't blow up if not linked for hugepage do_tes...
637db55c57379f6e4c69d320ca16f9b05c873e3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3715/637db55c57379f6e4c69d320ca16f9b05c873e3f/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 74, 1232, 67, 3813, 12, 4172, 16, 675, 1546, 6, 4672, 3536, 1939, 392, 415, 74, 1232, 1842, 648, 598, 3775, 1664, 17265, 18, 225, 7766, 11191, 17265, 434, 30, 675, 15174, 2561, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 415, 74, 1232, 67, 3813, 12, 4172, 16, 675, 1546, 6, 4672, 3536, 1939, 392, 415, 74, 1232, 1842, 648, 598, 3775, 1664, 17265, 18, 225, 7766, 11191, 17265, 434, 30, 675, 15174, 2561, 76...
if warnings == None: warnings = []
def _colorize(doc, token, errors, warnings=None, tagName='para'): """ Given a string containing the contents of a paragraph, produce a DOM C{Element} encoding that paragraph. Colorized regions are represented using DOM C{Element}s, and text is represented using DOM C{Text}s. @param errors: A list of errors. Any newl...
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3266, 554, 12, 2434, 16, 1147, 16, 1334, 16, 5599, 33, 7036, 16, 7196, 2218, 25072, 11, 4672, 3536, 16803, 279, 533, 4191, 326, 2939, 434, 279, 10190, 16, 11402, 279, 4703, 385, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3266, 554, 12, 2434, 16, 1147, 16, 1334, 16, 5599, 33, 7036, 16, 7196, 2218, 25072, 11, 4672, 3536, 16803, 279, 533, 4191, 326, 2939, 434, 279, 10190, 16, 11402, 279, 4703, 385, 9...
if do_csv: if depth == 1: csvstring += str(level + 1) + "," + target else: csvstring += str(level + 1) + "," + target + "," + title if level > 0 or depth < 2: for dep in deps: csvstring += "," + dep print csvstring else: if level == 1: print spacer + title print spacer + "[" + str(level + 1) + "]" + target + ":" space...
if level == 1: print_path_dep(parent, soname, dep, level) print_dep(dep, level) else: print_path_dep(parent, soname, dep, level) print_dep(dep, level) target = dep_path(parent, dep) childdeps = deps_check(target) if len(childdeps) > 0: for childdep in childdeps: dep_loop(target, dep, childdep, level + 1)
def deps_print(title, parent, target, level, deps): csvstring = '' spacer = '' nospace = '' if level > 0: nospace += spacer for space in range(0, level): spacer += " " if len(deps) < 1: # FIXME - this blows up the recursion, just drop it? #deps.append("NONE") # at ld-linux - just suppress the output return if do_c...
89ba6d56319b5570ed0de187a733e3a224e3b917 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4228/89ba6d56319b5570ed0de187a733e3a224e3b917/readelf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8740, 67, 1188, 12, 2649, 16, 982, 16, 1018, 16, 1801, 16, 8740, 4672, 6101, 1080, 273, 875, 31896, 273, 875, 26628, 909, 273, 875, 225, 309, 1801, 405, 374, 30, 26628, 909, 1011, 3189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8740, 67, 1188, 12, 2649, 16, 982, 16, 1018, 16, 1801, 16, 8740, 4672, 6101, 1080, 273, 875, 31896, 273, 875, 26628, 909, 273, 875, 225, 309, 1801, 405, 374, 30, 26628, 909, 1011, 3189...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 444) else quickfix.StringField.__init__(self, 444, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 6334, 13, 469, 30, 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, 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, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1059, 6334, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
def exportAttributes(self, outfile, level, namespace_='', name_='DNAPolymorphicStateSet'): outfile.write(' symbol=%s' % (quote_attrib(self.symbol), )) def exportChildren(self, outfile, level, namespace_='', name_='DNAPolymorphicStateSet'): for member_ in self.member: member_.export(outfile, level, namespace_, name_='me...
def exportAttributes(self, outfile, level, already_processed, namespace_='', name_='RestrictionStates'): super(RestrictionStates, self).exportAttributes(outfile, level, already_processed, namespace_, name_='RestrictionStates') def exportChildren(self, outfile, level, namespace_='', name_='RestrictionStates'): for meta_...
def exportAttributes(self, outfile, level, namespace_='', name_='DNAPolymorphicStateSet'): outfile.write(' symbol=%s' % (quote_attrib(self.symbol), ))
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 2498, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 8609, 2203, 355, 21976, 1119, 694, 11, 4672, 8756, 18, 2626, 2668, 3273, 5095, 87, 11, 738, 261, 6889...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 2498, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 8609, 2203, 355, 21976, 1119, 694, 11, 4672, 8756, 18, 2626, 2668, 3273, 5095, 87, 11, 738, 261, 6889...
def __init__(self, name, type='', descr=u'', default=None):
def __init__(self, name, type='', desc=u'', default=None):
def __init__(self, name, type='', descr=u'', default=None): self.name = name self.type = type self.descr = descr self.default = default self.value = default if type == '': if default == None: raise AttributeError('define type or default') self.type = default.__class__ if not descr and hasattr(default, '_descr'): self.d...
513f97ca83b44ea792b8e169cb28ed0b3e8c402e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11722/513f97ca83b44ea792b8e169cb28ed0b3e8c402e/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 618, 2218, 2187, 3044, 33, 89, 11, 2187, 805, 33, 7036, 4672, 365, 18, 529, 273, 508, 365, 18, 723, 273, 618, 365, 18, 28313, 273, 18426, 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, 1001, 2738, 972, 12, 2890, 16, 508, 16, 618, 2218, 2187, 3044, 33, 89, 11, 2187, 805, 33, 7036, 4672, 365, 18, 529, 273, 508, 365, 18, 723, 273, 618, 365, 18, 28313, 273, 18426, 365,...
self.lockname = 'parent.lock'
def __init__(self, profile_name): self.profile = profile_name self.prepareProfiles() home = os.getenv('USERPROFILE') self.appdata_path = os.path.join(home, 'AppData\\LocalLow') self.ieprofile = 'ieprofile' self.launcher = browser_launchers.FirefoxWin32Launcher(self.profile) self.lockname = 'parent.lock'
00d72a461cb1ea885a85d2ef38ae54199ba28ea1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/00d72a461cb1ea885a85d2ef38ae54199ba28ea1/installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3042, 67, 529, 4672, 365, 18, 5040, 273, 3042, 67, 529, 365, 18, 9366, 12450, 1435, 6382, 273, 1140, 18, 588, 3074, 2668, 4714, 22462, 6134, 365, 18, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3042, 67, 529, 4672, 365, 18, 5040, 273, 3042, 67, 529, 365, 18, 9366, 12450, 1435, 6382, 273, 1140, 18, 588, 3074, 2668, 4714, 22462, 6134, 365, 18, 291...
if scanner.real > game.energy:
if nrg > game.energy:
def doshield(shraise): "Change shield status." action = "NONE" game.ididit = False if shraise: action = "SHUP" else: key = scanner.next() if key == "IHALPHA": if scanner.sees("transfer"): action = "NRG" else: if damaged(DSHIELD): prout(_("Shields damaged and down.")) return if scanner.sees("up"): action = "SHUP" elif s...
a84cb603c99e0318fcbf80e75f88f0f3fbcca0aa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3176/a84cb603c99e0318fcbf80e75f88f0f3fbcca0aa/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16153, 76, 491, 12, 674, 11628, 4672, 315, 3043, 699, 491, 1267, 1199, 1301, 273, 315, 9826, 6, 7920, 18, 350, 350, 305, 273, 1083, 309, 699, 11628, 30, 1301, 273, 315, 2664, 3079, 6, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16153, 76, 491, 12, 674, 11628, 4672, 315, 3043, 699, 491, 1267, 1199, 1301, 273, 315, 9826, 6, 7920, 18, 350, 350, 305, 273, 1083, 309, 699, 11628, 30, 1301, 273, 315, 2664, 3079, 6, ...
buffer[c_read.value] = ctypes.c_char(0)
buffer[c_read.value] = null_byte
def PeekNamedPipe(handle, desired_bytes): c_avail = DWORD() c_message = DWORD() if desired_bytes > 0: c_read = DWORD() buffer = ctypes.create_string_buffer(desired_bytes+1) success = ctypes.windll.kernel32.PeekNamedPipe(handle, buffer, desired_bytes, ctypes.byref(c_read), ctypes.byref(c_avail), ctypes.byref(c_message))...
d2abbabfe604e54d7f496c68dc8a0d00aa563727 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1298/d2abbabfe604e54d7f496c68dc8a0d00aa563727/async_sub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22173, 7604, 11546, 12, 4110, 16, 6049, 67, 3890, 4672, 276, 67, 842, 671, 273, 463, 7952, 1435, 276, 67, 2150, 273, 463, 7952, 1435, 309, 6049, 67, 3890, 405, 374, 30, 276, 67, 896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22173, 7604, 11546, 12, 4110, 16, 6049, 67, 3890, 4672, 276, 67, 842, 671, 273, 463, 7952, 1435, 276, 67, 2150, 273, 463, 7952, 1435, 309, 6049, 67, 3890, 405, 374, 30, 276, 67, 896, ...
self._name = "The fast crystal for %s2 with shape [%d,%d]"%(type[0],l1,l2)
if int(2*l1)%2 == 0: l1_str = "%d"%l1 l2_str = "%d"%l2 else: assert self.cartanType[0] == 'B' and int(2*l2)%2 == 1 l1_str = "%d/2"%int(2*l1) l2_str = "%d/2"%int(2*l2) self._name = "The fast crystal for %s2 with shape [%s,%s]"%(type[0],l1_str,l2_str)
def __init__(self, type, l1, l2): self.delpat = [] self.gampat = [] if not type[1] == 2: raise NotImplementedError if type[0] == 'A': for b in range(l2,-1,-1): for a in range(l1,l2-1,-1): for c in range(a,b-1,-1): a3 = l1-a a2 = l1+l2-a-b a1 = a-c b1 = max(a3,a2-a1); b2 = a1+a3; b3 = min(a2-a3,a1); self.delpat.append(...
04186e5fe90f27638ec0caf492557cfe4e65e9b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/04186e5fe90f27638ec0caf492557cfe4e65e9b7/fast_crystal_experiment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 16, 328, 21, 16, 328, 22, 4672, 365, 18, 72, 1992, 270, 273, 5378, 365, 18, 75, 931, 270, 273, 5378, 309, 486, 618, 63, 21, 65, 422, 576, 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, 1001, 2738, 972, 12, 2890, 16, 618, 16, 328, 21, 16, 328, 22, 4672, 365, 18, 72, 1992, 270, 273, 5378, 365, 18, 75, 931, 270, 273, 5378, 309, 486, 618, 63, 21, 65, 422, 576, 30, ...
:param jobstore: alias of the job store to add the job to
def add_cron_job(self, func, year='*', month='*', day='*', week='*', day_of_week='*', hour='*', minute='*', second='*', args=None, kwargs=None, **options): """ Adds a job to be completed on times that match the given expressions.
6dd2e2b8f529c53f3b95282212a8546d72aaec81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/6dd2e2b8f529c53f3b95282212a8546d72aaec81/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 18041, 67, 4688, 12, 2890, 16, 1326, 16, 3286, 2218, 14, 2187, 3138, 2218, 14, 2187, 2548, 2218, 14, 2187, 4860, 2218, 14, 2187, 2548, 67, 792, 67, 10741, 2218, 14, 2187, 6126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 18041, 67, 4688, 12, 2890, 16, 1326, 16, 3286, 2218, 14, 2187, 3138, 2218, 14, 2187, 2548, 2218, 14, 2187, 4860, 2218, 14, 2187, 2548, 67, 792, 67, 10741, 2218, 14, 2187, 6126...
def setRebootStatut(self, halted):
def setRebootStatut(self, rebooted):
def setRebootStatut(self, halted): self.rebooted = rebooted self.flush()
cc0d89318fdc7616db760b027eaa4dea3da9ba56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/cc0d89318fdc7616db760b027eaa4dea3da9ba56/commands_on_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 31569, 5000, 322, 12, 2890, 16, 22852, 329, 4672, 365, 18, 266, 7137, 329, 273, 22852, 329, 365, 18, 11330, 1435, 2, 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, 444, 31569, 5000, 322, 12, 2890, 16, 22852, 329, 4672, 365, 18, 266, 7137, 329, 273, 22852, 329, 365, 18, 11330, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.dbconnection = sqlite.connect(self.dbFilename)
self.dbconnection = sqlite.connect(self.dbFilename)
def connection(self): """only for intra-class use""" if not self.connected: # Create a connection to the database file "mydb" self.dbconnection = sqlite.connect(self.dbFilename) self.dbcursor = None self.connected = True return self.dbconnection
17a05130097339e67b827a8c0d6da536b6b2cce6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/17a05130097339e67b827a8c0d6da536b6b2cce6/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1459, 12, 2890, 4672, 3536, 3700, 364, 316, 2033, 17, 1106, 999, 8395, 309, 486, 365, 18, 8537, 30, 468, 1788, 279, 1459, 358, 326, 2063, 585, 315, 4811, 1966, 6, 365, 18, 1966, 4071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1459, 12, 2890, 4672, 3536, 3700, 364, 316, 2033, 17, 1106, 999, 8395, 309, 486, 365, 18, 8537, 30, 468, 1788, 279, 1459, 358, 326, 2063, 585, 315, 4811, 1966, 6, 365, 18, 1966, 4071, ...
imageR = re.compile('\w\w\w+\.(?:gif|png|jpg|jpeg|svg)', re.IGNORECASE)
imageR = re.compile('\w\w\w+\.(?:gif|png|jpg|jpeg|svg|JPG|xcf|pdf|mid|ogg|djvu)', re.IGNORECASE)
def imagelinks(self, followRedirects=False, loose=False): """Return a list of ImagePage objects for images displayed on this Page.
4486f132eb9ce0c7ed68dc5ba82f8bf1f770517e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/4486f132eb9ce0c7ed68dc5ba82f8bf1f770517e/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8902, 27269, 87, 12, 2890, 16, 2805, 21978, 33, 8381, 16, 28393, 33, 8381, 4672, 3536, 990, 279, 666, 434, 3421, 1964, 2184, 364, 4602, 10453, 603, 333, 3460, 18, 2, 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, 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, 8902, 27269, 87, 12, 2890, 16, 2805, 21978, 33, 8381, 16, 28393, 33, 8381, 4672, 3536, 990, 279, 666, 434, 3421, 1964, 2184, 364, 4602, 10453, 603, 333, 3460, 18, 2, -100, -100, -100, ...
if not self.readerstates.has_key( reader ): self.readerstates[ reader ] = ( reader, SCARD_STATE_UNAWARE )
if not readerstates.has_key( reader ): readerstates[ reader ] = ( reader, SCARD_STATE_UNAWARE )
def waitforcard( self ): """Wait for card insertion and returns a card service.""" AbstractCardRequest.waitforcard( self ) cardfound=False
bd906620dedf29f1dd4a18dfc01ad590122ac8b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3537/bd906620dedf29f1dd4a18dfc01ad590122ac8b1/PCSCCardRequest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 1884, 3327, 12, 365, 262, 30, 3536, 5480, 364, 5270, 12626, 471, 1135, 279, 5270, 1156, 12123, 4115, 6415, 691, 18, 7048, 1884, 3327, 12, 365, 262, 5270, 7015, 33, 8381, 2, 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, 2529, 1884, 3327, 12, 365, 262, 30, 3536, 5480, 364, 5270, 12626, 471, 1135, 279, 5270, 1156, 12123, 4115, 6415, 691, 18, 7048, 1884, 3327, 12, 365, 262, 5270, 7015, 33, 8381, 2, -100, ...
aPath = os.path.abspath(os.path.dirname(filename)) if not aPath in sys.path: sys.path.insert(0, aPath) else: aPath = os.getcwd() if not aPath in sys.path: sys.path.insert(0, aPath) t = PyShell(flist) flist.pyshell = t t.begin()
shell = PyShell(flist) interp = shell.interp flist.pyshell = shell if startup: filename = os.environ.get("IDLESTARTUP") or \ os.environ.get("PYTHONSTARTUP") if filename and os.path.isfile(filename): interp.execfile(filename)
def main(): debug = 0 try: opts, args = getopt.getopt(sys.argv[1:], "d") except getopt.error, msg: sys.stderr.write("Error: %s\n" % str(msg)) sys.exit(2) for o, a in opts: if o == "-d": debug = 1 global flist, root root = Tk() fixwordbreaks(root) root.withdraw() flist = PyShellFileList(root) if args: for filename in sy...
9e37a41814a378d7017bd5b336151f30a46ac96a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9e37a41814a378d7017bd5b336151f30a46ac96a/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1198, 273, 374, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 273, 374, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315, 72, 7923, 1335, 336, 3838, 18, 1636, 16, 1234, 30, 258...
lines = string.splitlines(True) if lines: self._append_plain_text(lines[0]) for i in xrange(1, len(lines)): if self._continuation_prompt_html is None: self._append_plain_text(self._continuation_prompt) else: self._append_html(self._continuation_prompt_html) self._append_plain_text(lines[i])
self._insert_plain_text_into_buffer(self._get_prompt_cursor(), string)
def _set_input_buffer(self, string): """ Replaces the text in the input buffer with 'string'. """ # For now, it is an error to modify the input buffer during execution. if self._executing: raise RuntimeError("Cannot change input buffer during execution.")
9ef471da588e333547e025acd8b584976b9e878b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/9ef471da588e333547e025acd8b584976b9e878b/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 2630, 67, 4106, 12, 2890, 16, 533, 4672, 3536, 868, 11350, 326, 977, 316, 326, 810, 1613, 598, 296, 1080, 10332, 3536, 468, 2457, 2037, 16, 518, 353, 392, 555, 358, 5612,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 67, 2630, 67, 4106, 12, 2890, 16, 533, 4672, 3536, 868, 11350, 326, 977, 316, 326, 810, 1613, 598, 296, 1080, 10332, 3536, 468, 2457, 2037, 16, 518, 353, 392, 555, 358, 5612,...
if page['privs'] is None or conn.has_privilege(page['privs']):
if page['privs'] is None or (conn is not None and conn.has_privilege(page['privs'])):
def build_page_set(conn): pageset = { 'account': { 'title': "My Account", 'privs': None }, 'channel/list': { 'title': "My Channels", 'privs': None }, 'memo/list': { 'title': "Memo Inbox", 'privs': None }, 'memo/write': { 'title': "New Memo", 'privs': None }, 'akill/list': { 'title': "AKILLs", 'privs': 'operserv:akill',...
77c97c4cadc9d56fa761f5b820cfd569440380b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11146/77c97c4cadc9d56fa761f5b820cfd569440380b3/pageset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2433, 67, 542, 12, 4646, 4672, 4689, 278, 273, 288, 296, 4631, 4278, 288, 296, 2649, 4278, 315, 12062, 6590, 3113, 296, 11365, 87, 4278, 599, 19879, 296, 4327, 19, 1098, 4278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2433, 67, 542, 12, 4646, 4672, 4689, 278, 273, 288, 296, 4631, 4278, 288, 296, 2649, 4278, 315, 12062, 6590, 3113, 296, 11365, 87, 4278, 599, 19879, 296, 4327, 19, 1098, 4278, ...
def collect_dict_callback(self, dict_and_files, error): dict, files = dict_and_files
def collect_dict_callback(self, dict, error, files):
def collect_dict_callback(self, dict_and_files, error): dict, files = dict_and_files if not error: self.add_dict(dict) else: print "Failed to open dictionary: ", error self.open_dicts(files)
d4da2d8cacde0fd853192cdf7f0f0d9fb6c1ead0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/d4da2d8cacde0fd853192cdf7f0f0d9fb6c1ead0/pysdic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 67, 1576, 67, 3394, 12, 2890, 16, 2065, 16, 555, 16, 1390, 4672, 309, 486, 555, 30, 365, 18, 1289, 67, 1576, 12, 1576, 13, 469, 30, 1172, 315, 2925, 358, 1696, 3880, 30, 3104, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3274, 67, 1576, 67, 3394, 12, 2890, 16, 2065, 16, 555, 16, 1390, 4672, 309, 486, 555, 30, 365, 18, 1289, 67, 1576, 12, 1576, 13, 469, 30, 1172, 315, 2925, 358, 1696, 3880, 30, 3104, ...
'obj': obj
'obj': obj, 'MEDIA_URL': settings.MEDIA_URL
def add_related(request, object_type, object_id, form_class): if not request.is_ajax() or request.method != 'POST': raise Http404 model = get_model('core', object_type) instance = get_object_or_404(model, id=object_id) form = form_class(request.POST) if form.is_valid(): obj = form.save(commit=False) setattr(obj, object...
328a077e300166d058ea7a6db12edc4e22a14b23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/328a077e300166d058ea7a6db12edc4e22a14b23/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 9243, 12, 2293, 16, 733, 67, 723, 16, 733, 67, 350, 16, 646, 67, 1106, 4672, 309, 486, 590, 18, 291, 67, 12813, 1435, 578, 590, 18, 2039, 480, 296, 3798, 4278, 1002, 2541, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 67, 9243, 12, 2293, 16, 733, 67, 723, 16, 733, 67, 350, 16, 646, 67, 1106, 4672, 309, 486, 590, 18, 291, 67, 12813, 1435, 578, 590, 18, 2039, 480, 296, 3798, 4278, 1002, 2541, ...
cr.execute('select '+field._id1+' from '+field._rel+' where '+field._id2+' in ('+','.join(map(str, res_ids))+')')
cr.execute('select "'+field._id1+'" from "'+field._rel+'" where "'+field._id2+'" in ('+','.join(map(str, res_ids))+')')
def _rec_convert(ids): if self.pool.get(field._obj)==self: return ids if not len(ids): return [] cr.execute('select '+field._id1+' from '+field._rel+' where '+field._id2+' in ('+','.join(map(str,ids))+')') ids = [x[0] for x in cr.fetchall()] return ids
21e2436edcfd48b26e17230380299a3196aac8b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/21e2436edcfd48b26e17230380299a3196aac8b0/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 6283, 12, 2232, 4672, 309, 365, 18, 6011, 18, 588, 12, 1518, 6315, 2603, 13, 631, 2890, 30, 327, 3258, 309, 486, 562, 12, 2232, 4672, 327, 5378, 4422, 18, 8837, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3927, 67, 6283, 12, 2232, 4672, 309, 365, 18, 6011, 18, 588, 12, 1518, 6315, 2603, 13, 631, 2890, 30, 327, 3258, 309, 486, 562, 12, 2232, 4672, 327, 5378, 4422, 18, 8837, 2668, ...
sage: M.hecke_operator(f.qexp(), 3)
sage: M.hecke_operator(f.q_expansion(), 3)
def hecke_operator(self, f, m): r""" Given an element `f` and an integer `m`, calculates the Hecke operator `T_m` acting on `f`.
3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 9497, 12, 2890, 16, 284, 16, 312, 4672, 436, 8395, 16803, 392, 930, 1375, 74, 68, 471, 392, 3571, 1375, 81, 9191, 17264, 326, 670, 762, 73, 3726, 1375, 56, 67, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 9497, 12, 2890, 16, 284, 16, 312, 4672, 436, 8395, 16803, 392, 930, 1375, 74, 68, 471, 392, 3571, 1375, 81, 9191, 17264, 326, 670, 762, 73, 3726, 1375, 56, 67, 81, ...
world = m.look() print "world.terrain['points']
def _add_animals(m): deers=[] xbase = uniform(-180,180) ybase = uniform(-180,180) for i in range(0, 10): xpos = xbase + uniform(-20,20) ypos = ybase + uniform(-20,20) d=m.make('deer', pos=(xpos, ypos, settlement_height), transient=-1) deers.append(d) m.learn(deers,deer_goals) chickens=[] xbase = uniform(140,160) ybas...
cdf836022b0c2354921c1b6127296e9c79a97b6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12932/cdf836022b0c2354921c1b6127296e9c79a97b6b/define_world.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 304, 11366, 12, 81, 4672, 225, 443, 414, 33, 8526, 619, 1969, 273, 10823, 19236, 18278, 16, 18278, 13, 677, 1969, 273, 10823, 19236, 18278, 16, 18278, 13, 364, 277, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 304, 11366, 12, 81, 4672, 225, 443, 414, 33, 8526, 619, 1969, 273, 10823, 19236, 18278, 16, 18278, 13, 677, 1969, 273, 10823, 19236, 18278, 16, 18278, 13, 364, 277, 316, ...
'te': u'సభ్యులు',
'te': [u'సభ్యులు', u'సభ్యుడు'],
def __init__(self): self.name = None # Updated from http://meta.wikimedia.org/wiki/Interwiki_sorting_order self.alphabetic = [ 'aa','af','ak','als','am','ang','ab','ar','an','arc','roa-rup','frp','as', 'ast','gn','av','ay','az','bm','bn','zh-min-nan','map-bms','ba','be','be-x-old', 'bh','bcl','bi','bar','bo','bs','br',...
aa052f2ceb0fd3c2cc621153d457f416a70a9607 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/aa052f2ceb0fd3c2cc621153d457f416a70a9607/family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 529, 273, 599, 468, 19301, 628, 1062, 2207, 3901, 18, 11999, 381, 1980, 18, 3341, 19, 13044, 19, 2465, 13044, 67, 28751, 67, 1019, 365, 18, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 529, 273, 599, 468, 19301, 628, 1062, 2207, 3901, 18, 11999, 381, 1980, 18, 3341, 19, 13044, 19, 2465, 13044, 67, 28751, 67, 1019, 365, 18, 28...
universe = the condor universe to run the job in executable = the executable to run queue = number of jobs to queue
universe = the condor universe to run the job in. executable = the executable to run. queue = number of jobs to queue.
def __init__(self, universe, executable, queue): """ universe = the condor universe to run the job in executable = the executable to run queue = number of jobs to queue """ self.__universe = universe self.__executable = executable self.__queue = queue
43adc4d722e280c921ddb7c38f99393e57936591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/43adc4d722e280c921ddb7c38f99393e57936591/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 29235, 16, 9070, 16, 2389, 4672, 3536, 29235, 273, 326, 6941, 280, 29235, 358, 1086, 326, 1719, 316, 18, 9070, 273, 326, 9070, 358, 1086, 18, 2389, 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, 1001, 2738, 972, 12, 2890, 16, 29235, 16, 9070, 16, 2389, 4672, 3536, 29235, 273, 326, 6941, 280, 29235, 358, 1086, 326, 1719, 316, 18, 9070, 273, 326, 9070, 358, 1086, 18, 2389, 273, ...
res = oRequest.getSubRequestFiles(ind,'transfer')
res = oRequest.getSubRequestFiles( ind, 'transfer' )
def execute(self): """ The main agent execution method """ # This allows dynamic changing of the throughput timescale self.throughputTimescale = self.am_getOption('ThroughputTimescale',3600) self.throughputTimescale = 60*60*1 #print 'ThroughputTimescale:',self.throughputTimescale ######################################...
9005c0a96ba1bc0698c543bcb4c1886f4eeee344 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9005c0a96ba1bc0698c543bcb4c1886f4eeee344/ReplicationScheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 225, 468, 1220, 5360, 5976, 12770, 434, 326, 24677, 1658, 31402, 365, 18, 10064, 458, 10178, 31402, 273, 365, 18, 301, 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, 1836, 12, 2890, 4672, 3536, 1021, 2774, 4040, 4588, 707, 3536, 225, 468, 1220, 5360, 5976, 12770, 434, 326, 24677, 1658, 31402, 365, 18, 10064, 458, 10178, 31402, 273, 365, 18, 301, 67, ...
sage: J1 < P2 False sage: J1 > P2
sage: J1 != P2
def __cmp__(self, J): """ Compare the Jacobian self to `J`. If `J` is a Jacobian, then self and `J` are equal if and only if their curves are equal.
4d908fa6f1f14d3e60c64b3768c88c9a0bb01754 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/4d908fa6f1f14d3e60c64b3768c88c9a0bb01754/abstract_jacobian.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 804, 4672, 3536, 11051, 326, 804, 1077, 26968, 365, 358, 1375, 46, 8338, 225, 971, 1375, 46, 68, 353, 279, 804, 1077, 26968, 16, 1508, 365, 471, 1375, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 9625, 972, 12, 2890, 16, 804, 4672, 3536, 11051, 326, 804, 1077, 26968, 365, 358, 1375, 46, 8338, 225, 971, 1375, 46, 68, 353, 279, 804, 1077, 26968, 16, 1508, 365, 471, 1375, 46...
(a,b) = m.groups()
(a,b,c) = m.groups()
def repl(m): (a,b) = m.groups() if (a and a in vars and isinstance(vars[a], str)): return r"%s + " % a elif (b and b in vars and isinstance(vars[b], str)): return r" + %s" % b else: return m.group()
c000c43e5224b1b8cbc84e9e417780c4181666bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5005/c000c43e5224b1b8cbc84e9e417780c4181666bc/preprocessor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 12, 81, 4672, 261, 69, 16, 70, 16, 71, 13, 273, 312, 18, 4650, 1435, 309, 261, 69, 471, 279, 316, 4153, 471, 1549, 12, 4699, 63, 69, 6487, 609, 3719, 30, 327, 436, 28385, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6831, 12, 81, 4672, 261, 69, 16, 70, 16, 71, 13, 273, 312, 18, 4650, 1435, 309, 261, 69, 471, 279, 316, 4153, 471, 1549, 12, 4699, 63, 69, 6487, 609, 3719, 30, 327, 436, 28385, 87,...
extraFilesPath.append(os.path.join(tmpDir, ifile))
extraFilesPath.append(os.path.join(archiveDir, ifile))
def files_lcg_ng(self): """Add install.sh and requirements to inputsandbox needed on LGC/NG backend"""
f62a2b36f788caffd88bddd7ab44c5ce170ea08a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/f62a2b36f788caffd88bddd7ab44c5ce170ea08a/Athena.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1390, 67, 17704, 75, 67, 3368, 12, 2890, 4672, 3536, 986, 3799, 18, 674, 471, 8433, 358, 4540, 9069, 3577, 603, 511, 15396, 19, 4960, 4221, 8395, 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, 0, 0, 0, 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, 1390, 67, 17704, 75, 67, 3368, 12, 2890, 4672, 3536, 986, 3799, 18, 674, 471, 8433, 358, 4540, 9069, 3577, 603, 511, 15396, 19, 4960, 4221, 8395, 2, -100, -100, -100, -100, -100, -100, ...
0
O(3^5)
def uniformizer_pow(self, n): """ Returns p^n, as an element of self.
29edb75bfc73ae3aa08741a408eef6c66ae356d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/29edb75bfc73ae3aa08741a408eef6c66ae356d4/padic_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10823, 1824, 67, 23509, 12, 2890, 16, 290, 4672, 3536, 2860, 293, 66, 82, 16, 487, 392, 930, 434, 365, 18, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10823, 1824, 67, 23509, 12, 2890, 16, 290, 4672, 3536, 2860, 293, 66, 82, 16, 487, 392, 930, 434, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def GetWith( self, expression, compare=(lambda a,b:a.find(b) >= 0) ):
def GetWith( self, expression, compare=(lambda a,b:fnmatch.fnmatch(a,b))):
def GetWith( self, expression, compare=(lambda a,b:a.find(b) >= 0) ): """Returns a list of all processes that contain the expression in their command line.""" res = [] for pid, cmdline in self.List().items(): if compare(cmdline, expression): res.append(pid) return res
9404b446a7f5df70f4234899c67cd67a75614d51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13002/9404b446a7f5df70f4234899c67cd67a75614d51/watchdog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1190, 12, 365, 16, 2652, 16, 3400, 28657, 14661, 279, 16, 70, 30, 4293, 1916, 18, 4293, 1916, 12, 69, 16, 70, 3719, 4672, 3536, 1356, 279, 666, 434, 777, 8488, 716, 912, 326, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 1190, 12, 365, 16, 2652, 16, 3400, 28657, 14661, 279, 16, 70, 30, 4293, 1916, 18, 4293, 1916, 12, 69, 16, 70, 3719, 4672, 3536, 1356, 279, 666, 434, 777, 8488, 716, 912, 326, 26...
while self.child_out_fd:
while self.child_pid_for_out_fd:
def __call__(self, iterable): for i,x in enumerate(iterable): args = tupleize(x) r,w = os.pipe() pid = os.fork() if pid > 0: # parent if self.debug: print "parent: from %i, child %i: to %i" % (r, pid, w) os.close(w) self.child_pid_for_out_fd[r] = pid self.index_of_pid[pid] = i for result in self.poll(): yield result el...
f2c207f46e5b2ba28b0f4114f1e6bc4ae30d30dc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/f2c207f46e5b2ba28b0f4114f1e6bc4ae30d30dc/symmetric_multi_processing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 6087, 4672, 364, 277, 16, 92, 316, 4241, 12, 15364, 4672, 833, 273, 3193, 554, 12, 92, 13, 436, 16, 91, 273, 1140, 18, 14772, 1435, 4231, 273, 1140, 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, 1991, 972, 12, 2890, 16, 6087, 4672, 364, 277, 16, 92, 316, 4241, 12, 15364, 4672, 833, 273, 3193, 554, 12, 92, 13, 436, 16, 91, 273, 1140, 18, 14772, 1435, 4231, 273, 1140, 18...
try: message = message.decode(self.factory.encoding) except UnicodeDecodeError: log.err(None, 'Could not decode kick message from %s on channel %s.' % (kicker, channel)) message = u''
def userKicked(self, kickee, channel, kicker, message): try: message = message.decode(self.factory.encoding) except UnicodeDecodeError: log.err(None, 'Could not decode kick message from %s on channel %s.' % (kicker, channel)) message = u'' self.call_handlers('userKicked', channel, [kickee, channel, kicker, message]) s...
291d4b3f6ad2bc6800b65dd9dcec7bbdca8ac38b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6476/291d4b3f6ad2bc6800b65dd9dcec7bbdca8ac38b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 47, 1200, 329, 12, 2890, 16, 23228, 1340, 16, 1904, 16, 417, 5448, 16, 883, 4672, 365, 18, 1991, 67, 11046, 2668, 1355, 47, 1200, 329, 2187, 1904, 16, 306, 79, 1200, 1340, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 47, 1200, 329, 12, 2890, 16, 23228, 1340, 16, 1904, 16, 417, 5448, 16, 883, 4672, 365, 18, 1991, 67, 11046, 2668, 1355, 47, 1200, 329, 2187, 1904, 16, 306, 79, 1200, 1340, 16, 1...
<a href="/mailpass">|strmail_passwd||uri.lang_ext|</a><br>
<a href="/mailpass|uri.lang_ext|">|strmail_passwd|</a><br>
def login(self, uri, user): if self.command_line==1: return '' if user: log(3, 'Creating active user box') box = '''<table class="navbox"> <tr><th>|stractive_user|</th></tr> <form name="logout" action="/data/session/logout"> <input name="username" type="hidden" value="%s"> <tr><td align="center"> <a href="/user/|sessio...
082273c82228cdbe8b4f226333276a401090d396 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/082273c82228cdbe8b4f226333276a401090d396/HTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 2003, 16, 729, 4672, 309, 365, 18, 3076, 67, 1369, 631, 21, 30, 327, 875, 309, 729, 30, 613, 12, 23, 16, 296, 11092, 2695, 729, 3919, 6134, 3919, 273, 9163, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3925, 12, 2890, 16, 2003, 16, 729, 4672, 309, 365, 18, 3076, 67, 1369, 631, 21, 30, 327, 875, 309, 729, 30, 613, 12, 23, 16, 296, 11092, 2695, 729, 3919, 6134, 3919, 273, 9163, 32, ...
def create_bug_with_patch(self, bug_title, bug_description, component, patch_file_object, patch_description, cc, mark_for_review=False):
def create_bug_with_patch(self, bug_title, bug_description, component, patch_file_object, patch_description, cc, mark_for_review=False, mark_for_commit_queue=False):
def create_bug_with_patch(self, bug_title, bug_description, component, patch_file_object, patch_description, cc, mark_for_review=False): self.authenticate()
4a97bff3bcf8faabd5f8267cca634d3eaaac10c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/4a97bff3bcf8faabd5f8267cca634d3eaaac10c2/bugzilla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 925, 67, 1918, 67, 2272, 12, 2890, 16, 7934, 67, 2649, 16, 7934, 67, 3384, 16, 1794, 16, 4729, 67, 768, 67, 1612, 16, 4729, 67, 3384, 16, 4946, 16, 2267, 67, 1884, 67, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 925, 67, 1918, 67, 2272, 12, 2890, 16, 7934, 67, 2649, 16, 7934, 67, 3384, 16, 1794, 16, 4729, 67, 768, 67, 1612, 16, 4729, 67, 3384, 16, 4946, 16, 2267, 67, 1884, 67, 160...
requested version is not in unstable, than the hint is skipped.
requested version is not in unstable, then the hint is skipped.
def do_hint(self, type, who, pkgvers): """Process hints
644caa3f3125e8104b46e0ef2774fdb1917b2f5c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/644caa3f3125e8104b46e0ef2774fdb1917b2f5c/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11317, 12, 2890, 16, 618, 16, 10354, 16, 3475, 2496, 4672, 3536, 2227, 13442, 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, 741, 67, 11317, 12, 2890, 16, 618, 16, 10354, 16, 3475, 2496, 4672, 3536, 2227, 13442, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not delim in element.text: success = true output.append('\\verb'+delim+element.text+delim)
if not delim in text: success = True output.append('\\verb'+delim+text+delim)
def dump_children(self, list, output, list_level = -1): if list.text: output.append(list.text)
ac41eeba50a29c9fd21ae17bc66b910ea7d1d577 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/ac41eeba50a29c9fd21ae17bc66b910ea7d1d577/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 5906, 12, 2890, 16, 666, 16, 876, 16, 666, 67, 2815, 273, 300, 21, 4672, 309, 666, 18, 955, 30, 876, 18, 6923, 12, 1098, 18, 955, 13, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 5906, 12, 2890, 16, 666, 16, 876, 16, 666, 67, 2815, 273, 300, 21, 4672, 309, 666, 18, 955, 30, 876, 18, 6923, 12, 1098, 18, 955, 13, 2, -100, -100, -100, -100, -100, -10...
def set_param(self, param, value, header='Content-Type', requote=1):
def set_param(self, param, value, header='Content-Type', requote=1, charset=None, language=''):
def set_param(self, param, value, header='Content-Type', requote=1): """Set a parameter in the Content-Type: header.
3c25535dc81492b8f703056dbd3b9685db4ca936 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3c25535dc81492b8f703056dbd3b9685db4ca936/Message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 891, 12, 2890, 16, 579, 16, 460, 16, 1446, 2218, 1350, 17, 559, 2187, 283, 6889, 33, 21, 16, 4856, 33, 7036, 16, 2653, 2218, 11, 4672, 3536, 694, 279, 1569, 316, 326, 3697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 891, 12, 2890, 16, 579, 16, 460, 16, 1446, 2218, 1350, 17, 559, 2187, 283, 6889, 33, 21, 16, 4856, 33, 7036, 16, 2653, 2218, 11, 4672, 3536, 694, 279, 1569, 316, 326, 3697, ...
if self.moduleId>0:
if self.moduleId>=0:
def configure(self): """ configure() -> None Open the modal configuration window """ if self.moduleId>0: self.scene().open_configure_window(self.moduleId)
84faf4834ba1d99eb8acdc3617483533c95e390e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/84faf4834ba1d99eb8acdc3617483533c95e390e/pipeline_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 4672, 3536, 5068, 1435, 317, 599, 3502, 326, 13010, 1664, 2742, 3536, 309, 365, 18, 2978, 548, 34, 33, 20, 30, 365, 18, 23694, 7675, 3190, 67, 14895, 67, 5668, 12, 2890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5068, 12, 2890, 4672, 3536, 5068, 1435, 317, 599, 3502, 326, 13010, 1664, 2742, 3536, 309, 365, 18, 2978, 548, 34, 33, 20, 30, 365, 18, 23694, 7675, 3190, 67, 14895, 67, 5668, 12, 2890...
return '<![CDATA[%s]]>' % self.generateFilledConfigForm()
return '<![CDATA[%s]]>' % self.generatePopulatedConfigForm()
def getForm(self): """Returns a filled configuration form.
961821a20ae2dbd3026d4f99905a647760874cd0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/961821a20ae2dbd3026d4f99905a647760874cd0/connectormanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11221, 12, 2890, 4672, 3536, 1356, 279, 6300, 1664, 646, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11221, 12, 2890, 4672, 3536, 1356, 279, 6300, 1664, 646, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.curOptions.format = ID_to_text('format', evt.GetInt())
self.curOptions.format = util.ID_to_text('format', evt.GetInt())
def OnFormat(self, evt): # Convert integer value to text representation # (e.g., ID_FMT_DVD to 'dvd') self.curOptions.format = ID_to_text('format', evt.GetInt())
39f50e3e21f3be060f5de23ec9248e81c76a04ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2305/39f50e3e21f3be060f5de23ec9248e81c76a04ed/panels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1630, 12, 2890, 16, 6324, 4672, 468, 4037, 3571, 460, 358, 977, 4335, 468, 261, 73, 18, 75, 12990, 1599, 67, 42, 6152, 67, 40, 21544, 358, 296, 15679, 72, 6134, 365, 18, 1397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1630, 12, 2890, 16, 6324, 4672, 468, 4037, 3571, 460, 358, 977, 4335, 468, 261, 73, 18, 75, 12990, 1599, 67, 42, 6152, 67, 40, 21544, 358, 296, 15679, 72, 6134, 365, 18, 1397, ...
def render_diff(self, req, repos, chgset, diff_options):
def _render_diff(self, req, repos, chgset, diff_options):
def render_diff(self, req, repos, chgset, diff_options): """Raw Unified Diff version""" req.send_response(200) req.send_header('Content-Type', 'text/plain;charset=utf-8') req.send_header('Content-Disposition', 'filename=Changeset%s.diff' % req.args.get('rev')) req.end_headers()
48c56ad401dad6fa254a7be7f860bb61cf7062f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/48c56ad401dad6fa254a7be7f860bb61cf7062f3/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 5413, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4809, 1351, 939, 13008, 1177, 8395, 1111, 18, 4661, 67, 2740, 12, 6976, 13, 1111, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 67, 5413, 12, 2890, 16, 1111, 16, 13686, 16, 462, 75, 542, 16, 3122, 67, 2116, 4672, 3536, 4809, 1351, 939, 13008, 1177, 8395, 1111, 18, 4661, 67, 2740, 12, 6976, 13, 1111, ...
from scipy.io import write_array write_array( fileName, ar, precision = 8 )
from numpy import savetxt savetxt( fileName, ar, precision = 8 )
def save( ar, fileName ): from scipy.io import write_array write_array( fileName, ar, precision = 8 )
ee96730c4646833ce373fb0408f9278b7594c9ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/ee96730c4646833ce373fb0408f9278b7594c9ed/lobpcg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 419, 16, 3968, 262, 30, 628, 3972, 1930, 4087, 278, 15239, 4087, 278, 15239, 12, 3968, 16, 419, 16, 6039, 273, 1725, 262, 225, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 419, 16, 3968, 262, 30, 628, 3972, 1930, 4087, 278, 15239, 4087, 278, 15239, 12, 3968, 16, 419, 16, 6039, 273, 1725, 262, 225, 2, -100, -100, -100, -100, -100, -100, -100, -1...
cmd = '%s/bqueues -l %s' %(self.bin,self.queue) result = self.__runCommand(cmd)
cmd = '%s/bqueues -l %s' % ( self.bin, self.queue ) result = self.__runCommand( cmd )
def __init__(self): """ Standard constructor """ self.log = gLogger.getSubLogger('LSFTimeLeft') self.jobID = None if os.environ.has_key('LSB_JOBID'): self.jobID = os.environ['LSB_JOBID'] self.queue = None if os.environ.has_key('LSB_QUEUE'): self.queue = os.environ['LSB_QUEUE'] self.bin = None if os.environ.has_key('LSF...
b590345882082ff68315923d410c01c4d6437735 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b590345882082ff68315923d410c01c4d6437735/LSFTimeLeft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3536, 8263, 3885, 3536, 365, 18, 1330, 273, 314, 3328, 18, 588, 1676, 3328, 2668, 3045, 42, 950, 3910, 6134, 365, 18, 4688, 734, 273, 599, 309, 1140, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3536, 8263, 3885, 3536, 365, 18, 1330, 273, 314, 3328, 18, 588, 1676, 3328, 2668, 3045, 42, 950, 3910, 6134, 365, 18, 4688, 734, 273, 599, 309, 1140, 1...
_s = time.time(); _max = (_s - _start) / 4 _exec('_theApp.Control_Panel') _cp = _theApp.Control_Panel if hasattr(_cp, 'initialize_cache'): _cp.initialize_cache() if (time.time() - _s) > _max: _write('.')
def _load_control_panel(): start = time.time() max = (start - _start) / 4 _exec('_theApp.Control_Panel') _theApp.Control_Panel if (time.time() - start) > max: _write('.')
def installProduct(name, quiet=0): '''Installs a Zope product.''' start = time.time() app = _theApp meta_types = [] if not _installedProducts.has_key(name): for priority, product_name, index, product_dir in get_products(): if product_name == name: if not quiet: _print('Installing %s ... ' % product_name) # We want to f...
f8c45562b7ce76e16b3ca098b95a6ff1e22605e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/f8c45562b7ce76e16b3ca098b95a6ff1e22605e6/ZopeLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 4133, 12, 529, 16, 10902, 33, 20, 4672, 9163, 6410, 87, 279, 2285, 1306, 3017, 1093, 6309, 787, 273, 813, 18, 957, 1435, 595, 273, 389, 5787, 3371, 2191, 67, 2352, 273, 5378, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3799, 4133, 12, 529, 16, 10902, 33, 20, 4672, 9163, 6410, 87, 279, 2285, 1306, 3017, 1093, 6309, 787, 273, 813, 18, 957, 1435, 595, 273, 389, 5787, 3371, 2191, 67, 2352, 273, 5378, 309...
"Returns True to carry on or erase and False to maintain" if path.startswith(self.deposit): debug('Deposit path: ' + path,DEBUG_MEDIUM) return False if os.path.ismount(path):
"Returns True to carry on or erase and False to maintain" if path.startswith(self.deposit): debug('Deposit path: ' + path,DEBUG_MEDIUM) return False if os.path.ismount(path) and path != self.homedir:
def __restore_or_erase(self,path): "Returns True to carry on or erase and False to maintain" #Do nothing with the deposit if it's inside a home directory if path.startswith(self.deposit): debug('Deposit path: ' + path,DEBUG_MEDIUM) return False
22402be8c9e687a268ba384a5fd0ddf6e932fb57 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6139/22402be8c9e687a268ba384a5fd0ddf6e932fb57/TFuser_frozen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13991, 67, 280, 67, 264, 448, 12, 2890, 16, 803, 4672, 315, 1356, 1053, 358, 9331, 603, 578, 22038, 471, 1083, 358, 17505, 6, 225, 468, 3244, 5083, 598, 326, 443, 1724, 309, 518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13991, 67, 280, 67, 264, 448, 12, 2890, 16, 803, 4672, 315, 1356, 1053, 358, 9331, 603, 578, 22038, 471, 1083, 358, 17505, 6, 225, 468, 3244, 5083, 598, 326, 443, 1724, 309, 518,...
long_description = """pymunk is wrapper for the 2d rigid body physics library Chipmunk"""
long_description = """pymunk is a easy-to-use pythonic 2d physics library that can be used whenever you need 2d rigid body physics from Python. It is build on top of the very nice 2d physics library Chipmunk, http://code.google.com/p/chipmunk-physics/"""
def run(self): self.compile_chipmunk()
47ed7b0028db410cde029bc75c8aa21f6609293a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8535/47ed7b0028db410cde029bc75c8aa21f6609293a/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 11100, 67, 343, 625, 81, 1683, 1435, 225, 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, 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, 1086, 12, 2890, 4672, 365, 18, 11100, 67, 343, 625, 81, 1683, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
subclade = self._parse_clade(elem) clade.clades.append(subclade)
clade.clades.append(self._parse_clade(elem)) continue if tag == 'taxonomy': clade.taxonomies.append(self._parse_taxonomy(elem)) continue if tag == 'sequence': clade.sequences.append(self._parse_sequence(elem))
def _parse_clade(self, parent): """Parse a Clade node and its children, recursively.""" if 'branch_length' in parent.keys(): parent.set('branch_length', float(parent.get('branch_length'))) clade = Tree.Clade(**parent.attrib) # NB: Only evaluate nodes at the current level tag_stack = [] for event, elem in self.context: ...
5f38465441061de22d67bc9df2281f70d7ac37ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/5f38465441061de22d67bc9df2281f70d7ac37ce/PhyloXMLIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 830, 2486, 12, 2890, 16, 982, 4672, 3536, 3201, 279, 3905, 2486, 756, 471, 2097, 2325, 16, 8536, 12123, 309, 296, 7500, 67, 2469, 11, 316, 982, 18, 2452, 13332, 982, 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, 389, 2670, 67, 830, 2486, 12, 2890, 16, 982, 4672, 3536, 3201, 279, 3905, 2486, 756, 471, 2097, 2325, 16, 8536, 12123, 309, 296, 7500, 67, 2469, 11, 316, 982, 18, 2452, 13332, 982, 18,...
tout = 0.4
time_step = 0.02 tout = start_time + time_step
def _Jac(N, J, t, y, fy, jac_data, tmp1, tmp2, tmp3): """ Set Jacobian calculated by JMI. This function is a callback function for (Py)SUNDIALS. """ data = ctypes.cast(jac_data, PUserData).contents model = data.model model.setTime(t) model.setStates(y) J_jmi = model.evalJacX() for row in xrange(len(J_jmi)): for col...
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 46, 1077, 12, 50, 16, 804, 16, 268, 16, 677, 16, 28356, 16, 20138, 67, 892, 16, 1853, 21, 16, 1853, 22, 16, 1853, 23, 4672, 3536, 1000, 804, 1077, 26968, 8894, 635, 804, 7492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 46, 1077, 12, 50, 16, 804, 16, 268, 16, 677, 16, 28356, 16, 20138, 67, 892, 16, 1853, 21, 16, 1853, 22, 16, 1853, 23, 4672, 3536, 1000, 804, 1077, 26968, 8894, 635, 804, 7492, ...
best = shift, bin1, bin2
best = t1, t2, shift
def splitbins(bins): # split a sparse integer table into two tables, such as: # value = t2[(t1[char>>shift]<<shift)+(char&mask)] # and value == 0 means no data bytes = sys.maxint for shift in range(16): bin1 = [] bin2 = [] size = 2**shift bincache = {} for i in range(0, len(bins), size): bin = bins[i:i+size] index = ...
e709fbde14aa82aba8866b707cd6ab80fd5e9f6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e709fbde14aa82aba8866b707cd6ab80fd5e9f6d/makeunicodedata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1416, 11862, 12, 11862, 4672, 468, 1416, 279, 9387, 3571, 1014, 1368, 2795, 4606, 16, 4123, 487, 30, 468, 282, 460, 273, 268, 22, 63, 12, 88, 21, 63, 3001, 9778, 4012, 65, 17685, 4012,...
globalNumlocales=subprocess.Popen(['cat', './NUMLOCALES'], stdout=subprocess.PIPE).communicate()[0] globalNumlocales.strip(globalNumlocales) else: globalNumlocales=os.getenv('NUMLOCALES')
globalNumlocales=int(subprocess.Popen(['cat', './NUMLOCALES'], stdout=subprocess.PIPE).communicate()[0]) else: globalNumlocales=int(os.getenv('NUMLOCALES'))
def kill_proc(p, timeout): k = subprocess.Popen(['kill',str(p.pid)]) k.wait() now = time.time() end_time = now + timeout # give it a little time while end_time > now: if p.poll(): return now = time.time() # use the big hammer (and don't bother waiting) subprocess.Popen(['kill','-9', str(p.pid)]) return
104424f171f0895d16c59291ac9da05a2dd76db5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6895/104424f171f0895d16c59291ac9da05a2dd76db5/sub_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8673, 67, 9381, 12, 84, 16, 2021, 4672, 417, 273, 6652, 18, 52, 3190, 12, 3292, 16418, 2187, 701, 12, 84, 18, 6610, 13, 5717, 417, 18, 7048, 1435, 2037, 273, 813, 18, 957, 1435, 679,...
idebarCollection.add (collection)
sidebarCollection.add (collection)
def GenerateCollection(view, mainView, args): """ Generate one Collection Item """ appNameSpace = schema.ns('osaf.app', self) collection = pim.ListCollection(view=view) collection.color = appNameSpace.collectionColors.nextColor() sidebarCollection = appNameSpace.sidebarCollection if args[0]=='*': # semi-random data wh...
e321c1c6e575e5ddb808734c4131f98113e067b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e321c1c6e575e5ddb808734c4131f98113e067b4/GenerateItemsFromFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 2532, 12, 1945, 16, 2774, 1767, 16, 833, 4672, 3536, 6654, 1245, 2200, 4342, 3536, 10236, 3819, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 2910, 2187, 365, 13, 1849, 273, 293, 381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6654, 2532, 12, 1945, 16, 2774, 1767, 16, 833, 4672, 3536, 6654, 1245, 2200, 4342, 3536, 10236, 3819, 273, 1963, 18, 2387, 2668, 538, 1727, 18, 2910, 2187, 365, 13, 1849, 273, 293, 381, ...
if isinstance(value, str):
if type(value) is StringType:
def decode(value, instance, **kwargs): """ensure value is an unicode string""" if isinstance(value, str): encoding = kwargs.get('encoding') if encoding is None: try: encoding = instance.getCharset() except AttributeError: # that occurs during object initialization # (no acquisition wrapper) encoding = 'UTF8' value = un...
7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 1132, 16, 791, 16, 2826, 4333, 4672, 3536, 15735, 460, 353, 392, 5252, 533, 8395, 309, 618, 12, 1132, 13, 353, 31570, 30, 2688, 273, 1205, 18, 588, 2668, 5999, 6134, 309, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2495, 12, 1132, 16, 791, 16, 2826, 4333, 4672, 3536, 15735, 460, 353, 392, 5252, 533, 8395, 309, 618, 12, 1132, 13, 353, 31570, 30, 2688, 273, 1205, 18, 588, 2668, 5999, 6134, 309, 268...
self.delProperty(id)
self._delProperty(id)
def manage_delProperties(self, ids=None, REQUEST=None): """Delete one or more properties specified by 'ids'.""" if ids is None: return MessageDialog( title='No property specified', message='No properties were specified!', action ='./manage_propertiesForm',) propdict=self.propdict() vself=self.v_self() if hasattr(vself,...
4439ae48b5e95794878f9c4bbfbe1eabd161d57e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4439ae48b5e95794878f9c4bbfbe1eabd161d57e/PropertySheets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 3771, 2297, 12, 2890, 16, 3258, 33, 7036, 16, 12492, 33, 7036, 4672, 3536, 2613, 1245, 578, 1898, 1790, 1269, 635, 296, 2232, 11, 12123, 309, 3258, 353, 599, 30, 327, 2350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10680, 67, 3771, 2297, 12, 2890, 16, 3258, 33, 7036, 16, 12492, 33, 7036, 4672, 3536, 2613, 1245, 578, 1898, 1790, 1269, 635, 296, 2232, 11, 12123, 309, 3258, 353, 599, 30, 327, 2350, ...
print self.recentFiles
def __init__(self,parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Network File")
0fc6250266e9c65b6807073df655949a42347518 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/0fc6250266e9c65b6807073df655949a42347518/OWNetworkFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 3906, 1387, 7923, 2, 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, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 3906, 1387, 7923, 2, -100, -10...
def gettext(msg): """gettext(msg) -> string Return translation of msg.""" return _gettext(msg) def dgettext(domain, msg): """dgettext(domain, msg) -> string Return translation of msg in domain.""" return _dgettext(domain, msg) def dcgettext(domain, msg, category): """dcgettext(domain, msg, category) -> string Return ...
if HAS_LIBINTL: def gettext(msg): """gettext(msg) -> string Return translation of msg.""" return _gettext(msg) def dgettext(domain, msg): """dgettext(domain, msg) -> string Return translation of msg in domain.""" return _dgettext(domain, msg) def dcgettext(domain, msg, category): """dcgettext(domain, msg, category) -...
def gettext(msg): """gettext(msg) -> string Return translation of msg.""" return _gettext(msg)
bd66be9480147074f3268b8910ffa48089f34857 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/bd66be9480147074f3268b8910ffa48089f34857/_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24972, 12, 3576, 4672, 3536, 29967, 12, 3576, 13, 317, 533, 2000, 4794, 434, 1234, 12123, 327, 389, 29967, 12, 3576, 13, 225, 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, 0, 0, 0, 0, 0, 0, 0, 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, 24972, 12, 3576, 4672, 3536, 29967, 12, 3576, 13, 317, 533, 2000, 4794, 434, 1234, 12123, 327, 389, 29967, 12, 3576, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
CHARSET, mime_encode(res.group(2), 1), res.group(3))
CHARSET, mime_encode(res.group(2), 1))
def mime_encode_header(line): """Code a single header line as quoted-printable.""" newline = '' pos = 0 while 1: res = mime_header.search(line, pos) if res is None: break newline = '%s%s%s=?%s?Q?%s?=%s' % \ (newline, line[pos:res.start(0)], res.group(1), CHARSET, mime_encode(res.group(2), 1), res.group(3)) pos = res.en...
9978274702df8d1e1a40b129095ae58c3fe3b8ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9978274702df8d1e1a40b129095ae58c3fe3b8ee/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3015, 67, 3374, 12, 1369, 4672, 3536, 1085, 279, 2202, 1446, 980, 487, 9298, 17, 1188, 429, 12123, 9472, 273, 875, 949, 273, 374, 1323, 404, 30, 400, 273, 4892, 67, 3374, 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, 4892, 67, 3015, 67, 3374, 12, 1369, 4672, 3536, 1085, 279, 2202, 1446, 980, 487, 9298, 17, 1188, 429, 12123, 9472, 273, 875, 949, 273, 374, 1323, 404, 30, 400, 273, 4892, 67, 3374, 18,...
"""
def onchange_type(self,cr,uid,ids,type,offer_id): step_type_ids= self.pool.get('dm.offer.step.type').search(cr,uid,[('code','=',type)]) step_type = self.pool.get('dm.offer.step.type').browse(cr,uid,step_type_ids)[0] value = { 'flow_start':step_type['flow_start'], } if offer_id : offer = self.pool.get('dm.offer').browse...
d9cbbeb742fed91f7f8dab8c2acea75718396b1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/d9cbbeb742fed91f7f8dab8c2acea75718396b1f/offer_step.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 723, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 723, 16, 23322, 67, 350, 4672, 2235, 67, 723, 67, 2232, 33, 365, 18, 6011, 18, 588, 2668, 10956, 18, 23322, 18, 4119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 3427, 67, 723, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 723, 16, 23322, 67, 350, 4672, 2235, 67, 723, 67, 2232, 33, 365, 18, 6011, 18, 588, 2668, 10956, 18, 23322, 18, 4119, ...
self.send_document('Index of Modules', heading + join(indices))
contents = heading + join(indices) + """<p align=right> <small><small><font color=" pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font></small></small>""" self.send_document('Index of Modules', contents)
def do_GET(self): path = self.path if path[-5:] == '.html': path = path[:-5] if path[:1] == '/': path = path[1:] if path and path != '.': try: p, x = locate(path) except DocImportError, value: self.send_document(path, html.escape( 'problem with %s - %s' % (value.filename, value.args))) return if x: self.send_document(d...
c8867551cbacbd399ba1d7b4ce3738d629629967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c8867551cbacbd399ba1d7b4ce3738d629629967/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
z[0] = N.zeros(self.out_shape(x.shape, self.ignore_border)) -float('inf')
z[0] = numpy.zeros(self.out_shape(x.shape, self.ds, self.ignore_border)) -float('inf')
def perform(self, node, (x,), (z,)): """ """ if len(x.shape)!=4: raise NotImplementedError('DownsampleFactorMax requires 4D input for now') if z[0] is None: z[0] = N.zeros(self.out_shape(x.shape, self.ignore_border)) -float('inf') zz=z[0] ds0, ds1 = self.ds
0d29e2c97946e9554a36bd617616c75991fcfc2c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/0d29e2c97946e9554a36bd617616c75991fcfc2c/downsample.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 16, 756, 16, 261, 92, 16, 3631, 261, 94, 16, 3719, 30, 3536, 3536, 309, 562, 12, 92, 18, 4867, 13, 5, 33, 24, 30, 1002, 11206, 2668, 4164, 6358, 6837, 2747, 4991, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 756, 16, 261, 92, 16, 3631, 261, 94, 16, 3719, 30, 3536, 3536, 309, 562, 12, 92, 18, 4867, 13, 5, 33, 24, 30, 1002, 11206, 2668, 4164, 6358, 6837, 2747, 4991, 1...
if not READ_ONLY:
if not USE_DAEMON and not READ_ONLY:
def _warn_nobody(): zLOG.LOG("z2", zLOG.INFO, ("Running Zope as 'nobody' can compromise " "your Zope files; consider using a " "dedicated user account for Zope") )
61e58cf7076cd2024e39df99896d0a31a9735f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/61e58cf7076cd2024e39df99896d0a31a9735f2a/z2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8935, 67, 82, 947, 973, 13332, 998, 4842, 18, 4842, 2932, 94, 22, 3113, 998, 4842, 18, 5923, 16, 7566, 7051, 2285, 1306, 487, 296, 82, 947, 973, 11, 848, 1161, 4108, 315, 315, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8935, 67, 82, 947, 973, 13332, 998, 4842, 18, 4842, 2932, 94, 22, 3113, 998, 4842, 18, 5923, 16, 7566, 7051, 2285, 1306, 487, 296, 82, 947, 973, 11, 848, 1161, 4108, 315, 315, 9...
[func.count(model.PackageListing.owner).label('numpkgs'), model.PackageListing.owner], and_( model.PackageListing.collectionid==DEVEL, model.PackageListing.owner!=ORPHAN_ID)).group_by( model.PackageListing.owner).order_by( desc('numpkgs')).limit(20)
[func.count(model.PackageListing.owner).label('numpkgs'), model.PackageListing.owner], and_( model.PackageListing.collectionid==DEVEL, model.PackageListing.owner!=ORPHAN_ID)).group_by( model.PackageListing.owner).order_by( desc('numpkgs')).limit(20)
def index(self): if identity.current.anonymous: own = 'need to be logged in' else: own = model.PackageListing.query.filter_by(owner=fasid).count() # most packages owned in DEVEL collection top_owners_select = sqlalchemy.select( [func.count(model.PackageListing.owner).label('numpkgs'), model.PackageListing.owner], and_...
9632e88aef7435300565e923e2057e435e2b7f8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/9632e88aef7435300565e923e2057e435e2b7f8d/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 770, 12, 2890, 4672, 309, 4215, 18, 2972, 18, 19070, 30, 4953, 273, 296, 14891, 358, 506, 7545, 316, 11, 469, 30, 4953, 273, 938, 18, 2261, 19081, 18, 2271, 18, 2188, 67, 1637, 12, 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, 770, 12, 2890, 4672, 309, 4215, 18, 2972, 18, 19070, 30, 4953, 273, 296, 14891, 358, 506, 7545, 316, 11, 469, 30, 4953, 273, 938, 18, 2261, 19081, 18, 2271, 18, 2188, 67, 1637, 12, 8...
if base[-3:] == 'int': continue
if base[-3:] == 'int' or char[0] in 'ui': continue
def _add_aliases(): for a in typeinfo.keys(): name = a.lower() if not isinstance(typeinfo[a], tuple): continue typeobj = typeinfo[a][-1] # insert bit-width version for this class (if relevant) base, bit, char = bitname(typeobj) if base[-3:] == 'int': continue if base != '': myname = "%s%d" % (base, bit) if (name != 'lo...
9cfb0c67b7c0e02afa5fae54781f5e508931231b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/9cfb0c67b7c0e02afa5fae54781f5e508931231b/numerictypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 13831, 13332, 364, 279, 316, 618, 1376, 18, 2452, 13332, 508, 273, 279, 18, 8167, 1435, 309, 486, 1549, 12, 723, 1376, 63, 69, 6487, 3193, 4672, 1324, 618, 2603, 273, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 67, 13831, 13332, 364, 279, 316, 618, 1376, 18, 2452, 13332, 508, 273, 279, 18, 8167, 1435, 309, 486, 1549, 12, 723, 1376, 63, 69, 6487, 3193, 4672, 1324, 618, 2603, 273, 61...
Player.setVBlankFramerate(1)
Player.setFramerate(60)
def startSplineAnim(): self.assert_(self.__animStopped) self.compareImage("testAnim2", False) anim.SplineAnim(Player.getElementByID("mainimg"), "x", 200, 100, -400, 10, 0, 0, None) anim.SplineAnim(Player.getElementByID("mainimg"), "y", 200, 100, 0, 10, -400, 1, None)
8d1038c66afecb70b6573e409953056949819507 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7300/8d1038c66afecb70b6573e409953056949819507/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 16881, 558, 20892, 13332, 365, 18, 11231, 67, 12, 2890, 16186, 304, 381, 15294, 13, 365, 18, 9877, 2040, 2932, 3813, 20892, 22, 3113, 1083, 13, 10536, 18, 16881, 558, 20892, 12, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 16881, 558, 20892, 13332, 365, 18, 11231, 67, 12, 2890, 16186, 304, 381, 15294, 13, 365, 18, 9877, 2040, 2932, 3813, 20892, 22, 3113, 1083, 13, 10536, 18, 16881, 558, 20892, 12, 121...
voteEnd()
voteEnd()
def voteSubmit(userid, choice, popupname): # Is a revote ? for option in mapVoteOptions.keys(): if userid in mapVoteOptions[option]: # Is not the same choice ? if choice != option: mapVoteOptions[option].remove(userid) mapVoteOptions[choice].append(userid) break # Same choice, stop here else: return # Is a new vote ...
c55526d5c2526a811c8b9e4c8201f9b1c9cabbbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/c55526d5c2526a811c8b9e4c8201f9b1c9cabbbf/gg_map_vote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12501, 11620, 12, 8339, 16, 6023, 16, 10431, 529, 4672, 468, 2585, 279, 5588, 1168, 692, 364, 1456, 316, 852, 19338, 1320, 18, 2452, 13332, 309, 6709, 316, 852, 19338, 1320, 63, 3482, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 11620, 12, 8339, 16, 6023, 16, 10431, 529, 4672, 468, 2585, 279, 5588, 1168, 692, 364, 1456, 316, 852, 19338, 1320, 18, 2452, 13332, 309, 6709, 316, 852, 19338, 1320, 63, 3482, 14...
pkg.sig["size_in_sig"] = [0,]
pkg.sig["size_in_sig"] = [0, ]
def __parsePackage(self, reader): Readf = reader.Read NodeTypef = reader.NodeType Namef = reader.Name pkg = ReadRpm("repopkg") pkg.sig = HdrIndex() pkg.hdr = HdrIndex() pkg.setHdr() pkg.sig["size_in_sig"] = [0,] while Readf() == 1: ntype = NodeTypef() if ntype == TYPE_END_ELEMENT: if Namef() == "package": break continu...
e88bd7c78ae123c185f17919515d68d29510e836 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/e88bd7c78ae123c185f17919515d68d29510e836/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 2261, 12, 2890, 16, 2949, 4672, 2720, 74, 273, 2949, 18, 1994, 20896, 74, 273, 2949, 18, 15101, 1770, 74, 273, 2949, 18, 461, 3475, 273, 2720, 54, 7755, 2932, 266, 5120, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 2261, 12, 2890, 16, 2949, 4672, 2720, 74, 273, 2949, 18, 1994, 20896, 74, 273, 2949, 18, 15101, 1770, 74, 273, 2949, 18, 461, 3475, 273, 2720, 54, 7755, 2932, 266, 5120, 14...
self.cu.execute("INSERT INTO %s VALUES(NULL)" % self.seqName)
self.cu.execute("INSERT INTO %s (val) VALUES(NULL)" % self.seqName)
def nextval(self): # We have to make sure we do this in a transaction if not self.db.dbh.inTransaction: self.db.transaction() self.cu.execute("DELETE FROM %s" % self.seqName) self.cu.execute("INSERT INTO %s VALUES(NULL)" % self.seqName) self.cu.execute("SELECT val FROM %s" % self.seqName) self.__currval = self.cu.fetch...
a638f3966f998bb049f55c6b9bb21517c0fafbab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a638f3966f998bb049f55c6b9bb21517c0fafbab/sqlite_drv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 1125, 12, 2890, 4672, 468, 1660, 1240, 358, 1221, 3071, 732, 741, 333, 316, 279, 2492, 309, 486, 365, 18, 1966, 18, 1966, 76, 18, 267, 3342, 30, 365, 18, 1966, 18, 7958, 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, 1024, 1125, 12, 2890, 4672, 468, 1660, 1240, 358, 1221, 3071, 732, 741, 333, 316, 279, 2492, 309, 486, 365, 18, 1966, 18, 1966, 76, 18, 267, 3342, 30, 365, 18, 1966, 18, 7958, 1435, ...