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
users_obj = self.pool.get('res.users')
def do_partial(self, cr, uid, ids, partial_datas, context=None): """ Makes partial pickings and moves done. @param partial_datas: Dictionary containing details of partial picking like partner_id, address_id, delivery_date, delivery moves with product_id, product_qty, uom """ res = {} picking_obj = self.pool.get('stock....
9f6c10ca2a1258aae7d418c26f5083177e38b1a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9f6c10ca2a1258aae7d418c26f5083177e38b1a6/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 33, 7036, 4672, 3536, 490, 3223, 4702, 6002, 899, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11601, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4702, 67, 13178, 16, 819, 33, 7036, 4672, 3536, 490, 3223, 4702, 6002, 899, 471, 13934, 2731, 18, 632, 891, 4702, 67, 13178,...
system(pathname + ' > ' + output)
system(pathname + ' > ' + output + ' 2> /dev/null')
def run_command(command, output): for dir in path: pathname = dir + '/' + command if (os.path.exists(pathname)): system(pathname + ' > ' + output)
9ef66e478938e262904f4320b89242f31d7dbe8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/9ef66e478938e262904f4320b89242f31d7dbe8b/sysinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3076, 12, 3076, 16, 876, 4672, 364, 1577, 316, 589, 30, 9806, 273, 1577, 397, 2023, 397, 1296, 309, 261, 538, 18, 803, 18, 1808, 12, 28336, 3719, 30, 2619, 12, 28336, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3076, 12, 3076, 16, 876, 4672, 364, 1577, 316, 589, 30, 9806, 273, 1577, 397, 2023, 397, 1296, 309, 261, 538, 18, 803, 18, 1808, 12, 28336, 3719, 30, 2619, 12, 28336, 397, ...
"""Return a tar header block as a 512 byte string. """
"""Return a tar header as a string of 512 byte blocks. """ buf = "" type = self.type prefix = "" if self.name.endswith("/"): type = DIRTYPE name = normpath(self.name) if type == DIRTYPE: name += "/" linkname = self.linkname if linkname: linkname = normpath(linkname) if posix: if self.size > MAXSIZE_MEMBER: raise...
def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), ...
90ce5908d2ea58a840421d27e19e71de9322dfc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/90ce5908d2ea58a840421d27e19e71de9322dfc5/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 487, 279, 533, 434, 13908, 1160, 4398, 18, 3536, 1681, 273, 1408, 618, 273, 365, 18, 723, 1633, 273, 1408, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 487, 279, 533, 434, 13908, 1160, 4398, 18, 3536, 1681, 273, 1408, 618, 273, 365, 18, 723, 1633, 273, 1408, 2...
if value is not None:
if value is not None and 'property' not in already_processed:
def buildAttributes(self, node, attrs, already_processed): value = attrs.get('datatype') if value is not None: already_processed.append('datatype') self.datatype = value value = attrs.get('content') if value is not None: already_processed.append('content') self.content = value value = attrs.get('property') if value is ...
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, 1361, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 460, 273, 3422, 18, 588, 2668, 21540, 6134, 309, 460, 353, 486, 599, 471, 296, 4468, 11, 486, 316, 1818, 67, 11005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2498, 12, 2890, 16, 756, 16, 3422, 16, 1818, 67, 11005, 4672, 460, 273, 3422, 18, 588, 2668, 21540, 6134, 309, 460, 353, 486, 599, 471, 296, 4468, 11, 486, 316, 1818, 67, 11005, ...
error ("Expected to find proper connection result, but found error. Error code was: " + str(conn.status) + ", message: " + conn.error_msg); return False;
error ("Expected to find proper connection result, but found error. Error code was: " + str(conn.status) + ", message: " + conn.error_msg) return False
def test_05 (): # call to initialize a context ctx = vortex.Ctx (); # call to init ctx if not ctx.init (): error ("Failed to init Vortex context"); return False; # call to create a connection conn = vortex.Connection (ctx, host, port); # check connection status after if if not conn.is_ok (): error ("Expected to find...
44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6260, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6260, 1832, 30, 468, 745, 358, 4046, 279, 819, 1103, 273, 331, 20873, 18, 6442, 261, 1769, 225, 468, 745, 358, 1208, 1103, 309, 486, 1103, 18, 2738, 1832, 30, 555, 7566, 2925...
return [self.CMD, "undo", "--filename"]
return [self.CMD, "undo", "--"]
def revert_command(self): # will not work, since darcs needs interaction it seems return [self.CMD, "undo", "--filename"]
394ca16e27cf6ac960e6e2830afa1f2ee8469d4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/394ca16e27cf6ac960e6e2830afa1f2ee8469d4d/tla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 3076, 12, 2890, 4672, 468, 903, 486, 1440, 16, 3241, 302, 297, 2143, 4260, 13581, 518, 12001, 327, 306, 2890, 18, 19473, 16, 315, 31226, 3113, 5238, 3459, 11929, 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, 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, 15226, 67, 3076, 12, 2890, 4672, 468, 903, 486, 1440, 16, 3241, 302, 297, 2143, 4260, 13581, 518, 12001, 327, 306, 2890, 18, 19473, 16, 315, 31226, 3113, 5238, 3459, 11929, 2, -100, -100...
print("repo id required. Try --help")
print _("repo id required. Try --help")
def _sync(self): if not self.options.id: print("repo id required. Try --help") sys.exit(0) try: task_object = self.pconn.sync(self.options.id, self.options.timeout) state = "waiting" print "Task created with ID::", task_object['id'] while state not in ["finished", "error", 'timed out', 'canceled']: time.sleep(5) status...
3031d7f1572d6916f4f024e22264c3de668d641f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/3031d7f1572d6916f4f024e22264c3de668d641f/core_repo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 350, 30, 1172, 389, 2932, 7422, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 1562, 67, 1612, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8389, 12, 2890, 4672, 309, 486, 365, 18, 2116, 18, 350, 30, 1172, 389, 2932, 7422, 612, 1931, 18, 6161, 1493, 5201, 7923, 2589, 18, 8593, 12, 20, 13, 775, 30, 1562, 67, 1612, 27...
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr...
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
ed891e5784edd8a5e4d544f1ef837edc82b93924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ed891e5784edd8a5e4d544f1ef837edc82b93924/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 4873, 1576, 13332, 3536, 6910, 777, 326, 533, 924, 434, 326, 2836, 1576, 2190, 635, 3675, 12697, 10138, 16, 471, 10736, 2690, 1308, 4606, 364, 28769, 434, 999, 18, 1220, 445, 353, ...
k = M2('%s %% %s'%(g.name(), I.name()))
try: k = M2('%s %% %s'%(g.name(), I.name())) except TypeError: return f
def _reduce_using_macaulay2(self, f): I = self._macaulay2_() M2 = I.parent() R = self.ring() g = M2(R(f)) k = M2('%s %% %s'%(g.name(), I.name())) return R(k)
afc5175770e7adc669ccbed69a710aaa101df11d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/afc5175770e7adc669ccbed69a710aaa101df11d/multi_polynomial_ideal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12498, 67, 9940, 67, 5821, 69, 332, 528, 22, 12, 2890, 16, 284, 4672, 467, 273, 365, 6315, 5821, 69, 332, 528, 22, 67, 1435, 490, 22, 273, 467, 18, 2938, 1435, 534, 273, 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, 389, 12498, 67, 9940, 67, 5821, 69, 332, 528, 22, 12, 2890, 16, 284, 4672, 467, 273, 365, 6315, 5821, 69, 332, 528, 22, 67, 1435, 490, 22, 273, 467, 18, 2938, 1435, 534, 273, 365, ...
Reporter.reportFailure(self, testCase, method, exc_info) def reportError(self, testCase, method, exc_info):
Reporter.reportFailure(self, testClass, method, exc_info) def reportError(self, testClass, method, exc_info):
def reportFailure(self, testCase, method, exc_info): self.write('F') Reporter.reportFailure(self, testCase, method, exc_info)
5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 5247, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 4672, 365, 18, 2626, 2668, 42, 6134, 25585, 18, 6006, 5247, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 5247, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 4672, 365, 18, 2626, 2668, 42, 6134, 25585, 18, 6006, 5247, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, ...
self._errors = UserKeywordRunErrors()
errs = UserKeywordRunErrors()
def _run(self, output, namespace, arguments): argument_values = self.arguments.resolve(arguments, namespace.variables) self.arguments.set_variables(argument_values, namespace.variables, output) self._verify_keyword_is_valid() self.timeout.start() self._errors = UserKeywordRunErrors() for kw in self.keywords: self._run_...
0c32c91787a29efbdef0a939d881ec97e3ad1d95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/0c32c91787a29efbdef0a939d881ec97e3ad1d95/userkeyword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 2890, 16, 876, 16, 1981, 16, 1775, 4672, 1237, 67, 2372, 273, 365, 18, 7099, 18, 10828, 12, 7099, 16, 1981, 18, 7528, 13, 365, 18, 7099, 18, 542, 67, 7528, 12, 3446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 12, 2890, 16, 876, 16, 1981, 16, 1775, 4672, 1237, 67, 2372, 273, 365, 18, 7099, 18, 10828, 12, 7099, 16, 1981, 18, 7528, 13, 365, 18, 7099, 18, 542, 67, 7528, 12, 3446, ...
print "*** in SelectChunks_command.init_gui"
def init_gui(self): """ """ print "*** in SelectChunks_command.init_gui" self.w.toolsSelectMoleculesAction.setChecked(True) #Fixes bugs like 2682 where command toolbar (the flyout toolbar #portion) doesn't get updated even when in the default mode. self.win.commandToolbar.resetToDefaultState()
b64c90d95d429a8830a90cf624ed2c02f27b5239 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b64c90d95d429a8830a90cf624ed2c02f27b5239/SelectChunks_Command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 20292, 12, 2890, 4672, 3536, 3536, 365, 18, 91, 18, 6642, 3391, 49, 29466, 1803, 18, 542, 11454, 12, 5510, 13, 468, 8585, 281, 22398, 3007, 576, 9470, 22, 1625, 1296, 12748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 67, 20292, 12, 2890, 4672, 3536, 3536, 365, 18, 91, 18, 6642, 3391, 49, 29466, 1803, 18, 542, 11454, 12, 5510, 13, 468, 8585, 281, 22398, 3007, 576, 9470, 22, 1625, 1296, 12748, ...
ur.project = account
ur.project_name = account
def createUsageRecord(log_entry, hostname, user_map, vo_map, missing_user_mappings): """ Creates a Usage Record object given a Torque log entry. """ # extract data from the workload trace (log_entry) job_id = log_entry['jobid'] user_name = log_entry['user'] queue = log_entry['queue'] account = log...
7cf0179d31ecb0b6929431a36dedc7aff81b6860 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8325/7cf0179d31ecb0b6929431a36dedc7aff81b6860/torque.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 5357, 2115, 12, 1330, 67, 4099, 16, 5199, 16, 729, 67, 1458, 16, 19993, 67, 1458, 16, 3315, 67, 1355, 67, 16047, 4672, 3536, 10210, 279, 10858, 5059, 733, 864, 279, 23763, 1857, 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, 752, 5357, 2115, 12, 1330, 67, 4099, 16, 5199, 16, 729, 67, 1458, 16, 19993, 67, 1458, 16, 3315, 67, 1355, 67, 16047, 4672, 3536, 10210, 279, 10858, 5059, 733, 864, 279, 23763, 1857, 6...
short_module_name = module.__name__.split('.')[-1]
short_module_name = os.path.splitext(os.path.basename(f))[0]
def _get_module_tests(self,module,level): mstr = self._module_str d,f = os.path.split(module.__file__) short_module_name = module.__name__.split('.')[-1] test_dir = os.path.join(d,'tests') test_file = os.path.join(test_dir,'test_'+short_module_name+'.py')
8574b1581954cb8ba82115c45f500078764cd812 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8574b1581954cb8ba82115c45f500078764cd812/testing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2978, 67, 16341, 12, 2890, 16, 2978, 16, 2815, 4672, 312, 701, 273, 365, 6315, 2978, 67, 701, 302, 16, 74, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, 768, 972, 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, 588, 67, 2978, 67, 16341, 12, 2890, 16, 2978, 16, 2815, 4672, 312, 701, 273, 365, 6315, 2978, 67, 701, 302, 16, 74, 273, 1140, 18, 803, 18, 4939, 12, 2978, 16186, 768, 972, 13, ...
finally: fileobj.close() os.unlink(name)
def test_read_dict_fields(self): fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: fileobj.write("1,2,abc\r\n") fileobj.seek(0) reader = csv.DictReader(fileobj, fieldnames=["f1", "f2", "f3"]) self.assertEqual(next(reader), {"f1": '1', "f2": '2', "f3": 'abc'}) finally: fileobj.close() os.unlink(name)
2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/2837440cd7e82f53ee7e194e97a8b6ffcc4e97cf/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 67, 1576, 67, 2821, 12, 2890, 4672, 5194, 16, 508, 273, 13275, 18, 24816, 19781, 84, 1435, 17041, 273, 1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 67, 1576, 67, 2821, 12, 2890, 4672, 5194, 16, 508, 273, 13275, 18, 24816, 19781, 84, 1435, 17041, 273, 1140, 18, 8313, 3190, 12, 8313, 16, 315, 91, 15, 70, 7923, 775, ...
accountnumber)
accountNumber)
def main(options, _args): if options('general.cert') and options('general.pk'): runSystemEx('cp %s /tmp/ec2-cert.pem' % options('general.cert')) runSystemEx('cp %s /tmp/ec2-pk.pem' % options('general.pk')) runSystemEx('chmod +r /tmp/*.pem') if 'vappio_00' not in listKeypairs(): addKeypair('vappio_00') groups = listGro...
410e15a92e846904060839e27b67f3e19bfe999b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5741/410e15a92e846904060839e27b67f3e19bfe999b/bootStrapKeys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 389, 1968, 4672, 309, 702, 2668, 12259, 18, 7593, 6134, 471, 702, 2668, 12259, 18, 5465, 11, 4672, 1086, 3163, 424, 2668, 4057, 738, 87, 342, 5645, 19, 557, 22, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 389, 1968, 4672, 309, 702, 2668, 12259, 18, 7593, 6134, 471, 702, 2668, 12259, 18, 5465, 11, 4672, 1086, 3163, 424, 2668, 4057, 738, 87, 342, 5645, 19, 557, 22, 17,...
if attr in self.__default_timing: return self._timings[attr]
if attr in TimeConfig.__default_timing: return TimeConfig._timings[attr]
def __getattr__(self, attr): "Get the value for a particular timing" if attr in self.__default_timing: return self._timings[attr] else: raise KeyError( "Unknown timing setting: %s" % attr)
cdf857784836048d1db60b6385971db4e4b6dacd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/cdf857784836048d1db60b6385971db4e4b6dacd/timings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 315, 967, 326, 460, 364, 279, 6826, 15538, 6, 309, 1604, 316, 2647, 809, 16186, 1886, 67, 8584, 310, 30, 327, 2647, 809, 6315, 8584, 899...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 1747, 972, 12, 2890, 16, 1604, 4672, 315, 967, 326, 460, 364, 279, 6826, 15538, 6, 309, 1604, 316, 2647, 809, 16186, 1886, 67, 8584, 310, 30, 327, 2647, 809, 6315, 8584, 899...
runs_to_process = []
runs_to_process = set()
def endElement(self, name): global is_dataset if name == 'dataset': is_dataset = False
65698b019cb987806faa8ca7667f0d644a339f29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8887/65698b019cb987806faa8ca7667f0d644a339f29/prepareRelValWorkflows.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14840, 12, 2890, 16, 508, 4672, 2552, 353, 67, 8682, 309, 508, 422, 296, 8682, 4278, 353, 67, 8682, 273, 1083, 2, 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, 14840, 12, 2890, 16, 508, 4672, 2552, 353, 67, 8682, 309, 508, 422, 296, 8682, 4278, 353, 67, 8682, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.tokenIndex in self.tokens: token = self.tokens[self.tokenIndex] else: self.tokens[self.tokenIndex] = token = Token()
self.tokens[self.tokenIndex] = token = Token()
def get(self): while self.lookahead: self.lookahead -= 1 self.tokenIndex = (self.tokenIndex + 1) & 3 token = self.tokens[self.tokenIndex] if token.type != "newline" or self.scanNewlines: return token.type
90473594c42899d7ca44e35a3375030fc586310c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/90473594c42899d7ca44e35a3375030fc586310c/Tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1323, 365, 18, 7330, 11617, 30, 365, 18, 7330, 11617, 3947, 404, 365, 18, 2316, 1016, 273, 261, 2890, 18, 2316, 1016, 397, 404, 13, 473, 890, 1147, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 1323, 365, 18, 7330, 11617, 30, 365, 18, 7330, 11617, 3947, 404, 365, 18, 2316, 1016, 273, 261, 2890, 18, 2316, 1016, 397, 404, 13, 473, 890, 1147, 273, 365, 18, ...
end_period_ids = list(set(end_period_ids).difference( set(start_period_ids)))
def parse(self, cursor, user, report, objects, datas, context): if context is None: context = {} context = context.copy() account_obj = self.pool.get('account.account') period_obj = self.pool.get('account.period') company_obj = self.pool.get('company.company')
de2a560b2d40a0a1e06553116c35a64b9ebcb811 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9290/de2a560b2d40a0a1e06553116c35a64b9ebcb811/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 2605, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 3347, 16, 729, 16, 2605, 16, 2184, 16, 5386, 16, 819, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 819, 273, 819, 18, 3530, 1435, 2236, 67, 2603, 273, 365, 18, ...
options['icon'] = ('%s?chst=d_map_pin_letter&chld=%s|%s' % (CHART_URL, self._label or '', (self._color or 'FF6357').lstrip('0x'))) options['shadow'] = '%s?chst=d_map_pin_shadow' % CHART_URL
l = self._label or u'\u2022' c = (self._color or 'FF776B').lstrip('0x') options['icon'] = MarkerImage('%s?chst=d_map_pin_letter' '&chld=%s|%s' % (CHART_URL, l, c), anchor=Point(10, 33)) options['shadow'] = MarkerImage('%s?chst=d_map_pin_shadow' % CHART_URL, anchor=Point(12, 35))
def setOptions(self, options): if options and 'map' in options: if self._map: # Remove this marker from the map. self._map['mkr'].remove(self) # Save new map reference. self._map = options.pop('map') if self._map: # Add this marker to the map. self._map.setdefault('mkr', []).append(self) if options: self._size = option...
552930e1f80bad1c230c96e11c337d7f1aeb2bb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8231/552930e1f80bad1c230c96e11c337d7f1aeb2bb1/maps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16526, 12, 2890, 16, 702, 4672, 309, 702, 471, 296, 1458, 11, 316, 702, 30, 309, 365, 6315, 1458, 30, 468, 3581, 333, 5373, 628, 326, 852, 18, 365, 6315, 1458, 3292, 24816, 86, 29489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16526, 12, 2890, 16, 702, 4672, 309, 702, 471, 296, 1458, 11, 316, 702, 30, 309, 365, 6315, 1458, 30, 468, 3581, 333, 5373, 628, 326, 852, 18, 365, 6315, 1458, 3292, 24816, 86, 29489, ...
libs = ldflags()
l = ldflags()
def ldflags(libs=True, flags=False, libs_dir=False, include_dir=False): """Return a list of libraries against which an Op's object file should be linked to benefit from a BLAS implementation. Default: ['blas'], but configuration variable config.blas.ldflags overrides this. """ rval = [] if libs_dir: found_dyn=False di...
ca0945c95e6ee114e00a828f2f65cd0252fa6ab1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/ca0945c95e6ee114e00a828f2f65cd0252fa6ab1/blas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 2180, 80, 1341, 12, 21571, 33, 5510, 16, 2943, 33, 8381, 16, 15042, 67, 1214, 33, 8381, 16, 2341, 67, 1214, 33, 8381, 4672, 3536, 990, 279, 666, 434, 14732, 5314, 1492, 392, 6066,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 328, 2180, 80, 1341, 12, 21571, 33, 5510, 16, 2943, 33, 8381, 16, 15042, 67, 1214, 33, 8381, 16, 2341, 67, 1214, 33, 8381, 4672, 3536, 990, 279, 666, 434, 14732, 5314, 1492, 392, 6066,...
self.hidden = False
def __init__ (self, profile = None, command = None, fullscreen = False, maximise = False, borderless = False, no_gconf=False, hidden=False): self.profile = profile self.command = command
2646650025bbc51e5fc698b147199fac017eeb72 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/2646650025bbc51e5fc698b147199fac017eeb72/terminator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3042, 273, 599, 16, 1296, 273, 599, 16, 1983, 9252, 273, 1083, 16, 30547, 784, 273, 1083, 16, 5795, 2656, 273, 1083, 16, 1158, 67, 75, 3923, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3042, 273, 599, 16, 1296, 273, 599, 16, 1983, 9252, 273, 1083, 16, 30547, 784, 273, 1083, 16, 5795, 2656, 273, 1083, 16, 1158, 67, 75, 3923, 33, 8381, ...
event.addresponse(u'%(who)%(from_who) asked me to ping you, %(ago) ago.', {
event.addresponse(u'%(who)s%(from_who)s asked me to ping you, %(ago)s ago.', {
def announce(self, event, who, what, from_who, from_when): """This handler gets called after the timeout and will notice the user."""
6ce97ba7bfc2889fea05c4367dbe39253aeb2f02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12048/6ce97ba7bfc2889fea05c4367dbe39253aeb2f02/fun.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14281, 12, 2890, 16, 871, 16, 10354, 16, 4121, 16, 628, 67, 3350, 83, 16, 628, 67, 13723, 4672, 3536, 2503, 1838, 5571, 2566, 1839, 326, 2021, 471, 903, 11690, 326, 729, 12123, 2, 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, 1, 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, 14281, 12, 2890, 16, 871, 16, 10354, 16, 4121, 16, 628, 67, 3350, 83, 16, 628, 67, 13723, 4672, 3536, 2503, 1838, 5571, 2566, 1839, 326, 2021, 471, 903, 11690, 326, 729, 12123, 2, -100...
CallLater(5, auth_failed)
auth_failed()
def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False
b89ca03de8ef4f30169d72d3120ee291481d5964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/b89ca03de8ef4f30169d72d3120ee291481d5964/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, ...
assert(self.model.hasIndex(0,0) == True)
assert(self.model.hasIndex(0, 0) == True)
def hasIndex(self): """ Tests self.model's implementation of QtCore.QAbstractItemModel::hasIndex() """ # Make sure that invalid values returns an invalid index assert(self.model.hasIndex(-2,-2) == False) assert(self.model.hasIndex(-2,0) == False) assert(self.model.hasIndex(0,-2) == False)
ed4ea4fec39587cca2aeb18d36a0fa5f722ca150 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/ed4ea4fec39587cca2aeb18d36a0fa5f722ca150/modeltest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 1016, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 5332, 1016, 1435, 3536, 468, 4344, 3071, 716, 2057, 924, 1135, 392, 2057...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 1016, 12, 2890, 4672, 3536, 7766, 87, 365, 18, 2284, 1807, 4471, 434, 20193, 18, 53, 7469, 1180, 1488, 2866, 5332, 1016, 1435, 3536, 468, 4344, 3071, 716, 2057, 924, 1135, 392, 2057...
src_dir = main_dir.repositories[0].dir main_dir.clear() main_dir.repositories = []
src_dir = sconsbuild_dir.repositories[0].dir sconsbuild_dir.clear() sconsbuild_dir.repositories = []
def GenerateSConscript(output_filename, spec, build_file): """ Generates a SConscript file for a specific target. This generates a SConscript file suitable for building any or all of the target's configurations. A SConscript file may be called multiple times to generate targets for multiple configurations. Consequen...
9aede4f9faaa362bdd9b7beef7797e547894741d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/9aede4f9faaa362bdd9b7beef7797e547894741d/scons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6654, 55, 442, 4263, 12, 2844, 67, 3459, 16, 857, 16, 1361, 67, 768, 4672, 3536, 31902, 279, 348, 442, 4263, 585, 364, 279, 2923, 1018, 18, 225, 1220, 6026, 279, 348, 442, 4263, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 55, 442, 4263, 12, 2844, 67, 3459, 16, 857, 16, 1361, 67, 768, 4672, 3536, 31902, 279, 348, 442, 4263, 585, 364, 279, 2923, 1018, 18, 225, 1220, 6026, 279, 348, 442, 4263, 585, ...
import difflib a = expected.splitlines() b = output.splitlines()
a = expected.splitlines(1) b = output.splitlines(1)
def reportdiff(expected, output): print "*" * 70 import difflib a = expected.splitlines() b = output.splitlines() sm = difflib.SequenceMatcher(a=a, b=b) tuples = sm.get_opcodes() def pair(x0, x1): x0 += 1 if x0 >= x1: return str(x0) else: return "%d,%d" % (x0, x1) for op, a0, a1, b0, b1 in tuples: if op == 'equal': pas...
c377b16d12ba325bb108eca575447d66f19294c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c377b16d12ba325bb108eca575447d66f19294c0/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2605, 5413, 12, 3825, 16, 876, 4672, 1172, 10971, 380, 16647, 279, 273, 2665, 18, 4939, 3548, 12, 21, 13, 324, 273, 876, 18, 4939, 3548, 12, 21, 13, 3029, 273, 1901, 12678, 18, 4021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2605, 5413, 12, 3825, 16, 876, 4672, 1172, 10971, 380, 16647, 279, 273, 2665, 18, 4939, 3548, 12, 21, 13, 324, 273, 876, 18, 4939, 3548, 12, 21, 13, 3029, 273, 1901, 12678, 18, 4021, ...
1/8 won't be useful unless the nodes are huge talk -- if true, prints large nodes with white backgrounds so that labels are legible on slies
1/8 won't be useful unless the vertices are huge talk -- if true, prints large vertices with white backgrounds so that labels are legible on slies
def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
"""
""" if alg=="scipy": import scipy.special ans = str(scipy.special.yv(float(nu),complex(real(z),imag(z)))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans)
def bessel_Y(nu,z): r""" Implements the "Y-Bessel function", or "Bessel function of the 2nd kind", with index (or "order") nu and argument z. Defn:
eb789e32fdf1f64e23f2531a18e92c7ff5995df6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/eb789e32fdf1f64e23f2531a18e92c7ff5995df6/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 61, 12, 13053, 16, 94, 4672, 436, 8395, 309, 11989, 31713, 1017, 9126, 6877, 1930, 10966, 18, 9371, 4152, 273, 609, 12, 1017, 9126, 18, 9371, 18, 93, 90, 12, 5659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 61, 12, 13053, 16, 94, 4672, 436, 8395, 309, 11989, 31713, 1017, 9126, 6877, 1930, 10966, 18, 9371, 4152, 273, 609, 12, 1017, 9126, 18, 9371, 18, 93, 90, 12, 5659, ...
self.warning("[Autofix] Delete '%s' (tXo large)" % field.path)
self.warning("[Autofix] Delete '%s' (too large)" % field.path)
def _fixFieldSize(self, field, new_size): if new_size > 0: if field.is_field_set and 0 < field.size: field._truncate(new_size) return
65d2396d5d6a0430ea7d17f977f5db6c6f1da8b7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/65d2396d5d6a0430ea7d17f977f5db6c6f1da8b7/generic_field_set.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 974, 1225, 12, 2890, 16, 652, 16, 394, 67, 1467, 4672, 309, 394, 67, 1467, 405, 374, 30, 309, 652, 18, 291, 67, 1518, 67, 542, 471, 374, 411, 652, 18, 1467, 30, 652, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 974, 1225, 12, 2890, 16, 652, 16, 394, 67, 1467, 4672, 309, 394, 67, 1467, 405, 374, 30, 309, 652, 18, 291, 67, 1518, 67, 542, 471, 374, 411, 652, 18, 1467, 30, 652, 6315...
self.failUnless(y1.dtype == self.rdt, "Output dtype is %s, expected %s" % (y1.dtype, self.rdt))
self.failUnless(y.dtype == self.rdt, "Output dtype is %s, expected %s" % (y.dtype, self.rdt))
def _test(x, xr): y = irfft(x) y1 = direct_irdft(x) self.failUnless(y1.dtype == self.rdt, "Output dtype is %s, expected %s" % (y1.dtype, self.rdt)) assert_array_almost_equal(y,y1, decimal=self.ndec) assert_array_almost_equal(y,ifft(xr), decimal=self.ndec)
d9d581fa33ac03f56c8bf423ac693d8f851e7cb9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/d9d581fa33ac03f56c8bf423ac693d8f851e7cb9/test_basic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 12, 92, 16, 20912, 4672, 677, 273, 277, 5809, 1222, 12, 92, 13, 677, 21, 273, 2657, 67, 6909, 1222, 12, 92, 13, 365, 18, 6870, 984, 2656, 12, 93, 18, 8972, 422, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 12, 92, 16, 20912, 4672, 677, 273, 277, 5809, 1222, 12, 92, 13, 677, 21, 273, 2657, 67, 6909, 1222, 12, 92, 13, 365, 18, 6870, 984, 2656, 12, 93, 18, 8972, 422, 365, 18,...
n_used_vars=len(used_vars_set(I,bound=new_bound))
n_used_vars=used_vars_set(I,bound=new_bound).deg()
def want_la(): n_used_vars=None bound=None if have_degree_order(): new_bound=200 n_used_vars=len(used_vars_set(I,bound=new_bound)) if n_used_vars<new_bound: return True bound=new_bound if dense_system(I): new_bound=100 if not (bound and new_bound<bound): n_used_vars=len(used_vars_set(I,bound=new_bound)) bound=new_bound...
2df64c54a812dd105471438a1e67b95c2c29e12b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2046/2df64c54a812dd105471438a1e67b95c2c29e12b/gbcore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2545, 67, 11821, 13332, 290, 67, 3668, 67, 4699, 33, 7036, 2489, 33, 7036, 309, 1240, 67, 21361, 67, 1019, 13332, 394, 67, 3653, 33, 6976, 290, 67, 3668, 67, 4699, 33, 3668, 67, 4699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2545, 67, 11821, 13332, 290, 67, 3668, 67, 4699, 33, 7036, 2489, 33, 7036, 309, 1240, 67, 21361, 67, 1019, 13332, 394, 67, 3653, 33, 6976, 290, 67, 3668, 67, 4699, 33, 3668, 67, 4699, ...
print >> stream, ' %20s %20s %s %8d %8d %.2f %.2f %.2f %.2e %3d' % (category, field, binString(field, left, right), len(variants), len(novels), titv(variants), titv(novels), dbSNPRate(variants), FPRate, phredScale(FPRate)), more
print >> stream, ' %20s %20s %15s %15s %8d %8d %2.2f %2.2f %3.2f %3d' % (category, field, binString(field, cc.featureRange), cc.qualRange.dashedString(), len(variants), len(novels), titv(variants), titv(novels), dbSNPRate(variants) * 100, phredScale(cc.FPRate)), more
def p(stream): if stream <> None: print >> stream, ' %20s %20s %s %8d %8d %.2f %.2f %.2f %.2e %3d' % (category, field, binString(field, left, right), len(variants), len(novels), titv(variants), titv(novels), dbSNPRate(variants), FPRate, phredScale(FPRate)), more
0d2a761460c77c781de3e2f8a5d09e1043809a0f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2773/0d2a761460c77c781de3e2f8a5d09e1043809a0f/snpSelector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 12, 3256, 4672, 309, 1407, 2813, 599, 30, 1172, 1671, 1407, 16, 296, 225, 738, 3462, 87, 738, 3462, 87, 738, 87, 738, 28, 72, 738, 28, 72, 12639, 22, 74, 12639, 22, 74, 12639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 12, 3256, 4672, 309, 1407, 2813, 599, 30, 1172, 1671, 1407, 16, 296, 225, 738, 3462, 87, 738, 3462, 87, 738, 87, 738, 28, 72, 738, 28, 72, 12639, 22, 74, 12639, 22, 74, 12639, ...
- indent - boolean indicating whether block must be indented beyond the
- indent - boolean indicating whether block must be indented beyond the
def indentedBlock(blockStatementExpr, indentStack, indent=True): """Helper method for defining space-delimited indentation blocks, such as those used to define block statements in Python source code. Parameters: - blockStatementExpr - expression defining syntax of statement that is repeated within the indented block -...
e0ca9c3ec38d75e110aa3bc15e2e5ca4c5cae61d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3693/e0ca9c3ec38d75e110aa3bc15e2e5ca4c5cae61d/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23786, 1768, 12, 2629, 3406, 4742, 16, 3504, 2624, 16, 3504, 33, 5510, 4672, 3536, 2276, 707, 364, 9364, 3476, 17, 3771, 1038, 329, 12018, 4398, 16, 4123, 487, 5348, 1399, 358, 4426, 120...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23786, 1768, 12, 2629, 3406, 4742, 16, 3504, 2624, 16, 3504, 33, 5510, 4672, 3536, 2276, 707, 364, 9364, 3476, 17, 3771, 1038, 329, 12018, 4398, 16, 4123, 487, 5348, 1399, 358, 4426, 120...
encoded = simplejson.dumps(data)
encoded = JSONEncoder().encode(data)
def wishlist_remove_ajax(request, template="shop/json.html"): success, msg = _wishlist_remove(request) data = { 'success' : success, 'wishlist_message' : msg } encoded = simplejson.dumps(data) encoded = mark_safe(encoded) return render_to_response(template, {'json' : encoded})
2f7749967c5b9f67b3c950b4cbb77dcad5ed69be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/2f7749967c5b9f67b3c950b4cbb77dcad5ed69be/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 4479, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 2216, 16, 1234, 273, 389, 91, 1468, 1098, 67, 4479, 12, 2293, 13, 225, 501, 273, 288, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14302, 1098, 67, 4479, 67, 12813, 12, 2293, 16, 1542, 1546, 5020, 19, 1977, 18, 2620, 6, 4672, 2216, 16, 1234, 273, 389, 91, 1468, 1098, 67, 4479, 12, 2293, 13, 225, 501, 273, 288, 2...
def ftp_PORT(self, line):
def ftp_PORT(self, line): "Start an active data-channel"
def ftp_PORT(self, line): try: line = line.split(',') ip = ".".join(line[:4]).replace(',','.') port = (int(line[4]) * 256) + int(line[5]) except: self.respond("500 Invalid PORT format.") return
8ef51c703167796e3adf0fd8fd5240b691e23538 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/8ef51c703167796e3adf0fd8fd5240b691e23538/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 6354, 12, 2890, 16, 980, 4672, 315, 1685, 392, 2695, 501, 17, 4327, 6, 225, 775, 30, 980, 273, 980, 18, 4939, 12, 2187, 6134, 2359, 273, 4585, 18, 5701, 12, 1369, 10531, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 6354, 12, 2890, 16, 980, 4672, 315, 1685, 392, 2695, 501, 17, 4327, 6, 225, 775, 30, 980, 273, 980, 18, 4939, 12, 2187, 6134, 2359, 273, 4585, 18, 5701, 12, 1369, 10531, 2...
sage: p.coeffs(a)
sage: p.coefficients(a)
def coeffs(self, x=None): r""" Coefficients of \code{self} as a polynomial in x.
9a4242b09a1206a9ebface62969e0372ef2435a0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/9a4242b09a1206a9ebface62969e0372ef2435a0/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16530, 12, 2890, 16, 619, 33, 7036, 4672, 436, 8395, 7695, 73, 12344, 434, 521, 710, 95, 2890, 97, 487, 279, 16991, 316, 619, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16530, 12, 2890, 16, 619, 33, 7036, 4672, 436, 8395, 7695, 73, 12344, 434, 521, 710, 95, 2890, 97, 487, 279, 16991, 316, 619, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
except: locale.setlocale(locale.LC_ALL, 'en_EN')
except: locale.setlocale(locale.LC_ALL, 'en_US')
def tt_get_messages(self, query, skey, rkey): """ Returns a list of messages, filtered and sorted according with the given parameters. @param query: query against the list of messages @type query: string @param skey: the sorting key @type skey: string @param rkey: indicates if the list must be reversed @type rkey: stri...
22aa301f79bb43fc444b4dbc7da19ae50f6b5166 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/22aa301f79bb43fc444b4dbc7da19ae50f6b5166/TranslationsTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3574, 67, 588, 67, 6833, 12, 2890, 16, 843, 16, 272, 856, 16, 436, 856, 4672, 3536, 2860, 279, 666, 434, 2743, 16, 5105, 471, 3115, 4888, 598, 326, 864, 1472, 18, 632, 891, 843, 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, 3574, 67, 588, 67, 6833, 12, 2890, 16, 843, 16, 272, 856, 16, 436, 856, 4672, 3536, 2860, 279, 666, 434, 2743, 16, 5105, 471, 3115, 4888, 598, 326, 864, 1472, 18, 632, 891, 843, 30, ...
{"type":tokenTypes["Characters"], "data":"This is a searchable index. Insert your search keywords here: "}) attributes = token["data"].copy()
{"type":tokenTypes["Characters"], "data":prompt}) attributes = token["data"].copy() if "action" in attributes: del attributes["action"] if "prompt" in attributes: del attributes["prompt"]
def startTagIsIndex(self, token): self.parser.parseError("deprecated-tag", {"name": "isindex"}) if self.tree.formPointer: return self.processStartTag(impliedTagToken("form", "StartTag")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processStartTag(impliedTagToken("p", "StartTag")) self.processStartTag(i...
d6ad7f65c6800ac258d200f25f4d42fa51a9ce3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/d6ad7f65c6800ac258d200f25f4d42fa51a9ce3b/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2520, 1016, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 2670, 668, 2932, 14089, 17, 2692, 3113, 12528, 529, 6877, 315, 291, 1615, 6, 6792, 309, 365, 18, 3413, 18, 687, 4926...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1805, 2520, 1016, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 2670, 668, 2932, 14089, 17, 2692, 3113, 12528, 529, 6877, 315, 291, 1615, 6, 6792, 309, 365, 18, 3413, 18, 687, 4926...
field_names = EXTENSION_NAMES[s["block_type"].value] if field_names == None: raise ParserError("Unknown parent '%s'" % name)
ext = EXTENSIONS[s["block_type"].value] if ext == None: raise ParserError("Unknown parent '%s'" % s["block_type"].value)
def parseFields(s): # Determine field names field_names = EXTENSION_NAMES[s["block_type"].value] if field_names == None: raise ParserError("Unknown parent '%s'" % name) # Parse fields addr = s.absolute_address + s.current_size while not s.eof and s.stream.readBytes(addr, 4) in field_names: field = MPField(s, "field[]"...
75d0930d61b2b98bfd5cdaf0ec5487c36bb81181 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/75d0930d61b2b98bfd5cdaf0ec5487c36bb81181/xm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2314, 12, 87, 4672, 468, 10229, 652, 1257, 1110, 273, 25518, 55, 63, 87, 9614, 2629, 67, 723, 6, 8009, 1132, 65, 309, 1110, 422, 599, 30, 1002, 6783, 668, 2932, 4874, 982, 1995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2314, 12, 87, 4672, 468, 10229, 652, 1257, 1110, 273, 25518, 55, 63, 87, 9614, 2629, 67, 723, 6, 8009, 1132, 65, 309, 1110, 422, 599, 30, 1002, 6783, 668, 2932, 4874, 982, 1995, ...
try:
def __repr__ (self): try: status = [self.__class__.__module__+"."+self.__class__.__name__] if self.accepting and self.addr: status.append ('listening') elif self.connected: status.append ('connected') if self.addr: if type(self.addr) == types.TupleType: status.append ('%s:%d' % self.addr) else: status.append (self.addr...
eee80ee2efa5288b3e30d3336a9fce0ebdde68eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/eee80ee2efa5288b3e30d3336a9fce0ebdde68eb/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 261, 2890, 4672, 1267, 273, 306, 2890, 16186, 1106, 972, 16186, 2978, 972, 9078, 1199, 15, 2890, 16186, 1106, 972, 16186, 529, 972, 65, 309, 365, 18, 9436, 310, 471, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 261, 2890, 4672, 1267, 273, 306, 2890, 16186, 1106, 972, 16186, 2978, 972, 9078, 1199, 15, 2890, 16186, 1106, 972, 16186, 529, 972, 65, 309, 365, 18, 9436, 310, 471, 36...
print >> out, "ERROR_(cannot extract xray_structure): %s"%pdb[-11:]
print >> out, "Cannot_extract_xray_structure: %s"%pdb
def get_xray_structure_from_pdb_file(pdb, out): try: processed_pdb_file = monomer_library.pdb_interpretation.process( mon_lib_srv = mon_lib_srv, ener_lib = ener_lib, file_name = pdb) xray_structure = processed_pdb_file.xray_structure() except KeyboardInterrupt: raise except: xray_structure = None print >> out, "ER...
9e0b7031e121e2fc878f68faaa8779137d9fc180 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/9e0b7031e121e2fc878f68faaa8779137d9fc180/pdb_refl_cif_to_mtz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 435, 67, 7627, 67, 2080, 67, 17414, 67, 768, 12, 17414, 16, 596, 4672, 775, 30, 5204, 67, 17414, 67, 768, 273, 26431, 67, 12083, 18, 17414, 67, 24713, 367, 18, 2567, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 435, 67, 7627, 67, 2080, 67, 17414, 67, 768, 12, 17414, 16, 596, 4672, 775, 30, 5204, 67, 17414, 67, 768, 273, 26431, 67, 12083, 18, 17414, 67, 24713, 367, 18, 2567, 12,...
raise ValueError(('list item %d does not begin with '+ 'an identifier.') % n)
raise ValueError(_BAD_ITEM % n)
def handle_consolidated_bullet_list(self, items, tagname): # Check the contents of the list. In particular, each list # item should have the form: # - `arg`: description... n = 0 for item in items: n += 1 if item.tagname != 'list_item' or len(item) == 0: raise ValueError('bad bulleted list (bad child %d).' % n) if i...
f19c94ad92618a44c37f8aa46282df200249f1b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/f19c94ad92618a44c37f8aa46282df200249f1b7/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 8559, 7953, 690, 67, 70, 19994, 67, 1098, 12, 2890, 16, 1516, 16, 25586, 4672, 468, 2073, 326, 2939, 434, 326, 666, 18, 225, 657, 6826, 16, 1517, 666, 468, 761, 1410, 1240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 8559, 7953, 690, 67, 70, 19994, 67, 1098, 12, 2890, 16, 1516, 16, 25586, 4672, 468, 2073, 326, 2939, 434, 326, 666, 18, 225, 657, 6826, 16, 1517, 666, 468, 761, 1410, 1240, ...
self.layout.addWidget(slider, 1, i)
self.layout.addWidget(slider.name_label, 0, i) self.layout.addWidget(slider, 1, i, QtCore.Qt.AlignCenter) self.layout.addWidget(slider.value_label, 2, i) self.layout.setColumnMinimumWidth(i, 50)
def __init__(self, n, ranges_labels, callback): QWidget.__init__(self)
186eee357ab9a9a1d91f0651f6a9efcffa5aff79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/186eee357ab9a9a1d91f0651f6a9efcffa5aff79/qt_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 7322, 67, 5336, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 16, 7322, 67, 5336, 16, 1348, 4672, 2238, 4609, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "ERROR: %s %s" % ( response.status, response.reason )
print "ERROR: %s %s" % ( status, error )
def pasteLog( self, params ): """Send the last event exception error log (if there is one) to http://pastebin.com""" if last_exception is None: print "SHELL: No Errors yet (Phew)..." else: reason, event = last_exception.args print "SHELL: Reason for the last error: '%s'" % reason if ':' in reason: msg, filename = reaso...
ceb67ff32867b0ee793379d49d13a7fc65db26ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/ceb67ff32867b0ee793379d49d13a7fc65db26ef/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 1343, 12, 365, 16, 859, 262, 30, 3536, 3826, 326, 1142, 871, 1520, 555, 613, 261, 430, 1915, 353, 1245, 13, 358, 1062, 2207, 29795, 4757, 18, 832, 8395, 309, 1142, 67, 4064, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 1343, 12, 365, 16, 859, 262, 30, 3536, 3826, 326, 1142, 871, 1520, 555, 613, 261, 430, 1915, 353, 1245, 13, 358, 1062, 2207, 29795, 4757, 18, 832, 8395, 309, 1142, 67, 4064, 353...
print "inserting component ", comp[key] c.execute("""INSERT INTO component (name) VALUES (%s)""", comp[key].encode('utf-8'))
print "inserting component '",comp[key],"', owner", comp['owner'] c.execute("""INSERT INTO component (name, owner) VALUES (%s, %s)""", comp[key].encode('utf-8'), comp['owner'].encode('utf-8'))
def setComponentList(self, l, key): """Remove all components, set them to `l`""" self.assertNoTickets() c = self.db().cursor() c.execute("""DELETE FROM component""") for comp in l: print "inserting component ", comp[key] c.execute("""INSERT INTO component (name) VALUES (%s)""", comp[key].encode('utf-8')) self.db().com...
7dc75b6f874a1c4ea363862966b7500491a9499d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/7dc75b6f874a1c4ea363862966b7500491a9499d/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1841, 682, 12, 2890, 16, 328, 16, 498, 4672, 3536, 3288, 777, 4085, 16, 444, 2182, 358, 1375, 80, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 225, 276, 273, 365, 18, 1966, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 1841, 682, 12, 2890, 16, 328, 16, 498, 4672, 3536, 3288, 777, 4085, 16, 444, 2182, 358, 1375, 80, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 225, 276, 273, 365, 18, 1966, ...
logdir = os.path.dirname(filename)
logdir = os.path.dirname(logfile)
def setFileLog(uid, logfile): # TODO: When python's logging config parser doesn't blow up # when the user is non-root, put this in the config file. # syslog-style log if uid == 0: try: # For installroot etc. logdir = os.path.dirname(filename) if not os.path.exists(logdir): os.makedirs(logdir, mode=0755) filelogger = l...
9af98d220af88ed9cd2a5f5e7cf19ce18e6e8fad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/9af98d220af88ed9cd2a5f5e7cf19ce18e6e8fad/logginglevels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19658, 1343, 12, 1911, 16, 15204, 4672, 468, 2660, 30, 5203, 5790, 1807, 2907, 642, 2082, 3302, 1404, 324, 821, 731, 468, 1347, 326, 729, 353, 1661, 17, 3085, 16, 1378, 333, 316, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19658, 1343, 12, 1911, 16, 15204, 4672, 468, 2660, 30, 5203, 5790, 1807, 2907, 642, 2082, 3302, 1404, 324, 821, 731, 468, 1347, 326, 729, 353, 1661, 17, 3085, 16, 1378, 333, 316, 326, ...
break
if job.inputdata._name != 'EventPicking': break
def split(self,job):
1e4acdccfbdcf1fe71e66257844d7a18d815a8ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/1e4acdccfbdcf1fe71e66257844d7a18d815a8ef/DQ2JobSplitter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 4688, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
`(k, s)` where `k` is the index of the symbol obtained by acting
``(k, s)`` where `k` is the index of the symbol obtained by acting
def apply_S(self, j): """ Apply the matrix `S=[0,1;-1,0]` to the `j`-th Manin symbol.
671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/671c84d5e7cdbe17c4a9c5101eeb0ee36a73d4c3/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 55, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 55, 22850, 20, 16, 21, 31, 17, 21, 16, 20, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 18, 2, 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, 1, 1, 1, 1, 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, 2230, 67, 55, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 55, 22850, 20, 16, 21, 31, 17, 21, 16, 20, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 18, 2, -1...
'value': fields.float('Value', digits=(16, int(config['price_accuracy']))),
'value': fields.float('Value', digits=(16, 4)),
def execute_function(self, cr, uid, id, value, context): line_pool = self.pool.get('hr.payslip.line.line') res = 0 ids = line_pool.search(cr, uid, [('slipline_id','=',id), ('from_val','<=',value), ('to_val','>=',value)])
21786ff375c69b960b487a69bd1343b8b77f3dec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/21786ff375c69b960b487a69bd1343b8b77f3dec/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 915, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 460, 16, 819, 4672, 980, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 84, 8271, 3169, 18, 1369, 18, 1369, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 915, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 460, 16, 819, 4672, 980, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 84, 8271, 3169, 18, 1369, 18, 1369, 6134, ...
"buildProcess" :
"buildProcess" :
def process(options): global verbose global quiet verbose = options.verbose quiet = options.quiet if verbose: quiet = False print ">>> Processing..." if not quiet: print " - Configuration: %s" % options.config print " - Jobs: %s" % ", ".join(options.jobs) # TODO: File parser # - Translate dashed to camelcase # -...
e3364bd2416dfe75fd85aeea0ded427372ef3d08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/e3364bd2416dfe75fd85aeea0ded427372ef3d08/generator2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2116, 4672, 2552, 3988, 2552, 10902, 225, 3988, 273, 702, 18, 11369, 10902, 273, 702, 18, 20380, 225, 309, 3988, 30, 10902, 273, 1083, 225, 1172, 315, 23012, 19652, 7070, 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, 1207, 12, 2116, 4672, 2552, 3988, 2552, 10902, 225, 3988, 273, 702, 18, 11369, 10902, 273, 702, 18, 20380, 225, 309, 3988, 30, 10902, 273, 1083, 225, 1172, 315, 23012, 19652, 7070, 309, ...
wheresql, wherevals=self._processWhere(conn, whereArgs, extra)
converter=conn.getConverter() wheresql, wherevals=self._processWhere(conn, whereArgs, extra, converter=converter)
def joinTable(self, thisAttrNames, pivotTable, thisSideColumns, thatSideColumns, thatObject, thatAttrNames, *whereArgs, **extra):
3546b489c540e47c23cc09d9dbc54588c9d46a36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/3546b489c540e47c23cc09d9dbc54588c9d46a36/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23551, 12, 2890, 16, 333, 3843, 1557, 16, 9939, 1388, 16, 333, 8895, 3380, 16, 716, 8895, 3380, 16, 716, 921, 16, 716, 3843, 1557, 16, 380, 6051, 2615, 16, 2826, 7763, 4672, 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, 1, 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, 23551, 12, 2890, 16, 333, 3843, 1557, 16, 9939, 1388, 16, 333, 8895, 3380, 16, 716, 8895, 3380, 16, 716, 921, 16, 716, 3843, 1557, 16, 380, 6051, 2615, 16, 2826, 7763, 4672, 2, -100, ...
program = os.path.normpath(filePath + '/../bin/simulator')
if sys.platform == 'win32': program = os.path.normpath(filePath + '/../bin/simulator.exe') else: program = os.path.normpath(filePath + '/../bin/simulator') if not os.path.exists(program): msg = redmsg("Simulator [" + program + "] does not exit. Simluation aborted.") assy.w.history.message(msg) return -1
def writemovie(assy, mflag = False): """Creates a moviefile. The name of the moviefile it creates is found in assy.m.filename. The moviefile is either a DPB file or an XYZ trajectory file. DPB = Differential Position Bytes (binary file) XYZ = XYZ trajectory file (text file) mflag: 0 = default, runs a full simulation ...
68677cd8431782ae09dddf1f2637847e23323c8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/68677cd8431782ae09dddf1f2637847e23323c8d/fileIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 351, 83, 13120, 12, 428, 93, 16, 312, 6420, 273, 1083, 4672, 3536, 2729, 279, 21360, 768, 18, 225, 1021, 508, 434, 326, 21360, 768, 518, 3414, 353, 1392, 316, 1551, 93, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 351, 83, 13120, 12, 428, 93, 16, 312, 6420, 273, 1083, 4672, 3536, 2729, 279, 21360, 768, 18, 225, 1021, 508, 434, 326, 21360, 768, 518, 3414, 353, 1392, 316, 1551, 93, 18, 81, ...
class HostNetblock(MMSQLObject):
class HostNetblock(SQLObject): class sqlmeta: cacheValues = False
def my_site(self): return self.host.my_site()
ec0d40658f0447775d65e70acc1cb8593a9f2027 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/ec0d40658f0447775d65e70acc1cb8593a9f2027/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 4256, 12, 2890, 4672, 327, 365, 18, 2564, 18, 4811, 67, 4256, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 3399, 67, 4256, 12, 2890, 4672, 327, 365, 18, 2564, 18, 4811, 67, 4256, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def test_split_args(self): full_args = ["--global-option", "command", "--option", "arg"] full_args_expected = (["--global-option"], "command", ["--option", "arg"]) self._assert_split(full_args, full_args_expected)
if not command_name: self.global_option_parser.error("No command specified")
def test_split_args(self): # MultiCommandToolTest._split_args returns: (global_args, command, command_args) full_args = ["--global-option", "command", "--option", "arg"] full_args_expected = (["--global-option"], "command", ["--option", "arg"]) self._assert_split(full_args, full_args_expected)
03d2c755967e72eaea24ed694a0bc48d93c4992c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/03d2c755967e72eaea24ed694a0bc48d93c4992c/multicommandtool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4939, 67, 1968, 12, 2890, 4672, 468, 5991, 2189, 6364, 4709, 6315, 4939, 67, 1968, 1135, 30, 261, 6347, 67, 1968, 16, 1296, 16, 1296, 67, 1968, 13, 1983, 67, 1968, 273, 8247,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4939, 67, 1968, 12, 2890, 4672, 468, 5991, 2189, 6364, 4709, 6315, 4939, 67, 1968, 1135, 30, 261, 6347, 67, 1968, 16, 1296, 16, 1296, 67, 1968, 13, 1983, 67, 1968, 273, 8247,...
print newEditor
def openResource(self, uri=False, newTab=False, inBackground=True):
5e69154b4078d4960e835e6065f9adb740af3ff8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1729/5e69154b4078d4960e835e6065f9adb740af3ff8/ginkgo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1420, 12, 2890, 16, 2003, 33, 8381, 16, 394, 5661, 33, 8381, 16, 316, 8199, 33, 5510, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 1420, 12, 2890, 16, 2003, 33, 8381, 16, 394, 5661, 33, 8381, 16, 316, 8199, 33, 5510, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.redDelayTimer.setDelay(int(delay * 1000))
self.redDelayTimer.setInitialDelay(int(delay * 1000))
def doSpeedRed(self): if (self.currentThrottle != None and self.currentThrottle.getSpeedSetting() != 0 and (self.redDelayTimer == None or self.redDelayTimer.isRunning() == False)) : i = int(self.locoSpeedRed.text) * 0.01 self.currentThrottle.setSpeedSetting(i) self.msgText("doSpeedRed: " + i.toString() + "\n") self.loc...
1b53c7b2f6f34536d3368641c7f7e82494bec26f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2146/1b53c7b2f6f34536d3368641c7f7e82494bec26f/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 16562, 3715, 12, 2890, 4672, 309, 261, 2890, 18, 2972, 27636, 480, 599, 471, 365, 18, 2972, 27636, 18, 588, 16562, 5568, 1435, 480, 374, 471, 261, 2890, 18, 1118, 6763, 6777, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16562, 3715, 12, 2890, 4672, 309, 261, 2890, 18, 2972, 27636, 480, 599, 471, 365, 18, 2972, 27636, 18, 588, 16562, 5568, 1435, 480, 374, 471, 261, 2890, 18, 1118, 6763, 6777, 422, ...
def addCell(self, args):
def addCell(self, argsdict={}): if 'style' in argsdict: argsdict.update(self.formatter._convertStylesToDict(argsdict['style'].strip('"')))
def addCell(self, args): cell = self.doc.createElement('entry') cell.setAttribute('rowsep', '1') cell.setAttribute('colsep', '1')
1433435f169a98600ed153334470f8365d04459c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/1433435f169a98600ed153334470f8365d04459c/text_docbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 4020, 12, 2890, 16, 833, 1576, 12938, 4672, 309, 296, 4060, 11, 316, 833, 1576, 30, 833, 1576, 18, 2725, 12, 2890, 18, 12354, 6315, 6283, 9725, 774, 5014, 12, 1968, 1576, 3292, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4020, 12, 2890, 16, 833, 1576, 12938, 4672, 309, 296, 4060, 11, 316, 833, 1576, 30, 833, 1576, 18, 2725, 12, 2890, 18, 12354, 6315, 6283, 9725, 774, 5014, 12, 1968, 1576, 3292, 40...
def _sub(pattern, template, text, count=0): return _subn(pattern, template, text, count)[0] def _subn(pattern, template, text, count=0): filter = _subx(pattern, template) if not callable(filter): def filter(match, literal=filter): return literal n = i = 0 s = [] append = s.append c = pattern.scanner(text) while ...
def filter(match, template=template): return sre_parse.expand_template(template, match)
dac58492aa3bf476fa0b4b586edababfe3aaca53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/dac58492aa3bf476fa0b4b586edababfe3aaca53/sre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 1916, 16, 1542, 33, 3202, 4672, 327, 272, 266, 67, 2670, 18, 12320, 67, 3202, 12, 3202, 16, 845, 13, 2, 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, 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, 1034, 12, 1916, 16, 1542, 33, 3202, 4672, 327, 272, 266, 67, 2670, 18, 12320, 67, 3202, 12, 3202, 16, 845, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if idx > 0:
if idx > -1:
def delAlias_(self, sender): idx=self.aliasesListTable.selectedRow() if idx > 0: self.selectedAccount.delAlias(idx) self.populateTable_(self) else: print self.myAliasTable.identities
4d0396e72248f9dfadf5902fb8bbb8f6275852ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4895/4d0396e72248f9dfadf5902fb8bbb8f6275852ff/mailVirtualAppDelegate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 2936, 67, 12, 2890, 16, 5793, 4672, 2067, 33, 2890, 18, 13831, 682, 1388, 18, 8109, 1999, 1435, 309, 2067, 405, 300, 21, 30, 365, 18, 8109, 3032, 18, 3771, 2936, 12, 3465, 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, 1464, 2936, 67, 12, 2890, 16, 5793, 4672, 2067, 33, 2890, 18, 13831, 682, 1388, 18, 8109, 1999, 1435, 309, 2067, 405, 300, 21, 30, 365, 18, 8109, 3032, 18, 3771, 2936, 12, 3465, 13, ...
return
continue
def _socketReader(self): # This thread is responsible for reading all incoming frames, # so it pushes data into the buffers, initializes new threads for each new client # and handles all administrative frames while True: # Should we quit? if self.stopSocketReader or not self.connectionInit: break # Read in a frame try...
406fe1a767b5bf0ffc40cdd07cd5cfe38d04d61f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/406fe1a767b5bf0ffc40cdd07cd5cfe38d04d61f/NATLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7814, 2514, 12, 2890, 4672, 468, 1220, 2650, 353, 14549, 364, 6453, 777, 6935, 7793, 16, 468, 1427, 518, 27351, 501, 1368, 326, 9664, 16, 11643, 394, 7403, 364, 1517, 394, 1004, 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, 389, 7814, 2514, 12, 2890, 4672, 468, 1220, 2650, 353, 14549, 364, 6453, 777, 6935, 7793, 16, 468, 1427, 518, 27351, 501, 1368, 326, 9664, 16, 11643, 394, 7403, 364, 1517, 394, 1004, 468...
if not os.path.exists(os.path.join(checkout_path, '.svn')):
if not os.path.exists(os.path.join(self.checkout_path, '.svn')):
def updatesingle(self, options, args, file_list): checkout_path = os.path.join(self._root_dir, self.relpath) filename = args.pop() if scm.SVN.AssertVersion("1.5")[0]: if not os.path.exists(os.path.join(checkout_path, '.svn')): # Create an empty checkout and then update the one file we want. Future # operations will on...
338ead09dbd34566cb60d324c2eb7366229ad94e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/338ead09dbd34566cb60d324c2eb7366229ad94e/gclient_scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4533, 1714, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 13926, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 3085, 67, 1214, 16, 365, 18, 2878, 803, 13, 1544, 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, 4533, 1714, 12, 2890, 16, 702, 16, 833, 16, 585, 67, 1098, 4672, 13926, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 6315, 3085, 67, 1214, 16, 365, 18, 2878, 803, 13, 1544, 273, ...
prettyprint (["Package", "Version", "Build", "Repo"], [25, 10, 6, 30])
def do_list(self, args): if not args: args = self.repos for pkg in self.repos_packages: prettyprint (["Package", "Version", "Build", "Repo"], [25, 10, 6, 30]) for pkg_info in self.repos_packages.get_info(pkg): if pkg_info["repo"] in args: prettyprint ([pkg_info["name"],pkg_info["version"], pkg_info["build"], pkg_info["...
ffc42153c4f2cea65ca7193170614dd49d983bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2541/ffc42153c4f2cea65ca7193170614dd49d983bd3/ilenia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1098, 12, 2890, 16, 833, 4672, 309, 486, 833, 30, 833, 273, 365, 18, 15564, 364, 3475, 316, 365, 18, 15564, 67, 10308, 30, 364, 3475, 67, 1376, 316, 365, 18, 15564, 67, 1030...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 12, 2890, 16, 833, 4672, 309, 486, 833, 30, 833, 273, 365, 18, 15564, 364, 3475, 316, 365, 18, 15564, 67, 10308, 30, 364, 3475, 67, 1376, 316, 365, 18, 15564, 67, 1030...
q = document.body[i + 2].find("tabularvalignment") if q > -1: document.body[i + 2] = document.body[i + 2][:q - 1] document.body[i + 2] = document.body[i + 2] + '>'
q = document.body[fline].find("tabularvalignment") if q != -1: document.body[fline] = document.body[fline][:q - 1] + '>'
def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_token(document.body, "</cell>", i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular cell.") i += 1 continue ...
838adc69aa367bef9c652dece25f82ca4e2bd989 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/838adc69aa367bef9c652dece25f82ca4e2bd989/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15226, 67, 7032, 2490, 1125, 724, 12, 5457, 4672, 315, 868, 1097, 326, 28342, 1244, 724, 1456, 315, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 842...
val['priority']='1'
val['priority']='2'
def _find_project_bug(self, cr, uid,sec_id,lp_server=None,context={}):
f90f8882d899529c1fced87490de5125e459331d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/f90f8882d899529c1fced87490de5125e459331d/crm_lp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 4406, 67, 925, 12, 2890, 16, 4422, 16, 4555, 16, 3321, 67, 350, 16, 9953, 67, 3567, 33, 7036, 16, 2472, 12938, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 4720, 67, 4406, 67, 925, 12, 2890, 16, 4422, 16, 4555, 16, 3321, 67, 350, 16, 9953, 67, 3567, 33, 7036, 16, 2472, 12938, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
job = Task.Job(_("Check storage device...")) task = Task.PythonTask(job, _("Unmount")) task.work = self.unmount
job = Task.Job(_("Checking Filesystem...")) if self.findMount(): task = Task.PythonTask(job, _("Unmount")) task.work = self.unmount dev = self.mount_device else: dev = self.partitionPath("1")
def createCheckJob(self): job = Task.Job(_("Check storage device..."))
856df60ec2fde305970dc605642c809ae6b9fd3a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/856df60ec2fde305970dc605642c809ae6b9fd3a/Harddisk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1564, 2278, 12, 2890, 4672, 1719, 273, 3837, 18, 2278, 24899, 2932, 1564, 2502, 2346, 7070, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 1564, 2278, 12, 2890, 4672, 1719, 273, 3837, 18, 2278, 24899, 2932, 1564, 2502, 2346, 7070, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"""Error during connection establishment"""
"""Error during connection establishment."""
def __init__(self, recipients): self.recipients = recipients self.args = ( recipients,)
d25c1b73d2c8ab561476de849026aef7bd25808e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d25c1b73d2c8ab561476de849026aef7bd25808e/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 12045, 4672, 365, 18, 27925, 273, 12045, 365, 18, 1968, 273, 261, 12045, 16, 13, 2, 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, 1001, 2738, 972, 12, 2890, 16, 12045, 4672, 365, 18, 27925, 273, 12045, 365, 18, 1968, 273, 261, 12045, 16, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def addTarget(self, session, targetName, targetUuid, targetIp, targetMac, targetBCast, targetNetmask, mirror, groupID = None):
def addTarget(self, targetName, targetUuid, targetIp, targetMac, targetBCast, targetNetmask, mirror, groupID = None):
def addTarget(self, session, targetName, targetUuid, targetIp, targetMac, targetBCast, targetNetmask, mirror, groupID = None): """ Inject a new Target object in our MSC database Return the corresponding Target object """ myTarget = Target() myTarget.target_name = targetName myTarget.target_uuid = targetUuid myTarget.ta...
dce9cd1cdf8e2fe6b346638f70fc60a17e5c6e79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/dce9cd1cdf8e2fe6b346638f70fc60a17e5c6e79/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2326, 12, 2890, 16, 23395, 16, 1018, 5897, 16, 1018, 5273, 16, 1018, 9990, 16, 1018, 38, 9735, 16, 1018, 7308, 4455, 16, 15593, 16, 30365, 273, 599, 4672, 3536, 20085, 279, 394, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2326, 12, 2890, 16, 23395, 16, 1018, 5897, 16, 1018, 5273, 16, 1018, 9990, 16, 1018, 38, 9735, 16, 1018, 7308, 4455, 16, 15593, 16, 30365, 273, 599, 4672, 3536, 20085, 279, 394, 5...
"""
"""
def flimage_invalidate_pixels(pImage): """ flimage_invalidate_pixels(pImage) """ _flimage_invalidate_pixels(pImage)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 5387, 340, 67, 21084, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 5387, 340, 67, 21084, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 5387, 340, 67, 21084, 12, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 5387, 340, 67, 21084, 12, 84, 2040, 4672, 3536, 1183, 2730, 67, 5387, 340, 67, 21084, 12, 84, 2040, 13, 3536, 225, 389, 2242, 2730, 67, 5387, 340, 67, 21084, 12, 84, ...
if not self.object._context: return self.name
def __str__(self): if not self.object._context: return self.name return locale.format('%d', self.name, True)
f16cf978ff88ce3b744db58016d29e38fb92872c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f16cf978ff88ce3b744db58016d29e38fb92872c/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2573, 18, 2139, 29909, 72, 2187, 365, 18, 529, 16, 1053, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2573, 18, 2139, 29909, 72, 2187, 365, 18, 529, 16, 1053, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'todo': self.build_metadata_index('todo')}
'todo': self.build_metadata_index('todo'), 'change': self.build_metadata_index('change')}
def write(self, directory=None): """ Write the documentation to the given directory.
115caf6863ffeb5bea5523db3d9123b230343295 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/115caf6863ffeb5bea5523db3d9123b230343295/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 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, ...
[ 1, 1, 1, 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, 1045, 12, 2890, 16, 1867, 33, 7036, 4672, 3536, 2598, 326, 7323, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
report_sxw.report_sxw('report.hr.timesheet.invoice.account.analytic.account.cost_ledger', 'account.analytic.account', 'addons/hr_timesheet_invoice/report/cost_ledger.rml',parser=account_analytic_cost_ledger, header=False)
report_sxw.report_sxw( 'report.hr.timesheet.invoice.account.analytic.account.cost_ledger', 'account.analytic.account', 'addons/hr_timesheet_invoice/report/cost_ledger.rml', parser=account_analytic_cost_ledger, header=False)
def _sum_revenue(self, accounts): ids = map(lambda x: x.id, accounts) if not len(ids): return 0.0 res = 0.0 for id in ids: res += self.sum_revenue.get(id, 0.0) return res
e8bad2ccd9ac2bc4e3becf89888ea020e7eaa49b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/e8bad2ccd9ac2bc4e3becf89888ea020e7eaa49b/cost_ledger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1364, 67, 266, 24612, 12, 2890, 16, 9484, 4672, 3258, 273, 852, 12, 14661, 619, 30, 619, 18, 350, 16, 9484, 13, 309, 486, 562, 12, 2232, 4672, 327, 374, 18, 20, 400, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1364, 67, 266, 24612, 12, 2890, 16, 9484, 4672, 3258, 273, 852, 12, 14661, 619, 30, 619, 18, 350, 16, 9484, 13, 309, 486, 562, 12, 2232, 4672, 327, 374, 18, 20, 400, 273, 374, ...
sage: B = A.subgroup([a^3,b,c,d]) sage: B Multiplicative Abelian Group isomorphic to C3 x C7 x C16 x C2003 x C3001 x C4001, which is the subgroup of Multiplicative Abelian Group isomorphic to C7 x C9 x C16 x C2003 x C3001 x C4001 generated by [a^3, b, c, d]
sage: B = A.subgroup([a^3,b,c,d]); B Multiplicative Abelian Group isomorphic to C3 x C7 x C16 x C2003 x C3001 x C4001, which is the subgroup of Multiplicative Abelian Group isomorphic to C1008 x C2003 x C3001 x C4001 generated by [a^3, b, c, d]
def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x...
91d93eac9e73babe24c77f9b0d1b0336a7d35cef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/91d93eac9e73babe24c77f9b0d1b0336a7d35cef/abelian_group.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 225, 5675, 8900, 11386, 30, 272, 410, 30, 478, 273, 9771, 292, 2779, 1114, 12, 25, 16, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13232, 1979, 16, 314, 773, 16, 1257, 1546, 74, 6, 4672, 3536, 225, 5675, 8900, 11386, 30, 272, 410, 30, 478, 273, 9771, 292, 2779, 1114, 12, 25, 16, 63...
handler_msg("opening record file: %s" % settings['record']) rec = open("%s.%s" % (settings['record'], settings['handler_id']), 'w+')
fname = "%s.%s" % (settings['record'], settings['handler_id']) handler_msg("opening record file: %s" % fname) rec = open(fname, 'w+')
def proxy_handler(client): global target_host, target_port, options, rec if settings['record']: handler_msg("opening record file: %s" % settings['record']) rec = open("%s.%s" % (settings['record'], settings['handler_id']), 'w+') rec.write("var VNC_frame_data = [\n") handler_msg("connecting to: %s:%s" % (target_host, ...
a679a97d1b920b777e369003268f4af70c82acd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13207/a679a97d1b920b777e369003268f4af70c82acd1/wsproxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2889, 67, 4176, 12, 2625, 4672, 2552, 1018, 67, 2564, 16, 1018, 67, 655, 16, 702, 16, 1950, 225, 309, 1947, 3292, 3366, 3546, 30, 5299, 273, 2213, 87, 7866, 87, 6, 738, 261, 4272, 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, 2889, 67, 4176, 12, 2625, 4672, 2552, 1018, 67, 2564, 16, 1018, 67, 655, 16, 702, 16, 1950, 225, 309, 1947, 3292, 3366, 3546, 30, 5299, 273, 2213, 87, 7866, 87, 6, 738, 261, 4272, 32...
cur.index_count += 1
def tests2singledocs(): entries = get_tests() for e in entries: e.normalize() entries = filter(lambda e: e.is_empty(), entries) cur = Entry() type = '' for entry in entries: if entry.title: cur.mode, ts = parse_title(''.join(entry.title)) cur.repo = [label2filename(cur.mode)] if ts: cur.repo.append(label2filename(ts[0]...
cd84f51039f37c5d3b8191d117d903ad984bada7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10925/cd84f51039f37c5d3b8191d117d903ad984bada7/TESTS2PAPA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7434, 22, 2470, 1259, 22280, 13332, 3222, 273, 336, 67, 16341, 1435, 364, 425, 316, 3222, 30, 425, 18, 12237, 1435, 3222, 273, 1034, 12, 14661, 425, 30, 425, 18, 291, 67, 5531, 9334, 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, 7434, 22, 2470, 1259, 22280, 13332, 3222, 273, 336, 67, 16341, 1435, 364, 425, 316, 3222, 30, 425, 18, 12237, 1435, 3222, 273, 1034, 12, 14661, 425, 30, 425, 18, 291, 67, 5531, 9334, 3...
write_string(new_series.__descr_file, 'clone of "%s"' % self.__name)
new_series.set_description('clone of "%s"' % self.__name)
def clone(self, target_series): """Clones a series """ base = read_string(self.get_base_file()) Series(target_series).init(create_at = base) new_series = Series(target_series)
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 16, 1018, 67, 10222, 4672, 3536, 2009, 5322, 279, 4166, 3536, 1026, 273, 855, 67, 1080, 12, 2890, 18, 588, 67, 1969, 67, 768, 10756, 9225, 12, 3299, 67, 10222, 2934, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 16, 1018, 67, 10222, 4672, 3536, 2009, 5322, 279, 4166, 3536, 1026, 273, 855, 67, 1080, 12, 2890, 18, 588, 67, 1969, 67, 768, 10756, 9225, 12, 3299, 67, 10222, 2934, 27...
str += ' <TD BGCOLOR=" '<B><FONT SIZE="+1">Package' +\ '</FONT></B>&nbsp;&nbsp;&nbsp;</TD>\n'
str += I+'<TH BGCOLOR=" '&nbsp;&nbsp;&nbsp;'+\ 'Package&nbsp;&nbsp;&nbsp;</TH>\n'
def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') + \ '<TABLE BORDER="0" WIDTH="100%" '+\ 'CELLPADDING="0" BGCOLOR="WHITE" CELLSPACING="0">\n'+\ '<TR>\n<TD COLSPAN=2 BGCOLOR="#a0c0ff">\n'+\ '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING...
208b57b68fee425e4ef284675975df62fecdb5ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/208b57b68fee425e4ef284675975df62fecdb5ea/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\
viewBottomActionText =\ "<u><b>Bottom View</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Bottom.png\"><br> "\
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their...
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 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, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
if verbose: progress("Redirected %s to %s. Ignoring" % (x, f._redirections[x]))
if verbose: progress("Redirected %s to %s. Ignoring" % (`x`, `f._redirections[x]`))
def differences(f, g): """Smush the formulae. Compare them, generating patch instructions.""" global lumped
c1bfd803814d84a8ec0ae946813eb6a735cf6088 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/c1bfd803814d84a8ec0ae946813eb6a735cf6088/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16440, 12, 74, 16, 314, 4672, 3536, 9552, 1218, 326, 8013, 73, 18, 225, 11051, 2182, 16, 12516, 4729, 12509, 12123, 2552, 328, 379, 1845, 225, 2, 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, 16440, 12, 74, 16, 314, 4672, 3536, 9552, 1218, 326, 8013, 73, 18, 225, 11051, 2182, 16, 12516, 4729, 12509, 12123, 2552, 328, 379, 1845, 225, 2, -100, -100, -100, -100, -100, -100, -100...
self.assertEqual(m, t.__dict__[meth])
self.assertEqual(getattr(m, 'im_func', m), t.__dict__[meth])
def setop_test(self, a, b, res, stmt="a+=b", meth="__iadd__"): d = {'a': deepcopy(a), 'b': b} exec stmt in d self.assertEqual(d['a'], res) t = type(a) m = getattr(t, meth) while meth not in t.__dict__: t = t.__bases__[0] self.assertEqual(m, t.__dict__[meth]) d['a'] = deepcopy(a) m(d['a'], b) self.assertEqual(d['a'], re...
21f6aac633a78271e762d6cd4b709e6a91d0c42a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/21f6aac633a78271e762d6cd4b709e6a91d0c42a/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 556, 67, 3813, 12, 2890, 16, 279, 16, 324, 16, 400, 16, 3480, 1546, 69, 15, 33, 70, 3113, 7917, 1546, 972, 77, 1289, 14437, 4672, 302, 273, 13666, 69, 4278, 7217, 12, 69, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 556, 67, 3813, 12, 2890, 16, 279, 16, 324, 16, 400, 16, 3480, 1546, 69, 15, 33, 70, 3113, 7917, 1546, 972, 77, 1289, 14437, 4672, 302, 273, 13666, 69, 4278, 7217, 12, 69, 3631, ...
import pylearn.cost
import pylearn.algorithms.cost
def create(window_size=3, input_dimension=9, output_vocabsize=8, n_quadratic_filters=2, token_representation_size=5, concatenated_representation_size=7, lr=0.01, seed=123, noise_level=0.2, qfilter_relscale=0.1, compile_mode=None): """ Create a convolutional model. """ activation_function = T.tanh import pylearn.cost ...
407f6911b163435781825b96b4037bba6f58e5b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/407f6911b163435781825b96b4037bba6f58e5b3/test_naacl09.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 5668, 67, 1467, 33, 23, 16, 810, 67, 11808, 33, 29, 16, 876, 67, 15913, 1467, 33, 28, 16, 290, 67, 21733, 20004, 67, 6348, 33, 22, 16, 1147, 67, 28957, 67, 1467, 33, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 5668, 67, 1467, 33, 23, 16, 810, 67, 11808, 33, 29, 16, 876, 67, 15913, 1467, 33, 28, 16, 290, 67, 21733, 20004, 67, 6348, 33, 22, 16, 1147, 67, 28957, 67, 1467, 33, 25, ...
self.pimpinstaller = pimp.PimpInstaller(self.pimpdb)
def setuppimp(self, url): self.pimpprefs = pimp.PimpPreferences() self.pimpdb = pimp.PimpDatabase(self.pimpprefs) self.pimpinstaller = pimp.PimpInstaller(self.pimpdb) if not url: url = self.pimpprefs.pimpDatabase try: self.pimpdb.appendURL(url) except IOError, arg: rv = "Cannot open %s: %s\n" % (url, arg) rv += "\nSee ...
8a7c1c518eafd321426cd09e70c7c4c0ea5256ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8a7c1c518eafd321426cd09e70c7c4c0ea5256ab/PackageManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 84, 14532, 12, 2890, 16, 880, 4672, 365, 18, 84, 14532, 1484, 2556, 273, 293, 14532, 18, 52, 14532, 12377, 1435, 365, 18, 84, 14532, 1966, 273, 293, 14532, 18, 52, 14532, 4254, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 84, 14532, 12, 2890, 16, 880, 4672, 365, 18, 84, 14532, 1484, 2556, 273, 293, 14532, 18, 52, 14532, 12377, 1435, 365, 18, 84, 14532, 1966, 273, 293, 14532, 18, 52, 14532, 4254, 1...
import warnings warnings.warn("cookielib bug!", stacklevel=2) import traceback traceback.print_exc()
import warnings, traceback, StringIO f = StringIO.StringIO() traceback.print_exc(None, f) msg = f.getvalue() warnings.warn("cookielib bug!\n%s" % msg, stacklevel=2)
def reraise_unmasked_exceptions(unmasked=()): # There are a few catch-all except: statements in this module, for # catching input that's bad in unexpected ways. # This function re-raises some exceptions we don't want to trap. unmasked = unmasked + (KeyboardInterrupt, SystemExit, MemoryError) etype = sys.exc_info()[0] i...
6bccc9d746f767406f922d39cb4bbc64cfa1c213 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6bccc9d746f767406f922d39cb4bbc64cfa1c213/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 6070, 784, 67, 318, 23455, 67, 11855, 12, 318, 23455, 33, 1435, 4672, 468, 6149, 854, 279, 11315, 1044, 17, 454, 1335, 30, 6317, 316, 333, 1605, 16, 364, 468, 1044, 310, 810, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 436, 6070, 784, 67, 318, 23455, 67, 11855, 12, 318, 23455, 33, 1435, 4672, 468, 6149, 854, 279, 11315, 1044, 17, 454, 1335, 30, 6317, 316, 333, 1605, 16, 364, 468, 1044, 310, 810, 716,...
self.audiobin.set_state(gst.STATE_NULL)
self.pipeline.set_state(gst.STATE_NULL)
def stopRecordingAudio( self ): self.audiobin.set_state(gst.STATE_NULL) self.pipeline.remove(self.audiobin) gobject.idle_add( self.stoppedRecordingAudio )
a8e9f325d511d346f3d7fe703d21624510609671 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6451/a8e9f325d511d346f3d7fe703d21624510609671/glive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 21037, 12719, 12, 365, 262, 30, 377, 365, 18, 14511, 18, 542, 67, 2019, 12, 75, 334, 18, 7998, 67, 8560, 13, 365, 18, 14511, 18, 4479, 12, 2890, 18, 24901, 77, 947, 267, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 21037, 12719, 12, 365, 262, 30, 377, 365, 18, 14511, 18, 542, 67, 2019, 12, 75, 334, 18, 7998, 67, 8560, 13, 365, 18, 14511, 18, 4479, 12, 2890, 18, 24901, 77, 947, 267, 13, ...
label = _(category) or _("Uncategorized")
if category == "": label = _("Uncategorized") else: label = _(category)
def BuildTable(self, viewPort): pluginWindow = gtk.VBox() pluginWindow.set_border_width(10) viewPort.add(pluginWindow)
a49ef03e312685ae16d95bb643edffc78d853379 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1272/a49ef03e312685ae16d95bb643edffc78d853379/Window.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 1388, 12, 2890, 16, 1476, 2617, 4672, 1909, 3829, 273, 22718, 18, 58, 3514, 1435, 1909, 3829, 18, 542, 67, 8815, 67, 2819, 12, 2163, 13, 1476, 2617, 18, 1289, 12, 4094, 3829, 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, 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, 3998, 1388, 12, 2890, 16, 1476, 2617, 4672, 1909, 3829, 273, 22718, 18, 58, 3514, 1435, 1909, 3829, 18, 542, 67, 8815, 67, 2819, 12, 2163, 13, 1476, 2617, 18, 1289, 12, 4094, 3829, 13,...
name, mod, 70, doc) + '\n')
name, mod, maxlen=70, doc=doc) + '\n')
def spilldata(msg, attrs, predicate): ok, attrs = _split_list(attrs, predicate) if ok: hr.maybe() push(msg) for name, kind, homecls, value in ok: if callable(value) or inspect.isdatadescriptor(value): doc = getdoc(value) else: doc = None push(self.docother(getattr(object, name), name, mod, 70, doc) + '\n') return attrs
e4e51a5143dc02260ede18ec67220ba9f8642f51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e4e51a5143dc02260ede18ec67220ba9f8642f51/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1694, 737, 892, 12, 3576, 16, 3422, 16, 5641, 4672, 1529, 16, 3422, 273, 389, 4939, 67, 1098, 12, 7039, 16, 5641, 13, 309, 1529, 30, 15407, 18, 19133, 1435, 1817, 12, 3576, 13, 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, 1694, 737, 892, 12, 3576, 16, 3422, 16, 5641, 4672, 1529, 16, 3422, 273, 389, 4939, 67, 1098, 12, 7039, 16, 5641, 13, 309, 1529, 30, 15407, 18, 19133, 1435, 1817, 12, 3576, 13, 364, ...
err = None
def child_died(self, status): errors = self.errors.strip()
b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae/processes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1151, 67, 72, 2092, 12, 2890, 16, 1267, 4672, 1334, 273, 365, 18, 4324, 18, 6406, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 1151, 67, 72, 2092, 12, 2890, 16, 1267, 4672, 1334, 273, 365, 18, 4324, 18, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
cvs:cvs.mozilla.org/cvsroot:mozilla/browser/app/nsBrowserApp.cpp:1.36"""
cvs:cvs.mozilla.org/cvsroot:mozilla/browser/app/nsBrowserApp.cpp:1.36 2) the unmodified root information if it exists"""
def GetVCSFilename(file, srcdir): """Given a full path to a file, and the top source directory, look for version control information about this file, and return a specially formatted filename that contains the VCS type, VCS location, relative filename, and revision number, formatted like: vcs:vcs location:filename:revi...
237293f2635f411eb4f2d7a1758b1b6b20490cb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/237293f2635f411eb4f2d7a1758b1b6b20490cb7/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 58, 4596, 5359, 12, 768, 16, 1705, 1214, 4672, 3536, 6083, 279, 1983, 589, 358, 279, 585, 16, 471, 326, 1760, 1084, 1867, 16, 2324, 364, 1177, 3325, 1779, 2973, 333, 585, 16, 471,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 58, 4596, 5359, 12, 768, 16, 1705, 1214, 4672, 3536, 6083, 279, 1983, 589, 358, 279, 585, 16, 471, 326, 1760, 1084, 1867, 16, 2324, 364, 1177, 3325, 1779, 2973, 333, 585, 16, 471,...
def sanitize(self, fragment):
def sanitize(self, fragment, escapeRemovedMarkup=True):
def sanitize(self, fragment): """Remove unsafe markup from a fragment of HTML and return a string containing the sanitized markup. """ tree = self.parser.parseFragment(fragment) tree = self._sanitizeTree(tree) return tree.toxml()
7a1eb39d402d4adfdb308cb3528215f5f5c6aa12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/7a1eb39d402d4adfdb308cb3528215f5f5c6aa12/sanitizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8881, 12, 2890, 16, 5481, 16, 4114, 10026, 13111, 33, 5510, 4672, 3536, 3288, 7127, 9813, 628, 279, 5481, 434, 3982, 471, 327, 279, 533, 4191, 326, 16611, 9813, 18, 3536, 225, 2151, 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, 8881, 12, 2890, 16, 5481, 16, 4114, 10026, 13111, 33, 5510, 4672, 3536, 3288, 7127, 9813, 628, 279, 5481, 434, 3982, 471, 327, 279, 533, 4191, 326, 16611, 9813, 18, 3536, 225, 2151, 273,...
componentClass = Contour
componentClass = Component
def __init__(self, dispatcher=None, contourClass=None, componentClass=None, anchorClass=None): super(Glyph, self).__init__(dispatcher) self._parent = None self._dirty = False self._name = None self._unicodes = [] self._width = 0 self.note = None self.lib = {} # self._contours = [] self._components = [] self._anchors = ...
a43ff201d8c11677ab2c827cd26ad5b3f96ffbef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8851/a43ff201d8c11677ab2c827cd26ad5b3f96ffbef/glyph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7393, 33, 7036, 16, 15332, 797, 33, 7036, 16, 1794, 797, 33, 7036, 16, 6984, 797, 33, 7036, 4672, 2240, 12, 15141, 16, 365, 2934, 972, 2738, 972, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7393, 33, 7036, 16, 15332, 797, 33, 7036, 16, 1794, 797, 33, 7036, 16, 6984, 797, 33, 7036, 4672, 2240, 12, 15141, 16, 365, 2934, 972, 2738, 972, 12, 1...
open_storage(db_name, True)
open_storage(db_name, "dbm")
def testNoDBMAvailable(self): import tempfile from spambayes.storage import open_storage
52956759653db449f84ed4d63b471e9ef2ee7448 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/52956759653db449f84ed4d63b471e9ef2ee7448/test_storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2279, 2290, 49, 5268, 12, 2890, 4672, 1930, 13275, 628, 1694, 2536, 528, 281, 18, 5697, 1930, 1696, 67, 5697, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 2279, 2290, 49, 5268, 12, 2890, 4672, 1930, 13275, 628, 1694, 2536, 528, 281, 18, 5697, 1930, 1696, 67, 5697, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
xplt_path = os.path.join(local_path,'xplt')
xplt_path = os.path.join(dot_join(parent_package,'xplt'))
def configuration(parent_package=''): """ gist only works with an X-windows server This will install *.gs and *.gp files to '%spython%s/site-packages/scipy/xplt' % (sys.prefix,sys.version[:3]) """ x11 = x11_info().get_info() if not x11: return config = default_config_dict('xplt',parent_package) local_path = get_path(_...
88da5d766bfcfe1c85800c1b8ab53033fafec032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/88da5d766bfcfe1c85800c1b8ab53033fafec032/setup_xplt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 3536, 29503, 1338, 6330, 598, 392, 1139, 17, 13226, 1438, 1220, 903, 3799, 380, 18, 564, 471, 380, 18, 6403, 1390, 358, 1995, 1752, 18490, 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, 1664, 12, 2938, 67, 5610, 2218, 11, 4672, 3536, 29503, 1338, 6330, 598, 392, 1139, 17, 13226, 1438, 1220, 903, 3799, 380, 18, 564, 471, 380, 18, 6403, 1390, 358, 1995, 1752, 18490, 9, ...
for (id, name, description) in all_roles:
for (id, name, description, dummy, dummy) in all_roles:
def perform_addroleuser(req, email_user_pattern='', id_user='0', id_role='0', confirm=0): """delete connection between role and user. id_role - id of role to disconnect id_user - id of user to disconnect. """ (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return mustloginpage(req, auth_message) em...
6ea5d72a403945bb48459d4ea7eed6856c3451fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/6ea5d72a403945bb48459d4ea7eed6856c3451fb/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 1289, 4615, 1355, 12, 3658, 16, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 612, 67, 4615, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 3733, 1459, 3086...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1289, 4615, 1355, 12, 3658, 16, 2699, 67, 1355, 67, 4951, 2218, 2187, 612, 67, 1355, 2218, 20, 2187, 612, 67, 4615, 2218, 20, 2187, 6932, 33, 20, 4672, 3536, 3733, 1459, 3086...
tar = TarFile(TARBALL, "w:bz2")
tar = tarfile.open(TARBALL, "w:bz2")
def compress_sources(): import tarfile tar = TarFile(TARBALL, "w:bz2") tar.add(PACKAGE_NAME) tar.close()
9de16ab5ac429be26ad6cba27df4280a7fe3309c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/255/9de16ab5ac429be26ad6cba27df4280a7fe3309c/make_rpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8099, 67, 10141, 13332, 1930, 25857, 8232, 273, 25857, 18, 3190, 12, 56, 20926, 4685, 16, 315, 91, 30, 25292, 22, 7923, 8232, 18, 1289, 12, 19077, 67, 1985, 13, 8232, 18, 4412, 1435, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8099, 67, 10141, 13332, 1930, 25857, 8232, 273, 25857, 18, 3190, 12, 56, 20926, 4685, 16, 315, 91, 30, 25292, 22, 7923, 8232, 18, 1289, 12, 19077, 67, 1985, 13, 8232, 18, 4412, 1435, 2...
if id:
if numDeferred > 0: start = self.keyToTimestamp(id) elif id:
def onReview(self, params): """Present a list of message for (re)training."""
b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 9159, 12, 2890, 16, 859, 4672, 3536, 6351, 279, 666, 434, 883, 364, 261, 266, 13, 17584, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 9159, 12, 2890, 16, 859, 4672, 3536, 6351, 279, 666, 434, 883, 364, 261, 266, 13, 17584, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def __init__(self, control): self.control = control def __call__(self, value): if value==None: return self.control.setValue(value)
def __init__(self, control): self.control = control def __call__(self, value): if value==None: return self.control.setValue(value)
def __init__(self, control): self.control = control
ec58355f0e4e6cbc25734f2c717e88966d659bd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/ec58355f0e4e6cbc25734f2c717e88966d659bd7/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 4672, 365, 18, 7098, 273, 3325, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3325, 4672, 365, 18, 7098, 273, 3325, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for i in range(min(len(self.allResults), self.resultListLen)):
for i in range(len(self.allResults)):
def updateShownProjections(self, *args): self.resultList.clear() for i in range(min(len(self.allResults), self.resultListLen)): self.resultList.insertItem("%.2f - %s" % (self.allResults[i][0], str(self.allResults[i][1])), i) if self.resultList.count() > 0: self.resultList.setCurrentItem(0)
cc07563bcc3bbb63e4db6458481816f5ff5f63b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/cc07563bcc3bbb63e4db6458481816f5ff5f63b6/OWParallelCoordinates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 27042, 14789, 87, 12, 2890, 16, 380, 1968, 4672, 365, 18, 2088, 682, 18, 8507, 1435, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 454, 3447, 3719, 30, 365, 18, 2088, 682, 18, 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, 1089, 27042, 14789, 87, 12, 2890, 16, 380, 1968, 4672, 365, 18, 2088, 682, 18, 8507, 1435, 364, 277, 316, 1048, 12, 1897, 12, 2890, 18, 454, 3447, 3719, 30, 365, 18, 2088, 682, 18, 6...
message = "Can't create directory '%s', reported error: %s" % (path, msg) print message if self.frame: self.frame.logMessage(message)
log.addwarning("Can't create directory '%s', reported error: %s" % (path, msg))
def readConfig(self): self.config_lock.acquire() path, fn = os.path.split(self.filename) try: if not os.path.isdir(path): os.makedirs(path) except OSError, msg: message = "Can't create directory '%s', reported error: %s" % (path, msg) print message if self.frame: self.frame.logMessage(message) for i in self.parser.sec...
d03b1060449a904912df2e17c0cce7abc6348d8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/d03b1060449a904912df2e17c0cce7abc6348d8f/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 809, 12, 2890, 4672, 365, 18, 1425, 67, 739, 18, 1077, 1039, 1435, 589, 16, 2295, 273, 1140, 18, 803, 18, 4939, 12, 2890, 18, 3459, 13, 775, 30, 309, 486, 1140, 18, 803, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 809, 12, 2890, 4672, 365, 18, 1425, 67, 739, 18, 1077, 1039, 1435, 589, 16, 2295, 273, 1140, 18, 803, 18, 4939, 12, 2890, 18, 3459, 13, 775, 30, 309, 486, 1140, 18, 803, 18, 2...
move += """<a href="%s/admin/websearch/websearchadmin.py/switchpbxscore?colID=%s&amp;ln=%s&amp;id_1=%s&amp;id_2=%s&amp;sel_ln=%s&amp;rand=%s
move += """<a href="%s/admin/websearch/websearchadmin.py/switchpbxscore?colID=%s&amp;ln=%s&amp;id_1=%s&amp;id_2=%s&amp;sel_ln=%s&amp;rand=%s
def perform_showportalboxes(colID, ln, callback='yes', content='', confirm=-1): """show the portalboxes of this collection. colID - the portalboxes to show the collection for.""" colID = int(colID) col_dict = dict(get_def_name('', "collection")) subtitle = """<a name="5">5. Modify portalboxes for collection '%s'</a>&...
be668b6d32041ec5711b3db33b0118c40d845ef2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2139/be668b6d32041ec5711b3db33b0118c40d845ef2/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 24386, 15918, 12, 1293, 734, 16, 7211, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 11899, 15918, 434, 333, 1849, 18, 645, 734, 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, 3073, 67, 4500, 24386, 15918, 12, 1293, 734, 16, 7211, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 4500, 326, 11899, 15918, 434, 333, 1849, 18, 645, 734, 30...